/* ==========================================================================
   Sinfonia Web — stylesheet
   Design system: palette derivata dal brand (#1d9ec6) + accenti caldi,
   tipografia display "Plus Jakarta Sans" + testo "Inter".
   ========================================================================== */

/* --- font locali ----------------------------------------------------------
   Inter e Plus Jakarta Sans (SIL Open Font License) serviti da /assets/fonts/
   invece che da Google Fonts: niente CSS esterno bloccante e niente catena
   googleapis -> gstatic sul percorso critico. Sono file variabili (asse wght)
   nei sottoinsiemi latin e latin-ext: grazie a unicode-range il browser
   scarica solo quelli che servono davvero (per l'italiano basta "latin").
   I file latin sono precaricati dall'<head> di ogni pagina.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-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;
}

:root {
  /* brand */
  --brand: #1d9ec6;
  --brand-600: #1787ad;
  --brand-700: #116a8a;
  --brand-800: #0c5069;
  --brand-100: #dcf2fb;
  --brand-50: #f0f9fd;
  --brand-rgb: 29, 158, 198;

  /* accenti */
  --coral: #ff6a4d;
  --coral-100: #ffe8e2;
  --mint: #17b38c;
  --mint-100: #dcf6ee;
  --amber: #f4a523;
  --amber-100: #fff1d6;
  --violet: #6d5ce7;
  --violet-100: #ebe8fc;

  /* neutri */
  --ink: #0d1f2d;
  --ink-2: #1b3342;
  --ink-soft: #49606e;
  --ink-mute: #7a8d99;
  --line: #e2ebf1;
  --line-2: #cfdde6;
  --bg: #ffffff;
  --bg-alt: #f6fafc;
  --bg-deep: #0b1b26;

  --grad: linear-gradient(135deg, #24b8e3 0%, #1d9ec6 45%, #1766a8 100%);
  --grad-soft: linear-gradient(135deg, #e7f6fc 0%, #f2f9fd 60%, #eef4ff 100%);
  --grad-text: linear-gradient(90deg, #1d9ec6 0%, #2b7fd8 60%, #6d5ce7 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(13, 31, 45, .05), 0 2px 10px rgba(13, 31, 45, .05);
  --shadow: 0 6px 16px rgba(13, 31, 45, .06), 0 18px 48px rgba(13, 31, 45, .09);
  --shadow-lg: 0 14px 34px rgba(13, 31, 45, .10), 0 38px 90px rgba(13, 31, 45, .16);
  --shadow-brand: 0 10px 26px rgba(var(--brand-rgb), .35);

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 78px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
/* L'attributo `hidden` deve vincere sui `display` dichiarati dalle classi
   (es. `.form { display: grid }`), altrimenti resta visibile. */
[hidden] { display: none !important; }
a { color: var(--brand-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -.015em; font-weight: 700; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
strong, b { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand-100); color: var(--brand-800); }

/* --- icone (sprite SVG Lucide) ------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.icon--sm { width: 1em; height: 1em; }

/* --- layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 840px; }
.grid > *, .split > *, .contact > *, .hero__grid > *, .plans > *, .steps > *, .stats > * { min-width: 0; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--grad-soft); }
.section--deep { background: var(--bg-deep); color: #a9bcc8; }
.section--deep h2, .section--deep h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { font-size: 1.12rem; margin-bottom: 0; }
.section-head--left { margin-inline: 0; text-align: left; }
/* Intestazione a filo con il blocco successivo (niente stacco sotto). */
.section-head--flush { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }
.section-head:not(.section-head--left) .eyebrow::before { display: none; }
.section-head:not(.section-head--left) .eyebrow {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  box-shadow: var(--shadow-sm);
}
.section-head:not(.section-head--left) .eyebrow::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); order: -1; }
.lead { font-size: 1.2rem; line-height: 1.6; }
.text-center { text-align: center; }
.main-color { color: var(--brand); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-mute); }

/* --- bottoni -------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; line-height: 1.2; white-space: nowrap;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); overflow: hidden; }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 1; transition: opacity .25s ease; }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #1787ad, #0f5a8a); opacity: 0; transition: opacity .25s ease; }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 32px rgba(var(--brand-rgb), .45); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.btn--white { background: #fff; color: var(--brand-700); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.btn--white:hover { color: var(--brand-800); box-shadow: 0 16px 38px rgba(0, 0, 0, .22); }
.btn--outline-white { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--brand-700); }
.btn-link .icon { transition: transform .2s var(--ease); }
.btn-link:hover .icon { transform: translateX(3px); }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.8) blur(14px);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 31, 45, .06); background: rgba(255, 255, 255, .92); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { flex: 0 0 auto; margin-right: auto; display: block; }
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .has-sub > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav > a:hover, .nav .has-sub > a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a.is-active { color: var(--brand-700); }
.nav > a.is-active, .nav .has-sub > a.is-active { background: var(--brand-100); }

/* dropdown */
.has-sub { position: relative; }
.has-sub > a .icon { width: 14px; height: 14px; opacity: .6; transition: transform .2s ease; }
.has-sub:hover > a .icon, .has-sub:focus-within > a .icon { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); transition: background-color .15s ease; }
.sub a:hover { background: var(--brand-50); }
.sub__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--brand-700); background: var(--brand-100); flex: 0 0 auto; }
.sub__ico .icon { width: 18px; height: 18px; }
.sub b { display: block; font-size: .92rem; font-weight: 650; }
.sub span { display: block; font-size: .8rem; color: var(--ink-mute); line-height: 1.3; }

