﻿/* ==========================================================================
   Tiago Andrade Advocacia — folha de estilos
   Paleta: azul-marinho (30%), off-white/branco (60%), dourado (10%)
   ========================================================================== */

:root {
  --navy: #0F1B2E;
  --navy-2: #1B3358;
  --navy-3: #253f66;
  --gold: #B8945C;
  --gold-light: #C9A96E;
  --gold-dark: #8A6A3A;
  --paper: #F7F4EE;
  --cream: #EFE9DE;
  --white: #FFFFFF;
  --ink: #0F1B2E;
  --slate: #5A6475;
  --line: #E2DBCD;
  --line-dark: rgba(201, 169, 110, .22);
  --error: #A3261B;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 27, 46, .06), 0 8px 24px -12px rgba(15, 27, 46, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--gold-dark); }
.on-dark h1 em, .on-dark h2 em { color: var(--gold-light); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--gold-light); }
.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; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--slate); max-width: 60ch; }
.on-dark .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--slate); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white); --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 600 .9375rem/1.2 var(--sans); letter-spacing: .01em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { --bg: var(--navy-2); --bd: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn-gold { --bg: var(--gold-light); --fg: var(--navy); --bd: var(--gold-light); }
.btn-gold:hover { --bg: #d6ba86; --bd: #d6ba86; }
.btn-outline { --bg: transparent; --fg: var(--navy); --bd: rgba(15, 27, 46, .28); }
.btn-outline:hover { --bg: var(--navy); --fg: var(--white); --bd: var(--navy); }
.on-dark .btn-outline { --fg: var(--white); --bd: rgba(255, 255, 255, .38); }
.on-dark .btn-outline:hover { --bg: var(--white); --fg: var(--navy); --bd: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9375rem; color: var(--gold-dark); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s var(--ease); }
.text-link:hover { border-color: currentColor; }
.text-link:hover svg { transform: translateX(3px); }
.on-dark .text-link { color: var(--gold-light); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); /* sem backdrop-filter: ele prenderia o menu fixo do celular ao cabeçalho */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: calc(var(--header-h) - 1px); }
.brand { display: block; flex: none; }
.brand img { width: 282px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px;
  font: 500 .9375rem/1.2 var(--sans); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav-list > li > a::after, .sub-toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after,
.sub-toggle:hover::after, .has-sub.is-active > .sub-toggle::after { transform: scaleX(1); }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sub-menu .sub-label { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); padding: 10px 12px 4px; }
.sub-menu a { display: flex; width: 100%; min-height: 40px; padding: 8px 12px; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--paper); }
.sub-menu a::after { display: none; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .sub-toggle[aria-expanded="true"] + .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-cta { min-height: 44px; padding: 10px 18px; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 12px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 40px; background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a, .sub-toggle { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.0625rem; padding: 12px 4px; }
  .nav-list > li > a::after, .sub-toggle::after { display: none; }
  .sub-menu { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
  .sub-menu a { min-height: 48px; padding: 10px 12px; }
  .nav-cta { width: 100%; min-height: 52px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand img { width: 242px; } }
@media (max-width: 340px) { .brand img { width: 205px; } }

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy-2 { background: var(--navy-2); color: var(--white); }
.contour { position: relative; isolation: isolate; overflow: hidden; }
.contour::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/contour.svg") right -120px bottom -40px / 1100px auto no-repeat;
  opacity: .9;
}
.section-head { display: grid; grid-template-columns: 1fr; gap: 16px 64px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--slate); max-width: 56ch; }
.on-dark .section-head p { color: rgba(255, 255, 255, .74); }
@media (min-width: 900px) {
  .section-head.split-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0 0 24px; }

/* ---------- Abertura (home) ---------- */
.hero { background: var(--paper); padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.doors { display: grid; gap: 12px; max-width: 620px; }
@media (min-width: 560px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px; min-height: 96px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.door:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.door small { font-size: .8125rem; color: var(--slate); }
.door span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.25; }
.door svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-dark); stroke-width: 1.6; flex: none; transition: transform .2s var(--ease); }
.door:hover svg { transform: translateX(4px); }
.door.primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.door.primary small { color: rgba(255, 255, 255, .7); }
.door.primary svg { stroke: var(--gold-light); }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: .9375rem; color: var(--slate); }
.hero-contact a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.hero-contact a:hover { color: var(--gold-dark); }
.hero-contact svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; }

.portrait { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: 0;
  border: 1px solid var(--gold); border-radius: var(--radius);
}
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #dcdcd8; }
.portrait figcaption {
  position: absolute; z-index: 2; left: -20px; bottom: 32px;
  background: var(--navy); color: var(--white); padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .8125rem; line-height: 1.45;
}
.portrait figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; }
.portrait figcaption span { color: var(--gold-light); }
@media (max-width: 520px) { .portrait::before { inset: 16px -10px -16px 16px; } .portrait figcaption { left: 12px; bottom: 16px; } }

/* ---------- Faixa de credenciais ---------- */
.creds-band { background: var(--navy); color: var(--white); }
.creds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cred { padding: 28px 24px; border-left: 1px solid var(--line-dark); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; color: var(--gold-light); line-height: 1.2; margin-bottom: 4px; }
.cred span { font-size: .875rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 900px) {
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .cred { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .cred:first-child { padding-left: 16px; }
  .cred:nth-child(-n+2) { border-top: 0; }
  .cred:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 420px) { .creds-grid { grid-template-columns: 1fr; } .cred { padding-left: 0 !important; } .cred:nth-child(2) { border-top: 1px solid var(--line-dark); } }

/* ---------- Cards de tema ---------- */
.topic-grid { 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(2, 1fr); } }
@media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic {
  display: flex; flex-direction: column; gap: 10px; min-height: 220px;
  padding: 32px 28px; background: var(--white); text-decoration: none; color: var(--ink);
  transition: background-color .2s;
}
.topic:hover { background: var(--paper); }
.topic .num { font-family: var(--serif); font-size: 1rem; color: var(--gold-dark); letter-spacing: .04em; }
.topic h3 { font-size: 1.4375rem; margin: 0; }
.topic p { color: var(--slate); font-size: .9688rem; margin: 0; flex: 1; }
.topic .text-link { margin-top: 8px; }

/* ---------- Passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--gold); margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: .9688rem; margin: 0; }
.on-dark .steps li { border-color: var(--line-dark); }
.on-dark .steps p { color: rgba(255, 255, 255, .74); }

/* ---------- Blocos divididos ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.media-narrow { grid-template-columns: .8fr 1.2fr; }
  .split.reverse > :first-child { order: 2; }
}
.media { margin: 0; position: relative; }
.media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.media.tall img { aspect-ratio: 4 / 5; }
.media.wide img { aspect-ratio: 3 / 2; }
.media figcaption { font-size: .8125rem; color: var(--slate); margin-top: 10px; }

.list-check { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.list-check li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.list-check svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--gold-dark); stroke-width: 2; }
.on-dark .list-check svg { stroke: var(--gold-light); }
.list-x svg { stroke: var(--slate); }

/* ---------- Bloco Empresas ---------- */
.biz-grid { display: grid; gap: 1px; background: var(--line-dark); margin-top: 8px; }
@media (min-width: 720px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .biz-grid { grid-template-columns: repeat(3, 1fr); } }
.biz-grid > div { background: var(--navy); padding: 28px 24px; }
.bg-navy-2 .biz-grid > div { background: var(--navy-2); }
.biz-grid h3 { color: var(--white); margin-bottom: 8px; }
.biz-grid p { color: rgba(255, 255, 255, .74); font-size: .9688rem; margin: 0; }

