/* ==========================================================================
   Antonio Mello Advocacia Especializada — estilos do site
   Tema escuro institucional: Source Serif 4 nos títulos, Manrope no texto,
   dourado em botões e detalhes. Linguagem sóbria: filetes, sem ornamentos.
   ========================================================================== */

/* ---------- Fontes (servidas pelo próprio site) ---------- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4-var.woff2') format('woff2-variations'), url('/fonts/source-serif-4-var.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-var.woff2') format('woff2-variations'), url('/fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #090B0F;
  --bg-2: #0E1218;
  --card: #131821;
  --line: #1F2630;
  --line-2: #2C3542;
  --line-ui: #66707F;

  --text: #F3F1EC;
  --text-2: #D2D6DD;
  --text-3: #A0A8B3;

  --gold: #C9A45C;
  --gold-2: #DDBB74;
  --on-gold: #17120A;
  --wordmark: #E2C15D;
  --danger: #F2958B;

  --f-serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --f-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.25rem, 1.5rem + 3.2vw, 4.1rem);
  --fs-h1: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-h3: clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --fs-lead: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.95rem;
  --fs-xs: 0.85rem;

  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 3rem);
  --maxw: 1200px;
  --section-y: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  --radius: 2px;
  --header-h: 76px;
  --t: 180ms ease;
}
@media (min-width: 1280px) { :root { --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font-family: var(--f-sans); font-size: var(--fs-body); font-weight: 400; line-height: 1.75;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.menu-aberto { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--text); }
p, ul, ol, figure, blockquote, h1, h2, h3, h4, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--gold); color: var(--on-gold); padding: 0.75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 500; color: var(--text); letter-spacing: -0.01em; text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.12; }
.h2 { font-size: var(--fs-h2); line-height: 1.18; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--text-2); }
p { text-wrap: pretty; }
.ouro { color: var(--gold-2); }
.rotulo { margin-bottom: 1rem; font-family: var(--f-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.kicker { margin-bottom: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--text-3); }
.nota { font-size: var(--fs-small); color: var(--text-3); }
.nowrap { white-space: nowrap; }
@media (min-width: 370px) { .nowrap-md { white-space: nowrap; } }
.mt-0 { margin-top: 0 !important; }

.prose { color: var(--text-2); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem); line-height: 1.25; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--gold); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section--borda { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 2.5rem var(--gutter); }
.grid > * { min-width: 0; }
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c-1-4 { grid-column: 1 / span 4; }
  .c-1-5 { grid-column: 1 / span 5; }
  .c-1-6 { grid-column: 1 / span 6; }
  .c-6-12 { grid-column: 6 / -1; }
  .c-7-12 { grid-column: 7 / -1; }
  .c-8-12 { grid-column: 8 / -1; }
  .c-5-12 { grid-column: 5 / -1; }
  .grid--centro { align-items: center; }
}
.texto > * + * { margin-top: 1.15rem; }
.texto .btn, .texto .acoes, .texto .link { margin-top: 2rem; }
.cabeca { margin-bottom: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.cabeca .lead { margin-top: 1rem; max-width: 46rem; }
.cabeca--linha { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; }
.cabeca--linha > div { max-width: 720px; }
.cabeca__aside { max-width: 380px; font-size: var(--fs-small); color: var(--text-3); }
.acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.foto { position: relative; border: 1px solid var(--line-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0.75rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--f-sans); font-size: 0.97rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn--primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--on-gold); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-ui); }
.btn--secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 700; color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(221, 187, 116, 0.4); text-underline-offset: 0.3em; }
.link:hover { color: var(--text); text-decoration-color: var(--text); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
/* O desfoque fica numa camada de fundo: backdrop-filter no próprio cabeçalho faria o menu
   do celular (position: fixed) se posicionar dentro dele em vez de ocupar a tela. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(9, 11, 15, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; flex: none; color: var(--wordmark); text-decoration: none; }
.brand:hover { color: var(--wordmark); }
.brand__symbol { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; align-items: center; gap: 0.36rem; }
.brand__wordmark svg { height: 16px; width: auto; }
/* A linha fica um pouco mais estreita que o nome (cerca de 90%) e centralizada; a margem
   negativa remove a sobra do espaçamento depois da última letra. */
