/* =====================================================================
   Instituto Tributarium — folha de estilo principal
   ===================================================================== */

/* Paleta extraída diretamente dos arquivos da logo:
   fundo #FAF9F6 · ouro #C9A84C · azul #0A1F3C                          */
:root {
  --navy: #0a1f3c;
  --navy-deep: #06152b;
  --navy-soft: #123059;
  --gold: #c9a84c;
  --gold-light: #ddc383;
  --gold-pale: #f0e6cd;
  --cream: #faf9f6;
  --cream-2: #f2efe7;
  --paper: #ffffff;
  --ink: #16202e;
  --muted: #5d6675;
  --line: #e6e1d5;

  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 60, .07);
  --shadow: 0 12px 32px rgba(10, 31, 60, .12);
  --shadow-lg: 0 26px 60px rgba(10, 31, 60, .20);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 145px; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .6em;
  color: var(--navy);
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 880px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(201, 168, 76, .35); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 12px 30px rgba(201, 168, 76, .45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 18px 40px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ----------
   O fundo é exatamente a cor de fundo do arquivo da logo (#FAF9F6),
   para que a marca apareça sem nenhuma moldura ou emenda visível.      */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  box-shadow: 0 6px 22px rgba(10, 31, 60, .06);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 42%, var(--gold-light) 58%, var(--navy) 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 128px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
  transition: transform .25s ease;
}
.brand:hover { transform: scale(1.02); }
.brand img {
  height: 96px;
  width: auto;
}

.nav-main { display: flex; align-items: center; gap: 26px; }
.nav-main a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .22s ease;
}
.nav-main a:hover::after { width: 100%; }
/* o botão do menu é um link, mas não deve herdar a cor nem o sublinhado */
.nav-main a.btn { color: #fff; }
.nav-main a.btn::after { content: none; }
.nav-main a.btn-navy:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 46px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Seção principal (hero) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% 12%, rgba(201, 168, 76, .18), transparent 62%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 62%, #071426 100%);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 96px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1.5px;
  background: var(--gold);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.7vw, 3.85rem);
  margin-bottom: .45em;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead {
  font-size: 19px;
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  display: flex; align-items: center; gap: 9px;
}
.hero-note svg { flex: none; }

/* Colagem de capas do hero, com uma obra em evidência ao centro */
.hero-stack {
  position: relative;
  height: 500px;
}
.hero-stack .hs {
  position: absolute;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .35s ease;
}
.hero-stack .f1 { width: 40%; left: 0;    top: 10%;  transform: rotate(-8deg); }
.hero-stack .f2 { width: 38%; right: 2%;  top: 6%;   transform: rotate(8deg); }
.hero-stack .f3 { width: 34%; left: 4%;   bottom: 2%; transform: rotate(4deg); }
.hero-stack .f4 { width: 34%; right: 0;   bottom: 0;  transform: rotate(-5deg); }
.hero-stack .f1:hover, .hero-stack .f2:hover,
.hero-stack .f3:hover, .hero-stack .f4:hover { transform: translateY(-8px); z-index: 4; }

.hero-stack .hs-destaque {
  width: 54%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  border: 2px solid var(--gold);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 6px rgba(201, 168, 76, .16);
}
.hero-stack .hs-destaque:hover { transform: translate(-50%, -54%); }
.hero-stack .hs-destaque img { border-radius: 6px 6px 0 0; }
.hero-stack .hs-destaque figcaption {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 168, 76, .35);
  border-radius: 0 0 6px 6px;
  padding: 12px 14px;
  text-align: center;
}
.hero-stack .hs-destaque figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 15.5px;
  color: #fff;
  line-height: 1.25;
}
.hero-stack .hs-destaque figcaption span {
  display: block;
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 3px;
}
.hs-selo {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.hs-selo svg { width: 15px; height: 15px; }

/* ---------- Faixa de números ---------- */
.stats {
  background: var(--navy-deep);
  color: #fff;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-top: 6px;
}

/* ---------- Cabeçalho de seção ---------- */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { color: var(--gold); }
.section-head .eyebrow::before { background: var(--gold); }
.section-head h2 { font-size: clamp(1.95rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }

.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }

/* ---------- Coleções ---------- */
.colecoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.colecao-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.colecao-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.colecao-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.colecao-card h3 { font-size: 1.4rem; margin-bottom: .3em; }
.colecao-sub {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.colecao-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.colecao-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--navy);
  margin-top: 10px;
}
.colecao-link:hover { color: var(--gold); }
.colecao-count {
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 18px;
}
.colecao-count b { color: var(--navy); }

