:root {
  --bg: #0b1020;
  --bg-alt: #0f172a;
  --panel: #0c1226;
  --text: #e5e7eb;
  --muted: #a1a8b3;
  --primary: #4f46e5;
  --primary-2: #22d3ee;
  --accent: #38bdf8;
  --link: #7dd3fc;
  --link-hover: #bae6fd;
  --success: #10b981;
  --danger: #ef4444;
  --ring: rgba(79, 70, 229, 0.4);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0f1e 100%);
  color: var(--text);
}
html { scroll-behavior: smooth; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: var(--primary); color: #fff; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0; z-index: 40;
  backdrop-filter: saturate(120%) blur(8px);
  background: rgba(10, 15, 30, 0.6);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand-text { font-size: 18px; }
.logo-circle { width: 18px; height: 18px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 24px rgba(56,189,248,0.35); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; position: relative; }
.nav-link:hover { color: #fff; }
.nav-link.nav-link--active { color: #fff; }
.nav-link.nav-link--active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 2px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 28px rgba(56,189,248,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cta:active { transform: translateY(0); filter: brightness(0.98); box-shadow: 0 6px 18px rgba(56,189,248,0.22); }
.cta--small { padding: 10px 14px; font-size: 14px; }
.cta--pulse { animation: pulseShadow 2.4s ease-in-out infinite; }
.micro-cta { color: var(--accent); text-decoration: none; font-weight: 600; }
.micro-cta:hover { text-decoration: underline; }

/* Link globali migliorati */
a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(125,211,252,0.6); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--link-hover); text-decoration-color: rgba(186,230,253,0.9); text-decoration-thickness: 2px; }
a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-radius: 6px; }

.section { padding: 64px 0; }
.section--alt { background: radial-gradient(1000px 600px at 80% -10%, rgba(79,70,229,0.12), transparent 50%); }
.h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 0 0 14px; }
.h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.h3 { font-size: 20px; margin: 0 0 6px; }
.h4 { font-size: 18px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); margin: 0 0 18px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.hero { position: relative; overflow: hidden; }
.gradient-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(79,70,229,0.25), transparent 60%),
    radial-gradient(600px 300px at 90% 20%, rgba(56,189,248,0.25), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,0.7), rgba(15,23,42,0.9));
  background-size: 120% 120%;
  animation: gradientMove 18s ease-in-out infinite alternate;
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(34,211,238,0.14); color: #bfefff; font-weight: 600; font-size: 12px; border: 1px solid rgba(56,189,248,0.25); }
.badge::before { content: "✨"; }
.text-gradient { background: linear-gradient(135deg, #c4b5fd, #93c5fd 60%, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.trust-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 0; margin: 20px 0 0; list-style: none; }
.trust-points li { background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.icon { color: #f4f4f5; opacity: 0.9; }

.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.stat { background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: 12px; padding: 14px; text-align: center; }
.stat-number { font-weight: 700; font-size: 22px; }
.stat-label { color: var(--muted); font-size: 12px; }
.bullets { padding-left: 16px; }
.bullets li { margin: 8px 0; }

.grid { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(4, 1fr); }
.feature { background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--radius); padding: 16px; }
.feature { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.35); box-shadow: 0 12px 30px rgba(56,189,248,0.08); }
.feature-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(79,70,229,0.18); box-shadow: inset 0 0 0 1px rgba(79,70,229,0.22); margin-bottom: 8px; }

.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(3,1fr); }
.steps li { display: flex; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--radius); padding: 16px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.steps li:hover { transform: translateY(-3px); border-color: rgba(56,189,248,0.35); box-shadow: 0 10px 26px rgba(56,189,248,0.07); }
.step-number { width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; font-weight: 700; }

.testimonials { grid-template-columns: repeat(3, 1fr); }
.testimonial { background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--radius); padding: 16px; margin: 0; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.testimonial:hover { transform: translateY(-3px); border-color: rgba(56,189,248,0.35); box-shadow: 0 10px 26px rgba(56,189,248,0.07); }
.testimonial p { margin: 0 0 8px; }
.testimonial cite { color: var(--muted); font-style: normal; }

.faq { background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▸"; float: right; transition: transform .25s ease; opacity: .85; }
.faq[open] summary::after { transform: rotate(90deg); }
.faq-a { color: var(--muted); margin-top: 8px; }
.faq[open] .faq-a { animation: faqOpen .22s ease-out; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.booking .booking-form, .booking .booking-widget { background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); border-radius: var(--radius); padding: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.form-row .field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; color: var(--muted); }
input, select {
  background: #0b1226; color: var(--text); border: 1px solid rgba(148,163,184,0.18);
  border-radius: 10px; padding: 12px 12px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; }
.error { color: var(--danger); font-size: 12px; min-height: 16px; }

/* Video spot */
.video-wrapper { position: relative; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(148,163,184,0.12); }
.video-wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.video-wrapper iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster { background: #0b1226 center/cover no-repeat; border: 0; cursor: pointer; display: block; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0.2), rgba(2,6,23,0.45)); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 999px; background: radial-gradient( circle at 30% 30%, rgba(56,189,248,0.85), rgba(56,189,248,0.55) ); box-shadow: 0 10px 30px rgba(56,189,248,0.25); }
.video-play::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); width: 0; height: 0; border-left: 16px solid #0b1226; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video-wrapper:hover .video-play { transform: translate(-50%, -50%) scale(1.05); transition: transform .2s ease; }
.video-note { color: var(--muted); margin-top: 10px; }
.video-poster[disabled] { cursor: not-allowed; filter: grayscale(0.2) brightness(0.9); }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.calendly-placeholder { min-height: 480px; display: grid; place-items: center; border: 1px dashed rgba(148,163,184,0.2); border-radius: var(--radius); }
.placeholder-box { display: grid; place-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 999px; border: 3px solid rgba(148,163,184,0.28); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { border-top: 1px solid rgba(148,163,184,0.08); padding: 28px 0; background: rgba(12,18,38,0.7); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.footer-nav { display: flex; gap: 12px; }
.brand--footer .logo-circle { width: 14px; height: 14px; }

/* Sezione loghi/partner */
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }
.logo-card { height: 54px; display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .3px; text-transform: uppercase; border-radius: 12px; border: 1px dashed rgba(148,163,184,0.25); background: rgba(255,255,255,0.02); }

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

/* Header dinamico */
.site-header.scrolled .header-inner { padding: 10px 0; }
.site-header.scrolled { background: rgba(10, 15, 30, 0.75); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.inview { opacity: 1; transform: none; }

/* Stat cards hover */
.stat { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.stat:hover { transform: translateY(-3px); border-color: rgba(56,189,248,0.35); box-shadow: 0 10px 24px rgba(56,189,248,0.07); }

@keyframes pulseShadow { 0%, 100% { box-shadow: 0 8px 28px rgba(56,189,248,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);} 50% { box-shadow: 0 14px 40px rgba(56,189,248,0.38), inset 0 0 0 1px rgba(255,255,255,0.10);} }
@keyframes gradientMove { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}

/* Riduzione movimento per accessibilità */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
}