/* ---------- Artigos ---------- */
.post-grid { display: grid; gap: 24px; }
@media (min-width: 680px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d6ccb9; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin: 0; flex: 1; }
.meta { font-size: .8125rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tag { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.post-card[hidden] { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button {
  min-height: 44px; padding: 8px 18px; font: 500 .875rem var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filter-bar button:hover { border-color: var(--gold); }
.filter-bar button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.search-field { position: relative; max-width: 420px; margin-bottom: 20px; }
.search-field input { width: 100%; min-height: 48px; padding: 12px 16px 12px 44px; font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--slate); stroke-width: 2; }
.empty-state { padding: 32px; text-align: center; color: var(--slate); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Escritórios ---------- */
.office-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .office-grid { grid-template-columns: 1fr 1fr 1fr; } }
.office {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.office .thumb { aspect-ratio: 3 / 2; background: var(--navy) url("/assets/contour.svg") center / 900px auto; overflow: hidden; }
.office .thumb img { width: 100%; height: 100%; object-fit: cover; }
.office .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.office h3 { font-size: 1.5rem; margin: 0; }
.office .kind { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.office address { font-style: normal; color: var(--slate); font-size: .9688rem; }
.office .body > :last-child { margin-top: auto; }
.thumb-label { display: grid; place-items: center; height: 100%; color: var(--gold-light); font-family: var(--serif); font-size: 1.75rem; }

/* ---------- Página interna: abertura ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { max-width: 20ch; margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 32px; }
.page-hero.has-media .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero.has-media .container { grid-template-columns: 1.3fr .7fr; } }
.page-hero .media img { aspect-ratio: 4 / 5; max-height: 520px; border-radius: var(--radius); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .8125rem; color: rgba(255, 255, 255, .65); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.page-hero .byline { margin-top: 28px; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.page-hero .byline strong { color: var(--white); font-weight: 500; }

/* ---------- Página de tese ---------- */
.answer-box {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 24px 28px; margin: 0 0 40px; font-size: 1.0625rem;
}
.answer-box p:last-child { margin: 0; }
.answer-box .label { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.tese-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .tese-layout { grid-template-columns: minmax(0, 780px) 320px; justify-content: space-between; gap: 64px; } }
.tese-layout > .prose { max-width: none; }
.prose .list-check, .prose .doc-list { padding-left: 0; list-style: none; }
.prose .list-check li { margin: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.toc h2 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 7px 0; font-size: .9375rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.toc li:last-child a { border: 0; }
.toc li a:hover { color: var(--gold-dark); }
@media (max-width: 999px) { .toc { position: static; } .toc nav { display: none; } }
.cta-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 26px 24px; }
.cta-card h2, .cta-card h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; color: var(--white); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.cta-card p { font-size: .9375rem; color: rgba(255, 255, 255, .76); }
.cta-card .btn { width: 100%; margin-top: 8px; }

/* Prosa (teses e artigos) */
.prose { max-width: 72ch; }
.prose > section { padding-bottom: 8px; }
.prose > section + section { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 40px; }
.prose h2 { font-size: var(--step-3); margin-top: 0; }
.prose h3 { font-size: 1.375rem; margin-top: 32px; }
.prose p, .prose li { color: #26324a; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold-dark); }
.prose a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--navy);
}
.prose blockquote p { color: inherit; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--radius); margin: 0 auto; }
.prose figcaption { font-size: .8125rem; color: var(--slate); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .9688rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: var(--white); font-weight: 600; }
.prose td blockquote { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.law {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0 24px;
}
.law dt { font-weight: 600; color: var(--navy); }
.law dd { margin: 4px 0 16px; color: var(--slate); font-size: .9688rem; }
.law dd:last-child { margin-bottom: 0; }
.cite { font-size: .875rem; color: var(--slate); white-space: nowrap; }
.callout { background: var(--cream); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; font-size: .9688rem; }
.callout p:last-child { margin: 0; }
.doc-list { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.doc-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 !important; }
.doc-list svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; margin-top: 3px; }
.compare { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; }
.compare h3 { margin-top: 0 !important; font-size: 1.125rem !important; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.35; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 1.5px solid var(--gold-dark); border-bottom: 1.5px solid var(--gold-dark);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 0 20px; color: var(--slate); }
.faq .answer p:last-child { margin: 0; }

/* Autor */
.author {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  margin-top: 48px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9375rem;
}
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; }
.author p { margin: 4px 0 0; color: var(--slate); }
.author .dates { font-size: .8125rem; margin-top: 10px; }

/* Calculadora */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin: 28px 0; }
.calc h3 { margin-top: 0 !important; }
.calc-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.calc legend { font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: .9688rem; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--navy); }
.calc-result { margin-top: 24px; padding: 20px 22px; background: var(--paper); border-radius: var(--radius); }
.calc-result[hidden] { display: none; }
.calc-result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 12px; }
.calc-result dt { color: var(--slate); }
.calc-result dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc-result .total { border-top: 1px solid var(--line); padding-top: 10px; color: var(--navy); }
.calc-result p { font-size: .875rem; color: var(--slate); margin: 0; }

/* ---------- Formulário ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-card h2 { font-size: var(--step-2); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #cfc6b5; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 27, 46, .12); }
.field .hint { font-size: .8125rem; color: var(--slate); }
.field .error { display: none; font-size: .8125rem; color: var(--error); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid .error { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .875rem; color: var(--slate); }
.field .consent { font-weight: 400; color: var(--slate); font-size: .875rem; }
.field .consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--navy); box-shadow: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--slate); max-width: 46ch; }

.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr .7fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list a, .contact-list li > span { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0; text-decoration: none; color: inherit; min-height: 44px; }
.contact-list svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; }
.contact-list small { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .62); }
.contact-list a:hover { color: var(--gold-light); }

/* ---------- Chamada final ---------- */
.cta-band { background: var(--navy-2); color: var(--white); padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .container { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { margin-bottom: 12px; max-width: 24ch; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 56ch; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .9375rem; padding: 72px 0 0; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 210px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: rgba(255, 255, 255, .82); }
.footer-links a:hover { color: var(--gold-light); }
.site-footer address { font-style: normal; margin-bottom: 16px; }
.site-footer address strong { color: var(--white); font-weight: 500; }
.social { display: flex; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--white); transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0 32px; display: grid; gap: 10px; font-size: .8125rem; color: rgba(255, 255, 255, .62); }
.footer-bottom p { margin: 0; }
.footer-bottom .oab { color: var(--white); }
.footer-bottom button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }
.footer-bottom button:hover { color: var(--gold-light); }

