/* Capuxú, Fiuza, Lima & Marinho — folha de estilos
   Cores amostradas do brasão do escritório. */

:root {
  --petroleo: #033C42;
  --abissal: #022B2E;
  --ouro: #F2D08E;
  --ouro-forte: #E9BD63;
  --salvia: #97BA98;
  --marfim: #F6EBD0;
  --tinta: #0B2B2E;
  --alerta: #F0A13A;

  --display: "Gloock", "Georgia", serif;
  --texto: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --escudo: 0 0 50% 50% / 0 0 36% 36%;
  --suave: cubic-bezier(.2, .7, .2, 1);
  --topo-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); }

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--marfim);
  background: var(--petroleo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Sem o realce azul do navegador: toque no celular e seleção de texto usam as cores da marca */
html { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ouro); color: var(--abissal); }
.secao--marfim ::selection, .faixa ::selection, .quad--ouro ::selection, .valor--ouro ::selection { background: var(--petroleo); color: var(--ouro); }

/* Elementos de clicar não selecionam o próprio texto (telefones e e-mail continuam copiáveis) */
.botao, button, summary, .marca, .nav a, .rodape__nav a, .quad, .brasao, .faixa, [role="tab"] {
  -webkit-user-select: none; user-select: none;
}

:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.secao--marfim :focus-visible { outline-color: var(--petroleo); }

.so-leitor {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.pular {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--ouro); color: var(--tinta);
  font-weight: 600; text-decoration: none;
}
.pular:focus { top: 12px; }

.caixa {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* ---------- Tipografia ---------- */

.titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}

.subtitulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  border: 1.5px solid transparent; border-radius: 0 0 18px 18px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--suave);
}
.botao:active { transform: translateY(1px); }
.botao--ouro { background: var(--ouro); color: var(--tinta); }
.botao--ouro:hover { background: #fff3d2; }
.botao--contorno { border-color: rgba(242, 208, 142, .55); color: var(--ouro); }
.botao--contorno:hover { background: rgba(242, 208, 142, .12); border-color: var(--ouro); }
.botao--escuro { background: var(--petroleo); color: var(--ouro); }
.botao--escuro:hover { background: var(--abissal); }

.elo {
  color: var(--ouro); text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.elo:hover { text-decoration-thickness: 2px; }

/* ---------- Topo ---------- */

.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topo-h);
}
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--abissal);
  border-bottom: 1px solid rgba(242, 208, 142, .16);
  opacity: 0; transform-origin: top;
  transition: opacity .4s ease, transform .5s var(--suave);
}
.topo.rolou::before { opacity: 1; transform: scaleY(.81); }
.topo__linha { transition: transform .5s var(--suave); }
.topo.rolou .topo__linha { transform: translateY(-8px); }
.topo__linha { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ouro); }
.marca__escudo { width: 36px; height: auto; flex: none; overflow: visible; }
/* Contorno sutil em ouro: o escudo não some sobre o fundo escuro da barra */
.marca__contorno { stroke: rgba(242, 208, 142, .5); stroke-width: 1.25; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav > a:not(.botao) {
  position: relative; padding: 8px 0;
  font-size: .96rem; font-weight: 500; text-decoration: none; color: var(--marfim);
}
.nav > a:not(.botao)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--ouro); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--suave);
}
.nav > a:not(.botao):hover::after,
.nav > a.ativo::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding: 8px 20px; font-size: .95rem; }

.topo__menu { display: none; }

/* ---------- Herói ---------- */