.brand__tagline { --ls: 0.24em; font-family: var(--f-sans); font-weight: 500; font-size: 0.58rem; letter-spacing: var(--ls); margin-right: calc(var(--ls) * -1); text-transform: uppercase; color: var(--text-2); line-height: 1; white-space: nowrap; }
@media (min-width: 1280px) { .brand__symbol { height: 44px; } .brand__wordmark svg { height: 17px; } .brand__tagline { font-size: 0.61rem; --ls: 0.25em; } }

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.nav__link { position: relative; display: inline-block; padding: 0.5rem 0; font-size: 0.93rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color var(--t); }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); opacity: 0; transition: opacity var(--t); }
.nav__link:hover { color: var(--text); }
.nav__link[aria-current='page'] { color: var(--text); }
.nav__link[aria-current='page']::after { opacity: 1; }
.btn--header { display: none; flex: none; white-space: nowrap; min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
@media (min-width: 1280px) and (max-width: 1439px) { .nav__list { gap: 1.3rem; } .nav__link { font-size: 0.9rem; } }

.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; min-width: 48px; padding: 0 0.25rem 0 0.75rem; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 0.95rem; font-weight: 600; }
.menu-toggle__icon--fechar { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__icon--abrir { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__icon--fechar { display: block; }
@media (max-width: 380px) { .menu-toggle__label { display: none; } }
@media (min-width: 768px) and (max-width: 1279px) { .btn--header { display: inline-flex; margin-left: auto; } .menu-toggle { margin-left: 0; } }
@media (min-width: 1280px) { .nav, .btn--header { display: inline-flex; } .menu-toggle, .mobile-menu { display: none !important; } }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu__list { list-style: none; padding: 0; margin: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__link { display: block; padding: 0.9rem 0; font-family: var(--f-serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--text); text-decoration: none; }
.mobile-menu__link[aria-current='page'] { color: var(--gold-2); }
.mobile-menu__foot { padding-top: 2rem; display: grid; gap: 1.25rem; }
.mobile-menu__contacts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.mobile-menu__contacts a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: var(--fs-small); }

/* ---------- Abertura (Home): fotografia de fundo com filtro escuro ---------- */
.abertura { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); border-bottom: 1px solid var(--line); background: var(--bg); }
.abertura__fundo { position: absolute; inset: 0; z-index: -2; }
.abertura__fundo picture, .abertura__fundo img { width: 100%; height: 100%; max-width: none; }
.abertura__fundo img { object-fit: cover; object-position: 60% 50%; }
/* Celular: a foto aparece no alto e escurece por trás do texto */
.abertura::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.15) 0%, rgba(9, 11, 15, 0.6) 32%, rgba(9, 11, 15, 0.9) 52%, rgba(9, 11, 15, 0.97) 100%); }
.abertura__conteudo { flex: 1; display: flex; align-items: flex-end; padding-block: clamp(11rem, 36vh, 20rem) 3.5rem; }
.abertura__texto { max-width: 41rem; }
@media (min-width: 960px) {
  .abertura { min-height: min(calc(100svh - var(--header-h)), 900px); }
  .abertura::before { background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.95) 0%, rgba(9, 11, 15, 0.86) 32%, rgba(9, 11, 15, 0.5) 60%, rgba(9, 11, 15, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 11, 15, 0.9) 0%, rgba(9, 11, 15, 0) 32%); }
  .abertura__fundo img { object-position: 50% 60%; }
  .abertura__conteudo { align-items: center; padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
}
.abertura__titulo { font-size: var(--fs-hero); line-height: 1.1; letter-spacing: -0.015em; }
.abertura__lead { margin-top: 1.5rem; max-width: 34rem; color: var(--text-2); }
.abertura .acoes { margin-top: 2.25rem; }
@media (max-width: 479px) { .abertura .acoes .btn { width: 100%; } }
.abertura .btn--secondary { background: rgba(9, 11, 15, 0.35); border-color: rgba(243, 241, 236, 0.5); }
.abertura .btn--secondary:hover { border-color: var(--gold); color: var(--gold); }
.foto--paisagem img { aspect-ratio: 3 / 2; }

