:root {
  --bg: #050403;
  --bg2: #0d0907;
  --paper: #efe3cd;
  --text: #f5ead6;
  --muted: #b5a68e;
  --line: rgba(221, 184, 117, .18);
  --gold: #d6ae68;
  --gold2: #8f6735;
  --wine: #411414;
  --green: #48634d;
  --card: rgba(255, 245, 224, .055);
  --shadow: 0 30px 90px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(88, 57, 23, .36), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(74, 18, 18, .28), transparent 34rem),
    linear-gradient(180deg, #030201 0%, #080504 48%, #050403 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .065;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

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

.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.25rem;
  background: rgba(0,0,0,.22);
}
.brand strong { display: block; font-family: "Cormorant Garamond", serif; color: var(--gold); font-size: 1.45rem; line-height: 1; }
.brand small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; }

.nav { display: flex; gap: 18px; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--gold); }

.section-pad { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 74px 0; }
.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 64px;
  align-items: center;
}
.hero-impact { padding-top: 48px; }

.eyebrow { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 800; }
.eyebrow span { color: var(--text); }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; }
h1 { margin: 0; max-width: 760px; font-size: clamp(4.2rem, 9vw, 8.8rem); line-height: .82; letter-spacing: -.05em; }
.hero-subtitle { max-width: 760px; margin: 24px 0 0; color: var(--paper); font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.62; }
.lead { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 1.14rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--gold), #9d6d31); color: #170d05; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn.disabled { background: rgba(255,255,255,.045); color: var(--muted); cursor: not-allowed; }

.status-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.status-row span, .tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tag.available { color: #dbe4bd; border-color: rgba(124, 160, 96, .3); }
.tag.soon { color: #e3c99a; border-color: rgba(214,174,104,.28); }

.hero-book { position: relative; display: flex; justify-content: center; }
.book-glow { position: absolute; inset: 8% 0%; background: radial-gradient(circle, rgba(214,174,104,.36), transparent 62%); filter: blur(28px); }
.hero-book img {
  width: min(430px, 95%);
  border-radius: 12px;
  box-shadow: 0 44px 120px rgba(0,0,0,.64);
  transform: rotate(-2deg);
  border: 1px solid rgba(214,174,104,.25);
  position: relative;
}
.hero-book-large img { width: min(510px, 98%); }

.section-title { text-align: center; margin-bottom: 36px; }
.section-title.left { text-align: left; }
.section-title h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4rem); line-height: .95; }
.section-title p:not(.eyebrow) { color: var(--muted); margin: 10px 0 0; }

.featured, .synopsis, .why, .catalog, .about, .author, .contact { border-top: 1px solid var(--line); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.book-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel-cover img { border-radius: 8px; box-shadow: 0 16px 42px rgba(0,0,0,.35); }
.muted-cover { opacity: .76; filter: grayscale(.18); }
.panel-content h3 { font-size: 2rem; margin: 12px 0 8px; }
.panel-content p { color: var(--muted); line-height: 1.65; margin-bottom: 18px; }

.synopsis-card {
  background:
    linear-gradient(135deg, rgba(214,174,104,.10), transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.synopsis-card h2 { margin: 0 0 24px; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: .92; max-width: 920px; }
.synopsis-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.82; max-width: 980px; }
.synopsis-card strong { color: var(--paper); }
.synopsis-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
}
.why-grid span { color: var(--gold); font-weight: 800; letter-spacing: .12em; }
.why-grid h3 { font-size: 1.65rem; line-height: 1.05; margin: 14px 0 10px; }
.why-grid p { color: var(--muted); line-height: 1.65; margin: 0; }

.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.catalog-grid-expanded { grid-template-columns: repeat(3, minmax(0,1fr)); }
.catalog-note { max-width: 720px; }
.catalog-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}
.catalog-grid-expanded .catalog-card { grid-template-columns: 1fr; align-items: start; }
.catalog-card img, .placeholder-cover { width: 126px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; }
.catalog-grid-expanded .catalog-card img, .catalog-grid-expanded .placeholder-cover { width: 150px; }
.placeholder-cover { display: grid; place-items: center; background: linear-gradient(135deg, var(--green), #110b09); color: var(--gold); font-family: "Cormorant Garamond"; font-size: 2rem; border: 1px solid var(--line); }
.catalog-card h3 { margin: 10px 0 4px; font-size: 1.55rem; }
.catalog-card p { color: var(--muted); margin: 0 0 10px; line-height: 1.55; }
.catalog-card a { color: var(--gold); font-weight: 800; }
.catalog-card .catalog-btn { display: inline-flex; margin-top: 4px; border: 1px solid rgba(214,174,104,.3); border-radius: 999px; padding: 10px 14px; background: rgba(214,174,104,.08); }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.text-card, .author-box, .contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
}
.text-card h2, .author-box h2, .contact-card h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 18px; line-height: .95; }
.text-card p, .author-box p, .contact-card p { color: var(--muted); line-height: 1.75; }
.values-grid { display: grid; gap: 14px; }
.values-grid div { padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(0,0,0,.16); }
.values-grid strong { display: block; color: var(--gold); font-family: "Cormorant Garamond"; font-size: 1.6rem; margin-bottom: 8px; }
.values-grid span { color: var(--muted); line-height: 1.6; }

