/* =========================================================================
   Web DL · SigmaCore — foglio di stile unico
   Base scura, azzurro + grigio-azzurro (come il gestionale).
   Effetti di comparsa allo scorrimento: assets/js/main.js (classi .reveal, .zoom, .scrub-text).
   ========================================================================= */

/* Font del brand: Montserrat (licenza OFL, assets/fonts/OFL-Montserrat.txt), ospitato in locale */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-wght.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("../fonts/montserrat-latin-ext-wght.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;
}

/* Palette del brand SigmaCore:
   Deep Navy #0B132B · Sigma Blue #2563EB · Light Blue #60A5FA · Light Gray #E5E7EB
   I toni intermedi sono mescolanze di questi quattro colori. */
:root {
  --navy: #0B132B;
  --sigma-blue: #2563EB;
  --light-blue: #60A5FA;
  --light-gray: #E5E7EB;

  --bg: #0B132B;                  /* Deep Navy */
  --bg-2: #08101F;                /* Deep Navy più scuro, per le sezioni alterne */
  --surface: #131B33;             /* Deep Navy + 5% Light Gray */
  --surface-2: #1A2239;           /* Deep Navy + 8% Light Gray */
  --border: rgba(229, 231, 235, .10);
  --border-strong: rgba(229, 231, 235, .18);
  --text: #E5E7EB;                /* Light Gray */
  --text-muted: #A4A7B1;          /* Light Gray al 70% sul navy: 7:1 */
  --text-dim: #838898;            /* Light Gray al 55% sul navy: 5:1 */
  --accent: #60A5FA;              /* Light Blue: testi, link, etichette (7:1 sul navy) */
  --accent-soft: rgba(96, 165, 250, .12);
  --steel: #A4A7B1;
  --button: #2563EB;              /* Sigma Blue: pulsanti, con testo bianco (5:1) */
  --on-accent: #ffffff;
  --amber: #f5b544;               /* solo per «attende conferma» */
  --focus: #60A5FA;
  --ph-bg: #2b2408;
  --ph-border: #c9a21d;
  --ph-text: #ffe39a;

  --radius: 24px;
  --radius-sm: 12px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.07; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 650; color: var(--text); }
::selection { background: rgba(96, 165, 250, .35); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--button); color: var(--on-accent); padding: .6em 1em; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 880px; }
@media (min-width: 700px) { .container { padding: 0 32px; } }

.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-alt { background: var(--bg-2); }
.section-tight { padding: 64px 0; }

/* Testo con sfumatura, come i titoli delle pagine prodotto */
.grad { background: linear-gradient(180deg, #ffffff 0%, #E5E7EB 55%, #A4A7B1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-accent { background: linear-gradient(100deg, #93c1fb 0%, #60A5FA 45%, #2563EB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Etichetta monospazio, come nel gestionale */
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}
.eyebrow::before { content: "> "; color: var(--steel); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.45; color: var(--text-muted); max-width: 40ch; font-weight: 450; letter-spacing: -0.01em; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead, .center.lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: 56px; }
.h3 { font-size: 1.12rem; letter-spacing: -0.015em; }

/* ---------- Segnaposto visibili ---------- */
.ph {
  background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-border);
  border-radius: 4px; padding: 0 .35em; font-family: var(--mono); font-size: .85em; font-weight: 500;
}
.ph-block {
  background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-border);
  border-radius: var(--radius-sm); padding: 18px 22px; font-family: var(--mono); font-size: .9rem;
}
.ph-block p:last-child { margin-bottom: 0; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1.02rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--button); color: var(--on-accent); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
.btn-primary:hover { background: #3a73ee; box-shadow: 0 0 32px rgba(37, 99, 235, .45); }
.btn-secondary { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-secondary:hover { border-color: var(--steel); }
.link-more { font-weight: 550; color: var(--accent); white-space: nowrap; }
.link-more::after { content: " ›"; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 32px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 43, .78);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand svg { width: 96px; height: auto; display: block; }
/* Logo in versione monocromatica chiara per il fondo scuro */
.logo-ink, .logo-accent { fill: var(--light-gray); }
.logo-fixed { fill: var(--bg); }

/* Logo SigmaCore (barra in alto e marchio del prodotto) */
.brand-sigma { gap: 10px; text-decoration: none; }
.brand-sigma:hover { text-decoration: none; }
.sigma-logo, .brand .sigma-logo { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 6px rgba(37, 99, 235, .6)); }
.brand-word { font-family: "Montserrat", var(--font); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; color: var(--light-gray); line-height: 1; }
.brand-word span { color: var(--sigma-blue); font-weight: 500; }
.hero-logo .brand-word span { color: var(--sigma-blue); }

/* Versione monocromatica: marchi piccoli e pannelli dimostrativi, senza bagliore */
.sigma-logo.mono { filter: none; }
.mock-mark { width: 22px; height: auto; flex: none; opacity: .9; }

/* Occhio piccolo nella barra in alto */
.header-eye { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 14px; min-width: 0; }
.header-eye canvas { width: 44px; height: 44px; flex: none; }
.header-eye-label { font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); white-space: nowrap; transition: color .6s; }
@media (max-width: 420px) { .header-eye-label { display: none; } }
@media (min-width: 960px) and (max-width: 1480px) { .header-eye-label { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: .88rem; letter-spacing: .01em; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 959px) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(11, 19, 43, .98); border-bottom: 1px solid var(--border); padding: 8px 16px 24px; }
  .no-js .site-nav { position: static; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.15rem; color: var(--text); }
  .site-nav .nav-cta { margin-top: 18px; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 30px; }
  .site-nav .btn { min-height: 34px; padding: .35em 1em; font-size: .85rem; color: var(--on-accent); }
  .site-nav .btn:hover { color: var(--on-accent); }
}

