/*
 * Sito pubblico v2 - foglio unico scritto a mano (nessuna compilazione).
 * Prefisso classi: s2-. Punti di rottura: 700, 900, 1100 (mobile first).
 * Colori: blu #2f55d4, scuro #2342b0, tinte #e7ecfa/#eef2fc, fondo #f6f7f9,
 * testo #3b3950, secondario #5d6075, blocchi scuri #161a26.
 * Il grigio #8a8799 NON si usa per il testo (contrasto insufficiente).
 */

/* ---------- Font (self-hosted, variabile 400-800) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/hanken-grotesk/hanken-grotesk-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/hanken-grotesk/hanken-grotesk-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;
}

/* ---------- Variabili ---------- */
:root {
  color-scheme: light dark;
  --s2-blue: #2f55d4;
  --s2-blue-dark: #2342b0;
  --s2-tint: #e7ecfa;
  --s2-tint-2: #eef2fc;
  --s2-hl: #d3defa;
  --s2-bg: #f6f7f9;
  --s2-panel: #f1f3f8;
  --s2-text: #3b3950;
  --s2-muted: #5d6075;
  --s2-ink: #161a26;
  --s2-on-dark: #c9cedb;
  --s2-on-dark-soft: #aeb4c4;
  --s2-line: #e1e4ec;
  --s2-line-strong: #cfd4e0;
  --s2-ok: #1f7a4d;
  --s2-white: #ffffff;
  --s2-link: #2f55d4;
  --s2-link-hover: #2342b0;
  --s2-link-strong: #2342b0;
  --s2-page: #ffffff;
  --s2-surface: #ffffff;
  --s2-surface-glass: rgba(255, 255, 255, 0.97);
  --s2-dark-bg: #161a26;
  --s2-placeholder: #6b6880;
  --s2-danger: #b3261e;
  --s2-danger-bg: #fdecea;
  --s2-danger-border: #f3b7b2;
  --s2-danger-text: #8a1c15;
  --s2-blue-line: #c5d0f1;

  --s2-r-sm: 8px;
  --s2-r-md: 12px;
  --s2-r-lg: 16px;

  --s2-shadow-sm: 0 1px 2px rgba(22, 26, 38, 0.04);
  --s2-shadow-md: 0 4px 16px rgba(22, 26, 38, 0.08);
  --s2-shadow-lg: 0 12px 32px rgba(22, 26, 38, 0.14);

  --s2-gutter: clamp(16px, 5vw, 64px);
  --s2-section: clamp(48px, 8vw, 88px);
  --s2-font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --s2-mono: 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* ---------- Tema scuro (segue il sistema) ----------
 * Le variabili --s2-page, --s2-surface, --s2-dark-bg, --s2-link* e --s2-danger* esistono perche' bianco e
 * blu fanno due lavori: come sfondo o come testo cambiano col tema, come testo su blu o su fondo scuro no
 * (--s2-white resta bianco). I disegni di prodotto (.s2-frag__card) restano chiari, come uno screenshot. */
@media (prefers-color-scheme: dark) {
  :root {
    --s2-blue: #3d62e0;
    --s2-blue-dark: #2f55d4;
    --s2-link: #8fa8f6;
    --s2-link-hover: #b6c6fa;
    --s2-link-strong: #a9bcf7;
    --s2-tint: #222b4d;
    --s2-tint-2: #1a2140;
    --s2-hl: #2f3d78;
    --s2-bg: #141823;
    --s2-panel: #1d2231;
    --s2-text: #d6d9e6;
    --s2-muted: #a3a8bc;
    --s2-ink: #f3f5fb;
    --s2-line: #2a3042;
    --s2-line-strong: #3a4259;
    --s2-ok: #4cc38a;
    --s2-page: #0e1117;
    --s2-surface: #181d2a;
    --s2-surface-glass: rgba(24, 29, 42, 0.97);
    --s2-dark-bg: #1c2236;
    --s2-placeholder: #8c91a6;
    --s2-danger: #ff8f86;
    --s2-danger-bg: #3a1d1b;
    --s2-danger-border: #70302b;
    --s2-danger-text: #ffb4ab;
    --s2-blue-line: #34427c;
    --s2-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --s2-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --s2-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  .s2-frag__card {
    --s2-blue: #2f55d4;
    --s2-blue-dark: #2342b0;
    --s2-link: #2f55d4;
    --s2-link-hover: #2342b0;
    --s2-link-strong: #2342b0;
    --s2-tint: #e7ecfa;
    --s2-tint-2: #eef2fc;
    --s2-hl: #d3defa;
    --s2-bg: #f6f7f9;
    --s2-panel: #f1f3f8;
    --s2-text: #3b3950;
    --s2-muted: #5d6075;
    --s2-ink: #161a26;
    --s2-line: #e1e4ec;
    --s2-line-strong: #cfd4e0;
    --s2-ok: #1f7a4d;
    --s2-surface: #ffffff;
  }
}

/* ---------- Reset minimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--s2-page);
  color: var(--s2-text);
  font-family: var(--s2-font);
  font-size: clamp(17px, 16.4px + 0.15vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--s2-link); }
a:hover { color: var(--s2-link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--s2-link); outline-offset: 2px; border-radius: 4px; }
.s2-dark :focus-visible,
.s2-footer :focus-visible,
.s2-cta-final :focus-visible { outline-color: var(--s2-white); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Comparsa delle sezioni sotto la prima schermata. La classe la mette site-v2.js, una volta sola. */
  .s2-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
  .s2-reveal.is-in { opacity: 1; transform: none; }

  /* Ingresso della schermata di prodotto nella prima schermata. Solo CSS: se non parte, l'immagine resta visibile. */
  @keyframes s2-rise {
    from { opacity: 0; transform: translateY(20px) scale(0.985); }
  }
  .s2-hero .s2-shot,
  .s2-hero__media { animation: s2-rise 0.45s ease-out backwards; }
}
@media print {
  .s2-reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

/* ---------- Struttura ---------- */
.s2-container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--s2-gutter));
  margin-inline: auto;
  padding-inline: var(--s2-gutter);
}
.s2-section { padding-block: var(--s2-section); }
.s2-section--tint { background: var(--s2-bg); }
.s2-section--flush-top { padding-top: 0; }
.s2-section--tight { padding-block: clamp(32px, 5vw, 56px); }
.s2-stack { display: flex; flex-direction: column; gap: 24px; }
.s2-stack--lg { gap: clamp(32px, 5vw, 56px); }
.s2-stack--sm { gap: 12px; }
.s2-row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.s2-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.s2-skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--s2-dark-bg); color: var(--s2-white); padding: 12px 18px;
  border-radius: var(--s2-r-sm); font-weight: 700; text-decoration: none;
}
.s2-skip:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.s2-h1, .s2-h2, .s2-h3 { color: var(--s2-text); font-weight: 800; text-wrap: balance; }
.s2-h1 { font-size: clamp(34px, 24px + 2.4vw, 58px); line-height: 1.08; letter-spacing: -0.03em; }
.s2-h2 { font-size: clamp(28px, 20px + 1.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; }
.s2-h3 { font-size: clamp(20px, 18px + 0.5vw, 24px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.s2-lead { font-size: clamp(18px, 16px + 0.6vw, 21px); line-height: 1.5; color: var(--s2-muted); max-width: 60ch; }
.s2-text { max-width: 70ch; }
.s2-muted { color: var(--s2-muted); }
.s2-small { font-size: 15px; line-height: 1.45; }
.s2-caption { font-size: 14px; color: var(--s2-muted); }
.s2-eyebrow {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--s2-link); line-height: 1.3;
}
/* Dentro l'H1 dell'home: riga di apertura in minuscolo */
.s2-eyebrow--lead {
  display: block; font-size: clamp(16px, 15px + 0.3vw, 18px); font-weight: 700;
  letter-spacing: 0; text-transform: none; margin-bottom: 14px; line-height: 1.35;
}
.s2-mark { box-shadow: inset 0 -0.32em var(--s2-hl); }
.s2-dark .s2-h2, .s2-dark .s2-h3, .s2-cta-final .s2-h2 { color: var(--s2-white); }

/* ---------- Bottoni ---------- */
.s2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--s2-r-sm);
  border: 2px solid transparent; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-align: center; text-decoration: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.s2-btn--primary { background: var(--s2-blue); color: var(--s2-white); }
.s2-btn--primary:hover { background: var(--s2-blue-dark); color: var(--s2-white); }
.s2-btn--ghost { background: transparent; border-color: var(--s2-blue); color: var(--s2-link); }
.s2-btn--ghost:hover { background: var(--s2-tint-2); color: var(--s2-link-strong); border-color: var(--s2-blue-dark); }
.s2-btn--light { background: var(--s2-white); color: var(--s2-blue-dark); }
.s2-btn--light:hover { background: #e7ecfa; color: var(--s2-blue-dark); }
.s2-btn--lg { min-height: 56px; padding: 15px 28px; font-size: 18px; }
.s2-btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.s2-btn--block { display: flex; width: 100%; }
.s2-link { font-weight: 700; }

/* ---------- Header e menu ---------- */
.s2-header { position: relative; z-index: 50; background: var(--s2-page); }
.s2-header__bar { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
.s2-logo {
  color: var(--s2-ink); text-decoration: none; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center;
}
.s2-logo:hover { color: var(--s2-ink); }
.s2-logo__img { height: 44px; width: auto; }
.s2-header__actions { display: flex; align-items: center; gap: 10px; }
.s2-nav { width: 100%; }
.s2-nav__list { display: flex; flex-direction: column; }
.s2-nav__link {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--s2-text); font-size: 17px; text-decoration: none; border-top: 1px solid var(--s2-line);
}
.s2-nav__link:hover { color: var(--s2-link); }
.s2-nav__link[aria-current='page'] { font-weight: 700; color: var(--s2-link); }
.s2-header__bar { flex-wrap: wrap; }
.s2-menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px;
  padding: 0 12px; background: var(--s2-surface); border: 1.5px solid var(--s2-line-strong);
  border-radius: var(--s2-r-sm); font-weight: 700; font-size: 15px; color: var(--s2-text);
}
.s2-menu-btn__icon, .s2-menu-btn__icon::before, .s2-menu-btn__icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: '';
  transition: transform 0.15s;
}
.s2-menu-btn__icon { position: relative; }
.s2-menu-btn__icon::before { position: absolute; top: -6px; left: 0; }
.s2-menu-btn__icon::after { position: absolute; top: 6px; left: 0; }
.s2-menu-btn[aria-expanded='true'] .s2-menu-btn__icon { background: transparent; }
.s2-menu-btn[aria-expanded='true'] .s2-menu-btn__icon::before { transform: translateY(6px) rotate(45deg); }
.s2-menu-btn[aria-expanded='true'] .s2-menu-btn__icon::after { transform: translateY(-6px) rotate(-45deg); }
.s2-menu-btn__label { display: none; }
.s2-nav__item--compact { display: block; }

