/* ============================================================
LAB TECNOLOGICI — style.css
Redesign: Educational Premium Light
Designer: Senior Staff — giugno 2026
============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --orange:        #FF6B35;
  --orange-dark:   #E05525;
  --orange-light:  #FFF3EE;
  --orange-mid:    #FFE8DC;
  
  /* UI neutrals */
  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;
  
  /* Text */
  --text:          #0F172A;
  --text-soft:     #475569;
  --text-muted:    #94A3B8;
  
  /* Borders */
  --border:        #E2E8F0;
  --border-mid:    #CBD5E1;
  
  /* Semantic */
  --success:       #16A34A;
  --success-bg:    #F0FDF4;
  --success-border:#BBF7D0;
  --warning:       #D97706;
  --warning-bg:    #FFFBEB;
  --error:         #DC2626;
  
  /* Blue accent (secondary) */
  --blue:          #2563EB;
  --blue-light:    #EFF6FF;
  
  /* Radius */
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-full:9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 1px 4px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10), 0 3px 8px rgba(15,23,42,.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.12), 0 6px 12px rgba(15,23,42,.06);
  
  /* Transitions */
  --t-fast: 0.15s cubic-bezier(.4,0,.2,1);
  --t:      0.25s cubic-bezier(.4,0,.2,1);
  --t-slow: 0.4s  cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 72px;
}
body {
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: 68px; /* header fisso desktop */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

/* ── FAB WHATSAPP ── */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--t);
  text-decoration: none;
  cursor: pointer;
}
.fab-whatsapp { background: #25D366; color: white; }
.fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fab::after { display: none; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow var(--t);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header.hidden { transform: translateY(-100%); }
.header .container { display: flex; justify-content: space-between; align-items: center; }

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.logo-container:hover { opacity: 0.8; }
.logo-img {
  height: 96px;
  width: auto;
  margin-bottom: -38px;
  margin-top: 4px;
  filter: none;
  transition: var(--t);
}
.logo-text-group { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.logo-badges { display: flex; gap: 5px; align-items: center; }
.logo-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.logo-badge--robotica { background: #FAECE7; color: #993C1D; }
.logo-badge--coding   { background: #E6F1FB; color: #185FA5; }
.logo-orange { color: var(--orange); }
.logo-text {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Nav */
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color var(--t-fast);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ── MOBILE MENU ── */
.menu-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--t-fast);
}
.menu-toggle:hover { background: var(--border); }
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--text); stroke-width: 2; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }
.nav-overlay a {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--t-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--r);
}
.nav-overlay a:hover { color: var(--orange); background: var(--orange-light); }

/* ── HERO ── */
.hero {
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='700' viewBox='0 0 1600 700'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.16)' stroke-width='2.4'%3E%3Cg transform='translate(60,50) rotate(-8)'%3E%3Cpath d='M6,0 H20 l4,-5 h16 l4,5 H74 Q80,0 80,6 V24 Q80,30 74,30 H50 l-4,5 h-16 l-4,-5 H6 Q0,30 0,24 V6 Q0,0 6,0 Z'/%3E%3C/g%3E%3Cg transform='translate(40,580) rotate(5) scale(0.9)'%3E%3Cpath d='M6,0 H20 l4,-5 h16 l4,5 H74 Q80,0 80,6 V24 Q80,30 74,30 H50 l-4,5 h-16 l-4,-5 H6 Q0,30 0,24 V6 Q0,0 6,0 Z'/%3E%3C/g%3E%3Cg transform='translate(-20,320) rotate(90) scale(0.6)'%3E%3Cpath d='M6,0 H20 l4,-5 h16 l4,5 H74 Q80,0 80,6 V24 Q80,30 74,30 H50 l-4,5 h-16 l-4,-5 H6 Q0,30 0,24 V6 Q0,0 6,0 Z'/%3E%3C/g%3E%3Cg transform='translate(1480,70) rotate(10) scale(0.85)'%3E%3Cpath d='M6,0 H20 l4,-5 h16 l4,5 H74 Q80,0 80,6 V24 Q80,30 74,30 H50 l-4,5 h-16 l-4,-5 H6 Q0,30 0,24 V6 Q0,0 6,0 Z'/%3E%3C/g%3E%3Cg transform='translate(1500,560) rotate(-6)'%3E%3Cpath d='M6,0 H20 l4,-5 h16 l4,5 H74 Q80,0 80,6 V24 Q80,30 74,30 H50 l-4,5 h-16 l-4,-5 H6 Q0,30 0,24 V6 Q0,0 6,0 Z'/%3E%3C/g%3E%3Cg transform='translate(1620,350) rotate(90) scale(0.5)'%3E%3Cpath d='M6,0 H20 l4,-5 h16 l4,5 H74 Q80,0 80,6 V24 Q80,30 74,30 H50 l-4,5 h-16 l-4,-5 H6 Q0,30 0,24 V6 Q0,0 6,0 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.07), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.05), transparent 70%);
  pointer-events: none;
}
.hero-left-image {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 1;
}
.hero-left-image img { width: 100%; height: 100%; object-fit: contain; }
.container.hero-content-container {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.3);
}
.hero h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hero h2 span[style*="gradientFlow"],
.hero h2 span[style*="gradient"] {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #FFD166 !important;
  animation: none !important;
  background-size: unset !important;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  font-weight: 400;
}
.hero-m-header, .hero-m-body, .hero-m-foto { display: none; }
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-cta-split {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1.5px solid white;
  text-decoration: none;
  transition: var(--t);
  background: white;
  box-shadow: var(--shadow-sm);
}
.hero-cta-split:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero-cta-left {
  background: var(--orange);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  transition: background var(--t-fast);
}
.hero-cta-split:hover .hero-cta-left { background: var(--orange-dark); }
.hero-cta-right {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-left: 1.5px solid rgba(255,107,53,.25);
}
.hero-features {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-full);
  padding: 7px 14px;
  color: white;
  transition: var(--t-fast);
}
.hero-feature-pill:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.5); }
.hero-feature-pill svg { flex-shrink: 0; color: white; }
.hero-pill-label { font-size: 0.8rem; font-weight: 700; line-height: 1.2; color: white; }
.hero-pill-sub { font-size: 0.7rem; color: rgba(255,255,255,.75); line-height: 1.2; }
.hero-right-stepper {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.75rem;
  position: relative;
  z-index: 1;
}
.hero-stepper-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  width: 100%;
  box-shadow: var(--shadow);
}
.hero-stepper-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1.4rem;
}
.hero-step { display: flex; gap: 1rem; align-items: flex-start; }
.hero-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.hero-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-step-line {
  width: 2px; flex: 1; min-height: 18px;
  background: var(--border);
  margin: 4px 0;
  border-radius: 2px;
}
.hero-step:last-child .hero-step-line { display: none; }
.hero-step-body { padding: 2px 0 14px; }
.hero-step-label { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.hero-step-desc { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }

/* ── SEZIONI GENERALI ── */
.section { padding: 5.5rem 0; }
.bg-light { background: var(--surface-2); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── IL PROGETTO ── */
.section-il-progetto {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--surface);
  position: relative;
}
.progetto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.progetto-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.progetto-title span { color: var(--orange); }
.progetto-lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.progetto-highlights { display: flex; flex-direction: column; gap: 0.85rem; }
.progetto-hl {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  transition: var(--t-fast);
  box-shadow: var(--shadow-xs);
}
.progetto-hl:hover {
  background: var(--orange-light);
  border-color: rgba(255,107,53,.3);
  border-left-color: var(--orange);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.progetto-hl-num {
  width: 28px; height: 28px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.progetto-hl strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 3px; font-weight: 700; }
.progetto-hl p { margin: 0; font-size: 0.875rem; color: var(--text-soft); line-height: 1.5; }
.progetto-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t);
}
.progetto-img:hover { transform: scale(1.015); }
.progetto-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 3rem; }