/* ---------- Citação ---------- */
.citacao { margin-top: 2rem; padding-left: 1.5rem; border-left: 2px solid var(--gold); }
.citacao p { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.55rem); line-height: 1.45; color: var(--text); }

/* ---------- Cartões de áreas (Home) ---------- */
.cartoes-areas { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .cartoes-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cartoes-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.cartao-area { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  background: #151B25; border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color var(--t); }
.cartao-area:hover, .cartao-area:focus-within { border-color: rgba(201, 164, 92, 0.45); }
.cartao-area__titulo { font-size: var(--fs-h3); line-height: 1.3; }
.cartao-area__texto { margin: 0.6rem 0 1.75rem; font-size: 0.97rem; line-height: 1.65; color: var(--text-3); }
.cartao-area__botao { margin-top: auto; }

/* Botão de contorno pequeno (com seta) */
.btn--contorno { min-height: 44px; padding: 0.55rem 1.15rem; gap: 0.5rem; font-size: 0.92rem; background: transparent; color: var(--text); border-color: var(--line-ui); }
.btn--contorno:hover { color: var(--gold-2); border-color: var(--gold); }
.btn--contorno .icon { transition: translate var(--t); }
.btn--contorno:hover .icon { translate: 3px 0; }

/* ---------- Etapas ---------- */
.passos { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.passo { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.passo__num { grid-row: span 2; font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.1; color: var(--gold-2); }
.passo__titulo { font-size: var(--fs-h3); line-height: 1.3; }
.passo__texto { font-size: 0.95rem; line-height: 1.6; color: var(--text-3); }
@media (min-width: 1000px) {
  .passos { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
  .passo { display: block; padding: 1.75rem 1.5rem 2rem; border-bottom: 0; }
  .passo:first-child { padding-left: 0; }
  .passo + .passo { border-left: 1px solid var(--line); }
  .passo__num { display: block; margin-bottom: 1.5rem; font-size: 1.9rem; }
  .passo__texto { margin-top: 0.5rem; }
}
.passos__legenda { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--text-3); }

/* ---------- Registro dos sistemas ---------- */
.registro { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 2.5rem; border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .registro { grid-template-columns: 1fr 1fr; } }
.registro li { border-bottom: 1px solid var(--line); }
.registro a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.85rem 0; color: inherit; text-decoration: none; }
.registro__sigla { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-2); }
.registro__nome { font-size: 0.97rem; color: var(--text-2); transition: color var(--t); }
.registro a:hover .registro__nome { color: var(--text); }

/* ---------- Lista simples com filete ---------- */
.lista-filete { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 2rem; border-top: 1px solid var(--line-2); }
@media (min-width: 560px) { .lista-filete--2 { grid-template-columns: 1fr 1fr; } }
.lista-filete li { padding: 0.8rem 0 0.8rem 1.25rem; border-bottom: 1px solid var(--line); position: relative; color: var(--text); line-height: 1.5; }
.lista-filete li::before { content: ''; position: absolute; left: 0; top: 1.45rem; width: 8px; height: 1px; background: var(--gold); }
.lista-filete__nota { margin-top: 1rem; font-size: var(--fs-small); color: var(--text-3); }

/* ---------- Publicações (lista) ---------- */
.pub-lista { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.pub { display: grid; gap: 0.35rem 3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .pub { grid-template-columns: 190px minmax(0, 1fr); } }
.pub__meta { display: flex; flex-wrap: wrap; gap: 0 0.75rem; font-size: var(--fs-small); color: var(--text-3); }
@media (min-width: 860px) { .pub__meta { flex-direction: column; padding-top: 0.25rem; } }
.pub__cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.pub__titulo { margin-top: 0.4rem; font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem); line-height: 1.3; }
.pub__titulo a { color: var(--text); text-decoration: none; }
.pub__titulo a:hover { color: var(--gold-2); }
.pub__resumo { margin-top: 0.5rem; color: var(--text-3); max-width: 50rem; }

/* ---------- Chamada final ---------- */
.cta-final { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.cta-final__fundo { position: absolute; inset: 0; z-index: -2; }
.cta-final__fundo picture, .cta-final__fundo img { width: 100%; height: 100%; max-width: none; }
.cta-final__fundo img { object-fit: cover; object-position: 50% 55%; }
.cta-final::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 11, 15, 0.93) 0%, rgba(9, 11, 15, 0.8) 45%, rgba(9, 11, 15, 0.66) 100%); }
@media (max-width: 959px) { .cta-final::before { background: rgba(9, 11, 15, 0.86); } }
.cta-final__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .cta-final__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 5rem; align-items: center; } }
.cta-final__title { font-size: var(--fs-h2); line-height: 1.18; }
.cta-final__text { margin-top: 1rem; font-size: var(--fs-lead); max-width: 36rem; }
.cta-final__actions { margin-top: 2rem; }
.cta-final__contato { border-top: 1px solid var(--line-2); }
.cta-final__contato a, .cta-final__contato p { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.cta-final__contato span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); align-self: center; }
.cta-final__contato a:hover { color: var(--gold-2); }

