/* Viana do Castelo — site 3D (modelo) */
:root {
  --fundo: #05070b; --txt: #f3f5f8; --txt-2: rgba(243,245,248,.72); --ouro: #ffb45a;
  --serifa: 'Sora', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--fundo); color: var(--txt); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* mundo 3D fixo atrás de tudo */
#mundo { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.vinheta { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }
.sem-3d body, html.sem-3d body { background: radial-gradient(ellipse at 50% 20%, #1a1410, #05070b 60%); }
html.sem-3d #mundo { display: none; }
main, .rodape, .topo { position: relative; z-index: 2; }

/* vidro líquido */
.vidro, .vidro-forte { position: relative; background: rgba(255,255,255,.035); border: none; isolation: isolate; }
.vidro { backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.25); }
.vidro-forte { backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: 4px 4px 14px rgba(0,0,0,.2), inset 0 1px 1px rgba(255,255,255,.18); }
.vidro::before, .vidro-forte::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 60%, rgba(255,255,255,.12) 80%, rgba(255,255,255,.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* topo */
.topo { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 56px); pointer-events: none; }
.topo > * { pointer-events: auto; }
.topo-logo img { width: 58px; height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.topo-menu { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; }
.topo-menu a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.85); padding: 8px 13px; border-radius: 99px; transition: background .25s, color .25s; }
.topo-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topo-menu a.ativo { background: rgba(255,255,255,.14); color: #fff; }
.topo-menu .topo-cta { background: #fff; color: #000; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-left: 6px; }
.topo-menu .topo-cta:hover { background: #fff; color: #000; }
.topo-menu svg, .botao svg, .botao-texto svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* seções: cada uma é uma "parada" da câmera */
.cena { min-height: 135vh; display: flex; align-items: center; padding: 120px clamp(16px, 6vw, 96px); }
.cena-abertura { min-height: 100vh; align-items: center; justify-content: center; padding-top: 90px; padding-bottom: 8vh; }
.cena-centro, .cena-gsp, .cena-contato { justify-content: center; }
.cena-lado.esquerda { justify-content: flex-start; }
.cena-lado.direita { justify-content: flex-end; }

.serifa { font-family: var(--serifa); font-style: italic; font-weight: 400; letter-spacing: -.025em; line-height: .98; }
.serifa em { font-style: italic; color: rgba(255,255,255,.6); }
.rotulo { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tom, var(--ouro)); margin-bottom: 14px; }
.centro { text-align: center; margin-left: auto; margin-right: auto; }

/* abertura */
.abertura-txt { text-align: center; max-width: 980px; }
.selo { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 99px; text-decoration: none; font-size: 13.5px; color: rgba(255,255,255,.9); }
.selo b { background: #fff; color: #000; border-radius: 99px; padding: 4px 12px; font-size: 12px; }
.abertura-txt h1 { font-size: clamp(44px, 6.4vw, 96px); margin: 18px auto 14px; max-width: 16ch; }
.sub { font-weight: 300; font-size: clamp(14px, 1.3vw, 17px); color: var(--txt-2); }
.acoes { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.botao { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 99px; text-decoration: none; color: #fff; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; transition: transform .2s, filter .2s; }
.botao:hover { transform: translateY(-2px); filter: brightness(1.15); }
.botao.claro { background: #fff; color: #000; font-weight: 600; justify-content: center; }
.botao-texto { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255,255,255,.88); font-weight: 500; font-size: 15px; }
.role { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.55); }
.role span { width: 1px; height: 38px; background: linear-gradient(transparent, #fff); animation: desce 1.8s ease-in-out infinite; }
@keyframes desce { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cena-abertura { position: relative; }
.pal { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(40px); animation: palavra .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.9s + var(--i) * .09s); }
@keyframes palavra { 50% { opacity: .5; filter: blur(5px); transform: translateY(-5px); } to { opacity: 1; filter: none; transform: none; } }
.abertura-txt > :not(h1) { opacity: 0; animation: sobe .9s cubic-bezier(.2,.7,.2,1) forwards; }
.abertura-txt > .selo { animation-delay: .6s; } .abertura-txt > .sub { animation-delay: 1.9s; } .abertura-txt > .acoes { animation-delay: 2.1s; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* painéis */
.painel { width: min(560px, 100%); padding: clamp(24px, 3vw, 40px); border-radius: 28px; }
.painel.largo { width: min(1080px, 100%); background: none; padding: 0; text-align: center; }
.painel h2, .gsp-topo h2, .contato-txt h2 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 18px; }
.painel p { color: var(--txt-2); line-height: 1.6; font-size: 15.5px; }
.painel p strong { color: #fff; font-weight: 600; }
.cena-centro .painel.vidro { text-align: left; }
.aparece { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(8px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter 1s; }
.aparece.visivel { opacity: 1; transform: none; filter: none; }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.numeros div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); }
.numeros b { display: block; font-family: var(--serifa); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; color: #fff; }
.numeros span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--txt-2); line-height: 1.35; }

.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; text-align: left; }
.pilares article { padding: 24px; border-radius: 22px; }
.pilares article.destaque { background: rgba(255,180,90,.08); }
.pilares small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro); }
.pilares h3 { font-family: var(--serifa); font-style: italic; font-weight: 400; font-size: 30px; margin: 8px 0 8px; }
.pilares p { font-size: 14px; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips span { padding: 9px 16px; border-radius: 99px; font-size: 13px; color: var(--txt-2); }
.chips b { color: #fff; margin-right: 6px; }

.itens { list-style: none; margin: 22px 0 18px; border-top: 1px solid rgba(255,255,255,.1); }
.itens li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.itens b { color: var(--tom, #fff); font-weight: 600; }
.itens span { color: var(--txt-2); line-height: 1.45; }
.extra { font-size: 13px !important; color: rgba(255,255,255,.55) !important; }

/* GSP360 */
.cena-gsp { flex-direction: column; justify-content: space-between; min-height: 112vh; padding-top: 16vh; padding-bottom: 10vh; text-align: center; }
.gsp-topo { max-width: 760px; }
.gsp-topo p { color: var(--txt-2); line-height: 1.6; max-width: 600px; }
.gsp-base { width: min(860px, 100%); }
.gsp-base .numeros div { text-align: center; padding: 22px; border-radius: 22px; }
.gsp-base .numeros b { color: #ffd9a0; }
.nota { margin-top: 14px; font-size: 13px; color: var(--txt-2); }
.nota a { color: var(--ouro); text-decoration: none; }

/* contato */
.cena-contato { min-height: 140vh; align-items: flex-end; padding-bottom: 14vh; }
.contato-grade { width: min(1100px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.contato-txt p { color: var(--txt-2); line-height: 1.6; max-width: 46ch; margin-bottom: 26px; }
.contato-txt .wa { background: rgba(37,211,102,.16); }
.dados { list-style: none; margin-top: 22px; font-size: 14px; color: var(--txt-2); display: grid; gap: 6px; }
.form { display: grid; gap: 12px; padding: 26px; border-radius: 26px; }
.form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .06em; color: var(--txt-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: rgba(255,180,90,.7); background: rgba(255,255,255,.09); }
.form select option { color: #000; }

.rodape { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 16px 60px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.5); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.rodape img { width: 90px; opacity: .9; }
.wa-flutua { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.35); }
.wa-flutua svg { width: 28px; height: 28px; fill: #fff; }

/* celular */
@media (max-width: 820px) {
  .topo-menu a:not(.topo-cta) { display: none; }
  .cena { padding: 100px 16px; }
  .cena-lado { align-items: flex-end; padding-bottom: 10vh; }
  .cena-lado.esquerda, .cena-lado.direita { justify-content: center; }
  .numeros, .pilares { grid-template-columns: 1fr; }
  .itens li { grid-template-columns: 1fr; gap: 3px; }
  .contato-grade { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pal, .abertura-txt > :not(h1), .aparece { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
}
.contato-grade > * { min-width: 0; }
.contato-txt h2 { overflow-wrap: break-word; }
@media (max-width: 820px) { .cena-contato { align-items: center; } }
.form label, .form input, .form select, .form textarea { min-width: 0; width: 100%; }

/* títulos no estilo do site atual (Sora, sem itálico) */
.serifa { font-style: normal; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.serifa em { font-style: normal; color: var(--ouro); }
.abertura-txt h1 { font-size: clamp(30px, 4vw, 54px); max-width: 20ch; }
.painel h2, .gsp-topo h2, .contato-txt h2 { font-size: clamp(28px, 3.4vw, 46px); }
.numeros b { font-style: normal; font-weight: 800; letter-spacing: -.03em; }
.pilares h3 { font-style: normal; font-weight: 700; font-size: 22px; }
/* logo da abertura igual ao do site: check desenhando, nome aparecendo e anéis de luz */
.logo-abertura { position: relative; width: min(64vw, 420px, 42vh); margin: 0 auto 10px; line-height: 0; }
.logo-abertura .logo-svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.logo-check { stroke-dasharray: 440; stroke-dashoffset: 440; animation: draw 1.1s .25s cubic-bezier(.65,0,.35,1) forwards; }
.wm-rect { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: wm 1s 1s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wm { to { transform: scaleX(1); } }
/* ---------- Anéis de luz girando em volta do logo ---------- */
.zoom-obj .logo-svg { position: relative; z-index: 1; }
.aneis { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.aneis.atras { z-index: 0; }
.aneis.frente { z-index: 2; }
.aneis path { fill: none; stroke-linecap: round; animation: 5.5s linear infinite; }
.aneis .cauda { stroke: #c9953f; stroke-width: 1.3; opacity: .45; stroke-dasharray: 320 680; animation-name: anel-320; }
.aneis .meio { stroke: #e8b865; stroke-width: 2; opacity: .7; stroke-dasharray: 150 850; animation-name: anel-150; }
.aneis .cabeca { stroke: #fff1cf; stroke-width: 3; stroke-dasharray: 45 955; animation-name: anel-45; filter: drop-shadow(0 0 4px #ffcf7a) drop-shadow(0 0 10px rgba(255,190,90,.8)); }
.anel-2 path { animation-duration: 8s; animation-delay: -3s; }
.anel-2 .cauda { opacity: .18; } .anel-2 .meio { opacity: .35; } .anel-2 .cabeca { opacity: .55; stroke-width: 2.2; }
@keyframes anel-320 { from { stroke-dashoffset: 320; } to { stroke-dashoffset: -680; } }
@keyframes anel-150 { from { stroke-dashoffset: 150; } to { stroke-dashoffset: -850; } }
@keyframes anel-45 { from { stroke-dashoffset: 45; } to { stroke-dashoffset: -955; } }
@media (prefers-reduced-motion: reduce) { .aneis { display: none; } }

/* Gestão 360 mais limpo: painéis mais sólidos e botão da apresentação */
#metodo .pilares article { background: rgba(10,13,20,.72); }
#metodo .painel.largo { position: relative; }
#metodo .painel.largo::before { content: ''; position: absolute; inset: -40px -60px; z-index: -1; border-radius: 40px; background: radial-gradient(ellipse at center, rgba(5,7,11,.85), rgba(5,7,11,0) 70%); pointer-events: none; }
.botao-gsp { margin-top: 30px; background: rgba(255,180,90,.14); }

/* abertura com os prédios reais ao fundo (como no site anterior), em preto e branco */
.cena-abertura { overflow: hidden; }
.cena-abertura .cidade { position: absolute; inset: 0; z-index: -1; background: url(/assets/fotos/fundo.jpg) center 100%/cover; filter: grayscale(1) brightness(2.3) contrast(1.2); }
.cena-abertura .cidade::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(5,7,11,.55), rgba(5,7,11,0) 70%), linear-gradient(180deg, rgba(5,7,11,.3), rgba(5,7,11,0) 40%, rgba(5,7,11,0) 86%, #05070b 100%); }
.cena-abertura > :not(.cidade) { position: relative; z-index: 1; }
.cena-abertura { isolation: isolate; }
.cena-contato { min-height: 100vh; align-items: center; padding-bottom: 8vh; }
/* abertura: botões legíveis sobre os prédios */
.cena-abertura .acoes .botao { background: #fff; color: #000; font-weight: 600; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cena-abertura .acoes .botao::before { display: none; }
.cena-abertura .acoes .botao-texto { background: rgba(5,7,11,.6); padding: 12px 18px; border-radius: 99px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.cena-abertura .sub { text-shadow: 0 2px 12px rgba(0,0,0,.9); color: rgba(255,255,255,.85); }

/* história: foto da equipe esmaecida no fundo, no lugar dos arcos */
#historia { position: relative; isolation: isolate; overflow: hidden; }
.foto-historia { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.foto-historia img { width: min(1400px, 100%); height: 80%; object-fit: cover; filter: grayscale(.3) brightness(.7);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 75%); opacity: .55; }

/* história: foto do Antônio Carlos Castanheira ao lado do cartão */
.historia-grade { display: grid; grid-template-columns: auto minmax(0, 560px); gap: 40px; align-items: center; justify-content: center; width: 100%; }
.foto-fundador { margin: 0; width: min(340px, 30vw); position: relative; }
.foto-fundador img { width: 100%; aspect-ratio: 340/610; object-fit: cover; object-position: 50% 15%; filter: grayscale(.15) contrast(1.03) brightness(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%); mask-composite: intersect; }
.foto-fundador figcaption { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; }
.foto-fundador b { display: block; font-family: 'Sora', sans-serif; font-size: 15px; color: #fff; text-shadow: 0 2px 10px #000; }
.foto-fundador span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro); }
.foto-historia { display: none; }
@media (max-width: 820px) { .historia-grade { grid-template-columns: 1fr; gap: 10px; } .foto-fundador { width: min(240px, 60vw); margin: 0 auto; } }
/* logo do topo: só o nome, maior */
.topo-logo img { width: 150px; }
@media (max-width: 820px) { .topo-logo img { width: 118px; } }
/* cartões dos ramos mais compactos: cabem inteiros na tela ao clicar no menu */
.cena-lado .painel { padding: 26px 30px; }
.cena-lado .painel h2 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 12px; }
.cena-lado .painel > p { font-size: 14.5px; line-height: 1.5; }
.cena-lado .itens { margin: 14px 0 10px; }
.cena-lado .itens li { padding: 9px 0; font-size: 13.5px; }
.cena-lado .extra { margin-top: 4px; }
