/* =========================================================================
   Vilanova Advocacia — folha de estilos
   Conceito: faixa azul-marinho de abertura + coluna de leitura clara,
   como uma peça bem diagramada. Dourado só em filetes, números e detalhes.
   ========================================================================= */

/* ---------- Fontes (hospedadas no próprio site) ---------- */
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #F3F4F7;          /* porcelana levemente azulada */
  --surface: #FFFFFF;
  --ink: #1A2233;
  --muted: #566176;
  --line: #D9DEE6;
  --heading: #14284B;     /* azul-marinho da marca */
  --brand: #14284B;
  --gold: #B08A50;        /* dourado decorativo */
  --gold-text: #7E6131;   /* dourado legível sobre fundo claro */
  --band: #14284B;        /* faixas escuras */
  --band-ink: #EEF0F4;
  --band-muted: #B3BDCE;
  --band-line: #2C406A;
  --link: #1F4E9A;
  --focus: #C9A66B;
  --ok: #1E6B45;
  --error: #A3312A;
  --wa: #1E7F4F;
  --wa-ink: #FFFFFF;

  --font-text: "Pagella", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);

  --radius: 6px;
  --wrap: 1160px;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1424; --surface: #121D33; --ink: #E3E7EE; --muted: #9AA6BA; --line: #253453;
    --heading: #EEF1F6; --brand: #EEF1F6; --gold: #C9A66B; --gold-text: #D6B783;
    --band: #091021; --band-ink: #EEF0F4; --band-muted: #A3AEC2; --band-line: #22314F;
    --link: #9DBBF0; --focus: #D6B783; --ok: #6CC79A; --error: #F08B83; --wa: #4CC287; --wa-ink: #06140C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1424; --surface: #121D33; --ink: #E3E7EE; --muted: #9AA6BA; --line: #253453;
  --heading: #EEF1F6; --brand: #EEF1F6; --gold: #C9A66B; --gold-text: #D6B783;
  --band: #091021; --band-ink: #EEF0F4; --band-muted: #A3AEC2; --band-line: #22314F;
  --link: #9DBBF0; --focus: #D6B783; --ok: #6CC79A; --error: #F08B83; --wa: #4CC287; --wa-ink: #06140C;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--surface);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-text); color: var(--heading); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 400; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--surface); color: var(--heading); padding: 0.6rem 1rem;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--step--1); border-radius: var(--radius);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text);
}
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.25rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-gold { background: var(--gold); color: #14203A; border-color: var(--gold); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 85%, #fff); }
.btn-ghost-light { color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 45%, transparent); }
.btn-ghost-light:hover { border-color: var(--band-ink); background: color-mix(in srgb, var(--band-ink) 8%, transparent); }
.btn-primary { background: var(--heading); color: var(--surface); }
.btn-primary:hover { background: color-mix(in srgb, var(--heading) 88%, var(--gold)); }
.btn-outline { color: var(--heading); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--gold); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: color-mix(in srgb, var(--wa) 85%, #000); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--brand); min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--font-text); font-size: 1.45rem; letter-spacing: 0.16em; color: var(--brand); }
.brand-tag { font-family: var(--font-text); font-variant-caps: small-caps; font-size: 0.86rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.35rem; white-space: nowrap; }
.lg-gold { fill: var(--gold); }
.lg-gold-s { stroke: var(--gold); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .9rem; color: var(--heading);
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; }
.site-nav .nav-link {
  font-family: var(--font-ui); font-weight: 500; font-size: .95rem; color: var(--ink);
  text-decoration: none; display: block; padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.site-nav .nav-link[aria-current="page"] { color: var(--heading); font-weight: 600; }
.site-nav .nav-cta { margin-top: 1rem; border: 0; }
.site-nav .nav-cta .btn { width: 100%; }
.nav-panel { padding-block: .5rem 1.25rem; }

@media (max-width: 979px) {
  .brand-tag { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(10 20 40 / .35); }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; }
  .site-nav > .nav-panel { padding: 0; }
  .site-nav ul.nav-list { display: flex; align-items: center; gap: 1.6rem; }
  .site-nav .nav-link { padding: .4rem 0; border: 0; position: relative; }
  .site-nav .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; }
  .site-nav .nav-cta .btn { width: auto; }
  .site-nav .nav-cta .btn { min-height: 42px; padding: .5rem 1rem; }
}

