/* ===========================================================
   Start Claims — Landing page
   HTML + CSS + JS puri (nessun framework, nessuna CDN)
   =========================================================== */

/* ---------- Font (Montserrat, self-hosted, variabile) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

:root {
  /* Palette */
  --navy-900: #0a1e33;
  --navy-800: #152b46;
  --navy-700: #1d3a5f;
  --accent: #0eaecb;
  --accent-600: #0b8caa;
  --accent-700: #10708a;

  /* Token tema chiaro */
  --bg: #ffffff;
  --bg-soft: #eef4fb;
  --bg-card: #ffffff;
  --text: #0a1e33;
  --text-soft: #475a73;
  --text-muted: #6b7c93;
  --border: #e2e8f2;
  --border-strong: #cdd9e8;
  --accent-soft: #e7fbff;
  --accent-on-soft: #10708a;
  --navy-section-bg: #0a1e33;
  --navy-section-text: #eef4fb;
  --navy-section-text-soft: #aec7e6;
  --shadow-soft: 0 10px 40px -12px rgba(10, 30, 51, 0.18);
  --shadow-card: 0 4px 24px -8px rgba(10, 30, 51, 0.12);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --header-h: 64px;
  --transition: 0.2s ease;
}

html.dark {
  --bg: #06121f;
  --bg-soft: #0a1e33;
  --bg-card: #0d2338;
  --text: #eef4fb;
  --text-soft: #aec7e6;
  --text-muted: #8aa3c0;
  --border: #1d3a5f;
  --border-strong: #244773;
  --accent-soft: rgba(14, 174, 203, 0.14);
  --accent-on-soft: #67e2f6;
  --navy-section-bg: #061320;
  --navy-section-text: #eef4fb;
  --navy-section-text-soft: #aec7e6;
  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--text-muted)) transparent;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Modern scrollbar — WebKit */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--accent) 38%, var(--bg-soft));
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 100px;
  transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--accent) 62%, var(--bg-soft));
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--accent);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section-narrow { max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}
html.dark .eyebrow { color: var(--accent-on-soft); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 1.05rem; }