/* ---------- Rodapé ---------- */
.site-footer { background: #06080B; border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-size: var(--fs-small); color: var(--text-3); }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 3rem; } }
.site-footer__about { margin-top: 1.4rem; max-width: 23rem; line-height: 1.7; }
.site-footer__place { margin-top: 1rem; font-size: var(--fs-xs); line-height: 1.6; }
.site-footer__title { font-family: var(--f-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.site-footer__col a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 36px; color: var(--text-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--gold-2); }
.site-footer__contacts a { word-break: break-word; }
.site-footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.site-footer__disclaimer { font-size: var(--fs-xs); line-height: 1.7; max-width: 64rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem calc(1.75rem + 76px); font-size: var(--fs-xs); }
@media (min-width: 768px) { .site-footer__bottom { padding-bottom: 2rem; } }
.site-footer__bottom ul { display: flex; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.site-footer__bottom a { color: var(--text-2); text-decoration: none; display: inline-block; padding-block: 0.4rem; }
.site-footer__bottom a:hover { color: var(--gold-2); }

/* ---------- Barra de ação fixa (celular) ---------- */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 0.6rem; padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom)); background: rgba(9, 11, 15, 0.96); border-top: 1px solid var(--line-2); transform: translateY(110%); visibility: hidden; transition: transform 240ms ease, visibility 0s linear 240ms; }
.cta-bar.is-visible { transform: none; visibility: visible; transition: transform 240ms ease, visibility 0s; }
.no-js .cta-bar { transform: none; visibility: visible; }
.cta-bar__main { flex: 1; }
.cta-bar__wa { flex: none; width: 50px; display: grid; place-items: center; border: 1px solid var(--line-ui); color: var(--text); }
@media (min-width: 768px) { .cta-bar { display: none; } }

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.page-header { padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-header__text { max-width: 820px; margin-top: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.page-header__text--full { max-width: none; }
.page-header__title { font-size: var(--fs-h1); line-height: 1.12; }
.page-header__title--longo { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.8rem); line-height: 1.18; }
.page-header__subtitle { margin-top: 0.85rem; font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.4; color: var(--gold-2); }
.page-header__intro { margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.7; color: var(--text-2); max-width: 42rem; }
.page-header__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Cabeçalho com fotografia de fundo e filtro escuro */
.page-header--foto { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); padding-bottom: clamp(4rem, 3rem + 4.5vw, 7rem); }
.page-header__fundo { position: absolute; inset: 0; z-index: -2; }
.page-header__fundo picture, .page-header__fundo img { width: 100%; height: 100%; max-width: none; }
.page-header__fundo img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.page-header--foto::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.66) 0%, rgba(9, 11, 15, 0.8) 55%, rgba(9, 11, 15, 0.92) 100%); }
@media (min-width: 960px) {
  .page-header--foto::before { background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.95) 0%, rgba(9, 11, 15, 0.84) 40%, rgba(9, 11, 15, 0.55) 72%, rgba(9, 11, 15, 0.4) 100%),
    linear-gradient(0deg, rgba(9, 11, 15, 0.6) 0%, rgba(9, 11, 15, 0) 45%); }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.55rem; list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--text-3); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.55rem; color: var(--line-ui); }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); }

