:root {
  --yellow: #FFD000;
  --orange: #FF6B2B;
  --pink: #FF3D8B;
  --purple: #8B2FC9;
  --blue: #1A6FFF;
  --teal: #00C9A7;
  --green: #3DD56D;
  --red: #FF2D55;
  --bg: #FFFDF4;
  --dark: #1A1228;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
}

/* Utilities */
.text-yellow { color: var(--yellow); }
.text-orange { color: var(--orange); }
.text-pink { color: var(--pink); }
.text-purple { color: var(--purple); }
.text-blue { color: var(--blue); }
.text-teal { color: var(--teal); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }

.bg-yellow { background: var(--yellow); }
.bg-orange { background: var(--orange); }
.bg-pink { background: var(--pink); }
.bg-purple { background: var(--purple); }
.bg-blue { background: var(--blue); }
.bg-teal { background: var(--teal); }
.bg-green { background: var(--green); }
.bg-red { background: var(--red); }
.bg-dark { background: var(--dark); }
.bg-white { background: var(--white); }

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: var(--dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: 'Boogaloo', cursive;
  font-size: 1.6rem;
  color: var(--yellow);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo span { animation: spin 4s linear infinite; display: inline-block; }

.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Boogaloo', cursive;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links li:nth-child(1) a:hover { background: var(--yellow); color: var(--dark); }
.nav-links li:nth-child(2) a:hover { background: var(--orange); }
.nav-links li:nth-child(3) a:hover { background: var(--teal); }
.nav-links li:nth-child(4) a:hover { background: var(--purple); }
.nav-links li:nth-child(5) a:hover { background: var(--pink); }
.nav-links li:nth-child(6) a:hover { background: var(--green); color: var(--dark); }
.nav-links li:nth-child(7) a:hover { background: var(--blue); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--yellow);
  border-radius: 3px;
  transition: all 0.3s;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: var(--dark);
  padding: 1rem;
  z-index: 999;
  border-top: 3px solid var(--yellow);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: 'Boogaloo', cursive;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.3rem;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); }

/* ===== HERO ===== */
.hero, #home {
  min-height: 80vh;
  padding-top: 70px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#home {
  min-height: 100vh;
}

.hero-small {
  min-height: 30vh;
}

.hero-medium {
  min-height: 40vh;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 6s ease-in-out infinite;
}
.blob1 { width: 400px; height: 400px; background: var(--purple); top: -100px; left: -100px; animation-delay: 0s; }
.blob2 { width: 350px; height: 350px; background: var(--pink); bottom: -80px; right: -80px; animation-delay: 2s; }
.blob3 { width: 300px; height: 300px; background: var(--blue); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 1s; }
.blob4 { width: 250px; height: 250px; background: var(--teal); top: 10%; right: 10%; animation-delay: 3s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Boogaloo', cursive;
  font-size: 1rem;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: 'Boogaloo', cursive;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-family: 'Patrick Hand', cursive; 
  font-size: 1.5rem;
  color: var(--white);
}

