/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
*, *:before, *:after {
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
  overflow-x: clip; 
}


body {
  background-color: #f1f1f19a;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 10rem;
}

.menu {
  background-color: #ffffff;
  display: flex;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  gap: 35rem;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 0.5rem;
  position: fixed;
  top: 1.5rem;
  left: 5%;
  right: 5%;
  z-index: 100;
  color: #222;
}

.logo-link img {
  width: 4rem;
  display: block;
}

.menuItens {
  display: flex;
  flex-direction: row;
  font-family: Montserrat, sans-serif;
}

.menuItens > li {
  margin: 0 1rem;
  transition: transform 0.3s ease;
}

.menuItens > li:hover,
.menuItens > li.active {
  transform: translateY(-5px);
  color: #7A8A8B;
}

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

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #222;
  border-radius: 2px;
}

.hero {
  background-image: url('assets/img/familia.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 0.5rem;
  margin-top: 9rem;
  margin-bottom: 20px;
  height: calc(100vh - 10.5rem);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-text {
  position: absolute;
  left: 2rem;
  max-width: 400px;
  display: none;
}

.hero-text p {
  font-family: Fraunces, serif;
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.hero-text .line1,
.hero-text .line3,
.hero-text .line4 {
  display: block;
  font-weight: 700;
}

.hero-text .line2 {
  display: block;
  font-weight: 500;
}

.hero-text em {
  font-style: italic;
  font-weight: 700;
}

.hero-text .decorator {
  display: block;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  opacity: 0.8;
}

#valores {
  width: 100%;
  margin: 0;
  padding: 0;
}

.valueItem {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  scroll-snap-align: start;
  position: sticky;
  top: 80px;
  z-index: 5;
  background-color: #fdfbf7;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05); /* Subtle shadow for stacking effect */
  border-top: 1px solid #f0eee9;
}

.valueItem.alt {
  background-color: #ffffff; /* Alternate background for distinction */
}

.value-number-side {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #f0eee9;
}

.valueItem.alt .value-number-side {
  border-right: none;
  border-left: 1px solid #f0eee9;
}

.editorial-number {
  font-family: Fraunces, serif;
  font-size: 25rem;
  font-weight: 200;
  color: rgba(92, 122, 156, 0.15); /* Increased opacity to make it more visible */
  line-height: 1;
  user-select: none;
}

.valueContent {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 6rem;
  font-family: Montserrat, sans-serif;
}

.valueContent h2 {
  font-family: Fraunces, serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: #222;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.valueContent p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
}

/* manifesto Section */
.manifesto-section {
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem 2rem;
  position: sticky;
  top: 80px;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  font-family: Montserrat, sans-serif;
}

.editorial-layout {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 6rem;
  align-items: flex-start;
}

.editorial-title {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.editorial-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #5c7a9c;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.editorial-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background-color: #5c7a9c;
}

.editorial-title h2 {
  font-family: Fraunces, serif;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.1;
  color: #222;
}

.editorial-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 3.5rem;
}

.editorial-body p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #666;
  font-weight: 400;
}

.editorial-body .lead-text {
  font-size: 1.4rem;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
}

/* Biblioteca Section */
.biblioteca-section {
  min-height: 100vh;
  background-color: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem; 
  position: relative;
  z-index: 15;
  scroll-margin-top: 100px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
  font-family: Montserrat, sans-serif;
}

.biblioteca-container {
  max-width: 1200px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Reduced gap to save vertical space while keeping content huge */
}

.biblioteca-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.biblioteca-header h2 {
  font-family: Fraunces, serif;
  font-size: 3.5rem; /* Restored original size */
  font-weight: 300;
  color: #222;
  margin-top: 0.5rem;
}

.editorial-book-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6rem; 
}

.book-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 500px;
  perspective: 1000px;
}

.book-visual img {
  width: 100%;
  max-width: 450px; /* Restored the original, beautiful large width! */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-20px 20px 30px rgba(0,0,0,0.3));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotateY(-10deg) scale(0.98);
}

.book-visual:hover img {
  transform: rotateY(0deg) scale(1.02);
}

.book-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
}

.book-status {
  font-family: Montserrat, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5c7a9c;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.book-status::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 1px;
  background-color: #5c7a9c;
}

.book-title {
  font-family: Fraunces, serif;
  font-size: 4.5rem; /* Restored original huge size */
  font-weight: 700;
  color: #222;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-family: Montserrat, sans-serif;
  font-size: 1.4rem;
  color: #555;
  font-style: italic;
  margin-bottom: 1rem;
}

.book-author {
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  color: #5c7a9c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.book-synopsis {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid #e0e8e8;
}

.book-synopsis p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.editorial-link {
  align-self: flex-start;
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #222;
  transition: all 0.3s ease;
}

.editorial-link .arrow {
  transition: transform 0.3s ease;
}

.editorial-link:hover {
  color: #5c7a9c;
  border-color: #5c7a9c;
}

.editorial-link:hover .arrow {
  transform: translateX(5px);
}

