/* SwissFixa — sito di presentazione. Si appoggia a tokens.css (design system "Carte"). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; font-feature-settings: "ss01", "tnum"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.h2 { margin: 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 750; max-width: 20ch; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--on-surface-variant); max-width: 56ch; }
.muted { color: var(--on-surface-variant); }
.small { font-size: 14px; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 240ms var(--ease-standard), background-color 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -12px rgba(79,63,224,.7); }
.btn--primary:hover { box-shadow: 0 14px 30px -12px rgba(79,63,224,.85); transform: translateY(-1px); }
.btn--quiet { color: var(--on-surface); background: transparent; box-shadow: inset 0 0 0 1.5px var(--outline-variant); }
.btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--outline); }
.btn--ghost { min-height: 40px; padding: 0 14px; font-size: 15px; color: var(--primary); background: var(--primary-container); }
.btn--light { background: #fff; color: #20168a; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }

/* ---------- barra in alto ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color 240ms, box-shadow 240ms; }
.nav.is-stuck { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--outline-variant); }
.nav__in { width: min(1180px, 100% - 32px); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 24px; }
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--on-surface-variant); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav__links a:hover { color: var(--on-surface); background: var(--surface-container); }
.nav nav { margin-right: auto; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn { min-width: 44px; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--on-surface); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--outline-variant); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--surface-container-lowest); box-shadow: var(--elevation-3); }
.lang__menu a, .lang__menu span { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--on-surface); text-decoration: none; }
.lang__menu a { font-weight: 600; background: var(--primary-container); color: var(--on-primary-container); }
.lang__menu span { color: var(--on-surface-variant); }
.lang__menu em { font-style: normal; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); }
.hero__in { width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__kicker { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--primary); }
.hero__title { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.048em; font-weight: 800; }
.hero__title .ln { display: block; }
.hero__title .ln--accent { background: linear-gradient(100deg, var(--hero-start) 10%, var(--hero-end) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__title .ln--accent { background-image: linear-gradient(100deg, #b2a8ff 10%, #ff9cc6 75%); } }
.hero__lead { margin: 26px 0 0; max-width: 46ch; font-size: clamp(17px, 1.45vw, 20px); color: var(--on-surface-variant); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__fine { margin: 18px 0 0; font-size: 14px; color: var(--on-surface-variant); }

/* palco con telefono */
.stage { position: relative; display: grid; place-items: center; min-height: 620px; perspective: 1400px; }
.stage__glow { position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,211,168,.55), rgba(255,95,162,.20) 48%, rgba(79,63,224,.10) 70%, transparent 76%); filter: blur(8px); }
.phone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 52px; background: linear-gradient(150deg, #2d2a45, #121024 60%); box-shadow: 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 50px 90px -30px rgba(42,15,110,.55), 0 30px 50px -30px rgba(0,0,0,.45); transform-style: preserve-3d; }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 43px; background: var(--surface); color: var(--on-surface); font-size: 13px; line-height: 1.35; }
.scr-top { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 26px; font-size: 13px; font-weight: 600; }
.scr-top::after { content: ""; position: absolute; left: 50%; top: 10px; width: 88px; height: 25px; translate: -50% 0; border-radius: 20px; background: #0b0a17; }
.scr-top__icons { display: flex; gap: 4px; }
.scr-top__icons i { width: 14px; height: 9px; border-radius: 3px; background: currentColor; opacity: .85; }
.scr-top__icons i:nth-child(2) { width: 10px; }
.app { padding: 4px 14px 14px; }
.app__hi { display: flex; flex-direction: column; padding: 6px 4px 12px; }
.app__hi b { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.app__hi small { font-size: 12px; color: var(--on-surface-variant); }
.mini-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 2px; padding: 14px 16px 15px; border-radius: 22px; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: #fff; box-shadow: var(--hero-glow); }
.mini-hero::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; top: -55%; border-radius: 50%; background: radial-gradient(circle, rgba(255,211,168,.5), rgba(255,211,168,0) 65%); }
.mini-hero > span:first-child { font-size: 12.5px; font-weight: 500; }
.mini-hero strong { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.mini-hero strong small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.mini-hero__bar { display: block; height: 6px; margin: 8px 0 6px; border-radius: 6px; background: rgba(255,255,255,.25); overflow: hidden; }
.mini-hero__bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--peach); transform-origin: left; }
.mini-hero__note { font-size: 11.5px; opacity: .92; }
.wallet-h { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 4px 8px; }
.wallet-h b { font-size: 15px; }
.wallet-h span { font-size: 11.5px; color: var(--on-surface-variant); }

/* carte (dal design system: sf-card) */
.c { --g1: #4a35d8; --g2: #5b45e6; position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "d a"; align-content: start; gap: 2px 8px; min-height: 84px; padding: 11px 14px 12px; border-radius: 17px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; box-shadow: var(--card-stack); }
.c::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.24), rgba(255,255,255,0) 42%); }
.c__n { grid-area: n; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c__p { grid-area: p; justify-self: end; align-self: start; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.28); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.c__p--ok::before { content: "✓ "; }
.c__p--late { background: #fff; color: #a83a0b; }
.c__a { grid-area: a; align-self: end; font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.c__a small { font-size: 10.5px; font-weight: 600; margin-right: 3px; letter-spacing: 0; }
.c__d { grid-area: d; align-self: end; font-size: 11px; opacity: .9; }
.c--rent { --g1: var(--cat-rent-start); --g2: var(--cat-rent-end); }
.c--health { --g1: var(--cat-health-start); --g2: var(--cat-health-end); }
.c--tax { --g1: var(--cat-tax-start); --g2: var(--cat-tax-end); }
.c--power { --g1: var(--cat-power-start); --g2: var(--cat-power-end); }
.c--phone { --g1: var(--cat-phone-start); --g2: var(--cat-phone-end); }
.wallet { display: flex; flex-direction: column; }
.wallet .c { margin-top: -50px; }
.wallet .c:first-child { margin-top: 0; }
.wallet .c:last-child { min-height: 96px; }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px 18px; background: color-mix(in srgb, var(--surface-container-low) 94%, transparent); box-shadow: 0 -1px 0 var(--outline-variant); }
.tabbar span { display: grid; justify-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--on-surface-variant); }
.tabbar i { width: 34px; height: 18px; border-radius: 9px; background: var(--outline-variant); opacity: .6; }
.tabbar .is-sel { color: var(--on-surface); }
.tabbar .is-sel i { background: var(--primary-container); opacity: 1; box-shadow: inset 0 0 0 5px var(--primary-container), inset 0 0 0 9px var(--primary); }

/* notifiche flottanti */
.float { position: absolute; z-index: 2; display: grid; gap: 1px; padding: 12px 16px 13px; min-width: 200px; border-radius: 18px; background: color-mix(in srgb, var(--surface-container-lowest) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--elevation-3); font-size: 14px; line-height: 1.3; }
.float span { font-size: 12px; font-weight: 600; color: var(--primary); }
.float em { font-style: normal; font-size: 13px; color: var(--on-surface-variant); }
.float--a { left: -12%; bottom: 13%; }
.float--b { right: -10%; top: 8%; }

/* ---------- coreografia d'apertura (unico momento automatico) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .ln, .js .hero__kicker, .js .hero__lead, .js .hero__cta, .js .hero__fine { opacity: 0; transform: translateY(26px); }
  .js .phone--hero-in { opacity: 0; transform: translateY(60px) rotateX(14deg) rotateZ(-3deg); }
  .js .wallet .c, .js .float, .js .mini-hero { opacity: 0; }
  .is-ready .hero__kicker { animation: rise 800ms var(--ease-emphasized-decel) 60ms forwards; }
  .is-ready .hero__title .ln { animation: rise 900ms var(--ease-emphasized-decel) forwards; animation-delay: calc(140ms + var(--n) * 110ms); }
  .is-ready .hero__lead { animation: rise 900ms var(--ease-emphasized-decel) 520ms forwards; }
  .is-ready .hero__cta { animation: rise 900ms var(--ease-emphasized-decel) 620ms forwards; }
  .is-ready .hero__fine { animation: rise 900ms var(--ease-emphasized-decel) 700ms forwards; }
  .is-ready .phone--hero-in { animation: phoneIn 1300ms var(--ease-emphasized-decel) 200ms forwards; }
  .is-ready .mini-hero { animation: fade 700ms var(--ease-standard) 900ms forwards; }
  .is-ready .mini-hero__bar i { animation: grow 1300ms var(--ease-emphasized-decel) 1100ms both; }
  .is-ready .wallet .c { animation: deal 820ms var(--ease-deal) forwards; animation-delay: calc(1050ms + var(--i) * 110ms); }
  .is-ready .float--a { animation: pop 700ms var(--ease-emphasized-decel) 1850ms forwards; }
  .is-ready .float--b { animation: pop 700ms var(--ease-emphasized-decel) 2150ms forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes phoneIn { to { opacity: 1; transform: none; } }
@keyframes deal { 0% { opacity: 0; transform: translate(120px, 260px) rotate(14deg) scale(.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.rig { position: relative; display: grid; place-items: center; width: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform 700ms var(--ease-standard); will-change: transform; }

/* ---------- problema ---------- */
.pains { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--outline-variant); }
.pains__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 44px; }
.pains__grid p { margin: 0; color: var(--on-surface-variant); }
.pains__grid b { display: block; margin-bottom: 6px; color: var(--on-surface); font-size: 19px; letter-spacing: -.01em; }

