/* ==========================================================================
   E-book Institucional — Rodovalho Feitosa Advogados
   Design system inspirado no modelo "cod-conduta-modelo.pdf"
   Formato: A4 paisagem (297 x 210 mm) — pronto para tela e PDF
   ========================================================================== */

:root {
  /* Paleta (extraída do modelo) */
  --cyan: #2fa8dc;
  --sky: #1d8fd1;
  --royal: #1468b8;
  --royal-deep: #0f5ea8;
  --navy: #0d2a6b;
  --navy-deep: #0b1749;
  --ink: #0b1a3d;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #eff5fc;
  --white: #ffffff;

  --grad-brand: linear-gradient(162deg, #2fa8dc 0%, #1a7cc6 30%, #0f56a3 55%, #0c2f78 78%, #0b1749 100%);
  --grad-duo: linear-gradient(162deg, rgba(47,168,220,.95) 0%, rgba(26,124,198,.92) 32%, rgba(15,86,163,.94) 58%, rgba(11,23,73,.98) 100%);

  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --page-w: 297mm;
  --page-h: 210mm;
  --pad-x: 15mm;
}

@page {
  size: A4 landscape;
  margin: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #1b3f86 0%, #0b1749 45%, #060d2c 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   Página
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  overflow: hidden;
  background: var(--white);
  margin: 14mm auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.04);
  break-after: page;
  page-break-after: always;
}

.page:last-of-type { break-after: auto; page-break-after: auto; }

/* --------------------------------------------------------------------------
   Metade imagem
   -------------------------------------------------------------------------- */
.media {
  position: absolute;
  inset: 0 50% 0 0;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Duotone azul sobre fotos P&B (sem mix-blend-mode para máxima compatibilidade com leitores PDF) */
.media.duo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-duo);
  opacity: .55;
  z-index: 1;
}

.media-logo-bottom {
  margin-top: auto;
  z-index: 4;
  width: 54mm;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.65));
}
.media-logo-bottom img {
  width: 100%;
  height: auto;
  display: block;
}

#marco .media > img {
  object-position: center 15%;
}

#tributario .media > img {
  object-position: center center;
}

/* Véu para legibilidade do título (topo) e número (base) */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,23,73,.55) 0%, rgba(11,23,73,0) 34%),
    linear-gradient(0deg, rgba(11,23,73,.80) 0%, rgba(11,23,73,0) 42%);
  z-index: 2;
}

.media.portrait::after {
  background:
    linear-gradient(180deg, rgba(11,23,73,.35) 0%, rgba(11,23,73,0) 22%),
    linear-gradient(0deg, rgba(11,23,73,.96) 0%, rgba(11,23,73,.55) 26%, rgba(11,23,73,0) 50%);
}

.media-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 15mm 15mm 13mm;
  display: flex;
  flex-direction: column;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 3mm;
  font-family: var(--font-display);
  font-size: 7.4pt;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #bfe6fb;
  margin-bottom: 4mm;
}

.kicker::before {
  content: "";
  width: 9mm;
  height: .35mm;
  background: currentColor;
  opacity: .8;
}

.media h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27pt;
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 118mm;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.media .big-number {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 4mm;
  z-index: 4;
}

.media .big-number strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 70pt;
  line-height: .82;
  letter-spacing: -.03em;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
  flex-shrink: 0;
}

.media .big-number span {
  font-family: var(--font-display);
  font-size: 7.2pt;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #bfe6fb;
  padding-bottom: 2mm;
  line-height: 1.5;
  white-space: nowrap;
}

/* Retrato dos sócios */
.media.portrait .media-inner { justify-content: flex-end; }
.media.portrait h2 { font-size: 26pt; }
.media .role {
  margin-top: 3mm;
  display: inline-flex;
  align-items: center;
  gap: 2.5mm;
  font-family: var(--font-display);
  font-size: 8pt;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #bfe6fb;
}
.media .role::before {
  content: "";
  width: 7mm;
  height: .5mm;
  background: var(--cyan);
}

/* --------------------------------------------------------------------------
   Metade texto
   -------------------------------------------------------------------------- */
.content {
  position: absolute;
  inset: 0 0 0 50%;
  padding: 31mm var(--pad-x) 21mm;
  display: flex;
  flex-direction: column;
}

