/* ============================================================
   GO. Advocacia — home (versão 5, a partir do desenho
   "Reestruturação home GO Advocacia").
   Papel e grafite, dourado só em acento. Botões arredondados.
   ============================================================ */

:root {
  --papel: #F1EFE9;
  --papel-alto: #F8F6F1;
  --tinta: #1B2028;
  --tinta-2: #4A5158;
  --tinta-3: #5E646B;
  --dourado: #A67C4A;
  --ouro-texto: #7F5C33;
  --ouro: #C79A5F;
  --marfim: #EDEAE3;
  --marfim-2: rgba(237, 234, 227, 0.74);
  --linha: rgba(27, 32, 40, 0.14);
  --linha-escura: rgba(237, 234, 227, 0.16);
  --serifa: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --margem: clamp(20px, 5vw, 80px);
  --secao: clamp(64px, 7.5vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body.h {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.h.h-travado { overflow: hidden; }
:where(.h) :is(h1, h2, h3, h4) { font-family: var(--serifa); font-weight: 400; margin: 0; text-wrap: balance; }
:where(.h) p { margin: 0; text-wrap: pretty; }
:where(.h) :is(ul, ol, dl, dd) { margin: 0; padding: 0; list-style: none; }
:where(.h) a { color: inherit; text-decoration: none; }
:where(.h) img { max-width: 100%; display: block; }
.h ::selection { background: var(--dourado); color: var(--papel); }
.h a:focus-visible, .h button:focus-visible, .h summary:focus-visible,
.h input:focus-visible, .h select:focus-visible, .h textarea:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

.h-so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-pular { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--tinta); color: var(--papel) !important; padding: 10px 16px; border-radius: 999px; }
.h-pular:focus { top: 12px; }

.h-miolo { max-width: 1200px; margin: 0 auto; }

/* ---------- Botões e links ---------- */

.h-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 24px 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel) !important;
  font: 500 15px/1.2 var(--sans);
  cursor: pointer;
  transition: background 0.2s ease;
}
.h-botao:hover { background: #343c48; }
.h-botao svg { flex: none; transition: transform 0.2s ease; }
.h-botao:hover svg { transform: translateX(3px); }
.h-botao--menor { min-height: 48px; padding: 12px 22px 12px 26px; gap: 12px; }
.h-botao--claro { background: var(--marfim); color: var(--tinta) !important; }
.h-botao--claro:hover { background: #ffffff; }
.h-botao--vazado { background: none; color: var(--tinta) !important; border: 1px solid var(--tinta); }
.h-botao--vazado:hover { background: var(--tinta); color: var(--papel) !important; }
.h-botao[disabled] { opacity: 0.6; cursor: progress; }

.h-link { text-decoration: underline !important; text-decoration-color: var(--dourado) !important; text-underline-offset: 5px; transition: color 0.2s ease; }
.h-link:hover { color: var(--ouro-texto); }
.h-link-ouro { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ouro-texto) !important; }
.h-link-ouro svg { transition: transform 0.2s ease; }
.h-link-ouro:hover svg { transform: translateX(3px); }

.h-acoes { margin-top: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }

/* ---------- Cabeçalho ---------- */

.h-topo { position: sticky; top: 0; z-index: 50; background: var(--papel); border-bottom: 1px solid var(--linha); padding: 0 var(--margem); }
.h-topo__miolo { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.h-topo__marca { display: block; padding: 6px 0; }
.h-topo__marca img { height: 30px; width: auto; }

.h-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.h-nav__item { position: relative; display: flex; align-items: center; }
.h-nav__link { padding: 10px 6px 10px 12px; font-size: 15px; transition: color 0.2s ease; }
.h-nav__link--so { padding-right: 12px; }
.h-nav__link:hover { color: var(--ouro-texto); }
.h-nav__abrir { appearance: none; border: 0; background: none; padding: 10px 10px 10px 2px; color: var(--tinta-2); cursor: pointer; display: inline-flex; }
.h-nav__abrir svg { transition: transform 0.2s ease; }
.h-tem-sub.is-open .h-nav__abrir svg { transform: rotate(180deg); }
.h-sub { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px 0; background: var(--papel-alto); border: 1px solid var(--linha); border-radius: 12px; display: none; flex-direction: column; box-shadow: 0 18px 40px -28px rgba(18, 22, 28, 0.45); }
.h-sub a { padding: 10px 18px; font-size: 15px; transition: color 0.15s ease, background 0.15s ease; }
.h-sub a:hover { color: var(--ouro-texto); background: rgba(27, 32, 40, 0.04); }
.h-tem-sub.is-open .h-sub, .h-tem-sub:focus-within .h-sub { display: flex; }
@media (hover: hover) { .h-tem-sub:hover .h-sub { display: flex; } }
.h-nav__contato { margin-left: 16px; padding: 9px 20px; border: 1px solid var(--tinta); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease; }
.h-nav__contato:hover { background: var(--tinta); color: var(--papel) !important; }

.h-topo__menu { display: none; margin-left: auto; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--tinta); border-radius: 999px; font-size: 15px; font-weight: 500; }
.h-topo__menu i { display: inline-block; width: 15px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

.h-gaveta { position: fixed; inset: 0; z-index: 100; background: var(--papel); overflow-y: auto; padding: 0 var(--margem) 48px; }
.h-gaveta[hidden] { display: none; }
.h-gaveta__topo { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--linha); }
.h-gaveta__topo img { height: 28px; width: auto; }
.h-gaveta__fechar { appearance: none; border: 1px solid var(--tinta); border-radius: 999px; background: none; color: var(--tinta); font: 500 15px/1 var(--sans); padding: 10px 16px; cursor: pointer; }
.h-gaveta__grupo { padding: 22px 0 8px; border-bottom: 1px solid var(--linha); }
.h-gaveta__grupo p { font-size: 14px; color: var(--tinta-3); margin-bottom: 4px; }
.h-gaveta__grupo a { display: block; padding: 8px 0; font-family: var(--serifa); font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.h-gaveta__acoes { display: grid; gap: 12px; margin-top: 28px; }

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

.h-secao { padding: var(--secao) var(--margem); }
.h-secao--colada { padding-top: 0; }
.h-filete { border-top: 1px solid var(--linha); padding-top: 28px; }
.h-secao__grade { display: flex; flex-wrap: wrap; gap: 20px 24px; }
.h-rubrica { flex: 1 1 220px; align-self: flex-start; font-size: 15px; font-weight: 500; line-height: 1.4; }
.h-conteudo { flex: 999 1 560px; min-width: 0; }
.h-titulo-2 { font-size: clamp(29px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.028em; max-width: 22em; }
.h-abertura { margin-top: 18px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--tinta-2); max-width: 36em; }

.h-escuro { background: var(--tinta); color: var(--marfim); }
.h-escuro .h-abertura { color: var(--marfim-2); }
.h-alto { background: var(--papel-alto); }

/* ---------- Hero ---------- */

.h-hero { padding: clamp(56px, 7vw, 96px) var(--margem) clamp(56px, 7vw, 88px); }
.h-hero__grade { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 56px 48px; }
.h-hero__texto { flex: 999 1 520px; min-width: 0; }
.h-hero__local { font-size: 15px; color: var(--tinta-2); margin-bottom: 28px; }
.h-hero__titulo { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.03; letter-spacing: -0.035em; max-width: 12.5em; }
.h-hero__sub { margin-top: 28px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--tinta-2); max-width: 36em; }

.h-retrato { flex: 0 1 360px; min-width: 0; margin: 0 12px 0 0; }

/* Moldura: filete dourado a 12px da foto, como passe-partout. */
.h-moldura { position: relative; }
.h-moldura::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(166, 124, 74, 0.6);
  pointer-events: none;
}
.h-moldura::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -16px;
  width: 9px;
  height: 9px;
  background: var(--dourado);
  pointer-events: none;
}
.h-retrato img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; background: #1f2a44; }
.h-retrato figcaption { margin-top: 26px; font-size: 14px; line-height: 1.5; color: var(--tinta-3); }
.h-retrato figcaption b { display: block; font-weight: 500; color: var(--tinta); }

