/* ==========================================================================
   SCUOLA MATERNA & NIDO "LA MONGOLFIERA"
   Design System: Caldo, rassicurante, organico, giocoso ma rigoroso
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #fbf8f3;
  --bg-card: #ffffff;
  --bg-subtle: #f5efe6;
  --bg-soft-blue: #ebf5fb;
  --bg-soft-green: #edf7f2;
  --bg-soft-yellow: #fef9e7;
  
  --coral-main: #ea5a3f;
  --coral-hover: #d2482e;
  --coral-light: #fbeee9;

  --amber-main: #f59e0b;
  --amber-light: #fef3c7;

  --green-main: #2d6a4f;
  --green-light: #d8f3dc;

  --blue-main: #2b6cb0;
  --blue-light: #e1effe;

  --text-dark: #231f1c;
  --text-muted: #6b635c;
  --text-soft: #9c938a;
  --border-light: rgba(70, 50, 35, 0.1);
  --border-subtle: rgba(70, 50, 35, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(50, 30, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(50, 30, 20, 0.08);
  --shadow-lg: 0 16px 40px rgba(50, 30, 20, 0.12);
  --shadow-balloon: 0 20px 40px rgba(234, 90, 63, 0.18);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Fredoka", "Quicksand", "Nunito", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   CONTAINER & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-md {
  max-width: 820px;
}

.text-center {
  text-align: center;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--coral-light);
  color: var(--coral-main);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-header-center .section-badge {
  margin-bottom: 14px;
}

.section-header-center .section-title {
  margin-bottom: 16px;
}

.section-header-center .section-sub {
  margin: 0 auto;
}

/* ==========================================================================
   PASTELLI A CERA: Tratti di evidenziazione morbidi disegnati a mano
   ========================================================================== */
.crayon-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.crayon-mark::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 12%;
  height: 44%;
  z-index: -1;
  border-radius: 6px 14px 8px 16px;
  opacity: 0.6;
  transform: rotate(-0.8deg) skewX(-2deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.crayon-mark::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 6%;
  height: 14px;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.crayon-mark:hover::before {
  transform: rotate(0.6deg) scale(1.03);
  opacity: 0.8;
}

/* Colori Pastello */
.crayon-yellow::before { background: #fef08a; }
.crayon-yellow::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 45 4, 110 13, 198 7 C 150 14, 70 8, 4 11' stroke='%23eab308' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.75'/%3E%3C/svg%3E");
}

.crayon-amber::before { background: #fed7aa; }
.crayon-amber::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 50 12, 130 5, 196 10 C 140 6, 65 14, 6 9' stroke='%23f97316' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.7'/%3E%3C/svg%3E");
}

.crayon-coral::before { background: #fecdd3; }
.crayon-coral::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C 55 5, 125 14, 197 8 C 145 12, 75 6, 4 12' stroke='%23f43f5e' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.65'/%3E%3C/svg%3E");
}

.crayon-green::before { background: #bbf7d0; }
.crayon-green::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 60 6, 120 12, 196 7 C 140 13, 80 5, 5 10' stroke='%2316a34a' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.7'/%3E%3C/svg%3E");
}

.crayon-blue::before { background: #bae6fd; }
.crayon-blue::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 50 13, 135 6, 197 10 C 135 7, 70 14, 5 8' stroke='%230284c7' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.65'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--coral-main);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 90, 63, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.top-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(50, 30, 20, 0.08);
  border-radius: var(--radius-full);
  padding: 8px 12px 8px 20px;
  transition: transform 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-balloon {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 4px rgba(234, 90, 63, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}

.brand-text small {
  font-size: 11px;
  color: var(--coral-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--coral-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-subtle);
  position: relative;
  border: none;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }

.burger[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 28, 0.5);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.drawer-content a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 6px 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================= */

.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: 130px;
  padding-bottom: 70px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-sky-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sun-glow {
  position: absolute;
  top: 40px;
  right: 10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 218, 106, 0.45) 0%, rgba(254, 218, 106, 0) 70%);
}

.cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 100px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 16px rgba(160, 190, 210, 0.15));
  animation: floatCloud linear infinite;
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
}

.cloud-1 {
  width: 140px;
  height: 40px;
  top: 15%;
  left: 5%;
  animation-duration: 35s;
}
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 20px; }
.cloud-1::after { width: 60px; height: 60px; top: -35px; left: 60px; }

.cloud-2 {
  width: 190px;
  height: 52px;
  top: 35%;
  right: 5%;
  animation-duration: 48s;
  animation-delay: -15s;
}
.cloud-2::before { width: 65px; height: 65px; top: -32px; left: 30px; }
.cloud-2::after { width: 80px; height: 80px; top: -45px; left: 80px; }

.cloud-3 {
  width: 120px;
  height: 35px;
  top: 70%;
  left: 20%;
  opacity: 0.5;
  animation-duration: 42s;
  animation-delay: -8s;
}

@keyframes floatCloud {
  0% { transform: translateX(-120px); }
  100% { transform: translateX(calc(100vw + 120px)); }
}

/* Floating interactive balloon in hero */
.floating-balloon-wrapper {
  position: absolute;
  top: 18%;
  right: 12%;
  z-index: 10;
  pointer-events: auto;
  cursor: grab;
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.3, 1);
  animation: gentleBob 6s ease-in-out infinite alternate;
}

.floating-balloon-wrapper:active {
  cursor: grabbing;
}

.balloon-body {
  filter: drop-shadow(0 18px 30px rgba(234, 90, 63, 0.25));
}

@keyframes gentleBob {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(1.5deg); }
  100% { transform: translateY(6px) rotate(-1.5deg); }
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-main);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.hero-title em {
  font-style: normal;
  color: var(--coral-main);
  background: linear-gradient(135deg, #ea5a3f 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-sub strong {
  color: var(--text-dark);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--coral-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-num small {
  font-size: 16px;
  font-weight: 700;
}

.stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   SECTION 1: ROUTINE SCENARIO (INTERACTIVE JOURNEY)
   ========================================================================== */

.routine-section {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.routine-scrubber-box {
  margin-bottom: 36px;
}

.timeline-bar-wrapper {
  position: relative;
  background: var(--bg-subtle);
  height: 6px;
  border-radius: var(--radius-full);
  margin: 30px 20px 55px;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--coral-main);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  padding: 0;
}

.step-bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #d1c7bc;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.timeline-step-btn:hover .step-bubble {
  border-color: var(--coral-main);
  transform: scale(1.2);
}

.timeline-step-btn.active .step-bubble {
  background: var(--coral-main);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(234, 90, 63, 0.3);
  transform: scale(1.3);
}

.step-label {
  position: absolute;
  top: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-step-btn.active .step-label {
  color: var(--coral-main);
  font-weight: 800;
}

/* Routine Viewer Display */
.routine-viewer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.routine-card {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.routine-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.routine-badge {
  background: var(--coral-main);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.routine-phase {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.routine-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.routine-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.routine-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.routine-highlights .tag {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.routine-quote {
  font-style: italic;
  font-size: 14px;
  color: var(--coral-main);
  border-left: 3px solid var(--coral-main);
  padding-left: 14px;
  line-height: 1.5;
}

/* Routine Visual Box */
.routine-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
}

.routine-visual-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  transition: background 0.6s ease;
}

.routine-visual-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scene-icon-wrapper {
  font-size: 64px;
  position: absolute;
  top: 30px;
  right: 30px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  user-select: none;
}

.scene-balloon-altitude {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 12px 20px rgba(234, 90, 63, 0.3));
}

/* ==========================================================================
   SECTION 2: METODO & PEDAGOGIA
   ========================================================================== */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.icon-green { background: var(--green-light); color: var(--green-main); }
.icon-coral { background: var(--coral-light); color: var(--coral-main); }
.icon-amber { background: var(--amber-light); color: var(--amber-main); }
.icon-blue  { background: var(--blue-light);  color: var(--blue-main); }

.method-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.method-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.method-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--border-light);
  padding-top: 16px;
}

.method-list li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding-left: 20px;
}