/* ---------- Hero con l'occhio ---------- */
.hero {
  position: relative; min-height: calc(100svh - 56px); display: grid; align-items: center;
  padding: 48px 0 72px; overflow: hidden; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 70%, rgba(96, 165, 250, .10), transparent 70%);
}
@media (min-width: 960px) { .hero::before { background: radial-gradient(45% 60% at 74% 50%, rgba(96, 165, 250, .11), transparent 70%); } }
/* Prima schermata: testo (marchio, titolo, sottotitolo, spiegazione, azione) + occhio */
.hero-grid { position: relative; display: grid; gap: 8px; align-items: center; }
.hero-text { max-width: 620px; margin: 0 auto; }
.hero h1 { max-width: 17ch; margin: 0 auto .25em; font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.04em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--steel); margin: 0 0 .9em; }
.hero-lead { font-size: 1rem; color: var(--text-muted); max-width: 46ch; margin: 0 auto; }
.hero .btn-row { margin-top: 30px; }
@media (min-width: 960px) {
  .hero { text-align: left; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero-text { margin: 0; }
  .hero h1, .hero-lead { margin-left: 0; }
  .hero .hero-text .btn-row { justify-content: flex-start; }
}

/* Logo grande sopra il titolo della home: Σ luminosa + «SigmaCore» */
.hero-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 30px; }
.hero-logo img { width: clamp(92px, 9vw, 132px); height: auto; filter: drop-shadow(0 0 18px rgba(37, 99, 235, .55)) drop-shadow(0 0 4px rgba(96, 165, 250, .6)); }
.hero-logo .brand-word { font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 750; margin-top: 10px; }
.hero-logo small { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); }

/* Marchio del prodotto */
.product-mark { display: inline-flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; color: var(--text); margin: 0 0 26px; }
.product-mark .sigma-logo { width: 46px; height: 46px; }
.product-mark .brand-word { font-size: 1.7rem; }
.product-mark small { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); padding-left: 12px; border-left: 1px solid var(--border-strong); }
.product-mark-sm { font-size: 1.1rem; margin-bottom: 20px; }
.product-mark-sm .sigma-logo { width: 34px; height: 34px; }
.product-mark-sm .brand-word { font-size: 1.3rem; }

/* Sezione di presentazione dopo la prima schermata */
.section.intro { padding-top: 40px; }
.intro-text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--text-muted); font-weight: 450; max-width: 40ch; margin-bottom: 36px; }
.intro-text strong { color: var(--accent); font-weight: 600; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.benefits li { position: relative; padding: 16px 18px 16px 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted); font-size: .98rem; line-height: 1.4; }
.benefits li::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.hero-eye { position: relative; width: min(560px, 92vw); aspect-ratio: 1 / 1; margin: -20px auto -36px; }
.hero .hero-eye { width: min(440px, 86vw); margin: -10px auto -36px; }
@media (min-width: 960px) { .hero .hero-eye { width: min(580px, 44vw, 72svh); margin: -40px auto -48px; } }
@media (max-width: 600px) { .eyebrow { letter-spacing: .14em; } }
.eye-canvas { display: block; width: 100%; height: 100%; }
.eye-status { font-family: var(--mono); text-align: center; min-height: 3.2em; }
.eye-status-title { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); transition: color .6s; }
.eye-status-sub { display: block; font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
.hero .btn-row { justify-content: center; }
.scroll-hint { margin-top: 40px; font-family: var(--mono); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); }