/* ── SCUOLE ── */
.collab-header { text-align: center; margin-bottom: 2.5rem; }
.collab-header h3 { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 0.6rem; }
.collab-header p { font-size: 1rem; color: var(--text-soft); line-height: 1.65; max-width: 540px; margin: 0 auto; }
.collab-header a { color: var(--orange); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(255,107,53,.3); transition: border-color var(--t-fast); }
.collab-header a:hover { border-color: var(--orange); }
.scuole-grid { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 3rem; }
.scuola-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  min-width: 130px;
  transition: var(--t);
  box-shadow: var(--shadow-xs);
}
.scuola-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scuola-card img { width: 60px; height: 60px; object-fit: contain; }
.scuola-card span { font-size: 0.875rem; font-weight: 700; color: var(--text); text-align: center; }
.scuola-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--success-border);
}
.cta-scuole {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-scuole::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.cta-scuole-left { position: relative; z-index: 1; }
.cta-scuole-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-light);
  border: 1px solid rgba(255,107,53,.2);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}
.cta-scuole-left h4 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 0.6rem; line-height: 1.3; }
.cta-scuole-left p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.65; max-width: 440px; margin-bottom: 1.1rem; }
.cta-scuole-points { display: flex; flex-direction: column; gap: 5px; }
.cta-scuole-point { display: flex; align-items: center; gap: 7px; font-size: 0.875rem; color: var(--text-soft); font-weight: 500; }
.cta-scuole-point svg { flex-shrink: 0; color: var(--orange); }
.cta-scuole-right { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-cta-scuole {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-full);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--t-fast);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,107,53,.3);
}
.btn-cta-scuole:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,107,53,.35); }
.cta-scuole-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* ── STRUMENTI ── */
#strumenti { background: var(--surface); color: var(--text); padding-top: 5.5rem; padding-bottom: 5.5rem; position: relative; overflow: hidden; }
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: var(--t);
  padding: 2rem;
  position: relative;
}
.tool-card:hover { border-color: rgba(255,107,53,.35); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tool-icon-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.lego-color    { background: #FFF3C4; color: #92400E; border: 1px solid #FDE68A; }
.roberta-color { background: #DBEAFE; color: #1E3A8A; border: 1px solid #BFDBFE; }
.arduino-color { background: #CCFBF1; color: #065F46; border: 1px solid #99F6E4; }
.microbit-color{ background: #FEF3C7; color: #78350F; border: 1px solid #FDE68A; }
.tool-image { width: 100%; height: 130px; object-fit: contain; margin-bottom: 1.4rem; }
.tool-title { color: var(--text); font-size: 1.2rem; font-weight: 800; margin-bottom: 0.85rem; }
.tool-details {
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}
.tool-details p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.6; margin: 0; }
.tool-details strong { color: var(--text); }

/* ── CORSI ── */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.course-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.course-card.corso-aperto { border-color: rgba(255,107,53,.3); box-shadow: 0 0 0 1px rgba(255,107,53,.15), var(--shadow-sm); }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(255,107,53,.4); }
.course-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.course-card.corso-aperto .course-badge { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.course-card.corso-chiuso .course-badge { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.course-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 0.9rem; line-height: 1.3; }
.course-meta { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.meta-item {
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--surface-2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  font-weight: 600;
  border: 1px solid var(--border);
}
.meta-price { background: var(--orange-light); color: var(--orange); font-weight: 800; border-color: rgba(255,107,53,.25); }
.course-description { color: var(--text-soft); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.5rem; flex-grow: 1; }
.btn-course {
  width: fit-content !important;
  margin: 0 auto !important;
  padding: 0.8rem 1.75rem !important;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--orange);
  color: white;
  border-radius: var(--r);
  text-decoration: none;
  text-align: center;
  transition: var(--t-fast);
  border: none;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 6px rgba(255,107,53,.25);
}
.btn-course:hover:not(:disabled) { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,107,53,.35); }
.btn-course:disabled { background: var(--surface-2) !important; color: var(--text-muted) !important; cursor: not-allowed !important; box-shadow: none !important; border: 1px solid var(--border) !important; }

/* ─ FAQ ── */
#faq { background: var(--surface); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-fast);
}
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: rgba(255,107,53,.3); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--t-fast);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--surface-2); }
.faq-list details[open] summary { background: var(--orange-light); }
.faq-list summary h3 { font-size: 0.975rem; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--t-fast);
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; color: var(--orange); }
.faq-list details p { padding: 0 1.4rem 1.25rem; color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; }
.faq-list details p a { color: var(--orange); font-weight: 600; text-decoration: none; }
.faq-list details p a:hover { text-decoration: underline; }
.faq-list details p strong { color: var(--text); }