/* ---------- Faixa de abertura (hero) ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band h1, .band h2 { color: #fff; }
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-text { min-width: 0; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { margin-top: .9rem; max-width: 19ch; }
.hero .lead { color: var(--band-muted); margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-family: var(--font-ui); font-size: .82rem; color: var(--band-muted); }
.portrait { position: relative; margin: 0; max-width: min(300px, calc(100% - 14px)); justify-self: start; width: 100%; }
.portrait picture { display: block; position: relative; }
.portrait picture::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); border-radius: 2px; pointer-events: none;
}
.portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--band-line); }
.portrait figcaption { position: relative; margin-top: 1.6rem; font-family: var(--font-ui); font-size: .82rem; color: var(--band-muted); line-height: 1.5; }
.portrait figcaption strong { display: block; color: var(--band-ink); font-weight: 600; font-size: .9rem; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 4rem; }
  .portrait { justify-self: end; max-width: 360px; }
}

/* faixa de credenciais logo abaixo do hero */
.credentials { border-top: 1px solid var(--band-line); }
.credentials ul {
  list-style: none; display: grid; gap: .25rem 2rem; padding-block: 1.1rem;
  font-family: var(--font-ui); font-size: .84rem; color: var(--band-muted);
}
.credentials li { display: flex; gap: .55rem; align-items: baseline; }
.credentials li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }
@media (min-width: 720px) { .credentials ul { grid-template-columns: repeat(3, auto); justify-content: start; } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.25rem; max-width: 46rem; }
.section-head .lead { font-size: var(--step-0); }

