/* ============================================================
   MicroLearn — sito di presentazione
   Brand variables + componenti riusabili
   ============================================================ */

:root {
  /* Brand */
  --navy: #06233F;
  --white: #FFFFFF;
  --magenta: #C507B2;
  --orange: #FBA73B;
  --blue: #116DFF;
  --dark: #020A11;

  /* Scala grigi neutri */
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --gray-200: #dde2ea;
  --gray-300: #c4cbd8;
  --gray-400: #8d96a6;
  --gray-500: #64707e;
  --gray-600: #4a5563;

  /* Accenti semantici */
  --green: #16a34a;
  --red: #dc2626;

  /* Gradienti brand */
  --gradient-cta: linear-gradient(126deg, #C507B2, #FBA73B);
  --gradient-cta-hover: linear-gradient(126deg, #b006a1, #f59a2a);
  --gradient-soft: linear-gradient(126deg, rgba(197,7,178,0.08), rgba(251,167,59,0.08));
  --gradient-navy: linear-gradient(160deg, #06233F 0%, #0a3560 100%);

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Ombre */
  --shadow-sm: 0 1px 3px rgba(6,35,63,0.06), 0 2px 6px rgba(6,35,63,0.04);
  --shadow: 0 2px 8px rgba(6,35,63,0.08), 0 8px 24px rgba(6,35,63,0.06);
  --shadow-lg: 0 8px 24px rgba(6,35,63,0.12), 0 24px 48px rgba(6,35,63,0.08);
  --shadow-cta: 0 6px 20px rgba(197,7,178,0.28);
}

/* ============================================================
   Reset & basi
   ============================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--magenta); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

/* ============================================================
   Tipografia
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--magenta);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--gradient-cta);
}

.highlight {
  background: linear-gradient(126deg, rgba(197,7,178,0.28), rgba(251,167,59,0.32));
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--navy);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.text-magenta { color: var(--magenta); font-weight: 700; }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-500); }

/* ============================================================
   Container & layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section.compact { padding: 56px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.1rem; color: var(--gray-500); }

/* ============================================================
   Bottoni
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197,7,178,0.35);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Topbar / navigazione
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-100);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-cta);
}
.brand-sub {
  font-weight: 500;
  color: var(--gray-500);
  font-size: 14px;
  margin-left: 2px;
  letter-spacing: 0;
}
.footer .brand-sub { color: rgba(255,255,255,0.78); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.nav-menu a:hover { color: var(--magenta); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--navy);
}
.nav-toggle:hover { background: var(--gray-100); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,7,178,0.10), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251,167,59,0.10), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin: 14px 0 22px;
  letter-spacing: -0.025em;
}
.hero h1 .accent {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,0.15); }

/* Mini player nell'hero */
.hero-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}
.hero-mock:hover { transform: rotate(0); }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar .url { margin-left: auto; font-size: 11px; color: var(--gray-500); font-weight: 500; }

.mock-slide {
  padding: 36px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(6,35,63,0.07);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 14px;
}
.mock-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mock-text { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 18px; }
.mock-callout {
  background: linear-gradient(126deg, rgba(197,7,178,0.07), rgba(251,167,59,0.10));
  border-left: 3px solid var(--orange);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark);
}
.mock-callout strong { color: var(--magenta); display: block; margin-bottom: 2px; font-size: 12px; }

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.mock-nav-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
}
.mock-nav-btn.prev { color: var(--navy); border: 1px solid var(--gray-200); background: var(--white); }
.mock-nav-btn.next { color: var(--white); background: var(--gradient-cta); box-shadow: 0 2px 8px rgba(197,7,178,0.25); }
.mock-progress { display: flex; gap: 4px; }
.mock-progress span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-200); }
.mock-progress span.active { background: var(--gradient-cta); width: 18px; border-radius: 4px; height: 8px; }
.mock-progress span.done { background: var(--gray-400); }