/* Cabeçalho: rótulo à esquerda + logo superior direita */
.page-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24mm;
  padding: 0 11mm 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: .3mm solid var(--line);
}

.page-header .eyebrow {
  font-family: var(--font-display);
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--royal);
  display: flex;
  align-items: center;
  gap: 2.5mm;
}

.page-header .eyebrow i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 7mm;
  height: 5mm;
  padding: 0 1.4mm;
  border-radius: 1mm;
  background: var(--soft);
  color: var(--royal-deep);
  letter-spacing: .06em;
}

.logo-top {
  width: 43mm;
  height: auto;
  display: block;
}

/* Rodapé (estilo do modelo) */
.page-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11mm;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.page-footer .brand {
  display: flex;
  align-items: center;
  gap: 2.5mm;
  padding-left: var(--pad-x);
  font-family: var(--font-display);
  font-size: 6.3pt;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a9ab3;
}

.page-footer .brand b { font-weight: 600; color: #6b7d99; }

.page-footer .to-toc {
  margin-left: auto;
  align-self: center;
  margin-right: 4mm;
  font-family: var(--font-display);
  font-size: 6.5pt;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--royal);
  padding: 1.2mm 3.2mm;
  border: .25mm solid #cfe0f3;
  border-radius: 10mm;
  display: inline-flex;
  align-items: center;
  gap: 1.5mm;
  background: #ffffff;
}

.page-footer .to-toc svg {
  width: 2.8mm;
  height: 2.8mm;
  stroke-width: 2.5;
}

.page-footer .num {
  width: 19mm;
  display: grid;
  place-items: center;
  background: var(--royal-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10pt;
}

/* Tipografia do conteúdo */
.content p {
  font-size: 9.3pt;
  line-height: 1.62;
  margin-bottom: 3mm;
  text-align: justify;
  hyphens: auto;
}

.content p.lead {
  font-size: 10.6pt;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}

.content strong { color: var(--ink); font-weight: 600; }

.content .list-intro {
  font-family: var(--font-display);
  font-size: 8.6pt;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5mm 0 2.6mm;
  text-align: left;
  line-height: 1.45;
}

ul.items { list-style: none; }

ul.items li {
  position: relative;
  padding-left: 5.2mm;
  font-size: 8.9pt;
  line-height: 1.5;
  margin-bottom: 2mm;
  text-align: left;
}

ul.items li::before {
  content: "";
  position: absolute;
  left: .4mm;
  top: 1.7mm;
  width: 1.7mm;
  height: 1.7mm;
  background: linear-gradient(135deg, var(--cyan), var(--royal-deep));
  transform: rotate(45deg);
  border-radius: .3mm;
}

ul.items.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4mm 4mm;
}

ul.items.grid-2 li {
  margin: 0;
  background: var(--soft);
  border-radius: 1.5mm;
  padding: 3mm 3mm 3mm 8mm;
  font-weight: 500;
  color: var(--ink);
}
ul.items.grid-2 li::before { left: 3.2mm; top: 4.4mm; }

/* Densidade para páginas com muito texto */
.content.dense p { font-size: 8.7pt; line-height: 1.56; margin-bottom: 2.4mm; }
.content.dense p.lead { font-size: 9.6pt; }
.content.dense ul.items li { font-size: 8.4pt; line-height: 1.45; margin-bottom: 1.5mm; }
.content.dense .list-intro { margin: 1mm 0 2mm; }

.content.xdense p { font-size: 8.3pt; line-height: 1.52; margin-bottom: 2mm; }
.content.xdense ul.items li { font-size: 8.1pt; line-height: 1.42; margin-bottom: 1.2mm; }
.content.xdense .list-intro { font-size: 8.2pt; margin: .6mm 0 1.6mm; }

.content.airy p { font-size: 10pt; }
.content.airy ul.items li { font-size: 9.8pt; margin-bottom: 3.2mm; }

.content.center { justify-content: center; padding-top: 28mm; }