/* ---------- Como Trabalhamos ---------- */
.etapas { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.etapa { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.4rem 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .etapa { grid-template-columns: 4rem minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 2rem; align-items: baseline; padding: 2rem 0; } }
.etapa__num { grid-row: span 2; font-family: var(--f-serif); font-size: 1.6rem; line-height: 1.1; color: var(--gold-2); }
@media (min-width: 900px) { .etapa__num { grid-row: auto; font-size: 2rem; } }
.etapa__titulo { font-size: var(--fs-h3); line-height: 1.3; }
.etapa__texto { color: var(--text-2); }
.etapas__nota { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--text-3); }

.colunas-texto { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 3rem; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .colunas-texto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.colunas-texto li { padding: 1.6rem 0 1.8rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .colunas-texto li { border-bottom: 0; } }
.colunas-texto h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.colunas-texto p { font-size: 0.97rem; color: var(--text-3); }

/* ---------- Áreas de Atuação ---------- */
.areas-layout { display: grid; gap: 2rem; }
.areas-layout > * { min-width: 0; }
@media (min-width: 1024px) { .areas-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 4.5rem; align-items: start; } }
.indice__titulo { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.indice ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-2); }
.indice a { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.95rem; color: var(--text-3); text-decoration: none; transition: color var(--t); }
.indice a:hover { color: var(--text); }
.indice a[aria-current='true'] { color: var(--text); border-left-color: var(--gold); }
@media (min-width: 1024px) { .indice { position: sticky; top: calc(var(--header-h) + 2rem); } }
@media (max-width: 1023px) {
  .indice { position: sticky; top: var(--header-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); background: rgba(9, 11, 15, 0.96); border-bottom: 1px solid var(--line); }
  .indice__titulo { display: none; }
  .indice ol { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; border-left: 0; }
  .indice ol::-webkit-scrollbar { display: none; }
  .indice li { flex: none; }
  .indice a { margin: 0; border-left: 0; border-bottom: 2px solid transparent; padding: 0.9rem 0; white-space: nowrap; }
  .indice a[aria-current='true'] { border-bottom-color: var(--gold); }
}
.nucleo { padding: clamp(2.25rem, 1.75rem + 2vw, 3.25rem) 0; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 64px); }
@media (min-width: 1024px) { .nucleo { scroll-margin-top: calc(var(--header-h) + 24px); } }
.nucleo:first-child { border-top: 0; padding-top: 0; }
.nucleo__titulo { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.2; }
.nucleo__desc { margin-top: 1rem; max-width: 46rem; color: var(--text-2); }
.nucleo__sub { margin-top: 1.75rem; font-family: var(--f-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.nucleo__sistemas { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--text-3); }
.nucleo__sistemas a { font-weight: 600; }
.quadro { padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); border: 1px solid var(--line-2); background: var(--bg-2); }
.quadro__titulo { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.quadro--ouro { border-left: 2px solid var(--gold); }
.nucleo + .quadro, .quadro + .nucleo { margin-top: 0.5rem; }
.quadro + .nucleo { border-top: 0; }

/* ---------- Inteligência Jurídica ---------- */
.sistemas-lista { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 3.5rem; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .sistemas-lista { grid-template-columns: 1fr 1fr; } }
.sistema { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.sistema:target .sistema__nome { color: var(--gold-2); }
.sistema__sigla { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-2); padding-top: 0.35rem; }
.sistema__nome { font-size: var(--fs-h3); line-height: 1.3; }
.sistema__desc { margin-top: 0.45rem; font-size: 0.97rem; line-height: 1.65; color: var(--text-2); }
.sistema__aplicacao { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--text-3); }

.destaque { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); border: 1px solid var(--line-2); border-left: 2px solid var(--gold); background: var(--bg); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .destaque { grid-template-columns: 1fr auto; gap: 3rem; } }
.destaque__titulo { font-size: var(--fs-h2); line-height: 1.18; }
.destaque__texto { margin-top: 0.6rem; font-size: var(--fs-lead); color: var(--text-2); }