.nav-cta { flex: 0 0 auto; }
.nav .nav-cta--mobile { display: none; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- sfondo decorativo (blob + griglia) ----------------------------------- */
.bg-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-deco::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 31, 45, .07) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 620px; height: 620px; left: -160px; top: -220px; background: #bfe9f8; }
.blob--2 { width: 560px; height: 560px; right: -140px; top: -120px; background: #dbe4ff; }
.blob--3 { width: 420px; height: 420px; right: 20%; bottom: -260px; background: #d6f5ec; }

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: #f7fbfe;
  padding: clamp(40px, 6vw, 72px) 0 clamp(70px, 9vw, 120px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 8px; font-size: .84rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero__badge i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; }
.hero__badge i .icon { width: 13px; height: 13px; }
.hero h1 { margin-bottom: .5em; max-width: 12ch; }
.hero__slogan { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink-soft); margin-bottom: 34px; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--mint); }

.hero__media { position: relative; }
.hero__glow { position: absolute; inset: 10% -10% -10% -10%; background: radial-gradient(closest-side, rgba(var(--brand-rgb), .28), transparent 70%); filter: blur(30px); z-index: 0; }

/* mockup dell'applicazione (solo CSS) */
.mock {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 90px -24px rgba(8, 40, 60, .38), 0 0 0 1px rgba(13, 31, 45, .07);
  font-size: 11px; line-height: 1.3; color: var(--ink-soft);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.hero__media:hover .mock { transform: perspective(1600px) rotateY(-2deg) rotateX(0deg); }
.mock__bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f3f7fa; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #dde5ec; }
.mock__bar i:nth-child(1) { background: #ff5f57; } .mock__bar i:nth-child(2) { background: #febc2e; } .mock__bar i:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 10px; flex: 1; height: 22px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--ink-mute); display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 10px; font-style: normal; }
.mock__url .icon { width: 11px; height: 11px; color: var(--mint); }
.mock__body { display: grid; grid-template-columns: 54px 1fr; min-height: 380px; }
.mock__side { background: var(--ink); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock__logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.mock__side span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.mock__side span.is-on { background: rgba(255, 255, 255, .12); color: #fff; }
.mock__side .icon { width: 17px; height: 17px; }
.mock__main { padding: 16px; background: #f8fbfd; }
.mock__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.mock__head b { font-family: var(--font-display); font-size: 13.5px; color: var(--ink); font-weight: 700; }
.mock__head span { color: var(--ink-mute); font-size: 10.5px; }
.mock__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ffb199, #ff6a4d); border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.mock__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.mstat { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px; display: grid; gap: 3px; }
.mstat .icon { width: 16px; height: 16px; margin-bottom: 3px; }
.mstat b { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.mstat span { font-size: 9px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.mock__week { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px; }
.mweek__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mweek__top b { font-size: 11px; color: var(--ink); }
.mweek__top span { font-size: 9.5px; color: var(--ink-mute); }
.mweek__head, .mweek__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mweek__head { margin-bottom: 5px; font-size: 9px; color: var(--ink-mute); text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mweek__head i { font-style: normal; }
.mweek__head i.is-today { color: var(--brand-700); }
.mcol { display: grid; gap: 4px; align-content: start; }
.chip { border-radius: 6px; padding: 4px 5px; font-size: 8px; font-weight: 650; color: #fff; background: var(--brand); line-height: 1.2; }
.chip small { display: block; font-size: 7.5px; font-weight: 500; opacity: .85; }
.chip--2 { background: var(--mint); } .chip--3 { background: var(--amber); } .chip--4 { background: var(--violet); }
.chip--ghost { background: var(--brand-50); color: var(--brand-700); border: 1px dashed #b5dcec; }

/* card fluttuanti sopra il mockup */
.float {
  position: absolute; z-index: 2;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 12px 16px 12px 12px; display: flex; gap: 11px; align-items: center;
  font-size: 12.5px; line-height: 1.3; color: var(--ink-mute); white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
.float b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.float__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.float__ico .icon { width: 19px; height: 19px; }
.float--1 { left: -30px; bottom: 58px; }
.float--2 { right: -22px; top: 64px; animation-delay: -3.5s; }
.float--3 { left: 36px; top: -22px; animation-delay: -1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* pagina interna: hero compatto */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background: #f7fbfe;
  padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink-mute); margin-bottom: 18px; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; transform: rotate(-90deg); }
.crumbs strong { color: var(--brand-700); font-weight: 600; }

/* --- loghi clienti -------------------------------------------------------- */
.clients-wrap { text-align: center; }
.clients-label { font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 26px; }
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(26px, 6vw, 72px); }
.clients img { height: 60px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .3s ease, opacity .3s ease, transform .3s var(--ease); }
.clients li:hover img { filter: none; opacity: 1; transform: translateY(-2px); }

/* --- numeri --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); opacity: .9; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; display: flex; align-items: baseline; gap: 3px; }
.stat__num small { font-size: .5em; color: var(--brand); font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-weight: 650; color: var(--ink); font-size: .98rem; margin-bottom: 2px; }
.stat__hint { font-size: .88rem; color: var(--ink-mute); }

/* --- griglie di card ------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c6e3ef; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .98rem; }
.card__icon {
  width: 58px; height: 58px; margin-bottom: 20px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad); border-radius: 17px;
  box-shadow: 0 8px 18px rgba(var(--brand-rgb), .28);
}
.card__icon .icon { width: 26px; height: 26px; }
.card[data-tone="mint"] .card__icon { background: linear-gradient(135deg, #2fd0a6, #17b38c); box-shadow: 0 8px 18px rgba(23, 179, 140, .28); }
.card[data-tone="coral"] .card__icon { background: linear-gradient(135deg, #ff8f6b, #ff6a4d); box-shadow: 0 8px 18px rgba(255, 106, 77, .28); }
.card[data-tone="amber"] .card__icon { background: linear-gradient(135deg, #ffc04d, #f4a523); box-shadow: 0 8px 18px rgba(244, 165, 35, .28); }
.card[data-tone="violet"] .card__icon { background: linear-gradient(135deg, #8f82f2, #6d5ce7); box-shadow: 0 8px 18px rgba(109, 92, 231, .28); }
.card[data-tone="navy"] .card__icon { background: linear-gradient(135deg, #2c4b60, #0d1f2d); box-shadow: 0 8px 18px rgba(13, 31, 45, .28); }
.card--muted { background: var(--bg-alt); border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.card--muted .card__icon { background: #fff; color: var(--brand); box-shadow: none; border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.card__tag { position: absolute; top: 22px; right: 22px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-100); padding: 4px 10px; border-radius: 999px; }
.card__tag--mint { color: #0e7a5e; background: var(--mint-100); }
.card__tag--violet { color: #4c3fc2; background: var(--violet-100); }
.card--soft { background: var(--bg-alt); box-shadow: none; }

/* --- blocco alternato testo/immagine -------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--flip .split__media { order: -1; }
.split p { font-size: 1.04rem; }
.split .btn { margin-top: 8px; }
.split__media { position: relative; }

/* foto con cornice morbida + chip sovrapposte */
.photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 16 / 11; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 31, 45, 0) 55%, rgba(13, 31, 45, .28) 100%); pointer-events: none; }
.photo__tag {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); color: var(--ink);
  border-radius: 14px; padding: 10px 14px 10px 10px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow);
}
.photo__tag i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.photo__tag i .icon { width: 16px; height: 16px; }
.photo__tag small { display: block; font-weight: 500; color: var(--ink-mute); font-size: .78rem; }
.photo__tag--tl { top: 20px; left: 20px; }
.photo__tag--br { bottom: 20px; right: 20px; }
.photo__tag--bl { bottom: 20px; left: 20px; }
.media-blob { position: absolute; z-index: -1; inset: auto -10% -12% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--brand-100); filter: blur(40px); opacity: .9; }
.media-blob--left { inset: -10% auto auto -12%; background: #e6e2ff; }

/* lista di punti con spunta */
.check-list { list-style: none; margin: 0 0 1.3em; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-size: 1.02rem; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7a5e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* monitor in sede — mockup TV (solo CSS) */
.tv { position: relative; z-index: 1; background: #0f1e29; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06); font-size: 11px; color: var(--ink-soft); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); width: 34%; height: 22px; background: linear-gradient(#1b2e3b, #0f1e29); border-radius: 0 0 12px 12px; }
.tv__screen { background: #f8fbfd; border-radius: 8px; overflow: hidden; }
.tv__bar { background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 10.5px; font-weight: 600; }
.tv__bar b { font-family: var(--font-display); font-size: 12px; letter-spacing: -.01em; }
.tv__bar span { opacity: .9; display: flex; gap: 10px; }
.tv__body { display: grid; grid-template-columns: 1fr 150px; gap: 10px; padding: 10px; }
.tv__tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tv__tabs span { font-size: 9px; font-weight: 600; color: var(--ink-mute); padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tv__tabs span.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.mlist { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px; display: grid; gap: 5px; align-content: start; }
.mlist b { font-size: 10px; color: var(--ink); margin-bottom: 2px; display: flex; align-items: center; gap: 5px; }
.mlist b .icon { width: 12px; height: 12px; color: var(--brand); }
.mlist i { display: flex; justify-content: space-between; font-style: normal; font-size: 8.5px; padding: 4px 6px; border-radius: 5px; background: var(--mint-100); color: #0e7a5e; font-weight: 600; }
.mlist i.is-out { background: #fde8e6; color: #a33b33; }
.mlist i span { opacity: .75; font-weight: 500; }

/* --- passi numerati ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 28px; box-shadow: var(--shadow-sm); }
.step__num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--grad); box-shadow: var(--shadow-brand); margin-bottom: 20px; }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; font-size: .98rem; }
.step::after { content: ""; position: absolute; top: 52px; right: -24px; width: 24px; border-top: 2px dashed var(--line-2); }
.step:last-child::after { display: none; }

/* --- fascia fotografica --------------------------------------------------- */
.band { position: relative; color: #fff; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; isolation: isolate; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 28, 40, .92) 0%, rgba(8, 28, 40, .72) 50%, rgba(12, 80, 105, .55) 100%); }
.band .wrap { max-width: 980px; }
.band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 18ch; }
.band p { color: rgba(255, 255, 255, .86); font-size: 1.15rem; max-width: 56ch; }
.band .eyebrow { color: #9fe2f7; }
.band .eyebrow::before { background: #9fe2f7; }
.band__pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.band__pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); font-size: .92rem; font-weight: 600; }
.band__pills .icon { width: 16px; height: 16px; color: #9fe2f7; }

/* --- callout "Sai che..." ------------------------------------------------- */
.callout {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--amber-100); border: 1px solid #f9dfae;
  border-radius: var(--radius); padding: 20px 24px; margin-top: 8px; color: #5c4310;
}
.callout__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ffc04d, #f4a523); box-shadow: 0 6px 14px rgba(244, 165, 35, .3); }
.callout__icon .icon { width: 21px; height: 21px; }
.callout p { margin: 0; font-size: 1rem; }
.callout strong { color: #8a5a00; }
.callout a { color: #8a5a00; text-decoration: underline; text-underline-offset: 3px; }

/* --- elenco con spunte (card e piani) ------------------------------------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* --- sotto-navigazione (moduli) ------------------------------------------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .15s ease; }
.subnav a:hover, .subnav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.subnav a .icon { width: 16px; height: 16px; }

/* --- prezzi --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 36px 32px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-700); background: var(--brand-100); margin-bottom: 20px; }
.plan__icon .icon { width: 22px; height: 22px; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan__desc { font-size: .95rem; color: var(--ink-mute); margin-bottom: 0; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 6px; }
.plan__amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.04em; }
.plan__currency { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.plan__period { color: var(--ink-mute); font-size: .95rem; }
.plan__note { font-size: .86rem; color: var(--ink-mute); margin-bottom: 22px; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 20px; }
.plan__intro { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
.plan .feature-list { margin-bottom: 28px; font-size: .98rem; }
.plan .feature-list li.is-extra { font-weight: 650; color: var(--brand-700); }
.plan .feature-list li.is-extra::before { background-color: var(--brand); }
.plan .btn { margin-top: auto; width: 100%; }

.plan--featured { background: linear-gradient(165deg, #12354a 0%, #0b1b26 100%); border-color: transparent; color: #b7c8d3; box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__amount, .plan--featured .plan__currency { color: #fff; }
.plan--featured .plan__desc, .plan--featured .plan__period, .plan--featured .plan__note, .plan--featured .plan__intro { color: #8fa6b4; }
.plan--featured hr { border-color: rgba(255, 255, 255, .12); }
.plan--featured .plan__icon { background: rgba(255, 255, 255, .1); color: #9fe2f7; }
.plan--featured .feature-list li { color: #d6e2ea; }
.plan--featured .feature-list li.is-extra { color: #9fe2f7; }
.plan--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(159, 226, 247, .5), transparent 40%, transparent 60%, rgba(109, 92, 231, .4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.plan__badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  white-space: nowrap; box-shadow: var(--shadow-brand); display: inline-flex; gap: 6px; align-items: center;
}
.plan__badge .icon { width: 13px; height: 13px; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; transition: box-shadow .2s ease, border-color .2s ease; }
.faq[open] { box-shadow: var(--shadow); border-color: #c6e3ef; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); transition: transform .25s var(--ease), background-color .2s; }
.faq summary i .icon { width: 15px; height: 15px; }
.faq[open] summary i { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* --- CTA a tutta larghezza ------------------------------------------------ */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; background: var(--grad); padding: clamp(64px, 8vw, 104px) 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 120%, rgba(255, 255, 255, .18), transparent 60%), radial-gradient(ellipse 50% 60% at 85% -20%, rgba(109, 92, 231, .45), transparent 60%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: rgba(255, 255, 255, .92); font-size: 1.12rem; max-width: 52ch; margin-inline: auto; }
.cta__rocket { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.cta__rocket .icon { width: 34px; height: 34px; color: #fff; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.cta__fine { font-size: .9rem !important; color: rgba(255, 255, 255, .78) !important; margin-top: 18px; }

/* --- contatti / form ------------------------------------------------------ */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__aside h2 { margin-bottom: .4em; }
.contact__aside .lead { margin-bottom: 28px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list i { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--brand-700); background: var(--brand-100); }
.contact__list i .icon { width: 20px; height: 20px; }
.contact__list b { display: block; color: var(--ink); font-weight: 650; }
.contact__list span { font-size: .95rem; color: var(--ink-mute); }
.contact__illu { width: 100%; max-width: 360px; margin-top: 12px; }

.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .88rem; font-weight: 650; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fbfdfe; width: 100%; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b9cdd9; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .16); }
.field textarea { resize: vertical; min-height: 140px; }
/* La freccia nativa non è stilabile: la disegniamo noi (currentColor via SVG inline). */
.field select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8d99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 18px 18px;
}
.field--invalid input, .field--invalid textarea, .field--invalid select { border-color: #d8443c; }
.field__error { font-size: .84rem; color: #c8392f; min-height: 0; font-style: normal; }
.field--invalid .field__error { min-height: 1.2em; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { margin-top: .32em; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { padding: 14px 18px; border-radius: 12px; font-size: .95rem; display: none; }
.form__status.is-ok { display: block; background: var(--mint-100); color: #0e6b52; border: 1px solid #b7e6d4; }
.form__status.is-error { display: block; background: #fdeceb; color: #9c2b24; border: 1px solid #f5c6c2; }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.form__foot small { color: var(--ink-mute); font-size: .84rem; }

/* --- attivazione demo (/install/) ----------------------------------------- */
/* Riquadro di conferma che sostituisce il modulo a demo attivata. */
.done {
  display: none; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
}
.done.is-visible { display: block; }
.done__icon {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 24px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #2fd0a6, #17b38c); box-shadow: 0 12px 28px rgba(23, 179, 140, .32);
}
.done__icon .icon { width: 36px; height: 36px; }
.done h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4em; }
.done__mail { display: inline-block; margin: 4px 0 22px; font-weight: 650; color: var(--ink); word-break: break-all; }
.done__steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; text-align: left; counter-reset: done-step; }
.done__steps li { position: relative; padding-left: 42px; color: var(--ink-2); }
.done__steps li::before {
  counter-increment: done-step; content: counter(done-step);
  position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  color: #fff; background: var(--grad);
}

/* Riepilogo di ciò che si ottiene, accanto al modulo. */
.perks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks i { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--brand-700); background: var(--brand-100); }
.perks i .icon { width: 20px; height: 20px; }
.perks b { display: block; color: var(--ink); font-weight: 650; }
.perks span { font-size: .95rem; color: var(--ink-mute); }

/* In colonna singola il modulo va sopra: altrimenti l'elenco dei vantaggi
   costringerebbe a scorrere tutta la pagina prima di poterlo compilare. */
@media (max-width: 900px) {
  .contact--form-first > :first-child { order: 2; }
  .contact--form-first > :last-child { order: 1; }
}

/* --- blog ----------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img { transform: scale(1.03); }
.post-card__media { overflow: hidden; position: relative; }
.post-card__body { padding: 26px 28px 30px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-700); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-mute); margin-bottom: 10px; font-weight: 500; }
.post-meta .icon { width: 15px; height: 15px; }
.post-cat { color: var(--brand-700); background: var(--brand-100); padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.article-hero { position: relative; background: #f7fbfe; padding: clamp(44px, 6vw, 72px) 0 0; }
.article-hero .wrap { position: relative; z-index: 1; max-width: 860px; }
.article-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .5em; }
.article-hero .lead { margin-bottom: 34px; }
.article-cover { max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; transform: translateY(40%); margin-top: -8%; }
.article-cover img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 1.8em; font-size: 1.6rem; }
.article p { font-size: 1.06rem; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article .callout a { text-decoration: underline; }
.article-share .icon { transform: rotate(180deg); }
.article-share .btn-link:hover .icon { transform: rotate(180deg) translateX(3px); }
.article-share { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-mute); }

/* --- pagine legali -------------------------------------------------------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { margin-top: 1.8em; font-size: 1.4rem; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); background: var(--bg-alt); }
.legal code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

/* --- 404 ------------------------------------------------------------------ */
.err { text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.err__illu { width: 100%; max-width: 420px; margin: 0 auto 30px; }
.err__code { font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .3em; color: var(--brand); margin-bottom: 10px; }
.err .hero__actions { justify-content: center; }

/* --- footer --------------------------------------------------------------- */
.site-footer { position: relative; background: var(--bg-deep); color: #94a9b7; padding: clamp(56px, 7vw, 84px) 0 0; font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.site-footer a { color: #d3e1ea; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { display: inline-flex; align-items: center; gap: 8px; }
.footer__list .icon { width: 15px; height: 15px; opacity: .6; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center; font-size: .86rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__credits { width: 100%; font-size: .78rem; color: #6a8190; margin: 0; }

/* --- cookie banner -------------------------------------------------------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: none; gap: 16px; flex-wrap: wrap; align-items: center;
  animation: rise .4s var(--ease);
}
.cookiebar.is-visible { display: flex; }
.cookiebar p { margin: 0; flex: 1 1 260px; font-size: .93rem; display: flex; gap: 12px; align-items: center; }
.cookiebar p .icon { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }
.cookiebar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --- popup informativa privacy -------------------------------------------- */
.privacy-modal {
  border: none; padding: 0; margin: auto; z-index: 300;
  width: min(760px, calc(100vw - 32px)); height: min(80vh, 820px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* Il <dialog> chiuso resta display:none (default UA): il layout flex vale
   solo quando è aperto, altrimenti finirebbe nel flusso della pagina. */
.privacy-modal[open] { display: flex; flex-direction: column; animation: rise .3s var(--ease); }
.privacy-modal::backdrop { background: rgba(13, 31, 45, .55); }
.privacy-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.privacy-modal__close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent;
  color: var(--ink-soft); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease, color .15s ease;
}
.privacy-modal__close:hover, .privacy-modal__close:focus-visible { background: var(--bg-alt); color: var(--ink); }
.privacy-modal__body { flex: 1 1 auto; min-height: 0; }
.privacy-modal__body iframe { width: 100%; height: 100%; border: none; }
@media (max-width: 640px) {
  .privacy-modal { height: min(88vh, 820px); }
}

/* --- animazioni allo scroll ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > :nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-in > :nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > :nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-in > :nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-in > :nth-child(6) { transition-delay: .40s; }
.reveal-stagger.is-in > :nth-child(7) { transition-delay: .48s; }
.reveal-stagger.is-in > :nth-child(8) { transition-delay: .56s; }

.hero-in > * { animation: hero-in .8s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .08s; }
.hero-in > :nth-child(3) { animation-delay: .16s; }
.hero-in > :nth-child(4) { animation-delay: .24s; }
.hero-in > :nth-child(5) { animation-delay: .32s; }
.hero__media { animation: hero-in 1s var(--ease) .2s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero-in > *, .hero__media, .float { animation: none; }
  .btn:hover, .card:hover, .plan:hover { transform: none; }
  .mock { transform: none; }
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .float--1 { left: -10px; } .float--2 { right: -8px; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: 70px; }

  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 14px var(--gutter) 22px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav .has-sub > a { padding: 13px 12px; font-size: 1rem; }
  .has-sub > a .icon { display: none; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    box-shadow: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; margin-left: 14px; padding: 0 0 0 6px;
  }
  .sub a { padding: 8px 10px; }
  .sub__ico { width: 32px; height: 32px; }
  .sub span { display: none; }
  .nav-cta { display: none; }
  .nav .nav-cta--mobile { display: inline-flex; margin-top: 14px; align-self: flex-start; }

  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero__slogan { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__media { max-width: 560px; margin: 12px auto 0; }
  .mock { transform: none; }
  .float { font-size: 11.5px; padding: 10px 12px 10px 10px; }
  .float--1 { left: 0; bottom: 28px; } .float--2 { right: 0; top: 30px; } .float--3 { display: none; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .tv__body { grid-template-columns: 1fr; }
  .mlist { display: none; }
  .article-cover { transform: none; margin-top: 0; padding-top: 24px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .stats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .clients img { height: 44px; }
  .cookiebar { padding: 18px; }
  .cookiebar__actions { width: 100%; }
  .cookiebar__actions .btn { flex: 1; }
  .hero__actions .btn { width: 100%; }
  .mock__stats { grid-template-columns: repeat(2, 1fr); }
  .mweek__head i:nth-child(n+6), .mcol:nth-child(n+6) { display: none; }
  .mweek__head, .mweek__grid { grid-template-columns: repeat(5, 1fr); }
  .float { display: none; }
  .photo__tag { font-size: .82rem; }
  .section-head { margin-bottom: 32px; }
}
