/* === Meetweb · Sorveglianza Sanitaria === */
:root {
  /* Palette deck — blu medicale, verde clinico, ink scale */
  --blue: oklch(0.38 0.11 240);          /* Blu medicale · primario UI/CTA */
  --blue-hover: oklch(0.30 0.09 240);
  --blue-soft: oklch(0.95 0.025 240);    /* tonalità sezioni soft */
  --blue-50:  oklch(0.98 0.012 240);

  --green: oklch(0.58 0.10 165);         /* Verde clinico · accento */
  --green-hover: oklch(0.48 0.10 165);
  --green-soft: oklch(0.94 0.04 165);

  /* Mantengo l'arancio solo come accento di richiamo per CTA orange */
  --orange: oklch(0.74 0.16 55);
  --orange-hover: oklch(0.66 0.17 55);

  --black: #000000;
  --white: #ffffff;

  --ink-950: oklch(0.18 0.01 250);       /* sezioni dark */
  --ink-900: oklch(0.24 0.01 250);
  --ink-700: oklch(0.42 0.012 250);
  --ink-500: oklch(0.55 0.012 250);
  --ink-400: oklch(0.68 0.010 250);
  --ink-300: oklch(0.82 0.008 250);
  --ink-200: oklch(0.90 0.006 250);
  --ink-100: oklch(0.95 0.004 250);
  --ink-50:  oklch(0.985 0.003 250);     /* background alternato */

  --bg: #ffffff;
  --bg-soft: var(--ink-50);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,13,26,.05), 0 0 0 1px rgba(11,13,26,.04);
  --shadow-md: 0 8px 28px -10px rgba(11,13,26,.12), 0 0 0 1px rgba(11,13,26,.05);
  --shadow-lg: 0 28px 70px -28px rgba(11,13,26,.22), 0 0 0 1px rgba(11,13,26,.05);
  --shadow-blue: 0 16px 40px -16px rgba(28,45,231,.35);

  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Figtree", -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: inherit;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.032em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.018em; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }

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

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease, color .15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-orange { background: var(--green); color: #fff; }
.btn-orange:hover { background: var(--green-hover); }
.btn-secondary { background: #fff; color: var(--ink-900); box-shadow: inset 0 0 0 1.5px var(--ink-200); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink-700); padding: 10px 14px; font-weight: 600; }
.btn-ghost:hover { color: var(--blue); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-arrow::after { content: "→"; transition: transform .2s ease; display: inline-block; font-weight: 600; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* === Common === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 2px;
  display: inline-block;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-hero::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 0 4px oklch(0.58 0.10 165 / .25);
}

.muted { color: var(--ink-500); font-weight: 400; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-700); font-weight: 400; }

.section { padding: 112px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-soft { background: var(--ink-50); }
.section-dark { background: var(--ink-950); color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(30, 166, 102, 0.38);
  animation: glowPulse 1.8s ease-in-out infinite;
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 166, 102, 0.38); }
  70% { box-shadow: 0 0 0 10px rgba(30, 166, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 166, 102, 0); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-scrolled { border-color: var(--ink-200); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { flex-shrink: 0; }
.header-logo img { height: 52px; width: auto; }

/* === Sorvex wordmark === */
.sorvex-logo {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink-950);
}
.sorvex-letter {
  position: relative;
  display: inline-block;
  color: transparent;          /* hide the real "o" glyph but keep its width */
  /* small visual tightening around the icon */
  margin: 0 0.04em;
}
.sorvex-o {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.82em;
  height: 0.82em;
  transform: translate(-50%, -50%);
  color: var(--green);
  line-height: 0;
}
.sorvex-o svg { display: block; width: 100%; height: 100%; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }
.nav-link.is-active { color: var(--blue); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { padding: 10px 16px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  background: var(--ink-100);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  z-index: 49;
  padding: 8px 0;
  box-shadow: 0 12px 30px -12px rgba(11,13,26,.18);
  animation: mobileNavIn .2s ease;
}
@keyframes mobileNavIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-nav .container { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; padding-bottom: 12px; }
.mobile-nav .nav-link {
  padding: 14px 14px;
  font-size: 15px;
  text-align: left;
  border-radius: var(--r-sm);
  width: 100%;
}
.mobile-nav .nav-link:hover { background: var(--ink-50); }

@media (max-width: 1100px) {
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 540px) {
  .header-actions .btn-secondary { display: none; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 96px 0 64px;
  background: linear-gradient(180deg, var(--ink-50) 0%, #fff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(28,45,231,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  position: relative;
}
.hero-content { max-width: 720px; }
.hero h1 { margin-top: 24px; }
.hero h1 .accent { color: var(--blue); }
.hero p.lead { margin-top: 20px; max-width: 600px; }
.hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-microline {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--ink-500);
  align-items: center;
}
.hero-microline .dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.hero-microline .dot::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* === Sticky form (desktop) === */
.sticky-form {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-200);
}
.sticky-form h3 { font-size: 20px; }
.sticky-form .helper { color: var(--ink-500); font-size: 14px; margin-top: 6px; }
.sticky-form form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.sticky-form .privacy-note { font-size: 12px; color: var(--ink-500); margin-top: 6px; text-align: center; font-weight: 400; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-700); font-weight: 500; }
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink-200);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,45,231,.15);
}
.input.is-error, .textarea.is-error { border-color: #dc2626; }
.input.is-error:focus, .textarea.is-error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.field-error { font-size: 12px; color: #dc2626; font-weight: 500; }
.textarea { min-height: 110px; resize: vertical; }

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 400;
  line-height: 1.5;
}
.checkbox-row input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }
.checkbox-row a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.checkbox-row.is-error { color: #dc2626; }

/* Mobile floating CTA */
.mobile-cta-fab {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 40;
}
.mobile-cta-fab .btn { width: 100%; padding: 16px; font-size: 16px; }
@media (max-width: 1024px) {
  .sticky-form-wrap { display: none; }
  .mobile-cta-fab { display: block; }
  body { padding-bottom: 80px; }
}

/* Mobile sticky form overlay */
.mobile-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11,13,26,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .2s ease;
}
.mobile-form-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .25s cubic-bezier(.2,.8,.2,1);
}
.mobile-form-sheet .close-x { float: right; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* === Benefits grid === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .25s ease, color .25s ease;
}
.benefit-card:hover .benefit-icon { background: var(--blue); color: #fff; }
.benefit-card h3 { font-size: 19px; }
.benefit-card p { color: var(--ink-700); margin-top: 8px; font-size: 15px; line-height: 1.55; font-weight: 400; }

@media (max-width: 880px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .benefits-grid { grid-template-columns: 1fr; } }

/* === In arrivo === */
.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.coming-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.coming-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
}
.coming-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(28,45,231,.16) 0%, rgba(28,45,231,0) 72%);
  pointer-events: none;
}
.coming-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(28,45,231,.08);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.coming-card h3 { margin-top: 16px; font-size: 21px; }
.coming-card p { margin-top: 10px; color: var(--ink-700); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 960px) { .coming-grid { grid-template-columns: 1fr; } }