.uso { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .uso { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.uso__titulo { font-size: var(--fs-h3); margin-bottom: 1rem; }
.uso__nota { margin-top: 2rem; font-size: var(--fs-small); color: var(--text-3); max-width: 54rem; }

/* ---------- Sobre ---------- */
.formacao { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 3rem; border-top: 1px solid var(--line-2); }
@media (min-width: 720px) { .formacao { grid-template-columns: 1fr 1fr; } }
.formacao li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.formacao strong { display: block; font-size: 1rem; color: var(--text); }
.formacao span { display: block; margin-top: 0.2rem; font-size: var(--fs-small); color: var(--text-3); }

/* ---------- Contato ---------- */
.contato { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .contato { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 5rem; } }
.dados { margin: 0; border-top: 1px solid var(--line-2); }
.dados > div { display: grid; gap: 0.15rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .dados > div { grid-template-columns: 150px minmax(0, 1fr); gap: 1.5rem; } }
.dados dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding-top: 0.25rem; }
.dados dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.dados a { color: var(--gold-2); }

/* ---------- Publicações (página) ---------- */
.filtros { margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-2); }
.filtros ul { display: flex; flex-wrap: wrap; gap: 0 1.35rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 719px) {
  .filtros { margin-inline: calc(var(--gutter) * -1); }
  .filtros ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
  .filtros ul::-webkit-scrollbar { display: none; }
  .filtros li { flex: none; }
}
.filtro { display: inline-block; padding: 0.85rem 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 0.93rem; font-weight: 600; color: var(--text-3); text-decoration: none; white-space: nowrap; }
.filtro:hover { color: var(--text); }
.filtro[aria-current='page'] { color: var(--text); border-bottom-color: var(--gold); }
.filtros ~ .pub-lista { border-top: 0; }
.vazio { padding: 2.5rem 0; }
.vazio p + p { margin-top: 0.75rem; }

/* Artigo */
.artigo__meta { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--text-3); display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.artigo__resumo { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem); line-height: 1.55; color: var(--text); padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.aviso { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--bg-2); border-left: 2px solid var(--gold); font-size: var(--fs-small); color: var(--text-3); }
.tabela-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line-2); }
.tabela { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.97rem; line-height: 1.55; }
.tabela th, .tabela td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabela thead th { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.tabela tbody th { font-weight: 600; color: var(--text); }
.tabela tr:last-child th, .tabela tr:last-child td { border-bottom: 0; }

/* Estudo */
.estudo { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .estudo { grid-template-columns: minmax(0, 1fr) 280px; gap: 4.5rem; } }
.estudo__dados { margin: 1.75rem 0 0; border-top: 1px solid var(--line-2); }
.estudo__dados > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.estudo__dados dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding-top: 0.2rem; }
.estudo__dados dd { margin: 0; color: var(--text); }
.estudo__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.estudo__capa { max-width: 280px; justify-self: center; }
.estudo__capa img { border: 1px solid var(--line-2); }

/* ---------- Páginas legais ---------- */
.legal { display: grid; gap: 2.5rem; }
.legal > * { min-width: 0; }
@media (min-width: 1024px) { .legal { grid-template-columns: 240px minmax(0, 780px); gap: 4.5rem; align-items: start; } .legal .indice { position: sticky; top: calc(var(--header-h) + 2rem); } }
@media (max-width: 1023px) { .legal .indice { display: none; } }
.legal__texto h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__revisao { display: flex; gap: 0.7rem; align-items: flex-start; padding: 1rem 1.25rem; background: var(--bg-2); border-left: 2px solid var(--gold); font-size: var(--fs-small); color: var(--text-2); }
.legal__revisao .icon { flex: none; margin-top: 0.2rem; color: var(--gold-2); }
.legal__data { font-size: var(--fs-small); color: var(--text-3); }

.page-header--erro { padding-bottom: clamp(5rem, 4rem + 6vw, 9rem); }

/* ---------- Espaçamentos ---------- */
.mt-1 { margin-top: 1.25rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem) !important; }