.heroi {
  position: relative; overflow: hidden;
  padding-top: calc(var(--topo-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
}

.heroi__relevo { position: absolute; inset: -10%; pointer-events: none; }
.heroi__relevo svg { width: 100%; height: 100%; will-change: transform; animation: deriva 46s ease-in-out infinite alternate; }
.heroi__relevo path { fill: none; stroke: var(--ouro); stroke-width: 1; opacity: .11; vector-effect: non-scaling-stroke; }

@keyframes deriva {
  from { transform: translate3d(-1.5%, 1%, 0) rotate(-2deg) scale(1); }
  to   { transform: translate3d(1.5%, -1.5%, 0) rotate(3deg) scale(1.07); }
}

.heroi__grade {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr);
  align-items: center; gap: clamp(40px, 6vw, 96px);
}

.heroi__titulo {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1; letter-spacing: -0.015em;
  color: var(--ouro);
}
.linha { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.08em; }
.linha > span { display: inline-block; }

.heroi__apoio { margin-top: 28px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(246, 235, 208, .88); }
.heroi__acoes { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Brasão interativo */

.brasao { justify-self: center; width: min(100%, 360px); text-align: center; }
.brasao__coroa { width: 46%; margin: 0 auto 14px; display: block; fill: var(--ouro); }

.brasao__escudo {
  aspect-ratio: 1 / 1.05;
  padding: 8.5%;
  background: var(--abissal);
  border-radius: var(--escudo);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  perspective: 900px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}

.quad {
  position: relative; display: block;
  color: var(--ouro); text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.45, .05, .2, 1);
}
.quad__frente, .quad__verso {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.quad__frente {
  font-family: var(--display); font-size: clamp(3.2rem, 7vw, 5rem); line-height: 1;
}
.quad__verso {
  transform: rotateY(180deg);
  align-content: center; gap: 4px; padding: 8px;
  background: var(--petroleo);
}
.quad__verso b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.quad__verso small { font-size: .78rem; line-height: 1.25; color: var(--salvia); }

.quad--ouro .quad__frente { background: var(--ouro); color: var(--abissal); }
.quad--ouro .quad__verso { background: var(--ouro); color: var(--abissal); }
.quad--ouro .quad__verso small { color: #2d5a55; }
.quad--base .quad__frente, .quad--base .quad__verso { border-radius: 0 0 86% 0 / 0 0 62% 0; }
/* O verso do L espelha a curva do M para acompanhar a base do escudo */
.quad--base-esq .quad__verso { border-radius: 0 0 0 86% / 0 0 0 62%; padding-left: 16%; }

.quad:hover, .quad:focus-visible, .quad.virado { transform: rotateY(180deg); }
.quad:focus-visible { outline-offset: -4px; }

.brasao__nomes {
  margin-top: 26px;
  font-family: var(--display); font-size: 1.25rem; line-height: 1.2; color: rgba(242, 208, 142, .6);
}
.brasao__nomes span { transition: color .3s; }
.brasao__nomes span.aceso { color: #fff6de; }
.brasao__dica { margin-top: 8px; font-size: .9rem; color: var(--salvia); }

/* Sequência de entrada (uma vez, no carregamento) */

.js .linha > span { transform: translateY(110%); animation: sobe 1s var(--suave) forwards; }
.js .linha:nth-child(2) > span { animation-delay: .12s; }
.js .heroi__apoio, .js .heroi__acoes { opacity: 0; animation: surge .9s var(--suave) .55s forwards; }
.js .heroi__acoes { animation-delay: .7s; }
.js .brasao__escudo { opacity: 0; animation: surge .8s var(--suave) .2s forwards, flutua 7s ease-in-out 1.3s infinite; }
.js .brasao__escudo .quad { animation: vira 1s var(--suave) calc(.45s + var(--i) * .16s) backwards; }
.js .brasao__coroa { opacity: 0; animation: coroa .8s var(--suave) 1.25s forwards, flutua-coroa 7s ease-in-out 2.4s infinite; }
.js .brasao__nomes, .js .brasao__dica { opacity: 0; animation: surge .9s var(--suave) 1.5s forwards; }

@keyframes sobe { to { transform: none; } }
@keyframes surge { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes vira { from { transform: rotateY(-180deg); } }
/* Laço contínuo e suave: o escudo flutua e a coroa acompanha com leve atraso */
.brasao__escudo, .brasao__coroa { will-change: transform; }
@keyframes flutua { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes flutua-coroa { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -15px, 0) rotate(-1.5deg); } }
@keyframes coroa { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa ---------- */

.faixa { overflow: hidden; background: var(--ouro); color: var(--abissal); padding-block: 16px; }
.faixa__trilho { display: flex; width: max-content; will-change: transform; animation: corre 44s linear infinite; }
.faixa:hover .faixa__trilho { animation-play-state: paused; }
.faixa__trilho span {
  display: flex; align-items: center; gap: 36px; padding-left: 36px;
  font-family: var(--display); font-size: 1.35rem; white-space: nowrap;
}
.faixa__trilho span::after {
  content: ""; width: 12px; height: 13px; background: var(--abissal);
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
}
@keyframes corre { to { transform: translate3d(-50%, 0, 0); } }

/* Fora da tela, os laços param e não gastam processamento */
.fora-da-tela .heroi__relevo svg, .fora-da-tela .brasao__escudo, .fora-da-tela .brasao__coroa,
.fora-da-tela .faixa__trilho { animation-play-state: paused; }

/* ---------- Seções ---------- */

.secao { padding-block: clamp(76px, 10vw, 148px); }
.secao--marfim { background: var(--marfim); color: var(--tinta); }
.secao--abissal { background: var(--abissal); }
.secao--petroleo { background: var(--petroleo); }

.cabeca { margin-bottom: clamp(40px, 5vw, 64px); }
.cabeca p { margin-top: 18px; max-width: 58ch; font-size: 1.1rem; opacity: .86; }
.cabeca--com-acao { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }

/* Revelações ao rolar */

.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s ease var(--d, 0s), transform 1s var(--suave) var(--d, 0s);
}
.js [data-reveal].visivel { opacity: 1; transform: none; }
.js [data-reveal="cortina"] { opacity: 1; transform: none; }
.js [data-reveal="cortina"] > * {
  opacity: 0; transform: scale(1.08);
  transition: opacity 1s ease, transform 1.6s var(--suave);
}
.js [data-reveal="cortina"].visivel > * { opacity: 1; transform: none; }

/* ---------- O escritório ---------- */

.escritorio {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.escritorio__texto p { margin-top: 22px; max-width: 56ch; }
.escritorio__foto { border-radius: 0 0 46% 46% / 0 0 18% 18%; overflow: hidden; background: var(--abissal); }
.escritorio__foto img { width: 100%; aspect-ratio: 3 / 2.15; object-fit: cover; object-position: 50% 0; }

.proposito {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  padding-top: 36px; border-top: 1.5px solid rgba(3, 60, 66, .22);
}
.proposito h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--petroleo); }
.proposito p { margin-top: 10px; max-width: 52ch; }

.subtitulo { margin-top: clamp(56px, 7vw, 96px); margin-bottom: 28px; color: var(--petroleo); }

.valores { display: grid; grid-template-columns: 1fr 1fr; }
.valor {
  padding: clamp(28px, 4vw, 52px);
  background: var(--abissal); color: var(--marfim);
  min-height: 220px;
}
.valor h4 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ouro); }
.valor p { margin-top: 12px; max-width: 44ch; }
.valor--ouro { background: var(--ouro); color: var(--tinta); }
.valor--ouro h4 { color: var(--abissal); }
.valor--base { border-radius: 0 0 44% 0 / 0 0 70% 0; padding-right: clamp(48px, 9vw, 130px); }

/* ---------- Áreas ---------- */

.areas { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); }

