/* DM Sans ospitato sul nostro server (nessuna richiesta a servizi esterni). Licenza: fonts/OFL-DM-Sans.txt */
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 1000; src: url(/assets/fonts/dm-sans-latin-ext-opsz-normal.woff2) format('woff2-variations'), url(/assets/fonts/dm-sans-latin-ext-opsz-normal.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: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 1000; src: url(/assets/fonts/dm-sans-latin-opsz-normal.woff2) format('woff2-variations'), url(/assets/fonts/dm-sans-latin-opsz-normal.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; }
/* Sito di presentazione: stessi colori, font e forme della web app */
:root {
  --bg: #fbfbfd; --bg-2: #f5f5f7; --surface: #fff; --surface-2: #f5f5f7; --surface-3: #ececf0;
  --text: #1d1d1f; --muted: #6e6e73; --faint: #a1a1a6; --line: rgba(0,0,0,.08);
  --accent: #1d1d1f; --accent-text: #fff;
  --pink: #ff6b8b; --violet: #7c6cff; --blue: #3fb6ff; --green: #2ecc9a; --amber: #ffb547; --danger: #ff5a5f;
  --grad: linear-gradient(100deg, var(--pink), var(--violet));
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.14);
  --font: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --display: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --w: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --bg-2: #0b0b0c; --surface: #111113; --surface-2: #1a1a1d; --surface-3: #242428;
    --text: #f5f5f7; --muted: #98989d; --faint: #636366; --line: rgba(255,255,255,.1);
    --accent: #f5f5f7; --accent-text: #000;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 30px rgba(0,0,0,.4); --shadow-lg: 0 24px 70px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --bg-2: #0b0b0c; --surface: #111113; --surface-2: #1a1a1d; --surface-3: #242428;
  --text: #f5f5f7; --muted: #98989d; --faint: #636366; --line: rgba(255,255,255,.1);
  --accent: #f5f5f7; --accent-text: #000;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 30px rgba(0,0,0,.4); --shadow-lg: 0 24px 70px rgba(0,0,0,.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; overflow-x: hidden; transition: background .3s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.04em; line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
::selection { background: color-mix(in srgb, var(--violet) 30%, transparent); }

/* logo: lo stesso dell'app */
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 17px var(--display); letter-spacing: -.03em; }

/* bottoni */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; font: 600 15.5px var(--font); border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.grad-btn { background: var(--grad); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--violet); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { gap: 10px; } .link { transition: gap .2s var(--ease); }

/* intestazione */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav .spacer { flex: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 10px; }
.burger span { display: block; width: 18px; height: 1.6px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; border-radius: 2px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 64px 0 0; z-index: 49; background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease); }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { font: 600 28px var(--display); letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; justify-content: center; height: 52px; font-size: 17px; }

/* tema */
.theme { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.theme button { width: 30px; height: 26px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.theme button svg { width: 14px; height: 14px; }
.theme button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* sezioni */
section { position: relative; }
.pad { padding: 140px 0; }
.pad-sm { padding: 90px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.h1 { font-size: clamp(44px, 7.4vw, 92px); }
.h2 { font-size: clamp(34px, 5vw, 60px); }
.h3 { font-size: clamp(24px, 3vw, 34px); }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 620px; line-height: 1.5; }
.center .lead { margin-left: auto; margin-right: auto; }

/* comparsa allo scorrimento */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.rv-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv-scale.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .rv-scale { opacity: 1; transform: none; transition: none; } [data-parallax] { transform: none !important; } }

/* hero */
.hero { padding: 168px 0 0; text-align: center; overflow: hidden; }
.hero .h1 { max-width: 900px; margin: 0 auto; }
.hero .lead { margin: 26px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--faint); }
.hero-stage { position: relative; margin: 80px auto 0; max-width: 1000px; perspective: 1600px; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .16; pointer-events: none; z-index: 0; }
.glow.a { width: 420px; height: 420px; background: var(--pink); left: -60px; top: 40px; }
.glow.b { width: 460px; height: 460px; background: var(--violet); right: -80px; top: 120px; }

/* finto planning */
.mock { position: relative; z-index: 1; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; text-align: left; transform-origin: 50% 0; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mock-bar .dots { display: flex; gap: 6px; margin-right: 8px; } .mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-bar b { font: 600 14px var(--display); }
.mock-bar .chip { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.mock-bar .chip.g { margin-left: 6px; background: var(--grad); color: #fff; }
.grid { display: grid; grid-template-columns: 150px repeat(7, 1fr); font-size: 12px; }
.grid > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 52px; padding: 7px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.grid > div:nth-child(8n) { border-right: 0; }
.grid .gh { min-height: 40px; color: var(--muted); font-weight: 600; text-align: center; align-items: center; }
.grid .gp { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; justify-content: flex-start; }
.av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; flex: none; }
.sh { border-radius: 8px; padding: 5px 7px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-left: 3px solid var(--c); display: flex; align-items: baseline; gap: 5px; opacity: 0; transform: scale(.85); transition: opacity .45s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.sh b { font: 700 14px var(--display); color: var(--c); } .sh span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.in .sh, .sh.in { opacity: 1; transform: none; }
.sh.empty { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); font-size: 10.5px; font-weight: 600; justify-content: center; }
.sh.off { background: var(--surface-2); border-left-color: var(--faint); } .sh.off b { color: var(--muted); font-size: 11px; }

/* storia a passi (scrollytelling) */
.visual { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; max-width: 560px; position: relative; overflow: hidden; }

/* visual: importa */
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.file .ic { width: 34px; height: 40px; border-radius: 6px; background: var(--danger); color: #fff; font: 700 9.5px var(--font); display: grid; place-items: end center; padding-bottom: 6px; flex: none; }
.file .ic.x { background: var(--green); }
.file small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.arrow-down { height: 34px; display: grid; place-items: center; color: var(--faint); }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); opacity: 0; transform: translateX(-12px); transition: all .5s var(--ease); transition-delay: var(--d, 0ms); }
.in .row { opacity: 1; transform: none; }
.row .tag { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--green) 18%, transparent); color: color-mix(in srgb, var(--green) 70%, var(--text)); }

/* visual: regole */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); font-size: 14.5px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); transition-delay: var(--d, 0ms); }
.in .pill { opacity: 1; transform: none; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet)); }
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.crew div { border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-left: 3px solid var(--c); font-size: 13px; font-weight: 600; }
.crew small { display: block; color: var(--muted); font-weight: 500; }