.text-accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--accent-600); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--bg-soft); }
.btn-white { background: #fff; color: var(--accent-700); box-shadow: var(--shadow-soft); }
.btn-white:hover { background: #eef4fb; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-soft); transition: color var(--transition); }
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active { font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }

/* Toggle tema flottante (come sito TAG) */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition), border-color var(--transition), color var(--transition), bottom 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle--floating {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}
body.has-cookie-banner .theme-toggle--floating {
  bottom: 140px;
}
.theme-toggle svg { width: 20px; height: 20px; }

/* icone tema: luna in chiaro, sole in scuro */
.icon-sun { display: none; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

/* In dark mode il logo SC diventa bianco */
.nav-logo img,
.mockup-bar span img { transition: filter var(--transition); }
html.dark .nav-logo img,
html.dark .mockup-bar span img { filter: brightness(0) invert(1); }

.menu-toggle { display: none; }

.mobile-menu { display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(12px);
}
.mobile-menu ul { padding: 14px 20px; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 11px 12px; border-radius: var(--radius); font-weight: 500; }
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu a.is-active:not(.btn) { color: var(--accent); background: var(--bg-soft); font-weight: 600; }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-soft), var(--bg));
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-blob--1 { top: -90px; right: -40px; width: 420px; height: 420px; background: rgba(14, 174, 203, 0.28); }
.hero-blob--2 { top: 180px; left: -90px; width: 300px; height: 300px; background: rgba(45, 89, 144, 0.22); }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-on-soft);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badge .dot--light { background: #fff; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 3.8rem); font-weight: 800; margin-top: 16px; }
.hero-sub { margin-top: 22px; max-width: 42ch; font-size: 1.15rem; color: var(--text-soft); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }

.metrics { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 520px; }
.metric dt { font-size: 1.6rem; font-weight: 800; }
.metric dd { margin-top: 4px; font-size: 0.76rem; color: var(--text-muted); }

/* Mockup dashboard */
.mockup {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-dot--r { background: #f87171; }
.mockup-dot--y { background: #fbbf24; }
.mockup-dot--g { background: #34d399; }
.mockup-bar span { margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.mockup-bar span img { width: 16px; height: 16px; }
.mockup-body { padding: 16px; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mockup-stat { border-radius: var(--radius); background: var(--bg-soft); padding: 12px; }
.mockup-stat p:first-child { font-size: 0.7rem; color: var(--text-muted); }
.mockup-stat p:last-child { margin-top: 4px; font-size: 1.25rem; font-weight: 800; }
.mockup-stat--accent { background: var(--accent); }
.mockup-stat--accent p { color: #fff !important; }
.mockup-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mockup-col p { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 8px; }
.mockup-task { height: 54px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); padding: 9px; margin-bottom: 8px; }
.mockup-task .l1 { height: 8px; width: 70%; border-radius: 4px; background: var(--border-strong); }
.mockup-task .l2 { height: 8px; width: 45%; border-radius: 4px; background: var(--border); margin-top: 7px; }
.mockup-task--accent { border-color: rgba(14,174,203,0.45); background: var(--accent-soft); }
.mockup-task--accent .l1 { background: rgba(14,174,203,0.5); }
.mockup-task--accent .l2 { background: rgba(14,174,203,0.3); }

/* ---------- Problema → Soluzione ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ps-grid h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; }
.ps-grid > div > p { margin-top: 16px; color: var(--text-soft); }
.ps-list { margin-top: 24px; display: grid; gap: 16px; }
.ps-list li { display: flex; gap: 12px; }
.ps-mark {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.ps-mark--bad { background: #fee2e2; color: #dc2626; }
.ps-mark--good { background: var(--accent-soft); color: var(--accent-on-soft); }
html.dark .ps-mark--bad { background: rgba(220,38,38,0.18); color: #fca5a5; }
.ps-solution {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.ps-solution h3 { font-size: 1.25rem; font-weight: 700; }
.ps-solution > p { margin-top: 8px; color: var(--text-soft); }

/* ---------- Funzionalità ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-on-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; }
.feature-card p { margin-top: 8px; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Integrazioni / partner ---------- */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin-inline: auto;
  padding: 28px 0;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
}
.partner-logo:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--bg-soft);
}
.partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.partner-logo:hover img { opacity: 0.9; }
html.dark .partner-logo img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.85;
}
html.dark .partner-logo:hover img { opacity: 1; }
.partner-logo img[src*="generali"] { max-height: 52px; }
.partner-logo img[src*="vittoria"] {
  max-height: 40px;
  /* già monocromatico: evita brightness(0) che annulla i dettagli bianchi dello stemma */
  filter: none;
  opacity: 0.6;
}
.partner-logo:hover img[src*="vittoria"] { opacity: 0.9; }
html.dark .partner-logo img[src*="vittoria"] {
  filter: invert(1);
  opacity: 0.85;
}
html.dark .partner-logo:hover img[src*="vittoria"] { opacity: 1; }

/* ---------- Come funziona ---------- */
.how {
  background: var(--bg-soft);
  color: var(--text);
}
.how .section-head h2 { color: var(--text); }
.how .section-head p { color: var(--text-soft); }
.how .eyebrow { color: var(--accent-600); }
html.dark .how .eyebrow { color: var(--accent-on-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.step-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
html.dark .step-num { color: var(--accent-on-soft); }
.step h3 { margin-top: 10px; font-size: 1.08rem; font-weight: 700; color: var(--text); }
.step p { margin-top: 8px; font-size: 0.9rem; color: var(--text-soft); }

/* ---------- SAI / AI ---------- */
.sai-wrap {
  position: relative;
  padding: 2px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 32px -6px color-mix(in srgb, var(--accent) 50%, transparent),
    0 0 64px -12px color-mix(in srgb, #6366f1 30%, transparent);
  animation: sai-glow-pulse 3.5s ease-in-out infinite;
}
.sai-ai-glow {
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 255deg,
    var(--accent) 280deg,
    #6366f1 310deg,
    #a855f7 335deg,
    #22d3ee 350deg,
    var(--accent) 360deg
  );
  animation: sai-glow-spin 5s linear infinite;
  opacity: 0.7;
  z-index: 0;
}
html.dark .sai-ai-glow { opacity: 0.85; }
@keyframes sai-glow-spin { to { transform: rotate(360deg); } }
@keyframes sai-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 32px -6px color-mix(in srgb, var(--accent) 50%, transparent),
      0 0 64px -12px color-mix(in srgb, #6366f1 30%, transparent);
  }
  50% {
    box-shadow:
      0 0 48px -2px color-mix(in srgb, var(--accent) 65%, transparent),
      0 0 88px -8px color-mix(in srgb, #a855f7 35%, transparent);
  }
}
.sai-wrap-inner {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-xl) - 2px);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg));
  padding: 48px;
  overflow: hidden;
}
html.dark .sai-wrap-inner {
  background: var(--bg-soft);
}
.sai-wrap-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, color-mix(in srgb, #6366f1 12%, transparent), transparent 70%);
  pointer-events: none;
}
html.dark .sai-wrap-inner::before { display: none; }
.sai-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sai-grid h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; margin-top: 16px; }
.sai-grid > div > p { margin-top: 16px; color: var(--text-soft); }
.badge--solid { background: var(--accent); color: #fff; }
.badge--solid .dot { background: #fff; }
.sai-list { margin-top: 24px; display: grid; gap: 12px; font-size: 0.95rem; }
.sai-list li { display: flex; align-items: center; gap: 12px; }
.check {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.sai-panel {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.sai-panel-head { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.sai-logo-icon {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
html.dark .sai-logo-icon {
  filter: brightness(0) invert(1);
}
.sai-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg-soft); border-radius: var(--radius); padding: 13px 16px; margin-top: 12px; font-size: 0.9rem; }
.sai-row b { color: var(--accent-on-soft); }
.sai-row .ok { color: #16a34a; }
html.dark .sai-row .ok { color: #4ade80; }
@media (prefers-reduced-motion: reduce) {
  .sai-ai-glow { animation: none; }
  .sai-wrap { animation: none; }
}

/* ---------- Accompagnamento ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.support-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.support-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-on-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.support-icon svg { width: 24px; height: 24px; }
.support-card h3 { font-size: 1.1rem; font-weight: 700; }
.support-card p { margin-top: 8px; font-size: 0.92rem; color: var(--text-soft); }
.support-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

/* ---------- Social proof ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.quote blockquote { color: var(--text-soft); font-style: italic; }
.quote figcaption { margin-top: 16px; font-size: 0.9rem; font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; color: var(--text-muted); }

/* ---------- Prezzi ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.price-card--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-soft); position: relative; }
.price-flag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
}
.price-card h3 { font-size: 1.15rem; font-weight: 700; }
.price-card .price-desc { margin-top: 4px; font-size: 0.88rem; color: var(--text-muted); }
.price-amount { margin-top: 22px; font-size: 2.4rem; font-weight: 800; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-note { margin-top: 6px; font-size: 0.82rem; color: var(--text-muted); }
.price-list { margin-top: 22px; display: grid; gap: 12px; font-size: 0.9rem; color: var(--text-soft); flex: 1; }
.price-list li { display: flex; gap: 8px; }
.price-list .tick { color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.faq { border-top: 1px solid var(--border); }
.faq:first-child { border-top: none; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform var(--transition); }
.faq[open] .faq-icon { transform: rotate(180deg); }
.faq p { padding: 0 20px 20px; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- CTA finale ---------- */
.cta-final { background: var(--accent); padding: 64px 0; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; }
.cta-final p { color: rgba(255,255,255,0.9); margin-top: 12px; font-size: 1.1rem; }
.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.cta-final .btn { margin-top: 0; }
.cta-final-demo {
  margin-top: 18px;
  font-size: 0.95rem;
}
.cta-final-demo a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-final-demo a:hover { color: #fff; }

.hero-demo-link {
  margin-top: 16px;
  font-size: 0.95rem;
}
.hero-demo-link a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-demo-link a:hover { color: var(--accent); }

/* ---------- Form contatti ---------- */
.form {
  margin-top: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-error { margin-top: 6px; font-size: 0.78rem; color: #dc2626; }
.form-error[hidden] { display: none; }
.form-check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text-soft); }
.form-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.form-check a { color: var(--accent-600); text-decoration: underline; font-weight: 500; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 0.9rem; font-weight: 500; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0; }
.footer-brand .nav-logo { font-size: 1rem; }
.footer-brand p { margin-top: 16px; max-width: 30ch; font-size: 0.9rem; color: var(--text-muted); }
.footer-col h3 { font-size: 0.9rem; font-weight: 600; }
.footer-col ul { margin-top: 16px; display: grid; gap: 8px; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-contact > a {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--text-soft);
}
.footer-contact > a:hover { color: var(--accent); }
.footer-phone { margin-top: 14px; }
.footer-phone-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-phone a {
  display: block;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.35;
}
.footer-phone a:hover { color: var(--accent); }
.footer-phone--urgent a { color: var(--accent); }
.phone-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-address {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-bottom a { font-weight: 600; color: var(--text-soft); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 16px;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-inner {
  display: grid;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}
html.dark .cookie-banner-inner { box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.45); }
.cookie-banner-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner-prefs {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.cookie-pref-info { display: grid; gap: 2px; }
.cookie-pref-info strong { font-size: 0.92rem; }
.cookie-pref-info span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.cookie-pref-badge {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.cookie-pref--toggle { cursor: pointer; }
.cookie-pref--toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch {
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background: var(--border-strong);
  position: relative;
  transition: background var(--transition);
}
.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}
.cookie-pref--toggle input:checked + .cookie-switch { background: var(--accent); }
.cookie-pref--toggle input:checked + .cookie-switch::after { transform: translateX(20px); }
.cookie-pref--toggle input:focus-visible + .cookie-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.footer-cookie-btn {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-cookie-btn:hover { color: var(--accent); }
body.has-cookie-banner { padding-bottom: env(safe-area-inset-bottom, 0); }

@media (min-width: 768px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .cookie-banner-prefs { grid-column: 1 / -1; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }
  .hero-grid,
  .ps-grid,
  .sai-grid { grid-template-columns: 1fr; }
  .feature-grid,
  .support-grid,
  .quote-grid,
  .price-grid,
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .feature-grid,
  .support-grid,
  .quote-grid,
  .price-grid,
  .steps,
  .form-row,
  .metrics { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
  .sai-wrap-inner { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; }
  .theme-toggle--floating {
    bottom: 16px;
    left: 16px;
  }
  body.has-cookie-banner .theme-toggle--floating {
    bottom: 120px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cookie-banner { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
