/* DS2 Studio — foglio di stile condiviso del sito (home, network-marketing, use-cases, legali).
   Fonte di verità visiva: design.md. Palette e font allineati ai pitch di Leads (ottobre 2026). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* superfici */
  --ink-900: #0B211C;
  --ink-800: #0F2622;
  --paper:   #F7F8F4;
  --paper-2: #EDF6F2;
  --surface: #FFFFFF;
  --line:    #DBE6E2;
  --line-ink: rgba(244,247,245,0.12);
  /* testo */
  --text:        #15231F;
  --text-body:   #2C3A36;
  --text-muted:  #5F6964;
  --on-ink:      #F4F7F5;
  --on-ink-muted:#B9CCC5;
  /* accenti */
  --green:   #067A57;
  --mint:    #5FE0A9;
  --teal:    #166372;
  --teal-dk: #0F4D59;
  --positive:#0CA678;
  --warn:    #B4560A;
  /* grafici */
  --chart-1:#166372; --chart-2:#0CA678; --chart-3:#57B6C4; --chart-4:#F0A868; --chart-5:#C9D4DC;
  /* font */
  --f-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num:  'Syne', 'Poppins', system-ui, sans-serif;
  /* forma */
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --maxw: 1160px;
  --gutter: 40px;
  --shadow-phone: 0 40px 80px -36px rgba(11,33,28,0.45), 0 18px 36px -24px rgba(11,33,28,0.35);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  background: var(--paper); color: var(--text-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}