/* ---------- Barra fixa no celular ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(15, 27, 46, .3);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; }
  body { padding-bottom: 72px; }
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px -12px rgba(15, 27, 46, .35);
  padding: 22px 22px 18px; font-size: .9063rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.cookie-banner p { color: var(--slate); margin-bottom: 14px; }
.cookie-banner .btn-row .btn { flex: 1 1 140px; min-height: 44px; padding: 10px 14px; font-size: .875rem; }
.cookie-prefs { display: grid; gap: 10px; margin-bottom: 14px; }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .875rem; }
.cookie-prefs input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.cookie-prefs small { display: block; color: var(--slate); }
@media (max-width: 760px) { .cookie-banner { bottom: 84px; left: 12px; right: 12px; } }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Diversos ---------- */
.legal { font-size: 1rem; }
.legal h2 { font-size: var(--step-2); margin-top: 40px; }
.notice { font-size: .875rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.pill-list li { padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.bg-white .pill-list li, .bg-cream .pill-list li { border-color: var(--line); color: var(--ink); }
.related { margin-top: 64px; }
.not-found { min-height: 50vh; display: grid; place-items: center; text-align: center; }
@media print { .site-header, .site-footer, .mobile-bar, .cookie-banner, .toc { display: none !important; } body { background: #fff; } }

.prose > figure:first-child { margin-top: 0; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.callout > svg { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; }

/* ==========================================================================
   Abertura em tela cheia: cada hero ocupa a área visível inicial
   (altura da janela menos o cabeçalho) e escala pelo menor lado da tela,
   para não ficar cortada ao redimensionar.
   ========================================================================== */
:root { --hero-h: calc(100vh - var(--header-h)); }
@supports (height: 100svh) { :root { --hero-h: calc(100svh - var(--header-h)); } }
@media (max-width: 760px) {
  :root { --hero-h: calc(100vh - var(--header-h) - 72px); }
  @supports (height: 100svh) { :root { --hero-h: calc(100svh - var(--header-h) - 72px); } }
}

.hero, .page-hero {
  min-height: var(--hero-h);
  display: flex; align-items: center;
  padding-top: clamp(24px, 4.5vh, 64px); padding-bottom: clamp(24px, 4.5vh, 64px);
}
.hero > .container, .page-hero > .container { width: 100%; }

/* Tipografia e espaçamentos proporcionais à altura da tela */
.hero .eyebrow, .page-hero .eyebrow { margin-bottom: clamp(8px, 1.8vh, 18px); }
.hero h1 { font-size: clamp(1.875rem, min(3.6vw, 6vh), 4rem); margin-bottom: clamp(12px, 2.4vh, 24px); }
.page-hero h1 { font-size: clamp(1.875rem, min(3.6vw, 6.4vh), 3.75rem); margin-bottom: clamp(12px, 2.2vh, 20px); }
.hero .lead, .page-hero .lead { font-size: clamp(1rem, 2.3vh, 1.25rem); margin-bottom: clamp(16px, 3.4vh, 32px); }
.page-hero .breadcrumb { margin-bottom: clamp(12px, 2.6vh, 28px); }
.page-hero .byline { margin-top: clamp(12px, 2.4vh, 28px); }
.door { min-height: 0; padding: clamp(12px, 2vh, 20px) 22px; }
.hero-contact { margin-top: clamp(8px, 2.2vh, 28px); }

/* Imagens da abertura nunca passam da altura disponível */
@media (min-width: 960px) {
  .portrait { max-width: min(460px, calc((var(--hero-h) - 140px) * .8)); }
  .page-hero .media img { max-height: calc(var(--hero-h) - 120px); width: auto; max-width: 100%; margin-left: auto; }
}

/* Celular: a abertura ocupa a primeira tela; o retrato vem logo abaixo */
@media (max-width: 959px) {
  .hero { flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(1.875rem, 8.4vw, 2.5rem); }
  .hero-grid > div:first-child { min-height: calc(var(--hero-h) - clamp(48px, 9vh, 128px)); display: flex; flex-direction: column; justify-content: center; }
  .page-hero.has-media .media { display: none; }
}

/* Celular: abertura compacta para caber na primeira tela */
@media (max-width: 959px) {
  .hero h1 { font-size: clamp(1.625rem, min(8.4vw, 4.8vh), 2.5rem); }
  .page-hero h1 { font-size: clamp(1.5rem, min(7.4vw, 4.4vh), 2.5rem); }
  .hero .lead, .page-hero .lead { font-size: clamp(.875rem, min(4.2vw, 2.2vh), 1.0625rem); line-height: 1.55; }
  .page-hero .breadcrumb { display: none; }
  .door small { display: none; }
  .door span { font-size: 1.1875rem; }
  .page-hero .btn-row { flex-wrap: nowrap; }
  .page-hero .btn-row .btn { flex: 1 1 0; min-width: 0; padding: 10px 12px; font-size: .875rem; text-align: center; }
  .page-hero .pill-list li { font-size: .75rem; padding: 4px 10px; }
}
@media (max-width: 760px) {
  .hero-contact { display: none; } /* a barra fixa já oferece WhatsApp e Ligar */
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero h1 { font-size: clamp(1.5rem, 4.3vh, 2rem); }
  .hero .lead { margin-bottom: 14px; }
  .door { padding: 10px 18px; }
}

/* ==========================================================================
   v3 — Aberturas fotográficas e seções com imagem (referência editorial)
   ========================================================================== */
.photo-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white);
  flex-direction: column; align-items: stretch; justify-content: flex-end; padding-bottom: 0; }
.bg-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.bg-media img { width: 100%; height: 100%; object-fit: cover; }
/* abertura da home: em telas largas o corte cai embaixo, preservando a cabeça */
.hero.photo-hero .bg-media img, .photo-hero.bg-top .bg-media img, .bg-media.top img { object-position: 50% 0; }
.photo-hero::after, .photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,27,46,.96) 0%, rgba(15,27,46,.86) 34%, rgba(15,27,46,.45) 66%, rgba(15,27,46,.2) 100%),
    linear-gradient(0deg, rgba(15,27,46,.85) 0%, rgba(15,27,46,0) 38%);
}
.photo-hero > .container { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(16px, 3vh, 40px); padding-bottom: clamp(20px, 4vh, 48px); }
.photo-hero .hero-copy { max-width: 680px; }
.photo-hero h1 { color: var(--white); max-width: 18ch; }
.photo-hero .lead { color: rgba(255,255,255,.82); }
.photo-hero .eyebrow { color: var(--gold-light); }
.photo-hero .door { background: rgba(255,255,255,.96); }
.photo-hero .door.primary { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.photo-hero .door.primary small { color: rgba(15,27,46,.72); }
.photo-hero .door.primary svg { stroke: var(--navy); }
.photo-hero .hero-contact { color: rgba(255,255,255,.8); }
.photo-hero .hero-contact a { color: var(--white); }
.photo-hero .hero-contact a:hover { color: var(--gold-light); }
.photo-hero .hero-contact svg { stroke: var(--gold-light); }
.photo-hero .breadcrumb { color: rgba(255,255,255,.7); }

/* Faixa de destaques na base da abertura */
.hero-bar { position: relative; border-top: 1px solid rgba(201,169,110,.28); background: rgba(15,27,46,.55); }
.hero-bar ol, .hero-bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hero-bar li { border-left: 1px solid rgba(201,169,110,.2); }
.hero-bar li:first-child { border-left: 0; }
.hero-bar a, .hero-bar .item { display: flex; flex-direction: column; gap: 2px; padding: clamp(14px, 2.4vh, 24px) 20px; text-decoration: none; color: var(--white); height: 100%; transition: background-color .2s; }
.hero-bar li:first-child a, .hero-bar li:first-child .item { padding-left: 0; }
.hero-bar a:hover { background: rgba(255,255,255,.05); }
.hero-bar strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.0625rem, 2.4vh, 1.375rem); color: var(--gold-light); line-height: 1.2; }
.hero-bar span { font-size: .8125rem; color: rgba(255,255,255,.75); }
.hero-bar .n { font-size: .6875rem; letter-spacing: .14em; color: var(--gold-light); font-weight: 600; }

@media (max-width: 959px) {
  .photo-hero::after, .photo-band::after {
    background: linear-gradient(0deg, rgba(15,27,46,.97) 0%, rgba(15,27,46,.86) 50%, rgba(15,27,46,.55) 100%);
  }
  .photo-hero > .container { justify-content: flex-end; }
  .hero-bar { display: none; }
}
/* tablet: foto 16:9 inteira no alto (sem corte lateral), texto embaixo sobre azul */
@media (min-width: 761px) and (max-width: 959px) {
  .hero.photo-hero .bg-media { bottom: auto; height: 56.25vw; }
  .hero.photo-hero::after { background: linear-gradient(180deg,
    rgba(15,27,46,.1) 0, rgba(15,27,46,.25) 28vw, rgba(15,27,46,.88) 46vw, var(--navy) 56vw); }
}
/* celular: foto no alto (rosto livre), texto começa abaixo do queixo */
@media (max-width: 760px) {
  /* recorte quadrado (cintura para cima), mostrado inteiro na largura da tela */
  .hero.photo-hero .bg-media { bottom: auto; height: 100vw; }
  .hero.photo-hero > .container { padding-top: 64vw; }
  .hero.photo-hero::after { background: linear-gradient(180deg,
    rgba(15,27,46,.05) 0, rgba(15,27,46,.12) 46vw, rgba(15,27,46,.8) 76vw, var(--navy) 99vw); }
}