/* Sotto i 900 px: pannello a comparsa (solo con JS; senza JS resta un elenco visibile) */
@media (max-width: 899.98px) {
  .s2-header__bar { position: relative; }
  .s2-nav { order: 3; }
  .s2-js .s2-menu-btn { display: inline-flex; }
  .s2-js .s2-nav { display: none; }
  .s2-js .s2-nav.is-open {
    display: block; position: absolute; left: var(--s2-gutter); right: var(--s2-gutter); top: 100%;
    background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: var(--s2-r-md);
    box-shadow: var(--s2-shadow-lg); padding: 4px 16px 8px; width: auto;
  }
  .s2-js .s2-nav.is-open .s2-nav__item:first-child .s2-nav__link { border-top: 0; }
}
@media (min-width: 420px) {
  .s2-menu-btn__label { display: inline; }
}
@media (min-width: 900px) {
  .s2-header__bar { flex-wrap: nowrap; padding-block: 24px; gap: 28px; }
  .s2-logo { margin-right: 0; }
  .s2-logo__img { height: 52px; }
  .s2-nav { order: 0; width: auto; margin-left: auto; }
  .s2-nav__list { flex-direction: row; align-items: center; gap: 28px; }
  .s2-nav__link { border-top: 0; min-height: 44px; padding: 0; }
  .s2-nav__item--compact { display: none; }
  .s2-header__actions { order: 1; }
  .s2-menu-btn { display: none !important; }
}