/* ---------- storia a scorrimento ---------- */
.story { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 90px); background: var(--surface-container-low); }
.story__h { margin-bottom: 8px; }
.story__in { width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.steps { margin: 0; padding: 0; list-style: none; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .32; transition: opacity 500ms var(--ease-standard); }
.step.is-on { opacity: 1; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.step h3 { margin: 0 0 14px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 750; }
.step p { margin: 0; color: var(--on-surface-variant); font-size: 18px; }
.step .step__tag { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--progress); font-size: 15px; color: var(--on-surface); }
.story__phone { position: sticky; top: calc(50vh - 300px); height: 600px; display: grid; place-items: center; align-self: start; margin-top: 12vh; }
.phone--story { --w: 290px; }
.scr { position: absolute; inset: 40px 0 0; padding: 4px 14px 14px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity 520ms var(--ease-standard), transform 620ms var(--ease-emphasized-decel); pointer-events: none; }
.scr.is-on { opacity: 1; transform: none; }
.fan { display: flex; flex-direction: column; }
.fan .c { margin-top: -46px; transition: margin 700ms var(--ease-emphasized-decel), transform 700ms var(--ease-emphasized-decel); }
.fan .c:first-child { margin-top: 0; }
.scr--cards.is-on .fan .c--focus { margin-top: 10px; transform: translateY(-2px); min-height: 98px; }
.note-box { display: grid; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--warning-container); color: var(--on-warning-container); font-size: 12.5px; }
.note-box b { font-size: 13.5px; }
.note-box--ok { background: var(--success-container); color: var(--on-success-container); }
.qa { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 16px 0 12px; }
.qa small { font-size: 18px; font-weight: 600; color: var(--on-surface-variant); }
.qa__v { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.qa__caret { width: 3px; height: 42px; align-self: center; border-radius: 2px; background: var(--primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--outline-variant); color: var(--on-surface-variant); }
.chip.is-sel { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.lim { margin: 14px 0 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-container); }
.lim__row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.lim__bar { display: block; height: 7px; margin: 8px 0 6px; border-radius: 7px; background: var(--surface-container-highest); overflow: hidden; }
.lim__bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--progress); transition: width 900ms var(--ease-emphasized-decel); }
.scr:not(.is-on) .lim__bar i { width: 75%; }
.lim__hint { font-size: 11.5px; color: var(--on-surface-variant); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keys span { display: grid; place-items: center; height: 40px; border-radius: 12px; background: var(--surface-container); font-size: 17px; font-weight: 600; }
.keys .keys__ok { background: var(--primary); color: var(--on-primary); font-size: 14px; }
.fc-amt { display: grid; padding: 4px 4px 6px; }
.fc-amt span { font-size: 12.5px; color: var(--on-surface-variant); }
.fc-amt strong { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.fc-amt strong small { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.fc-amt em { font-style: normal; font-size: 11.5px; color: var(--on-surface-variant); }
.fc-chart { width: 100%; height: auto; color: var(--primary); }
.fc-chart text { font-size: 10px; fill: var(--on-surface-variant); }
.fc-zero { stroke: var(--outline-variant); stroke-width: 1; }
.fc-band { fill: var(--progress); opacity: .14; }
.fc-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fc-proj { fill: none; stroke: var(--progress); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .04 .03; }
.fc-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .scr--fc .fc-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease-emphasized-decel) 200ms; }
  .scr--fc.is-on .fc-line { stroke-dashoffset: 0; }
  .scr--fc .fc-proj, .scr--fc .fc-band, .scr--fc .fc-dot { opacity: 0; transition: opacity 600ms var(--ease-standard) 1100ms; }
  .scr--fc.is-on .fc-proj, .scr--fc.is-on .fc-dot { opacity: 1; }
  .scr--fc.is-on .fc-band { opacity: .14; }
}

