/* =====================================================
   MAESTRA QUARKETTI — Landing Page
   Stile allineato a alexfablesbooks (sito padre)
   Palette padre: Corallo #FF6B6B | Acqua #4ECDC4 | Bg #F7FFF7
   Font padre: Pacifico (display), Amatic SC (titoli), Poppins (corpo)
   Aggiunta STEM: Giallo #FFD700 | Arancione #FF7F00
   ===================================================== */

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

:root {
  --primary: #FF6B6B;
  --secondary: #4ECDC4;
  --bg: #F7FFF7;
  --text: #292F36;
  --muted: #6b7280;
  --yellow: #FFD700;
  --orange: #FF7F00;
  --dark: #292F36;
  --shadow: 0 4px 15px rgba(0, 0, 0, .1);
  --radius: 12px;
  --heading-font: 'Pacifico', cursive;
  --display-font: 'Amatic SC', cursive;
  --body-font: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 740px;
}

/* --- Navbar --- */
.navbar {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: inline-block;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  animation: pulse 2.5s infinite ease-in-out;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

/* ---- TYPOGRAPHY ---- */
.section-headline {
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: .8rem;
  line-height: 1.15;
}

.section-headline.light {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.section-subtitle.light {
  color: rgba(255, 255, 255, .75);
}

.section-label {
  text-align: center;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: .4rem;
}

/* ---- BUTTONS — stile identico al sito padre ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-orange:hover {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
}

.btn-xl {
  font-size: 1.2rem;
  padding: 15px 36px;
  width: 100%;
  max-width: 480px;
}

/* ---- FORMS ---- */
.email-form {
  width: 100%;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.field-group label {
  font-weight: 600;
  font-size: .9rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.required {
  color: var(--primary);
}

.input-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.input-btn-row.centered {
  justify-content: center;
}

input[type="email"],
input[type="text"] {
  flex: 2;
  min-width: 280px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 1rem;
  background: #fff;
  outline: none;
  min-height: 48px;
  transition: border-color .3s, box-shadow .3s;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .2);
}

.form-urgency {
  font-size: .95rem;
  margin-bottom: 12px;
}

.form-reassurance {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 8px;
}

.form-reassurance.light {
  color: rgba(255, 255, 255, .6);
}

.form-feedback {
  margin-top: 10px;
  font-weight: 600;
  font-size: .95rem;
  min-height: 22px;
}

.form-feedback.success {
  color: #16a34a;
}

.form-feedback.error {
  color: var(--primary);
}

.form-feedback.info {
  color: var(--secondary);
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #c0392b 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.doodle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .08) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(78, 205, 196, .15) 0%, transparent 50%);
}

/* Layout hero: immagine sopra (piena larghezza), testo + form sotto */
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.hero-text {
  width: 100%;
  max-width: 780px;
  order: 2;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-headline {
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
  animation: pulse 2.5s infinite ease-in-out;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, .88);
  margin: 0 auto 26px;
  max-width: 500px;
}

.hero-form-wrap {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-form-wrap label {
  color: #fff;
}

.hero-form-wrap .form-reassurance {
  color: rgba(255, 255, 255, .65);
}

/* Hero image — piena larghezza */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  order: 1;
}

.book-cover-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-book-img {
  width: 100%;
  max-width: 1000px;
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
  transform: rotate(-1deg);
  transition: transform .4s ease-out, box-shadow .4s ease-out;
  display: block;
  margin: 0 auto;
}

.hero-book-img:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.badge-float {
  position: absolute;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  animation: floatBadge 3s ease-in-out infinite;
}

.badge-yellow {
  background: var(--yellow);
  color: var(--dark);
  top: -20px;
  right: -20px;
  padding: 10px 20px;
  font-size: 1.05rem;
  text-decoration: none;
  border: 3px solid var(--dark);
  border-radius: 50px;
  display: inline-block;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: badgePulse 2s infinite ease-in-out; /* Pulsazione fumettosa continua */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes badgePulse {
  0%, 100% {
    transform: rotate(-1deg) scale(1);
  }
  50% {
    transform: rotate(-3deg) scale(1.06);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
  }
}

.badge-yellow:hover {
  background-color: var(--orange);
  color: white;
  transform: scale(1.1) rotate(2deg);
  animation: none;
  box-shadow: 0 12px 30px rgba(255, 127, 0, 0.3);
}

@keyframes badge-vibrate {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(0deg);
  }
  /* Vibrating sequence */
  5%, 25% {
    transform: translateY(-2px) rotate(-3deg);
  }
  10%, 30% {
    transform: translateY(-4px) rotate(3deg);
  }
  15%, 35% {
    transform: translateY(-1px) rotate(-3deg);
  }
  20%, 40% {
    transform: translateY(-5px) rotate(3deg);
  }
}

.badge-pink {
  background: var(--primary);
  color: #fff;
  bottom: 16px;
  left: -16px;
  animation-delay: 1.5s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-7px)
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.04)
  }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 56px;
  display: block;
}