/* visual: genera */
.gen { display: flex; flex-direction: column; gap: 16px; }
.gen-sq { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gen-sq i { aspect-ratio: 1; border-radius: 7px; background: var(--c); opacity: .15; animation: sq 2.4s var(--ease) infinite; animation-delay: var(--d); }
@keyframes sq { 0%, 100% { opacity: .15; transform: scale(.9); } 40% { opacity: .9; transform: none; } }
.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 3px; animation: bar 2.2s var(--ease) infinite; }
@keyframes bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.hours { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.hours div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours b { font-variant-numeric: tabular-nums; } .hours .ok { color: var(--green); font-weight: 600; }

/* visual: telefono */
.phone { width: 270px; margin: 0 auto; border-radius: 42px; background: #0b0b0c; padding: 12px; box-shadow: var(--shadow-lg); }
.screen { border-radius: 32px; overflow: hidden; background: linear-gradient(160deg, #26262e, #2b2429); min-height: 440px; padding: 46px 14px 20px; color: #fff; position: relative; }
.screen .time { text-align: center; font: 300 58px var(--display); letter-spacing: -.03em; }
.screen .date { text-align: center; font-size: 14px; opacity: .8; margin-bottom: 30px; }
.notif { background: rgba(255,255,255,.16); backdrop-filter: blur(20px); border-radius: 18px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; opacity: 0; transform: translateY(-16px) scale(.96); transition: all .7s var(--ease); transition-delay: var(--d, 300ms); margin-bottom: 8px; }
.in .notif { opacity: 1; transform: none; }
.notif .ap { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); flex: none; position: relative; } .notif .ap::after { content: ''; position: absolute; inset: 9px; border-radius: 2px; background: #2a2244; }
.notif b { display: block; font-size: 13px; } .notif small { opacity: .75; }
.clock { background: #fff; color: #1d1d1f; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.clock .big { width: 150px; height: 150px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font: 700 17px var(--display); box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 40%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,108,255,.45); } 70% { box-shadow: 0 0 0 26px rgba(124,108,255,0); } 100% { box-shadow: 0 0 0 0 rgba(124,108,255,0); } }
.clock .sig { font-size: 13px; color: #2a9d74; font-weight: 600; display: flex; gap: 6px; align-items: center; }

/* foto con parallasse */
.photo-band { position: relative; height: 86vh; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.photo-band .img { position: absolute; inset: -14% 0; background-size: cover; background-position: center; will-change: transform; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.photo-band.dark::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.82) 100%); }
.photo-band .wrap { position: relative; z-index: 1; padding-bottom: 80px; width: 100%; }
.photo-band h2 { font-size: clamp(36px, 6vw, 76px); max-width: 820px; }
.photo-band p { margin-top: 18px; font-size: 20px; opacity: .85; max-width: 560px; }
.round-photo { border-radius: 26px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.round-photo .img { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }

/* scorrimento dei settori */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 10px 0; }
.track { display: flex; gap: 22px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile { width: 300px; height: 380px; border-radius: 24px; overflow: hidden; position: relative; flex: none; color: #fff; display: flex; align-items: flex-end; transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-6px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.tile div { position: relative; z-index: 1; padding: 22px; } .tile b { font: 700 22px var(--display); letter-spacing: -.03em; display: block; } .tile small { opacity: .8; font-size: 14px; }

/* numeri */
.numbers { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.numbers div { flex: 1; min-width: 200px; }
.numbers b { display: block; font: 700 clamp(48px, 6vw, 76px) var(--display); letter-spacing: -.05em; line-height: 1; }
.numbers > div > span { color: var(--muted); font-size: 16px; }
.numbers b span { font: inherit; letter-spacing: inherit; color: inherit; }

/* invito finale */
.cta-final { text-align: center; padding: 150px 0 160px; position: relative; overflow: hidden; }
.cta-final .h2 { max-width: 760px; margin: 0 auto; }
.cta-final .hero-cta { margin-top: 34px; }

/* pagine interne */
.page-hero { padding: 170px 0 70px; text-align: center; }
.page-hero .lead { margin: 22px auto 0; }

/* funzionalità: giornata cronologica */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding: 70px 0; position: relative; }
.moment::before { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--violet); z-index: 1; }
.moment:nth-child(even) .m-text { order: 2; }
.m-time { font: 700 14px var(--display); color: var(--violet); letter-spacing: .02em; margin-bottom: 14px; display: block; }
.m-text h3 { font-size: clamp(30px, 3.6vw, 44px); }
.m-text p { color: var(--muted); font-size: 18.5px; margin-top: 16px; max-width: 440px; }
.m-text ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.m-text li { display: flex; gap: 10px; align-items: flex-start; } .m-text li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); margin-top: 9px; flex: none; }
.m-visual { position: relative; }
.m-visual .round-photo { height: 420px; }

/* settori */
.sector { min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden; color: #fff; }
.sector .img { position: absolute; inset: -14% 0; background-size: cover; background-position: center; will-change: transform; }
.sector::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.25) 70%); }
.sector.r::after { background: linear-gradient(270deg, rgba(0,0,0,.78), rgba(0,0,0,.25) 70%); }
.sector .wrap { position: relative; z-index: 1; width: 100%; }
.sector .inner { max-width: 500px; } .sector.r .inner { margin-left: auto; }
.sector .num { font: 700 15px var(--display); opacity: .7; letter-spacing: .06em; }
.sector h2 { font-size: clamp(40px, 6vw, 72px); margin: 12px 0 18px; }
.sector p { font-size: 19px; opacity: .88; }
.sector .ex { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sector .ex span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; }

/* prezzi */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.best { border: 0; box-shadow: var(--shadow-lg), 0 0 0 2px var(--violet); }
.plan .badge { position: absolute; top: -12px; left: 30px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 24px; }
.plan .for { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan .price { font: 700 56px var(--display); letter-spacing: -.05em; margin: 14px 0 2px; }
.plan .price small { font: 500 16px var(--font); color: var(--muted); letter-spacing: 0; }
.plan .vat { font-size: 12.5px; color: var(--faint); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 11px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; } .plan li svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 3px; }
.plan li.plus { color: var(--muted); font-size: 13.5px; }
.plan .btn { justify-content: center; }
.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--muted); font-size: 15px; margin-top: 40px; }
.included span { display: inline-flex; align-items: center; gap: 8px; } .included svg { width: 16px; height: 16px; color: var(--green); }

/* domande */
.faq { max-width: 760px; margin: 0 auto; }
.q { border-bottom: 1px solid var(--line); }
.q button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 24px 0; background: none; border: 0; color: var(--text); font: 600 19px var(--display); letter-spacing: -.02em; text-align: left; cursor: pointer; }
.q button i { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); position: relative; flex: none; transition: transform .35s var(--ease), background .2s; }
.q button i::before, .q button i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 12.25px; height: 1.5px; background: currentColor; border-radius: 1px; }
.q button i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.q.open button i { transform: rotate(180deg); } .q.open button i::after { transform: rotate(0); }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.q.open .a { grid-template-rows: 1fr; }
.q .a > div { overflow: hidden; } .q .a p { color: var(--muted); padding: 0 50px 26px 0; font-size: 16.5px; }