/* ============================================================
   Banner urgenza
   ============================================================ */

.urgency {
  background: var(--gradient-navy);
  color: var(--white);
  padding: 28px 0;
}
.urgency-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.urgency-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-cta);
}
.urgency-text {
  flex: 1;
  min-width: 280px;
}
.urgency-text strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--white); }
.urgency-text span { font-size: 14px; color: rgba(255,255,255,0.78); }
.urgency .btn { flex-shrink: 0; }

/* ============================================================
   Problema (3 pain point)
   ============================================================ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--magenta);
}
.pain-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pain-card p { font-size: 15px; color: var(--gray-500); line-height: 1.55; }

/* ============================================================
   Soluzione (3 pilastri)
   ============================================================ */

.solution {
  background: var(--gray-50);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(197,7,178,0.25); }
.pillar-num {
  position: absolute;
  top: -22px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-cta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-cta);
}
.pillar h3 { margin: 16px 0 12px; }
.pillar p { font-size: 15px; color: var(--gray-500); line-height: 1.65; }

/* ============================================================
   Come funziona (timeline 4 step)
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--orange));
  opacity: 0.25;
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-cta);
  border: 4px solid var(--white);
  outline: 1px solid var(--gray-200);
}
.step-num svg { color: var(--white); }
.step h4 { margin-bottom: 8px; color: var(--navy); }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.55; }

/* ============================================================
   Demo mini-player live
   ============================================================ */

.demo-section {
  background: var(--gradient-navy);
  color: var(--white);
}
.demo-section h2, .demo-section .section-head p { color: var(--white); }
.demo-section .section-head p { color: rgba(255,255,255,0.78); }

.demo-player {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-slide {
  min-height: 380px;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--dark);
}
.demo-slide.cover { text-align: center; align-items: center; gap: 18px; }
.demo-slide.cover .badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(6,35,63,0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.demo-slide.cover h3 {
  font-size: 32px;
  color: var(--navy);
  max-width: 540px;
  letter-spacing: -0.015em;
}
.demo-slide.cover .tagline { font-size: 16px; color: var(--gray-500); max-width: 480px; }

.demo-slide .slide-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
  color: var(--navy);
}
.demo-slide .slide-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--gradient-cta);
  border-radius: 2px;
}
.demo-slide p { font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }

.demo-callout {
  background: linear-gradient(126deg, rgba(197,7,178,0.06), rgba(251,167,59,0.10));
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
}
.demo-callout strong { display: block; color: var(--magenta); margin-bottom: 4px; font-size: 13px; }

.demo-quiz-q { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.demo-quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-quiz-opt:hover { border-color: var(--blue); background: rgba(17,109,255,0.04); }
.demo-quiz-opt.selected { border-color: var(--blue); background: rgba(17,109,255,0.07); }
.demo-quiz-opt.correct { border-color: var(--green); background: rgba(22,163,74,0.07); }
.demo-quiz-opt.wrong { border-color: var(--red); background: rgba(220,38,38,0.06); }
.demo-quiz-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  background: var(--white);
}
.demo-quiz-opt.selected .demo-quiz-radio { border-color: var(--blue); background: var(--blue); }
.demo-quiz-opt.correct .demo-quiz-radio { border-color: var(--green); background: var(--green); }
.demo-quiz-opt.wrong .demo-quiz-radio { border-color: var(--red); background: var(--red); }

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.demo-nav-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.demo-nav-btn.prev { background: var(--white); color: var(--navy); border: 1px solid var(--gray-200); }
.demo-nav-btn.prev:hover:not(:disabled) { background: var(--gray-50); }
.demo-nav-btn.prev:disabled { opacity: 0.4; cursor: not-allowed; }
.demo-nav-btn.next { background: var(--gradient-cta); color: var(--white); box-shadow: var(--shadow-cta); }
.demo-nav-btn.next:hover { transform: translateY(-1px); }
.demo-progress { display: flex; gap: 5px; }
.demo-progress span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-200); transition: all 0.2s ease; }
.demo-progress span.done { background: var(--gray-400); }
.demo-progress span.active { background: var(--gradient-cta); width: 24px; height: 9px; border-radius: 5px; }