/* Autor Section */
.autor-section {
  min-height: 100vh;
  background-color: #0a0a0a; /* Very dark rich charcoal for high contrast editorial feel */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem 2rem;
  position: relative;
  z-index: 20;
  scroll-margin-top: 100px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.autores-header {
  text-align: center;
  font-family: Montserrat, sans-serif;
  margin-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-label.light {
  color: #849cb6;
}

.editorial-label.light::before {
  background-color: #849cb6;
}

.autores-header h2 {
  font-family: Fraunces, serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.autores-header p {
  font-size: 1.1rem;
  color: #888;
  max-width: 600px;
  line-height: 1.6;
}

.autores-header p strong {
  color: #849cb6;
  font-weight: 500;
}

.editorial-author-display {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Align items to stretch for equal height feel */
  gap: 5rem;
  max-width: 1100px;
  width: 100%;
}

.author-portrait {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 500px;
}

.author-portrait img {
  width: 100%;
  max-width: 450px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s ease;
}

.author-portrait:hover img {
  filter: grayscale(0%) contrast(1.05);
}

.author-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
}

.author-name {
  font-family: Fraunces, serif;
  font-size: 4rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.author-role {
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  color: #849cb6;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  display: block;
}

.author-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid #333;
  padding-left: 2rem;
}

.author-text p {
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #a0a0a0;
  font-weight: 300;
}

.site-footer {
  position: relative;
  z-index: 20;
  background-color: #0b0f0f;
  color: #ffffff;
  padding: 8rem 5% 4rem;
  font-family: Montserrat, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand img {
  width: 4.5rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-family: Fraunces, serif;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 200px;
}

.footer-column-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5c7a9c;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-nav.utility {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav.utility a {
  font-size: 0.8rem;
  opacity: 0.7;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  background-color: #20ba5a;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.social-link svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: rgba(255, 255, 255, 0.5);
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.social-link:hover svg {
  stroke: #ffffff;
  transform: scale(1.1);
}

.footer-bottom {
  max-width: 1200px;
  width: 100%;
  margin: 6rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem 2rem;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .site-footer {
    padding: 6rem 1.5rem 3rem;
  }
}

/* Book Landing Page */
body.book-page-leaving {
  overflow: hidden;
}

body.book-page-leaving::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(245, 181, 83, 0.9) 49%, rgba(255, 233, 172, 1) 50%, rgba(245, 181, 83, 0.9) 51%, transparent 54%),
    linear-gradient(180deg, #05070c 0%, #111724 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  animation: bookExitCurtain 0.52s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.book-page {
  --book-ink: #05070c;
  --book-night: #0b111b;
  --book-blue: #121b2a;
  --book-steel: #263447;
  --book-gold: #d89a3a;
  --book-amber: #f3bd5a;
  --book-light: #ffe6a3;
  --book-ivory: #f5ead8;
  --book-muted: #b9a990;
  --book-line: rgba(243, 189, 90, 0.2);
  background:
    radial-gradient(circle at 46% 18%, rgba(221, 133, 42, 0.28), transparent 26rem),
    linear-gradient(180deg, #06080e 0%, #0b111b 48%, #05070c 100%);
  color: var(--book-ivory);
}

.book-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  background:
    linear-gradient(90deg, #030407 0 47%, rgba(217, 139, 49, 0.95) 49%, #ffe9a8 50%, rgba(217, 139, 49, 0.95) 51%, #030407 53% 100%);
  animation: bookEntryCurtain 1.05s cubic-bezier(0.75, 0, 0.2, 1) 0.12s forwards;
}

.book-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 62%, rgba(0, 0, 0, 0.78) 100%),
    repeating-linear-gradient(90deg, rgba(255, 220, 139, 0.055) 0 1px, transparent 1px 84px);
}

.book-page main {
  position: relative;
  z-index: 1;
  font-family: Montserrat, sans-serif;
}

.book-page .book-menu {
  background-color: rgba(6, 9, 15, 0.86);
  border: 1px solid rgba(243, 189, 90, 0.2);
  backdrop-filter: blur(18px);
  gap: 35rem;
  justify-content: center;
  animation: bookNavEnter 0.75s ease 0.65s both;
}

.book-page .book-menu .logo-link img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(40%) saturate(863%) hue-rotate(348deg) brightness(96%) contrast(94%);
}

.book-page .book-menu .menuItens {
  background-color: transparent;
  color: rgba(245, 234, 216, 0.82);
}

.book-page .book-menu .menuItens > li:hover,
.book-page .book-menu .menuItens > li.active {
  color: var(--book-amber);
}

.book-page .hamburger .bar {
  background-color: var(--book-ivory);
}

.book-hero-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
  gap: 6rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12rem 2rem 6rem;
}

.book-hero-page > * {
  min-width: 0;
}

.book-hero-page::before {
  content: '';
  position: absolute;
  inset: 0 50% 0 -20vw;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(243, 189, 90, 0.2), transparent 52%),
    radial-gradient(circle at 58% 52%, rgba(255, 220, 139, 0.18), transparent 19rem);
}