.h-cartao {
  position: absolute;
  left: clamp(-64px, -4.4vw, -16px);
  bottom: 28px;
  z-index: 2;
  width: min(230px, 78%);
  background: var(--papel-alto);
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px -24px rgba(18, 22, 28, 0.45);
}
.h-cartao__titulo { font-family: var(--serifa); font-size: 19px; line-height: 1.2; letter-spacing: -0.012em; }
.h-cartao__texto { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ouro-texto); }

/* ---------- Prova ---------- */

.h-prova { background: var(--tinta); color: var(--marfim); padding: clamp(56px, 6.5vw, 88px) var(--margem); }
.h-prova__grade { display: flex; flex-wrap: wrap; gap: 48px 24px; }
.h-prova__numero { flex: 1 1 300px; min-width: 0; }
.h-prova__numero h2 { font-weight: 400; }
.h-prova__grande { display: block; font-weight: 300; font-size: clamp(56px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.04em; color: var(--ouro); }
.h-prova__rotulo { display: block; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -0.018em; max-width: 14em; }
.h-prova__sub { margin-top: 14px; font-size: 16px; color: var(--marfim-2); max-width: 26em; }
.h-prova__lista { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; border-top: 1px solid var(--linha-escura); }
.h-prova__lista li { padding: 20px 0; border-bottom: 1px solid var(--linha-escura); font-size: 16px; line-height: 1.55; }

/* ---------- Frases e painel ---------- */

.h-frases { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.h-frases__lista { flex: 1.2 1 340px; min-width: 0; border-top: 1px solid var(--tinta); }
.h-frase {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--linha);
  font-family: var(--serifa);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tinta-3);
  transition: color 0.2s ease;
}
.h-frase:hover, .h-frase.is-ativa { color: var(--tinta); }
.h-frase__texto { text-indent: -0.42em; }
.h-frase__seta { color: var(--dourado); display: flex; opacity: 0; transition: opacity 0.2s ease; }
.h-frase.is-ativa .h-frase__seta { opacity: 1; }