/* Citação */
blockquote.quote {
  position: relative;
  margin: 0 0 5mm;
  padding: 5mm 6mm 5mm 13mm;
  background: var(--soft);
  border-left: 1mm solid var(--royal-deep);
  border-radius: 0 2mm 2mm 0;
  font-family: var(--font-display);
  font-size: 12pt;
  line-height: 1.45;
  font-weight: 500;
  color: var(--navy);
}
blockquote.quote::before {
  content: "\201C";
  position: absolute;
  left: 3.5mm;
  top: 1mm;
  font-size: 34pt;
  line-height: 1;
  color: var(--cyan);
  font-family: Georgia, serif;
}

/* Cartões Missão / Visão / Valores */
.mvv { display: grid; gap: 3.6mm; }
.mvv-card {
  display: grid;
  grid-template-columns: 12mm 1fr;
  gap: 4mm;
  padding: 4.6mm 5mm;
  border: .3mm solid var(--line);
  border-radius: 2.5mm;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.mvv-card .ico {
  width: 12mm;
  height: 12mm;
  border-radius: 2.5mm;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
}
.mvv-card .ico svg { width: 6mm; height: 6mm; }
.mvv-card h3 {
  font-family: var(--font-display);
  font-size: 10.5pt;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.2mm;
}
.mvv-card p { margin: 0 !important; font-size: 8.9pt !important; text-align: left !important; }

.chips { display: flex; flex-wrap: wrap; gap: 1.8mm; margin-top: 2.4mm; }
.chips span {
  font-family: var(--font-display);
  font-size: 7.4pt;
  font-weight: 500;
  color: var(--royal-deep);
  background: var(--soft);
  border: .25mm solid #d3e4f6;
  padding: 1.2mm 3mm;
  border-radius: 10mm;
}

/* Lista de sócios */
.partners { display: grid; gap: 4mm; }
.partner-card {
  display: grid;
  grid-template-columns: 24mm 1fr auto;
  align-items: center;
  gap: 5mm;
  padding: 3.6mm 5mm 3.6mm 3.6mm;
  border: .3mm solid var(--line);
  border-radius: 3mm;
  background: #fff;
  box-shadow: 0 2mm 6mm rgba(15, 94, 168, .06);
}
.partner-card img {
  width: 24mm;
  height: 24mm;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: .8mm solid var(--soft);
}
.partner-card h3 {
  font-family: var(--font-display);
  font-size: 11.5pt;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.partner-card small {
  display: block;
  margin-top: 1mm;
  font-family: var(--font-display);
  font-size: 7pt;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--royal);
}
.partner-card .go {
  font-family: var(--font-display);
  font-size: 8pt;
  font-weight: 600;
  color: var(--royal-deep);
  white-space: nowrap;
}

/* Grade de áreas */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6mm;
}
.area-card {
  display: grid;
  grid-template-columns: 9mm 1fr;
  align-items: center;
  gap: 3mm;
  padding: 2.6mm 3mm;
  border: .3mm solid var(--line);
  border-radius: 2mm;
  background: #fff;
  min-height: 13.5mm;
}
.area-card b {
  display: grid;
  place-items: center;
  width: 9mm;
  height: 9mm;
  border-radius: 1.8mm;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8pt;
  font-weight: 600;
}
.area-card span {
  font-family: var(--font-display);
  font-size: 8.2pt;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

/* Sumário — distribuído verticalmente para ocupar toda a área útil */
.toc {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1mm 0 2mm;
}
.toc > li { border-bottom: .25mm dashed #d6e2f0; padding-bottom: 2.4mm; }
.toc > li:last-child { border-bottom: none; padding-bottom: 0; }
.toc a {
  display: grid;
  grid-template-columns: 12mm 1fr auto;
  align-items: baseline;
  gap: 2mm;
  padding: 2.4mm 0;
}
.toc .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12pt;
  color: var(--royal-deep);
}
.toc .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13pt;
  color: var(--ink);
}
.toc .p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11pt;
  color: var(--royal-deep);
  min-width: 8mm;
  text-align: right;
}
.toc ul { list-style: none; padding: .5mm 0 0 14mm; }
.toc ul a { padding: 1.5mm 0; grid-template-columns: 1fr auto; }
.toc ul .t { font-family: var(--font-body); font-weight: 400; font-size: 10pt; color: var(--text); }
.toc ul .p { font-weight: 500; font-size: 9.5pt; color: var(--muted); }
.toc ul.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8mm; }

/* --------------------------------------------------------------------------
   Capa e contracapa
   -------------------------------------------------------------------------- */