/* contatti */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.contact .side { position: sticky; top: 120px; }
.contact .side p { color: var(--muted); font-size: 18px; margin-top: 18px; }
.contact .side .mail { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.contact .side .mail a { font: 600 20px var(--display); letter-spacing: -.02em; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; height: 48px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 0 15px; font: 500 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
textarea.input { height: 130px; padding: 13px 15px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.field .err { font-size: 12.5px; color: var(--danger); min-height: 0; }
.phone-in { display: flex; gap: 8px; position: relative; }
.prefix { height: 48px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 0 12px; font: 600 15px var(--font); display: flex; align-items: center; gap: 7px; cursor: pointer; flex: none; transition: border-color .2s; }
.prefix:focus { outline: none; border-color: var(--violet); }
.prefix .fl { font-size: 19px; line-height: 1; } .prefix svg { width: 12px; height: 12px; color: var(--muted); }
.dropdown { position: absolute; top: 54px; left: 0; z-index: 10; width: 290px; max-height: 300px; overflow: auto; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .18s var(--ease); }
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown input { margin-bottom: 6px; height: 38px; font-size: 14px; }
.dropdown button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 14px var(--font); cursor: pointer; text-align: left; }
.dropdown button:hover, .dropdown button.on { background: var(--surface-2); }
.dropdown button .fl { font-size: 18px; } .dropdown button small { margin-left: auto; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; user-select: none; }
.chip:hover { border-color: var(--line); } .chip.on { background: var(--accent); color: var(--accent-text); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--faint); flex: none; display: grid; place-items: center; transition: all .2s; margin-top: 1px; }
.check i svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.check.on i { background: var(--accent); border-color: var(--accent); } .check.on i svg { opacity: 1; transform: none; color: var(--accent-text); }
.check.bad i { border-color: var(--danger); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-content: center; height: 52px; font-size: 16px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent { position: absolute; inset: 0; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.sent.on { opacity: 1; pointer-events: auto; }
.sent .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; transform: scale(.5); transition: transform .6s var(--ease) .1s; }
.sent.on .ok { transform: none; } .sent .ok svg { width: 32px; height: 32px; }
.sent p { color: var(--muted); max-width: 320px; }

/* documenti */
.doc { max-width: 720px; margin: 0 auto; padding: 150px 24px 90px; }
.doc h1 { font-size: clamp(38px, 5vw, 54px); margin-bottom: 10px; }
.doc .upd { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 20px; } .doc li { margin-bottom: 6px; }

/* piè di pagina */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; font-size: 14px; color: var(--muted); background: var(--bg-2); }
.foot { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; } .foot-cols b { color: var(--text); font-size: 13px; margin-bottom: 4px; }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* transizione tra pagine */
.page { animation: pagein .7s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.leaving .page { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }

/* adattamento a schermi piccoli */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn.ghost, .nav-cta .theme { display: none; }
  .burger { display: block; }
  .timeline::before, .moment::before { display: none; }
  .moment { grid-template-columns: 1fr; gap: 34px; padding: 50px 0; } .moment:nth-child(even) .m-text { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; gap: 40px; } .contact .side { position: static; }
  .grid { grid-template-columns: 110px repeat(7, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pad { padding: 96px 0; } .hero { padding-top: 130px; }
  .hero-stage { margin-top: 56px; }
  .mock { border-radius: 16px; } .grid { grid-template-columns: 84px repeat(4, 1fr); font-size: 11px; }
  .grid .hide-sm { display: none !important; }
  .f2 { grid-template-columns: 1fr; } .form { padding: 24px; }
  .tile { width: 240px; height: 320px; }
  .photo-band .wrap { padding-bottom: 50px; }
  .m-visual .round-photo { height: 300px; }
  .phone { width: 240px; } .screen, .clock { min-height: 400px; }
}

/* sfondi di riserva mentre le foto si caricano */
.photo-band, .sector { background: #111; }
.photo-band .img, .sector .img, .round-photo .img { background-color: #1c1c1f; }
.tile { background: linear-gradient(160deg, #2a2a30, #121214); }
.tile img { color: transparent; }
.round-photo { background: var(--surface-3); }
@media (max-width: 640px) { .mock-bar .chip, .mock-bar .muted { display: none; } }

/* ---------- Decorazioni dell'hero ---------- */
.hero { position: relative; }
.hero-dots { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%); opacity: .55; }
.hero .wrap, .lp-hero .wrap { position: relative; z-index: 1; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; margin-bottom: 26px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--muted); backdrop-filter: blur(10px); transition: color .2s, box-shadow .2s; }
.hero-pill:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.hero-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 0 rgba(138,134,220,.4); animation: pulse 2.4s infinite; }
.hero-pill span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.hero-pill span svg { width: 13px; height: 13px; }
.hero-pill.static { padding-right: 16px; }
.orbit { position: absolute; left: 50%; top: 56%; width: 118%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; animation: orbit 14s ease-in-out infinite; }
@keyframes orbit { 50% { transform: translate(-50%, -50%) rotate(4deg) scale(1.02); } }
.spark { position: absolute; width: 14px; height: 14px; z-index: 2; pointer-events: none; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 0 1.5px, transparent 2px), linear-gradient(#000 0 0) center/1.6px 100% no-repeat, linear-gradient(#000 0 0) center/100% 1.6px no-repeat; mask: radial-gradient(circle, #000 0 1.5px, transparent 2px), linear-gradient(#000 0 0) center/1.6px 100% no-repeat, linear-gradient(#000 0 0) center/100% 1.6px no-repeat; animation: twinkle 3.6s var(--ease) infinite; }
.spark.s1 { left: -2%; top: 8%; } .spark.s2 { right: 3%; top: -4%; animation-delay: 1.2s; width: 10px; height: 10px; } .spark.s3 { right: -3%; bottom: 18%; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px; border-radius: 16px; text-align: left;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; white-space: nowrap; animation: bob 6s ease-in-out infinite; will-change: translate; }
.float-card b { display: block; font-weight: 650; font-size: 13px; letter-spacing: -.01em; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card .ap { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); position: relative; flex: none; }
.float-card .ap::after { content: ''; position: absolute; inset: 10px; border-radius: 2px; background: var(--surface); }
.float-card .ok, .float-card .ai { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.float-card .ok { background: color-mix(in srgb, var(--green) 18%, transparent); color: color-mix(in srgb, var(--green) 75%, var(--text)); }
.float-card .ai { background: var(--grad); color: #fff; }
.float-card .ok svg, .float-card .ai svg { width: 15px; height: 15px; }
.float-card .avs { display: flex; flex: none; } .float-card .avs i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; color: #fff; font: 700 9.5px var(--font); display: grid; place-items: center; font-style: normal; } .float-card .avs i:first-child { margin-left: 0; }
.fc1 { left: -7%; top: 9%; } .fc2 { right: -6%; top: 26%; animation-delay: -2s; } .fc3 { left: -4%; bottom: 14%; animation-delay: -4s; } .fc4 { right: -3%; bottom: 7%; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-stage .mock { z-index: 2; }

/* ---------- Video di presentazione ---------- */
#video, #demo { scroll-margin-top: 70px; }
.play-btn .pi { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin-left: -8px; }
.play-btn .pi svg { width: 10px; height: 10px; margin-left: 1px; }
.play-btn small { color: var(--muted); font-weight: 500; }
.vframe { position: relative; max-width: 940px; margin: 0 auto; }
.vbox { position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0b0b0c; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.vbox .vp video { object-fit: cover; } .vbox .vp.started video { object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 24px; animation: lbIn .3s var(--ease); }
.lightbox.out { opacity: 0; transition: opacity .25s; }
@keyframes lbIn { from { opacity: 0; } }
.lb-box { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; animation: lbBox .4s var(--ease); }
@keyframes lbBox { from { transform: scale(.94); opacity: 0; } }
.lb-box .vp { border-radius: 18px; }
.lb-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-x svg { width: 20px; height: 20px; }

/* ---------- Pagine per settore ---------- */
.lp-hero { position: relative; padding: 150px 0 60px; overflow: hidden; }
.lp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.lp-text .h1 { font-size: clamp(42px, 5.6vw, 72px); }
.lp-text .lead { margin-top: 22px; }
.hero-cta.left { justify-content: flex-start; }
.lp-visual { position: relative; }
.lp-visual .round-photo { height: 540px; }
.lp-fc.f1 { left: -12%; top: 12%; } .lp-fc.f2 { right: -8%; top: 46%; animation-delay: -2s; } .lp-fc.f3 { left: -6%; bottom: 8%; animation-delay: -4s; }
.lp-flow { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: start; }
.lp-steps { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 46px; }
.lp-steps::before { content: ''; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--grad-v); opacity: .3; border-radius: 2px; }
.lp-steps li { display: flex; gap: 22px; position: relative; }
.lp-steps .n { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); font: 700 14px var(--display); color: var(--violet); z-index: 1; }
.lp-steps h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 6px; }
.lp-steps p { color: var(--muted); margin-top: 8px; font-size: 17px; max-width: 440px; }
.lp-mock { position: sticky; top: 110px; }
.lp-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.lp-checks li { display: flex; gap: 10px; align-items: center; } .lp-checks svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.sector-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding: 11px 20px; border-radius: 999px; background: #fff; color: #1d1d1f; font-weight: 600; font-size: 15px; transition: gap .2s var(--ease), transform .2s var(--ease); }
.sector-link:hover { gap: 12px; transform: translateY(-1px); } .sector-link svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .lp-grid, .lp-flow { grid-template-columns: 1fr; gap: 50px; }
  .lp-mock { position: static; }
  .lp-visual .round-photo { height: 400px; }
  .fc1, .fc3 { left: 0; } .fc2, .fc4 { right: 0; }
  .lp-fc.f1, .lp-fc.f3 { left: 8px; } .lp-fc.f2 { right: 8px; }
}
@media (max-width: 640px) {
  .float-card.fc2, .float-card.fc3, .spark { display: none; }
  .fc1 { top: -20px; left: 4px; } .fc4 { bottom: -18px; right: 4px; }
  .float-card { padding: 8px 12px 8px 8px; } .float-card small { display: none; }
  .lp-hero { padding-top: 120px; }
  .lp-visual .round-photo { height: 320px; }
  .lp-fc.f2 { display: none; }
  .vbox { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .orbit, .float-card, .spark, .hero-pill i { animation: none; } }

/* ---------- Dispositivi realistici ---------- */
.scene { position: relative; border-radius: 26px; overflow: hidden; height: 400px; display: grid; place-items: center; box-shadow: var(--shadow-lg); background: #1c1c1f; max-width: 560px; }
.scene-img { position: absolute; inset: -8% 0; background-size: cover; will-change: transform; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); pointer-events: none; }
.scene .iphone { position: relative; z-index: 1; align-self: start; margin-top: 44px; transform: translateY(40px) rotate(-4deg); opacity: 0; transition: transform 1.1s var(--ease), opacity .8s; }
.scene.in .iphone { transform: rotate(-4deg); opacity: 1; }
.iphone { position: relative; width: 220px; padding: 10px; border-radius: 50px;
  background: linear-gradient(145deg, #6e6e73 0%, #2c2c2e 18%, #1c1c1e 50%, #3a3a3c 82%, #8e8e93 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #111, 0 40px 80px -20px rgba(0,0,0,.6), 0 10px 25px rgba(0,0,0,.35); }
.iphone > span { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2c2c2e, #8e8e93); }
.iphone .btn-a { left: -2px; top: 100px; height: 26px; } .iphone .btn-b { left: -2px; top: 140px; height: 46px; } .iphone .btn-c { right: -2px; top: 150px; height: 70px; background: linear-gradient(270deg, #2c2c2e, #8e8e93); }
.iscreen { position: relative; border-radius: 41px; overflow: hidden; min-height: 440px; background: #fff; color: #1d1d1f; }
.iscreen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%); border-radius: inherit; }
.iscreen.wall { background: radial-gradient(120% 80% at 20% 0%, rgba(138,134,220,.45) 0%, transparent 60%), radial-gradient(100% 70% at 100% 100%, rgba(207,127,151,.4) 0%, transparent 60%), linear-gradient(160deg, #26262e, #2b2429); color: #fff; }
.island { position: absolute; left: 50%; top: 10px; width: 76px; height: 23px; margin-left: -38px; border-radius: 20px; background: #000; z-index: 3; }
.sbar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 0 28px; height: 44px; font: 600 13px var(--font); }
.sbar svg:first-child { display: none; }
.sbar span { display: flex; gap: 5px; align-items: center; } .sbar svg { height: 10px; width: auto; fill: currentColor; }
.sbar .bat { width: 22px; height: 11px; border-radius: 3px; border: 1px solid currentColor; opacity: .9; padding: 1px; display: block; } .sbar .bat i { display: block; height: 100%; width: 78%; border-radius: 1.5px; background: currentColor; }
.iscreen .lock { padding: 12px 12px 20px; }
.iscreen .time { text-align: center; font: 300 54px var(--display); letter-spacing: -.03em; line-height: 1.1; }
.iscreen .date { text-align: center; font-size: 14px; opacity: .85; margin-bottom: 34px; }
.iscreen .clock { min-height: 330px; justify-content: flex-start; padding-top: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: none; color: #1d1d1f; }
@media (max-width: 640px) {
  .scene { height: 360px; } .iphone { width: 200px; } .iscreen { min-height: 400px; } .iscreen .time { font-size: 46px; }
}

/* ---------- TurniFacili × Mambu ---------- */
.mb { --mb: #339ed2; --mb-2: #1f6f9c; }
.mb-grad { background: linear-gradient(100deg, #46b4e6, #339ed2 45%, #1f6f9c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mb-hero { position: relative; overflow: hidden; padding: 150px 0 0; text-align: center; background: #111315; color: #f5f5f7; }
.mb-hero .hero-dots { opacity: .25; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.2px); }
.mb-hero .lead { color: rgba(255,255,255,.66); margin: 24px auto 0; }
.mb-hero .h1 { max-width: 900px; margin: 18px auto 0; }
.mb-glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.mb-glow.a { width: 520px; height: 520px; background: #339ed2; opacity: .35; left: -120px; top: 80px; } .mb-glow.b { width: 460px; height: 460px; background: #1f6f9c; opacity: .4; right: -120px; top: 260px; }
.mb-logos { display: inline-flex; align-items: center; gap: 18px; padding: 12px 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.mb-logos .logo { color: #fff; font-size: 19px; } .mb-logos .logo i { --text: #f5f5f7; --bg: #111315; }
.mb-logos img { height: 40px; width: auto; } .mb-x { font: 300 26px var(--display); color: rgba(255,255,255,.5); }
.mb-tag { display: block; width: max-content; margin: 22px auto 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6cc6f0; }
.mb-btn { background: #339ed2; color: #fff; } .mb-btn:hover { background: #2a8dc0; box-shadow: 0 14px 40px -10px rgba(51,158,210,.7); transform: translateY(-1px); }
.mb-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); background: transparent; } .mb-ghost:hover { background: rgba(255,255,255,.08); }
.mb-stage { position: relative; z-index: 1; max-width: 980px; margin: 80px auto -2px; }
.mb-stage .mock { border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -20px 80px -20px rgba(51,158,210,.45); }
.mb-stage .mock-bar .chip.g { background: #339ed2; }
.mb-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; position: relative; counter-reset: s; }
.mb-flow::before { content: ''; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: linear-gradient(90deg, transparent, #339ed2 15%, #1f6f9c 85%, transparent); opacity: .5; }
.mb-flow li { position: relative; text-align: center; }
.mb-flow .n { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); font: 700 16px var(--display); color: #339ed2; position: relative; }
.mb-flow h3 { font-size: clamp(22px, 2.4vw, 28px); } .mb-flow p { color: var(--muted); margin: 10px auto 0; max-width: 300px; }
.mb .form .btn.primary { background: #339ed2; color: #fff; } .mb .chip.on { background: #339ed2; color: #fff; }
.mb .check.on i { background: #339ed2; border-color: #339ed2; } .mb .check.on i svg { color: #fff; }
.mb .input:focus { border-color: #339ed2; box-shadow: 0 0 0 4px rgba(51,158,210,.2); }
@media (max-width: 760px) { .mb-flow { grid-template-columns: 1fr; gap: 40px; } .mb-flow::before { display: none; } .mb-logos img { height: 30px; } .mb-hero { padding-top: 120px; } }
.mb .nav:not(.scrolled) .logo, .mb .nav:not(.scrolled) .nav-links a.on, .mb .nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.mb .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.66); }
.mb .nav:not(.scrolled) .logo i { --text: #f5f5f7; --bg: #111315; }
.mb .nav:not(.scrolled) .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.mb .nav:not(.scrolled) .btn.primary { background: #fff; color: #111; }
.mb .nav:not(.scrolled) .theme { background: rgba(255,255,255,.1); } .mb .nav:not(.scrolled) .theme button { color: rgba(255,255,255,.6); }
.mb .nav:not(.scrolled) .burger { color: #fff; }
.mb-stage .mock { color: var(--text); text-align: left; }

/* ---------- Documenti legali ---------- */
.doc.legal { max-width: 860px; }
.doc.legal h2 { scroll-margin-top: 80px; font-size: 21px; margin-top: 46px; }
.doc.legal h3 { font-size: 17px; margin: 26px 0 8px; letter-spacing: -.01em; }
.doc.legal p, .doc.legal li { text-align: justify; hyphens: auto; }
.doc.legal a { color: var(--violet); }
.doc-toc { margin: 10px 0 30px; padding: 20px 24px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.doc-toc b { font: 600 14px var(--font); color: var(--text); }
.doc-toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 30px; font-size: 14px; }
.doc-toc li { margin-bottom: 4px; break-inside: avoid; text-align: left; } .doc-toc a { color: var(--muted); } .doc-toc a:hover { color: var(--text); }
.lt { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; }
.lt th { text-align: left; font-weight: 600; color: var(--text); padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.lt td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; line-height: 1.55; }
@media (max-width: 640px) { .doc-toc ol { columns: 1; } .lt { display: block; overflow-x: auto; } .doc.legal p, .doc.legal li { text-align: left; } }
.foot-bottom span { line-height: 1.5; }
.doc.legal .doc-toc li { text-align: left; hyphens: manual; }

/* Gradienti morbidi: toni polverosi e transizione graduale, meno saturi.
   --grad per riempimenti (testo bianco sopra), --grad-text per titoli: più chiaro in dark mode. */
:root { --grad: linear-gradient(100deg, #c97890 0%, #a07cc4 50%, #7f7cd6 100%); --grad-v: linear-gradient(180deg, #c97890, #7f7cd6); --grad-text: linear-gradient(100deg, #cb7d95 0%, #a583c8 50%, #8582da 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grad-text: linear-gradient(100deg, #e9a7b9 0%, #c6aae4 50%, #aeabf1 100%); } }
:root[data-theme="dark"] { --grad-text: linear-gradient(100deg, #e9a7b9 0%, #c6aae4 50%, #aeabf1 100%); }
html.mambu:not(.x) { --grad-text: var(--grad); }
.grad, .tour-step, .ph.today b { background-image: var(--grad-text); }

/* Collegamenti tra i settori (pagine di atterraggio) */
.related { border-top: 1px solid var(--line); }
.related-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.related-links a { padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 500; font-size: 15px; color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.related-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Mobile: nessuno scorrimento orizzontale. Gli elementi di griglie e colonne possono restringersi
   sotto la larghezza del loro contenuto (finti planning e schermate si adattano invece di allargare la pagina). */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.wrap :where(div, article, aside, li, ul, ol, section, figure, form) { min-width: 0; }
.mock, .scene, .visual, .lp-mock, .m-visual, .round-photo { max-width: 100%; }
@media (max-width: 640px) {
  .fc1, .fc3, .lp-fc.f1, .lp-fc.f3 { left: 2%; } .fc2, .fc4, .lp-fc.f2 { right: 2%; }
  .spark.s3 { right: 2%; } .spark.s1 { left: 2%; }
}

/* Accesso riservato con codice (pagina partner) */
.mb-gate { min-height: 72vh; display: grid; place-items: center; }
.gate-form { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 34px auto 0; max-width: 420px; }
.gate-otp { display: flex; gap: 8px; justify-content: center; }
.gate-otp input { width: 48px; height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: center; font: 700 24px var(--display); outline: none; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; }
.gate-otp input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 16%, transparent); transform: translateY(-1px); }
.gate-in { max-width: 260px; text-align: center; font-size: 18px; letter-spacing: .1em; }
.gate-err { min-height: 20px; margin: 0; color: var(--danger); font-size: 14px; }
.gate-form .btn { min-width: 160px; justify-content: center; text-align: center; }
.gate-form.shake .gate-otp, .gate-form.shake .gate-in { animation: gateShake .45s; }
.gate-form.ok .gate-otp input { border-color: var(--green); }
@keyframes gateShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 400px) { .gate-otp input { width: 40px; height: 52px; font-size: 21px; } }

/* Pagina partner: filigrana fissa al centro dello schermo */
.mb-watermark { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; user-select: none; overflow: hidden; }
.mb-watermark { font: 800 clamp(34px, 7.4vw, 112px)/1.02 var(--display); letter-spacing: -.03em; text-align: center; text-transform: uppercase; color: #fff; mix-blend-mode: difference; opacity: .09; padding: 0 4vw; transform: rotate(-18deg); }
@media print { .mb-watermark { position: fixed; opacity: .1; } }

/* Banner dei cookie */
.cookie-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 20px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.14); animation: ck-in .5s cubic-bezier(.2,.8,.2,1) both; }
.cookie-bar p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); flex: 1; }
.cookie-bar p a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar > div { display: flex; gap: 8px; flex: none; }
.cookie-bar.out { opacity: 0; transform: translate(-50%, 12px); transition: .3s; }
@keyframes ck-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar > div > * { flex: 1; } }
/* Riproduzione di una visita */
body.replay { cursor: default; }
.rp-cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 18px; height: 18px; pointer-events: none; opacity: 0; transition: transform .12s linear, opacity .2s; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-7 1-3.5 6.5z' fill='%23111' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.rp-click { position: absolute; z-index: 9998; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid #ff4d6d; background: rgba(255,77,109,.18); pointer-events: none; animation: rp-ck .9s ease-out forwards; }
@keyframes rp-ck { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Importazione in 60 secondi */
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.imp-ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.imp-ways span { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.imp-vis { position: relative; }
.imp-timer { position: absolute; right: -10px; bottom: -22px; padding: 14px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.imp-timer b { font: 800 34px/1 var(--display); background: var(--grad, linear-gradient(90deg,#cf7f97,#8a86dc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.imp-timer small { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
@media (max-width: 860px) { .imp-grid { grid-template-columns: 1fr; gap: 40px; } .imp-timer { right: 8px; } }
/* IVA esente */
.vat-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: .92em; color: var(--text); background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(90deg, #cf7f97, #8a86dc) border-box; border: 1px solid transparent; }
.vat-plans { display: flex; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.vat-plans > div { min-width: 170px; padding: 22px 24px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 8px 26px rgba(0,0,0,.04); }
.vat-plans small { color: var(--muted); font-size: 13px; font-weight: 600; }
.vat-plans b { font: 800 40px/1.1 var(--display); }
.vat-plans span { color: var(--muted); font-size: 13px; }
.vat-plans em { font-style: normal; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #1f9d6b; background: rgba(46,204,154,.12); padding: 4px 10px; border-radius: 999px; }

/* ---------- Logo: quadrato pieno con quattro quadratini, uguale ovunque ---------- */
.logo i, .m-logo i { width: 20px; height: 20px; border-radius: 6px; background: var(--text); position: relative; flex: none; display: block; }
.logo i::after, .m-logo i::after { content: ''; position: absolute; inset: 4.5px; border-radius: 0; background:
  linear-gradient(var(--bg), var(--bg)) left top / 4.6px 4.6px no-repeat,
  linear-gradient(color-mix(in srgb, var(--bg) 40%, var(--text)), color-mix(in srgb, var(--bg) 40%, var(--text))) right top / 4.6px 4.6px no-repeat,
  linear-gradient(color-mix(in srgb, var(--bg) 40%, var(--text)), color-mix(in srgb, var(--bg) 40%, var(--text))) left bottom / 4.6px 4.6px no-repeat,
  linear-gradient(color-mix(in srgb, var(--bg) 40%, var(--text)), color-mix(in srgb, var(--bg) 40%, var(--text))) right bottom / 4.6px 4.6px no-repeat; }
/* Il rompicapo dei turni */
.puzzle { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.puzzle span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.puzzle span.in, .puzzle.in span { animation: pz .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.puzzle svg { width: 14px; height: 14px; color: #1f9d6b; }
@keyframes pz { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.rule-steps { max-width: 720px; margin: 0 auto; }
/* Invito fisso su telefono: compare dopo il primo schermo */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .m-cta .btn { width: 100%; justify-content: center; height: 50px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
  body.past-hero .m-cta { transform: none; }
  body.past-hero .cookie-bar { bottom: 76px; }
}

/* Prenotazione della chiamata */
.book .bk-h { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 14px; flex-wrap: wrap; }
.book .bk-h > b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 12.5px; }
.bk-pick { margin-left: auto; border: 0; background: var(--bg-2); color: var(--text); padding: 6px 12px; border-radius: 999px; font: 500 13px Inter, sans-serif; cursor: pointer; }
.bk-pick u { color: var(--muted); margin-left: 4px; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { flex: none; width: 64px; padding: 10px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; scroll-snap-align: start; transition: .2s; font-family: Inter, sans-serif; }
.bk-day small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; } .bk-day b { font-size: 20px; line-height: 1.2; }
.bk-day:hover { border-color: var(--text); }
.bk-day.on { background: var(--text); color: var(--bg); border-color: var(--text); } .bk-day.on small { color: inherit; opacity: .7; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 8px; min-height: 48px; }
.bk-time { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 14px Inter, sans-serif; cursor: pointer; transition: .18s; animation: pz .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.bk-time:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-1px); }
.bk-tz { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.bk-step.bk-in { animation: pz .4s cubic-bezier(.2,.8,.2,1) both; }
.bk-step[hidden] { display: none !important; }
.imp-hero .lead { margin-top: 22px; }

/* ---------- Come funziona: barra dei passi fissa in alto + righe allineate testo/esempio ---------- */
.story { position: relative; }
.story-nav { position: sticky; top: 74px; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 auto 10px; padding: 14px 18px 12px; max-width: 860px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.story-nav .line { position: absolute; left: calc(10% + 18px); right: calc(10% + 18px); top: 30px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.story-nav .line i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--grad); transition: width .45s var(--ease); }
.step-n { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; cursor: pointer; color: var(--faint); font-family: inherit; padding: 0; transition: color .3s; }
.step-n span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 700 13px var(--display); color: var(--muted); transition: background .3s, color .3s, transform .3s var(--ease); z-index: 1; margin-bottom: 4px; }
.step-n b { font-size: 14px; font-weight: 600; } .step-n small { font-size: 11.5px; color: var(--faint); }
.step-n.on { color: var(--text); } .step-n.on span { background: var(--text); color: var(--bg); border-color: var(--text); transform: scale(1.1); }
.step-n.done { color: var(--muted); } .step-n.done span { background: var(--grad); color: #fff; border-color: transparent; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.panel:last-child { border-bottom: 0; }
.panel-txt { max-width: 440px; }
.panel .k { display: inline-flex; align-items: center; gap: 10px; font: 600 13.5px var(--display); color: var(--muted); letter-spacing: .01em; margin-bottom: 16px; }
.panel .k i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; background: var(--grad); }
.panel h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; }
.panel p { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0; }
.panel-vis { display: flex; justify-content: center; }
.panel-vis > * { width: 100%; max-width: 520px; }
@media (max-width: 860px) {
  .story-nav { top: 64px; padding: 10px 8px; border-radius: 18px; }
  .step-n small { display: none; } .step-n b { font-size: 12px; } .step-n span { width: 28px; height: 28px; }
  .story-nav .line { top: 24px; }
  .panel { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 44px 0; }
}

/* Schermate vere dell'app nei passi */
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0,0,0,.22), 0 8px 24px rgba(0,0,0,.06); transform: translateY(18px) scale(.985); opacity: 0; transition: transform .9s var(--ease), opacity .7s; }
.shot.in { transform: none; opacity: 1; }
.shot-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot-bar .dots { display: flex; gap: 6px; } .shot-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 18%, transparent); }
.shot-url { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); margin-right: 48px; }
.shot img { display: block; width: 100%; height: auto; }
.shot-scene { height: 470px; }
.shot-screen { min-height: 0 !important; aspect-ratio: 390 / 664; }
.shot-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 860px) { .shot-scene { height: 420px; } }

/* ---------- Lingua ---------- */
.foot-tools { display: inline-flex; align-items: center; gap: 12px; }
.lang-pick { position: relative; display: inline-block; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 500 13px var(--font); cursor: pointer; transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--text); }
.lang-btn span { font-size: 15px; line-height: 1; }
.lang-menu { position: absolute; bottom: calc(100% + 8px); right: 0; min-width: 190px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); z-index: 30; }
.mobile-menu .lang-menu { bottom: auto; top: calc(100% + 8px); left: 0; right: auto; }
.lang-pick.open .lang-menu { opacity: 1; pointer-events: auto; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.mobile-menu .lang-menu a { font: 500 15px var(--font); border: 0; padding: 9px 12px; }
.lang-menu a:hover, .lang-menu a.on { background: var(--surface-2); }
.lang-menu a span { font-size: 16px; }

/* ---------- Prezzi: mensile o annuale ---------- */
.period { position: relative; display: flex; width: max-content; margin: 0 auto 36px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.period button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 14.5px var(--font); padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: color .25s; display: inline-flex; gap: 8px; align-items: center; }
.period button.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.period button { transition: color .25s, background .25s, box-shadow .25s; }
.period button em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: linear-gradient(90deg, #cf7f97, #8a86dc); color: #fff; }
.period i { display: none; }
.plans[data-per="m"] .py, .plans[data-per="y"] .pm { display: none; }
.plans .py { animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Paese non ancora servito ---------- */
.wait-form .input { height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 15px var(--font); outline: none; flex: 1; min-width: 220px; }
.wait-form .input:focus { border-color: var(--faint); }
.wait-form.ok .gate-err { color: var(--muted); }

/* avviso del paese e suggerimento della lingua */
.top-bars { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 49; display: grid; gap: 8px; width: min(600px, calc(100% - 32px)); pointer-events: none; }
.top-bar { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.08); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(-8px); transition: opacity .32s, transform .32s; }
.top-bar.in { opacity: 1; transform: none; }
.top-bar.out { opacity: 0; transform: translateY(-8px); }
.top-bar > span { font-size: 18px; line-height: 1; }
.top-bar p { margin: 0; flex: 1; color: var(--text); }
.top-bar .btn.sm { flex: none; }
.top-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.top-x:hover { background: var(--bg-2); color: var(--text); }
@media (max-width: 600px) { .top-bars { top: 70px; } .top-bar { font-size: 13px; } }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 15.5px; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { width: 34%; font-weight: 500; color: var(--text); padding-right: 16px; }
.doc-table td { color: var(--muted); }
@media (max-width: 640px) { .doc-table th { width: 40%; } }
/* calcolatore «Quanto risparmi» */
.calc-sec { padding-top: 90px; padding-bottom: 90px; }
.calc { margin: 34px auto 0; max-width: 560px; padding: 30px 30px 26px; border-radius: 26px; background: var(--card, var(--bg)); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.06); text-align: left; }
.calc-n { font-size: 15px; color: var(--muted); } .calc-n b { font: 700 40px/1 var(--display, inherit); color: var(--text); margin-right: 6px; letter-spacing: -.02em; }
.calc-slider { position: relative; height: 34px; margin: 18px 0 12px; cursor: pointer; touch-action: none; outline: none; }
.cs-track { position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cs-track i { display: block; height: 100%; width: 0; background: var(--grad); }
.cs-knob { position: absolute; top: 5px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04); transition: transform .15s; }
.calc-slider.drag .cs-knob, .calc-slider:focus-visible .cs-knob { transform: scale(1.15); }
.calc-line { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; } .calc-line b { color: var(--text); }
.calc-save { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.calc-save b { font: 700 30px/1 var(--display, inherit); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
@media (max-width: 600px) { .calc { padding: 22px 18px; } }
/* prezzi: fascia e periodo */
.price-ctrl { display: flex; justify-content: center; gap: 22px 34px; flex-wrap: wrap; margin: 0 auto 36px; }
.pc-group { display: grid; gap: 8px; justify-items: center; }
.pc-lbl { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.price-ctrl .period { margin: 0; }
.plan .price span[data-m] { display: inline-block; transition: transform .3s var(--ease); }
.plan .price span.flip { transform: translateY(-2px); }
.included .only-l[hidden] { display: none; }
@media (max-width: 600px) {
  .price-ctrl { gap: 18px; } .pc-group { width: 100%; }
  .price-ctrl .period { width: 100%; max-width: 100%; } .price-ctrl .period button { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13px; gap: 5px; }
  .price-ctrl .period button em { font-size: 10.5px; padding: 1px 5px; }
}

/* ---------- Restyle: più classico e concreto (hero diviso, funzioni alternate, schede settore) ---------- */
.h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.035em; line-height: 1.05; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.03em; line-height: 1.08; }
.pad { padding: 112px 0; }
.hero2 { padding: 132px 0 70px; position: relative; overflow: hidden; }
.hero2::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 100%; background: linear-gradient(180deg, var(--bg-2), var(--bg) 85%); z-index: 0; }
.hero2 .wrap { position: relative; z-index: 1; }
.h2-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; max-width: 1180px; }
.h2-txt .eyebrow { color: var(--violet); letter-spacing: .06em; }
.h2-txt .h1 { margin: 0; }
.h2-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.h2-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--text); }
.h2-list li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--green) 16%, transparent); color: color-mix(in srgb, var(--green) 80%, var(--text)); }
.h2-txt .hero-cta { justify-content: flex-start; margin-top: 32px; }
.h2-txt .hero-note { margin-top: 14px; }
.h2-vis { position: relative; padding: 0 0 40px 30px; }
.h2-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.h2-photo .img { width: 100%; height: 112%; margin-top: -6%; background-size: cover; background-position: center; }
.h2-mock { position: absolute; left: -10px; right: 34%; bottom: 0; z-index: 2; }
.h2-mock .mock { border-radius: 16px; font-size: 11px; }
.h2-mock .grid { font-size: 10.5px; }
.h2-fc.a { top: 26px; right: -14px; }
.h2-fc.b { top: 42%; right: -24px; animation-delay: -3s; }

.sect-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; background: var(--bg); }
.sect-strip .wrap { display: flex; align-items: center; gap: 22px; max-width: 1180px; }
.sect-strip span { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.sect-strip .wrap > div { display: flex; gap: 8px; flex-wrap: wrap; }
.sect-strip a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--text); background: var(--surface-2); transition: background .2s var(--ease), color .2s var(--ease); }
.sect-strip a:hover { background: var(--surface-3); }
.sect-strip a.more { background: transparent; color: var(--violet); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

.feats-head { margin-bottom: 64px; }
.feat { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding: 46px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat.rev .feat-txt { order: 2; }
.feat-k { display: block; font-size: 13px; font-weight: 600; color: var(--violet); margin-bottom: 12px; letter-spacing: .02em; }
.feat .h3 { margin: 0; letter-spacing: -.025em; }
.feat .h2-list li { font-size: 16px; color: var(--muted); }
.feat .link { margin-top: 24px; }
.feat-vis .scene, .feat-vis .shot { margin: 0; }

.stabs-site { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 34px; max-width: 900px; }
.stabs-site button { appearance: none; border: 0; cursor: pointer; font: 500 14.5px var(--font); padding: 9px 16px; border-radius: 999px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s var(--ease); }
.stabs-site button:hover { color: var(--text); }
.stabs-site button.on { background: var(--text); color: var(--bg); box-shadow: none; }
.stabs-panels { position: relative; }
.stp { display: none; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stp.on { display: grid; animation: stpIn .45s var(--ease); }
@keyframes stpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stp-img { min-height: 380px; background-size: cover; background-position: center; }
.stp-txt { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.stp-txt .h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.stp-txt p { color: var(--muted); margin: 14px 0 0; font-size: 16.5px; line-height: 1.5; }
.stp-txt .h2-list li { font-size: 15.5px; }
.stp-txt .btn { margin-top: 26px; align-self: flex-start; }

.start3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.start3::before { content: ''; position: absolute; top: 22px; left: 16%; right: 16%; height: 1px; background: var(--line); }
.start3 li { text-align: center; padding: 0 22px; position: relative; }
.start3 .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font: 700 16px var(--display); position: relative; }
.start3 small { display: block; font-size: 12.5px; color: var(--violet); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.start3 h3 { font: 650 21px var(--display); margin: 8px 0 8px; letter-spacing: -.02em; }
.start3 p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.5; }

.vat-plans { display: flex; justify-content: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.vat-plans > div { min-width: 190px; padding: 22px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 2px; text-align: left; }
.vat-plans small { font-size: 13px; color: var(--muted); font-weight: 600; }
.vat-plans b { font: 700 28px var(--display); letter-spacing: -.02em; }
.vat-plans span { font-size: 13px; color: var(--muted); }
.vat-plans em { font-style: normal; font-size: 12px; color: var(--faint); margin-top: 6px; }

.cta-final { padding: 120px 0 130px; }

@media (max-width: 960px) {
  .h2-grid { grid-template-columns: 1fr; gap: 46px; }
  .h2-vis { padding: 0 0 30px; max-width: 560px; margin: 0 auto; width: 100%; }
  .h2-photo { aspect-ratio: 4 / 3.4; }
  .h2-mock { left: 12px; right: 22%; }
  .h2-fc.a { right: 8px; } .h2-fc.b { display: none; }
  .feat, .stp.on { grid-template-columns: 1fr; gap: 30px; }
  .feat.rev .feat-txt { order: 0; }
  .stp-img { min-height: 220px; }
  .stp-txt { padding: 30px 26px; }
  .start3 { grid-template-columns: 1fr; gap: 34px; } .start3::before { display: none; }
  .sect-strip .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .hero2 { padding: 108px 0 50px; }
  .h2-list li { font-size: 16px; }
  .pad { padding: 84px 0; }
  .h2-mock { display: none; }
  .stabs-site { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -24px; margin-right: -24px; padding: 0 24px; }
  .stabs-site button { white-space: nowrap; }
  .vat-plans > div { min-width: 0; flex: 1 1 140px; }
}
.hero-dots { opacity: .45; }
.mb-glow { opacity: .55; }
.hero-pill i { animation: none; }
.h2-mock { left: -34px; right: 22%; bottom: 0; }
.h2-mock .hide-sm, .h2-mock .mock-bar .muted, .h2-mock .mock-bar .chip.g { display: none; }
.h2-mock .grid { grid-template-columns: 92px repeat(4, 1fr); }
.h2-mock .mock-bar { padding: 11px 14px; }
@media (max-width: 960px) { .h2-mock { left: 10px; right: 18%; } }
.h2-fc.b { top: 22%; left: -8px; right: auto; }
@media (max-width: 960px) { .h2-fc.b { display: none; } }

/* DM Sans: spaziature calibrate (più aperto di Inter Tight, niente lettere schiacciate) */
body { letter-spacing: -.005em; }
/* DM Sans stringe già da solo le lettere grandi (asse ottico): spaziatura appena negativa */
h1, h2, h3, .h1, .h2, .h3, .logo, .mobile-menu a { letter-spacing: -.015em !important; }
.h1 { letter-spacing: -.02em !important; line-height: 1.05; }
.eyebrow { letter-spacing: .07em; }
.btn { letter-spacing: -.005em; }

/* ---------- Foto vere + schermate: telefono in proporzioni reali, computer sopra la foto ---------- */
.ph-comp { position: relative; height: 500px; max-width: 580px; }
.ph-photo, .dk-photo { position: absolute; border-radius: 26px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow); }
.ph-photo { inset: 0 21% 0 0; }
.ph-photo .img, .dk-photo .img { position: absolute; inset: -6% 0; background-size: cover; background-position: center; will-change: transform; }
.phone2 { position: absolute; right: 0; top: 50%; width: 250px; padding: 9px; border-radius: 46px; background: #0d0d0f;
  box-shadow: 0 0 0 1.5px #3a3a3e, 0 40px 80px -24px rgba(0,0,0,.45), 0 12px 30px rgba(0,0,0,.18);
  transform: translateY(-46%); opacity: 0; transition: transform 1s var(--ease), opacity .7s; }
.ph-comp.in .phone2 { transform: translateY(-50%); opacity: 1; }
.p2-screen { border-radius: 37px; overflow: hidden; background: #fff; }
.p2-status { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; color: #111; position: relative; }
.p2-status b { font: 600 13px var(--font); letter-spacing: 0; }
.p2-status i { position: absolute; left: 50%; top: 9px; width: 76px; height: 21px; margin-left: -38px; border-radius: 12px; background: #0d0d0f; }
.p2-status span { display: flex; gap: 2px; align-items: flex-end; height: 10px; } .p2-status em { width: 3px; background: #111; border-radius: 1px; }
.p2-status em:nth-child(1) { height: 5px; } .p2-status em:nth-child(2) { height: 7px; } .p2-status em:nth-child(3) { height: 10px; }
.p2-screen img { display: block; width: 100%; height: auto; }

.dk-comp { position: relative; padding-top: 24%; max-width: 620px; }
.dk-photo { top: 0; right: 0; width: 80%; height: 76%; }
.dk-comp .shot { position: relative; z-index: 1; width: 88%; border-radius: 14px; }
.feat.rev .dk-photo { right: auto; left: 0; } .feat.rev .dk-comp .shot { margin-left: auto; }
.feat.rev .ph-photo { inset: 0 0 0 21%; } .feat.rev .phone2 { right: auto; left: 0; }

@media (max-width: 960px) {
  .ph-comp { height: 460px; margin: 0 auto; } .dk-comp { margin: 0 auto; }
  .feat.rev .ph-photo { inset: 0 21% 0 0; } .feat.rev .phone2 { left: auto; right: 0; }
}
@media (max-width: 640px) {
  .ph-comp { height: 420px; } .ph-photo, .feat.rev .ph-photo { inset: 0 16% 0 0; }
  .phone2 { width: 205px; padding: 7px; border-radius: 38px; } .p2-screen { border-radius: 31px; } .p2-status { height: 32px; }
  .p2-status i { width: 62px; height: 18px; margin-left: -31px; top: 8px; }
  .dk-comp { padding-top: 30%; } .dk-photo { width: 86%; height: 72%; } .dk-comp .shot { width: 94%; }
}
.dk-comp { padding-top: 32%; } .dk-photo { height: 82%; width: 82%; }