.book-hero-page::after {
  content: '';
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: 0;
  z-index: -1;
  height: 34%;
  opacity: 0.42;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 7, 12, 0.95) 72%),
    repeating-linear-gradient(90deg, rgba(42, 55, 74, 0.85) 0 30px, transparent 30px 44px, rgba(25, 35, 52, 0.9) 44px 74px, transparent 74px 92px);
}

.book-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  perspective: 1200px;
  animation: bookCoverEnter 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
}

.book-hero-art::before {
  content: '';
  position: absolute;
  width: min(34rem, 88vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(255, 218, 130, 0.42), rgba(218, 116, 28, 0.2) 34%, transparent 68%);
  filter: blur(2px);
}

.book-hero-art::after {
  content: '';
  position: absolute;
  width: min(15rem, 50vw);
  height: 78%;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 166, 0.42), transparent);
  transform: skewX(-9deg);
  filter: blur(18px);
  opacity: 0.85;
}

.book-hero-art img {
  position: relative;
  z-index: 1;
  width: min(420px, 82vw);
  height: auto;
  filter: drop-shadow(-30px 34px 36px rgba(0, 0, 0, 0.56)) drop-shadow(0 0 34px rgba(226, 137, 42, 0.2));
  transform: rotateY(-10deg) rotateX(1deg);
}

.book-page-kicker {
  position: absolute;
  top: 1rem;
  left: 0;
  z-index: 2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--book-light);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(243, 189, 90, 0.42);
}

.book-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.book-hero-copy > * {
  animation: bookTextEnter 0.82s ease both;
}

.book-hero-copy > *:nth-child(1) {
  animation-delay: 1.02s;
}

.book-hero-copy > *:nth-child(2) {
  animation-delay: 1.12s;
}

.book-hero-copy > *:nth-child(3) {
  animation-delay: 1.2s;
}

.book-hero-copy > *:nth-child(4) {
  animation-delay: 1.28s;
}

.book-hero-copy > *:nth-child(5) {
  animation-delay: 1.36s;
}

.book-hero-copy > *:nth-child(6) {
  animation-delay: 1.44s;
}

.book-page .book-hero-copy .editorial-label,
.book-page .book-story-heading .editorial-label,
.book-page .book-buy-card .editorial-label {
  color: var(--book-amber);
}

.book-page .book-hero-copy .editorial-label::before,
.book-page .book-story-heading .editorial-label::before,
.book-page .book-buy-card .editorial-label::before {
  background-color: var(--book-amber);
}

.book-hero-copy h1 {
  font-family: Fraunces, serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.95;
  font-weight: 800;
  color: var(--book-light);
  margin-bottom: 1rem;
  text-shadow: 0 0 22px rgba(216, 154, 58, 0.24);
}

.book-page-subtitle {
  font-size: 1.5rem;
  line-height: 1.35;
  color: rgba(245, 234, 216, 0.82);
  font-style: italic;
  margin-bottom: 1rem;
}

.book-page-author {
  color: var(--book-amber);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
}

.book-page-lead {
  max-width: 560px;
  font-family: Fraunces, serif;
  font-size: 2rem;
  line-height: 1.35;
  color: var(--book-ivory);
  margin-bottom: 3rem;
}

.book-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  animation: bookTextEnter 0.82s ease both;
  animation-delay: 1.44s;
}

.book-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #111016;
  background: linear-gradient(135deg, var(--book-light), var(--book-gold));
  padding: 1.15rem 1.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(216, 124, 34, 0.22);
  transition: all 0.3s ease;
}

.book-primary-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(216, 124, 34, 0.32);
}

.book-secondary-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--book-line);
  border-radius: 0.25rem;
  text-decoration: none;
  color: var(--book-ivory);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.book-secondary-link:hover {
  background: rgba(243, 189, 90, 0.08);
  border-color: var(--book-amber);
  transform: translateY(-3px);
}

.book-secondary-link strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--book-amber);
  margin-bottom: 0.25rem;
}

.book-secondary-link span {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Book Price Tag styles */
.book-price-tag-container {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
}

.book-price-tag-container.center {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.book-price-main {
  font-family: Fraunces, serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--book-light);
  line-height: 1;
}

.book-price-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--book-amber);
  background: rgba(243, 189, 90, 0.08);
  border: 1px dashed rgba(243, 189, 90, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.book-story-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
  border-top: 1px solid var(--book-line);
}

.book-story-heading h2 {
  font-family: Fraunces, serif;
  font-size: 4rem;
  line-height: 1.08;
  font-weight: 300;
  color: var(--book-ivory);
}

.book-story-body {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(243, 189, 90, 0.34);
}

.book-story-body p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--book-muted);
}

.book-details-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 7rem;
  gap: 1px;
}

.book-detail-item {
  background:
    linear-gradient(180deg, rgba(255, 230, 163, 0.06), transparent),
    rgba(11, 17, 27, 0.92);
  border: 1px solid rgba(243, 189, 90, 0.18);
  padding: 2.5rem;
}

.book-detail-item span {
  font-family: Fraunces, serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(243, 189, 90, 0.46);
}