/* =====================================================
   HOOK
   ===================================================== */
.hook {
  padding: 80px 0;
  background: #fff;
}

.hook .section-headline {
  text-align: left;
}

.hook-dialogue {
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 5px solid var(--yellow);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin: 28px 0;
  font-size: 1rem;
  font-style: italic;
  line-height: 2;
}

.hook-dialogue .ellipsis {
  font-size: 1.4rem;
  color: var(--muted);
}

.hook-body {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 28px;
}

.hook-quote {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.9vw, 2.5rem);
  color: var(--dark);
  background: linear-gradient(135deg, rgba(78, 205, 196, .08), rgba(78, 205, 196, .03));
  border: 2px solid rgba(78, 205, 196, .25);
  border-radius: var(--radius);
  padding: 16px 20px;
  line-height: 1.5;
  text-align: center;
}

/* =====================================================
   BOOK CONTENT
   ===================================================== */
.book-content {
  padding: 80px 0;
  background: var(--bg);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.chapter-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform .3s ease;
  border-top: 4px solid transparent;
}

.chapter-card:hover {
  transform: translateY(-8px);
}

.chapter-yellow {
  border-top-color: var(--yellow);
}

.chapter-green {
  border-top-color: var(--secondary);
}

.chapter-blue {
  border-top-color: #0047AB;
}