/* ---------- aiuti ---------- */
.aiuti { padding: clamp(64px, 9vw, 120px) 0; }
.aiuti__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.aiuti .lead { margin: 22px 0 0; }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231b7347' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.check { padding: 24px; border-radius: 26px; background: var(--surface-container-lowest); box-shadow: var(--elevation-3), 0 0 0 1px var(--outline-variant); }
.check__t { margin: 0 0 6px; font-weight: 700; font-size: 18px; }
.check fieldset { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.check legend { padding: 0; margin-bottom: 8px; font-size: 15px; color: var(--on-surface-variant); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-container); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-align: center; color: var(--on-surface-variant); transition: background-color 240ms var(--ease-standard), color 240ms var(--ease-standard), box-shadow 240ms; }
.seg input:checked + span { background: var(--surface-container-lowest); color: var(--on-surface); box-shadow: var(--elevation-1); }
.seg input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.check__out { display: grid; gap: 4px; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--primary-container); color: var(--on-primary-container); transition: background-color 400ms var(--ease-standard); }
.check__out.is-alt { background: var(--warning-container); color: var(--on-warning-container); }
.check__res { font-size: 17px; }
.check__why { font-size: 15px; line-height: 1.45; }
.check__fine { margin: 12px 0 0; font-size: 13px; color: var(--on-surface-variant); }