/* === Evidence + Video === */
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.evidence-card {
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.evidence-card .stats-list { margin-bottom: 32px; }
.evidence-footer {
  margin-top: auto;
  padding-top: 28px;
  position: relative;
  z-index: 1;
}
.evidence-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.86);
}
.evidence-chip svg { color: var(--green); }
.evidence-quote {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255,255,255,.94);
  position: relative;
  padding-left: 22px;
}
.evidence-quote-mark {
  position: absolute;
  left: 0; top: -8px;
  font-size: 36px;
  line-height: 1;
  color: var(--green);
  font-family: Georgia, serif;
}
.evidence-quote-attr {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.evidence-card::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, oklch(0.58 0.10 165 / .55), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.evidence-card h2 { color: #fff; max-width: 320px; }
.evidence-card .sub { color: rgba(255,255,255,.6); margin-top: 12px; font-size: 15px; max-width: 360px; }
.stats-list { margin-top: 32px; display: flex; flex-direction: column; position: relative; }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.stat-item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.stat-num {
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green);
  line-height: 1;
}
.stat-label { margin-top: 0; font-size: 14.5px; color: rgba(255,255,255,.78); font-weight: 400; text-align: center; max-width: 80%; line-height: 1.35; }

.video-card {
  background: linear-gradient(135deg, var(--blue) 0%, oklch(0.46 0.13 240) 100%);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.video-card::before {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: oklch(0.58 0.10 165 / .35);
  filter: blur(60px);
}
.video-card h2 { color: #fff; }
.video-card .video-stage--embed {
  position: relative;
  flex: 1;
  min-height: 320px;
  margin-top: 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  align-self: center;
  width: 100%;
}
.video-card .video-stage--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border-radius: var(--r-lg);
  background: rgba(0,0,0,.25);
  border: 1px dashed rgba(255,255,255,.3);
  min-height: 240px;
  text-align: center;
  padding: 24px;
}
.video-card .play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -10px oklch(0.58 0.10 165 / .55);
  transition: transform .2s ease;
  cursor: pointer;
  border: 0;
}
.video-card .play-btn:hover { transform: scale(1.05); }
.video-card .placeholder {
  position: absolute;
  bottom: 18px;
  left: 18px; right: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.video-card .video-cap { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 16px; font-weight: 400; }

@media (max-width: 1024px) { .evidence-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .stat-label { max-width: 100%; }
}

/* === FIT === */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
.fit-pill {
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 22px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  transition: all .18s ease;
  color: var(--ink-900);
  position: relative;
  line-height: 1.3;
}
.fit-pill:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.fit-pill .fit-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--ink-300);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .18s ease;
}
.fit-pill .fit-check svg { opacity: 0; transform: scale(.7); transition: all .18s ease; }
.fit-pill.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: #064e2c;
}
.fit-pill.is-selected .fit-check {
  background: var(--green);
  border-color: var(--green);
}
.fit-pill.is-selected .fit-check svg { opacity: 1; transform: scale(1); color: #fff; }

.fit-cta { display: flex; justify-content: center; margin-top: 36px; }
.fit-counter { font-size: 14px; color: var(--ink-500); text-align: center; margin-top: 16px; font-weight: 500; }

@media (max-width: 880px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .fit-grid { grid-template-columns: 1fr; } }

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,13,26,.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 540px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.2,.8,.2,1);
  margin: auto;
}
@keyframes modalIn { from { transform: translateY(20px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.workflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px -4px rgba(28,45,231,.45);
  transition: background .15s ease, transform .15s ease;
  z-index: 1;
}
.workflow-nav-btn:hover { background: var(--blue-hover); transform: translateY(-50%) scale(1.08); }
.workflow-nav-btn--prev { left: -22px; }
.workflow-nav-btn--next { right: -22px; }
@media (max-width: 800px) { .workflow-nav-btn { display: none; } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }
.modal h3 { font-size: 24px; margin-bottom: 8px; }
.modal .modal-sub { color: var(--ink-500); margin-bottom: 22px; font-size: 15px; font-weight: 400; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .modal-row { grid-template-columns: 1fr; } }

.modal-success {
  text-align: center;
  padding: 24px 8px;
}
.modal-success .success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-success h3 { font-size: 22px; }
.modal-success p { margin-top: 10px; color: var(--ink-500); font-weight: 400; }

/* === Workflow === */
.workflow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.workflow-track::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--blue-soft);
  background-image: linear-gradient(90deg, var(--blue) 50%, transparent 50%);
  background-size: 14px 2px;
  z-index: 0;
}
.workflow-step {
  background: var(--blue-soft);
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.workflow-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  overflow: hidden;
}
.workflow-mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.workflow-step:hover .workflow-mockup img { transform: scale(1.04); }
.workflow-step-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.workflow-track--with-mockups .workflow-step { padding: 0; }
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  z-index: 1;
}
.workflow-step:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.workflow-step:hover .step-num { background: #fff; color: var(--blue); }
.workflow-step:hover .step-text { color: rgba(255,255,255,.92); }
.workflow-step:hover .step-arrow { color: var(--green); }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all .2s ease;
}
.workflow-step h3 { font-size: 18px; color: inherit; }
.workflow-step .step-text { color: var(--ink-700); margin-top: 8px; font-size: 14px; line-height: 1.5; font-weight: 400; transition: color .2s ease; }
.workflow-step .step-arrow {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: color .2s ease;
}