.lab-header-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.hero-manifesto {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-family: 'Patrick Hand', cursive;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-cta {
  font-family: 'Boogaloo', cursive;
  font-size: 1.2rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (min-width: 769px) {
  .hero-cta-row {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.75rem 1.2rem;
    white-space: nowrap;
  }
}

.hero-cta:hover { transform: translateY(-4px) scale(1.03); }
.cta-a { background: var(--yellow); color: var(--dark); }
.cta-b { background: var(--pink); color: var(--white); }
.cta-c { background: var(--teal); color: var(--dark); }
.cta-green { background: var(--green); color: var(--dark); }
.cta-orange { background: var(--orange); color: var(--white); }
.cta-blue { background: var(--blue); color: var(--white); }
.cta-purple { background: var(--purple); color: var(--white); }

/* Quick Start Cards */
.quickstart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.qs-card {
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.qs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.qs-card:hover::before { transform: scaleX(1); }
.qs-card:hover { transform: translateY(-8px) rotate(-1deg); }

.qs-card .qs-icon { font-size: 2.5rem; margin-bottom: 0.6rem; display: block; }
.qs-card .qs-title { font-family: 'Boogaloo', cursive; font-size: 1.3rem; color: white; }
.qs-card .qs-sub { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 0.3rem; font-family: 'Patrick Hand', cursive; }

.qs-1 { background: linear-gradient(135deg, var(--orange), var(--red)); }
.qs-2 { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.qs-3 { background: linear-gradient(135deg, var(--teal), var(--green)); }

/* ===== SECTIONS SHARED ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-wrap {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Boogaloo', cursive;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Boogaloo', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.section-title-dark {
  font-family: 'Boogaloo', cursive;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.section-desc {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  background: white;
  color: var(--dark);
  border: 2px solid rgba(0,0,0,0.05);
  font-family: 'Boogaloo', cursive;
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* Search */
.search-bar {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.libri-filters .search-bar {
  margin-top: 1rem;
  margin-bottom: 0;
}

.page-filters .filter-bar {
  margin-bottom: 0.75rem;
}

.page-filters .search-bar {
  margin-bottom: 2rem;
}

.home-filters .filter-bar {
  margin-bottom: 0.75rem;
}

.home-filters .search-bar {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.search-input {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 0.7rem 1.1rem 0.7rem 2.85rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  background: white;
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 4px 18px rgba(255, 208, 0, 0.25);
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.search-empty-msg {
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: #888;
  padding: 1.5rem 1rem 0.5rem;
}

.home-search-results {
  margin-bottom: 2.5rem;
}

.home-search-results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.home-search-results-count {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: #777;
  margin: 0;
}

.search-result-cat {
  display: inline-block;
  font-family: 'Boogaloo', cursive;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.search-result-cat:hover {
  color: var(--dark);
}

.search-result-card .card-wide-marker {
  font-size: 1.75rem;
}

/* Age Badge */
.age-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark);
  margin-right: 8px;
}

/* Page Previews (Index) */
.section-preview {
  margin-bottom: 3.5rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.preview-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.8rem;
}

.preview-link {
  font-family: 'Boogaloo', cursive;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

/* Card anteprima home: dimensione uniforme e struttura a righe */
.preview-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px;
}

/* Riga 1: logo + titolo */
.preview-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.preview-card-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  line-height: 1;
}

.preview-card-icon--green { background: rgba(61, 213, 109, 0.18); }
.preview-card-icon--pink { background: rgba(255, 61, 139, 0.15); }
.preview-card-icon--teal { background: rgba(0, 201, 167, 0.15); }
.preview-card-icon--orange { background: rgba(255, 107, 43, 0.15); }
.preview-card-icon--blue { background: rgba(26, 111, 255, 0.12); }
.preview-card-icon--purple { background: rgba(139, 47, 201, 0.14); }

.preview-card-title {
  margin: 0;
  font-family: 'Boogaloo', cursive;
  font-size: 1.3rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Riga 2: età */
.preview-card-age {
  align-self: flex-start;
  margin: 0 0 0.6rem;
}

/* Riga 3: solo descrizione (troncata per altezza uniforme) */
.preview-card-desc {
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Riga 4: pulsanti (Discuti a sinistra, Scopri a destra) */
.preview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.preview-card-footer-right {
  margin-left: auto;
}

.preview-link:hover {
  transform: translateX(8px);
}

/* Grid Layouts */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Lista a tutta larghezza (es. Avventure) */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.card-wide {
  display: flex;
  width: 100%;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-left: 6px solid var(--green);
}

.card-wide:hover {
  transform: translateY(-4px);
}

.card-wide-marker {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  font-size: 2.25rem;
  background: rgba(61, 213, 109, 0.12);
}

.card-wide-body {
  flex: 1;
  min-width: 0;
  padding: 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-wide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  flex-wrap: wrap;
}

.card-wide-footer-right {
  margin-left: auto;
}

.card-wide-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.card-wide-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.55rem;
  color: var(--dark);
  margin: 0;
  line-height: 1.2;
}

.card-wide-age {
  margin-top: 0;
  flex-shrink: 0;
}

.card-wide-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(26, 18, 40, 0.85);
}

.card-wide-cover {
  flex-shrink: 0;
  width: 6.5rem;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: stretch;
}

.card-wide-cover img {
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  object-fit: cover;
  display: block;
}

.card-wide-cover.is-fallback {
  width: 5.5rem;
  min-height: 9.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background: rgba(255, 61, 139, 0.12);
}

.card-wide-cover.is-fallback::after {
  content: '📚';
}

.card-wide-heading {
  flex: 1;
  min-width: 0;
}

.card-wide-autore {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: rgba(26, 18, 40, 0.7);
}

.card-wide--green { border-left-color: var(--green); }
.card-wide--green .card-wide-marker { background: rgba(61, 213, 109, 0.14); }
.card-wide--green .card-wide-age { color: var(--green); background: rgba(61, 213, 109, 0.12); }
.card-wide--green .card-wide-cover.is-fallback { background: rgba(61, 213, 109, 0.14); }

.card-wide--pink { border-left-color: var(--pink); }
.card-wide--pink .card-wide-marker { background: rgba(255, 61, 139, 0.12); }
.card-wide--pink .card-wide-age { color: var(--pink); background: rgba(255, 61, 139, 0.12); }
.card-wide--pink .card-wide-cover.is-fallback { background: rgba(255, 61, 139, 0.12); }

.card-wide-meta {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(26, 18, 40, 0.8);
}

.card-wide-difficulty {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-top: 0.75rem;
  background: rgba(0, 0, 0, 0.05);
}

.card-wide--teal { border-left-color: var(--teal); }
.card-wide--teal .card-wide-marker { background: rgba(0, 201, 167, 0.14); }
.card-wide--teal .card-wide-age { color: var(--teal); background: rgba(0, 201, 167, 0.12); }
.card-wide--teal .card-wide-cover.is-fallback { background: rgba(0, 201, 167, 0.14); }
.card-wide--teal .card-wide-difficulty { color: var(--teal); }

.card-wide--orange { border-left-color: var(--orange); }
.card-wide--orange .card-wide-marker { background: rgba(255, 107, 43, 0.14); }
.card-wide--orange .card-wide-age { color: var(--orange); background: rgba(255, 107, 43, 0.12); }
.card-wide--orange .card-wide-cover.is-fallback { background: rgba(255, 107, 43, 0.14); }
.card-wide--orange .card-wide-difficulty { color: var(--orange); }

.card-wide--blue { border-left-color: var(--blue); }
.card-wide--blue .card-wide-marker { background: rgba(26, 111, 255, 0.12); }
.card-wide--blue .card-wide-age { color: var(--blue); background: rgba(26, 111, 255, 0.1); }
.card-wide--blue .card-wide-cover.is-fallback { background: rgba(26, 111, 255, 0.12); }
.card-wide--blue .card-wide-difficulty { color: var(--blue); }

.card-wide--purple { border-left-color: var(--purple); }
.card-wide--purple .card-wide-marker { background: rgba(139, 47, 201, 0.14); }
.card-wide--purple .card-wide-age { color: var(--purple); background: rgba(139, 47, 201, 0.12); }
.card-wide--purple .card-wide-cover.is-fallback { background: rgba(139, 47, 201, 0.14); }
.card-wide--purple .card-wide-difficulty { color: var(--purple); }

.card-wide-vocab {
  font-size: 0.9rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.card:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Rule Card (Laboratori, Coding) */
.rule-card {
  margin-bottom: 1.5rem;
  background: rgba(0, 201, 167, 0.1);
  color: var(--dark);
  border: none;
  border-left: 5px solid var(--teal);
  padding: 1.75rem 2rem;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.rule-card h3 {
  color: var(--teal);
  font-family: 'Boogaloo', cursive;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.rule-card--coding {
  background: rgba(139, 47, 201, 0.1);
  border-left-color: var(--purple);
}

.rule-card--coding h3 {
  color: var(--purple);
}

/* Home — contatore attività */
.stats-counter {
  background: white;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.stats-counter-total {
  margin-bottom: 1.75rem;
}

.stats-counter-number {
  display: block;
  font-family: 'Boogaloo', cursive;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--purple);
}

.stats-counter-label {
  margin: 0.35rem 0 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
  color: rgba(26, 18, 40, 0.65);
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  color: var(--dark);
  background: rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.stat-card-number {
  font-family: 'Boogaloo', cursive;
  font-size: 2rem;
  line-height: 1.1;
}

.stat-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.75;
}

.stat-card--green .stat-card-number { color: var(--green); }
.stat-card--green:hover { background: rgba(61, 213, 109, 0.12); }

.stat-card--pink .stat-card-number { color: var(--pink); }
.stat-card--pink:hover { background: rgba(255, 61, 139, 0.1); }

.stat-card--teal .stat-card-number { color: var(--teal); }
.stat-card--teal:hover { background: rgba(0, 201, 167, 0.12); }

.stat-card--orange .stat-card-number { color: var(--orange); }
.stat-card--orange:hover { background: rgba(255, 107, 43, 0.12); }

.stat-card--blue .stat-card-number { color: var(--blue); }
.stat-card--blue:hover { background: rgba(26, 111, 255, 0.1); }

.stat-card--purple .stat-card-number { color: var(--purple); }
.stat-card--purple:hover { background: rgba(139, 47, 201, 0.1); }

/* Download Box (Libri) */
.download-box {
  background: white;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.download-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.download-content h2 {
  font-family: 'Boogaloo', cursive;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.download-content p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #555;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--purple);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 1.1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== COMMUNITY BANNER ===== */
.community-banner {
  position: relative;
  background: linear-gradient(135deg, #FFD000 0%, #FF8C69 55%, #FF6B9D 100%);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  margin: 4rem 0;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.25);
}

.community-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.community-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.community-banner-inner {
  position: relative;
  z-index: 1;
}

.community-banner-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.community-banner-slogan {
  font-family: 'Boogaloo', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.community-banner-sub {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-community {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #FF6B9D;
  font-family: 'Boogaloo', cursive;
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-community:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #e0457a;
}

.community-latest {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.community-latest-label {
  font-family: 'Boogaloo', cursive;
  font-size: 0.95rem;
  color: #FF6B9D;
  margin: 0 0 0.4rem;
}

.community-latest-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.community-latest-title a {
  color: var(--dark);
  text-decoration: none;
}

.community-latest-title a:hover {
  color: #FF6B9D;
}

.community-latest-meta {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: #888;
  margin: 0 0 0.65rem;
}

.community-latest-excerpt {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-latest-link {
  font-family: 'Boogaloo', cursive;
  font-size: 1rem;
  color: #FF6B9D;
  text-decoration: none;
}

.community-latest-link:hover {
  text-decoration: underline;
}

/* ===== COMMUNITY CAROUSEL ===== */
.community-carousel {
  max-width: 650px;
  margin: 0 auto 1.75rem;
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.95);
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.carousel-slide-label {
  font-family: 'Boogaloo', cursive;
  font-size: 0.95rem;
  color: #FF6B9D;
  margin: 0 0 0.4rem;
}

.carousel-slide-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.carousel-slide-title a {
  color: var(--dark);
  text-decoration: none;
}

.carousel-slide-title a:hover {
  color: #FF6B9D;
}

.carousel-slide-meta {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: #888;
  margin: 0 0 0.65rem;
}

.carousel-slide-excerpt {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-slide-link {
  font-family: 'Boogaloo', cursive;
  font-size: 1rem;
  color: #FF6B9D;
  text-decoration: none;
}

.carousel-slide-link:hover {
  text-decoration: underline;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  color: #FF6B9D;
}

.carousel-nav:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -55px;
}

.carousel-next {
  right: -55px;
}

@media (max-width: 720px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 61, 139, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #FF3D8B;
  width: 28px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: #FF3D8B;
}

@media (max-width: 600px) {
  .community-carousel { margin: 0 auto 1.75rem; }
  .carousel-slide { padding: 1rem 1.1rem; }
  .carousel-dots { gap: 0.5rem; }
}

/* ===== ESPERIMENTO SETTIMANA ===== */
.exp-banner {
  background: var(--dark);
  color: white;
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.exp-banner::before {
  content: '🧪';
  position: absolute;
  font-size: 10rem;
  opacity: 0.08;
  right: -1rem;
  top: -1rem;
}

.exp-badge-week {
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Boogaloo', cursive;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.exp-banner h3 { font-family: 'Boogaloo', cursive; font-size: 1.9rem; margin-bottom: 0.5rem; }
.exp-banner p { font-family: 'Patrick Hand', cursive; font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 1.2rem; line-height: 1.6; }

.exp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 1.1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s;
}
.exp-btn:hover { transform: scale(1.05); }

.exp-emoji-big {
  font-size: 5rem;
  flex-shrink: 0;
}

/* ===== STORIE E AVVENTURE ===== */
#storie { background: #FFF6FE; }

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mood-card {
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
  cursor: pointer;
}
.mood-card:hover { transform: translateY(-6px) rotate(1deg); }

.mood-card .mood-icon { font-size: 2.8rem; margin-bottom: 0.8rem; display: block; }
.mood-card h3 { font-family: 'Boogaloo', cursive; font-size: 1.4rem; margin-bottom: 0.5rem; }
.mood-card p { font-family: 'Patrick Hand', cursive; font-size: 0.95rem; line-height: 1.6; }

.mc1 { background: #FFE8F4; border: 3px solid var(--pink); }
.mc1 h3 { color: var(--pink); }
.mc2 { background: #E8EDFF; border: 3px solid var(--blue); }
.mc2 h3 { color: var(--blue); }
.mc3 { background: #E8FFF5; border: 3px solid var(--teal); }
.mc3 h3 { color: var(--teal); }
.mc4 { background: #FFF3E8; border: 3px solid var(--orange); }
.mc4 h3 { color: var(--orange); }

.diario-box {
  margin-top: 2.5rem;
  background: var(--yellow);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 6px 6px 0 var(--dark);
}

.diario-box .diario-icon { font-size: 3.5rem; flex-shrink: 0; }
.diario-box h3 { font-family: 'Boogaloo', cursive; font-size: 1.5rem; margin-bottom: 0.4rem; }
.diario-box p { font-family: 'Patrick Hand', cursive; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.8rem; }

.diario-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--dark);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s;
}
.diario-btn:hover { transform: scale(1.05); }

/* ===== LABORATORIO ===== */
#laboratorio { background: #F0FFF8; }

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.lab-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}
.lab-card:hover { transform: translateY(-8px); box-shadow: 0 14px 40px rgba(0,0,0,0.15); }

.lab-card-header {
  padding: 1.8rem;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lh1 { background: linear-gradient(135deg, #FF6B2B, #FF3D8B); }
.lh2 { background: linear-gradient(135deg, #1A6FFF, #8B2FC9); }
.lh3 { background: linear-gradient(135deg, #00C9A7, #3DD56D); }

.lab-card-header h3 { font-family: 'Boogaloo', cursive; font-size: 1.3rem; color: white; }

.lab-card-body { padding: 1.5rem; }

.lab-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.lab-row-icon { font-size: 1.2rem; flex-shrink: 0; }
.lab-row strong { font-weight: 700; display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.lab-row p { font-family: 'Patrick Hand', cursive; font-size: 0.95rem; color: #333; }

/* ===== NUMERI IN GIOCO ===== */
#numeri { background: #FFFBEE; }

.numeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.num-card {
  border-radius: 24px;
  padding: 2rem;
  border: 3px solid transparent;
  transition: transform 0.25s;
  position: relative;
  overflow: hidden;
}
.num-card:hover { transform: scale(1.03); }

.nc1 { background: #FFF3CD; border-color: var(--yellow); }
.nc2 { background: #FFE8D6; border-color: var(--orange); }
.nc3 { background: #EDE8FF; border-color: var(--purple); }

.num-card .num-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.num-card h3 { font-family: 'Boogaloo', cursive; font-size: 1.4rem; margin-bottom: 0.6rem; }
.num-card p { font-family: 'Patrick Hand', cursive; font-size: 0.95rem; line-height: 1.7; color: #444; }

.num-highlight {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--dark);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
}

/* ===== ANGOLO GENITORI ===== */
#genitori { background: #F5F0FF; }

.genitori-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.download-list {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.download-list h3 {
  font-family: 'Boogaloo', cursive;
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: #F5F0FF;
  margin-bottom: 0.7rem;
  transition: transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
}
.dl-item:hover { transform: translateX(6px); }
.dl-item .dl-icon { font-size: 1.5rem; }
.dl-item .dl-text strong { font-weight: 700; font-size: 0.95rem; display: block; }
.dl-item .dl-text span { font-family: 'Patrick Hand', cursive; font-size: 0.85rem; color: #777; }

.dl-badge {
  margin-left: auto;
  background: var(--purple);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

.contribute-box {
  background: var(--purple);
  border-radius: 24px;
  padding: 2rem;
  color: white;
}

.contribute-box h3 {
  font-family: 'Boogaloo', cursive;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contribute-box p {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.form-field {
  width: 100%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-field::placeholder { color: rgba(255,255,255,0.6); }
.form-field:focus { border-color: var(--yellow); }

textarea.form-field { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  padding: 0.9rem;
  font-family: 'Boogaloo', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Boogaloo', cursive;
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.footer-bio {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.footer-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.footer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}
.fd1 { background: var(--yellow); animation-delay: 0s; }
.fd2 { background: var(--pink); animation-delay: 0.2s; }
.fd3 { background: var(--teal); animation-delay: 0.4s; }
.fd4 { background: var(--orange); animation-delay: 0.6s; }
.fd5 { background: var(--purple); animation-delay: 0.8s; }

.footer-promo {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 208, 0, 0.1);
  border: 1.5px solid rgba(255, 208, 0, 0.35);
  max-width: 32rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.footer-promo:hover {
  transform: scale(1.02);
  background: rgba(255, 208, 0, 0.16);
}

.footer-promo-icon {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-promo-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.footer-promo-text strong {
  font-family: 'Boogaloo', cursive;
  font-size: 1.15rem;
  color: var(--yellow);
  font-weight: normal;
}

.footer-promo-cta {
  font-family: 'Boogaloo', cursive;
  font-size: 1rem;
  color: var(--dark);
  background: var(--yellow);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
}

.footer-legal {
  margin: 0 auto 1.25rem;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--yellow);
}

.footer-legal-sep {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-visitors {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0 auto 1.25rem;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
  line-height: 1.5;
}

.footer-visitors-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.footer-visitors-number {
  font-family: 'Boogaloo', cursive;
  font-size: 1.35rem;
  color: var(--yellow);
  font-weight: normal;
}

.footer-visitors.is-unavailable .footer-visitors-number {
  display: none;
}

.footer-visitors.is-unavailable {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Patrick Hand', cursive;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DETTAGLIO PAGE ===== */
.back-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-family: 'Boogaloo', cursive;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  transition: background 0.3s;
}
.back-link:hover { background: rgba(0,0,0,0.4); }

.dettaglio-info-box {
  margin-bottom: 3rem;
  flex: 1.5;
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.dettaglio-info-box p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

.dettaglio-subtitle {
  font-family: 'Boogaloo', cursive;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.materiali-text {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--orange);
}

.insegnamento-box {
  background: linear-gradient(135deg, var(--teal), #22E5C3);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(0,201,167,0.3);
  margin-top: 2rem;
}

.insegnamento-icon {
  font-size: 4rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.insegnamento-content h3 {
  font-family: 'Boogaloo', cursive;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.insegnamento-content p {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 600;
  opacity: 0.95;
}

@media (max-width: 900px) {
}

@media (max-width: 768px) {
  .insegnamento-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

.btn-stampa-dettaglio {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Boogaloo', cursive;
  font-size: 1.15rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.btn-stampa-dettaglio:hover {
  transform: scale(1.05);
}

.card-wide-footer > div,
.preview-card-footer > div {
  margin-top: 0 !important;
}

.btn-discuti {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  font-family: 'Boogaloo', cursive;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  border: 2px solid currentColor;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-discuti:hover {
  background: var(--dark);
  color: white !important;
  border-color: var(--dark);
  transform: scale(1.03);
}
.btn-discuti--lg {
  font-size: 1.05rem;
  padding: 8px 20px;
}

.btn-acquista {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  cursor: pointer;
}
.btn-acquista:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.affiliate-promo {
  margin: 3rem auto 1rem;
  text-align: center;
}
.affiliate-promo-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.affiliate-promo-sub {
  font-family: 'Nunito', sans-serif;
  color: #666;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.affiliate-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.affiliate-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  border: 2px solid #f1e3ec;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.affiliate-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--promo-accent, var(--pink));
}
.affiliate-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.affiliate-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.affiliate-banner-text strong {
  font-family: 'Boogaloo', cursive;
  font-size: 1.2rem;
  color: var(--dark);
}
.affiliate-banner-text > span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}
.affiliate-banner-cta {
  font-family: 'Boogaloo', cursive;
  font-size: 0.95rem;
  color: var(--promo-accent, var(--pink));
  white-space: nowrap;
  flex-shrink: 0;
}
.affiliate-disclaimer {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: #999;
  margin-top: 1rem;
}

/* ===== LIBRO / COLLANA ===== */
.book-home-promo-cover img {
  width: 110px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: block;
}

.book-home-promo-badge {
  display: inline-block;
  background: var(--purple);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.book-showcase {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: white;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.book-showcase-cover {
  flex-shrink: 0;
}

.book-showcase-cover img {
  width: 260px;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

.book-showcase-info {
  flex: 1;
  min-width: 0;
}

.book-badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.book-badge {
  font-family: 'Boogaloo', cursive;
  font-size: 0.9rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
}

.book-badge--series { background: var(--purple); color: white; }
.book-badge--age { background: var(--yellow); color: var(--dark); }

.book-showcase-title {
  font-family: 'Boogaloo', cursive;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.book-showcase-desc {
  font-family: 'Nunito', sans-serif;
  line-height: 1.65;
  color: #555;
  margin-bottom: 1.25rem;
}

.book-feature-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.book-feature-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-family: 'Nunito', sans-serif;
  color: #444;
  line-height: 1.4;
}

.book-feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.btn-buy-amazon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: white;
  font-family: 'Boogaloo', cursive;
  font-size: 1.15rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-buy-amazon:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.book-showcase-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.collana-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.collana-card {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-top: 6px solid var(--purple);
}

.collana-card--soon {
  opacity: 0.75;
}

.collana-card-vol {
  font-family: 'Boogaloo', cursive;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.collana-card-age {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.collana-card-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
}

.collana-card-status--live { background: rgba(61, 213, 109, 0.15); color: #1c8a44; }
.collana-card-status--soon { background: rgba(0, 0, 0, 0.06); color: #777; }
.collana-card-status--coming { background: rgba(255, 208, 0, 0.2); color: #a67c00; }

@media (max-width: 768px) {
  .book-showcase { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
  .book-badge-row { justify-content: center; }
  .book-feature-list { justify-items: center; }
  .book-feature-list li { text-align: left; }
}

.print-only {
  display: none;
}

.dettaglio-print-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.dettaglio-print-brand {
  display: block;
  font-family: 'Boogaloo', cursive;
  font-size: 1.4rem;
  color: var(--dark);
}

.dettaglio-print-cat {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.25rem;
}

@media print {
  .no-print,
  nav,
  footer,
  .mobile-menu {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  body.page-dettaglio {
    background: white;
    color: #111;
  }

  body.page-dettaglio .dettaglio-print-header {
    margin: 0 12mm 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: none !important;
    page-break-after: avoid;
  }

  body.page-dettaglio .hero,
  body.page-dettaglio .hero.hero-medium {
    background: white !important;
    color: var(--dark) !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 12mm 0.5rem !important;
    margin: 0 !important;
    box-shadow: none;
    display: block !important;
    overflow: visible !important;
    page-break-after: avoid;
  }

  body.page-dettaglio .hero-content {
    padding: 0 !important;
    max-width: 100%;
    text-align: left;
  }

  body.page-dettaglio .hero-title {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
  }

  body.page-dettaglio .section-title-dark {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  body.page-dettaglio .hero-title,
  body.page-dettaglio .hero-subtitle {
    color: var(--dark) !important;
  }

  body.page-dettaglio .hero-subtitle {
    margin-bottom: 0;
  }

  body.page-dettaglio main.container {
    max-width: 100%;
    padding: 0 12mm 12mm !important;
    margin-top: 0 !important;
  }

  body.page-dettaglio .dettaglio-info-box {
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem !important;
    page-break-inside: auto;
  }

  body.page-dettaglio .insegnamento-box {
    box-shadow: none;
    border: none;
    page-break-inside: avoid;
    margin-top: 1rem;
  }

  body.page-dettaglio .insegnamento-box {
    background: #f0fdf9 !important;
    color: #134e4a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.page-dettaglio .insegnamento-content h3,
  body.page-dettaglio .insegnamento-content p {
    color: #134e4a !important;
  }

  body.page-dettaglio .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Casella da spuntare a matita: quadratino vuoto, sempre, anche per gli step
     segnati come completati a video (la stampa è una checklist pulita). */
  body.page-dettaglio .step-check-wrapper {
    display: flex !important;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1.5px solid #333 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.page-dettaglio .step-check-wrapper::after {
    content: '' !important;
    color: transparent !important;
  }

  body.page-dettaglio .step-card {
    cursor: default;
    page-break-inside: avoid;
    box-shadow: none;
    border: none;
  }

  body.page-dettaglio .step-card.completed {
    opacity: 1 !important;
    background: #ffffff !important;
  }

  body.page-dettaglio .step-card.completed .step-number {
    transform: none !important;
  }

  body.page-dettaglio .step-card.completed .step-text,
  body.page-dettaglio .step-card.completed .step-title {
    text-decoration: none !important;
    color: inherit !important;
  }

  body.page-dettaglio .step-number {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.page-dettaglio .procedimento-box {
    page-break-before: auto;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .quickstart { grid-template-columns: 1fr; max-width: 360px; }

  .exp-banner { flex-direction: column; text-align: center; }
  .exp-emoji-big { display: none; }

  .genitori-split { grid-template-columns: 1fr; }

  .diario-box { flex-direction: column; text-align: center; }

  .hero-cta-row { flex-direction: column; align-items: center; }

  .grid-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
  .card { padding: 1.5rem; }
  .download-box { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1rem; }
  .stats-counter { padding: 1.75rem 1.25rem; }
  .stats-counter-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .stat-card { padding: 0.85rem 0.5rem; }
  .stat-card-number { font-size: 1.65rem; }
}

@media (max-width: 480px) {
  nav { padding: 0.8rem 1rem; }
  .section-wrap, .container, .hero { padding: 3rem 1rem; }
  .grid-cards { grid-template-columns: 1fr; gap: 1rem; }
  .card-wide { flex-direction: column; border-left: none; border-top: 6px solid var(--green); }
  .card-wide--pink { border-top-color: var(--pink); }
  .card-wide--teal { border-top-color: var(--teal); }
  .card-wide--orange { border-top-color: var(--orange); }
  .card-wide--blue { border-top-color: var(--blue); }
  .card-wide--purple { border-top-color: var(--purple); }
  .card-wide-marker,
  .card-wide-cover { width: 100%; min-height: auto; }
  .card-wide-cover img { min-height: 11rem; max-height: 14rem; }
  .card-wide-cover.is-fallback { width: 100%; padding: 1.25rem 0; min-height: auto; }
  .card-wide-body { padding: 1.25rem 1.25rem 1.5rem; }
  .card-wide-header { flex-direction: column; align-items: flex-start; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ===== PROCEDIMENTO TIMELINE ===== */
.procedimento-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

/* Vertical timeline connector line */
.procedimento-timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  z-index: 1;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #f8fafc;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  border: 2px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.step-card:hover {
  transform: translateX(5px) translateY(-2px);
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Boogaloo', cursive;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.step-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.4rem;
}

.step-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.15rem;
  color: var(--dark);
  letter-spacing: 0.5px;
  margin: 0;
}

.step-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 !important;
}

/* Interactive Checkbox */
.step-check-wrapper {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.step-check-wrapper::after {
  content: '✓';
  font-size: 1.1rem;
  font-weight: 900;
  color: transparent;
  transition: all 0.2s ease;
}

.step-card:hover .step-check-wrapper {
  border-color: #94a3b8;
}

/* Completed Step Styling */
.step-card.completed {
  background: #e2e8f0;
  border-color: transparent;
  opacity: 0.75;
  box-shadow: none;
}

.step-card.completed .step-number {
  background: #94a3b8 !important;
  transform: scale(0.9);
}

.step-card.completed .step-text {
  text-decoration: line-through;
  color: #64748b;
}

.step-card.completed .step-title {
  color: #64748b;
}

.step-card.completed .step-check-wrapper {
  background: #10b981;
  border-color: #10b981;
  animation: popIn 0.3s ease;
}

.step-card.completed .step-check-wrapper::after {
  color: #ffffff;
}

@keyframes popIn {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  .procedimento-timeline::before {
    left: 20px;
  }
  .step-card {
    gap: 1rem;
    padding: 1rem;
  }
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .step-check-wrapper {
    width: 28px;
    height: 28px;
  }
}

/* ===== LIBRI SERIE ===== */
.card-wide-serie-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: rgba(255, 61, 139, 0.12);
  color: var(--pink);
}

.dettaglio-serie-container {
  margin-bottom: 3rem;
}

.libro-volumi-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.libro-volume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: white;
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--pink);
}

.libro-volume-card--ingresso {
  border-left-color: var(--yellow);
  background: rgba(255, 208, 0, 0.06);
}

.libro-volume-ingresso-badge {
  display: inline-block;
  font-family: 'Boogaloo', cursive;
  font-size: 0.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: rgba(255, 208, 0, 0.3);
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.libro-volume-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  color: var(--dark);
}

.libro-volume-nota {
  margin: 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.btn-acquista--compact {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.dettaglio-serie-amazon {
  margin: 0 0 0.5rem;
}

/* ===== LIBRI PAGE ===== */
.libri-filters {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin-bottom: 1.5rem;
  padding: 1rem 0 0.75rem;
  background: var(--bg);
}

.libri-filters .filter-bar {
  margin-bottom: 0;
}

.libri-filters #category-filter-bar {
  margin-top: 1rem;
}

.libri-collana-bar {
  margin-bottom: 0;
}

.filter-btn--collana {
  font-size: 1.15rem;
  padding: 0.55rem 1.35rem;
}

.filter-btn--collana.active {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}

.libri-section .card-wide {
  scroll-margin-top: 180px;
}

.libri-section {
  margin-bottom: 3rem;
}

.libri-section-desc {
  margin-top: 0;
  margin-bottom: 1.75rem;
  text-align: center;
}

.libri-section[hidden] {
  display: none;
}

.libri-empty-msg {
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: #888;
  padding: 2rem 1rem;
}

@media (max-width: 600px) {
  .libri-filters {
    top: 56px;
    padding-top: 0.75rem;
  }

  .filter-btn--collana {
    flex: 1 1 45%;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===== PRIVACY PAGE ===== */
.privacy-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.privacy-content section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.privacy-content h2 {
  font-family: 'Boogaloo', cursive;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.privacy-content p,
.privacy-content li {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.privacy-content ul {
  padding-left: 1.25rem;
}

.privacy-content a {
  color: var(--blue);
}

.privacy-reset-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  vertical-align: baseline;
}

.privacy-reset-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .privacy-content {
    padding: 1.5rem;
  }
}

/* ===== MEDIA KIT ===== */
.media-kit-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.media-kit-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.media-kit-lead {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #444;
}

.media-kit-section {
  margin-bottom: 3.5rem;
}

.media-kit-section-desc {
  margin-bottom: 1.75rem;
}

.media-kit-facts {
  background: white;
  border-radius: 24px;
  padding: 1.75rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  line-height: 1.9;
}

.media-kit-facts p {
  margin: 0;
}

.media-kit-facts a {
  color: var(--blue);
}

.media-kit-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.media-kit-audience-grid,
.media-kit-formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.media-kit-card,
.media-kit-format {
  background: white;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.media-kit-card-icon,
.media-kit-format-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.media-kit-card h3,
.media-kit-format h3 {
  font-family: 'Boogaloo', cursive;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.media-kit-card p,
.media-kit-format p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.media-kit-list {
  margin: 0;
  padding-left: 1.2rem;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #555;
}

.media-kit-list li + li {
  margin-top: 0.5rem;
}

.media-kit-placements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.media-kit-placement {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--yellow);
}

.media-kit-placement:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.media-kit-placement strong {
  font-family: 'Boogaloo', cursive;
  font-size: 1.2rem;
}

.media-kit-placement span:last-child {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.45;
}

.media-kit-placement-icon {
  font-size: 1.75rem;
}

.media-kit-placement--home { border-left-color: var(--yellow); }
.media-kit-placement--green { border-left-color: var(--green); }
.media-kit-placement--pink { border-left-color: var(--pink); }
.media-kit-placement--orange { border-left-color: var(--orange); }
.media-kit-placement--teal { border-left-color: var(--teal); }
.media-kit-placement--blue { border-left-color: var(--blue); }
.media-kit-placement--purple { border-left-color: var(--purple); }

.media-kit-values {
  background: var(--dark);
  color: white;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
}

.media-kit-values-title {
  font-family: 'Boogaloo', cursive;
  font-size: 1.75rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.media-kit-values-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  line-height: 1.8;
}

.media-kit-cta {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .media-kit-values {
    padding: 1.5rem;
  }

  .media-kit-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== PAGINAZIONE ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    font-family: 'Boogaloo', cursive;
    font-size: 1rem;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.pagination-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.18);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.pagination-info {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #666;
    min-width: 64px;
    text-align: center;
}

@media (max-width: 480px) {
    .pagination { gap: 0.6rem; }
    .pagination-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
}