/* Abertura da página "O advogado": recorte sobre azul-marinho */
.portrait-hero { position: relative; overflow: hidden; }
.portrait-hero .container { position: relative; }
.cutout { position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); bottom: 0; height: calc(var(--hero-h) - 24px); max-height: 760px; width: auto; z-index: 0; pointer-events: none; }
.portrait-hero .hero-copy { position: relative; z-index: 1; max-width: 640px; }
@media (max-width: 959px) { .cutout { display: none; } }

/* Abas de atuação */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tabs button {
  position: relative; min-height: 56px; padding: 14px 24px; font: 500 1rem var(--sans); color: var(--slate);
  background: none; border: 0; cursor: pointer; transition: color .2s;
}
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--navy); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:hover { color: var(--navy); }
.tab-panel { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tab-panel[hidden] { display: none; }
@media (min-width: 900px) { .tab-panel { grid-template-columns: 1fr 1fr; } }
.tab-panel .media img { aspect-ratio: 4 / 3; }
.tab-panel h3 { font-size: var(--step-2); margin-bottom: 12px; }
.link-list { list-style: none; margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; transition: color .2s, padding .2s; }
.link-list a:hover { color: var(--gold-dark); padding-left: 6px; }
.link-list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold-dark); stroke-width: 1.8; }
.link-list small { display: block; font-weight: 400; color: var(--slate); font-size: .875rem; }
.on-dark .link-list { border-color: var(--line-dark); }
.on-dark .link-list a { color: var(--white); border-color: var(--line-dark); }
.on-dark .link-list small { color: rgba(255,255,255,.65); }
.on-dark .link-list svg { stroke: var(--gold-light); }

/* Faixa com imagem de fundo */
.photo-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); padding: clamp(80px, 12vw, 160px) 0; }
.photo-band::after { background: linear-gradient(90deg, rgba(15,27,46,.94) 0%, rgba(15,27,46,.78) 50%, rgba(15,27,46,.55) 100%); }
.photo-band blockquote { margin: 0 0 32px; font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.2; max-width: 22ch; color: var(--white); }
.photo-band h2 { color: var(--white); max-width: 22ch; }
.photo-band p { color: rgba(255,255,255,.8); max-width: 56ch; }
.photo-band .split { align-items: center; }

/* Bloco do advogado com recorte */
.lawyer { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .lawyer { grid-template-columns: 1.1fr .9fr; } }
.lawyer-visual { position: relative; background: var(--navy); border-radius: var(--radius); min-height: 520px; overflow: hidden; isolation: isolate; }
.lawyer-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/contour.svg") center bottom / 900px auto no-repeat; }
.lawyer-visual::before { display: none; }
.lawyer-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* frase no alto à esquerda, na direção do dedo, sobre caixa escura para contraste */
.lawyer-visual .tagline { position: absolute; left: clamp(16px, 4%, 28px); top: clamp(16px, 4%, 28px); z-index: 1; max-width: 16ch;
  padding: 14px 18px; background: rgba(15,27,46,.9); border-left: 2px solid var(--gold-light); border-radius: var(--radius);
  color: var(--gold-light); font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; }
/* coluna única: card estreito; a frase sai de cima do rosto e vira faixa acima da foto (o dedo aponta para ela) */
@media (max-width: 959px) {
  .lawyer-visual { min-height: 0; display: flex; flex-direction: column; }
  .lawyer-visual img { position: static; height: auto; aspect-ratio: 4 / 5; max-height: 640px; }
  .lawyer-visual .tagline { position: static; max-width: none; border-left: 0; border-bottom: 2px solid var(--gold-light); border-radius: 0; padding: 16px 20px; background: var(--navy); }
}
.cred-list { display: grid; gap: 0; margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .cred-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.cred-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred-list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; color: var(--navy); }
.cred-list span { font-size: .875rem; color: var(--slate); }

/* Perguntas com imagem */
.faq-split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .faq-split { grid-template-columns: .85fr 1.15fr; } .faq-split .media { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-split .media img { aspect-ratio: 4 / 5; }
/* coluna única (tablet e celular): imagem horizontal e baixa, para não ocupar a tela inteira */
@media (max-width: 959px) { .faq-split .media img { aspect-ratio: 3 / 2; max-height: 420px; width: 100%; object-fit: cover; object-position: 50% 35%; } }
.faq .more { display: inline-flex; margin-top: 10px; }

/* Artigos em destaque */
.posts-feature { display: grid; gap: 24px; }
@media (min-width: 960px) { .posts-feature { grid-template-columns: 1.25fr 1fr; } }
.post-hero-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: 32px; border-radius: var(--radius); color: var(--white); text-decoration: none; background: var(--navy); }
.post-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.post-hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,27,46,.95) 0%, rgba(15,27,46,.4) 60%, rgba(15,27,46,.1) 100%); }
.post-hero-card:hover img { transform: scale(1.04); }
.post-hero-card .tag { color: var(--gold-light); }
.post-hero-card h3 { font-size: var(--step-2); margin: 10px 0; color: var(--white); }
.post-hero-card .meta { color: rgba(255,255,255,.75); }
.post-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-row img { width: 120px; height: 84px; object-fit: cover; border-radius: var(--radius); }
.post-row h3 { font-size: 1.125rem; margin: 4px 0; transition: color .2s; }
.post-row:hover h3 { color: var(--gold-dark); }

/* Escritórios com foto */
.office-tiles { display: grid; gap: 20px; }
@media (min-width: 900px) { .office-tiles { grid-template-columns: 1fr 1fr 1fr; } }
.office-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 28px; border-radius: var(--radius); color: var(--white); text-decoration: none; background: var(--navy); }
.office-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.office-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,27,46,.96) 0%, rgba(15,27,46,.55) 55%, rgba(15,27,46,.15) 100%); }
.office-tile:hover img { transform: scale(1.04); }
.office-tile .kind { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.office-tile h3 { font-size: 1.75rem; margin: 8px 0; color: var(--white); }
.office-tile address, .office-tile p { font-style: normal; font-size: .9375rem; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.office-tile .text-link { color: var(--gold-light); }
.office-tile.plain { background: var(--navy-2); }
.office-tile.plain::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/contour.svg") center / 900px auto; }

/* Contato sobre foto */
.contact-photo { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.contact-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,27,46,.95) 0%, rgba(15,27,46,.85) 45%, rgba(15,27,46,.7) 100%); }
.contact-photo .form-card { color: var(--ink); }

/* Imagens de seção com moldura dourada deslocada */
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: 0; }
.framed img { position: relative; z-index: 1; }
@media (max-width: 640px) { .framed::before { inset: 10px -8px -10px 10px; } }

/* Linhas alternadas de recurso */
.feature-row { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 112px); }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; } .feature-row.reverse > .media { order: 2; } }
.feature-row .media img { aspect-ratio: 4 / 3; }

.photo-hero { padding-top: 0; }
@media (min-width: 960px) { .contact-photo .contact-grid { grid-template-columns: .8fr 1.2fr; } }
/* desktop: a foto ocupa só a coluna esquerda (o rosto fica acima do texto, fora do formulário) */
@media (min-width: 960px) {
  .contact-photo .bg-media { top: clamp(26px, 4.5vw, 70px); right: auto; width: 46%; }
  .contact-photo .bg-media img { object-position: 46% 0; }
  .contact-photo::after { background:
    linear-gradient(0deg, rgba(15,27,46,.97) 0%, rgba(15,27,46,.88) 38%, rgba(15,27,46,.15) 66%, rgba(15,27,46,0) 100%),
    linear-gradient(90deg, rgba(15,27,46,.1) 0%, rgba(15,27,46,.25) 30%, rgba(15,27,46,.9) 44%, var(--navy) 52%); }
  .contact-photo .contact-grid > aside { align-self: end; }
}
.mobile-only { display: none; }
@media (max-width: 959px) { .mobile-only { display: block; } }