/* ── CONTATTI SLIM ── */
.bit-contact-slim { background: var(--surface); padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bit-bar-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bit-bar-column {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: var(--t-fast);
}
.bit-bar-column:hover { background: var(--surface-2); }
.bit-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.orange-tint { background: var(--orange-light); color: var(--orange); }
.blue-tint   { background: var(--blue-light);   color: var(--blue);   }
.green-tint  { background: var(--success-bg);    color: var(--success);}
.purple-tint { background: #F5F3FF;              color: #7C3AED;       }
.bit-text { display: flex; flex-direction: column; }
.bit-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; line-height: 1; margin-bottom: 2px; }
.bit-value { font-size: 0.875rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ── FOOTER ── */
.footer { background: var(--text); color: rgba(255,255,255,.6); padding: 1.5rem 0; font-size: 0.85rem; }
.footer a { color: var(--orange); text-decoration: underline; }
.footer a:hover { color: #FFB899; }

/* ============================================================
   MODAL ISCRIZIONI (Aggiornato per Web3Forms)
============================================================ */
.enrollment-modal {
  display: none; /* JS imposta 'flex' per aprirlo */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.enrollment-modal-overlay { position: absolute; inset: 0; z-index: -1; cursor: pointer; }
.enrollment-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  animation: slideInUp 0.32s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideInUp { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.enrollment-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-fast);
  color: var(--text-soft);
}
.enrollment-modal-close:hover { background: var(--surface-2); transform: rotate(90deg); color: var(--text); border-color: var(--border-mid); }

.enrollment-modal-header { text-align: center; margin-bottom: 1.75rem; }
.enrollment-modal-header h2 { font-size: 1.65rem; color: var(--text); margin-bottom: 0.35rem; font-weight: 800; }
.enrollment-modal-header p { color: var(--text-soft); font-size: 0.9rem; }

/* Messaggi di stato */
.enrollment-message {
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
  border-left: 4px solid;
  animation: fadeUp 0.3s ease;
}
.enrollment-message.show { display: block; }
.enrollment-message.error-message { background: #FEF2F2; border-color: var(--error); }
.enrollment-message.error-message strong { color: var(--error); display: block; margin-bottom: 0.25rem; font-size: 1.05rem; }
.enrollment-message.error-message p { color: #B91C1C; margin: 0; }

/* Success Card Fullscreen */
#enrollmentSuccessMessage {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.enrollment-success-card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--success-border);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  animation: successPop 0.4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes successPop { from { opacity: 0; transform: scale(0.75) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.enrollment-success-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 0.75rem; display: block; }
.enrollment-success-card strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 0.6rem; }
#enrollmentSuccessText { color: var(--text-soft); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1.5rem; }
.enrollment-success-close {
  display: inline-block;
  background: var(--success);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 2rem;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: var(--t-fast);
}
.enrollment-success-close:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22,163,74,.3); }

/* Form Styling */
.enrollment-form { display: flex; flex-direction: column; gap: 0; }
.enrollment-form-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.enrollment-form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.enrollment-form-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.enrollment-form-group { margin-bottom: 1rem; }
.enrollment-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.enrollment-form-group input,
.enrollment-form-group select,
.enrollment-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--t-fast);
  color: var(--text);
  background: var(--surface);
}
.enrollment-form-group input:focus,
.enrollment-form-group select:focus,
.enrollment-form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
/* Evidenzia il campo email come nello screenshot */
.enrollment-form-group input[name="email"] {
  border-color: var(--orange);
  background: #fff5f0;
}
.enrollment-form-group textarea { resize: vertical; min-height: 80px; }