.author-box { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; }
.author-avatar { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--wine)); color: #170d05; font-family: "Cormorant Garamond"; font-size: 2.4rem; font-weight: 800; }
.author-links { margin-top: 18px; }
.author-links a { display: inline-flex; color: var(--gold); font-weight: 800; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; background: rgba(0,0,0,.16); }
.contact { padding-bottom: 42px; }
.contact-card { text-align: center; max-width: 880px; margin: 0 auto; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-links a { border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; color: var(--gold); background: rgba(0,0,0,.16); font-weight: 800; }
.footer { text-align: center; color: var(--muted); padding: 24px; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .why-grid, .catalog-grid-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .featured-grid, .about { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 42px; }
  .hero-book { order: -1; }
  .book-panel { grid-template-columns: 120px 1fr; }
}
@media (max-width: 620px) {
  .section-pad, .site-header { width: min(100% - 26px, 1180px); }
  .site-header { position: relative; }
  h1 { font-size: 4rem; }
  .featured-grid, .catalog-grid, .catalog-grid-expanded, .why-grid { grid-template-columns: 1fr; }
  .book-panel, .catalog-card, .author-box { grid-template-columns: 1fr; }
  .panel-cover img, .catalog-card img, .placeholder-cover { width: 150px; }
  .author-avatar { width: 92px; height: 92px; }
  .text-card, .author-box, .contact-card { padding: 24px; }
  .synopsis-card { padding: 26px; }
}


/* =========================================================
   V3 — Ajustes reais para celular
   Mantém a versão desktop e reorganiza apenas telas menores.
   ========================================================= */
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    width: min(100% - 32px, 1180px);
    padding: 18px 0 10px;
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, rgba(7,5,4,.94), rgba(7,5,4,.62));
    border-bottom: 1px solid rgba(214,174,104,.08);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .brand strong {
    font-size: 1.25rem;
  }

  .brand small {
    font-size: .68rem;
    letter-spacing: .13em;
  }

  .section-pad {
    width: min(100% - 32px, 1180px);
    padding: 44px 0;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 46px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-book {
    order: 2;
    justify-content: center;
    margin-top: 4px;
  }

  .hero-book img,
  .hero-book-large img {
    width: min(78vw, 340px);
    max-height: 54vh;
    object-fit: contain;
    transform: rotate(-1deg);
    border-radius: 10px;
  }

  .book-glow {
    inset: 3% 12%;
    opacity: .75;
  }

  .eyebrow {
    font-size: .64rem;
    letter-spacing: .18em;
    line-height: 1.55;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.4rem);
    line-height: .82;
    letter-spacing: -.055em;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 1.04rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
  }

  .status-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .status-row span {
    justify-content: center;
    width: 100%;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .book-panel {
    grid-template-columns: 112px 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    align-items: center;
  }

  .panel-cover img {
    width: 112px;
    max-width: 112px;
    border-radius: 7px;
  }

  .panel-content h3 {
    font-size: 1.85rem;
    margin: 10px 0 6px;
  }

  .panel-content p {
    font-size: .94rem;
    line-height: 1.58;
    margin-bottom: 14px;
  }

  .panel-content .btn {
    width: auto;
    min-height: 40px;
  }

  .synopsis-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .synopsis-card h2 {
    font-size: clamp(2.1rem, 11vw, 3.15rem);
    line-height: .98;
  }

  .synopsis-card p {
    font-size: .98rem;
    line-height: 1.75;
  }

  .synopsis-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .why-grid,
  .catalog-grid,
  .catalog-grid-expanded,
  .about {
    grid-template-columns: 1fr;
  }

  .why-grid {
    gap: 12px;
  }

  .why-grid article {
    padding: 20px;
    border-radius: 22px;
  }

  .why-grid h3 {
    font-size: 1.45rem;
  }

  .catalog-card,
  .catalog-grid-expanded .catalog-card {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    align-items: center;
  }

  .catalog-card img,
  .placeholder-cover,
  .catalog-grid-expanded .catalog-card img,
  .catalog-grid-expanded .placeholder-cover {
    width: 96px;
    min-width: 96px;
  }

  .catalog-card h3 {
    font-size: 1.38rem;
  }

  .catalog-card p {
    font-size: .92rem;
    line-height: 1.5;
  }

  .text-card,
  .author-box,
  .contact-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .values-grid div {
    padding: 20px;
  }

  .author-box {
    grid-template-columns: 76px 1fr;
    gap: 18px;
    align-items: start;
  }

  .author-avatar {
    width: 76px;
    height: 76px;
    font-size: 1.8rem;
  }

  .author-links a,
  .contact-links a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .section-pad,
  .site-header {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(3.2rem, 19vw, 4.55rem);
  }

  .hero-book img,
  .hero-book-large img {
    width: min(84vw, 310px);
  }

  .book-panel {
    grid-template-columns: 96px 1fr;
    padding: 16px;
  }

  .panel-cover img {
    width: 96px;
    max-width: 96px;
  }

  .panel-content h3 {
    font-size: 1.55rem;
  }

  .panel-content p {
    font-size: .9rem;
  }

  .tag,
  .status-row span {
    font-size: .68rem;
    letter-spacing: .06em;
  }

  .catalog-card,
  .catalog-grid-expanded .catalog-card {
    grid-template-columns: 82px 1fr;
  }

  .catalog-card img,
  .placeholder-cover,
  .catalog-grid-expanded .catalog-card img,
  .catalog-grid-expanded .placeholder-cover {
    width: 82px;
    min-width: 82px;
  }
}