@media (max-width: 1024px) {
  .workflow-track { grid-template-columns: 1fr; gap: 12px; }
  .workflow-track::before { display: none; }
}

/* === FAQ === */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.is-open { border-color: var(--blue); box-shadow: 0 4px 16px -4px rgba(28,45,231,.15); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  background: transparent;
}
.faq-q:hover { color: var(--blue); }
.faq-toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-toggle { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.2,.8,.2,1);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-700); font-size: 15.5px; line-height: 1.65; font-weight: 400; }

/* === Multi-step form === */
.ms-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px;
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 640px) { .ms-form-wrap { padding: 28px 22px; } }

.ms-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.ms-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--r-pill);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
  transition: all .2s ease;
}
.ms-step-pill.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.ms-step-pill.is-done {
  background: var(--green-soft);
  border-color: var(--green-soft);
  color: var(--green);
}
.ms-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(255,255,255,.2);
}
.ms-step-pill:not(.is-active):not(.is-done) .ms-step-num {
  background: #fff;
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
}
.ms-step-pill.is-done .ms-step-num { background: var(--green); color: #fff; }

.ms-step { animation: msIn .25s ease; }
@keyframes msIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ms-step-title { font-size: 26px; margin-bottom: 8px; letter-spacing: -0.015em; }
.ms-step-sub { color: var(--ink-500); margin-bottom: 24px; font-size: 15.5px; font-weight: 400; line-height: 1.55; }

.ms-radio-list { display: grid; gap: 10px; }
.ms-radio-list--compact { gap: 8px; }
.ms-radio {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  background: #fff;
  position: relative;
}
.ms-radio:hover { border-color: var(--blue); background: var(--blue-50); }
.ms-radio.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px oklch(0.58 0.10 165 / .18);
}
.ms-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ms-radio-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink-300);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin-top: 2px;
  transition: border-color .15s ease;
}
.ms-radio-mark span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform .15s ease;
}
.ms-radio.is-selected .ms-radio-mark { border-color: var(--green); }
.ms-radio.is-selected .ms-radio-mark span { transform: scale(1); }
.ms-radio-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ms-radio-label { font-weight: 600; font-size: 15.5px; color: var(--ink-950); line-height: 1.35; }
.ms-radio-sub { color: var(--ink-500); font-size: 13.5px; font-weight: 400; line-height: 1.45; }