/* teto para telas muito altas */
:root { --hero-h: min(calc(100vh - var(--header-h)), 1200px); }
@supports (height: 100svh) { :root { --hero-h: min(calc(100svh - var(--header-h)), 1200px); } }
@media (max-width: 760px) { :root { --hero-h: min(calc(100vh - var(--header-h) - 72px), 1200px); } @supports (height: 100svh) { :root { --hero-h: min(calc(100svh - var(--header-h) - 72px), 1200px); } } }

.photo-hero .hero-copy { max-width: 760px; }
.photo-hero h1 { max-width: 24ch; }
@media (min-width: 960px) { .hero.photo-hero h1 { font-size: clamp(1.875rem, min(3.3vw, 5.6vh), 3.75rem); } .page-hero.photo-hero h1 { font-size: clamp(1.875rem, min(3.3vw, 5.8vh), 3.5rem); } }

.portrait-hero::after { content: ''; position: absolute; right: 4%; bottom: -10%; width: 46vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,169,110,.22) 0%, rgba(201,169,110,0) 65%); pointer-events: none; z-index: 0; }
.cutout { z-index: 1; height: calc(var(--hero-h) - 8px); right: max(var(--gutter), calc((100vw - var(--container)) / 2 + 40px)); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* ==========================================================================
   v4 — Biblioteca de seções (variações inspiradas no design system Stitch)
   ========================================================================== */
.kicker { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.on-dark .kicker { color: var(--gold-light); }
.tag-box { display: inline-block; padding: 6px 12px; border: 1px solid var(--gold); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.on-dark .tag-box { color: var(--gold-light); border-color: var(--gold-light); }
.tag-solid { display: inline-block; padding: 6px 12px; background: var(--navy); color: var(--white); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.gold-rule { display: block; width: 64px; height: 2px; background: var(--gold); margin: 18px 0 0; }
.center .gold-rule { margin-left: auto; margin-right: auto; }
.head-center { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.head-center p { color: var(--slate); margin: 12px auto 0; }
.on-dark .head-center p { color: rgba(255,255,255,.74); }

/* Abertura dividida clara (texto + imagem com selo dourado) */
.split-hero { position: relative; min-height: var(--hero-h); display: flex; align-items: center; background: var(--paper); overflow: hidden; padding: clamp(24px, 4vh, 56px) 0; }
.split-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 42%; background: var(--cream); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.split-hero .container { position: relative; display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .split-hero .container { grid-template-columns: 1.1fr .9fr; } }
.split-hero h1 { font-size: clamp(1.875rem, min(3.4vw, 6vh), 3.75rem); margin-bottom: clamp(12px, 2.2vh, 22px); }
.split-hero h1 em { display: block; }
.split-hero .lead { margin-bottom: clamp(16px, 3vh, 32px); font-size: clamp(1rem, 2.2vh, 1.1875rem); }
.split-hero .breadcrumb { color: var(--slate); margin-bottom: clamp(10px, 2vh, 20px); }
.split-hero .breadcrumb a { color: var(--ink); }
.split-hero .figure { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 480px; }
.split-hero .figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: calc(var(--hero-h) - 80px); box-shadow: 0 30px 60px -30px rgba(15,27,46,.45); }
.badge-gold { position: absolute; left: -28px; bottom: -20px; background: var(--gold-light); color: var(--navy); padding: 18px 22px; max-width: 240px; box-shadow: var(--shadow); }
.badge-gold strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1; margin-bottom: 4px; }
.badge-gold span { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.split-hero .btn-outline { --fg: var(--navy); }
@media (max-width: 959px) {
  .split-hero::before { display: none; }
  /* no celular a foto da coluna direita sobe para cima do texto, em formato horizontal */
  .split-hero { padding-top: 16px; align-items: flex-start; }
  .split-hero .figure { order: -1; justify-self: stretch; max-width: none; border-radius: var(--radius); overflow: hidden; }
  .split-hero .figure img { display: block; aspect-ratio: 3 / 2; max-height: none; object-position: var(--pos, 50% 35%); box-shadow: none; }
  .split-hero .badge-gold { left: 12px; top: 12px; bottom: auto; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 4px; box-shadow: none; }
  .split-hero .badge-gold strong { display: inline; font-family: inherit; font-size: .75rem; font-weight: 700; margin: 0 6px 0 0; }
  .split-hero .badge-gold span { font-size: .6875rem; letter-spacing: .04em; }
  .split-hero:has(.hero-mobile-photo) .figure { display: none; }
  .split-hero .breadcrumb { display: none; }
  .split-hero h1 { font-size: clamp(1.5rem, min(7.4vw, 4.4vh), 2.5rem); }
  .split-hero .lead { font-size: clamp(.875rem, min(4.2vw, 2.2vh), 1.0625rem); }
  .split-hero .btn-row { flex-wrap: nowrap; }
  .split-hero .btn-row .btn { flex: 1 1 0; min-width: 0; padding: 10px 12px; font-size: .875rem; }
}

/* Abertura com título centralizado sobre a foto */
.photo-hero.centered .hero-copy { margin: 0 auto; text-align: center; max-width: 860px; }
.photo-hero.centered h1 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.photo-hero.centered .lead { margin-left: auto; margin-right: auto; }
.photo-hero.centered .eyebrow, .photo-hero.centered .breadcrumb, .photo-hero.centered .btn-row { justify-content: center; }
.photo-hero.centered::after { background: radial-gradient(ellipse at center, rgba(15,27,46,.72) 0%, rgba(15,27,46,.9) 70%), linear-gradient(0deg, rgba(15,27,46,.9) 0%, rgba(15,27,46,0) 40%); }

/* Cards com filete dourado no topo */
.cards-top { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-top.c3 { grid-template-columns: repeat(3, 1fr); } .cards-top.c4 { grid-template-columns: repeat(4, 1fr); } }
.card-top { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.card-top .ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--gold-dark); margin-bottom: 6px; }
.card-top .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.card-top .num { font-family: var(--serif); color: var(--gold); font-size: 1rem; }
.card-top h3 { margin: 0; font-size: 1.25rem; }
.card-top p { margin: 0; color: var(--slate); font-size: .9688rem; }
.card-top .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--slate); font-style: italic; }
.card-top ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card-top li, .sq-list li { position: relative; padding-left: 18px; font-size: .9375rem; color: #26324a; }
.card-top li::before, .sq-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--gold); }
.sq-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.on-dark .sq-list li { color: rgba(255,255,255,.85); }
a.card-top { text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.card-top:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.on-dark .card-top { background: rgba(255,255,255,.04); border-color: rgba(201,169,110,.22); border-top-color: var(--gold); }
.on-dark .card-top p { color: rgba(255,255,255,.74); }
.on-dark .card-top h3 { color: var(--white); }
.on-dark .card-top .ico { background: rgba(201,169,110,.12); color: var(--gold-light); }

/* Bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); } .bento .wide { grid-column: span 2; } .bento .tall { grid-row: span 2; } }
.bento > * { position: relative; padding: 30px 28px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; overflow: hidden; isolation: isolate; }
.bento h3 { margin: 0; font-size: 1.375rem; }
.bento p { margin: 0; color: var(--slate); font-size: .9688rem; }
.bento .big { font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--gold-dark); }
.bento .b-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bento .b-dark h3 { color: var(--white); } .bento .b-dark p { color: rgba(255,255,255,.75); } .bento .b-dark .big { color: var(--gold-light); }
.bento .b-gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.bento .b-gold p { color: rgba(15,27,46,.8); } .bento .b-gold .big { color: var(--navy); }
.bento .b-photo { color: var(--white); border: 0; justify-content: flex-end; min-height: 280px; }
.bento .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.bento .b-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,27,46,.95), rgba(15,27,46,.2)); }
.bento .b-photo h3 { color: var(--white); } .bento .b-photo p { color: rgba(255,255,255,.8); }
.bento a:hover img { transform: scale(1.04); }
.bento .ico { color: var(--gold-dark); } .bento .b-dark .ico, .bento .b-photo .ico { color: var(--gold-light); } .bento .b-gold .ico { color: var(--navy); }
.bento .ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bento .go { margin-top: auto; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); }
.bento .b-dark .go, .bento .b-photo .go { color: var(--gold-light); } .bento .b-gold .go { color: var(--navy); }
.bento .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.on-dark .bento > * { background: rgba(255,255,255,.04); border-color: rgba(201,169,110,.2); }
.on-dark .bento h3 { color: var(--white); } .on-dark .bento p { color: rgba(255,255,255,.74); }
.on-dark .bento .b-gold { background: var(--gold-light); } .on-dark .bento .b-gold h3 { color: var(--navy); } .on-dark .bento .b-gold p { color: rgba(15,27,46,.8); }

/* Faixa de números da lei */
.num-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; text-align: center; }
@media (min-width: 800px) { .num-strip { grid-template-columns: repeat(4, 1fr); } }
.num-strip strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; color: var(--navy); }
.num-strip span { display: block; margin-top: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.num-strip small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--slate); }
.on-dark .num-strip strong { color: var(--gold-light); } .on-dark .num-strip span, .on-dark .num-strip small { color: rgba(255,255,255,.7); }