.book-detail-item h3 {
  font-family: Fraunces, serif;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--book-ivory);
  margin: 1.5rem 0 1rem;
}

.book-detail-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--book-muted);
}

.book-author-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 154, 58, 0.12), transparent 42%),
    #05070c;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 5rem;
  align-items: center;
  padding: 7rem max(2rem, calc((100vw - 1200px) / 2));
  border-top: 1px solid var(--book-line);
  border-bottom: 1px solid var(--book-line);
}

.book-author-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  opacity: 0.22;
  background: repeating-linear-gradient(90deg, rgba(38, 52, 71, 0.85) 0 26px, transparent 26px 43px);
}

.book-author-photo,
.book-author-copy {
  position: relative;
  z-index: 1;
}

.book-author-photo {
  display: flex;
  justify-content: center;
}

.book-author-photo img {
  width: min(420px, 100%);
  filter: grayscale(100%) contrast(1.08);
  border: 1px solid rgba(243, 189, 90, 0.18);
  transition: filter 0.5s ease;
}

.book-author-photo:hover img {
  filter: grayscale(0%) contrast(1.05);
}

.book-author-copy h2 {
  font-family: Fraunces, serif;
  font-size: 4rem;
  line-height: 1;
  font-weight: 300;
  color: var(--book-light);
  margin-bottom: 2rem;
}

.book-author-copy p {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--book-muted);
  margin-bottom: 1.5rem;
}

.book-buy-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 163, 0.24), transparent 24rem),
    linear-gradient(180deg, #0b111b, #05070c);
  padding: 7rem 2rem;
}

.book-buy-card {
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-buy-card h2 {
  font-family: Fraunces, serif;
  font-size: 4.5rem;
  line-height: 1.05;
  color: var(--book-light);
  font-weight: 300;
  margin-bottom: 2rem;
}

.book-buy-card p {
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--book-muted);
  margin-bottom: 3rem;
}