@media (max-width: 400px) {
  .site-header__inner { gap: 1rem; }
  .brand { gap: 0.55rem; }
  .brand__symbol { height: 34px; }
  .brand__wordmark svg { height: 13px; }
  .brand__tagline { font-size: 0.5rem; --ls: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .cta-bar, .cta-final { display: none !important; }
  html, body { background: #fff; color: #000; }
}

/* Competências (Sobre): seis itens em grade com filetes */
@media (min-width: 900px) {
  .colunas-texto--6 li { border-bottom: 1px solid var(--line); }
  .colunas-texto--6 li:nth-last-child(-n+3) { border-bottom: 0; }
}

/* Retrato do advogado titular */
.retrato { max-width: 420px; }
.retrato img { width: 100%; height: auto; border: 1px solid var(--line-2); }
.retrato__legenda { margin-top: 0.9rem; font-size: var(--fs-small); color: var(--text-3); }
.retrato__legenda strong { display: block; font-family: var(--f-serif); font-size: 1.1rem; font-weight: 500; color: var(--text); }

/* ---------- Botão com brilho (abertura da Home) ----------
   Adaptado do componente "Shiny Button": borda com brilho girando, pontos e reflexo
   interno, nas cores do site. Usado junto com .btn (tamanho e alinhamento). */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: #C9A45C; inherits: false; }

.shiny-cta {
  --shiny-cta-bg: #0E1218;
  --shiny-cta-bg-subtle: #2C3542;
  --shiny-cta-fg: #F3F1EC;
  --shiny-cta-highlight: #C9A45C;
  --shiny-cta-highlight-subtle: #C9A45C;
  --animation: gradient-angle linear infinite;
  --duration: 5s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);

  isolation: isolate;
  position: relative;
  overflow: hidden;
  outline-offset: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--shiny-cta-fg);
  background:
    linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}
.shiny-cta:hover { color: var(--shiny-cta-fg); }

.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}
.shiny-cta:active { translate: 0 1px; }

/* Pontos */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), var(--shiny-cta-highlight) calc(var(--position) / 4), transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.4;
}

/* Reflexo interno */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span { z-index: 1; }
.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
  animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}
.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after { animation-play-state: running; }
.shiny-cta:is(:hover, :focus-visible) span::before { opacity: 1; }

@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shimmer { to { rotate: 360deg; } }
@keyframes breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

@media (prefers-reduced-motion: reduce) {
  .shiny-cta, .shiny-cta::before, .shiny-cta::after, .shiny-cta span::before { animation: none; }
}

/* ---------- Lâmpada ("O caso vem primeiro") ----------
   Adaptado do componente "Lamp": uma linha de luz dourada com dois cones que
   iluminam o título. --linha é a altura da linha; --lw é a largura da linha.
   Os cones abrem quando a seção entra na tela (site.js adiciona .is-acesa). */
.section--lampada { padding-top: 0; }
.lampada { --linha: 6.5rem; --lw: min(30rem, 92vw); --ouro: #C9A45C; --fundo: var(--bg); --t-lampada: 800ms ease-in-out 300ms;
  position: relative; isolation: isolate; padding-block: calc(var(--linha) + 4.25rem) clamp(3.5rem, 3rem + 2vw, 5rem); }