/* Etapas em círculos */
.circle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: cs; position: relative; }
@media (min-width: 800px) { .circle-steps { grid-template-columns: repeat(3, 1fr); } .circle-steps::before { content: ""; position: absolute; top: 24px; left: 16%; right: 16%; height: 1px; background: var(--line); } }
.circle-steps li { text-align: center; position: relative; }
.circle-steps li::before { counter-increment: cs; content: counter(cs); display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 50%; background: var(--gold-light); color: var(--navy); font-family: var(--serif); font-size: 1.25rem; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--paper); }
.bg-white .circle-steps li::before { box-shadow: 0 0 0 8px var(--white); }
.circle-steps h3 { margin-bottom: 8px; }
.circle-steps p { color: var(--slate); font-size: .9688rem; max-width: 30ch; margin: 0 auto; }

/* FAQ em caixas */
.faq-box { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-box details { background: var(--white); border: 1px solid var(--line); }
.faq-box details[open] { border-color: var(--gold); }
.faq-box summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 16px 22px; font-weight: 600; font-size: .9375rem; color: var(--navy); }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold-dark); border-bottom: 1.5px solid var(--gold-dark); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq-box details[open] summary::after { transform: rotate(-135deg); }
.faq-box .answer { padding: 0 22px 20px; color: var(--slate); }
.faq-box .answer p:last-child, .faq-box .answer ol:last-child { margin-bottom: 0; }

/* Painéis com ícone no cabeçalho */
.duo { display: grid; gap: 20px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { background: var(--white); border: 1px solid var(--line); padding: 30px 28px; }
.duo h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.duo .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.duo .dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.duo .yes .dot { background: #e6f2ea; color: #1f6b3a; }
.duo .no .dot { background: #f7e6e4; color: #9b2a1f; }

/* Caixas de prazo + imagem com citação dourada */
.stat-boxes { display: grid; gap: 14px; margin-top: 24px; }
.stat-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 20px; background: rgba(255,255,255,.05); border-left: 3px solid var(--gold); }
.stat-box strong { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; color: var(--gold-light); min-width: 2.2ch; }
.stat-box b { display: block; color: var(--white); font-weight: 600; }
.stat-box span { font-size: .875rem; color: rgba(255,255,255,.7); }
.quote-figure { position: relative; margin: 0; padding: 0 0 48px 0; }
.quote-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quote-card { position: absolute; right: -16px; bottom: 0; max-width: 300px; background: var(--gold-light); color: var(--navy); padding: 22px 24px; box-shadow: var(--shadow); }
.quote-card .kicker { color: var(--navy); }
.quote-card p { margin: 8px 0 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; font-style: italic; }
@media (max-width: 640px) { .quote-card { position: relative; right: auto; max-width: none; margin-top: -24px; margin-left: 16px; } .quote-figure { padding-bottom: 0; } }

/* Card de alerta */
.alert-card { display: grid; gap: 22px; align-items: start; background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
@media (min-width: 720px) { .alert-card { grid-template-columns: auto 1fr; } }
.alert-card .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #f7ece0; color: var(--gold-dark); }
.alert-card .ring svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.alert-card h2 { font-size: var(--step-2); margin-bottom: 10px; }
.alert-card p { color: var(--slate); }

/* Cards de contato na chamada final */
.contact-cards { display: grid; gap: 14px; margin: 32px 0; }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-cards a, .contact-cards div { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: left; }
.contact-cards svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; }
.contact-cards small { display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.contact-cards strong { font-weight: 600; font-size: .9375rem; }
.contact-cards a:hover { border-color: var(--gold); }
.cta-light { background: var(--cream); border-top: 3px solid var(--gold); padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.cta-light h2 { font-size: var(--step-4); max-width: 20ch; margin: 0 auto 16px; }
.cta-light p { color: var(--slate); max-width: 56ch; margin: 0 auto; }
.cta-light .btn-row { justify-content: center; margin-top: 28px; }

/* Grade escura de itens pequenos */
.mini-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-grid > div { padding: 22px 20px; border: 1px solid rgba(201,169,110,.25); background: rgba(255,255,255,.03); }
.mini-grid > div::before { content: ""; display: block; width: 8px; height: 8px; background: var(--gold-light); margin-bottom: 14px; }
.mini-grid strong { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.mini-grid p { margin: 0; font-size: .9063rem; color: rgba(255,255,255,.76); }

/* Título à esquerda, texto à direita */
.title-left { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .title-left { grid-template-columns: .42fr .58fr; } }
.title-left h2 { margin: 0; }
.feat-icons { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 640px) { .feat-icons { grid-template-columns: 1fr 1fr; } }
.feat-icons > div { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.feat-icons svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-dark); stroke-width: 1.6; }
.feat-icons h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.feat-icons p { margin: 0; font-size: .9063rem; color: var(--slate); }
.bar-title { padding-left: 20px; border-left: 4px solid var(--gold); }

/* Lista numerada com caixas */
.num-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 26px; counter-reset: nl; }
.num-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.num-list li::before { counter-increment: nl; content: counter(nl, decimal-leading-zero); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--serif); }
.num-list h3 { margin: 0 0 6px; font-size: 1.125rem; color: var(--white); }
.num-list p { margin: 0; color: rgba(255,255,255,.74); font-size: .9375rem; }
.gold-frame { margin: 0; padding: 14px; border: 1px solid var(--gold); }
.gold-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gold-frame.wide { align-self: center; }

/* abertura com foto: no celular a foto (recorte quadrado) fica inteira no alto e o texto vem embaixo */
@media (max-width: 760px) {
  .photo-hero.photo-top .bg-media { bottom: auto; height: 100vw; }
  .photo-hero.photo-top > .container { padding-top: 70vw; }
  .photo-hero.photo-top::after { background: linear-gradient(180deg,
    rgba(15,27,46,.05) 0, rgba(15,27,46,.15) 40vw, rgba(15,27,46,.85) 76vw, var(--navy) 99vw); }
}

/* foto da abertura só no celular/tablet (no desktop a foto fica na coluna da direita) */
.hero-mobile-photo { display: none; }
@media (max-width: 959px) {
  .split-hero:has(.hero-mobile-photo) { padding-top: 16px; align-items: flex-start; }
  .hero-mobile-photo { display: block; position: relative; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 24px 48px -28px rgba(15,27,46,.55); }
  .hero-mobile-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
  .hero-mobile-photo figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; background: rgba(15,27,46,.85); color: var(--white); font-size: .75rem; font-weight: 600; letter-spacing: .04em; border-radius: 4px; }
  .hero-mobile-photo figcaption svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; }
}
.gold-frame.wide img { aspect-ratio: 16 / 9; }