/* ---------- Catálogo ---------- */
.catalogo-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.busca {
  position: relative;
  flex: 1 1 300px;
  max-width: 380px;
}
.busca input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.busca input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 168, 76, .15); }
.busca svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.livros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 34px 26px;
}
.livro-card { display: flex; flex-direction: column; }
/* precisa vencer o display:flex acima, senão o atributo [hidden]
   do filtro não esconde o cartão */
.livro-card[hidden] { display: none; }
.livro-capa {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 100 / 143;
  transition: transform .25s ease, box-shadow .25s ease;
}
.livro-capa img { width: 100%; height: 100%; object-fit: cover; }
.livro-card:hover .livro-capa { transform: translateY(-7px); box-shadow: var(--shadow); }
/* capas em mockup 3D com fundo transparente */
.livro-capa.capa-contain {
  background: linear-gradient(160deg, #fff 0%, var(--cream-2) 100%);
  padding: 10px;
}
.livro-capa.capa-contain img { object-fit: contain; }

.selo-card {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(10, 31, 60, .28);
}
.selo-novo { background: var(--gold); color: var(--navy-deep); }
.selo-editora { background: #7a1230; color: #fff; }

.livro-capa::after {
  content: "Ver detalhes";
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy-deep);
  background: var(--gold);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.livro-card:hover .livro-capa::after { transform: translateY(0); }
.livro-nome {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 16px 0 4px;
  line-height: 1.32;
}
.livro-card:hover .livro-nome { color: var(--gold); }
.livro-meta { font-size: 13px; color: var(--muted); margin: 0; }
.vazio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ---------- Livros reais ---------- */
.reais {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(201, 168, 76, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.reais h2, .reais h3 { color: #fff; }
.reais .section-head p { color: rgba(255, 255, 255, .75); }
.reais .eyebrow { color: var(--gold-light); }
.reais .eyebrow::before { background: var(--gold); }
.reais-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.reais-features { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.reais-features li { display: flex; gap: 16px; align-items: flex-start; }
.reais-features .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(201, 168, 76, .16);
  border: 1px solid rgba(201, 168, 76, .35);
  color: var(--gold-light);
  display: grid; place-items: center;
}
.reais-features h4 { color: #fff; font-size: 1.08rem; margin: 0 0 4px; font-family: var(--sans); font-weight: 700; }
.reais-features p { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 0; }

.mosaico {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mosaico img {
  width: 100%;
  border-radius: 5px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s ease;
}
.mosaico img:nth-child(3n+2) { transform: translateY(18px); }
.mosaico img:hover { transform: translateY(-8px) scale(1.04); }
.mosaico img:nth-child(3n+2):hover { transform: translateY(8px) scale(1.04); }

/* ---------- Como comprar ---------- */
.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: passo;
}
.passo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.passo::before {
  counter-increment: passo;
  content: counter(passo);
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold-pale);
  position: absolute;
  top: 14px; right: 22px;
  line-height: 1;
}
.passo h3 { font-size: 1.22rem; position: relative; }
.passo p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Juspodivm ---------- */
.juspodivm {
  background:
    radial-gradient(760px 420px at 18% 20%, rgba(122, 18, 48, .28), transparent 62%),
    linear-gradient(150deg, #2a0a18 0%, var(--navy-deep) 58%, #06152b 100%);
  color: #fff;
  position: relative;
}
.juspodivm::before,
.juspodivm::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, #7a1230 50%, var(--gold) 100%);
}
.juspodivm::before { top: 0; }
.juspodivm::after { bottom: 0; }
.juspodivm h2 { color: #fff; font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
.juspodivm p { color: rgba(255, 255, 255, .78); }
.juspodivm .eyebrow { color: var(--gold-light); }
.juspodivm .eyebrow::before { content: none; }
.juspodivm .eyebrow svg { width: 17px; height: 17px; }
.juspodivm-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.juspodivm-capa img {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
  transition: transform .35s ease;
}
.juspodivm-capa img:hover { transform: translateY(-8px) scale(1.02); }
.juspodivm-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light) !important;
  margin-bottom: 22px;
}
.juspodivm-ficha {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.juspodivm-ficha li {
  background: rgba(6, 21, 43, .82);
  padding: 14px 16px;
  display: grid;
  gap: 3px;
}
.juspodivm-ficha span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.juspodivm-ficha b { color: #fff; font-size: 15px; }
.juspodivm-acoes { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Autores ---------- */
.autores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}
.autor-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.autor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.autor-foto {
  position: relative;
  background: var(--navy);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.autor-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.autor-foto::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(10, 31, 60, .55));
}
.autor-corpo { padding: 30px 30px 34px; }
.autor-corpo h3 { font-size: 1.55rem; margin-bottom: .12em; }
.autor-cargo {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.autor-corpo p { color: var(--muted); font-size: 15.5px; }
.credenciais { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.credenciais li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.credenciais svg { flex: none; color: var(--gold); margin-top: 3px; }

/* ---------- Contato ---------- */
.contato { background: var(--cream-2); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contato-cards { display: grid; gap: 18px; }
.contato-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.contato-card:hover { border-color: var(--gold); transform: translateX(4px); }
.contato-card .ic {
  flex: none;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: grid; place-items: center;
}
.contato-card .rot {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 2px;
}
.contato-card .val { font-weight: 600; color: var(--navy); margin: 0; font-size: 16.5px; }

.form-contato {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.form-linha { display: grid; gap: 6px; margin-bottom: 18px; }
.form-linha label { font-size: 13.5px; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.form-linha input,
.form-linha textarea,
.form-linha select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
}
.form-linha textarea { min-height: 130px; resize: vertical; }
.form-linha input:focus,
.form-linha textarea:focus,
.form-linha select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, .14);
}
.form-nota { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- Faixa CTA ---------- */
.cta-faixa {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 60px 0;
  text-align: center;
}
.cta-faixa h2 { color: var(--navy-deep); margin-bottom: .35em; }
.cta-faixa p { color: rgba(10, 31, 60, .78); font-size: 17.5px; max-width: 60ch; margin: 0 auto 28px; }

/* ---------- Rodapé ---------- */
/* O fundo é exatamente a cor de fundo do arquivo da logo escura (#0A1F3C),
   para que a marca não apareça como um retângulo recortado.            */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding: 68px 0 0;
  font-size: 15px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-bottom: 52px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer img.footer-logo { width: 260px; margin-bottom: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a:hover { color: var(--gold-light); }

/* Bloco de contato do rodapé: e-mail escrito, Instagram como ícone */
.footer-contato { gap: 20px !important; }
.footer-contato li { display: grid; gap: 6px; justify-items: start; }
.footer-contato .rot {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.footer-contato a { color: #fff; font-weight: 500; }
.footer-contato .email {
  border-bottom: 1px solid rgba(201, 168, 76, .45);
  padding-bottom: 2px;
}
.footer-contato .email:hover { border-color: var(--gold-light); }

.ic-social {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201, 168, 76, .12);
  border: 1px solid rgba(201, 168, 76, .42);
  color: var(--gold-light);
  transition: all .2s ease;
}
.ic-social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}

/* =====================================================================
   PÁGINA DE LIVRO
   ===================================================================== */
.breadcrumb {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.livro-hero { padding: 64px 0 72px; }
.livro-hero-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 62px;
  align-items: start;
}
.livro-hero-capa {
  position: sticky;
  top: 152px;
}
.livro-hero-capa img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.selo-colecao {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.selo-lancamento { background: var(--gold); color: var(--navy-deep); margin-left: 8px; }
.livro-hero-capa.capa-contain img {
  background: linear-gradient(160deg, #fff 0%, var(--cream-2) 100%);
  border-radius: 10px;
  padding: 18px;
}
.livro-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .2em; }
.livro-subtitulo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 18px;
}
.livro-autoria {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.livro-autoria b { color: var(--navy); }

.ficha {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 34px;
}
.ficha div { background: var(--paper); padding: 16px 18px; }
.ficha dt {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.ficha dd { margin: 0; font-weight: 600; color: var(--navy); font-size: 15.5px; }

.livro-descricao h2 { font-size: 1.55rem; margin-top: 8px; }
.livro-descricao p { font-size: 17px; color: #2f3947; }

/* ---------- Sumário completo ---------- */
.sumario-box {
  margin: 36px 0 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.sumario-box[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.sumario-box summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  background: var(--cream);
  transition: background .18s ease;
}
.sumario-box summary::-webkit-details-marker { display: none; }
.sumario-box summary:hover { background: var(--cream-2); }
.sumario-ic {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-light);
  display: grid; place-items: center;
}
.sumario-tit {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}
.sumario-qtd {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}
.sumario-seta {
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform .22s ease;
}
.sumario-box[open] .sumario-seta { transform: rotate(-135deg); }

.sumario-corpo { border-top: 1px solid var(--line); }
.sumario-busca { position: relative; padding: 18px 24px 6px; }
.sumario-busca svg {
  position: absolute;
  left: 41px; top: 50%;
  transform: translateY(-25%);
  color: var(--muted);
}
.sumario-busca input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
}
.sumario-busca input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, .14);
}

.sumario-lista {
  list-style: none;
  margin: 0;
  padding: 10px 24px 24px;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sumario-lista li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14.5px;
  line-height: 1.45;
  border-bottom: 1px dotted var(--line);
}
.sumario-lista li[hidden] { display: none; }
.sumario-lista .st { flex: 1; }
.sumario-lista .sp {
  flex: none;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.sumario-lista .sn0,
.sumario-lista .sn1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-top: 14px;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 8px;
}
.sumario-lista .sn0 { text-transform: uppercase; letter-spacing: .04em; font-size: 14.5px; }
.sumario-lista .sn2 { padding-left: 16px; color: var(--ink); font-weight: 500; }
.sumario-lista .sn3 { padding-left: 34px; color: var(--muted); }
.sumario-lista .sn4,
.sumario-lista .sn5 { padding-left: 52px; color: var(--muted); font-size: 13.5px; }
.sumario-vazio { padding: 0 24px 24px; color: var(--muted); font-size: 14.5px; }

.compra-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 34px 32px;
  color: #fff;
  margin: 40px 0;
  box-shadow: var(--shadow);
}
.compra-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: .3em; }
.compra-box p { color: rgba(255, 255, 255, .74); font-size: 15.5px; margin-bottom: 22px; }
.compra-box .btn-gold { width: 100%; }
.compra-nota {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: rgba(255, 255, 255, .55);
  margin: 16px 0 0;
}

.relacionados { background: var(--paper); }
.relacionados .livros-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------- Voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--gold-light);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
  z-index: 50;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stack { height: 430px; width: 100%; max-width: 520px; margin-inline: auto; }
  .reais-grid, .juspodivm-grid, .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .juspodivm-capa img { max-width: 300px; }
  .autores-grid { grid-template-columns: 1fr; }
  .livro-hero-grid { grid-template-columns: 300px 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .passos { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 62px 0; }
  .nav-toggle { display: flex; }
  .nav-main {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-main.open { display: flex; }
  .nav-main a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-main .btn { margin-top: 14px; }
  .site-header .wrap { min-height: 84px; position: relative; }
  .brand img { height: 62px; }

  .hero { padding: 62px 0 70px; }
  .hero-stack { height: 340px; }
  .hero-stack .hs-destaque { width: 60%; }
  .hero-stack .hs-destaque figcaption { padding: 9px 10px; }
  .hero-stack .hs-destaque figcaption strong { font-size: 13px; }
  .hero-stack .hs-destaque figcaption span { font-size: 10.5px; }
  .hs-selo { font-size: 10px; padding: 5px 12px; top: -13px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .sumario-box summary { padding: 16px 16px; gap: 10px; flex-wrap: wrap; }
  .sumario-tit { font-size: 1.02rem; flex: 1 1 60%; }
  .sumario-qtd { font-size: 11.5px; }
  .sumario-busca { padding: 14px 16px 4px; }
  .sumario-busca svg { left: 33px; }
  .sumario-lista { padding: 8px 16px 18px; max-height: 460px; font-size: 14px; }
  .sumario-lista .sn2 { padding-left: 10px; }
  .sumario-lista .sn3 { padding-left: 22px; }
  .sumario-lista .sn4, .sumario-lista .sn5 { padding-left: 34px; }
  .juspodivm-acoes .btn { flex: 1 1 100%; }

  .livro-hero-grid { grid-template-columns: 1fr; }
  .livro-hero-capa { position: static; max-width: 280px; margin-inline: auto; }
  .livros-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
  .mosaico { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .catalogo-tools { flex-direction: column; align-items: stretch; }
  .busca { flex: none; width: 100%; min-width: 0; max-width: none; }
  .filtros {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .chip { white-space: nowrap; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .compra-box, .site-footer, .cta-faixa { display: none; }
}