/* =========================================================
   V4 — Imagens reais da Ergo Valle + prévia física
   ========================================================= */
.image-mark {
  overflow: hidden;
  background: #050403;
}
.image-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-book img {
  object-fit: cover;
  background: #0b0705;
}
.physical-preview { border-top: 1px solid var(--line); }
.physical-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: stretch;
}
.full-cover-preview,
.spine-preview {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(214,174,104,.08), transparent 44%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.full-cover-preview img,
.spine-preview img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(214,174,104,.18);
  box-shadow: 0 20px 70px rgba(0,0,0,.42);
}
.spine-preview img {
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #050403;
}
.full-cover-preview figcaption,
.spine-preview figcaption {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  margin-top: 12px;
}
.logo-cover {
  overflow: hidden;
  padding: 0;
  background: #050403;
}
.logo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-avatar {
  overflow: hidden;
  background: #050403;
  border: 1px solid rgba(214,174,104,.28);
}
.photo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .physical-grid {
    grid-template-columns: 1fr;
  }
  .spine-preview {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero-impact {
    padding-top: 20px;
  }
  .hero {
    gap: 26px;
  }
  .hero-copy {
    text-align: left;
  }
  .hero-subtitle {
    font-size: 1.04rem;
    line-height: 1.55;
  }
  .hero-book {
    order: 0;
  }
  .hero-book img,
  .hero-book-large img {
    width: min(78vw, 285px);
    transform: rotate(-1deg);
  }
  .physical-preview .section-title h2 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }
  .full-cover-preview {
    padding: 12px;
    border-radius: 22px;
  }
  .full-cover-preview img {
    border-radius: 14px;
  }
  .author-box {
    grid-template-columns: 88px 1fr;
  }
  .author-avatar,
  .photo-avatar {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .synopsis-actions .btn {
    width: 100%;
  }
  .hero-book img,
  .hero-book-large img {
    width: min(76vw, 260px);
  }
}