/* cartões de área */
.area-grid { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid > li.is-featured { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-grid > li.is-featured { grid-column: auto; }
}
.area-card {
  display: flex; flex-direction: column; gap: .6rem; height: 100%;
  padding: 1.4rem 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.area-card:hover { border-color: var(--gold); }
.area-card h3 { font-size: 1.3rem; font-weight: 700; }
.area-card p { color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.area-card .basis {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: .74rem; letter-spacing: .02em; color: var(--muted); line-height: 1.5;
}
.area-card .basis span { color: var(--gold-text); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-right: .35rem; }
.area-card .more { font-family: var(--font-ui); font-weight: 600; font-size: .88rem; color: var(--link); }

/* etapas do atendimento */
.steps { list-style: none; display: grid; gap: 1.75rem; counter-reset: passo; margin: 0; padding: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: passo; display: grid; gap: .55rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--heading); }
.steps li::before {
  content: counter(passo); font-family: var(--font-text); font-size: 2.2rem; line-height: 1; color: var(--gold);
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 1.02rem; }

/* sobre (resumo na home) */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 880px) { .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.about-text { min-width: 0; max-width: var(--measure); }
.about-text .btn { margin-top: 1.75rem; }
.fact-list { list-style: none; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-list li { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.fact-list li:first-child { border-top: 0; }
.fact-list .k { font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.fact-list .v { color: var(--heading); font-size: 1.05rem; line-height: 1.4; }
.fact-list .s { color: var(--muted); font-size: .95rem; }

/* lista de artigos */
.article-list { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 880px) { .article-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-list.single { max-width: 46rem; }
.article-card {
  display: grid; gap: .5rem; padding: 1.35rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; height: 100%;
}
.article-card:hover { border-color: var(--gold); }
.article-card h3 { font-size: 1.28rem; line-height: 1.25; }
.article-card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.article-card .meta { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); }
.article-card .meta b { color: var(--gold-text); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* região */
.region { display: grid; gap: 1.5rem; }
@media (min-width: 880px) { .region { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.region .cities { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; list-style: none; }
.region .cities li {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--heading);
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; font-size: 1.12rem; color: var(--heading); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-ui); font-weight: 500; font-size: 1.4rem; line-height: 1; color: var(--gold-text); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink); max-width: var(--measure); }
.faq .answer a { font-family: var(--font-ui); font-size: .9rem; font-weight: 600; }

/* CTA final */
.cta-band { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 880px) { .cta-inner { grid-template-columns: minmax(0, 1.4fr) auto; gap: 3rem; } }
.cta-inner p { color: var(--band-muted); margin-top: .75rem; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Páginas internas ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { margin-top: .6rem; max-width: 22ch; }
.page-head .lead { margin-top: 1rem; color: var(--band-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; font-family: var(--font-ui); font-size: .8rem; color: var(--band-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--band-line); }
.breadcrumb a { color: var(--band-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--band-ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--band-ink); }
.basis-line { margin-top: 1.4rem; font-family: var(--font-ui); font-size: .8rem; color: var(--band-muted); }
.basis-line b { color: var(--gold); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-right: .4rem; }

.layout { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; } }
.content { min-width: 0; max-width: var(--measure); }
.content > * + * { margin-top: 1.15em; }
.content h2 { font-size: var(--step-2); margin-top: 2.2em; padding-top: .2em; }
.content h3 { margin-top: 1.8em; }
.content h2 + *, .content h3 + * { margin-top: .7em; }
.content ul, .content ol { padding-left: 1.3em; }
.content li + li { margin-top: .4em; }
.content li::marker { color: var(--gold-text); }
.content strong { color: var(--heading); }
.content blockquote { margin: 0; padding-left: 1.2rem; border-left: 2px solid var(--gold); color: var(--muted); font-style: italic; }

.check-list { list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
.check-list li { margin: 0 !important; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; left: .2rem; top: 1.15rem; width: .55rem; height: 1px; background: var(--gold); }
.two-col-list { columns: 1; }
@media (min-width: 720px) { .two-col-list.check-list { columns: 2; column-gap: 2.5rem; border-top: 0; } .two-col-list.check-list li { break-inside: avoid; } }

.topic-grid { list-style: none; padding: 0 !important; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-grid li { margin: 0 !important; background: var(--surface); padding: 1.1rem 1.15rem; display: grid; gap: .3rem; align-content: start; }
.topic-grid b { font-family: var(--font-text); color: var(--heading); font-size: 1.05rem; }
.topic-grid span { color: var(--muted); font-size: .95rem; line-height: 1.45; }

.aside { display: grid; gap: 1.25rem; min-width: 0; }
@media (min-width: 980px) { .aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); } }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .8rem; }
.aside-box h2 { font-size: 1.25rem; font-weight: 700; }
.aside-box p { font-size: .98rem; color: var(--muted); line-height: 1.5; }
.aside-box .btn { width: 100%; }
.aside-links { list-style: none; display: grid; }
.aside-links a { display: block; padding: .5rem 0; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.aside-links a:hover { color: var(--link); }

/* ---------- Artigo ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: 1.25rem; font-family: var(--font-ui); font-size: .82rem; color: var(--band-muted); }
.article-meta span { white-space: nowrap; }
.short-answer { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.short-answer .eyebrow { display: block; margin-bottom: .45rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1.2rem; }
.toc summary { cursor: pointer; padding: .8rem 0; font-family: var(--font-ui); font-weight: 600; font-size: .88rem; color: var(--heading); }
.toc ol { margin: 0 0 1rem; padding-left: 1.2em; font-size: 1rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums lining-nums; }
.table-wrap th, .table-wrap td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--surface) 92%, var(--heading)); }
.table-wrap tr:last-child td { border-bottom: 0; }
.sources { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.sources li { margin: 0 !important; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.author-box img { width: 72px; height: 72px; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.author-box p { font-size: .96rem; color: var(--muted); line-height: 1.45; }
.author-box strong { display: block; color: var(--heading); font-size: 1.05rem; }
.author-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--heading); border-radius: var(--radius); padding: 1.35rem 1.4rem; display: grid; gap: .9rem; }
.content .author-card h2 { font-size: var(--step-1); font-weight: 700; margin: 0; padding: 0; }
.content .author-card h2 + * { margin-top: 0; }
.author-head { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; align-items: center; }
.author-head img { width: 80px; height: 80px; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.author-name { font-size: 1.15rem; margin: 0; }
.author-name a { color: var(--heading); text-decoration: none; }
.author-name a:hover { text-decoration: underline; }
.author-roles { list-style: none; padding: 0 !important; margin: .25rem 0 0 !important; font-size: .98rem; color: var(--muted); line-height: 1.45; }
.author-roles li { margin: 0 !important; }
.author-card .formation-list { margin: 0; }
.author-card .formation-list li { font-size: .98rem; padding-block: .6rem; }
.author-card .formation-list li::before { top: 1.2rem; }
.notice { font-family: var(--font-ui); font-size: .82rem; line-height: 1.55; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 1rem; }

/* filtro de artigos */
.filters { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.search-field { position: relative; max-width: 28rem; }
.search-field input { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-ui); font-size: .84rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--surface); }
.empty-state { padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Formulário ---------- */
.contact-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; } }
.form { display: grid; gap: 1.25rem; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field legend { font-family: var(--font-ui); font-weight: 600; font-size: .88rem; color: var(--heading); padding: 0; }
.hint { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); line-height: 1.45; }
.req { color: var(--error); margin-left: .15rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 1rem; line-height: 1.4;
}
textarea { min-height: 200px; resize: vertical; font-family: var(--font-text); font-size: 1.05rem; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { font-family: var(--font-ui); font-size: .8rem; color: var(--error); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .35rem; }
.radios label, .consent label { font-family: var(--font-ui); font-weight: 500; font-size: .92rem; color: var(--ink); display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; }
.radios input, .consent input { width: 20px; height: 20px; accent-color: var(--heading); flex: none; }
.consent label { align-items: flex-start; line-height: 1.45; }
.consent input { margin-top: .1rem; }
.counter { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-actions .notice { flex: 1 1 16rem; }
.form-status { border-radius: var(--radius); padding: 1rem 1.15rem; font-family: var(--font-ui); font-size: .92rem; line-height: 1.5; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ink); }
.form-status.err { background: color-mix(in srgb, var(--error) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--error) 40%, transparent); color: var(--ink); }
.form-status .btn { margin-top: .75rem; }
.tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.tips h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.tips ul { padding-left: 1.1em; font-size: .98rem; color: var(--muted); }
.tips li + li { margin-top: .35rem; }
.contact-cards { display: grid; gap: 1rem; }
.contact-line { display: grid; gap: .1rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.contact-line .k { font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.contact-line .v { color: var(--heading); font-size: 1.08rem; overflow-wrap: anywhere; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--band); color: var(--band-muted); font-family: var(--font-ui); font-size: .88rem; }
.footer-grid { display: grid; gap: 2.25rem; padding-block: 3.5rem 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand { color: var(--band-ink); display: grid; gap: 1rem; align-content: start; }
.footer-logo { width: 220px; max-width: 100%; height: auto; display: block; }
.footer-brand p { color: var(--band-muted); line-height: 1.6; }
.footer-brand p strong { color: var(--band-ink); font-weight: 600; }
.site-footer h2 { font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2.footer-sub { margin-top: 1.6rem; }
.footer-profiles { display: flex !important; flex-wrap: wrap; gap: .45rem 1rem !important; }
.profile-links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-links li { margin: 0 !important; }
.profile-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600; text-decoration: none;
}
.profile-links a:hover { border-color: var(--gold); }
.footer-legal { border-top: 1px solid var(--band-line); padding-block: 1.5rem 2rem; display: grid; gap: .6rem; font-size: .8rem; line-height: 1.6; }
.footer-legal strong { color: var(--band-ink); font-weight: 600; }

/* formação e canais */
.formation-list { list-style: none; padding: 0 !important; display: grid; border-top: 1px solid var(--line); }
.formation-list li { margin: 0 !important; padding: .85rem 0 .85rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; color: var(--heading); line-height: 1.45; }
.formation-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .6rem; height: 2px; background: var(--gold); }
.formation { min-width: 0; display: grid; gap: .9rem; align-content: start; }
.channels { list-style: none; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.channels li { display: grid; gap: .15rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.channels li:first-child { border-top: 0; }
.channels b { font-family: var(--font-text); color: var(--heading); font-size: 1.08rem; }
.channels span { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.channels li:last-child { background: color-mix(in srgb, var(--surface) 94%, var(--gold)); }
.content h2.first { margin-top: 0; }
.region .content h2 { margin-top: .7rem; padding-top: 0; font-size: var(--step-3); }
.region .content h2 + p { margin-top: 1.1rem; }

/* ---------- Diversos ---------- */
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 1.5rem; }
.muted { color: var(--muted); }
.form-title { font-size: var(--step-2); }
.page-head .eyebrow { color: var(--gold); margin-top: 1.4rem; }
.portrait-small { max-width: 300px; justify-self: start; }
.portrait-small picture::before { inset: 10px -10px -10px 10px; }
.text-center { text-align: center; }
.notfound { padding-block: clamp(4rem, 10vw, 7rem); display: grid; gap: 1rem; justify-items: start; }
.notfound .code { font-family: var(--font-text); font-size: 4.5rem; line-height: 1; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .aside, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Vídeo do YouTube (carrega só ao clicar) ---------- */
.video { margin: 0; display: grid; gap: .6rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--band); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-play, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { display: grid; place-items: center; color: #fff; text-decoration: none; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-btn { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(20, 40, 75, .88); border: 2px solid var(--gold); display: grid; place-items: center; transition: transform .15s ease; }
.video-btn svg { width: 2rem; height: 2rem; margin-left: .2rem; }
.video-play:hover .video-btn, .video-play:focus-visible .video-btn { transform: scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.video figcaption { font-family: var(--font-ui); font-size: .9rem; color: var(--muted); line-height: 1.5; }
.video figcaption strong { color: var(--heading); }

/* ---------- Seletor de idioma ---------- */
.site-nav .lang-switch { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; border: 0; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; min-height: 40px; padding: 0 .55rem; border: 1.5px solid var(--line); border-radius: var(--radius); font-family: var(--font-ui); font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); text-decoration: none; background: transparent; }
.lang-switch a:hover { border-color: var(--gold); }
.lang-switch a[aria-current="true"] { background: var(--heading); border-color: var(--heading); color: var(--surface); }
:root[data-theme="dark"] .lang-switch a[aria-current="true"] { color: var(--bg); }
@media (min-width: 980px) {
  .site-nav .lang-switch { margin: 0 0 0 .2rem; gap: .25rem; }
  .lang-switch a { min-height: 34px; min-width: 2.2rem; padding: 0 .4rem; font-size: .74rem; }
}
.footer-langs { color: var(--band-muted); }
.footer-langs a[aria-current="true"] { font-weight: 600; text-decoration: underline; }

/* Menu em inglês e espanhol: rótulos mais longos não quebram de linha */
.site-nav .nav-link { white-space: nowrap; }
@media (min-width: 980px) {
  .site-nav ul.nav-list { gap: clamp(.8rem, 1.5vw, 1.6rem); }
}
@media (min-width: 980px) and (max-width: 1239px) {
  .brand-tag { display: none; }
}
@media (min-width: 980px) and (max-width: 1099px) {
  .site-nav ul.nav-list { gap: .6rem; }
  .site-nav .nav-cta .btn { padding-inline: .8rem; }
  .site-header .wrap { gap: .6rem; }
}

/* ---------- Aviso de cookies (Google Analytics só após aceitar) ---------- */
.cookie-banner { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 44rem; margin: 0 auto; display: grid; gap: .75rem; padding: 1rem 1.1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(20, 40, 75, .22); font-family: var(--font-ui); font-size: .9rem; line-height: 1.5; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { min-height: 44px; padding-inline: 1.1rem; }
@media (min-width: 640px) { .cookie-banner { grid-template-columns: 1fr auto; align-items: center; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-cookies { margin: 0; }