@keyframes bookExitCurtain {
  0% {
    transform: scaleY(0);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes bookEntryCurtain {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  62% {
    clip-path: inset(0 48% 0 48%);
    opacity: 1;
  }

  100% {
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
  }
}

@keyframes bookNavEnter {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bookCoverEnter {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.94) rotateY(-22deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0);
  }
}

@keyframes bookTextEnter {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.book-page-leaving::before,
  .book-page::before,
  .book-page .book-menu,
  .book-hero-art,
  .book-hero-copy > * {
    animation: none;
  }

  .book-page::before,
  body.book-page-leaving::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --mobile-sticky-scroll-buffer: 26dvh;
  }

  /* Restaurando a animação de sobreposição no mobile de forma nativa e sem bugs!
     Nós usamos position: sticky e overflow-y: visible para o scroll nativo funcionar solto.
     O segredo está no JavaScript (index.js), que calcula o tamanho de cada seção 
     e ajusta dinamicamente a propriedade "top" para que a seção só grude depois de lida por completo. */
  .valueItem, .manifesto-section {
    position: sticky;
    height: auto;
    min-height: calc(100dvh + var(--mobile-sticky-scroll-buffer));
    overflow-y: visible;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  
  .biblioteca-section {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .menu {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    border-radius: 0.5rem;
    z-index: 1000; /* Ensure menu is always on top */
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* Ensure button is clickable above everything */
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .logo-link {
    z-index: 1001;
    position: relative;
  }

  .logo-link img {
    width: 3rem;
  }

  .menuItens {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    gap: 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    opacity: 0;
    pointer-events: none; /* Prevent invisible clicks */
  }

  .menuItens.active {
    max-height: 300px;
    padding: 1.5rem 0;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }

  .menuItens > li {
    margin: 1rem 0;
    font-size: 1.1rem;
  }

  .book-page .book-menu .menuItens {
    background-color: rgba(6, 9, 15, 0.96);
    border: 1px solid rgba(243, 189, 90, 0.2);
    border-top: none;
  }

  .book-page .book-menu {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    gap: 0;
    justify-content: flex-start;
  }

  .book-page .book-menu.menu-open {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .book-page .book-menu .menuItens {
    left: -1px;
    right: -1px;
    width: auto;
    border-right: 1px solid rgba(243, 189, 90, 0.2);
    border-bottom: 1px solid rgba(243, 189, 90, 0.2);
    border-left: 1px solid rgba(243, 189, 90, 0.2);
  }

  .book-page .book-menu .menuItens.active {
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
  }

  .book-page .hamburger {
    display: block;
    position: relative;
    top: auto;
    transform: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    right: auto;
    margin-left: auto;
  }

  .hero {
    background-image: url('assets/img/familiaMobile.png');
  }

  /* Valores Section Mobile */
  .valueItem, .valueItem.alt {
    flex-direction: column;
  }

  .value-number-side {
    width: 100%;
    min-height: 250px;
    border-right: none;
    border-bottom: 1px solid #f0eee9;
  }

  .valueItem.alt .value-number-side {
    border-left: none;
    border-top: 1px solid #f0eee9;
    order: 2; /* Put number at bottom on mobile */
  }

  .editorial-number {
    font-size: 15rem;
  }

  .valueContent {
    width: 100%;
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  .valueContent h2 {
    font-size: 3rem;
  }

  .biblioteca-section {
    padding: 6rem 1rem;
    align-items: flex-start; /* Evita que o conteúdo seja cortado no topo se for maior que a tela */
  }

  .biblioteca-header h2 {
    font-size: 2.8rem;
  }

  .editorial-book-display {
    flex-direction: column;
    gap: 3rem;
  }

  .book-visual {
    justify-content: center;
  }

  .book-visual img {
    max-width: 250px;
  }

  .book-details {
    padding: 0 1rem;
  }

  .book-title {
    font-size: 3rem;
  }

  .book-subtitle {
    font-size: 1.2rem;
  }

  /* Autor Section Mobile */
  .autor-section {
    padding: 6rem 1rem;
    justify-content: flex-start; /* Evita que o conteúdo seja cortado no topo se for maior que a tela */
  }

  .autores-header h2 {
    font-size: 2.8rem;
  }

  .editorial-author-display {
    flex-direction: column;
    gap: 3rem;
  }

  .author-portrait {
    order: 1;
    justify-content: center;
  }

  .author-portrait img {
    max-width: 320px;
  }

  .author-bio {
    order: 2;
    padding: 0 1rem;
  }

  .author-name {
    font-size: 3.2rem;
  }

  .author-text {
    padding-left: 1rem;
  }

  /* Editorial / manifesto Section Mobile */
  .manifesto-section {
    padding: 6rem 1rem;
    justify-content: flex-start;
  }

  .editorial-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .editorial-title h2 {
    font-size: 2.5rem;
  }

  .editorial-body {
    padding-top: 1rem;
    gap: 1.5rem;
  }

  .editorial-body .lead-text {
    font-size: 1.2rem;
  }

  .site-footer {
    min-height: 100svh;
    justify-content: flex-start;
    padding: 6rem 1.5rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    align-items: start;
  }

  .footer-brand img {
    width: 6.5rem;
  }

  .footer-brand p {
    font-size: 1.6rem;
  }

  .footer-nav {
    width: 100%;
    padding: 2rem 0;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer-cta h2 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  .footer-bottom {
    margin-top: auto;
  }

  .book-hero-page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 8rem 1.25rem 4rem;
  }

  .book-hero-art {
    min-height: auto;
    padding-top: 2rem;
  }

  .book-page-kicker {
    position: static;
    align-self: flex-start;
    margin-bottom: 1.5rem;
  }

  .book-hero-art {
    flex-direction: column;
  }

  .book-hero-art img {
    width: min(285px, 78vw);
    transform: none;
  }

  .book-hero-copy {
    width: min(100%, 340px);
    max-width: 100%;
    align-items: stretch;
  }

  .book-hero-copy .editorial-label,
  .book-page-author {
    align-self: flex-start;
  }

  .book-hero-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: 3.1rem;
    overflow-wrap: break-word;
  }

  .book-page-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: 1.08rem;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .book-page-lead {
    width: 100%;
    max-width: 100%;
    font-size: 1.38rem;
    margin-bottom: 2rem;
    overflow-wrap: break-word;
  }

  .book-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .book-primary-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .book-secondary-link {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .book-story-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 1.25rem;
  }

  .book-story-heading h2 {
    font-size: 2.8rem;
  }

  .book-story-body {
    padding-left: 1.25rem;
  }

  .book-details-section {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 5rem;
  }

  .book-detail-item {
    padding: 2rem;
  }

  .book-author-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 1.25rem;
  }

  .book-author-photo {
    justify-content: flex-start;
  }

  .book-author-photo img {
    width: min(320px, 100%);
  }

  .book-author-copy h2 {
    font-size: 3rem;
  }

  .book-buy-section {
    padding: 5rem 1.25rem;
  }

  .book-buy-card {
    align-items: flex-start;
    text-align: left;
  }

  .book-buy-card h2 {
    font-size: 3rem;
  }
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  border-radius: 0.8rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modern home */
.home-page {
  --home-ink: #101216;
  --home-paper: #fff8ea;
  --home-mint: #ffebd6;
  --home-green: #0c101d;
  --home-coral: #2f6dff;
  --home-yellow: #ff9e7d;
  --home-blue: #2f6dff;
  --home-line: rgba(16, 18, 22, 0.14);
  background:
    linear-gradient(90deg, rgba(16, 18, 22, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0 0%, #f8f1e2 44%, #101216 44%, #101216 100%);
  background-size: 42px 42px, auto;
  color: var(--home-ink);
  font-family: Montserrat, sans-serif;
}

.home-page section[id] {
  scroll-margin-top: 7rem;
}

.home-page .menu {
  width: min(1120px, calc(100% - 2rem));
  max-width: none;
  left: 50%;
  right: auto;
  top: 1rem;
  transform: translateX(-50%);
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 18, 22, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 50px rgba(16, 18, 22, 0.12);
  backdrop-filter: blur(18px);
}

.home-page .logo-link img {
  width: 3.45rem;
}

.home-page .menuItens {
  align-items: center;
  gap: 0.35rem;
  color: var(--home-ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-page .menuItens > li {
  margin: 0;
}

.home-page .menuItens a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: 0.4rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.home-page .menuItens > li:hover,
.home-page .menuItens > li.active {
  transform: none;
  color: var(--home-ink);
}

.home-page .menuItens > li:hover a,
.home-page .menuItens > li.active a {
  background: var(--home-mint);
}

.home-page .hero {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 100svh;
  height: auto;
  margin: 0;
  padding: 7.15rem max(1.25rem, calc((100vw - 1180px) / 2)) 2.25rem;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 235, 214, 0.82) 0 33%, rgba(255, 158, 125, 0.78) 33% 57%, rgba(47, 109, 255, 0.86) 57% 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(340px, 1.16fr);
  gap: 2.4rem;
  align-items: center;
  overflow: hidden;
}

.home-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 18, 22, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 18, 22, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 86%);
}

.home-page .hero::after {
  content: 'CORREA BOOKS';
  position: absolute;
  left: -0.3rem;
  right: -0.3rem;
  bottom: -0.88rem;
  z-index: -1;
  color: rgba(16, 18, 22, 0.08);
  font-family: Fraunces, serif;
  font-size: min(15vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  white-space: nowrap;
  text-align: center;
}

.hero-copy,
.hero-stage,
.home-page .section-heading,
.manifesto-copy,
.manifesto-board,
.book-showcase,
.author-showcase,
.home-cta {
  min-width: 0;
}

.hero-copy {
  max-width: 640px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
  color: var(--home-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-kicker::before {
  content: '';
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-coral) 0 68%, var(--home-yellow) 68% 100%);
}

.hero-copy h1 {
  max-width: 11ch;
  font-family: Fraunces, serif;
  font-size: clamp(3.65rem, 6.15vw, 6.65rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 31rem;
  margin-top: 1rem;
  font-size: 1.04rem;
  line-height: 1.48;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0 1.15rem;
  border-radius: 0.5rem;
  color: var(--home-paper);
  background: var(--home-ink);
  border: 2px solid var(--home-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 7px 7px 0 var(--home-mint);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--home-yellow);
}

.ghost-button {
  color: var(--home-ink);
  background: transparent;
  box-shadow: 7px 7px 0 rgba(16, 18, 22, 0.18);
}

.hero-stage {
  position: relative;
  min-height: min(58vw, 540px);
}

.hero-family {
  position: absolute;
  inset: 5% 0 auto auto;
  width: min(620px, 92%);
  height: min(500px, 76%);
  object-fit: cover;
  border: 3px solid var(--home-ink);
  border-radius: 0.5rem;
  box-shadow: 18px 18px 0 rgba(16, 18, 22, 0.94);
  transform: rotate(2deg);
}

.hero-book {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(250px, 38vw);
  filter: drop-shadow(16px 24px 22px rgba(16, 18, 22, 0.38));
  transform: rotate(-8deg);
  animation: homeFloat 4.8s ease-in-out infinite;
}

.floating-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0 1rem;
  border: 2px solid var(--home-ink);
  border-radius: 999px;
  background: var(--home-paper);
  color: var(--home-ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--home-ink);
}

.tag-one {
  top: 8%;
  left: 8%;
  background: var(--home-mint);
  transform: rotate(-8deg);
}

.tag-two {
  top: 48%;
  right: 0;
  background: var(--home-yellow);
  transform: rotate(6deg);
}

.tag-three {
  bottom: 20%;
  left: 38%;
  background: #ffffff;
  transform: rotate(3deg);
}

.home-page #valores.home-values {
  min-height: 100svh;
  padding: 7.5rem max(1.25rem, calc((100vw - 1180px) / 2)) 8rem;
  background: var(--home-paper);
}

.home-page .section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.home-page .section-heading h2,
.manifesto-copy h2,
.home-cta h2 {
  font-family: Fraunces, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.home-page .section-heading p {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.value-card {
  min-height: 390px;
  padding: 2rem;
  border: 2px solid var(--home-ink);
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 9px 9px 0 rgba(16, 18, 22, 0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 rgba(16, 18, 22, 0.92);
}

.value-card.featured {
  background: var(--home-mint);
}

.value-card span {
  display: block;
  color: var(--home-coral);
  font-family: Fraunces, serif;
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 0.9;
}

.value-card h3 {
  margin-top: 6.25rem;
  font-family: Fraunces, serif;
  font-size: clamp(2.5rem, 3vw, 3.4rem);
  line-height: 0.95;
  font-weight: 900;
}

.value-card:nth-child(3) h3 {
  font-size: clamp(2.2rem, 2.55vw, 2.95rem);
}

.value-card p {
  margin-top: 1.55rem;
  color: rgba(16, 18, 22, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
}

.home-page .home-manifesto {
  position: relative;
  top: auto !important;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 3rem;
  align-items: center;
  padding: 7rem max(1.25rem, calc((100vw - 1180px) / 2));
  background: var(--home-green);
  color: #fffaf0;
  box-shadow: none;
}

.home-manifesto .section-kicker {
  color: var(--home-mint);
}

.manifesto-copy .lead-text {
  margin-top: 1.6rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 800;
}

.manifesto-copy p:not(.lead-text) {
  margin-top: 1.35rem;
  max-width: 42rem;
  color: rgba(255, 250, 240, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.manifesto-board {
  display: grid;
  gap: 1rem;
}

.manifesto-board div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  border: 2px solid rgba(255, 250, 240, 0.72);
  border-radius: 0.5rem;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
}

.manifesto-board strong {
  font-family: Fraunces, serif;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 0.95;
  font-weight: 900;
}

.manifesto-board span {
  min-width: 8.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: var(--home-yellow);
  color: var(--home-ink);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
}

.home-page .home-library {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 7rem max(1.25rem, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(47, 109, 255, 0.1), transparent 38%),
    #fffaf0;
  box-shadow: none;
}

.home-page .biblioteca-container {
  max-width: none;
}

.book-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.home-page .book-visual {
  position: relative;
  justify-content: center;
  max-width: none;
}

.home-page .book-visual::before {
  content: '';
  position: absolute;
  inset: 12% 7% 6%;
  border: 3px solid var(--home-ink);
  border-radius: 0.5rem;
  background: var(--home-coral);
  transform: rotate(-4deg);
}

.home-page .book-visual img {
  position: relative;
  width: min(390px, 82vw);
  max-width: none;
  transform: rotate(4deg);
  filter: drop-shadow(18px 24px 24px rgba(16, 18, 22, 0.24));
}

.home-page .book-visual:hover img {
  transform: rotate(0deg) translateY(-0.35rem);
}

.home-page .book-details {
  max-width: 580px;
}

.home-page .book-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  margin-bottom: 1.3rem;
  border-radius: 999px;
  background: var(--home-blue);
  color: #ffffff;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.home-page .book-status::before {
  display: none;
}

.home-page .book-title {
  font-size: clamp(4rem, 8vw, 7.2rem);
  line-height: 0.82;
  color: var(--home-ink);
}

.home-page .book-subtitle {
  margin-top: 1rem;
  color: var(--home-green);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
}

.home-page .book-author {
  color: var(--home-coral);
}

.home-page .book-synopsis {
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 5px solid var(--home-yellow);
}

.home-page .book-synopsis p {
  color: rgba(16, 18, 22, 0.78);
  font-weight: 600;
}

.home-page .home-authors {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 7rem max(1.25rem, calc((100vw - 1180px) / 2));
  background: var(--home-ink);
  color: #fffaf0;
  box-shadow: none;
}

.home-page .section-heading.light {
  margin-inline: auto;
  text-align: center;
}

.home-page .section-heading.light .section-kicker {
  color: var(--home-mint);
}

.author-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: 4rem;
  align-items: center;
  max-width: 1060px;
  margin: 3rem auto 0;
}

.home-page .author-portrait {
  position: relative;
  justify-content: center;
  max-width: none;
}

.home-page .author-portrait::before {
  content: '';
  position: absolute;
  inset: 1.4rem -0.5rem -1.4rem 1.6rem;
  border: 3px solid var(--home-mint);
  border-radius: 0.5rem;
}

.home-page .author-portrait img {
  position: relative;
  width: min(420px, 100%);
  max-width: none;
  aspect-ratio: 4 / 5;
  border: 3px solid #fffaf0;
  border-radius: 0.5rem;
  filter: saturate(1.12) contrast(1.03);
}

.home-page .author-name {
  color: #ffffff;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  font-weight: 900;
}

.home-page .author-role {
  color: var(--home-yellow);
  font-weight: 900;
}

.home-page .author-text {
  border-left: 5px solid var(--home-coral);
}

.home-page .author-text p {
  color: rgba(255, 250, 240, 0.74);
  font-weight: 500;
}

.home-page .author-text strong {
  color: #ffffff;
  font-weight: 900;
}

.home-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 5.5rem 1.25rem;
  background: var(--home-yellow);
  color: var(--home-ink);
}

.home-cta h2 {
  max-width: 780px;
  margin-bottom: 2rem;
}

.home-page .site-footer {
  z-index: 1;
  padding-top: 5rem;
  background: #07080a;
}

@keyframes homeFloat {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-0.7rem);
  }
}

@media (max-width: 980px) {
  .home-page .hero,
  .home-page .home-manifesto,
  .book-showcase,
  .author-showcase {
    grid-template-columns: 1fr;
  }

  .home-page .hero {
    gap: 2rem;
    padding-top: 7.4rem;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .hero-stage {
    min-height: 520px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 300px;
  }

  .value-card h3 {
    margin-top: 3.5rem;
  }
}

@media (max-width: 768px) {
  .home-page .menu {
    width: auto;
    left: 1rem;
    right: 1rem;
    transform: none;
    justify-content: flex-start;
  }

  .home-page .menu.menu-open {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .home-page .hamburger {
    display: block;
  }

  .home-page .menuItens {
    background: rgba(255, 250, 240, 0.98);
    left: -1px;
    right: -1px;
    width: auto;
    border-right: 1px solid rgba(16, 18, 22, 0.12);
    border-bottom: 1px solid rgba(16, 18, 22, 0.12);
    border-left: 1px solid rgba(16, 18, 22, 0.12);
  }

  .home-page .menuItens.active {
    max-height: 360px;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
  }

  .home-page .menuItens a {
    min-height: 36px;
  }

  .home-page .hero {
    min-height: auto;
    padding: 7rem 1rem 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 18vw, 5.2rem);
  }

  .hero-copy p {
    font-size: 1.02rem;
  }

  .hero-actions,
  .home-page .primary-button,
  .home-page .ghost-button {
    width: 100%;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-family {
    inset: 1rem 0 auto auto;
    width: 88%;
    height: 330px;
  }

  .hero-book {
    width: min(205px, 48vw);
  }

  .floating-tag {
    min-height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.74rem;
    box-shadow: 4px 4px 0 var(--home-ink);
  }

  .tag-two {
    right: 0.4rem;
  }

  .tag-three {
    left: 25%;
    bottom: 18%;
  }

  .home-page #valores.home-values,
  .home-page .home-manifesto,
  .home-page .home-library,
  .home-page .home-authors {
    padding: 4.5rem 1.25rem;
  }

  .home-page .section-heading h2,
  .manifesto-copy h2,
  .home-cta h2 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .value-card {
    padding: 1.5rem;
  }

  .value-card h3 {
    font-size: 2.75rem;
  }

  .manifesto-board div {
    grid-template-columns: 1fr;
  }

  .manifesto-board span {
    justify-self: start;
  }

  .book-showcase,
  .author-showcase {
    gap: 2.5rem;
  }

  .home-page .book-details,
  .home-page .author-bio {
    padding: 0;
  }

  .home-page .book-title {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .home-page .book-visual img {
    width: min(285px, 76vw);
  }

  .home-page .author-name {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .home-cta {
    padding: 4rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-book {
    animation: none;
  }
}

/* ==========================================================================
   Modal de compra (O Encontro)
   ========================================================================== */

.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: Montserrat, sans-serif;
}

.buy-modal[hidden] {
  display: none;
}

.buy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: buyModalFade 0.32s ease forwards;
}

.buy-modal.is-closing .buy-modal-backdrop {
  animation: buyModalFade 0.24s ease reverse forwards;
}

.buy-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  padding: 3rem 2.5rem 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--book-line);
  background:
    radial-gradient(circle at 18% 0%, rgba(221, 133, 42, 0.22), transparent 18rem),
    linear-gradient(180deg, #0d131f 0%, #070a11 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: buyModalRise 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.buy-modal.is-closing .buy-modal-dialog {
  animation: buyModalRise 0.24s ease reverse forwards;
}

.buy-modal-dialog .editorial-label {
  display: block;
  margin-bottom: 0.75rem;
}

.buy-modal-dialog h2 {
  font-family: Fraunces, serif;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--book-ivory);
  margin-bottom: 0.75rem;
}

.buy-modal-dialog > p {
  color: var(--book-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 auto 2rem;
}

.buy-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--book-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--book-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.buy-modal-close:hover {
  color: var(--book-amber);
  border-color: var(--book-amber);
  background: rgba(243, 189, 90, 0.1);
}

.buy-modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.buy-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.4rem 1.25rem 1.6rem;
  border: 1px solid var(--book-line);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  text-align: left;
  transition: all 0.3s ease;
}

.buy-option:hover,
.buy-option:focus-visible {
  transform: translateY(-3px);
  border-color: var(--book-amber);
  background: rgba(243, 189, 90, 0.08);
  box-shadow: 0 18px 40px rgba(216, 124, 34, 0.18);
}

.buy-option-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--book-amber);
}

.buy-option strong {
  font-family: Fraunces, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--book-ivory);
}

.buy-option-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--book-muted);
}

.buy-option .arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  color: var(--book-amber);
  font-size: 1.05rem;
  transition: transform 0.3s ease;
}

.buy-option:hover .arrow,
.buy-option:focus-visible .arrow {
  transform: translateX(4px);
}

.buy-modal-help {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--book-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--book-line);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.buy-modal-help:hover {
  color: var(--book-amber);
  border-color: var(--book-amber);
}

body.buy-modal-open {
  overflow: hidden;
}

@keyframes buyModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes buyModalRise {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .buy-modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .buy-modal-dialog {
    padding: 2.5rem 1.5rem 1.75rem;
    max-height: calc(100dvh - 2rem);
  }

  .buy-modal-options {
    grid-template-columns: 1fr;
  }

  .buy-option {
    padding: 1.15rem 1.15rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-modal-backdrop,
  .buy-modal-dialog,
  .buy-modal.is-closing .buy-modal-backdrop,
  .buy-modal.is-closing .buy-modal-dialog {
    animation: none;
  }
}