.h-paineis { flex: 1 1 320px; min-width: 0; position: sticky; top: 104px; }
.h-painel { background: var(--papel-alto); border: 1px solid var(--linha); border-radius: 14px; padding: clamp(24px, 3vw, 36px); }
.h-painel[hidden] { display: none; }
.h-painel__pre { font-size: 14px; color: var(--tinta-3); }
.h-painel h3 { margin-top: 6px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.h-painel__desc { margin-top: 14px; color: var(--tinta-2); }
.h-painel__rotulo { margin-top: 24px; font-size: 14px; font-weight: 500; }
.h-painel__itens { margin-top: 8px !important; border-top: 1px solid var(--linha); }
.h-painel__itens li { padding: 9px 0; border-bottom: 1px solid var(--linha); font-size: 15px; color: var(--tinta-2); }
.h-painel__docs { margin-top: 8px !important; }
.h-painel__docs li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 15px; color: var(--tinta-2); }
.h-painel__docs li::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--dourado); flex: none; transform: translateY(1px); }
.h-painel__acoes { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.h-nota { margin-top: 24px; max-width: 40em; font-size: 14px; color: var(--tinta-3); }

/* ---------- Atuação: linha do tempo e lista ---------- */

/* Linha do tempo v4: duas fases lado a lado, separadas por um losango.
   Prevenção em dourado, círculos vazados e traço contínuo; contencioso em
   grafite, círculos cheios e traço tracejado. */
.h-tempo { margin-top: 56px; margin-bottom: 8px; }
.h-tempo__titulo { font-size: 14px; color: var(--tinta-3); margin-bottom: 22px; }
.h-tempo__grade { display: flex; }
.h-fase { position: relative; min-width: 0; flex: 1 1 0; }
.h-fase--cont { padding-left: 28px; border-left: 1px solid var(--tinta); }
.h-fase--cont::before { content: ""; position: absolute; left: -7px; top: 37px; width: 13px; height: 13px; background: var(--tinta); transform: rotate(45deg); }
.h-fase__nome { font-family: 'Instrument Serif', Georgia, serif !important; font-style: italic; font-size: 22px; line-height: 24px; letter-spacing: 0; margin: 0 0 14px !important; color: var(--ouro-texto); white-space: nowrap; }
.h-fase--cont .h-fase__nome { color: var(--tinta); }
.h-fase__pontos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h-fase__pontos li { min-width: 0; }
.h-pt { position: relative; display: flex; align-items: center; height: 12px; }
.h-pt i { flex: none; width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--dourado); background: var(--papel); }
.h-pt b { flex: 1; height: 2px; background: var(--dourado); }
.h-fase--cont .h-pt i { background: var(--tinta); border-color: var(--tinta); }
.h-fase--cont .h-pt b { height: 0; background: none; border-top: 2px dashed var(--tinta); }
.h-fase--cont li:first-child .h-pt::before { content: ""; position: absolute; left: -28px; width: 28px; top: 5px; border-top: 2px dashed var(--tinta); }
.h-fase__pontos p { margin: 10px 12px 0 0; font-size: 14px; line-height: 1.35; color: var(--tinta-2); }

