/* Portfólio de serviços (servicos.wewtech.com.br) */
.pagina-portfolio { background: var(--paper); }

/* Abertura com busca */
.pf-hero { position: relative; padding: 140px 0 70px; color: var(--white); background: linear-gradient(125deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800)); overflow: hidden; }
.pf-hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to right, black, transparent 80%); }
.pf-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(247,148,29,.28), transparent 70%); }
.pf-hero .shell { position: relative; z-index: 1; }
.pf-hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #c8d5e6; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pf-hero .eyebrow span { width: 34px; height: 2px; background: var(--orange); }
.pf-hero h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
.pf-hero h1 em { color: var(--orange); font-style: normal; }
.pf-hero > .shell > p { max-width: 680px; margin: 22px 0 0; color: #c3d0e0; font-size: 18px; }
.pf-hero .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.pf-hero .hero-stats div { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.14); }
.pf-hero .hero-stats div:first-child { padding-left: 0; border-left: 0; }
.pf-hero .hero-stats dt { color: var(--orange); font-size: 28px; font-weight: 850; line-height: 1.1; }
.pf-hero .hero-stats dd { margin: 4px 0 0; color: #a9b9cc; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.pf-busca { position: relative; display: flex; align-items: center; max-width: 720px; margin-top: 34px; border-radius: 14px; background: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.pf-busca > svg { position: absolute; left: 18px; width: 22px; height: 22px; color: var(--muted); }
.pf-busca input { flex: 1; min-width: 0; height: 60px; padding: 0 16px 0 52px; border: 0; border-radius: 14px; color: var(--ink); background: transparent; font: inherit; font-size: 16px; }
.pf-busca input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.pf-busca-res { flex: none; padding-right: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* Áreas em cards fixos: todas visíveis de uma vez, sem rolagem lateral */
.pf-chips { padding: 40px 0 48px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pf-chips-title { margin: 0 0 18px; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.pf-chips-inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pf-chip { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 6px 18px rgba(6,26,51,.05); transition: transform .2s, border-color .2s, box-shadow .2s, background .2s, color .2s; }
.pf-chip svg { width: 40px; height: 40px; padding: 9px; margin-bottom: 4px; border-radius: 10px; color: var(--navy-900); background: #e8eef6; transition: background .2s, color .2s; }
.pf-chip strong { font-size: 14.5px; line-height: 1.3; }
.pf-chip small { color: var(--muted); font-size: 12.5px; }
.pf-chip { width: 100%; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pf-chip[hidden] { display: none; }
.pf-chip:hover, .pf-chip:focus-visible { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); }
.pf-chip:hover svg { color: var(--navy-950); background: var(--orange); }
.pf-chip-hits { padding: 2px 8px; border-radius: 999px; color: var(--navy-950); background: #ffe2b8; font-size: 12px; font-weight: 800; }
.pf-chip-hits[hidden] { display: none; }
.pf-chip-ver { margin-top: 6px; color: var(--orange-ink); font-size: 13px; font-weight: 800; }
.pf-chip-ver::after { content: " →"; }

/* Popup da área */
.pf-dialog { width: min(1120px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; flex-direction: column; overflow: hidden; }
.pf-dialog[open] { display: flex; animation: pfDlgIn .2s ease-out; }
@keyframes pfDlgIn { from { opacity: 0; } to { opacity: 1; } }
.pf-dialog .dialog-bar { position: static; flex: none; padding: 14px 16px 14px 22px; }
.pf-dlg-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-dlg-title .pf-area-icon { width: 48px; height: 48px; padding: 12px; border-radius: 12px; color: var(--navy-950); background: var(--orange); }
.pf-dlg-title span { display: block; color: #a9b9cc; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pf-dlg-title h2 { margin: 0; color: var(--white); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.pf-dlg-body { flex: 1; min-height: 0; padding: 22px 24px 8px; overflow-y: auto; overscroll-behavior: contain; }
.pf-dlg-body .pf-area-intro { margin-bottom: 18px; }
.pf-dlg-body .group-card { background: var(--paper); }
.pf-dlg-busca { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fff1de; color: var(--navy-900); font-size: 14px; }
.pf-dlg-foot { flex: none; display: flex; justify-content: flex-end; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--white); }
.pf-dlg-foot .button svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .pf-dialog { inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .pf-dlg-body { padding: 18px 16px 8px; }
  .pf-dlg-foot { padding: 12px 16px; }
  .pf-dlg-foot .button { width: 100%; }
}
@media (max-width: 1060px) { .pf-chips-inner { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .pf-chips-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) {
  .pf-chips { padding: 28px 0 32px; }
  .pf-chips-inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-chip { padding: 14px 12px; }
}

/* Áreas */
.pf-area { padding: 72px 0; scroll-margin-top: 80px; border-bottom: 1px solid var(--line); }
.pf-area:nth-of-type(even) { background: var(--white); }
.pf-area-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; margin-bottom: 28px; }
.pf-area-title { display: flex; align-items: center; gap: 18px; }
.pf-area-icon { flex: none; width: 64px; height: 64px; padding: 16px; border-radius: 16px; color: var(--white); background: var(--navy-900); }
.pf-area-destaque .pf-area-icon { color: var(--navy-950); background: var(--orange); }
.pf-area-title .kicker { margin-bottom: 4px; }
.pf-area-title h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.pf-area-intro > p { margin: 0; color: var(--muted); font-size: 16px; }
.pf-area-intro strong { color: var(--ink); }
.pf-frase { margin-top: 10px !important; color: var(--navy-900) !important; font-weight: 800; }
.pf-fluxo { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pf-fluxo li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #e8eef6; font-size: 13px; font-weight: 700; }
.pf-fluxo span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--navy-950); background: var(--orange); font-size: 11px; font-weight: 900; }
.pf-nota { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0 !important; padding: 10px 14px; border-radius: 10px; background: #fff1de; color: var(--navy-900) !important; font-size: 14px !important; font-weight: 600; }
.pf-nota svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--orange-ink); stroke-width: 3; }
.pf-area .group-card { background: var(--white); }
.pf-area:nth-of-type(even) .group-card { background: var(--paper); }
.pf-area-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.pf-voltar { color: var(--navy-700); font-size: 14.5px; font-weight: 800; }
.pf-voltar::before { content: "↑ "; color: var(--orange-ink); }
.pf-voltar:hover { color: var(--orange-ink); }
.pf-area-cta .button svg { width: 20px; height: 20px; }

/* Busca: destaque e itens ocultos */
.group-list li.pf-oculto, .group-card.pf-oculto, .pf-area.pf-oculto { display: none; }
.group-list li mark { padding: 0 2px; border-radius: 3px; color: var(--ink); background: #ffe2b8; }
.pf-vazio { padding: 60px 0; color: var(--muted); font-size: 17px; text-align: center; }
.pf-vazio a { color: var(--orange-ink); font-weight: 800; }

/* Rodapé enxuto */
.pagina-portfolio .site-footer { padding: 28px 0; }
.pagina-portfolio .footer-bottom { padding-top: 0; border-top: 0; }
.pagina-portfolio .footer-bottom a:hover { color: var(--orange); }

@media (max-width: 860px) {
  .pf-hero { padding: 112px 0 56px; }
  .pf-area { padding: 56px 0; }
  .pf-area-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .pf-hero .hero-stats div { padding: 0 14px; }
  .pf-hero .hero-stats dt { font-size: 22px; }
  .pf-busca-res { display: none; }
  .pf-area-cta .button { width: 100%; }
}