/* ============================================================
   Per chi (HR / C-Level cards)
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.audience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.audience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-cta);
}
.audience-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.audience-card p { color: var(--gray-500); margin-bottom: 22px; line-height: 1.65; }
.audience-card .who {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--gradient-soft);
  color: var(--magenta);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.audience-card ul {
  margin-bottom: 28px;
}
.audience-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.audience-card ul li:last-child { border-bottom: none; }
.audience-card ul li::before {
  content: '✓';
  color: var(--magenta);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================================
   Funzionalità (grid)
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all 0.2s ease;
}
.feature:hover {
  border-color: rgba(197,7,178,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--magenta);
}
.feature h4 { font-size: 15.5px; margin-bottom: 6px; color: var(--navy); }
.feature p { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

/* ============================================================
   Comparativa competitor (tabella)
   ============================================================ */

.compare {
  background: var(--gray-50);
}
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.compare th {
  font-weight: 700;
  color: var(--navy);
  background: var(--gray-50);
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.compare th.us {
  background: var(--gradient-cta);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}
.compare td:first-child, .compare th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  position: sticky; left: 0;
  z-index: 1;
  border-right: 1px solid var(--gray-100);
}
.compare td.us {
  background: linear-gradient(126deg, rgba(197,7,178,0.07), rgba(251,167,59,0.07));
  font-weight: 700;
  color: var(--navy);
}
.compare .yes { color: var(--green); font-size: 18px; font-weight: 800; }
.compare .no { color: var(--gray-300); font-size: 18px; }
.compare .partial { color: var(--orange); font-size: 13px; font-weight: 600; }

/* ============================================================
   Numeri / KPI
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { font-size: 14px; color: var(--gray-500); line-height: 1.4; }

/* ============================================================
   Testimonianze
   ============================================================ */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  left: 22px;
  font-size: 64px;
  color: var(--magenta);
  opacity: 0.18;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.testimonial-meta strong { display: block; font-size: 14px; color: var(--navy); }
.testimonial-meta span { font-size: 13px; color: var(--gray-500); }

/* ============================================================
   AI Act box
   ============================================================ */