.h-areas { margin-top: 48px; border-top: 1px solid var(--tinta); }
.h-area { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 28px 0; border-bottom: 1px solid var(--linha); scroll-margin-top: 100px; }
.h-area > div:first-child { flex: 1 1 260px; min-width: 0; }
.h-area > div:last-child { flex: 1.4 1 300px; min-width: 0; }
.h-area h3 { font-size: clamp(22px, 2.1vw, 26px); line-height: 1.2; letter-spacing: -0.018em; }
.h-area h3 a:hover { color: var(--ouro-texto); }
.h-area .h-link-ouro { margin-top: 14px; }
.h-area p { color: var(--tinta-2); }
.h-area .h-area__itens { margin-top: 12px; font-size: 14px; color: var(--tinta-3); }

/* ---------- Método ---------- */

.h-metodo__fluxo { display: block; margin-top: 56px; max-width: 870px; overflow: visible; }
.h-etapas { margin-top: 28px !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.h-etapas li { border-top: 1px solid var(--linha-escura); padding-top: 20px; }
.h-etapas h3 { font-size: 21px; line-height: 1.25; margin-bottom: 12px; }
.h-etapas p { font-size: 16px; color: var(--marfim-2); }
.h-etapa__num { display: none; }

/* ---------- Artigos ---------- */

.h-artigos { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 24px; }
.h-artigo { display: flex; flex-direction: column; border-top: 1px solid var(--tinta); padding-top: 20px; }
.h-artigo__tema { font-size: 14px; color: var(--ouro-texto); margin-bottom: 10px; }
.h-artigo h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.012em; transition: color 0.2s ease; }
.h-artigo:hover h3 { color: var(--ouro-texto); }
.h-artigo p { margin-top: 12px; font-size: 15.5px; color: var(--tinta-2); }
.h-artigos__todos { margin-top: 36px; }

/* ---------- Perguntas ---------- */

.h-perguntas { margin-top: 48px; border-top: 1px solid var(--linha); }
.h-pergunta { border-bottom: 1px solid var(--linha); }
.h-pergunta summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serifa);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.h-pergunta summary::-webkit-details-marker { display: none; }
.h-pergunta summary:hover { color: var(--ouro-texto); }
.h-sinal { position: relative; flex: none; width: 14px; height: 14px; }
.h-sinal::before, .h-sinal::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.3px; background: var(--ouro-texto); transition: transform 0.2s ease; }
.h-sinal::after { transform: rotate(90deg); }
.h-pergunta[open] .h-sinal::after { transform: rotate(0deg); }
.h-pergunta > p { padding: 0 44px 26px 0; max-width: 46em; color: var(--tinta-2); }

/* ---------- Sobre ---------- */

.h-sobre { display: flex; flex-wrap: wrap; gap: 48px 56px; }
.h-sobre__texto { flex: 1.4 1 340px; min-width: 0; }
.h-ficha { margin-top: 36px !important; border-top: 1px solid var(--tinta); }
.h-ficha div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.h-ficha dt { flex: 0 0 120px; font-size: 14px; color: var(--tinta-3); padding-top: 2px; }
.h-ficha dd { flex: 1 1 240px; font-size: 16px; }
.h-sobre__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.h-sobre__foto { flex: 1.1 1 380px; min-width: 0; margin: 12px 12px 0; align-self: flex-start; }

.h-sobre__foto .h-moldura::after { display: none; }
.h-sobre__foto figcaption { margin-top: 26px; font-size: 14px; line-height: 1.5; color: var(--tinta-3); }

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