/* =========================================================
   V5 — Livro 3D interativo na abertura
   Desktop: hover mostra lombada / lateral.
   Clique ou toque: vira para a contracapa.
   ========================================================= */

.hero-book-interactive {
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.book-stage {
  width: min(620px, 100%);
  min-height: 610px;
  perspective: 2400px;
  perspective-origin: 50% 46%;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: visible;
}

.book-3d {
  --book-depth: 86px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  width: min(390px, 72vw);
  aspect-ratio: 669 / 1024;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateY(0deg) rotateX(1deg) rotateZ(-0.4deg);
  transition: transform 950ms cubic-bezier(.19,.78,.17,1), filter 300ms ease;
  cursor: pointer;
  outline: none;
  overflow: visible;
  filter: drop-shadow(0 38px 56px rgba(0,0,0,.58));
}

.book-3d:focus-visible {
  filter: drop-shadow(0 0 0.75rem rgba(214,174,104,.55));
}

/* Desktop: o livro vira para a esquerda e revela uma lombada grossa, como exemplar físico de 430 páginas. */
.book-3d:hover {
  transform: translateX(28px) rotateY(-38deg) rotateX(2deg) rotateZ(-0.6deg);
}

/* Clique/toque: vira completamente e mostra a contracapa. */
.book-3d.is-flipped {
  transform: rotateY(180deg) rotateX(1deg);
}

.book-3d.is-flipped:hover {
  transform: rotateY(180deg) rotateX(1deg);
}

.book-face,
.book-spine,
.book-pages {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(214,174,104,.28);
  backface-visibility: hidden;
}

.book-face {
  inset: 0;
  border-radius: 14px;
  box-shadow:
    0 30px 85px rgba(0,0,0,.60),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.book-face img,
.book-spine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-front {
  transform: translateZ(calc(var(--book-depth) / 2));
}

.book-back {
  transform: rotateY(180deg) translateZ(calc(var(--book-depth) / 2));
  background: #d8c9ad;
}

/* Lombada real: grossa, visível no hover, sem cortar a capa. */
.book-spine {
  width: var(--book-depth);
  height: 100%;
  left: calc(var(--book-depth) / -2);
  top: 0;
  transform: rotateY(-90deg) translateZ(calc(var(--book-depth) / 2));
  transform-origin: center center;
  border-radius: 8px 3px 3px 8px;
  background: #cbbd9e;
  box-shadow: inset -12px 0 20px rgba(0,0,0,.32), inset 8px 0 16px rgba(255,255,255,.08);
}

.book-spine img {
  object-fit: cover;
  object-position: center center;
}

/* Bloco das folhas: aparece como espessura branca/creme no lado oposto, reforçando que é um livro grosso. */
.book-pages {
  width: var(--book-depth);
  height: 97%;
  right: calc(var(--book-depth) / -2);
  top: 1.5%;
  transform: rotateY(90deg) translateZ(calc(var(--book-depth) / 2));
  transform-origin: center center;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(70,45,25,.20), rgba(255,246,220,.92) 18%, rgba(210,190,154,.95) 50%, rgba(112,78,48,.45)),
    repeating-linear-gradient(180deg, rgba(60,40,25,.26) 0 1px, rgba(244,230,196,.90) 1px 4px);
  box-shadow: inset 10px 0 22px rgba(70,45,25,.30), inset -10px 0 18px rgba(0,0,0,.20);
}

.book-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
  letter-spacing: .03em;
}

.hero-book-interactive > img {
  display: none;
}

/* Ajustes do componente 3D em telas médias e pequenas */
@media (max-width: 1100px) {
  .book-stage {
    width: min(540px, 100%);
    min-height: 540px;
  }

  .book-3d {
    --book-depth: 74px;
    width: min(340px, 72vw);
  }
}

@media (max-width: 900px) {
  .book-stage {
    width: min(460px, 90vw);
    min-height: 500px;
  }

  .book-3d {
    --book-depth: 66px;
    width: min(310px, 70vw);
    transform: rotateY(0deg) rotateZ(-.3deg);
  }
}