.aiact {
  background: var(--gradient-navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.aiact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(197,7,178,0.30), transparent 65%);
  pointer-events: none;
}
.aiact h2 { color: var(--white); margin-bottom: 18px; position: relative; z-index: 1; }
.aiact p { color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 14px; position: relative; z-index: 1; }
.aiact-eu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.aiact-art {
  background: rgba(0,0,0,0.20);
  border-left: 4px solid var(--orange);
  padding: 22px 24px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.aiact-art h4 { color: var(--orange); margin-bottom: 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.aiact-art p { color: rgba(255,255,255,0.92); font-style: italic; font-size: 15px; margin: 0; }

/* ============================================================
   Prezzi
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.price-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gradient-cta) border-box;
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-cta);
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.price-card .price-tagline { color: var(--gray-500); font-size: 14px; margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .currency { font-size: 24px; font-weight: 700; color: var(--navy); }
.price-amount .num { font-size: 3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.price-amount .per { font-size: 14px; color: var(--gray-500); }
.price-note { font-size: 13px; color: var(--gray-500); margin-bottom: 26px; }
.price-card ul { margin-bottom: 28px; flex: 1; }
.price-card ul li {
  padding: 10px 0;
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--dark);
}
.price-card ul li::before {
  content: '✓';
  color: var(--magenta);
  font-weight: 800;
  flex-shrink: 0;
}
.price-card .btn { width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--white);
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item.open { border-color: rgba(197,7,178,0.35); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  background: none;
}
.faq-q .icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 24px 22px;
}

/* ============================================================
   CTA finale
   ============================================================ */

.cta-final {
  background: var(--gradient-cta);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 65%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.cta-final h2 { color: var(--white); margin-bottom: 14px; }
.cta-final p { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin-bottom: 32px; }
.cta-final .btn-secondary {
  background: var(--white);
  color: var(--magenta);
  border: none;
}
.cta-final .btn-secondary:hover { background: var(--gray-50); transform: translateY(-2px); color: var(--magenta); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer .brand:hover { color: var(--white); }
.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
}
.aibf-info {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 320px;
}
.aibf-info strong {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}
.aibf-info a { color: rgba(255,255,255,0.92); text-decoration: underline; text-underline-offset: 2px; }
.aibf-info a:hover { color: var(--white); }

/* Immagini email (anti-spam) */
.email-img {
  display: inline-block;
  vertical-align: -3px;
  height: 18px;
  width: auto;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.aibf-info .email-img { height: 16px; vertical-align: -3px; }
.footer h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.footer ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
}

/* ============================================================
   Form (demo page)
   ============================================================ */

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.form-wrap h2 { margin-bottom: 8px; }
.form-wrap > p { color: var(--gray-500); margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(17,109,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 22px;
  line-height: 1.55;
}
.form-consent input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
/* Pannello di ringraziamento (post-submit success) */
.form-success {
  display: none;
  padding: 40px 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(22,163,74,0.05) 0%, rgba(251,167,59,0.04) 70%, rgba(197,7,178,0.04) 100%);
  border: 1.5px solid rgba(22,163,74,0.22);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(22,163,74,0.08);
}
.form-success.show {
  display: block;
  animation: successFadeUp 0.5s ease-out;
}
.form-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(22,163,74,0.30);
  animation: successPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.form-success h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.form-success h3 .success-name { color: var(--magenta); }
.form-success-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 14px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.form-success-tip {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-500);
  margin-bottom: 26px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.form-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@keyframes successFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* Quando il form è stato inviato con successo, nascondi form e intro per dare protagonismo al pannello di ringraziamento */
.form-wrap.success > h2,
.form-wrap.success > p:first-of-type,
.form-wrap.success > form { display: none; }

/* ============================================================
   Pagine secondarie (per-hr, per-direzione)
   ============================================================ */

.page-hero {
  background: var(--gray-50);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { max-width: 820px; margin: 0 auto 18px; }
.page-hero p { font-size: 1.15rem; color: var(--gray-500); max-width: 660px; margin: 0 auto; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.benefit {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: all 0.2s ease;
}
.benefit:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--magenta);
  margin-bottom: 18px;
}
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: var(--gray-500); font-size: 15px; line-height: 1.65; }

/* Quote box per pagine deep dive */
.quote-box {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  text-align: center;
  border: 1px solid rgba(197,7,178,0.18);
}
.quote-box .qmark { font-size: 56px; color: var(--magenta); opacity: 0.4; line-height: 1; font-family: Georgia, serif; }
.quote-box .stat-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-cta);
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: var(--shadow-cta);
}
.quote-box .stat-icon svg { color: var(--white); }
.quote-box blockquote {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin: 8px 0 22px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.quote-box cite { font-size: 14px; color: var(--gray-500); font-style: normal; }

/* ============================================================
   Animations / scroll-reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-mock { transform: none; max-width: 540px; margin: 0 auto; }
  .problem-grid, .pillars, .audience-grid, .pricing-grid, .testimonials,
  .benefits-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .aiact { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-card.featured { transform: none; }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .nav-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 22px; gap: 20px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-100); }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-cta { margin-left: 0; width: 100%; }
  .nav-menu .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 24px; }
  .urgency-inner { flex-direction: column; align-items: flex-start; }
  .demo-slide { padding: 32px 24px; }
  .demo-slide.cover h3 { font-size: 24px; }
  .aiact { padding: 32px 24px; }
}