.h-contato { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.h-canais { flex: 4 1 260px; min-width: 0; align-self: flex-start; border-top: 1px solid var(--linha-escura); }
.h-canais div { padding: 14px 0; border-bottom: 1px solid var(--linha-escura); }
.h-canais dt { font-size: 14px; color: rgba(237, 234, 227, 0.62); }
.h-canais dd { margin-top: 2px !important; font-size: 16px; overflow-wrap: anywhere; }
.h-canais a { text-decoration: underline; text-decoration-color: rgba(199, 154, 95, 0.5); text-underline-offset: 4px; }
.h-canais a:hover { color: var(--ouro); }

.h-form { flex: 5 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px 24px; }
.h-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.h-campo--largo { grid-column: 1 / -1; }
.h-campo span { font-size: 14px; color: rgba(237, 234, 227, 0.7); }
.h-campo input, .h-campo select, .h-campo textarea {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(237, 234, 227, 0.32);
  border-radius: 0;
  padding: 10px 0;
  color: var(--marfim);
  font: 17px/1.4 var(--sans);
  outline: none;
  transition: border-color 0.2s ease;
}
.h-campo textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.h-campo select option { background: var(--tinta); color: var(--marfim); }
.h-campo input::placeholder, .h-campo textarea::placeholder { color: rgba(237, 234, 227, 0.56); }
.h-campo input:focus, .h-campo select:focus, .h-campo textarea:focus { border-bottom-color: var(--ouro); }
.h-campo input:focus-visible, .h-campo select:focus-visible, .h-campo textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--ouro); }
.h-form__fim { grid-column: 1 / -1; display: grid; gap: 14px; }
.h-form__fim .h-botao { justify-self: start; }
.h-form__aviso { font-size: 14px; color: rgba(237, 234, 227, 0.62); }
.h [data-form-status] { font-size: 15px; padding: 12px 14px; border: 1px solid var(--linha-escura); border-radius: 10px; }
.h [data-form-status][data-state="ok"] { border-color: var(--ouro); }
.h [data-form-status][data-state="erro"] { border-color: #d98c7a; }
.h [data-form-status][hidden] { display: none; }

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

.h-rodape { background: var(--tinta); color: var(--marfim); padding: 0 var(--margem) 48px; }
.h-rodape__grade { border-top: 1px solid var(--linha-escura); padding-top: 56px; display: flex; flex-wrap: wrap; gap: 40px 24px; }
.h-rodape__marca { flex: 2.5 1 300px; min-width: 0; }
.h-rodape__marca img { height: 30px; width: auto; margin-bottom: 24px; }
.h-rodape__marca p { font-size: 14.5px; color: var(--marfim-2); }
.h-rodape__marca p + p { margin-top: 14px; }
.h-rodape__col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.h-rodape__col--largo { flex: 1.5 1 220px; overflow-wrap: anywhere; }
.h-rodape__col h2 { font-family: var(--sans) !important; font-size: 14px; font-weight: 500 !important; color: rgba(237, 234, 227, 0.6); margin-bottom: 6px !important; }
.h-rodape__col a:hover { color: var(--ouro); }
.h-rodape__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linha-escura); display: grid; gap: 8px; font-size: 13.5px; line-height: 1.6; color: rgba(237, 234, 227, 0.6); }

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .h-nav { display: none; }
  .h-topo__menu { display: inline-flex; }
}

@media (max-width: 760px) {
  .h-retrato { flex-basis: 100%; max-width: 384px; margin: 0 12px; }
  .h-cartao { left: -8px; bottom: 20px; }
  .h-paineis { position: static; }
  .h-prova__lista { grid-template-columns: 1fr; }

  /* Método: o diagrama sai e cada etapa ganha seu círculo */
  .h-metodo__fluxo { display: none; }
  .h-etapas { grid-template-columns: 1fr; gap: 0; margin-top: 40px !important; }
  .h-etapas li { position: relative; border-top: 0; padding: 0 0 32px 76px; min-height: 56px; }
  .h-etapas li:last-child { padding-bottom: 0; }
  .h-etapas li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 66px; bottom: 10px; width: 1px; background: var(--ouro); }
  .h-etapa__num { display: flex; position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%; border: 1.2px solid var(--ouro); align-items: center; justify-content: center; font-family: var(--serifa); font-weight: 300; font-size: 24px; color: var(--ouro); }
  .h-etapa__num--fim { background: var(--ouro); color: var(--tinta); }
  .h-etapas h3 { padding-top: 12px; }

  .h-pergunta > p { padding-right: 0; }
  .h-sobre__foto { max-width: none; }
}