.ms-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* === Final form === */
.final-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--ink-200);
}
.final-form-wrap form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } .final-form-wrap { padding: 32px 24px; } .ms-form-wrap { padding: 24px 18px; } .ms-step-title { font-size: 22px; } }

.success-banner {
  background: var(--green-soft);
  color: #064e2c;
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #86efac;
}
.success-banner svg { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.success-banner h4 { color: #064e2c; }
.success-banner p { margin-top: 4px; color: #064e2c; opacity: .85; font-weight: 400; }

/* === Footer === */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--ink-200);
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img { height: 46px; width: auto; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 400;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--blue); }
.footer-cookie-btn { color: var(--ink-500); font-size: 14px; font-weight: 400; transition: color .15s ease; }
.footer-cookie-btn:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
  font-size: 13px;
  color: var(--ink-400);
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Per chi è (audience) === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.audience-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.audience-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.audience-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.audience-card h3 { font-size: 22px; margin-bottom: 10px; }
.audience-card > p { color: var(--ink-700); font-size: 15.5px; line-height: 1.55; font-weight: 400; }
.audience-points {
  list-style: none;
  padding: 18px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--ink-100);
  display: grid;
  gap: 10px;
}
.audience-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.audience-points .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
@media (max-width: 768px) { .audience-grid { grid-template-columns: 1fr; } }

.not-for {
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.not-for-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.not-for h3 { color: #fff; font-size: 26px; }
.not-for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.not-for-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255,255,255,.78);
  font-weight: 400;
  line-height: 1.5;
}
.not-for-x {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: -1px;
}
@media (max-width: 768px) { .not-for { grid-template-columns: 1fr; padding: 28px; } }

/* === Sticky CTA bottom === */
.sticky-cta-bottom {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  max-width: calc(100vw - 32px);
  width: 720px;
}
.sticky-cta-bottom.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta-inner {
  background: var(--ink-950);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 24px 60px -20px rgba(11,13,26,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.sticky-cta-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  min-width: 0;
}
.sticky-cta-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: stickyFade .3s ease;
}
@keyframes stickyFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sticky-cta-bottom .btn { padding: 11px 18px; font-size: 14px; flex-shrink: 0; }
.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  position: relative;
}
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: .6;
  animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 1024px) {
  /* avoid overlap with mobile FAB */
  .sticky-cta-bottom { display: none; }
}

/* === Differenziatori (4 angoli) === */
.angles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.angle-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--ink-200);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.angle-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-md); }
.angle-num {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.angle-card h3 { font-size: 20px; margin-bottom: 10px; }
.angle-card p { color: var(--ink-700); font-size: 15px; line-height: 1.55; font-weight: 400; margin-top: 8px; }
.angle-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.angle-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}
.angle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
@media (max-width: 1024px) { .angles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .angles-grid { grid-template-columns: 1fr; } }

/* Loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Body lock for modal */
body.modal-open { overflow: hidden; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100vw - 32px);
  max-width: 680px;
  animation: modalIn .3s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner-inner {
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 24px 60px -16px rgba(11,13,26,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.cookie-banner-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-300);
}
.cookie-banner-text strong { color: #fff; }
.cookie-banner-text a { color: var(--ink-300); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn-secondary {
  color: var(--ink-300);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  padding: 9px 16px;
  white-space: nowrap;
}
.cookie-btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.cookie-btn-primary { font-size: 13px; padding: 9px 16px; white-space: nowrap; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-secondary, .cookie-btn-primary { flex: 1; text-align: center; justify-content: center; }
}