.chapter-num {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.chapter-concept {
  font-family: var(--display-font);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.chapter-desc {
  font-size: .92rem;
  color: var(--muted);
}

.editorial-note {
  background: #fff;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  font-size: .95rem;
  text-align: center;
}

/* =====================================================
   GALLERY CAROUSEL
   ===================================================== */
.gallery-section {
  padding: 80px 0;
  background-color: var(--text);
  position: relative;
  overflow: hidden;
}

.carousel-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.carousel-slide {
  min-width: 100%;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.slide-caption {
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-style: italic;
  font-size: .9rem;
  margin-top: 12px;
}

.carousel-btn {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, .3);
}

.carousel-btn.prev {
  left: -26px;
}

.carousel-btn.next {
  right: -26px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  min-height: 11px;
}

.dot.active {
  background: var(--orange);
  transform: scale(1.35);
}

.gallery-cta {
  text-align: center;
  margin-top: 48px;
}

.gallery-invite {
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  margin-bottom: 18px;
}

.gallery-cta .email-form {
  max-width: 520px;
  margin: 0 auto;
}

/* =====================================================
   CHARACTERS
   ===================================================== */
.characters {
  padding: 80px 0;
  background: #fff;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.character-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform .3s ease;
  border-left: 5px solid transparent;
}

.character-card:hover {
  transform: translateY(-5px);
}



.bg-pink {
  border-left-color: var(--primary);
}

.bg-lime {
  border-left-color: var(--secondary);
}

.bg-yellow {
  border-left-color: var(--yellow);
}

.bg-cobalt {
  border-left-color: #0047AB;
}

.bg-orange {
  border-left-color: var(--orange);
}

.char-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.char-emoji img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

.char-info h3 {
  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary);
}

.char-info p {
  font-size: .9rem;
  color: var(--muted);
}

/* =====================================================
   BENEFITS
   ===================================================== */
.benefits {
  padding: 80px 0;
  background: var(--bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.benefit-col {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  transition: transform .3s ease;
}

.benefit-col:hover {
  transform: translateY(-8px);
}

.benefit-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
}

.benefit-col h3 {
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-col p {
  font-size: .9rem;
  color: var(--muted);
}

/* =====================================================
   URGENCY
   ===================================================== */
.urgency {
  padding: 50px 0; /* Ridotto da 80px per compattare verticalmente la sezione */
  background: linear-gradient(135deg, var(--text) 0%, #1a252f 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.urgency-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 127, 0, .12) 0%, transparent 65%);
}

.urgency-badge {
  display: inline-block;
  background: var(--orange);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.urgency-headline {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 14px;
  scroll-margin-top: 75px; /* Crea un margine perfetto sotto la navbar sticky di 58px */
  animation: wobbleOscillate 2.5s infinite ease-in-out; /* Oscillazione e pulsazione continua morbida */
  display: inline-block;
  transform-origin: center;
}

@keyframes wobbleOscillate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  25% {
    transform: rotate(-2.5deg) scale(1.03);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: rotate(2.5deg) scale(0.97);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.45);
  }
  75% {
    transform: rotate(-1.5deg) scale(1.02);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }
}

.urgency-subtitle {
  color: rgba(255, 255, 255, .8);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

.countdown-wrap {
  margin-bottom: 32px;
}

.countdown-label {
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  margin-bottom: 10px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 70px;
}

.time-block span {
  font-family: var(--display-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.time-block small {
  font-size: .65rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-top: 3px;
}

.time-sep {
  font-size: 1.8rem;
  color: var(--orange);
  font-weight: 700;
}

.benefits-list {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 20px; /* Ridotto da 32px per compattezza */
  display: flex;
  flex-direction: column;
  gap: 8px; /* Ridotto da 10px */
}

.benefits-list li {
  font-size: 1rem;
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
}

.urgency-form {
  max-width: 460px;
  margin: 0 auto;
}

.urgency-form label {
  color: rgba(255, 255, 255, .85);
  font-size: 0.9rem; /* Leggermente ridotto per compattezza */
}

.urgency-form .field-group {
  margin-bottom: 12px; /* Ridotto da 20px per guadagnare spazio verticale */
}

.urgency-form .btn-xl {
  margin: 4px auto 0;
  padding: 12px 24px; /* Più compatta */
}

.urgency-form .form-reassurance {
  color: rgba(255, 255, 255, .5);
  font-size: 0.8rem; /* Ridotto per compattezza */
  line-height: 1.4;
  margin-top: 8px;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  padding: 80px 0;
  background: #fff;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 22px;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
  min-height: 52px;
}

.faq-question:hover {
  background: rgba(78, 205, 196, .08);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--secondary);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: .93rem;
}

.faq-cta {
  margin-top: 52px;
  text-align: center;
}

.faq-cta>p {
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.faq-cta .email-form {
  max-width: 520px;
  margin: 0 auto;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background-color: var(--text);
  color: rgba(255, 255, 255, .6);
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-legal {
  font-size: .82rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact {
  font-size: .85rem;
}

.footer-contact a {
  color: var(--yellow);
  text-decoration: none;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox.open {
  display: flex;
  animation: fadeIn .3s;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-caption {
  color: rgba(255, 255, 255, .7);
  margin-top: 14px;
  font-style: italic;
  font-size: .9rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  min-height: 44px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
}

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--text);
  color: #fff;
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow);
  z-index: 2000;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .4s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-book-img {
    max-width: 95vw;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
  }

  .input-btn-row {
    flex-direction: column;
  }

  .input-btn-row input {
    width: 100%;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .character-card:last-child {
    grid-column: auto;
  }

  .carousel-btn.prev {
    left: -10px;
  }

  .carousel-btn.next {
    right: -10px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 50px 0 30px;
  }

  .section-headline {
    font-size: 1.9rem;
  }

  .time-block {
    min-width: 58px;
    padding: 10px 12px;
  }

  .time-block span {
    font-size: 1.7rem;
  }

  .btn-xl {
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  .hook-quote {
    font-size: 1.6rem;
    padding: 14px;
  }

  .char-emoji img {
    width: 65px;
    height: 65px;
  }

  .hero-badge {
    font-size: 0.9rem;
  }

}

/* =====================================================
   GDPR CONSENT CHECKBOX
   ===================================================== */
.gdpr-consent {
  margin-top: 1rem;
  padding: 1rem;
  background: #f3f8f8;
  border: 1px solid #cedcd8;
  border-radius: 8px;
  text-align: left;
}

.consent-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.75rem; /* Ridotto di un ulteriore punto (12px invece di 13px) per massima discrezione */
  line-height: 1.6;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #01696f;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  color: var(--text);
}

.consent-text a {
  color: #01696f;
  text-decoration: underline;
}

.consent-note {
  font-size: 0.72rem; /* Ridotto di un punto per coerenza */
  color: #7a7974;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}