/* Faixa de credenciais */
.cred-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.cred-strip .container { display: grid; gap: 0; }
@media (min-width: 800px) { .cred-strip .container { grid-template-columns: repeat(4, 1fr); } }
.cred-strip .container > div { padding: 26px 22px; border-left: 1px solid var(--line); }
.cred-strip .container > div:first-child { border-left: 0; padding-left: 0; }
.cred-strip small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.cred-strip strong { font-weight: 600; font-size: .9688rem; color: var(--navy); }
@media (max-width: 799px) { .cred-strip .container > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .cred-strip .container > div:first-child { border-top: 0; } }

/* Cartão de retrato com legenda */
.portrait-card { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); padding: 12px 12px 0; }
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-card figcaption { padding: 16px 6px 18px; }
.portrait-card figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--navy); }
.portrait-card figcaption span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

/* Faixa de informações (4 cards) */
.info-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .info-cards { grid-template-columns: repeat(4, 1fr); } }
.info-cards > * { padding: 22px 20px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.info-cards svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; margin-bottom: 6px; }
.info-cards small { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.info-cards p { margin: 0; font-size: .9063rem; color: var(--slate); }
.info-cards a:hover { border-color: var(--gold); }

/* Mosaico de imagens */
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 10px 14px; background: rgba(15,27,46,.92);
  border-left: 2px solid var(--gold-light); border-radius: 4px; color: var(--white); font-size: .8125rem; line-height: 1.4; }
.mosaic figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; }

/* Formulário com filete dourado */
.form-card.top-gold { border-top: 3px solid var(--gold); }

/* Página escura (Itapema) */
.dark-page .section { background: var(--navy); color: var(--white); }
.dark-page .section.alt { background: #0b1524; }
.dark-page .section h2 { color: var(--white); }
.dark-page .section .muted, .dark-page .section p { color: rgba(255,255,255,.76); }
.big-quote { margin: 0 auto; max-width: 820px; padding: 8px 0 8px 32px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); line-height: 1.4; color: var(--white); }
.gold-cols { display: grid; gap: 28px; }
@media (min-width: 720px) { .gold-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .gold-cols { grid-template-columns: repeat(4, 1fr); } }
.gold-cols > * { border-top: 2px solid var(--gold); padding-top: 22px; text-decoration: none; color: inherit; }
.gold-cols svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; margin-bottom: 12px; }
.gold-cols h3 { color: var(--white); margin-bottom: 8px; }
.gold-cols p { margin: 0; color: rgba(255,255,255,.74); font-size: .9375rem; }

.author-band { padding: 0 0 clamp(56px, 7vw, 96px); }
.author-band .author { max-width: 820px; margin: 0 auto; }

.contact-main .form-card { border-top: 3px solid var(--gold); }
.cards-top.center .card-top { text-align: center; }
.cards-top.center .card-top .ico { margin-left: auto; margin-right: auto; }

.bento .b-photo .go { margin-top: 6px; }

/* ==========================================================================
   v5 — Interação entre seções (barra utilitária, ondas, sobreposição, carrossel)
   ========================================================================== */
:root { --topbar-h: 0px; }
@media (min-width: 960px) { :root { --topbar-h: 38px; } }
:root { --hero-h: min(calc(100vh - var(--header-h) - var(--topbar-h)), 1200px); }
@supports (height: 100svh) { :root { --hero-h: min(calc(100svh - var(--header-h) - var(--topbar-h)), 1200px); } }
@media (max-width: 760px) { :root { --hero-h: min(calc(100vh - var(--header-h) - 72px), 1200px); } @supports (height: 100svh) { :root { --hero-h: min(calc(100svh - var(--header-h) - 72px), 1200px); } } }

.topbar { display: none; background: var(--navy); color: rgba(255,255,255,.78); font-size: .8125rem; border-bottom: 2px solid var(--gold); }
@media (min-width: 960px) { .topbar { display: block; } }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; height: calc(var(--topbar-h) - 2px); }
.topbar ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.topbar a:hover { color: var(--gold-light); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

/* Ondas entre seções */
.has-wave { position: relative; }
.wave { position: absolute; left: 0; right: 0; top: -1px; height: clamp(26px, 4.5vw, 70px); background: var(--wave, var(--paper)); pointer-events: none; z-index: 1;
  -webkit-mask: url("/assets/wave.svg") center top / 100% 100% no-repeat; mask: url("/assets/wave.svg") center top / 100% 100% no-repeat; }
.wave.flip { top: auto; bottom: -1px; transform: scaleY(-1); }
.has-wave > .container { position: relative; z-index: 2; }

/* Cards que avançam sobre a seção anterior */
.lift-band { padding-bottom: clamp(140px, 14vw, 200px) !important; }
.lift { position: relative; z-index: 3; margin-top: clamp(-170px, -12vw, -110px); }
.lift-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .lift-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lift-cards { grid-template-columns: repeat(4, 1fr); } }
.lift-cards > * { background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--gold); padding: 28px 24px; box-shadow: 0 24px 50px -28px rgba(15,27,46,.45); transition: transform .25s var(--ease), box-shadow .25s; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.lift-cards > *:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(15,27,46,.55); }
.lift-cards .n { font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--gold); }
.lift-cards h3 { margin: 0; font-size: 1.1875rem; }
.lift-cards p { margin: 0; color: var(--slate); font-size: .9375rem; }

/* Carrossel */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.carousel-head h2 { margin: 0; }
.carousel-nav { display: flex; gap: 8px; align-items: center; }
.carousel-nav button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.carousel-nav button:hover:not(:disabled) { background: var(--navy); color: var(--white); border-color: var(--navy); }
.carousel-nav button:disabled { opacity: .35; cursor: default; }
.carousel-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.carousel-nav .prev svg { transform: rotate(180deg); }
.on-dark .carousel-nav button { background: transparent; color: var(--white); border-color: rgba(201,169,110,.4); }
.on-dark .carousel-nav button:hover:not(:disabled) { background: var(--gold-light); color: var(--navy); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 48px) / 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track.wide-cards { grid-auto-columns: minmax(280px, calc((100% - 72px) / 4)); }
@media (max-width: 640px) { .carousel-track, .carousel-track.wide-cards { grid-auto-columns: 82%; } }
.carousel-progress { height: 2px; background: var(--line); margin-top: 8px; position: relative; overflow: hidden; }
.carousel-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--gold); transition: transform .3s var(--ease), width .3s; }
.on-dark .carousel-progress { background: rgba(255,255,255,.15); }

/* Card de área com imagem */
.area-tile { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; height: 100%; }
.area-tile .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.area-tile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.area-tile:hover .pic img { transform: scale(1.06); }
.area-tile .txt { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 3px solid var(--gold); }
.area-tile h3 { margin: 0; font-size: 1.25rem; }
.area-tile p { margin: 0; color: var(--slate); font-size: .9375rem; flex: 1; }
.area-tile .go { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); display: inline-flex; gap: 8px; align-items: center; }
.area-tile .go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.area-tile:hover .go svg { transform: translateX(4px); }