.band--ink a:focus-visible, .band--ink button:focus-visible { outline-color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--teal); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── NAV ─────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(247,248,244,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav__in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: 0.22em; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo i { font-style: normal; color: var(--green); }
.site-nav__links { display: flex; align-items: center; gap: 26px; }
.site-nav__links a { font-size: 15px; font-weight: 500; color: var(--text-body); text-decoration: none; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--green); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 2px; }
.lang button { font: 600 12px var(--f-body); letter-spacing: 0.04em; color: var(--text-muted); background: none; border: 0; border-radius: 6px; padding: 5px 8px; cursor: pointer; }
.lang button.active { background: var(--ink-900); color: var(--on-ink); }
.site-nav .btn { padding: 10px 16px; font-size: 14px; }
.site-nav__links a.btn--primary, .site-nav__links a.btn--primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ── BOTTONI ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1.2 var(--f-body); padding: 14px 24px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dk); transform: translateY(-1px); }
.band--ink .btn--primary { background: var(--mint); color: var(--ink-900); }
.band--ink .btn--primary:hover { background: #7BE8BA; }
.btn--ghost { background: transparent; color: var(--text); border-color: #B9C9C3; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.band--ink .btn--ghost { color: var(--on-ink); border-color: rgba(244,247,245,0.35); }
.band--ink .btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.link { font-weight: 600; color: var(--green); text-decoration: none; }
.link::after { content: ' \2192'; }
.link:hover { text-decoration: underline; }
.band--ink .link { color: var(--mint); }

/* ── SEZIONI ─────────────────────────────────────── */
.band { padding: 104px 0; position: relative; }
.band--paper { background: var(--paper); }
.band--tint { background: var(--paper-2); }
.band--white { background: var(--surface); }
.band--ink { background: var(--ink-900); color: var(--on-ink-muted); }
.band--tight { padding: 72px 0; }

.eyebrow {
  font: 600 13px/1.3 var(--f-head); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px; display: block;
}
.band--ink .eyebrow { color: var(--mint); }

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--f-head); color: var(--text); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--on-ink); }
h1 em, h2 em, .h1 em, .h2 em { font-style: normal; color: var(--green); }
.band--ink h1 em, .band--ink h2 em { color: var(--mint); }
.h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; max-width: 22ch; }
.h2--wide { max-width: 30ch; }
.h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-body); max-width: 60ch; margin-top: 20px; }
.band--ink .lead { color: var(--on-ink-muted); }
.muted { color: var(--text-muted); }
.band--ink .muted { color: var(--on-ink-muted); }
.caption { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.band--ink .caption { color: var(--on-ink-muted); }
.center { text-align: center; }
.center .h2, .center .lead { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-s { margin-top: 24px; } .mt { margin-top: 48px; } .mt-l { margin-top: 64px; }

/* ── CARD ────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card--tint { background: var(--paper-2); border-color: transparent; }
.band--ink .card { background: var(--ink-800); border-color: var(--line-ink); }
.card h3 { margin-bottom: 4px; }
.card .sub { font-style: italic; color: var(--green); font-size: 15px; margin-bottom: 12px; }
.band--ink .card .sub { color: var(--mint); }
.card p { font-size: 16px; line-height: 1.6; }
.num-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font: 600 15px/32px var(--f-head); text-align: center; margin-bottom: 16px; }
.band--ink .num-badge { background: var(--mint); color: var(--ink-900); }
.step-n { font: 600 14px var(--f-head); color: var(--green); letter-spacing: 0.06em; margin-bottom: 10px; display: block; }
.band--ink .step-n { color: var(--mint); }
.rule-top { border-top: 2px solid var(--positive); padding-top: 18px; }
.band--ink .rule-top { border-top-color: var(--mint); }

/* ── HERO ────────────────────────────────────────── */
.hero { padding: 148px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero .lead { color: var(--on-ink-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__visual { position: relative; display: flex; justify-content: center; min-height: 600px; }

/* striscia numeri */
.proof { border-top: 1px solid var(--line-ink); margin-top: 72px; padding-top: 36px; }
.proof__lead { color: var(--on-ink); font-size: 17px; margin-bottom: 26px; }
.proof__lead b { color: var(--mint); font-weight: 600; }

/* ── NUMERI (StatCard) ───────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { border-top: 2px solid var(--positive); padding-top: 18px; }
.band--ink .stat { border-top-color: var(--mint); }
.stat__v { font: 700 clamp(40px, 4.6vw, 60px)/1 var(--f-num); color: var(--green); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.band--ink .stat__v { color: var(--mint); }
.stat__l { font-size: 16px; line-height: 1.45; color: var(--text); margin-top: 12px; max-width: 26ch; }
.band--ink .stat__l { color: var(--on-ink); }
.stat__b { font-size: 13px; line-height: 1.45; color: var(--text-muted); margin-top: 8px; max-width: 34ch; }
.band--ink .stat__b { color: var(--on-ink-muted); }
.stat--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; border-top: 1px solid var(--line); }
/* numeri da verificare: solo in bozza */
[data-num][data-stato="da-verificare"] { display: none !important; }
html.draft [data-num][data-stato="da-verificare"] { display: block !important; outline: 2px dashed var(--warn); outline-offset: 6px; position: relative; }
html.draft [data-num][data-stato="da-verificare"]::after { content: 'da verificare'; position: absolute; top: -10px; right: 0; font: 600 11px var(--f-body); background: var(--warn); color: #fff; padding: 2px 6px; border-radius: 4px; }

/* numero grande + testo (81%-style) */
.bignum { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 28px 32px; border: 1px solid var(--line); }
.bignum__v { font: 700 clamp(56px, 7vw, 84px)/1 var(--f-num); color: var(--green); letter-spacing: -0.02em; }
.bignum__l { font-size: 19px; line-height: 1.45; color: var(--text); }
.bignum__l small { display: block; font-size: 16px; color: var(--text-body); margin-top: 6px; }

/* ── GRAFICO A BARRA IMPILATA ───────────────────── */
.stackbar { margin-top: 28px; }
.stackbar__bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--line); }
.stackbar__bar span { display: block; height: 100%; }
.stackbar__bar span + span { border-left: 2px solid var(--surface); }
.stackbar__legend { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.stackbar__legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-body); }
.stackbar__legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.stackbar__legend b { margin-left: auto; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.c1 { background: var(--chart-1); } .c2 { background: var(--chart-2); } .c3 { background: var(--chart-3); } .c4 { background: var(--chart-4); } .c5 { background: var(--chart-5); }

/* ── CHIP ────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; color: var(--text-body); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.chip--struck { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(21,35,31,0.45); background: rgba(219,230,226,0.6); border-color: transparent; }
.band--ink .chip { background: var(--ink-800); color: var(--on-ink); border-color: var(--line-ink); }

/* ── ICONE ───────────────────────────────────────── */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-box { width: 48px; height: 48px; border-radius: 12px; background: var(--paper-2); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.band--tint .ico-box { background: var(--surface); }
.band--ink .ico-box { background: rgba(95,224,169,0.12); color: var(--mint); }

/* lista fonti */
.sources { list-style: none; display: grid; gap: 18px; }
.sources li { display: flex; gap: 16px; align-items: flex-start; }
.sources b { display: block; font: 600 18px/1.3 var(--f-head); color: var(--text); }
.sources span { font-size: 16px; color: var(--text-body); }

/* ── SPLIT TESTO + VISUAL ───────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--rev > :first-child { order: 2; }
.visual { display: flex; justify-content: center; position: relative; }

/* ── TELEFONO (PhoneFrame) ──────────────────────── */
.phone {
  width: var(--pw); height: calc(var(--pw) * 2.07); flex: none;
  background: #16191B; border-radius: calc(var(--pw) * 0.15); padding: calc(var(--pw) * 0.034);
  box-shadow: var(--shadow-phone); position: relative;
}
.phone--s { --pw: 260px; }
/* --pw si decide sul contenitore: così lo spazio è riservato anche prima che screens.js monti il telefono */
[data-screen] { --pw: 300px; }
[data-screen][data-size="s"] { --pw: 260px; }
[data-screen]:empty { width: var(--pw); height: calc(var(--pw) * 2.07); }
[data-screen="heroDeck"]:empty { width: 0; height: 0; }
[data-dash]:empty { min-height: 640px; }
[data-num]:empty { min-height: 150px; }
[data-num][data-view="bignum"]:empty { min-height: 110px; }
[data-num][data-view="stack"]:empty { min-height: 240px; }
.phone__screen {
  width: 100%; height: 100%; border-radius: calc(var(--pw) * 0.12); overflow: hidden;
  background: #F3F5F7; position: relative; display: flex; flex-direction: column;
  font-family: var(--f-body); color: #1B2A2E; font-size: 12px; line-height: 1.35;
}
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; background: #16191B; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__status { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 0; font-size: 11px; font-weight: 700; color: #111; }
.phone__status i { display: flex; gap: 3px; align-items: center; }
.phone__status i::before { content: ''; width: 14px; height: 8px; border: 1.5px solid #111; border-radius: 2px; }
.phone__body { flex: 1; overflow: hidden; padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.phone__body > * { flex-shrink: 0; }
.phone__tabs { flex: none; display: flex; justify-content: space-around; padding: 8px 4px 14px; background: #fff; border-top: 1px solid #E3E8EB; }
.phone__tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8.5px; color: #56646B; }
.phone__tabs span.on { color: var(--teal); font-weight: 700; }
.phone__tabs .ico { width: 15px; height: 15px; stroke-width: 1.7; }
.phone--dark .phone__screen { background: linear-gradient(180deg, #1C7186 0%, #14505F 100%); color: #fff; }
.phone--dark .phone__status { color: #fff; }
.phone--dark .phone__status i::before { border-color: #fff; }
.shots-cap { font-size: 13px; color: var(--text-muted); margin-top: 18px; text-align: center; }
.band--ink .shots-cap { color: var(--on-ink-muted); }

/* UI dell'app dentro il telefono */
.ui-title { font: 700 17px/1.2 var(--f-num); color: #13232A; letter-spacing: -0.01em; }
.ui-title small { color: var(--teal); font-size: 13px; margin-right: 2px; }
.ui-sub { font-size: 10.5px; color: #56646B; }
.ui-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #56646B; display: flex; align-items: center; gap: 6px; }
.ui-tag { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: #E1F0F2; border-radius: 4px; padding: 2px 6px; }
.ui-tag--g { color: #0A7A54; background: #DDF5EA; }
.ui-tag--w { color: #8F4407; background: #FCEBDD; }
.ui-tag--o { color: #9A4A09; background: #FDEFD9; }
.ui-head { padding: 4px 2px 8px; border-bottom: 1px solid #E3E8EB; margin: 0 -14px 4px; padding-left: 16px; padding-right: 16px; background: #fff; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-tile { background: #fff; border: 1px solid #E3E8EB; border-radius: 12px; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ui-tile.full { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; }
.ui-tile.done { background: #EEF9F3; border-color: #7DD3AE; }
.ui-tile .ico { width: 15px; height: 15px; color: var(--teal); }
.ui-tile.done .ico { color: var(--positive); }
.ui-tile b { font-size: 10px; font-weight: 600; color: #2C3A40; }
.ring { width: 44px; height: 44px; position: relative; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: #E3E8EB; }
.ring .fg { stroke: var(--teal); stroke-linecap: round; }
.ui-tile.done .ring .fg { stroke: var(--positive); }
.ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 12px/1 var(--f-num); color: #13232A; }
.ring span small { font: 500 7px var(--f-body); color: #56646B; margin-top: 1px; }
.ui-row { background: #fff; border: 1px solid #E3E8EB; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.ui-row--hl { border-color: var(--teal); background: #F0F8F9; }
.ui-row .grow { flex: 1; min-width: 0; }
.ui-row b { display: block; font-size: 11.5px; color: #13232A; }
.ui-row small { display: block; font-size: 10px; color: #56646B; }
.ui-row .chev { color: #56646B; font-size: 14px; }
.ui-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: #E1F0F2; color: var(--teal); }
.ui-ic .ico { width: 15px; height: 15px; }
.ui-ic--t { background: var(--teal); color: #fff; }
.ui-ic--o { background: #FDEFD9; color: var(--warn); }
.ui-ic--g { background: #DDF5EA; color: #0A7A54; }
.av { width: 28px; height: 28px; border-radius: 50%; background: #E6EEF1; color: #3A4E57; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ui-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.ui-pills span { font-size: 9.5px; font-weight: 600; color: #4B5A62; background: #E8EDF0; border-radius: 6px; padding: 4px 8px; }
.ui-pills span.on { background: var(--teal); color: #fff; }
.ui-btn { font-size: 10px; font-weight: 700; border-radius: 7px; padding: 6px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ui-btn .ico { width: 11px; height: 11px; stroke-width: 2.2; }
.ui-btn--t { background: var(--teal); color: #fff; }
.ui-btn--wa { background: #107A3E; color: #fff; }
.ui-btn--o { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-kpis div { background: #fff; border: 1px solid #E3E8EB; border-radius: 10px; padding: 8px 4px; text-align: center; }
.ui-kpis b { display: block; font: 700 16px/1.1 var(--f-num); color: #13232A; }
.ui-kpis small { font-size: 8.5px; color: #56646B; }
.ui-big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-big2 div { background: #fff; border: 1px solid #E3E8EB; border-radius: 12px; padding: 14px 6px; text-align: center; }
.ui-big2 b { display: block; font: 700 24px/1 var(--f-num); color: #13232A; }
.ui-big2 small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #56646B; }

/* carta contatto (mazzo) */
.cc { background: #fff; border-radius: 16px; border: 1px solid #E3E8EB; box-shadow: 0 10px 26px -14px rgba(19,35,42,0.35); padding: 16px 16px 18px; position: relative; }
.cc__name { font: 700 17px/1.2 var(--f-num); color: #13232A; margin: 6px 0 10px; }
.cc__line { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #4B5A62; margin-bottom: 5px; }
.cc__line .ico { width: 11px; height: 11px; }
.cc__note { font-size: 10.5px; font-style: italic; color: #4B5A62; margin-top: 10px; line-height: 1.45; }
.stamp { position: absolute; top: 12px; right: 12px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; border: 1.5px solid; border-radius: 6px; padding: 2px 7px; transform: rotate(6deg); }
.stamp--keep { color: #067A57; border-color: #067A57; background: #F0FBF6; }
.stamp--skip { color: #B42F2F; border-color: #B42F2F; background: #FDF1F1; transform: rotate(-6deg); right: auto; left: 12px; }
.deck-btns { display: flex; justify-content: center; gap: 16px; margin-top: 4px; }
.deck-btns span { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid; }
.deck-btns .x { color: #D24545; border-color: #F0B5B5; background: #FCEDED; }
.deck-btns .v { color: var(--positive); border-color: #A8E2CB; background: #E8F7F0; }
.deck-btns .ico { width: 16px; height: 16px; stroke-width: 2.4; }

/* mappa territorio */
.ui-map { height: 120px; border-radius: 12px; border: 1px solid #E3E8EB; background:
  linear-gradient(#EEF2F4 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, #EEF2F4 1px, transparent 1px) 0 0 / 22px 22px, #F8FAFB; position: relative; overflow: hidden; }
.ui-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* deck animato dell'hero (fuori dal telefono) */
.deck { position: absolute; left: -8px; bottom: -34px; width: 236px; height: 190px; z-index: 4; }
.deck .cc { position: absolute; inset: 0; transform-origin: 50% 120%; }
.deck .cc:nth-child(2) { transform: translateY(14px) scale(0.94); }
.deck .cc .stamp { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .deck .cc { animation: deck 10s ease-in-out infinite; }
  .deck .cc:nth-child(1) { --dx: 130%; --rot: 14deg; }
  .deck .cc:nth-child(2) { --dx: -130%; --rot: -14deg; animation-delay: -5s; }
  .deck .cc .stamp { animation: stamp 10s ease-in-out infinite; }
  .deck .cc:nth-child(2) .stamp { animation-delay: -5s; }
}
@media (prefers-reduced-motion: reduce) {
  .deck .cc:nth-child(1) { z-index: 2; }
  .deck .cc:nth-child(1) .stamp { opacity: 1; }
}
@keyframes deck {
  0%, 30%  { transform: translateY(0) scale(1); opacity: 1; z-index: 2; }
  42%      { transform: translateX(var(--dx)) rotate(var(--rot)); opacity: 0; z-index: 2; }
  43%      { transform: translateY(14px) scale(0.94); opacity: 0; z-index: 1; }
  55%, 80% { transform: translateY(14px) scale(0.94); opacity: 1; z-index: 1; }
  92%      { transform: translateY(0) scale(1); opacity: 1; z-index: 1; }
  100%     { transform: translateY(0) scale(1); opacity: 1; z-index: 2; }
}
@keyframes stamp {
  0%, 18% { opacity: 0; }
  26%, 40% { opacity: 1; }
  43%, 100% { opacity: 0; }
}

/* fumetti e notifiche fuori dal telefono */
.float { position: absolute; z-index: 4; background: #fff; border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(11,33,28,0.45); border: 1px solid #E3E8EB; padding: 12px; font-size: 12px; color: #1B2A2E; width: 230px; }
.float--wa { background: #E7F7EC; border-color: #C9EBD4; }
.float__h { font-size: 10.5px; font-weight: 700; color: #0E7A3D; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.float__h .ico { width: 13px; height: 13px; }
.float__msg { background: #fff; border-radius: 10px; padding: 9px 10px; font-size: 11.5px; line-height: 1.45; }
.float__foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.notif { background: rgba(240,244,246,0.94); border-radius: 14px; padding: 9px 11px; display: flex; gap: 9px; color: #13232A; }
.notif .lg { width: 24px; height: 24px; border-radius: 6px; background: var(--teal); color: #fff; font: 700 11px/24px var(--f-num); text-align: center; flex: none; }
.notif small { display: flex; justify-content: space-between; font-size: 8.5px; color: #56646B; font-weight: 700; letter-spacing: 0.04em; }
.notif b { display: block; font-size: 11px; margin: 1px 0; }
.notif p { font-size: 10px; color: #3B4A51; line-height: 1.35; }
.lock-time { text-align: center; margin-top: 18px; }
.lock-time small { font-size: 11px; opacity: 0.85; }
.lock-time b { display: block; font: 300 52px/1.05 var(--f-body); letter-spacing: -0.02em; }

/* foglio a mano (lista nomi) */
.notebook {
  width: 250px; height: 330px; flex: none; background:
    linear-gradient(90deg, transparent 34px, #E8A0A0 34px, #E8A0A0 35.5px, transparent 35.5px),
    repeating-linear-gradient(180deg, #FFFDF8 0 27px, #D7E2EC 27px 28px);
  border-radius: 4px; box-shadow: 0 30px 50px -30px rgba(0,0,0,0.5); transform: rotate(-5deg);
  padding: 22px 16px 0 46px; font: italic 500 16px/28px 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; color: #2B3550;
}
.notebook b { display: block; font-weight: 600; margin-bottom: 2px; }
.notebook s { text-decoration-color: #C4473A; text-decoration-thickness: 2px; color: #7A8296; }
.notebook ol { padding-left: 18px; }
.pill-tag { display: inline-block; font: 600 14px var(--f-head); padding: 6px 18px; border-radius: 999px; background: #E3EAE6; color: var(--ink-900); }
.pill-tag--mint { background: var(--mint); }

/* ── DASHBOARD (DashboardFrame) ─────────────────── */
.dash { background: #F3F5F7; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.08); color: #1B2A2E; font-family: var(--f-body); font-size: 12px; text-align: left; }
.dash__bar { height: 32px; background: #E5EAED; display: flex; align-items: center; gap: 6px; padding: 0 12px; position: relative; }
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; }
.dash__bar i:nth-child(1) { background: #EE6A5F; } .dash__bar i:nth-child(2) { background: #F5BD4F; } .dash__bar i:nth-child(3) { background: #61C454; }
.dash__bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 11px; color: #5E6B72; }
.dash__body { display: grid; grid-template-columns: 170px 1fr; min-height: 420px; }
.dash__side { background: var(--teal); color: #DDEDEF; padding: 18px 12px; }
.dash__side .brand { font: 600 18px var(--f-head); color: #fff; padding: 0 8px; }
.dash__side .brand small { display: block; font: 600 8.5px var(--f-body); letter-spacing: 0.14em; color: #A9D0D6; margin-top: 2px; }
.dash__side ul { list-style: none; margin-top: 22px; display: grid; gap: 2px; }
.dash__side li { font-size: 12px; padding: 8px 10px; border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.dash__side li.on { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; }
.dash__side .ico { width: 14px; height: 14px; }
.dash__main { padding: 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dash__title { display: block; font: 600 18px var(--f-head); color: #13232A; }
.dash__top small { font-size: 10.5px; color: #56646B; }
.dash__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.dash__filters span { background: #fff; border: 1px solid #DDE3E6; border-radius: 7px; padding: 5px 9px; font-size: 10px; color: #4B5A62; }
.dash__filters b { color: #13232A; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash__kpi { background: #fff; border: 1px solid #E3E8EB; border-radius: 10px; padding: 11px 12px; }
.dash__kpi small { font-size: 10px; color: #56646B; }
.dash__kpi b { display: block; font: 700 20px/1.2 var(--f-num); color: #13232A; margin: 2px 0 4px; }
.dash__kpi em { font-style: normal; font-size: 9px; font-weight: 700; color: #0A7A54; background: #DDF5EA; border-radius: 4px; padding: 1px 5px; }
.dash__kpi em.n { color: #56646B; background: none; padding: 0; font-weight: 500; }
.dash__two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; }
.dash__panel { background: #fff; border: 1px solid #E3E8EB; border-radius: 10px; padding: 12px 14px; min-width: 0; overflow-x: auto; }
.dash__ptitle { font-size: 11.5px; font-weight: 700; color: #13232A; margin-bottom: 10px; display: flex; justify-content: space-between; }
.dash__ptitle small { font-weight: 400; color: #56646B; }
.fbar { display: grid; grid-template-columns: 110px 1fr 46px; gap: 8px; align-items: center; font-size: 10.5px; margin-bottom: 7px; color: #2C3A40; }
.fbar i { height: 10px; border-radius: 3px; background: #EDF1F3; position: relative; overflow: hidden; }
.fbar i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--teal); border-radius: 3px; }
.fbar i.g::before { background: var(--positive); }
.fbar b { text-align: right; font-variant-numeric: tabular-nums; }
.dash__legend { list-style: none; display: grid; gap: 4px; margin-top: 10px; }
.dash__legend li { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #2C3A40; }
.dash__legend i { width: 9px; height: 9px; border-radius: 2px; }
.dash__legend b { margin-left: auto; }
.dash__alert { border-radius: 8px; padding: 7px 9px; font-size: 10.5px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.dash__alert.w { background: #FDF0E4; color: #6B3306; }
.dash__alert.g { background: #E6F6EE; color: #0A5A3E; }
.dash__alert .ico { width: 12px; height: 12px; }
.dash table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.dash th { text-align: left; font-weight: 500; color: #56646B; padding: 4px 6px; border-bottom: 1px solid #E3E8EB; white-space: nowrap; }
.dash td { padding: 7px 6px; border-bottom: 1px solid #EEF1F3; color: #2C3A40; white-space: nowrap; }
.dash td.who { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #13232A; }
.dash td .av { width: 20px; height: 20px; font-size: 7.5px; }
.tbar { display: inline-block; width: 70px; height: 5px; border-radius: 3px; background: #EDF1F3; vertical-align: middle; margin-right: 5px; position: relative; overflow: hidden; }
.tbar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--teal); }
.tbar.g::before { background: var(--positive); } .tbar.w::before { background: var(--chart-4); }
.st { font-size: 8.5px; font-weight: 700; letter-spacing: 0.05em; border-radius: 4px; padding: 2px 6px; }
.st.top { background: #E1F0F2; color: var(--teal); } .st.ok { background: #DDF5EA; color: #0A7A54; } .st.w { background: #FCEBDD; color: #8F4407; }

/* ── FUNNEL NM ───────────────────────────────────── */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.funnel .card { padding: 22px 20px; display: flex; flex-direction: column; min-height: 230px; }
.funnel__top { display: flex; justify-content: space-between; align-items: center; color: var(--green); }
.funnel__top span { font: 600 14px var(--f-head); }
.funnel h3 { margin-top: 14px; font-size: 21px; }
.funnel__loss { margin-top: auto; padding-top: 14px; border-top: 1px dashed #E8B98A; color: var(--warn); font-size: 15px; line-height: 1.4; }

/* ── CAROSELLO (mobile) ─────────────────────────── */
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
.use { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.use [data-screen] { --pw: 236px; }
.use h3 { margin-bottom: 10px; }

/* ── FORM ────────────────────────────────────────── */
.form { max-width: 720px; display: grid; gap: 18px; margin-top: 36px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--f-body); color: var(--text); background: var(--surface);
  border: 1px solid #B9C9C3; border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid rgba(22,99,114,0.25); outline-offset: 0; }
.form-ok { display: none; background: var(--paper-2); border: 1px solid #9FD9C0; color: var(--text); border-radius: var(--r); padding: 18px 20px; margin-top: 30px; max-width: 720px; }

/* ── TEAM / REFERRAL ─────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; margin-top: 36px; }
.team__card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.team__card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.team__card b { display: block; font: 600 18px var(--f-head); color: var(--text); }
.team__card span { font-size: 15px; color: var(--text-muted); }
.referral { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.referral__badge { font: 700 64px/1 var(--f-num); color: var(--green); }

/* ── CTA BOX ─────────────────────────────────────── */
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--ink-800); border: 1px solid var(--line-ink); border-radius: var(--r-lg); padding: 32px 36px; }
.cta-box p { color: var(--on-ink); font: 500 21px/1.4 var(--f-head); max-width: 34ch; }
.cta-box small { display: block; font: 400 15px var(--f-body); color: var(--on-ink-muted); margin-top: 6px; }
.band--paper .cta-box, .band--tint .cta-box { background: var(--ink-900); }

/* box privacy */
.note-box { display: flex; gap: 14px; align-items: flex-start; background: rgba(95,224,169,0.08); border: 1px solid rgba(95,224,169,0.25); border-radius: var(--r); padding: 18px 20px; color: var(--on-ink-muted); }
.note-box b { color: var(--on-ink); }
.note-box .ico { color: var(--mint); margin-top: 2px; }
.band--paper .note-box, .band--tint .note-box { background: var(--paper-2); border-color: var(--line); color: var(--text-body); }
.band--paper .note-box b { color: var(--text); }
.band--paper .note-box .ico { color: var(--green); }

/* ── CASI ────────────────────────────────────────── */
.case-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 44px; }
.case-logo { height: 40px; width: auto; margin-bottom: 18px; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.mini-cards--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mini small { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.mini b { display: block; font: 600 17px/1.3 var(--f-head); color: var(--text); margin-bottom: 6px; }
.mini p { font-size: 15px; line-height: 1.5; }
.logos { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.logos img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.8; }
.measure { background: var(--surface); border: 1px dashed #9FC7B8; border-radius: var(--r-lg); padding: 26px 28px; }
.measure h3 { font-size: 18px; margin-bottom: 8px; }
.measure ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 4px; }
.versions .card { display: flex; flex-direction: column; gap: 12px; }
.versions .card .link { margin-top: auto; }
.custom-list { list-style: none; display: grid; gap: 10px; }
.custom-list li { padding-left: 22px; position: relative; }
.custom-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--positive); }
.band--ink .custom-list li::before { background: var(--mint); }
.band--ink .custom-list li { color: var(--on-ink); }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--ink-900); color: var(--on-ink-muted); padding: 44px 0; border-top: 1px solid var(--line-ink); }
.site-footer__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: var(--on-ink); }
.site-footer .logo i { color: var(--mint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; align-items: center; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav__links a.hide-md { display: none; }
  .uses { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .hero__grid, .split, .case-feature { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .hero__visual { min-height: 0; padding-bottom: 20px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .site-nav.open .site-nav__links { display: flex; }
  .site-nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav__links a.hide-md { display: block; }
  .site-nav__links .lang { margin: 16px 0 12px; align-self: flex-start; }
  .site-nav__links .btn { margin-top: 4px; padding: 14px; border-bottom: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .band { padding: 72px 0; }
  .band--tight { padding: 56px 0; }
  .hero { padding: 112px 0 64px; }
  .grid-2, .grid-3, .grid-4, .form__row, .team { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel .card { min-height: 0; }
  .card { padding: 22px; }
  .bignum { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .referral { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .case-feature { padding: 24px; gap: 28px; }
  .cta-box { padding: 26px 22px; }
  .proof { margin-top: 48px; }
  /* carosello orizzontale con snap */
  .uses { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .uses::-webkit-scrollbar { display: none; }
  .use { flex: 0 0 82%; scroll-snap-align: center; grid-template-columns: 1fr; justify-items: center; text-align: left; gap: 18px; }
  .use [data-screen] { --pw: 230px; }
  .dash__two { grid-template-columns: 1fr; }
  .dash__main { padding: 14px; }
  .dash .hide-s { display: none; }
  .fbar { grid-template-columns: 92px 1fr 40px; }
  .hero__visual [data-screen] { --pw: 268px; }
  [data-dash]:empty { min-height: 1100px; }
  .deck { left: 50%; margin-left: -168px; width: 210px; height: 176px; bottom: -20px; }
  .float { width: 210px; }
}
@media (max-width: 400px) {
  .funnel { grid-template-columns: 1fr; }
  .hero__visual [data-screen] { --pw: 250px; }
  .deck { margin-left: -150px; width: 190px; }
}

/* ── NETWORK MARKETING: composizioni con telefono ───────────── */
.visual--two { gap: 28px; }
.visual .float--br { right: -12px; bottom: 56px; }
.visual .float--bl { left: -12px; bottom: 80px; }
.nb { display: flex; align-items: center; justify-content: center; }
.nb__col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nb__col--paper { margin-right: -54px; z-index: 0; }
.nb__col--app { z-index: 1; }
.grp { width: 250px; }
.grp__h { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: #56646B; margin-bottom: 8px; }
.grp__alert { background: #FDF0E4; border: 1px solid #F6D2B0; border-radius: 10px; padding: 9px 10px; display: flex; gap: 8px; }
.grp__alert .ico { width: 14px; height: 14px; color: var(--warn); margin-top: 1px; }
.grp__alert b { display: block; font-size: 11.5px; }
.grp__alert small { font-size: 10px; color: #56646B; }
.grp__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.grp__ok { background: #E6F6EE; border-radius: 10px; padding: 8px 10px; font-size: 10.5px; display: flex; gap: 6px; align-items: center; color: #0A5A3E; }
.grp__ok .ico { width: 12px; height: 12px; }
.bullet-strong { font: 600 19px/1.45 var(--f-head); color: var(--green); margin-top: 22px; }
.band--ink .bullet-strong { color: var(--mint); }
@media (max-width: 960px) {
  .nb__col--paper { margin-right: -70px; }
}
@media (max-width: 720px) {
  .visual { flex-direction: column; align-items: center; }
  .visual .float { position: relative; left: auto; right: auto; bottom: auto; top: auto; margin-top: -56px; }
  .visual--two > :first-child { display: none; }
  .nb { flex-direction: column; }
  .nb__col--paper { margin: 0 0 0; transform: scale(0.85); transform-origin: 50% 0; }
  .notebook { height: 290px; }
}

/* ══ v2 (2026-10-13): meno testo, più respiro, animazioni ═════════════════════
   Titoli corti e centrati, una riga sotto, un elemento visivo per blocco.
   Tutte le animazioni si spengono con prefers-reduced-motion. */

.band--xl { padding: 128px 0; }
.head-c { text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.head-c .h2, .head-c .lead { margin-left: auto; margin-right: auto; }
.lead--s { font-size: 17px; margin-top: 14px; }

/* nav: diventa una barra sospesa quando si scorre */
.site-nav { transition: top .3s, left .3s, right .3s, border-radius .3s, box-shadow .3s, background .3s; }
.site-nav.scrolled { top: 10px; left: 16px; right: 16px; max-width: 1200px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px -18px rgba(11,33,28,0.35); background: rgba(255,255,255,0.9); }
@media (max-width: 860px) { .site-nav.scrolled { top: 8px; left: 8px; right: 8px; } .site-nav.scrolled .site-nav__links { border-radius: 0 0 16px 16px; } }

/* pillola sopra il titolo */
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(244,247,245,0.22); border-radius: 999px; padding: 7px 16px; font-size: 14px; color: var(--on-ink); margin-bottom: 26px; }
.pill .ico { width: 16px; height: 16px; color: var(--mint); }
.pill b { font-weight: 600; color: var(--mint); }
.micro { font-size: 14px; color: var(--on-ink-muted); margin-top: 14px; }

/* titolo che si scrive: il testo intero occupa già il suo spazio (niente layout shift) */
.typed .t-off { color: transparent; }
.typed .caret { position: relative; }
.typed .caret::after { content: ""; position: absolute; left: 2px; top: 0.12em; width: 3px; height: 0.9em; background: currentColor; animation: caret 1s steps(1) infinite; }
.typed.done .caret::after { animation: caret 1s steps(1) 3, caretOut 0s 3s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caretOut { to { opacity: 0; } }

/* comparsa allo scroll (la classe .rv la mette site.js: senza JS tutto resta visibile) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv .stackbar__bar { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.2,.7,.2,1) .25s; }
.rv.in .stackbar__bar { clip-path: inset(0 0 0 0); }
.rv .fbar i::before, .rv .tbar::before { width: 0; transition: width 1.3s cubic-bezier(.2,.7,.2,1) .35s; }
.rv.in .fbar i::before, .rv.in .tbar::before { width: var(--w); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .rv .stackbar__bar { clip-path: none; transition: none; }
  .rv .fbar i::before, .rv .tbar::before { width: var(--w); transition: none; }
  .site-nav { transition: none; }
}

/* striscia di prova sotto l'hero */
.proofbar { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 56px; align-items: center; }
.proofbar__who small { display: block; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.proofbar__who img { height: 38px; width: auto; margin-bottom: 14px; }
.proofbar__who p { font-size: 15px; color: var(--text-body); line-height: 1.5; margin-bottom: 10px; }
.proofbar .stats { gap: 28px; }
.proofbar .stat__v { font-size: clamp(34px, 3.4vw, 46px); }

/* passi con la linea che si disegna */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; text-align: center; }
.steps::before { content: ""; position: absolute; top: 5px; left: 16.6%; right: 16.6%; height: 1px; background: #B9C9C3; transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.steps.in::before, .in .steps::before { transform: scaleX(1); }
.step { position: relative; }
.step__dot { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--green); margin: 0 auto 20px; box-shadow: 0 0 0 6px var(--paper); }
.band--tint .step__dot { box-shadow: 0 0 0 6px var(--paper-2); }
.step small { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--text-body); max-width: 30ch; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .steps::before { transform: none; transition: none; } }

/* schede con telefono che cambiano da sole */
.tabs { display: grid; grid-template-columns: minmax(0, 480px) auto; justify-content: center; gap: 96px; align-items: center; margin-top: 56px; }
.tabs__list { display: grid; gap: 10px; }
.tab { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 18px 20px; cursor: pointer; font: inherit; color: inherit; position: relative; overflow: hidden; transition: background .25s, border-color .25s; }
.tab b { display: block; font: 600 18px/1.3 var(--f-head); color: var(--text-muted); transition: color .25s; }
.tab span { display: block; font-size: 15px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s; }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); }
.tab[aria-selected="true"] b { color: var(--text); }
.tab[aria-selected="true"] span { max-height: 80px; opacity: 1; color: var(--text-body); }
.tab__bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; }
.tab[aria-selected="true"] .tab__bar::before { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: left; }
.tabs.auto .tab[aria-selected="true"] .tab__bar::before { animation: tabbar var(--tab-ms, 5000ms) linear forwards; }
@keyframes tabbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tabs.paused .tab__bar::before { animation-play-state: paused !important; }
.tab:hover b { color: var(--text); }
.tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tabs__stage { position: relative; }
.tabs__panel { transition: opacity .5s, transform .5s; }
.tabs__panel:not(.is-on) { position: absolute; inset: 0; opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; visibility: hidden; }
.band--ink .tab b, .band--ink .tab span { color: var(--on-ink-muted); }
.band--ink .tab[aria-selected="true"] { background: var(--ink-800); border-color: var(--line-ink); }
.band--ink .tab[aria-selected="true"] b { color: var(--on-ink); }
.band--ink .tab[aria-selected="true"] span { color: var(--on-ink-muted); }
.band--ink .tab[aria-selected="true"] .tab__bar::before { background: var(--mint); }
.band--ink .tab:hover b { color: var(--on-ink); }
.tabs__stage .float { right: -40px; bottom: 60px; }
@media (prefers-reduced-motion: reduce) { .tabs__panel { transition: none; } }

/* card dell'offerta divisa a metà */
.offer { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 70px -40px rgba(11,33,28,0.35); margin-top: 56px; }
.offer__dark { padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.offer__dark .stat { border: 0; padding: 0; }
.offer__dark .stat__b { display: none; } /* base "processo DS2": non aggiunge niente qui */
.offer__dark .stat__v { font-size: clamp(56px, 6vw, 80px); }
.offer__dark .btn { margin-top: auto; align-self: flex-start; }
.offer__light { padding: 44px; }
.offer__light h3 { font: 600 13px var(--f-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.offer__steps { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.offer__steps b { display: block; font: 600 17px var(--f-head); color: var(--text); }
.offer__steps span { font-size: 15px; color: var(--text-body); }

/* FAQ a fisarmonica */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 500 18px/1.4 var(--f-head); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-body); color: var(--text-muted); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.faq details p { padding: 0 40px 22px 0; font-size: 16px; color: var(--text-body); }
.faq details[open] p { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .faq details[open] p { animation: none; } .faq summary::after { transition: none; } }

/* fascia finale scura con angoli arrotondati */
.band--final { border-radius: 36px 36px 0 0; }
.band--final .field label { color: var(--on-ink); }
.band--final .field input, .band--final .field select, .band--final .field textarea { border-color: transparent; }
.band--final .form, .band--final .form-ok { margin-left: auto; margin-right: auto; }
.band--final a:not(.btn) { color: var(--mint); }
.contact-line { text-align: center; margin-top: 18px; color: var(--on-ink-muted); }
.band--ink .team__card { background: var(--ink-800); border-color: var(--line-ink); }
.band--ink .team__card b { color: var(--on-ink); }
.band--ink .team__card span { color: var(--on-ink-muted); }
.team--c { justify-content: center; }
.ref-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 32px; }
.ref-row > b { font: 700 40px/1 var(--f-num); color: var(--green); }
.ref-row p { flex: 1; min-width: 240px; font-size: 17px; color: var(--text); }
.ref-row p small { display: block; font-size: 15px; color: var(--text-body); margin-top: 4px; }
.chips--src { justify-content: center; }
.chips--src .chip { font-size: 15px; padding: 8px 16px; background: var(--surface); }

@media (max-width: 960px) {
  .proofbar, .tabs, .faq-wrap, .offer { grid-template-columns: 1fr; }
  .tabs { gap: 32px; }
  .tabs__stage { justify-self: center; order: -1; }
  .tabs__stage .float { right: -20px; }
  .faq-wrap { gap: 24px; }
}
@media (max-width: 720px) {
  .band--xl { padding: 84px 0; }
  .steps { grid-template-columns: 1fr; text-align: left; gap: 28px; padding-left: 28px; margin-top: 40px; }
  .steps::before { top: 6px; bottom: 6px; left: 5px; right: auto; width: 1px; height: auto; transform-origin: top; transform: scaleY(0); }
  .steps.in::before, .in .steps::before { transform: scaleY(1); }
  .step__dot { position: absolute; left: -28px; top: 2px; margin: 0; }
  .step p { margin: 0; }
  .offer__dark, .offer__light { padding: 28px 24px; }
  .band--final { border-radius: 24px 24px 0 0; }
  .ref-row { padding: 22px; }
  .tab { padding: 14px 16px; }
  .tabs__stage .float { position: absolute; right: -8px; bottom: 30px; margin: 0; width: 190px; }
}

/* v3: sei fonti, schermate per fonte, promemoria scaduto */
.c6 { background: #0F4D59; }
.ui-grid--6 .ui-tile { min-height: 96px; justify-content: center; }
.ring--count span { font-size: 15px; }
.ring--count { border-radius: 50%; box-shadow: inset 0 0 0 4px #E1F0F2; }
.ui-back { font-size: 10.5px; font-weight: 700; color: var(--teal); margin-bottom: 2px; }
.ui-row--late { border-color: #D24545; background: #FDF1F1; box-shadow: 0 0 0 1px #D24545; }
.ui-row--late b { color: #8F2424; }
.ui-row--late small { color: #8F2424; font-weight: 600; }
.ui-ic--r { background: #FBDADA; color: #B42F2F; }
.tabs [data-go], .hero [data-go] { cursor: pointer; }
.tabs .ui-tile[data-go]:hover { border-color: var(--teal); }
.tabs__group { font: 600 12px var(--f-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 2px 20px; }
.tabs--many .tab { padding: 11px 18px; }
.tabs--many .tab b { font-size: 16px; }

/* v4 (2026-10-21): pagina network rifatta sulla nuova app, esempi integratori · energia */
.nmv--ene { display: none; }
html[data-nm="ene"] .nmv--int { display: none; }
html[data-nm="ene"] .nmv--ene { display: block; }
.nm-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 22px; }
.nm-switch > span { font-size: 13px; color: var(--text-muted); padding: 0 8px 0 12px; }
.nm-switch button { border: 0; background: none; font: 600 14px var(--f-head); padding: 7px 16px; border-radius: 999px; color: var(--text-body); cursor: pointer; }
.nm-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }
.nm-switch button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.band--ink .nm-switch { background: var(--ink-800); border-color: var(--line-ink); }
.band--ink .nm-switch > span, .band--ink .nm-switch button { color: var(--on-ink-muted); }
.band--ink .nm-switch button[aria-pressed="true"] { background: var(--mint); color: var(--ink-900); }
.funnel--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .funnel--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .funnel--4 { grid-template-columns: 1fr; } }

/* app network dentro il telefono */
.ui-head .ui-new { display: inline-flex; align-items: center; gap: 5px; background: var(--teal); color: #fff; font-size: 8.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px 2px 6px; margin-bottom: 3px; }
.ui-new i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.ui-srcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-src { background: #fff; border: 1px solid #E3E8EB; border-radius: 11px; padding: 7px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ui-src__ic { width: 24px; height: 24px; border-radius: 8px; background: #E1F0F2; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.ui-src__ic .ico { width: 13px; height: 13px; }
.ui-src small { font-size: 8.5px; font-weight: 600; color: #4B5A62; }
.ui-src b { font: 700 13px/1.1 var(--f-num); color: #13232A; }
.ui-src--hot { background: var(--teal); border-color: var(--teal); }
.ui-src--hot .ui-src__ic { background: rgba(255,255,255,0.16); color: #fff; }
.ui-src--hot small { color: #CBE7EC; }
.ui-src--hot b { color: #fff; font: 700 10.5px/1.2 var(--f-body); }
.ui-sect { background: #fff; border: 1px solid #E3E8EB; border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.ui-sect .ui-ic { align-self: flex-start; }
.ui-sect .grow { flex: 1; min-width: 0; }
.ui-sect small { display: block; font-size: 9.5px; color: #56646B; }
.ui-sect .ui-sect__t { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ui-sect__big { font-size: 11px; font-weight: 600; color: #4B5A62; }
.ui-sect__big b { font: 700 19px/1.15 var(--f-num); color: #13232A; }
.ui-sect .ui-sect__n { color: #2C3A40; margin-top: 2px; }
.ui-sect > .chev { color: #56646B; font-size: 14px; }
.phone .w { color: var(--warn); font-weight: 700; }
.phone .r { color: #B42F2F; font-weight: 700; }
.ui-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #CFD8DD; border-radius: 9px; padding: 6px 9px; font-size: 10px; color: #7A878D; }
.ui-search .ico { width: 11px; height: 11px; }
.ui-seg { display: flex; background: #E8EDF0; border-radius: 9px; padding: 2px; }
.ui-seg span { flex: 1; text-align: center; font-size: 9px; font-weight: 600; color: #4B5A62; padding: 5px 2px; border-radius: 7px; white-space: nowrap; }
.ui-seg span.on { background: #fff; color: #13232A; box-shadow: 0 1px 2px rgba(19,35,42,0.12); }
.ui-card { background: #fff; border: 1px solid #E3E8EB; border-radius: 13px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.ui-card--hl { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.ui-card__top { display: flex; align-items: center; gap: 8px; }
.ui-card__top .grow { flex: 1; min-width: 0; }
.ui-card__top b { display: block; font-size: 11.5px; color: #13232A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-card__top small { display: block; font-size: 9.5px; color: #56646B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-card__note { font-size: 10px; font-style: italic; color: #4B5A62; }
.ui-q { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1px solid #CFD8DD; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.ui-q .ico { width: 12px; height: 12px; }
.ui-q--t { background: var(--teal); border-color: var(--teal); color: #fff; }
.ui-pill { font-size: 8.5px; font-weight: 700; border-radius: 5px; padding: 2px 6px; background: #E1F0F2; color: var(--teal); white-space: nowrap; flex: none; }
.ui-pill--w { background: #FCEBDD; color: #8F4407; }
.ui-pill--r { background: #FBDADA; color: #8F2424; }
.ui-pill--m { background: #E8EDF0; color: #4B5A62; }
.ui-when { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.ui-when small { font-size: 9.5px; color: #4B5A62; }
.ui-esiti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ui-esiti span { font-size: 9px; font-weight: 700; text-align: center; padding: 6px 2px; border-radius: 7px; border: 1px solid #CFD8DD; color: #13232A; }
.ui-esiti span.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ui-consent { display: flex; align-items: center; justify-content: space-between; background: #DDF5EA; border-radius: 8px; padding: 5px 8px; font-size: 9px; font-weight: 600; color: #0A5A3E; }
.ui-consent i { width: 22px; height: 12px; border-radius: 6px; background: var(--positive); position: relative; }
.ui-consent i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ui-tag--m { color: #4B5A62; background: #E8EDF0; }
.ui-recwhen { font-size: 10px; color: #2C3A40; margin-top: 8px; line-height: 1.4; }
.ui-dim { height: 26px; margin: -6px -14px 0; background: rgba(15,30,40,0.35); }
.ui-sheet { flex: 1 !important; margin: -8px -14px -10px; background: #fff; border-radius: 16px 16px 0 0; padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.ui-grab { display: block; width: 32px; height: 3px; border-radius: 3px; background: #CFD8DD; margin: 0 auto 2px; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ui-chips span { font-size: 9.5px; font-weight: 600; border: 1px solid #CFD8DD; border-radius: 8px; padding: 5px 8px; color: #13232A; }
.ui-chips span.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ui-step { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #CFD8DD; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #13232A; }
.ui-row .ui-step + b { display: inline; margin: 0 2px; }
.ui-sum { background: var(--teal); color: #fff; border-radius: 11px; padding: 9px 10px; }
.ui-sum small { display: block; font-size: 9px; color: #CBE7EC; }
.ui-sum b { font-size: 11px; line-height: 1.35; }
.ui-sum em { font-style: normal; color: #A8F0D1; }
.ui-btn--block { display: flex; padding: 9px 10px; font-size: 11px; }
.ui-privacy { display: flex; gap: 6px; font-size: 9px; color: #56646B; align-items: flex-start; }
.ui-privacy .ico { width: 11px; height: 11px; flex: none; margin-top: 1px; }
.float--msg { background: #F0F8F9; border-color: #B5D8DE; }
.float--msg .float__h { color: var(--teal); }
.dash__alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dash__alerts .dash__alert { margin: 0; }
@media (max-width: 720px) { .dash__alerts { grid-template-columns: 1fr; } }
/* squadra: il riquadro sta in basso a sinistra, sulla parte vuota del telefono */
@media (min-width: 961px) { .nm-team .visual .float--bl { left: -60px; bottom: 26px; } }
@media (min-width: 721px) and (max-width: 960px) { .nm-team .visual .float--bl { left: 0; bottom: 26px; } }
@media (max-width: 420px) { .nm-switch > span { display: none; } }