.areas__lista { display: flex; flex-direction: column; border-top: 1px solid rgba(242, 208, 142, .2); }
.areas__lista button {
  position: relative;
  padding: 16px 0 16px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid rgba(242, 208, 142, .2);
  font-family: var(--display); font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.15;
  color: rgba(246, 235, 208, .55); cursor: pointer;
  transition: color .3s;
}
.areas__lista button span { display: inline-block; transition: transform .45s var(--suave); }
.areas__lista button[aria-selected="true"] span { transform: translateX(28px); }
.areas__lista button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 15px; margin-top: -8px;
  background: var(--ouro); border-radius: 0 0 50% 50% / 0 0 40% 40%;
  transform: scale(0); transition: transform .45s var(--suave);
}
.areas__lista button:hover { color: var(--marfim); }
.areas__lista button[aria-selected="true"] { color: var(--ouro); }
.areas__lista button[aria-selected="true"]::before { transform: scale(1); }

.painel {
  padding: clamp(28px, 4vw, 56px);
  background: var(--petroleo);
  border-radius: 0 0 0 0 / 0;
  border-bottom-right-radius: 120px 150px;
  min-height: 100%;
  animation: painel .6s var(--suave);
}
.painel[hidden] { display: none; }
.painel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.08; color: var(--ouro); }
.painel > p { margin-top: 18px; max-width: 58ch; font-size: 1.1rem; }
.temas { margin: 28px 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.temas li {
  padding: 7px 14px; font-size: .95rem;
  border: 1px solid rgba(151, 186, 152, .55); color: #cfe3cf;
  border-radius: 0 0 12px 12px;
}
@keyframes painel { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Sócios ---------- */

.socios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.socio { scroll-margin-top: calc(var(--topo-h) + 24px); }
.socio__foto { overflow: hidden; border-radius: var(--escudo); background: var(--abissal); }
.socio__foto img {
  width: 100%; aspect-ratio: 440 / 493; object-fit: cover; object-position: 50% 0;
  transition: transform 1.1s var(--suave);
}
.socio:hover .socio__foto img { transform: scale(1.05); }
.socio h3 { margin-top: 22px; font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; color: var(--ouro); }
.socio__oab { margin-top: 6px; font-size: .92rem; font-weight: 600; color: var(--salvia); }
.socio__resumo { margin-top: 12px; font-size: 1rem; }
.socio details { margin-top: 14px; border-top: 1px solid rgba(242, 208, 142, .22); }
.socio summary {
  padding: 12px 0; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ouro);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.socio summary::-webkit-details-marker { display: none; }
.socio summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--suave);
}
.socio details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.socio details p { padding-bottom: 12px; font-size: .97rem; opacity: .9; }
.socio:target .socio__foto { box-shadow: 0 0 0 3px var(--ouro); }