@media (max-width: 620px) {
  .hero-book-interactive {
    order: 0;
    margin-top: 10px;
  }

  .book-stage {
    width: min(360px, 96vw);
    min-height: 430px;
  }

  .book-3d {
    --book-depth: 54px;
    width: min(238px, 64vw);
  }

  /* No celular não há hover real: toque vira para a contracapa. */
  .book-3d:hover {
    transform: rotateY(0deg) rotateZ(-.3deg);
  }

  .book-hint {
    font-size: .75rem;
    max-width: 285px;
    margin-top: 12px;
  }
}

@media (max-width: 430px) {
  .book-stage {
    width: min(330px, 96vw);
    min-height: 385px;
  }

  .book-3d {
    --book-depth: 48px;
    width: min(214px, 62vw);
  }
}



/* v7 — Livro físico realista no topo
   Substitui o efeito 3D em CSS por um mockup 3D realista, evitando cortes e distorções. */
.hero-book-realistic {
  align-items: center;
  justify-content: center;
  overflow: visible;
  min-height: 620px;
}

.realistic-book-figure {
  position: relative;
  z-index: 2;
  width: min(610px, 100%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.hero-book-realistic .realistic-book-figure img {
  width: min(560px, 100%);
  max-height: 660px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 38px 55px rgba(0,0,0,.62))
    drop-shadow(0 0 42px rgba(214,174,104,.13));
  transform: none;
  position: relative;
}

.realistic-book-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  letter-spacing: .02em;
}

.hero-book-realistic .book-glow {
  inset: 0 -4%;
  background: radial-gradient(circle at 45% 50%, rgba(214,174,104,.25), transparent 66%);
  filter: blur(34px);
}

@media (max-width: 1100px) {
  .hero-book-realistic { min-height: 560px; }
  .hero-book-realistic .realistic-book-figure img { width: min(500px, 100%); max-height: 590px; }
}

@media (max-width: 900px) {
  .hero-book-realistic { min-height: auto; order: -1; margin-bottom: 12px; }
  .realistic-book-figure { width: min(460px, 92vw); }
  .hero-book-realistic .realistic-book-figure img { width: min(430px, 92vw); max-height: 520px; }
}

@media (max-width: 620px) {
  .hero-book-realistic { margin-top: 8px; margin-bottom: 4px; }
  .realistic-book-figure { width: min(360px, 96vw); }
  .hero-book-realistic .realistic-book-figure img { width: min(335px, 94vw); max-height: 430px; }
  .realistic-book-figure figcaption { font-size: .72rem; max-width: 300px; }
}

@media (max-width: 430px) {
  .realistic-book-figure { width: min(330px, 96vw); }
  .hero-book-realistic .realistic-book-figure img { width: min(305px, 92vw); max-height: 390px; }
}


/* =========================================================
   V8 — Mockup do livro limpo, sem fundo quadriculado e sem cortes
   ========================================================= */
.hero-book-realistic {
  overflow: visible;
  min-height: 640px;
}

.realistic-book-figure {
  width: min(660px, 100%);
  overflow: visible;
}

.hero-book-realistic .realistic-book-figure img {
  width: min(610px, 100%);
  max-height: 680px;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
  filter:
    drop-shadow(0 38px 34px rgba(0,0,0,.56))
    drop-shadow(0 0 38px rgba(214,174,104,.12));
}

.realistic-book-figure figcaption {
  margin-top: 6px;
  opacity: .72;
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .hero-book-realistic { min-height: 560px; }
  .hero-book-realistic .realistic-book-figure img { width: min(540px, 100%); max-height: 600px; }
}

@media (max-width: 900px) {
  .hero-book-realistic { min-height: auto; order: -1; margin: 2px 0 14px; }
  .realistic-book-figure { width: min(520px, 96vw); }
  .hero-book-realistic .realistic-book-figure img { width: min(460px, 94vw); max-height: 560px; }
}

@media (max-width: 620px) {
  .hero-book-realistic { margin: 0 0 6px; }
  .realistic-book-figure { width: min(390px, 98vw); }
  .hero-book-realistic .realistic-book-figure img { width: min(350px, 94vw); max-height: 455px; }
  .realistic-book-figure figcaption { display: none; }
}

@media (max-width: 430px) {
  .realistic-book-figure { width: min(350px, 98vw); }
  .hero-book-realistic .realistic-book-figure img { width: min(318px, 92vw); max-height: 420px; }
}