.lampada__luz { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.lampada__luz > span { position: absolute; left: 50%; display: block; }

/* Cones de luz: cada um parte do centro para um lado e ilumina em direção ao meio */
.lampada__luz > .lampada__cone { top: var(--linha); width: var(--lw); height: 17rem; z-index: 1; opacity: 0.62;
  transition: width var(--t-lampada), opacity var(--t-lampada); }
.lampada__luz > .lampada__cone--esq { left: auto; right: 50%; background: conic-gradient(from 70deg at center top, var(--ouro), transparent 50%, transparent); }
.lampada__cone--dir { background: conic-gradient(from 290deg at center top, transparent, transparent 50%, var(--ouro)); }
.lampada__cone::before, .lampada__cone::after { content: ''; position: absolute; background: var(--fundo); }
.lampada__cone::before { left: 0; right: 0; bottom: 0; height: 10rem; mask-image: linear-gradient(to top, #000, transparent); }
.lampada__cone::after { top: 0; bottom: 0; width: 10rem; }
.lampada__cone--esq::after { left: 0; mask-image: linear-gradient(to right, #000, transparent); }
.lampada__cone--dir::after { right: 0; mask-image: linear-gradient(to left, #000, transparent); }

/* Faixa escura que apaga a luz embaixo */
.lampada__sombra { top: calc(var(--linha) + 10rem); width: 150%; height: 12rem; translate: -50% 0; background: var(--fundo); filter: blur(40px); z-index: 2; }
/* Núcleo de luz logo abaixo da linha */
.lampada__nucleo { top: calc(var(--linha) - 3.25rem); width: 16rem; height: 9rem; translate: -50% 0; border-radius: 50%; background: var(--ouro); filter: blur(40px); opacity: 0.55; z-index: 3;
  transition: width var(--t-lampada); }
/* Tampa: acima da linha só aparece o halo */
.lampada__tampa { top: 0; width: 100%; height: var(--linha); translate: -50% 0; background: var(--fundo); z-index: 4; }
.lampada__halo { top: calc(var(--linha) - 2.5rem); width: min(28rem, 86vw); height: 9rem; translate: -50% 0; border-radius: 50%; background: var(--ouro); filter: blur(64px); opacity: 0.4; z-index: 5; }
.lampada__linha { top: var(--linha); width: var(--lw); height: 2px; translate: -50% -50%; background: var(--ouro); z-index: 6;
  transition: width var(--t-lampada); }

.lampada__conteudo { position: relative; z-index: 1; text-align: center; transition: opacity var(--t-lampada), translate var(--t-lampada); }
.lampada__titulo { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.12; }

/* Estado inicial (apagada), só com JavaScript e sem preferência por menos movimento */
@media (prefers-reduced-motion: no-preference) {
  .js .lampada:not(.is-acesa) .lampada__luz > .lampada__cone { width: calc(var(--lw) / 2); opacity: 0.35; }
  .js .lampada:not(.is-acesa) .lampada__linha { width: calc(var(--lw) / 2); }
  .js .lampada:not(.is-acesa) .lampada__nucleo { width: 8rem; }
  .js .lampada:not(.is-acesa) .lampada__conteudo { opacity: 0.5; translate: 0 3rem; }
}

/* Foto que acompanha a altura do texto ao lado (desktop) */
@media (min-width: 960px) {
  .grid--esticar { align-items: stretch; }
  .foto--preenche { min-height: 18rem; }
  .foto--preenche picture { position: absolute; inset: 0; }
  .foto--preenche img { height: 100%; aspect-ratio: auto; }
  /* Texto à direita e foto à esquerda, mesmo com o texto antes no HTML (título primeiro no celular) */
  .lado-a-lado > .lado-a-lado__texto, .lado-a-lado > .lado-a-lado__foto { grid-row: 1; }
}
@media (max-width: 959px) { .foto--preenche:not(.foto--paisagem) img { aspect-ratio: 3 / 2; } }

/* Advogado titular: título à esquerda acima da foto; foto alinhada à formação */
.titular { row-gap: 2rem; }
.titular__foto { position: relative; }
@media (min-width: 960px) {
  .titular__cabeca { grid-column: 1 / span 4; grid-row: 1; }
  .titular__foto { grid-column: 1 / span 4; grid-row: 2; max-width: none; min-height: 24rem; }
  .titular__foto picture { position: absolute; inset: 0; }
  .titular__foto img { height: 100%; object-fit: cover; object-position: 50% 20%; }
  .titular__texto { grid-column: 6 / -1; grid-row: 2; }
}

/* ---------- Animações (GSAP, ver public/js/animacoes.js) ----------
   .anima é adicionada por inicio.js antes da pintura, só quando o visitante não pediu menos
   movimento. O texto do topo começa oculto e o GSAP o revela; se o script não carregar,
   "anima-garantia" mostra tudo após 3s. */
.anima .abertura__texto > *, .anima .page-header__text > * { opacity: 0; animation: anima-garantia 0s linear 3s forwards; }
@keyframes anima-garantia { to { opacity: 1; } }
/* Máscara das linhas dos títulos: folga para acentos e descendentes não serem cortados */
.linha-mask { padding-block: 0.1em 0.16em; margin-block: -0.1em -0.16em; }
.anima .foto picture, .anima .retrato picture { overflow: hidden; }
/* Fundo da chamada final maior que a seção, para o parallax não mostrar bordas */
.anima .cta-final__fundo { inset: -14% 0; }
@media print { .anima * { opacity: 1 !important; transform: none !important; clip-path: none !important; } }