@media (max-width: 520px) {
  .h-acoes .h-botao { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .h *, .h *::before, .h *::after { transition: none !important; }
}

/* Sanfona de fotos do escritório: a foto sob o mouse (ou tocada) abre. */
.h-retrato__sobre { display: block; width: fit-content; margin-top: 12px; font-size: 15px; color: var(--tinta) !important; }
.h-sanfona { display: flex; gap: 6px; height: clamp(320px, 38vw, 480px); }
.h-sanfona__item { appearance: none; border: 0; padding: 0; margin: 0; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; background: #d9d6cf; transition: flex-grow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.h-sanfona__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: saturate(0.85); transition: filter 0.4s ease; }
.h-sanfona__item.is-ativa { flex-grow: 4; }
.h-sanfona__item.is-ativa img { filter: none; }
@media (hover: hover) {
  .h-sanfona:hover .h-sanfona__item { flex-grow: 1; }
  .h-sanfona:hover .h-sanfona__item:hover { flex-grow: 4; }
  .h-sanfona:hover .h-sanfona__item:hover img { filter: none; }
}
@media (max-width: 760px) { .h-sanfona { height: 340px; gap: 4px; } }

/* Bloco do escritório: título e apresentação em duas colunas, galeria
   na largura toda e os dados práticos numa faixa de quatro colunas. */
.h-esc__topo { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.h-esc__titulo { flex: 1 1 380px; min-width: 0; }
.h-esc__rubrica { font-size: 15px; font-weight: 500; margin-bottom: 16px !important; }
.h-esc__texto { flex: 1.2 1 420px; min-width: 0; display: grid; gap: 16px; font-size: 18px; line-height: 1.65; color: var(--tinta-2); padding-top: 38px; }
.h-esc__galeria { margin: 56px 12px 0; }
.h-esc__galeria .h-moldura::after { display: none; }
.h-esc__galeria .h-sanfona { height: clamp(300px, 34vw, 460px); }
.h-esc__galeria figcaption { margin-top: 24px; font-size: 14px; color: var(--tinta-3); }
.h-esc__dados { margin-top: 40px !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--tinta); padding-top: 22px; }
.h-esc__dados dt { font-size: 14px; color: var(--tinta-3); }
.h-esc__dados dd { margin-top: 6px !important; font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) { .h-esc__dados { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-esc__texto { padding-top: 0; } }
@media (max-width: 520px) { .h-esc__dados { grid-template-columns: 1fr; } }

/* Cabeçalho e rodapé reaproveitados nas páginas internas */
.h-topo, .h-rodape, .h-gaveta { font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.h-rodape { font-size: 17px; }
.h-topo { color: var(--tinta); }

/* Linha do tempo: abaixo de 1000px as duas fases empilham e os pontos viram lista vertical. */
@media (max-width: 1000px) {
  .h-tempo__grade { display: block; }
  .h-fase--cont { padding: 28px 0 0; margin-top: 32px; border-left: 0; border-top: 1px solid var(--tinta); }
  .h-fase--cont::before { left: 0; top: -7px; }
  .h-fase__nome { white-space: normal; }
  .h-fase__pontos { display: block; }
  .h-fase__pontos li { display: flex; gap: 16px; }
  .h-pt { flex-direction: column; align-items: center; width: 12px; height: auto; flex: none; }
  .h-pt b { flex: 1; width: 0; height: auto; min-height: 20px; margin-top: 4px; background: none; border-left: 2px solid var(--dourado); }
  .h-fase--cont .h-pt b { border-top: 0; border-left: 2px dashed var(--tinta); }
  .h-fase--cont li:first-child .h-pt::before { display: none; }
  .h-fase__pontos li:last-child .h-pt b { visibility: hidden; }
  .h-fase__pontos p { margin: -2px 0 18px; font-size: 15px; }
}