.page-hero { padding: 64px 0 32px; }
.page-hero h1 { max-width: 26ch; background: linear-gradient(180deg, #ffffff 0%, #E5E7EB 55%, #A4A7B1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule-box > p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--text-muted); font-size: 1.05rem; }
@media (min-width: 900px) { .page-hero { padding: 104px 0 48px; } }

/* ---------- Frase che si illumina parola per parola ---------- */
.scrub-text { font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; max-width: 22ch; margin: 0; }
.js .scrub-text .w { color: #5C6276; transition: color .35s; }  /* testo grande: 3,3:1, sufficiente AA */
.js .scrub-text .w.on { color: var(--text); }
.js .scrub-text .w.hl.on { color: var(--accent); }

/* ---------- Storia con l'occhio fisso ---------- */
.story { position: relative; }
.story-grid { display: grid; gap: 0; }
.story-eye {
  position: sticky; top: 56px; z-index: 2; height: 46svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--bg) 78%, rgba(11, 19, 43, 0));
}
.story-eye canvas { width: min(36svh, 80vw); height: min(36svh, 80vw); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 22px; border-left: 2px solid var(--border); transition: border-color .5s; }
.story-step h3 { color: var(--text-muted); transition: color .5s; }
.story-step.is-active { border-left-color: var(--accent); }
.story-step.is-active h3 { color: var(--text); }
.no-js .story-step { opacity: 1; min-height: 0; padding: 32px 0; }
.story-step h3 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); letter-spacing: -0.03em; margin-bottom: .4em; }
.story-step p { color: var(--text-muted); font-size: 1rem; max-width: 42ch; }
.story-step .before { font-size: .95rem; color: var(--text-dim); border-left: 2px solid var(--border-strong); padding-left: 14px; margin-top: 8px; }
.story-step .before strong { color: var(--steel); font-weight: 600; }
.step-tag { font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; color: var(--accent); }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .story-eye { top: 0; height: 100svh; background: none; order: 2; }
  .story-eye canvas { width: min(520px, 42vw); height: min(520px, 42vw); }
  .story-step { min-height: 100svh; }
}