.enrollment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Box placeholder per selezione corso */
.course-placeholder-box {
  grid-column: 1 / -1;
  padding: 1.25rem;
  background: var(--surface-2);
  border-radius: var(--r);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  border: 1px dashed var(--border-mid);
  line-height: 1.5;
}

/* Settimane Robogrest */
.robogrest-weeks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.week-option { position: relative; }
.week-option input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}
.week-option span {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--t-fast);
  line-height: 1.3;
  background: var(--surface);
  cursor: pointer;
  box-sizing: border-box;
}
.week-option span small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}
.week-option input:checked + span {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange-dark);
  box-shadow: 0 0 0 1px var(--orange);
}
.week-option input:checked + span small { color: var(--orange); }
.week-option:hover span { border-color: rgba(255,107,53,.4); transform: translateY(-1px); }

/* Checkbox Privacy */
.enrollment-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.enrollment-form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--orange);
}
.enrollment-form-checkbox label {
  margin: 0;
  font-weight: 500;
  color: var(--text-soft);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.5;
}
.enrollment-form-checkbox a { color: var(--orange); text-decoration: none; font-weight: 700; }
.enrollment-form-checkbox a:hover { text-decoration: underline; }

/* Submit Button */
.enrollment-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-fast);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(255,107,53,.25);
}
.enrollment-submit-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,107,53,.35);
}
.enrollment-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.enrollment-info-box {
  background: var(--orange-light);
  border: 1px solid rgba(255,107,53,.25);
  padding: 0.9rem 1rem;
  border-radius: var(--r);
  font-size: 0.84rem;
  color: var(--orange);
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}
.enrollment-info-box a { color: var(--orange); font-weight: 800; text-decoration: none; }
.enrollment-info-box a:hover { text-decoration: underline; }