.method-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--coral-main);
  font-size: 12px;
}

/* ==========================================================================
   SECTION 3: GLI SPAZI
   ========================================================================== */

.space-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--coral-main);
  color: var(--coral-main);
}

.filter-btn.active {
  background: var(--coral-main);
  color: #ffffff;
  border-color: var(--coral-main);
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.space-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.space-thumb {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}

.thumb-atelier {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.thumb-parco {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.thumb-nanna {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.thumb-mensa {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.space-tag {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
}

.space-body {
  padding: 24px;
}

.space-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.space-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.space-detail {
  font-size: 12px;
  color: var(--text-soft);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.space-detail span {
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 4: SIMULATORE TRASPARENZA RETTE & BONUS NIDO
   ========================================================================== */

.fee-section {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.fee-calculator-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.calc-inputs {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.calc-group {
  margin-bottom: 28px;
}

.calc-group:last-child {
  margin-bottom: 0;
}

.calc-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-value-pill {
  background: var(--coral-light);
  color: var(--coral-main);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
}

.calc-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card.active {
  border-color: var(--coral-main);
  background: #fffafa;
}

.radio-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.radio-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.calc-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-chip {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.time-chip strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.time-chip span {
  font-size: 11px;
  color: var(--text-muted);
}

.time-chip.active {
  border-color: var(--coral-main);
  background: #fffafa;
}

.time-chip.active strong {
  color: var(--coral-main);
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: #d6ccc2;
  border-radius: var(--radius-full);
  outline: none;
  accent-color: var(--coral-main);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Receipt Card */
.calc-summary-card {
  background: #ffffff;
  border: 2px dashed #e0d7cd;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.receipt-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.receipt-year {
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.r-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.r-price {
  font-weight: 700;
  color: var(--text-dark);
}

.r-highlight-green {
  color: var(--green-main);
  font-weight: 700;
}

.r-highlight-green .r-price {
  color: var(--green-main);
}

.r-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.r-total-row {
  align-items: flex-end;
}

.r-total-row strong {
  font-size: 16px;
  color: var(--text-dark);
  display: block;
}

.r-total-row small {
  font-size: 11px;
  color: var(--text-muted);
}

.r-final-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--coral-main);
  line-height: 1;
}

.r-final-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.receipt-inclusions {
  background: var(--bg-soft-green);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.receipt-inclusions h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--green-main);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.receipt-inclusions ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt-inclusions li {
  font-size: 12px;
  color: #1b4332;
  font-weight: 600;
}

/* ==========================================================================
   SECTION 5: VISITA GUIDATA & TICKET GENERATOR
   ========================================================================== */

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.visit-info {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.visit-info .section-badge {
  margin-bottom: 14px;
}

.visit-info .section-title {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.visit-info .section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

.visit-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.v-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.v-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.v-feat strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.v-feat p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.visit-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.visit-form h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral-main);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 90, 63, 0.15);
}

/* Boarding Pass Ticket */
.boarding-pass-ticket {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fdba74;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: ticketPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ticketPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #f97316;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-icon {
  font-size: 28px;
}

.ticket-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.ticket-brand small {
  font-size: 12px;
  color: #ea580c;
  font-weight: 700;
  text-transform: uppercase;
}

.ticket-status-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.t-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.t-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.t-val.highlight {
  color: #ea580c;
}

.ticket-footer-strip {
  border-top: 1px dashed #f97316;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.ticket-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #c2410c;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px dashed #fdba74;
}

.ticket-footer-strip small {
  font-size: 11px;
  color: #9a3412;
}

/* ==========================================================================
   SECTION 6: FAQ
   ========================================================================== */

.faq-section {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(234, 90, 63, 0.3);
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--coral-main);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-answer strong {
  color: var(--text-dark);
}

/* ==========================================================================
   FOOTER (Sfondo scuro elegante ad alto contrasto per massima leggibilità)
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 10;
  background: #1e1b19;
  color: #e6ded8;
  padding: 70px 0 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.f-icon {
  font-size: 24px;
}

.f-brand strong {
  font-size: 20px;
  color: #ffffff;
}

.brand-col p {
  font-size: 14px;
  color: #a89f97;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.f-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #f5efe6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  color: #a89f97;
  line-height: 1.7;
}

.footer-col strong {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  font-size: 12px;
  color: #7d756d;
}

/* ==========================================================================
   DISEGNO DEI BAMBINI SULLO SFONDO (Si compone scrollando)
   ========================================================================== */

/* Texture cartoncino artistico */
.paper-texture-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Panorama fisso con il grande disegno a pastelli */
.child-drawing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.52;
  will-change: transform;
}

.child-canvas-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Linea a pastello colorato disegnata da un bambino */
.cd-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.8px;
  will-change: stroke-dashoffset;
}

/* Tavolozza pastelli classici */
.cd-yellow      { stroke: #eab308; }
.cd-orange      { stroke: #f97316; }
.cd-red         { stroke: #ef4444; }
.cd-pink        { stroke: #ec4899; }
.cd-green       { stroke: #22c55e; }
.cd-green-dark  { stroke: #15803d; stroke-width: 4px; }
.cd-green-light { stroke: #86efac; }
.cd-blue        { stroke: #0284c7; }
.cd-purple      { stroke: #a855f7; }
.cd-brown       { stroke: #854d0e; stroke-width: 3.8px; }
.cd-slate       { stroke: #64748b; stroke-width: 2.2px; }
.cd-dark        { stroke: #27272a; stroke-width: 2.8px; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 960px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .routine-viewer,
  .fee-calculator-box,
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .method-grid,
  .spaces-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .calc-summary-card {
    position: static;
  }

  .floating-balloon-wrapper {
    right: 5%;
    top: 10%;
    transform: scale(0.75);
  }

  .child-drawing-bg {
    opacity: 0.32;
  }
}

@media (max-width: 640px) {
  .child-drawing-bg {
    opacity: 0.28;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .calc-chips {
    grid-template-columns: 1fr;
  }

  .calc-radios {
    grid-template-columns: 1fr;
  }

  .form-row,
  .ticket-row {
    grid-template-columns: 1fr;
  }

  .routine-card {
    padding: 24px;
  }
}


/* ==========================================================================
   TELEFONO: correzioni di layout (colonne che non si restringevano, intestazione, pillole, filtri)
   ========================================================================== */
html { overflow-x: clip; }
.routine-viewer > *, .fee-calculator-box > *, .visit-layout > *, .method-grid > *, .spaces-grid > *, .footer-grid > *,
.visit-info, .visit-form-wrapper, .routine-card, .calc-summary-card { min-width: 0; }
@media (max-width: 960px) {
  .routine-viewer, .fee-calculator-box, .visit-layout, .method-grid, .spaces-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-info, .visit-form-wrapper, .routine-card { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .top-nav { padding: 0 12px; top: 12px; }
  .nav-container { padding: 6px 8px 6px 14px; gap: 8px; }
  .nav-brand { gap: 8px; min-width: 0; }
  .brand-text strong { font-size: 15px; white-space: nowrap; }
  .brand-text small { display: none; }
  .nav-actions { gap: 8px; flex: none; }
  .nav-actions .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .nav-actions .btn svg { display: none; }
  .routine-card { padding: 20px; }
  .routine-meta { flex-wrap: wrap; gap: 8px 12px; align-items: center; }
  .routine-badge { white-space: nowrap; padding: 6px 14px; }
  .routine-phase { flex: 1 1 100%; }
  .space-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filter-btn { padding: 10px 8px; font-size: 13px; line-height: 1.25; text-align: center; }
  .visit-info, .visit-form-wrapper { padding: 22px; }
  .visit-form-wrapper input, .visit-form-wrapper select, .visit-form-wrapper textarea, .visit-form-wrapper .btn { width: 100%; max-width: 100%; box-sizing: border-box; }
  .timeline-bar-wrapper { margin: 26px 12px 60px; }
  .step-label { font-size: 11px; }
}