.page.cover, .page.back {
  background: var(--grad-brand);
  color: #fff;
}

.cover-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 85% 95%, rgba(5,12,45,.60) 0%, rgba(5,12,45,0) 45%);
}

.cover-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 .4mm, transparent .4mm 9mm);
}

.cover-frame-box {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 170mm;
  height: 122mm;
  border: .35mm solid rgba(255,255,255,.55);
  pointer-events: none;
}

.cover-badge-top {
  position: absolute;
  top: -3.5mm;
  left: 22mm;
  padding: 0 4mm;
  background: #1e83ca;
  font-family: var(--font-display);
  font-size: 8.5pt;
  font-weight: 500;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: #ffffff;
}

.cover-badge-right {
  position: absolute;
  right: -3.5mm;
  bottom: 18mm;
  padding: 3.5mm 0;
  writing-mode: vertical-rl;
  background: #0d3882;
  font-family: var(--font-display);
  font-size: 7.5pt;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #bfe6fb;
}

.cover-logo-card {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 108mm;
  padding: 9.5mm 12mm 8.5mm;
  background: rgba(255,255,255,.98);
  border-radius: 3mm;
  box-shadow: 0 12mm 32mm rgba(4, 14, 52, .45);
}
.cover-logo-card img { width: 100%; display: block; }

.cover h1 {
  position: absolute;
  left: 0; right: 0;
  bottom: 25mm;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11pt;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.cover-values {
  position: absolute;
  left: 0; right: 0;
  bottom: 16mm;
  display: flex;
  justify-content: center;
  gap: 5mm;
  font-family: var(--font-display);
  font-size: 7.4pt;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #cfe9fb;
}
.cover-values span + span::before {
  content: "•";
  margin-right: 5mm;
  color: var(--cyan);
}

.back-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7mm;
}
.back .cover-logo-card {
  position: static;
  transform: none;
  width: 92mm;
}
.back .cities {
  font-family: var(--font-display);
  font-size: 10.5pt;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
}
.back .cities span { color: var(--cyan); margin: 0 3mm; }
.back .site {
  font-family: var(--font-display);
  font-size: 12pt;
  letter-spacing: .06em;
  padding: 2.4mm 7mm;
  border: .3mm solid rgba(255,255,255,.55);
  border-radius: 20mm;
  background: rgba(255,255,255,.06);
}
.back h2 {
  font-family: var(--font-display);
  font-size: 8pt;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #cfe9fb;
}

/* --------------------------------------------------------------------------
   Elementos somente de tela & Barra de Navegação Superior
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

.screen-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(8, 16, 52, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-display);
  color: #dbeafe;
}

.screen-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.screen-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.screen-bar strong { font-weight: 600; letter-spacing: .04em; color: #ffffff; }
.screen-bar span { font-size: 13px; opacity: .75; margin-left: 10px; }

.screen-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-bar a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.screen-bar a.screen-back,
.screen-bar a.screen-toc {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.screen-bar a.screen-back:hover,
.screen-bar a.screen-toc:hover {
  background: rgba(255, 255, 255, 0.18);
}

.screen-bar a:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }

@media screen {
  .page { transition: transform .35s ease; scroll-margin-top: 72px; }
  .area-card, .partner-card, .toc a { transition: background .2s ease, transform .2s ease; }
  .area-card:hover, .partner-card:hover { background: var(--soft); transform: translateY(-.4mm); }
  .toc a:hover .t { color: var(--royal-deep); }
}

@media screen and (max-width: 1180px) and (min-width: 961px) {
  body { zoom: .8; }
}

/* --------------------------------------------------------------------------
   Responsividade Mobile & Tablet Portrait (Telas <= 960px)
   Converte as lâminas A4 Paisagem em cards verticais fluidos e legíveis
   -------------------------------------------------------------------------- */