/* ─ ANIMAZIONI BASE ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientFlow { 0%,100%{background-position:0} 50%{background-position:100%} }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── DESKTOP LAYOUT (769px+) ── */
@media (min-width: 769px) {
  .hero { display: grid; grid-template-columns: 1fr 2fr 1fr; padding: 0; min-height: 72vh; align-items: center; }
  .hero-right-stepper { display: flex; }
  .hero-left-image { display: block; }
}

/* ── RESPONSIVE 1024px ── */
@media (max-width: 1024px) {
  .bit-bar-wrapper { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE 768px ── */
@media (max-width: 768px) {
  body { padding-top: 64px; }
  .menu-toggle { display: flex; }
  .header { height: 64px; }
  .header .container { flex-direction: row; justify-content: space-between; align-items: center; }
  .header-right, .nav { display: none; }
  .logo-img { height: 80px; margin-bottom: -30px; }
  .logo-text { font-size: 1.1rem; }
  
  .hero { flex-direction: column; padding: 0; min-height: auto; gap: 0; background: var(--surface); display: flex; }
  .hero::before, .hero::after { display: none; }
  .hero-left-image { display: none; }
  .hero-right-stepper { display: flex; width: 100%; padding: 0 16px 24px; background: var(--surface); }
  .hero-stepper-box { width: 100%; border-radius: var(--r-lg); }
  .hero-features, .hero-eyebrow, .hero-title, .hero-actions { display: none; }
  .hero p:not(.hero-m-subtitle) { display: none; }
  .hero-content-container { padding: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  
  .hero-m-header { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--orange); padding: 28px 20px; text-align: center; color: white; width: 100%; gap: 8px; }
  .hero-m-badge { display: inline-block; background: rgba(255,255,255,.2); color: white; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.3); }
  .hero-m-title { font-size: 1.65rem; font-weight: 800; line-height: 1.18; color: white; }
  .hero-m-title em { font-style: normal; color: #FFD166; }
  .hero-m-subtitle { font-size: 0.92rem; color: rgba(255,255,255,.88); }
  .hero-m-body { display: flex; flex-direction: column; align-items: center; background: var(--surface); padding: 20px 20px 24px; width: 100%; gap: 12px; }
  .hero-m-chips { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: center; width: 100%; }
  .hero-m-chip { font-size: 12px; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); padding: 5px 12px; font-weight: 600; white-space: nowrap; }
  .hero-m-cta { display: block; width: 100%; padding: 0.9rem; background: var(--orange); color: white; border-radius: var(--r-full); font-size: 0.95rem; font-weight: 700; text-align: center; text-decoration: none; box-shadow: 0 2px 8px rgba(255,107,53,.3); }
  .hero-m-skip { display: block; width: 100%; text-align: center; font-size: 0.84rem; color: var(--text-muted); text-decoration: underline; font-weight: 500; }
  .hero-m-foto { display: block; width: calc(100% - 32px); margin: 0 16px 16px; height: 160px; object-fit: cover; border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); }
  
  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 1.75rem; }
  .progetto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-scuole { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.8rem; }
  .btn-cta-scuole { width: 100%; justify-content: center; }
  .tools-grid, .courses-grid { grid-template-columns: 1fr; }
  .fab-container { bottom: 16px; right: 16px; }
  .fab { width: 50px; height: 50px; }
  .bit-bar-wrapper { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── RESPONSIVE 550px ── */
@media (max-width: 550px) {
  .hero-m-title { font-size: 1.4rem; }
  .section-header h2 { font-size: 1.5rem; }
  .scuole-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .scuola-card { min-width: unset; width: 100%; padding: 0.85rem; }
  .bit-bar-wrapper { grid-template-columns: 1fr; }
  
  /* Modal Mobile */
  .enrollment-modal { padding: 0; align-items: flex-end; }
  .enrollment-modal-content { 
    border-radius: var(--r-2xl) var(--r-2xl) 0 0; 
    max-height: 95vh; 
    padding: 1.5rem 1.2rem; 
    margin-top: auto; 
    animation: slideUpMobile 0.3s ease;
  }
  @keyframes slideUpMobile { from { transform: translateY(100%); } to { transform: translateY(0); } }
  
  .enrollment-form-row { grid-template-columns: 1fr; }
  .robogrest-weeks-grid { grid-template-columns: 1fr; } /* Settimane a colonna singola su mobile */
  .enrollment-modal-header h2 { font-size: 1.4rem; }
}

/* ── ACCESSIBILITY ── */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