/* ---------- IA ---------- */
.ai { padding: clamp(64px, 9vw, 120px) 0; background: #16142b; color: #eeedf8; }
.ai .lead, .ai .muted { color: #b1aecb; }
.ai__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ai .lead { margin: 22px 0 14px; }
.ai-card { margin: 0; padding: 26px; border-radius: 26px; background: #1f1c38; box-shadow: 0 0 0 1px #3f3d58, 0 40px 80px -40px rgba(180,36,108,.5); }
.ai-card__h { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.ai-dot { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(from 0deg, #b2a8ff, #ff9cc6, #ffd3a8, #b2a8ff); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.ai-card__t { margin: 16px 0 0; font-size: 19px; line-height: 1.6; color: #e4e1f5; }
.ai-card mark { background: none; color: #fff; font-weight: 650; border-bottom: 2px solid #6fd39f; cursor: help; padding: 0 1px; border-radius: 3px; transition: background-color 200ms; }
.ai-card mark:hover, .ai-card mark:focus-visible, .ai-card mark.is-on { background: rgba(111,211,159,.16); outline: none; }
.ai-card__f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.ok-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #0f5132; color: #c8f0d8; font-size: 13px; font-weight: 700; }
.ok-pill::before { content: "✓"; }
.ai-card__src { min-height: 24px; margin-top: 10px; font-size: 14px; color: #6fd39f; }

/* ---------- fiducia ---------- */
.trust { padding: clamp(64px, 9vw, 120px) 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--outline-variant); }
.trust__grid div { padding: 24px 24px 0 0; }
.trust__grid div + div { padding-left: 24px; border-left: 1px solid var(--outline-variant); }
.trust dt { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.trust dd { margin: 8px 0 0; color: var(--on-surface-variant); font-size: 16px; }

/* ---------- prezzi ---------- */
.prices { padding: clamp(64px, 9vw, 120px) 0; background: var(--surface-container-low); }
.prices__h { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.badge-warn { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--warning-container); color: var(--on-warning-container); font-size: 14px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.plan { padding: 28px; border-radius: 26px; background: var(--surface-container-lowest); box-shadow: 0 0 0 1px var(--outline-variant); }
.plan h3 { margin: 0; font-size: 20px; }
.plan__p { margin: 10px 0 18px; color: var(--on-surface-variant); }
.plan__p b { font-size: 38px; letter-spacing: -.04em; color: var(--on-surface); margin-right: 4px; }
.plan__p span { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface-container-high); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.plan--pro { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: #fff; box-shadow: var(--hero-glow); transform: translateY(-12px); }
.plan--pro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,0) 42%); }
.plan--pro .plan__p, .plan--pro .plan__p b { color: #fff; }
.plan--pro .plan__p span { background: rgba(0,0,0,.28); }
.plan--pro li::before { background: var(--peach); }
.prices__fine { margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 9vw, 120px) 0; }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--outline-variant); }
.faq details { border-bottom: 1px solid var(--outline-variant); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%234f3fe0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform 320ms var(--ease-standard); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 60ch; color: var(--on-surface-variant); }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: rise 420ms var(--ease-emphasized-decel); } }

/* ---------- lista d'attesa ---------- */
.join { padding: clamp(16px, 3vw, 32px); }
.join__in { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; width: min(1240px, 100%); margin-inline: auto; padding: clamp(32px, 6vw, 80px); border-radius: clamp(26px, 3vw, 40px); background: linear-gradient(135deg, #4a35d8, #b4246c); color: #fff; }
.join__in::before { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -12%; top: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255,211,168,.5), rgba(255,211,168,0) 65%); }
.join__t { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.join__copy p { margin: 18px 0 0; max-width: 40ch; font-size: 18px; color: rgba(255,255,255,.9); }
.wl { display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: rgba(12,8,40,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.field { display: grid; gap: 6px; }
.wl label { font-size: 15px; font-weight: 600; }
.wl .opt { font-weight: 400; opacity: .8; }
.wl input[type=email], .wl select { width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: #fff; color: #16142b; font: inherit; font-size: 16px; }
.wl input[aria-invalid=true] { box-shadow: 0 0 0 3px #ffd3a8; }
.wl select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%2316142b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat; }
.wl :focus-visible { outline-color: #ffd3a8; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #ffd3a8; }
.consent label { font-weight: 400; font-size: 14.5px; line-height: 1.45; }
.wl a { color: #fff; }
.field__err { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fff; color: #8c1d18; font-size: 14px; font-weight: 600; }
.wl .btn { width: 100%; min-height: 52px; }
.wl__fine { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.85); }
.wl__msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 14.5px; }
.hp { position: absolute; left: -9999px; }

.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 14px; color: var(--on-surface-variant); }
.foot__in p { margin: 0; flex: 1 1 320px; }
.foot__in ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--on-surface-variant); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__grid div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 880px) {
  .hero__in, .aiuti__in, .ai__in, .faq__in, .join__in { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 560px; }
  .pains__grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--pro { transform: none; }
  .story__in { grid-template-columns: minmax(0, 1fr); }
  .story__phone { display: none; }
  .step { min-height: 0; padding: 40px 0 8px; opacity: 1; max-width: none; }
  .step__phone { display: grid; place-items: center; margin-top: 28px; }
  .step__phone .phone { --w: 260px; }
  .step__phone .scr { transition: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__in { gap: 10px; }
  .nav__logo img { width: 112px; }
  .nav__end .btn--primary { display: none; }
  .phone { --w: 268px; }
  .stage { min-height: 520px; margin-inline: -16px; overflow: hidden; }
  .float { min-width: 0; padding: 10px 12px; font-size: 13px; }
  .float--a { left: 8px; bottom: 9%; top: auto; }
  .float--b { right: 8px; top: 5%; bottom: auto; }
  .install { display: none !important; }
  .trust__grid { grid-template-columns: minmax(0, 1fr); }
  .trust__grid div, .trust__grid div + div { padding: 20px 0 0; border-left: 0; }
  .ai-card, .check { padding: 20px; }
  .ai-card__t { font-size: 17px; }
}
@media (min-width: 881px) { .step__phone { display: none; } }


/* ---------- v2: barra sondaggio, fonti, imposte, cassa malati, sondaggio ---------- */
.survey-bar { background: var(--inverse-surface); color: var(--inverse-on-surface); font-size: 14px; }
.survey-bar p { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 9px 0; text-align: center; }
.survey-bar a { color: inherit; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.source { margin: 32px 0 0; max-width: 70ch; font-size: 14px; color: var(--on-surface-variant); padding-left: 14px; border-left: 3px solid var(--outline-variant); }
.nowrap { white-space: nowrap; }
.meter { display: block; height: 10px; border-radius: 10px; background: var(--surface-container-highest); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--hero-start), var(--progress)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .is-seen .meter i { animation: grow 1400ms var(--ease-emphasized-decel) 150ms both; } }

.tax { padding: clamp(64px, 9vw, 120px) 0; background: var(--surface-container-low); }
.tax__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tax .lead { margin: 22px 0 0; }
.tax .ticks { margin-bottom: 20px; }
.taxcard { margin: 0; display: grid; gap: 18px; padding: 26px; border-radius: 26px; background: var(--surface-container-lowest); box-shadow: var(--elevation-3), 0 0 0 1px var(--outline-variant); }
.taxcard__head { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, var(--cat-tax-start), var(--cat-tax-end)); color: #fff; box-shadow: var(--card-stack); }
.taxcard__head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%); }
.taxcard__head > span { font-size: 13px; font-weight: 600; opacity: .95; }
.taxcard__head b { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.025em; }
.taxcard__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15px; color: var(--on-surface-variant); }
.taxcard__row b { color: var(--on-surface); }
.rates { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rate { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n s a" "m s a"; align-items: center; gap: 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-container); }
.rate__n { grid-area: n; font-weight: 700; }
.rate__m { grid-area: m; font-size: 13px; color: var(--on-surface-variant); }
.rate__s { grid-area: s; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.rate__a { grid-area: a; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rate--paid .rate__s { background: var(--success-container); color: var(--on-success-container); }
.rate--paid .rate__s::before { content: "✓ "; }
.rate--due { box-shadow: inset 0 0 0 2px var(--warning); background: var(--warning-container); color: var(--on-warning-container); }
.rate--due .rate__m { color: inherit; }
.rate--due .rate__s { background: var(--warning); color: var(--on-warning); }
.taxcard__note { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--primary-container); color: var(--on-primary-container); font-size: 14.5px; line-height: 1.45; }

.kk { display: grid; gap: 10px; margin-top: 26px; max-width: 30rem; }
.kk__card { min-height: 104px; padding: 16px 18px; border-radius: 20px; }
.kk__card .c__n { font-size: 16px; }
.kk__card .c__p { font-size: 12px; background: #fff; color: #8f1d58; }
.kk__card .c__d { font-size: 13px; }
.kk__card .c__a { font-size: 20px; }
.kk__rem { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--warning-container); color: var(--on-warning-container); font-size: 14.5px; line-height: 1.45; }
.kk__rem b { margin-right: 4px; }

.survey { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--outline-variant); }
.survey__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.survey .lead { margin: 22px 0 0; }
.survey__box { display: grid; gap: 14px; padding: 28px; border-radius: 26px; background: var(--primary-container); color: var(--on-primary-container); }
.survey__count { font-size: 17px; }
.survey__count b { font-size: 48px; line-height: 1; letter-spacing: -.04em; margin-right: 6px; }
.meter--light { background: color-mix(in srgb, var(--on-primary-container) 14%, transparent); }
.survey__btn { justify-self: start; margin-top: 4px; }
.survey__fine { margin: 0; font-size: 13.5px; }
.survey__fine a { color: inherit; }

.badge-ok { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--success-container); color: var(--on-success-container); font-size: 14px; font-weight: 600; }
.plan__alt { margin: -12px 0 18px; font-size: 14px; opacity: .9; }
.plan__founder { margin: 20px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,211,168,.95); color: #2c1a00; font-size: 14.5px; line-height: 1.45; }
.plan__founder b { display: block; }

@media (max-width: 880px) {
  .tax__in, .survey__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .survey-bar p { text-align: left; font-size: 13.5px; }
  .taxcard, .survey__box { padding: 20px; }
  .rate { grid-template-columns: 1fr auto; grid-template-areas: "n a" "m a" "s s"; }
  .rate__s { margin-top: 6px; }
  .survey__btn { justify-self: stretch; }
}

/* ---------- v3: le 5 regole e la Sfida 10% ---------- */
.rules { padding: clamp(64px, 9vw, 120px) 0; background: var(--surface-container-low); }
.rules__head { display: grid; gap: 22px; max-width: 62rem; }
.rules__head .h2 { max-width: 24ch; }
.rules__ctl { display: grid; grid-template-columns: auto minmax(0, 22rem); align-items: center; gap: 12px 28px; margin-top: 40px; padding: 20px 24px; border-radius: 22px; background: var(--surface-container-lowest); box-shadow: 0 0 0 1px var(--outline-variant); }
.rules__q { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.seg--quota { grid-template-columns: repeat(4, 1fr); }
.seg--quota span { font-size: 17px; font-variant-numeric: tabular-nums; }
.rules__base { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--on-surface-variant); }
.rules__list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--outline-variant); }
.rule { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 18rem); gap: 8px 32px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--outline-variant); }
.rule__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: #fff; font-weight: 800; font-size: 18px; box-shadow: var(--card-stack); }
.rule h3 { margin: 6px 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
.rule__txt p { margin: 0; max-width: 54ch; color: var(--on-surface-variant); }
.rule__txt .rule__src { margin-top: 12px; font-size: 14px; font-style: italic; }
.rule__val { display: grid; gap: 4px; padding-top: 6px; }
.rule__val b { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--on-surface); transition: color 300ms var(--ease-standard); }
.rule__val span { font-size: 14.5px; color: var(--on-surface-variant); }
.rule__val.is-bump b { color: var(--primary); }
.pro-chip { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: 5px; }
.rate-pick { display: inline-flex; gap: 6px; margin-top: 14px; }
.rate-pick label { position: relative; }
.rate-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rate-pick span { display: grid; place-items: center; min-width: 52px; min-height: 40px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--outline-variant); font-weight: 600; font-size: 15px; color: var(--on-surface-variant); transition: background-color 200ms, color 200ms; }
.rate-pick input:checked + span { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.rate-pick input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.rules__legal { margin: 28px 0 0; max-width: 80ch; font-size: 14px; color: var(--on-surface-variant); }

.dare { padding: clamp(64px, 9vw, 120px) 0; }
.dare__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dare .lead { margin: 22px 0 0; }
.dare__card { margin: 0; display: grid; justify-items: center; gap: 12px; }
.share { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 6px; width: min(300px, 100%); aspect-ratio: 9 / 14; padding: 28px 24px; border-radius: 30px; background: linear-gradient(150deg, var(--hero-start), var(--hero-end)); color: #fff; text-align: center; box-shadow: var(--hero-glow), 0 40px 80px -40px rgba(42,15,110,.6); transform: rotate(-3deg); }
.share::before { content: ""; position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; right: -30%; top: -25%; border-radius: 50%; background: radial-gradient(circle, rgba(255,211,168,.55), rgba(255,211,168,0) 65%); }
.share__brand { position: absolute; top: 20px; left: 24px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.share__ring { width: 130px; height: 130px; margin-bottom: 8px; transform: rotate(-90deg); }
.share__track { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 12; }
.share__prog { fill: none; stroke: var(--peach); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 3 12; }
.share__m { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.share__t { font-size: 15px; font-weight: 700; opacity: .95; }
.share__s { max-width: 22ch; margin-top: 8px; font-size: 15px; line-height: 1.4; opacity: .95; }
.share__u { position: absolute; bottom: 20px; font-size: 13px; font-weight: 600; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .share__prog { stroke-dasharray: 0 12; transition: stroke-dasharray 1400ms var(--ease-emphasized-decel) 200ms; }
  .is-seen .share__prog, .no-io .share__prog { stroke-dasharray: 3 12; }
}

@media (max-width: 880px) {
  .dare__in { grid-template-columns: minmax(0, 1fr); }
  .rules__ctl { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; }
  .rule__val { grid-column: 2; padding-top: 10px; }
}

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .qa__caret { animation: none; }
}

/* ---------- modalità app installata (PWA desktop) ---------- */
@media (display-mode: standalone) {
  .install { display: none !important; }
}