@media screen and (max-width: 960px) {
  html, body {
    overflow-x: hidden;
  }

  .screen-bar {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .screen-bar-left {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .screen-title {
    display: none;
  }

  .screen-bar-actions {
    gap: 8px;
    margin-left: auto;
  }

  .screen-bar a {
    font-size: 12px;
    padding: 7px 13px;
  }

  /* Página convertida em card vertical responsivo */
  .page {
    width: calc(100% - 24px);
    max-width: 640px;
    height: auto;
    min-height: auto;
    margin: 16px auto;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 64px;
  }

  /* Capa e Contracapa no Mobile */
  .page.cover {
    min-height: 420px;
    padding: 44px 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .cover-frame-box {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
  }

  .cover-badge-top {
    position: static;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-align: center;
  }

  .cover-badge-right {
    display: none;
  }

  .cover-logo-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(84%, 280px);
    padding: 20px 24px;
    border-radius: 12px;
    order: 2;
  }

  .cover h1 {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    font-size: 0.98rem;
    letter-spacing: 0.22em;
    line-height: 1.4;
    padding: 0 10px;
    order: 3;
  }

  .page.back {
    min-height: 360px;
    padding: 44px 20px;
  }

  .back-center {
    position: relative;
    inset: auto;
    gap: 18px;
  }

  .back .cover-logo-card {
    width: min(80%, 250px);
  }

  .back .cities {
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    line-height: 1.6;
  }

  .back .site {
    font-size: 0.92rem;
    padding: 10px 20px;
  }

  /* Metade Imagem (Topo do Card no Mobile) */
  .media {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 230px;
  }

  .media.portrait {
    min-height: 360px;
  }

  .media-inner {
    position: relative;
    inset: auto;
    min-height: 230px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .media.portrait .media-inner {
    min-height: 360px;
    justify-content: flex-end;
  }

  .kicker {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    gap: 8px;
    margin-bottom: 8px;
  }

  .kicker::before {
    width: 24px;
    height: 1.5px;
  }

  .media h2,
  .media.portrait h2 {
    font-size: 1.75rem;
    line-height: 1.18;
    max-width: 100%;
  }

  .media .role {
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    gap: 8px;
  }

  .media .role::before {
    width: 20px;
    height: 2px;
  }

  .media .big-number {
    margin-top: 24px;
    gap: 12px;
  }

  .media .big-number strong {
    font-size: 3.4rem;
    line-height: 0.85;
  }

  .media .big-number span {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    padding-bottom: 4px;
  }

  .media-logo-bottom {
    width: 140px;
    margin-top: 24px;
  }

  /* Metade Conteúdo (Base do Card no Mobile) */
  .content,
  .content.center,
  .content.dense,
  .content.xdense,
  .content.airy {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 0 20px 20px;
    justify-content: flex-start;
  }

  .page-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    padding: 16px 0;
    margin-bottom: 18px;
    gap: 12px;
    border-bottom: 1px solid var(--line);
  }

  .page-header .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    gap: 8px;
  }

  .page-header .eyebrow i {
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
  }

  .logo-top {
    width: 118px;
    flex-shrink: 0;
  }

  /* Tipografia Fluida e Legível no Celular */
  .content p,
  .content.dense p,
  .content.xdense p,
  .content.airy p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 14px;
    text-align: left;
    hyphens: none;
  }

  .content p.lead,
  .content.dense p.lead {
    font-size: 1.03rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .content .list-intro,
  .content.dense .list-intro,
  .content.xdense .list-intro {
    font-size: 0.94rem;
    margin: 8px 0 12px;
  }

  ul.items li,
  .content.dense ul.items li,
  .content.xdense ul.items li,
  .content.airy ul.items li {
    font-size: 0.92rem;
    line-height: 1.55;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  ul.items li::before {
    left: 2px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 1px;
  }

  ul.items.grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  ul.items.grid-2 li {
    padding: 12px 14px 12px 28px;
    border-radius: 8px;
  }

  ul.items.grid-2 li::before {
    left: 12px;
    top: 18px;
  }

  /* Citação no Mobile */
  blockquote.quote {
    margin: 0 0 18px;
    padding: 16px 16px 16px 38px;
    border-left-width: 4px;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
  }

  blockquote.quote::before {
    left: 10px;
    top: 6px;
    font-size: 2.2rem;
  }

  /* Cartões Missão, Visão e Valores */
  .mvv {
    gap: 14px;
  }

  .mvv-card {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
  }

  .mvv-card .ico {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .mvv-card .ico svg {
    width: 22px;
    height: 22px;
  }

  .mvv-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .mvv-card p {
    font-size: 0.92rem !important;
  }

  .chips {
    gap: 8px;
    margin-top: 10px;
  }

  .chips span {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 999px;
  }

  /* Cards de Sócios */
  .partners {
    gap: 12px;
  }

  .partner-card {
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .partner-card img {
    width: 60px;
    height: 60px;
    border-width: 2px;
  }

  .partner-card h3 {
    font-size: 1.02rem;
  }

  .partner-card small {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-top: 4px;
  }

  .partner-card .go {
    font-size: 0.82rem;
  }

  /* Grade de Áreas */
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .area-card {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    min-height: auto;
  }

  .area-card b {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.85rem;
  }

  .area-card span {
    font-size: 0.94rem;
  }

  /* Sumário no Mobile */
  .toc {
    gap: 8px;
    padding: 4px 0 8px;
  }

  .toc > li {
    padding-bottom: 10px;
  }

  .toc a {
    grid-template-columns: 32px 1fr auto;
    gap: 8px;
    padding: 8px 0;
  }

  .toc .n {
    font-size: 0.98rem;
  }

  .toc .t {
    font-size: 1.02rem;
  }

  .toc .p {
    font-size: 0.92rem;
    min-width: 24px;
  }

  .toc ul {
    padding: 4px 0 4px 28px;
  }

  .toc ul.cols {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .toc ul a {
    padding: 7px 0;
  }

  .toc ul .t {
    font-size: 0.92rem;
  }

  .toc ul .p {
    font-size: 0.85rem;
  }

  /* Rodapé de cada página no Mobile */
  .page-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    min-height: 46px;
    margin: 20px -20px -20px -20px;
    padding: 0 0 0 16px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .page-footer .brand {
    padding-left: 0;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  .page-footer .to-toc {
    font-size: 0.72rem;
    padding: 6px 12px;
    margin-right: 6px;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .page-footer .to-toc svg {
    width: 12px;
    height: 12px;
  }

  .page-footer .num {
    width: 44px;
    min-height: 46px;
    align-self: stretch;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 480px) {
  .page-footer .brand {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .partner-card {
    grid-template-columns: 52px 1fr;
  }

  .partner-card .go {
    grid-column: 2;
    margin-top: -6px;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0 !important;
  }
  html, body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .page {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }
  .page:last-of-type {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .screen-only {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Otimização de peso do PDF (leitores de PDF/mobile)
   Sombras desfocadas, filtros e padrões repetidos geram camadas de
   transparência rasterizadas que deixam o PDF lento em Edge/Chrome/celular.
   -------------------------------------------------------------------------- */
@media print {
  *, *::before, *::after {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
  }
  .cover-lines { display: none !important; }
  .cover-logo-card { border: .3mm solid rgba(255,255,255,.6); }

  /* Vetorização pura dos marcadores de lista: substitui gradiente rotacionado com borda arredondada
     (que o Skia rasterizava em 180+ imagens bitmap e máscaras) por losangos vetoriais nativos ultra-leves */
  ul.items li::before {
    background: #1468b8 !important;
    border-radius: 0 !important;
    transform: rotate(45deg) !important;
  }

  /* Remoção de gradientes desnecessários em cards e ícones */
  .mvv-card {
    background: #f7fbff !important;
  }
  .mvv-card .ico {
    background: #0f5ea8 !important;
  }
  .area-card b {
    background: #0f5ea8 !important;
  }
  .cover-glow {
    display: none !important;
  }
  ul.items.grid-2 li {
    background: #f1f6fc !important;
  }

  /* Unificação do véu das fotos: substitui 2 pseudo-elementos sobrepostos com 3 gradientes e opacity .55
     por uma única camada gradiente otimizada, eliminando sobrecarga massiva de alpha compositing no visualizador */
  .media.duo::before {
    display: none !important;
  }
  .media::after {
    background: linear-gradient(180deg, rgba(11,23,73,.82) 0%, rgba(15,86,163,.42) 38%, rgba(11,23,73,.88) 100%) !important;
    opacity: 1 !important;
  }
  .media.portrait::after {
    background: linear-gradient(180deg, rgba(11,23,73,.45) 0%, rgba(11,23,73,.15) 25%, rgba(11,23,73,.94) 85%) !important;
    opacity: 1 !important;
  }
}