/* Faixa de ícones escura */
.icon-band { background: var(--navy); color: var(--white); padding: clamp(40px, 5vw, 64px) 0; }
.icon-band .grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 900px) { .icon-band .grid { grid-template-columns: repeat(5, 1fr); } }
.icon-band a { color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.icon-band .ring { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(201,169,110,.5); display: grid; place-items: center; color: var(--gold-light); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.icon-band .ring svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-band a:hover .ring { background: var(--gold-light); color: var(--navy); transform: translateY(-4px); }
.icon-band strong { font-weight: 600; font-size: .9375rem; }
.icon-band span { font-size: .8125rem; color: rgba(255,255,255,.65); }

/* Abertura com recorte sobre foto */
.cutout-hero .cutout { z-index: 0; }
.cutout-hero.photo-hero > .container { position: relative; z-index: 1; }
.cutout-hero.photo-hero::after { background: linear-gradient(90deg, rgba(15,27,46,.96) 0%, rgba(15,27,46,.85) 45%, rgba(15,27,46,.55) 100%); }

/* Imagens com zoom no passar do mouse */
.media.zoom { overflow: hidden; }
.media.zoom img { transition: transform .8s var(--ease); }
.media.zoom:hover img { transform: scale(1.04); }

@media (min-width: 960px) and (max-height: 720px) {
  .hero.photo-hero h1 { font-size: clamp(1.75rem, min(3vw, 5vh), 3rem); margin-bottom: 10px; }
  .hero.photo-hero .lead { margin-bottom: 14px; font-size: 1rem; }
  .hero.photo-hero .eyebrow { margin-bottom: 8px; }
  .door { padding: 10px 18px; }
  .door span { font-size: 1.125rem; }
  .hero-contact { margin-top: 6px; }
  .hero-bar a, .hero-bar .item { padding-top: 10px; padding-bottom: 10px; }
  .photo-hero > .container { padding-top: 10px; padding-bottom: 14px; }
}

.cutout-hero.photo-hero::after { inset: 0; right: 0; bottom: 0; width: auto; max-width: none; aspect-ratio: auto; border-radius: 0; z-index: -1;
  background: radial-gradient(circle at 78% 70%, rgba(201,169,110,.22) 0%, rgba(201,169,110,0) 35%), linear-gradient(90deg, rgba(15,27,46,.97) 0%, rgba(15,27,46,.9) 45%, rgba(15,27,46,.6) 100%); }
.cutout-hero .cutout { z-index: 0; }

/* ==========================================================================
   Abertura de "O advogado": recorte à esquerda sobre azul em degradê radial,
   texto centralizado à direita e monograma grande ao fundo
   ========================================================================== */
.lawyer-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  min-height: var(--hero-h); display: flex; align-items: stretch;
  background: radial-gradient(ellipse 70% 85% at 28% 62%, #24406B 0%, #172A47 42%, var(--navy) 72%, #0A1322 100%); }
.lawyer-hero::before { content: "TA"; position: absolute; z-index: -1; pointer-events: none;
  right: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: min(52vw, 760px); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(201,169,110,.16); }
.lh-grid { position: relative; display: grid; align-items: stretch; width: 100%; }
.lh-figure { margin: 0; display: flex; align-items: flex-end; justify-content: center; }
.lh-figure img { display: block; width: auto; height: min(calc(var(--hero-h) - 32px), 900px); max-width: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.4)); }
/* desktop: a coluna da foto tem a largura natural da imagem (não encolhe por causa do nome em linha única) */
@media (min-width: 960px) {
  .lawyer-hero .container.lh-grid { max-width: 1400px; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
  .lh-figure img { max-width: none; }
}
.lh-copy { align-self: center; text-align: center; padding: clamp(32px, 6vh, 72px) 0; display: flex; flex-direction: column; align-items: center; }
.lawyer-hero .breadcrumb { justify-content: center; color: rgba(255,255,255,.65); margin-bottom: clamp(16px, 3vh, 32px); }
.lawyer-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.lh-kicker { margin: 0 0 18px; font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.lawyer-hero h1 { margin: 0; color: var(--white); line-height: 1; max-width: none; }
.lh-name { display: block; font-family: var(--serif); font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(2rem, .6rem + 3vw, 3.875rem); color: #F1E6D2; }
@media (min-width: 960px) { .lh-name { white-space: nowrap; } }
.lh-role { display: block; margin-top: .25em; font-family: var(--serif); font-weight: 400; font-variant: small-caps; letter-spacing: .04em;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); color: var(--white); }
.lh-lead { margin: clamp(18px, 3vh, 28px) auto 0; max-width: 46ch; font-size: .9375rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; color: rgba(255,255,255,.88); }
.lh-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(22px, 4vh, 36px); padding: 18px 32px; border-radius: 6px;
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color .2s, transform .2s; }
.lh-btn:hover { background: #F1E6D2; transform: translateY(-1px); }
.lh-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lh-creds { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: .875rem; color: rgba(255,255,255,.78); }
.lh-creds li { display: inline-flex; align-items: center; gap: 8px; }
.lh-creds li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-light); }

/* tablet e celular: foto em cima (a base some no azul), texto embaixo */
@media (max-width: 959px) {
  .lawyer-hero { min-height: 0; }
  .lawyer-hero::before { font-size: 90vw; right: -8vw; top: 4vw; transform: none; }
  .lh-figure { padding-top: 20px; }
  .lh-figure img { height: auto; width: min(64vw, 380px); max-height: 52vh; object-fit: cover; object-position: top;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .lh-copy { margin-top: -28px; padding: 0 0 clamp(36px, 8vw, 56px); }
  .lawyer-hero .breadcrumb { display: none; }
  .lh-kicker { font-size: .6875rem; letter-spacing: .12em; }
  .lh-lead { font-size: .8125rem; }
}

/* ==========================================================================
   Home — bloco "O advogado": foto com moldura deslocada, selos e credenciais
   ========================================================================== */
.lawyer2 { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .lawyer2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.l2-photo { position: relative; margin: 0; padding: 0 28px 28px 0; max-width: 520px; width: 100%; justify-self: center; }
.l2-photo::before { content: ""; position: absolute; right: 0; bottom: 0; width: 78%; height: 82%; background: var(--navy); border-radius: var(--radius); }
.l2-photo::after { content: ""; position: absolute; top: -16px; left: -16px; width: 46%; height: 40%; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); pointer-events: none; }
.l2-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(15,27,46,.55); }
.l2-stat { position: absolute; left: -20px; top: 40px; z-index: 1; padding: 16px 20px; background: var(--navy); color: var(--white);
  border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(15,27,46,.6); }
.l2-stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; color: var(--gold-light); }
.l2-stat span { display: block; margin-top: 6px; font-size: .75rem; line-height: 1.35; color: rgba(255,255,255,.82); }
.l2-badge { position: absolute; right: 0; bottom: 64px; z-index: 1; padding: 16px 22px; background: var(--white); border-left: 3px solid var(--gold);
  border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(15,27,46,.45); }
.l2-badge strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1875rem; color: var(--navy); }
.l2-badge span { display: block; margin-top: 2px; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.l2-quote { margin: 18px 0 22px; padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1875rem, 1rem + .6vw, 1.4375rem); line-height: 1.45; color: var(--navy); }
.l2-creds { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.l2-creds li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s; }
.l2-creds li:hover { border-color: var(--gold); transform: translateY(-2px); }
.l2-creds .ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--gold-dark); }
.l2-creds .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.l2-creds strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.0625rem; color: var(--navy); }
.l2-creds small { display: block; font-size: .8125rem; color: var(--slate); }
@media (max-width: 959px) {
  .l2-photo { max-width: 460px; padding: 0 18px 18px 0; }
  .l2-stat { left: -8px; top: 20px; padding: 12px 16px; }
  .l2-stat strong { font-size: 1.75rem; }
  .l2-badge { bottom: 40px; padding: 12px 16px; }
  .l2-photo::after { top: -10px; left: -10px; }
}