/* ---------- Hero ---------- */
.s2-hero { padding-block: clamp(24px, 4vw, 48px) var(--s2-section); }
.s2-hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.s2-hero__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.s2-hero__media { min-width: 0; }
.s2-hero__note { font-size: 16px; color: var(--s2-muted); }
.s2-hero__note strong { color: var(--s2-text); }
@media (min-width: 900px) {
  .s2-hero__grid--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* ---------- Disegno di funzione: pannello scuro con scheda bianca ---------- */
.s2-frag {
  background: var(--s2-dark-bg); border-radius: var(--s2-r-lg); padding: clamp(16px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.s2-frag__card {
  background: var(--s2-surface); color: var(--s2-text); border-radius: var(--s2-r-md);
  padding: clamp(14px, 2.5vw, 20px); font-size: 15px; line-height: 1.6; min-width: 0; overflow-wrap: anywhere;
}
.s2-frag__card--mono { font-family: var(--s2-mono); font-size: 14px; line-height: 1.75; }
.s2-frag__note { font-size: 15px; color: var(--s2-on-dark); line-height: 1.5; }
.s2-frag__caption { font-size: 14px; color: var(--s2-on-dark-soft); }

/* Primitive per i disegni */
.s2-line { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.s2-line > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.s2-line > span:last-child { flex: none; }
.s2-line--total { font-weight: 800; font-size: 18px; }
.s2-rule { border: 0; border-top: 1px dashed #b9c6ef; margin: 10px 0; }
.s2-badge {
  display: inline-block; background: var(--s2-tint); color: var(--s2-link-strong); border-radius: 6px;
  padding: 2px 10px; font-weight: 700; font-size: 14px; font-family: var(--s2-font);
}
.s2-badge--block { display: block; margin-top: 12px; padding: 8px 12px; border-radius: 6px; }
.s2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.s2-kpi { background: var(--s2-panel); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.s2-kpi__label { font-size: 14px; color: var(--s2-muted); }
.s2-kpi__value { font-size: clamp(24px, 20px + 1vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.s2-rows { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.s2-rows > * {
  display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px;
  background: var(--s2-panel); border-radius: var(--s2-r-sm); min-width: 0; overflow-wrap: anywhere;
}
.s2-panel {
  background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: var(--s2-r-lg);
  padding: clamp(16px, 3vw, 28px); display: grid; gap: 24px; min-width: 0;
}
.s2-panel--plain { display: block; padding: 18px; border-radius: var(--s2-r-md); }
.s2-panel__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.s2-panel__side {
  background: var(--s2-tint); border-radius: var(--s2-r-md); padding: 22px; display: flex;
  flex-direction: column; gap: 12px; min-width: 0;
}
.s2-panel__side-title { font-size: 18px; font-weight: 800; color: var(--s2-link-strong); }
.s2-todo { display: flex; gap: 10px; font-size: 16px; line-height: 1.4; }
.s2-todo b { color: var(--s2-link-strong); font-weight: 800; }
@media (min-width: 900px) {
  .s2-panel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ---------- Passi ---------- */
.s2-steps { display: grid; gap: 28px; counter-reset: s2-step; }
.s2-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; counter-increment: s2-step; }
.s2-step__num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--s2-tint); color: var(--s2-link-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.s2-step__when { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s2-link); }
.s2-step__title { font-size: clamp(20px, 18px + 0.5vw, 24px); font-weight: 700; line-height: 1.25; }
.s2-step__text { color: var(--s2-muted); }
@media (min-width: 700px) {
  .s2-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Split, griglie, schede ---------- */
.s2-split { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.s2-split--center { align-items: center; }
.s2-split > * { min-width: 0; }
@media (min-width: 900px) {
  .s2-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2-split--reverse > :first-child { order: 2; }
}
.s2-grid { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .s2-grid--2, .s2-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .s2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.s2-card {
  background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: var(--s2-r-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.s2-card--tint { background: var(--s2-tint-2); border-color: var(--s2-tint); }
.s2-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.s2-card__text { font-size: 16px; line-height: 1.5; color: var(--s2-muted); }

.s2-checks { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.45; }
.s2-checks li { display: flex; gap: 12px; align-items: flex-start; }
.s2-checks li::before {
  content: '\2713'; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--s2-tint); color: var(--s2-link); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.s2-list { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.45; }
.s2-list li { padding-left: 22px; position: relative; }
.s2-list li::before {
  content: ''; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--s2-blue);
}
.s2-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--s2-line-strong); border-radius: 999px; background: var(--s2-surface);
  color: var(--s2-text); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.s2-chip:hover { border-color: var(--s2-blue); color: var(--s2-link); }
.s2-chip[aria-current='true'], .s2-chip.is-current {
  background: var(--s2-blue); border-color: var(--s2-blue); color: var(--s2-white);
}
.s2-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 15px; color: var(--s2-muted); }
.s2-breadcrumbs li + li::before { content: '/'; margin-right: 8px; }
.s2-breadcrumbs a { color: var(--s2-muted); display: inline-block; padding-block: 12px; }

/* ---------- Blocco scuro (FisCaal ecc.) ---------- */
.s2-dark {
  background: var(--s2-dark-bg); color: var(--s2-white); border-radius: var(--s2-r-lg);
  padding: clamp(24px, 5vw, 56px); display: grid; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.s2-dark > * { min-width: 0; }
.s2-dark__text { display: flex; flex-direction: column; gap: 18px; color: #d4d9e6; font-size: clamp(17px, 16px + 0.4vw, 20px); line-height: 1.55; }
.s2-dark__text > a { align-self: flex-start; padding-block: 8px; }
.s2-dark a:not(.s2-btn) { color: var(--s2-white); font-weight: 700; }
@media (min-width: 900px) {
  .s2-dark { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

/* ---------- Prezzi ---------- */
.s2-plans { display: grid; gap: 20px; align-items: stretch; }
.s2-plan {
  background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: var(--s2-r-md);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; min-width: 0;
}
.s2-plan--featured { border: 2px solid var(--s2-blue); }
.s2-plan__name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s2-link); }
.s2-plan__for { font-size: 20px; font-weight: 700; }
.s2-price { font-size: clamp(44px, 38px + 2vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.s2-price__unit { margin-left: 6px; font-size: 17px; font-weight: 500; color: var(--s2-muted); letter-spacing: 0; }
.s2-plan__list { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.45; margin-bottom: auto; }
.s2-plan .s2-btn { margin-top: auto; }
@media (min-width: 1100px) {
  .s2-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tabella di confronto: sotto i 900 px diventa un elenco per riga, mai scorrevole */
.s2-compare { width: 100%; font-size: 16px; }
.s2-compare th, .s2-compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--s2-line); vertical-align: top; }
.s2-compare thead th { font-weight: 800; color: var(--s2-link-strong); }
@media (max-width: 899.98px) {
  .s2-compare, .s2-compare tbody, .s2-compare tr, .s2-compare td, .s2-compare th { display: block; width: 100%; }
  .s2-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .s2-compare tr { border: 1px solid var(--s2-line); border-radius: var(--s2-r-md); margin-bottom: 14px; background: var(--s2-surface); }
  .s2-compare tbody th { background: var(--s2-bg); font-size: 17px; border-radius: var(--s2-r-md) var(--s2-r-md) 0 0; }
  .s2-compare td { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
  .s2-compare td::before { content: attr(data-label); font-weight: 700; color: var(--s2-muted); }
  .s2-compare tr td:last-child { border-bottom: 0; }
}

/* ---------- Recensioni ---------- */
.s2-reviews { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.s2-reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.s2-trust { font-size: 18px; color: var(--s2-muted); }
.s2-reviews__arrows { display: none; gap: 8px; }
.s2-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--s2-line-strong);
  background: var(--s2-surface); color: var(--s2-text); font-size: 20px; line-height: 1;
}
.s2-arrow:hover { border-color: var(--s2-blue); color: var(--s2-link); }
.s2-arrow[disabled] { opacity: 0.4; cursor: default; }
.s2-reviews__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px;
  overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.s2-review {
  flex: 0 0 min(340px, 82vw); scroll-snap-align: start; background: var(--s2-surface);
  border: 1px solid var(--s2-line); border-radius: var(--s2-r-md); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.s2-review__stars { color: var(--s2-link); letter-spacing: 3px; font-size: 18px; }
.s2-review__text { font-size: 19px; line-height: 1.5; }
.s2-review__author { margin-top: auto; font-size: 15px; font-weight: 700; }
.s2-review--plain { background: var(--s2-bg); border: 0; padding: 22px 24px; flex: none; }
@media (min-width: 700px) {
  .s2-reviews__arrows { display: flex; }
}

/* ---------- FAQ ---------- */
.s2-faq { display: grid; gap: 28px; align-items: start; }
.s2-faq__nav { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.s2-faq__nav::-webkit-scrollbar { display: none; }
.s2-faq__groups { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.s2-faq__group { display: flex; flex-direction: column; }
.s2-faq__group-title { font-size: clamp(24px, 20px + 0.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.s2-qa { border-top: 1px solid var(--s2-line); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.s2-qa__q { font-size: 20px; font-weight: 700; line-height: 1.35; }
.s2-qa__a { color: var(--s2-muted); line-height: 1.55; }
.s2-qalist { display: grid; gap: 22px 40px; }
@media (min-width: 700px) {
  .s2-qalist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .s2-faq { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .s2-faq__nav { flex-direction: column; overflow: visible; position: sticky; top: 24px; gap: 14px; }
  .s2-faq__nav .s2-chip {
    min-height: 0; padding: 4px 0 4px 14px; border: 0; border-left: 3px solid transparent; border-radius: 0;
    background: transparent; white-space: normal;
  }
  .s2-faq__nav .s2-chip[aria-current='true'] { background: transparent; color: var(--s2-link); border-left-color: var(--s2-blue); }
}

/* ---------- Moduli ---------- */
.s2-form-card {
  background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: var(--s2-r-md);
  box-shadow: var(--s2-shadow-sm); padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 22px;
  width: 100%; max-width: 520px; min-width: 0;
}
.s2-form { display: flex; flex-direction: column; gap: 20px; }
.s2-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s2-label { font-size: 15px; font-weight: 700; }
.s2-input, .s2-select, .s2-textarea {
  width: 100%; min-height: 48px; padding: 0 14px; font-size: 17px; line-height: 1.3;
  background: var(--s2-surface); color: var(--s2-text); border: 1px solid var(--s2-line-strong);
  border-radius: var(--s2-r-sm); -webkit-appearance: none; appearance: none;
}
.s2-textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.s2-select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--s2-muted) 50%), linear-gradient(135deg, var(--s2-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.s2-input::placeholder, .s2-textarea::placeholder { color: var(--s2-placeholder); }
.s2-input:focus-visible, .s2-select:focus-visible, .s2-textarea:focus-visible {
  outline: 0; border-color: var(--s2-blue); box-shadow: 0 0 0 3px var(--s2-hl);
}
.s2-input[aria-invalid='true'] { border-color: var(--s2-danger); }
.s2-hint { font-size: 15px; line-height: 1.45; color: var(--s2-muted); }
.s2-error { font-size: 15px; line-height: 1.45; color: var(--s2-danger); font-weight: 700; }
.s2-ok { color: var(--s2-ok); font-weight: 700; }
.s2-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.s2-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--s2-blue); }

/* Selezione giorno e orario (/demo) */
.s2-days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; max-width: 100%; }
.s2-day {
  flex: none; min-width: 72px; min-height: 64px; padding: 8px 12px; border: 1.5px solid var(--s2-line-strong);
  border-radius: var(--s2-r-sm); background: var(--s2-surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 700; line-height: 1.25;
}
.s2-day[aria-pressed='true'], .s2-day.is-selected { background: var(--s2-blue); border-color: var(--s2-blue); color: var(--s2-white); }
.s2-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.s2-slot {
  min-height: 44px; min-width: 76px; padding: 0 14px; border: 1.5px solid var(--s2-line-strong);
  border-radius: var(--s2-r-sm); background: var(--s2-surface); font-weight: 700; font-size: 16px;
}
.s2-slot[aria-pressed='true'], .s2-slot.is-selected { background: var(--s2-blue); border-color: var(--s2-blue); color: var(--s2-white); }

/* ---------- Invito finale e barra fissa ---------- */
.s2-cta-final { background: var(--s2-dark-bg); color: var(--s2-white); padding-block: clamp(40px, 6vw, 72px); }
.s2-cta-final__inner { display: flex; flex-direction: column; gap: 24px; }
.s2-cta-final__title { font-size: clamp(28px, 22px + 1.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.s2-cta-final__text { font-size: 18px; color: var(--s2-on-dark); margin-top: 8px; }
.s2-cta-final .s2-btn { width: 100%; }
@media (min-width: 700px) {
  .s2-cta-final__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .s2-cta-final .s2-btn { width: auto; }
}
.s2-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--s2-surface-glass); border-top: 1px solid var(--s2-line); box-shadow: 0 -4px 16px rgba(22, 26, 38, 0.08);
  transform: translateY(110%); visibility: hidden; transition: transform 0.2s, visibility 0.2s;
}
.s2-sticky-cta.is-visible { transform: none; visibility: visible; }
.s2-sticky-cta .s2-btn { width: 100%; }
@media (min-width: 900px) {
  .s2-sticky-cta { display: none; }
}

/* ---------- Footer ---------- */
.s2-footer { background: var(--s2-dark-bg); color: var(--s2-white); border-top: 1px solid #2a2f3d; padding-block: clamp(40px, 6vw, 64px) 32px; }
.s2-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s2-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.s2-footer__logo { color: var(--s2-white); text-decoration: none; display: inline-flex; align-self: flex-start; }
.s2-footer__logo-img { height: 64px; width: auto; }
.s2-footer__logo:hover { color: var(--s2-white); }
.s2-footer__about { font-size: 16px; line-height: 1.5; color: var(--s2-on-dark); }
.s2-footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 16px; min-width: 0; }
.s2-footer__title { font-weight: 700; margin-bottom: 6px; }
.s2-footer a, .s2-footer__link {
  color: #dde1ec; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: 0; padding: 0; font-size: 16px; text-align: left;
}
.s2-footer a:hover, .s2-footer__link:hover { color: var(--s2-white); text-decoration: underline; }
.s2-footer__legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #2a2f3d; font-size: 14px; line-height: 1.6;
  color: var(--s2-on-dark-soft); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
}
@media (min-width: 700px) {
  .s2-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .s2-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
  .s2-footer__brand { grid-column: auto; }
}
/* Con la barra fissa visibile sotto i 900 px il piè di pagina non resta coperto */
@media (max-width: 899.98px) {
  .s2-has-sticky .s2-footer { padding-bottom: 96px; }
}

/* ---------- Consenso cookie (stessi effetti del banner precedente) ---------- */
.s2-cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: var(--s2-surface);
  border-top: 1px solid var(--s2-line); box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12); }
.s2-cc[hidden], .s2-ccp[hidden] { display: none; }
.s2-cc__inner { max-width: 1200px; margin-inline: auto; padding: 16px var(--s2-gutter) calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.s2-cc__text { flex: 1 1 280px; font-size: 15px; line-height: 1.5; }
.s2-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s2-cc__btn { min-height: 44px; padding: 0 18px; border-radius: var(--s2-r-sm); border: 1.5px solid var(--s2-line-strong);
  background: var(--s2-surface); font-weight: 700; font-size: 15px; }
.s2-cc__btn--primary { background: var(--s2-blue); border-color: var(--s2-blue); color: var(--s2-white); }
.s2-cc__btn--primary:hover { background: var(--s2-blue-dark); }
.s2-ccp { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.s2-ccp__overlay { position: absolute; inset: 0; background: rgba(22, 26, 38, 0.55); }
.s2-ccp__panel { position: relative; background: var(--s2-surface); border-radius: var(--s2-r-md); width: 100%; max-width: 560px;
  max-height: 100%; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--s2-shadow-lg); }
.s2-ccp__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s2-ccp__title { font-size: 22px; font-weight: 800; }
.s2-ccp__close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; }
.s2-ccp__cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--s2-line); }
.s2-ccp__cat-desc { display: block; font-size: 15px; color: var(--s2-muted); line-height: 1.45; margin-top: 2px; }
.s2-ccp__cat input { flex: none; width: 24px; height: 24px; margin: 4px 0 0; accent-color: var(--s2-blue); }
.s2-ccp__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 699.98px) {
  .s2-cc__actions { width: 100%; }
  .s2-cc__actions .s2-cc__btn { flex: 1 1 auto; }
  .s2-ccp__foot .s2-cc__btn { flex: 1 1 100%; }
}

/* ---------- Guida di stile (solo ambiente locale) ---------- */
.s2-sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.s2-sg-swatch { border: 1px solid var(--s2-line); border-radius: var(--s2-r-sm); overflow: hidden; font-size: 14px; }
.s2-sg-swatch__chip { height: 56px; }
.s2-sg-swatch__chip--blue { background: var(--s2-blue); }
.s2-sg-swatch__chip--dark { background: var(--s2-blue-dark); }
.s2-sg-swatch__chip--tint { background: var(--s2-tint); }
.s2-sg-swatch__chip--tint2 { background: var(--s2-tint-2); }
.s2-sg-swatch__chip--bg { background: var(--s2-bg); }
.s2-sg-swatch__chip--text { background: var(--s2-text); }
.s2-sg-swatch__chip--muted { background: var(--s2-muted); }
.s2-sg-swatch__chip--ink { background: var(--s2-ink); }
.s2-sg-swatch__label { padding: 8px 10px; }
.s2-sg-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s2-muted); }