/* Controles do carrossel (só aparecem no celular) */
.socios__controles { display: none; }
.socios__seta {
  position: relative; width: 48px; height: 48px; flex: none; cursor: pointer;
  background: none; color: var(--ouro); border: 0; padding: 0;
  transition: opacity .25s, transform .25s var(--suave);
}
.socios__seta::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translate(-70%, -50%) rotate(-45deg);
}
.socios__seta--volta::before { transform: translate(-30%, -50%) rotate(135deg); }
.socios__seta { margin-right: -14px; }
.socios__seta--volta { margin: 0 0 0 -14px; }
.socios__seta:active { transform: translateX(4px); }
.socios__seta--volta:active { transform: translateX(-4px); }
.socios__seta:disabled { opacity: .28; cursor: default; }
.socios__pontos { display: flex; align-items: center; }
/* O botão é a área de toque; o ponto visível é o ::before */
.socios__ponto {
  display: grid; place-items: center; width: 30px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.socios__ponto::before {
  content: ""; width: 8px; height: 8px; border-radius: 4px;
  background: rgba(242, 208, 142, .35);
  transition: width .4s var(--suave), background-color .3s;
}
.socios__ponto[aria-current="true"] { width: 44px; }
.socios__ponto[aria-current="true"]::before { width: 26px; background: var(--ouro); }

/* ---------- Conteúdo ---------- */

.pautas { border-top: 1.5px solid rgba(3, 60, 66, .22); }
.pautas li {
  display: grid; grid-template-columns: minmax(150px, .28fr) 1fr; gap: 12px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1.5px solid rgba(3, 60, 66, .22);
}
.pautas__area { font-weight: 600; font-size: .95rem; color: #2f6b62; }
.pautas__titulo { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--petroleo); }

/* ---------- Contato ---------- */

.contato { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

.form { display: grid; gap: 22px; scroll-margin-top: calc(var(--topo-h) + 24px); }
.campo { display: grid; gap: 8px; }
.campo label { font-weight: 600; font-size: .98rem; color: var(--ouro); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 14px 16px;
  background: var(--abissal); color: var(--marfim);
  border: 1.5px solid rgba(242, 208, 142, .28); border-radius: 0;
  transition: border-color .25s, background-color .25s;
}
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: rgba(242, 208, 142, .6); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--ouro); background: #01272a; }
.campo [aria-invalid="true"] { border-color: var(--alerta); }
.campo__erro { font-size: .93rem; color: var(--alerta); }
.form .botao { justify-self: start; }
.form__nota { font-size: .9rem; max-width: 56ch; color: rgba(246, 235, 208, .72); }

.contato__lado { display: grid; gap: 32px; }

.alerta { padding: clamp(24px, 3vw, 36px); background: var(--abissal); border-top: 4px solid var(--alerta); }
.alerta h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--alerta); }
.alerta > p { margin-top: 10px; font-size: .98rem; }
.oficiais { margin-top: 18px; }
.oficiais li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 11px 0; border-top: 1px solid rgba(242, 208, 142, .18);
}
.oficiais a { font-weight: 600; color: var(--ouro); text-decoration: none; font-variant-numeric: tabular-nums; }
.oficiais a:hover { text-decoration: underline; text-underline-offset: 4px; }