/* ---------- Bento / card ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 20px; } }
.card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; overflow: hidden; transition: border-color .4s, transform .6s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-bottom: .55em; }
.card p { color: var(--text-muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-big { padding: 38px 30px; }
.card-big h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.03em; }
.card-glow::before {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .16), transparent 70%); pointer-events: none;
}
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; border: 1px solid rgba(96, 165, 250, .2);
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 550; }
.card-link::after { content: " ›"; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-muted); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Prima / dopo ---------- */
.compare { display: grid; gap: 16px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; gap: 20px; } }
.compare-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare-item > div { padding: 26px 28px; }
.compare-before { color: var(--text-dim); }
.compare-before h3 { color: var(--text-muted); }
.compare-after { background: linear-gradient(180deg, rgba(96, 165, 250, .07), rgba(96, 165, 250, .02)); border-top: 1px solid var(--border); }
.compare-label { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.compare-before .compare-label { color: var(--text-dim); }
.compare-after .compare-label { color: var(--accent); }
.compare-item h3 { font-size: 1.05rem; margin-bottom: .35em; }
.compare-item p { margin: 0; }
.compare-after p { color: var(--text-muted); }
.compare-before p { color: var(--text-dim); }

/* ---------- Regola sull'AI ---------- */
.band { background: var(--bg); }
.rule { text-align: center; }
.rule-quote { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; margin: 0 auto 28px; max-width: 24ch; }
.rule-quote em { font-style: normal; }
.rule > p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--text-muted); font-size: 1.05rem; }
.rule-points { display: grid; gap: 16px; margin-top: 64px; text-align: left; }
@media (min-width: 860px) { .rule-points { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.rule-points > div { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; background: var(--surface); }
.rule-points h3 { font-size: 1.05rem; margin-bottom: .4em; }
.rule-points p { margin: 0; color: var(--text-muted); }
.rule-box { position: relative; }

/* ---------- Cifre ---------- */
.facts { display: grid; gap: 16px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.fact { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; background: var(--surface); }
.fact-value { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; display: block; margin-bottom: 12px; }
.fact p { color: var(--text-muted); margin: 0; }

/* ---------- Passi del metodo ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 56px 84px; }
.steps li::before {
  content: "0" counter(step); position: absolute; left: 0; top: -2px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 1rem;
  background: var(--surface-2); color: var(--accent); border: 1px solid rgba(96, 165, 250, .35); box-shadow: 0 0 24px rgba(96, 165, 250, .15);
}
.steps li::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: 10px; width: 1px; background: linear-gradient(var(--border-strong), transparent); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.03em; }
.steps p { color: var(--text-muted); max-width: 60ch; font-size: 1rem; }

/* ---------- Pannelli del gestionale (dati inventati) ---------- */
.mock-figure { margin: 0; }
.mock {
  background: #0E1630; border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; font-size: .92rem;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 80px rgba(96, 165, 250, .06);
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #111A35; }
.sigma-badge {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem; flex: none; border: 1px solid rgba(96, 165, 250, .3);
}
.mock-title { font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.mock-tag { margin-left: auto; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(96, 165, 250, .5); border-radius: 4px; padding: 2px 7px; }
.mock-body { padding: 18px 16px 20px; display: grid; gap: 12px; }
.mock-caption { font-size: .8rem; color: var(--text-dim); margin-top: 14px; text-align: center; font-family: var(--mono); }
.bubble { padding: 11px 15px; border-radius: 14px; max-width: 92%; }
.bubble-user { justify-self: end; background: var(--accent-soft); border: 1px solid rgba(96, 165, 250, .25); color: var(--text); border-bottom-right-radius: 4px; }
.bubble-ai { background: #161F3A; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.bubble-ai table { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.bubble-ai td { padding: 6px 0; border-top: 1px solid var(--border); }
.bubble-ai td:last-child { text-align: right; padding-left: 12px; white-space: nowrap; font-family: var(--mono); color: var(--accent); }
.bubble-note { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* Cruscotto finto */
.dash { padding: 18px; display: grid; gap: 14px; }
.dash-kpis { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dash-kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: #131B33; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.kpi-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.kpi-value { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-value.a { color: var(--accent); }
.kpi-value.g { color: var(--light-gray); }
.kpi-value.s { color: var(--steel); }
.kpi-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); margin-top: 10px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: currentColor; border-radius: 2px; }
.kpi-bar.c-a { color: var(--accent); } .kpi-bar.c-g { color: var(--sigma-blue); } .kpi-bar.c-s { color: var(--steel); }
.kpi-bar.w80 i { width: 80%; } .kpi-bar.w60 i { width: 60%; } .kpi-bar.w95 i { width: 95%; }
.dash-chart { background: #131B33; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 12px; }
.bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(96, 165, 250, .25)); transform-origin: bottom; }
.bars span:nth-child(2n) { background: linear-gradient(180deg, var(--sigma-blue), rgba(37, 99, 235, .25)); }
.h20 { height: 20%; } .h30 { height: 30%; } .h40 { height: 40%; } .h50 { height: 50%; } .h60 { height: 60%; } .h70 { height: 70%; } .h80 { height: 80%; } .h90 { height: 90%; }
.js .is-visible .bars span { animation: grow 1.2s var(--ease) both; }
.js .is-visible .bars span:nth-child(3n) { animation-delay: .1s; }
.js .is-visible .bars span:nth-child(3n+1) { animation-delay: .2s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Riconciliazione */
.recon { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.recon th, .recon td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.recon th { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.recon td.num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.status { display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.status-ok { color: var(--light-blue); border: 1px solid rgba(96, 165, 250, .5); }
.status-check { color: var(--light-gray); border: 1px dashed rgba(229, 231, 235, .55); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) { .recon .hide-sm { display: none; } }

/* ---------- Layout a due colonne ---------- */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split-wide { grid-template-columns: .9fr 1.1fr; } .split-center { align-items: center; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; color: var(--text-muted); }
.prose li { margin-bottom: .5em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; }

/* ---------- Aree del prodotto ---------- */
.area { padding: 56px 0; border-top: 1px solid var(--border); }
.area:first-of-type { border-top: 0; }
.area-head { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 36px; }
.area-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.area-num { font-family: var(--mono); color: var(--accent); font-weight: 600; }

/* ---------- Persone ---------- */
.person-photo {
  aspect-ratio: 1 / 1; width: 100%; max-width: 240px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--surface); border: 1px dashed var(--ph-border); color: var(--ph-text); font-family: var(--mono); font-size: .85rem; text-align: center; padding: 12px; margin-bottom: 18px;
}

/* ---------- Modulo contatti ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 550; margin-bottom: 8px; font-size: .95rem; }
.field .req, .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #091024;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 13px 15px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(96, 165, 250, .25); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field-error { color: #ff8a80; font-size: .88rem; margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check label { font-weight: 400; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(245, 181, 68, .4); background: rgba(245, 181, 68, .08); color: var(--text); }
.form-status:empty { display: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list dt { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted); font-weight: 600; }
.contact-list dd { margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; font-size: .9rem; background: var(--bg-2); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-muted); }
.site-footer a:not(.btn) { color: var(--text-muted); }
.site-footer a:not(.btn):hover { color: var(--text); }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-legal a { color: var(--text-muted); }
.footer-brand svg { width: 110px; margin-bottom: 16px; display: block; }
.footer-brand p { color: var(--text-muted); max-width: 36ch; }

/* ---------- Varie ---------- */
.notice { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); padding: 20px 24px; border-radius: var(--radius-sm); }
.notice p:last-child { margin-bottom: 0; }
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .5), transparent); border: 0; margin: 0; }

/* ---------- Elementi dei testi ufficiali ---------- */
.mt-s { margin-top: 20px; }
.card .mt-l { margin-top: 22px; }
.statements { display: grid; gap: 28px; margin-top: 80px; }
@media (min-width: 860px) { .statements { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.statements p { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; padding-top: 22px; border-top: 1px solid rgba(96, 165, 250, .35); }
.h-feature { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.03em; margin-bottom: .6em; }
.card-kicker { font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; line-height: 1.4; }
.feature-row { display: grid; gap: 20px; padding: 52px 0; border-top: 1px solid var(--border); }
.feature-row:first-child { border-top: 0; }
.feature-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 10px; }
.feature-row p { color: var(--text-muted); font-size: 1rem; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 72px; padding: 72px 0; } }
.step-name { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 14px 0 10px; line-height: 1.4; }
.big-rule { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1.05; margin: 36px 0; }
.fact-value.huge { font-size: clamp(3rem, 7vw, 5.5rem); }
.story .story-step .before { margin-bottom: 14px; }
.story-step p strong { color: var(--accent); }
@media (min-width: 960px) and (max-width: 1150px) { .site-nav ul { gap: 18px; } .site-nav a { font-size: .82rem; } }

/* ---------- Effetti allo scorrimento (solo con JS e se il movimento è consentito) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .zoom { transform: scale(var(--z, .86)); opacity: var(--zo, .35); will-change: transform; }
  .js .hero-anim > * { opacity: 0; transform: translateY(24px); animation: rise 1.2s var(--ease) forwards; }
  .js .hero-anim > :nth-child(2) { animation-delay: .12s; }
  .js .hero-anim > :nth-child(3) { animation-delay: .24s; }
  .js .hero-anim > :nth-child(4) { animation-delay: .36s; }
  .js .hero-anim > :nth-child(5) { animation-delay: .48s; }
  .js .hero-anim > :nth-child(6) { animation-delay: .6s; }
  .js .hero-anim > :nth-child(7) { animation-delay: .72s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Stampa: fondo bianco, logo monocromatico scuro, niente animazioni ---------- */
@media print {
  html, body, .section-alt, .site-footer, .card, .compare-item, .rule-points > div, .fact, .mock, .kpi, .dash-chart, .bubble-ai { background: #fff !important; color: #0B132B !important; box-shadow: none !important; }
  .site-nav, .nav-toggle, .header-eye, .hero-visual, .story-eye, .eye-canvas, .hero-eye, .eye-status, .btn-row, .skip-link { display: none !important; }
  .site-header { position: static; background: #fff; border-bottom: 1px solid #0B132B; }
  .grad, .grad-accent, .page-hero h1 { background: none !important; -webkit-background-clip: border-box; background-clip: border-box; color: #0B132B !important; }
  .muted, .lead, p, li, .card p, .compare-after p, .compare-before p { color: #0B132B !important; }
  .eyebrow, .area-num, .step-name, .card-kicker, a { color: #0B132B !important; }
  .brand .sigma-logo { display: none; }
  .hero-logo img, .sigma-logo.mono, .mock-mark { content: url("../img/sigmacore-mark-mono-scuro.svg"); filter: none !important; }
  .brand-word, .brand-word span { color: #0B132B !important; }
  .reveal, .zoom { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