.enderecos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.enderecos h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ouro); margin-bottom: 8px; }
.enderecos address { margin-bottom: 8px; }
.enderecos p { line-height: 1.9; }

.mapa { margin-top: clamp(48px, 6vw, 80px); border-radius: 0 0 46% 46% / 0 0 26% 26%; overflow: hidden; background: var(--abissal); }
.mapa iframe { display: block; width: 100%; height: clamp(300px, 38vw, 440px); border: 0; }

/* ---------- Rodapé ---------- */

.rodape { background: var(--abissal); padding-block: 56px 28px; font-size: .96rem; color: rgba(246, 235, 208, .8); }
.rodape__grade { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
.rodape__marca img { width: 124px; border-radius: 50%; }
.rodape__nome { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: var(--ouro); margin-bottom: 10px; }
.rodape__nav { display: grid; gap: 8px; }
.rodape__nav a { text-decoration: none; }
.rodape__nav a:hover { color: var(--ouro); }
.rodape__legal {
  margin: 40px 0 0; padding-top: 28px; border-top: 1px solid rgba(242, 208, 142, .16);
  display: grid; grid-template-columns: 1.1fr .7fr 1.6fr 1.3fr; gap: 20px clamp(20px, 3vw, 44px);
  font-size: .9rem;
}
.rodape__legal dt { font-weight: 600; color: var(--salvia); margin-bottom: 4px; }
.rodape__legal dd { margin: 0; color: var(--marfim); }
.rodape__legal div:nth-child(2) dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rodape__base {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(242, 208, 142, .16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .88rem;
}

/* ---------- Telas menores ---------- */

@media (max-width: 1040px) {
  .socios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 18px; }
  .nav > a:not(.botao) { font-size: .9rem; }
}

@media (max-width: 900px) {
  :root { --topo-h: 70px; }

  .topo__menu {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 0; cursor: pointer; color: var(--ouro);
  }
  .topo__menu-barras, .topo__menu-barras::before, .topo__menu-barras::after {
    display: block; width: 26px; height: 2px; background: currentColor;
    transition: transform .35s var(--suave), background-color .2s;
  }
  .topo__menu-barras { position: relative; }
  .topo__menu-barras::before, .topo__menu-barras::after { content: ""; position: absolute; left: 0; }
  .topo__menu-barras::before { top: -8px; }
  .topo__menu-barras::after { top: 8px; }
  .topo__menu[aria-expanded="true"] .topo__menu-barras { background: transparent; }
  .topo__menu[aria-expanded="true"] .topo__menu-barras::before { transform: translateY(8px) rotate(45deg); }
  .topo__menu[aria-expanded="true"] .topo__menu-barras::after { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--topo-h) 0 0 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
    padding: 28px clamp(20px, 5vw, 56px) 40px;
    background: var(--abissal);
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity .3s, transform .4s var(--suave), visibility 0s .4s;
    overflow-y: auto;
  }
  .nav.aberta { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav > a:not(.botao) { font-family: var(--display); font-size: 1.8rem; padding: 10px 0; color: var(--ouro); }
  .nav__cta { margin-top: 20px; }
  .topo.menu-aberto { background: var(--abissal); }
  .topo.rolou::before { transform: none; }
  .topo.rolou .topo__linha { transform: none; }

  .heroi { min-height: 0; }
  .heroi__grade { grid-template-columns: 1fr; }
  .brasao { width: min(78%, 300px); }

  .escritorio { grid-template-columns: 1fr; }
  .escritorio__foto { order: -1; }

  .areas { grid-template-columns: 1fr; }
  .areas__lista {
    flex-direction: row; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 8px;
    margin-inline: calc(clamp(20px, 5vw, 56px) * -1); padding-inline: clamp(20px, 5vw, 56px);
    scrollbar-width: none;
  }
  .areas__lista::-webkit-scrollbar { display: none; }
  .areas__lista button {
    flex: none; padding: 10px 18px; font-size: 1.1rem;
    border: 1px solid rgba(242, 208, 142, .3); border-radius: 0 0 14px 14px;
  }
  .areas__lista button::before { display: none; }
  .areas__lista button[aria-selected="true"] span { transform: none; }
  .areas__lista button[aria-selected="true"] { background: var(--ouro); color: var(--abissal); border-color: var(--ouro); }
  .painel { border-bottom-right-radius: 80px 100px; }

  .contato { grid-template-columns: 1fr; }
  .rodape__grade { grid-template-columns: 1fr; justify-items: start; }
  .rodape__legal { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .proposito, .valores, .enderecos, .rodape__legal { grid-template-columns: 1fr; }
  .valor { min-height: 0; }
  .valor:nth-child(3) { background: var(--ouro); color: var(--tinta); }
  .valor:nth-child(3) h4 { color: var(--abissal); }
  .valor--base { background: var(--abissal); color: var(--marfim); border-radius: 0 0 50% 50% / 0 0 30% 30%; padding-right: clamp(28px, 4vw, 52px); padding-bottom: 72px; }
  .valor--base h4 { color: var(--ouro); }
  /* Sócios em carrossel: um por vez, com o próximo aparecendo na borda */
  .socios {
    display: flex; align-items: flex-start; gap: 18px;
    margin-inline: calc(clamp(20px, 5vw, 56px) * -1);
    padding-inline: clamp(20px, 5vw, 56px);
    scroll-padding-inline: clamp(20px, 5vw, 56px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .socios::-webkit-scrollbar { display: none; }
  .socios.arrastando { scroll-snap-type: none; cursor: grabbing; }
  .socio { flex: 0 0 80%; scroll-snap-align: start; }
  .js .socio[data-reveal] { opacity: 1; transform: none; transition: none; }
  .socio:hover .socio__foto img { transform: none; }
  .socios__controles { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
  .pautas li { grid-template-columns: 1fr; gap: 4px; }
  .heroi__acoes .botao { width: 100%; }
  .form .botao { justify-self: stretch; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .linha > span { transform: none; }
  .js .heroi__apoio, .js .heroi__acoes, .js .brasao__escudo, .js .brasao__coroa,
  .js .brasao__nomes, .js .brasao__dica, .js [data-reveal], .js [data-reveal] > * { opacity: 1; transform: none; clip-path: none; }
  .faixa__trilho { flex-wrap: wrap; width: auto; justify-content: center; }
  .faixa__trilho span:nth-child(n+9) { display: none; }
}
