/* MyHouse — Blackout Agency
   Foglio di stile unico del sito (v3: lampone + verde acqua, sezioni a colore, movimento). */

/* ---------- Font (in locale, nessuna chiamata esterna) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-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;
}

/* ---------- Palette ----------
   Lampone     = marchio e azioni (prenota, calcola, richiedi)
   Verde acqua = guadagno e conferme (risparmio, commissione 0 €, spunte)
   Prugna      = fondi scuri al posto del nero puro
   Rosa cipria = fondo chiaro al posto del bianco nelle sezioni alternate */
:root {
  --brand: #b8256a;
  --brand-hover: #9c1d59;
  --brand-deep: #7a1747;
  --brand-bright: #f27ab3;
  --brand-50: #fdf2f7;
  --brand-100: #f9e0ec;
  --brand-200: #f2bcd6;
  --brand-300: #e68bb6;

  --teal: #0e7c74;
  --teal-deep: #0b4f4a;
  --teal-bright: #5fd3c4;
  --teal-50: #e8f6f3;
  --teal-100: #cdede7;
  --teal-200: #9edcd1;

  --plum: #1f0d18;
  --plum-2: #2c1424;
  --plum-3: #3a1d30;
  --plum-line: #4a2a3d;
  --on-dark: #ffffff;
  --on-dark-muted: #cdb8c4;

  --ink: #1a1218;
  --muted: #5e5560;
  --bg: #ffffff;
  --soft: #faf4f6;
  --soft-2: #f2e8ec;
  --line: #eadfe4;
  --line-2: #d9c9d1;
  --focus: #1a5fd0;

  --wrap: 1180px;
  --gutter: 24px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(31, 13, 24, 0.06);
  --shadow: 0 1px 2px rgba(31, 13, 24, 0.05), 0 14px 36px -14px rgba(31, 13, 24, 0.2);
  --shadow-lg: 0 2px 6px rgba(31, 13, 24, 0.06), 0 30px 64px -22px rgba(31, 13, 24, 0.32);
  --shadow-brand: 0 1px 2px rgba(184, 37, 106, 0.3), 0 10px 24px -10px rgba(184, 37, 106, 0.65);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
.i { width: 24px; height: 24px; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(880px + var(--gutter) * 2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Barra di avanzamento della lettura */
.progress { position: fixed; z-index: 120; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-bright) 55%, var(--teal-bright)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Tipografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.head--center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--teal { color: var(--teal); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.badge b { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; }
.badge .i { width: 16px; height: 16px; color: var(--brand); transition: transform 0.2s var(--ease); }
.badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow), inset 0 0 0 1px var(--brand-200); }
.badge:hover .i { transform: translateX(3px); }
.tag { display: inline-flex; align-items: center; flex: none; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; background: var(--brand-50); color: var(--brand); }
.tag--teal { background: var(--teal-50); color: var(--teal); }
.tag--ink { background: var(--soft-2); color: var(--ink); }
.tag--dark { background: rgba(255, 255, 255, 0.12); color: #fff; }

.display { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 750; text-wrap: balance; }
.display > span { display: block; }
.h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 750; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.h2 > span { display: block; }
.h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 650; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); text-wrap: pretty; max-width: 680px; }
.accent { color: var(--brand); }
.accent-teal { color: var(--teal); }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }

/* Parola in gradiente che si muove lentamente */
.shine { background: linear-gradient(100deg, var(--brand) 0%, var(--brand-bright) 30%, var(--brand) 55%, var(--teal) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s ease-in-out infinite alternate; }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Evidenziatore che si disegna quando il titolo entra in vista */
.mark { font-style: normal; background: linear-gradient(transparent 60%, var(--brand-100) 0) no-repeat 0 0 / 0% 100%; transition: background-size 1.1s var(--ease-out) 0.25s; padding-inline: 0.06em; margin-inline: -0.06em; }
.mark--teal { background-image: linear-gradient(transparent 60%, var(--teal-100) 0); }
.section--plum .mark, .money .mark { background-image: linear-gradient(transparent 60%, rgba(242, 122, 179, 0.35) 0); }
.is-in .mark, .mark.is-in { background-size: 100% 100%; }
html:not(.js) .mark { background-size: 100% 100%; }

/* ---------- Pulsanti e link ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 650; line-height: 1.2; text-align: center;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand);
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease);
}
.btn::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn:hover { background: var(--brand-hover); text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(184, 37, 106, 0.3), 0 16px 30px -12px rgba(184, 37, 106, 0.7); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--md { min-height: 48px; padding: 0 22px; }
.btn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow); }
.btn--ink { background: var(--plum); box-shadow: 0 10px 22px -12px rgba(31, 13, 24, 0.6); }
.btn--ink:hover { background: var(--plum-3); box-shadow: 0 16px 28px -12px rgba(31, 13, 24, 0.6); }
.btn--teal { background: var(--teal); box-shadow: 0 10px 22px -12px rgba(14, 124, 116, 0.7); }
.btn--teal:hover { background: var(--teal-deep); box-shadow: 0 16px 28px -12px rgba(14, 124, 116, 0.7); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.5); }
.btn--light:hover { background: #fff; color: var(--brand); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--block { display: flex; width: 100%; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 650; }
.more .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.more:hover { text-decoration: none; }
.more:hover .i { transform: translateX(4px); }
.more--light { color: #fff; }
.more--teal { color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.actions--center { justify-content: center; }

/* ---------- Avviso in alto ---------- */
.announce { position: relative; background: linear-gradient(90deg, var(--plum), var(--plum-3) 50%, var(--plum)); color: #f1e4eb; font-size: 14px; }
.announce .wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px 12px; flex-wrap: wrap; min-height: 44px; padding-block: 8px; text-align: center; }
.announce a { color: #fff; font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.announce a .i { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.announce a:hover .i { transform: translateX(3px); }
.announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 196, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(95, 211, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 196, 0); } }
.announce__back { position: absolute; left: var(--gutter); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
.header.is-scrolled { background: rgba(255, 255, 255, 0.94); border-bottom-color: var(--line); box-shadow: 0 8px 28px -20px rgba(31, 13, 24, 0.5); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); transition: min-height 0.3s var(--ease); }
.header.is-scrolled .wrap { min-height: calc(var(--header-h) - 8px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 23px; font-weight: 750; letter-spacing: -0.035em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 31px; color: var(--ink); transition: transform 0.4s var(--ease-out); }
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-4deg); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: 28px; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-size: 16px; font-weight: 500; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.menu a:hover { text-decoration: none; color: var(--brand); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-size: 16px; font-weight: 500; }
.header__link:hover { color: var(--brand); text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--soft-2); color: var(--ink); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Sezioni e fondi ---------- */
.section { position: relative; padding-block: clamp(72px, 8vw, 120px); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--soft { background: var(--soft); }
.section--blush { background: linear-gradient(180deg, var(--brand-50), var(--soft) 60%, #fff); }
.section--teal { background: linear-gradient(180deg, var(--teal-50), #f4fbf9); }
.section--plum { position: relative; isolation: isolate; overflow: hidden; background: var(--plum); color: #fff; }
.section--plum::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 620px; right: -240px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 37, 106, 0.55), transparent); filter: blur(30px); }
.section--plum::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 520px; left: -220px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 124, 116, 0.45), transparent); filter: blur(30px); }
.section--plum .lead { color: var(--on-dark-muted); }
.section--plum .eyebrow { color: var(--brand-bright); }
.stack { display: flex; flex-direction: column; gap: 56px; }
.stack--sm { gap: 36px; }
.head { display: flex; flex-direction: column; gap: 16px; }
.head--center { align-items: center; text-align: center; }
.head--center .h2, .head--center .lead { margin-inline: auto; }
.head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.head--split > div { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }

/* ---------- Fondo "mesh" animato (hero) ---------- */
.mesh { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 78%); }
.mesh__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.85; pointer-events: none; }
.mesh__blob--a { width: 620px; height: 520px; left: -160px; top: -160px; background: radial-gradient(closest-side, var(--brand-200), transparent); animation: drift-a 18s ease-in-out infinite alternate; }
.mesh__blob--b { width: 560px; height: 480px; right: -160px; top: 20px; background: radial-gradient(closest-side, var(--teal-200), transparent); animation: drift-b 22s ease-in-out infinite alternate; }
.mesh__blob--c { width: 420px; height: 380px; left: 38%; top: 280px; background: radial-gradient(closest-side, var(--brand-300), transparent); opacity: 0.4; animation: drift-c 26s ease-in-out infinite alternate; }
.mesh__follow { position: absolute; z-index: -1; width: 520px; height: 520px; left: calc(var(--mx, 50%) - 260px); top: calc(var(--my, 30%) - 260px); border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 122, 179, 0.32), transparent); filter: blur(40px); transition: left 0.8s var(--ease-out), top 0.8s var(--ease-out); pointer-events: none; }
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-140px, 120px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-160px, -60px) scale(1.2); } }
.grain { position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.07; mix-blend-mode: multiply; pointer-events: none; }

/* ---------- Hero home ---------- */
.hero { padding-top: clamp(56px, 7vw, 100px); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 980px; margin-inline: auto; }
.hero__note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.hero__note li { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .i { width: 18px; height: 18px; color: var(--teal); }

/* Ingresso a cascata dell'hero al caricamento */
.js .intro > * { opacity: 0; transform: translateY(18px); animation: intro 0.9s var(--ease-out) forwards; }
.js .intro > *:nth-child(2) { animation-delay: 0.08s; }
.js .intro > *:nth-child(3) { animation-delay: 0.16s; }
.js .intro > *:nth-child(4) { animation-delay: 0.24s; }
.js .intro > *:nth-child(5) { animation-delay: 0.32s; }
.js .intro > *:nth-child(6) { animation-delay: 0.4s; }
@keyframes intro { to { opacity: 1; transform: none; } }

.stage { position: relative; max-width: 1060px; margin: clamp(48px, 6vw, 72px) auto 0; padding-bottom: clamp(56px, 7vw, 96px); perspective: 1600px; }
.stage__tilt { transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); transform-origin: 50% 0; }
.browser { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(31, 13, 24, 0.06); text-align: left; }
.browser__bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: #fbf7f9; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 7px; width: 47px; flex: none; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #e3d6dd; }
.browser__dots i:first-child { background: var(--brand-300); }
.browser__dots i:nth-child(2) { background: #f3cf7a; }
.browser__dots i:last-child { background: var(--teal-200); }
.browser__url { flex: 1; max-width: 420px; margin-inline: auto; height: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.browser__bar::after { content: ""; width: 47px; flex: none; }
.browser__view { position: relative; overflow: hidden; }
.browser__view img { width: 100%; aspect-ratio: 16 / 8.6; min-height: 300px; object-fit: cover; transform: scale(var(--zoom, 1.06)); }
.browser__view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 13, 24, 0.45) 0%, rgba(31, 13, 24, 0) 30%, rgba(31, 13, 24, 0) 50%, rgba(31, 13, 24, 0.66) 100%); }
.browser__top { position: absolute; z-index: 1; inset: 0 0 auto 0; padding: 18px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; font-size: 14px; }
.browser__top strong { font-size: 17px; font-weight: 650; }
.browser__top span { display: flex; gap: 22px; }
.browser__top i { font-style: normal; }
.browser__claim { position: absolute; z-index: 1; left: 26px; bottom: 26px; color: #fff; font-size: clamp(26px, 3.4vw, 44px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; }

.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); text-align: left; translate: 0 var(--py, 0px); }
.float__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex: none; }
.float__icon--ok { background: var(--teal-50); color: var(--teal); }
.float small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.float b { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
.float--a { left: -56px; top: 34%; animation: bob 6s ease-in-out infinite; }
.float--b { right: -48px; top: 18%; animation: bob 6s ease-in-out -2s infinite; }
.float--c { right: 6%; bottom: 22px; animation: bob 6s ease-in-out -4s infinite; }
.booking { width: 290px; padding: 18px; flex-direction: column; align-items: stretch; gap: 12px; }
.booking__head { display: flex; justify-content: space-between; align-items: baseline; }
.booking__head b { font-size: 16px; }
.booking__head span { font-size: 13px; color: var(--muted); }
.booking .mini-cal span { height: 28px; font-size: 12px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Nastro scorrevole "per chi" ---------- */
.ribbon { position: relative; overflow: hidden; padding-block: 22px; background: var(--plum); color: #fff; }
.ribbon__label { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 40px 0 var(--gutter); background: linear-gradient(90deg, var(--plum) 70%, transparent); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-bright); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; flex: none; gap: 12px; padding-right: 12px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-size: 16px; font-weight: 550; white-space: nowrap; }
.marquee li .i { width: 18px; height: 18px; color: var(--brand-bright); }
.marquee li:nth-child(even) .i { color: var(--teal-bright); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Schede prodotto (servizi) ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.product { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease); }
.product:hover { --ty: -6px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--brand-200); }
.product__art { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 190px; padding: 22px; overflow: hidden; background: var(--brand-50); }
.product__art::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-200), transparent); filter: blur(24px); transition: transform 0.6s var(--ease-out); }
.product:hover .product__art::before { transform: translate(-40px, 30px) scale(1.2); }
.product__art > * { transition: transform 0.5s var(--ease-out); }
.product:hover .product__art > * { transform: translateY(-4px) scale(1.02); }
.product__art--teal { background: var(--teal-50); }
.product__art--teal::before { background: radial-gradient(closest-side, var(--teal-200), transparent); }
.product__art--dark { background: var(--plum-2); }
.product__art--dark::before { background: radial-gradient(closest-side, rgba(184, 37, 106, 0.7), transparent); }
.product__art--grad { background: linear-gradient(135deg, var(--brand-50), var(--teal-50)); }
.product__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 18px; }
.product__body p { color: var(--muted); font-size: 16px; }
.product__body .more { margin-top: auto; }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Luce che segue il mouse sulle card */
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(184, 37, 106, 0.1), transparent 60%); opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none; }
.spot:hover::after { opacity: 1; }
.spot--teal::after { background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(14, 124, 116, 0.12), transparent 60%); }

/* Mini interfacce */
.mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mini-cal span { display: flex; align-items: center; justify-content: center; height: 26px; border-radius: 7px; font-size: 11px; font-weight: 550; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.mini-cal .busy { background: var(--plum); color: #fff; box-shadow: none; }
.mini-cal .sel { background: var(--brand); color: #fff; box-shadow: none; }
.mini-cal .range { background: var(--brand-100); color: var(--brand-hover); box-shadow: none; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 13px; color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.mini-row span { color: var(--muted); }
.mini-row b { font-weight: 650; }
.mini-btn { padding: 11px 14px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 650; text-align: center; }
.mini-site { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.mini-site i { display: block; height: 8px; border-radius: 4px; background: var(--soft-2); }
.mini-site i:first-child { width: 45%; background: var(--plum); }
.mini-site i:nth-child(2) { height: 46px; background: linear-gradient(135deg, var(--brand-200), var(--teal-200)); }
.mini-site i:nth-child(4) { width: 70%; }
.sync { display: flex; flex-direction: column; align-items: center; gap: 0; }
.sync b { padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 650; text-align: center; white-space: nowrap; box-shadow: var(--shadow-sm); }
.sync b.hub { background: var(--brand); color: #fff; }
.sync i { position: relative; width: 2px; height: 14px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.sync i::after { content: ""; position: absolute; left: 0; top: -6px; width: 2px; height: 6px; background: var(--teal-bright); animation: pulse-down 1.4s linear infinite; }
.sync div { display: flex; gap: 5px; }
.sync div b { padding: 6px 8px; font-size: 11px; font-weight: 550; }
@keyframes pulse-down { from { top: -6px; } to { top: 14px; } }

/* ---------- Percorso a schede (su fondo prugna) ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; }
.flow__tabs { display: flex; flex-direction: column; gap: 8px; }
.flow__tab { position: relative; display: flex; gap: 16px; width: 100%; padding: 20px 22px; border: 0; border-radius: var(--r); background: transparent; text-align: left; color: #fff; overflow: hidden; transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.flow__tab:hover { background: rgba(255, 255, 255, 0.05); }
.flow__tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.flow__num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 14px; font-weight: 750; color: var(--on-dark-muted); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease-out); }
.flow__tab[aria-selected="true"] .flow__num { background: var(--brand); color: #fff; transform: scale(1.08); }
.flow__tab:nth-child(even)[aria-selected="true"] .flow__num { background: var(--teal); }
.flow__tab b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.flow__tab span span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--on-dark-muted); }
.flow__tab:not([aria-selected="true"]) span span { display: none; }
.flow__bar { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; opacity: 0; }
.flow__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-bright), var(--teal-bright)); transform: scaleX(0); transform-origin: left; }
.flow__tab[aria-selected="true"] .flow__bar { opacity: 1; }
.flow.is-auto .flow__tab[aria-selected="true"] .flow__bar::after { animation: fill-bar var(--dur, 6s) linear forwards; }
.flow.is-paused .flow__tab[aria-selected="true"] .flow__bar::after { animation-play-state: paused; }
@keyframes fill-bar { to { transform: scaleX(1); } }
.flow__panels { position: relative; }
.flow__panel { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 460px; padding: 40px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 55%, #4a1030 100%); }
.flow__panel:nth-child(2) { background: linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 60%, #08332f 100%); }
.flow__panel:nth-child(3) { background: linear-gradient(145deg, #c9407f 0%, var(--brand) 50%, var(--brand-deep) 100%); }
.flow__panel:nth-child(4) { background: linear-gradient(145deg, var(--teal-deep) 0%, var(--plum-3) 70%, var(--plum-2) 100%); }
.flow__panel[hidden] { display: none; }
.flow__panel::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 380px; left: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), transparent); filter: blur(30px); }
.flow__panel::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: var(--grain); opacity: 0.12; mix-blend-mode: overlay; }
.flow__panel.is-in .flow__card { animation: rise 0.6s var(--ease-out) both; }
.flow__panel.is-in .flow__card > * { animation: rise 0.6s var(--ease-out) both; }
.flow__panel.is-in .flow__card > *:nth-child(2) { animation-delay: 0.06s; }
.flow__panel.is-in .flow__card > *:nth-child(3) { animation-delay: 0.12s; }
.flow__panel.is-in .flow__card > *:nth-child(4) { animation-delay: 0.18s; }
.flow__panel.is-in .flow__card > *:nth-child(5) { animation-delay: 0.24s; }
.flow__card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.flow__card h4 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.flow__card p { font-size: 14px; color: var(--muted); }
.flow__lines { display: flex; flex-direction: column; gap: 10px; }
.flow__lines li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; font-weight: 550; }
.flow__lines .i { width: 18px; height: 18px; color: var(--brand); }
.flow__lines li:nth-child(even) .i { color: var(--teal); }
.searchbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--muted); }
.searchbar .i { width: 18px; height: 18px; }
.searchbar .caret { width: 1.5px; height: 16px; margin-left: -8px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.result { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--soft); }
.result img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.result b { display: block; font-size: 14px; }
.result small { display: block; font-size: 12px; color: var(--muted); }
.result--top { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.okline { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--teal-50); color: var(--teal); font-size: 13px; font-weight: 650; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Griglia con icone ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.features--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.feature { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease), transform 0.35s var(--ease-out); }
.feature:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--brand-200); transform: translateY(-4px); }
.feature p { color: var(--muted); font-size: 16px; }
.feature__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--brand-50); color: var(--brand); margin-bottom: 6px; transition: transform 0.45s var(--ease-out), background-color 0.3s var(--ease), color 0.3s var(--ease); }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.feature--teal .feature__icon { background: var(--teal-50); color: var(--teal); }
.feature--teal:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--teal-200); }
.feature--teal:hover .feature__icon { background: var(--teal); color: #fff; }
.section--soft .feature, .section--blush .feature, .section--teal .feature { box-shadow: var(--shadow-sm); }
.features--compact .feature { flex-direction: row; gap: 16px; padding: 22px; }
.features--compact .feature__icon { width: 44px; height: 44px; margin: 0; flex: none; }
.features--compact .feature h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 4px; }
.features--compact .feature p { font-size: 15px; }

/* ---------- Pannello "conto dei portali" ---------- */
.money { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 56px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--plum) 0%, var(--plum-2) 45%, #0d3a37 100%); color: #fff; }
.money::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 560px; left: -200px; bottom: -280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 37, 106, 0.6), transparent); filter: blur(40px); }
.money::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: var(--grain); opacity: 0.1; }
.money .eyebrow { color: var(--brand-bright); }
.money .lead { color: var(--on-dark-muted); }
.money__text { display: flex; flex-direction: column; gap: 22px; }
.money__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 10px; }
.money__facts b { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.money__facts div:first-child b { color: var(--brand-bright); }
.money__facts span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--on-dark-muted); }
.money__src { font-size: 13px; color: #a8939f; }
.calc { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.calc h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
.calc__field { display: flex; flex-direction: column; gap: 10px; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc__label label { font-size: 15px; color: var(--muted); }
.calc__label output { font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) 0, var(--brand-bright) var(--fill), var(--soft-2) var(--fill)); }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--soft-2); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--brand), 0 6px 14px -4px rgba(184, 37, 106, 0.6); transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--brand), 0 6px 14px -4px rgba(184, 37, 106, 0.6); }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 3px var(--brand), 0 0 0 10px rgba(184, 37, 106, 0.14); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brand), 0 0 0 7px var(--focus); }
.calc__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc__out div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--brand-50); font-size: 13px; color: var(--muted); }
.calc__out div:last-child { background: var(--teal-50); }
.calc__out b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; color: var(--brand); font-variant-numeric: tabular-nums; }
.calc__out div:last-child b { color: var(--teal); }
.calc__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.calc__cta p { font-size: 15px; font-weight: 550; }
.bump { animation: bump 0.45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.04); } }

/* ---------- Piani ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan--featured { box-shadow: var(--shadow-lg), 0 0 0 2px var(--brand); }
.plan--featured:hover { box-shadow: 0 40px 80px -30px rgba(184, 37, 106, 0.45), 0 0 0 2px var(--brand); }
.plan--dark { background: linear-gradient(160deg, var(--plum-2), var(--plum)); color: #fff; }
.plan__media { position: relative; overflow: hidden; }
.plan__media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.plan:hover .plan__media img { transform: scale(1.05); }
.plan__ribbon { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--shadow-brand); }
.plan--dark .plan__ribbon { background: var(--teal); box-shadow: none; }
.plan__body { display: flex; flex-direction: column; gap: 18px; flex: 1; padding: clamp(24px, 3vw, 36px); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 750; }
.plan__claim { margin-top: 6px; font-size: 19px; line-height: 1.35; font-weight: 650; }
.plan__for { color: var(--muted); font-size: 16px; }
.plan--dark .plan__for, .plan--dark .plan__price small { color: var(--on-dark-muted); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding-block: 16px; border-block: 1px solid var(--line); font-size: 40px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--brand); }
.plan--dark .plan__price { border-color: var(--plum-line); font-size: 30px; color: #fff; }
.plan__price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.ticks { display: flex; flex-direction: column; gap: 11px; font-size: 16px; line-height: 1.45; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c74' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--sm { font-size: 15px; gap: 9px; }
.ticks strong { font-weight: 650; }
.plan--dark .ticks li::before, .level--top .ticks li::before { background-color: rgba(255, 255, 255, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd3c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E"); }
.level--top .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E"); }

/* ---------- Selettore "dicci chi sei" ---------- */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.picker__intro { display: flex; flex-direction: column; gap: 18px; }
.picker h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.picker__opts { display: flex; flex-direction: column; gap: 8px; }
.picker__opts button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; text-align: left; font-size: 16px; font-weight: 550; line-height: 1.3; border-radius: 14px; border: 0; background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease-out); }
.picker__opts button::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow 0.25s var(--ease-out); }
.picker__opts button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateX(3px); }
.picker__opts button[aria-pressed="true"] { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand); }
.picker__opts button[aria-pressed="true"]::before { box-shadow: inset 0 0 0 5.5px var(--brand); }
.picker__out { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r); background: linear-gradient(150deg, var(--plum-2), var(--plum)); color: #fff; transition: opacity 0.2s var(--ease), transform 0.3s var(--ease-out); }
.picker__out::before { content: ""; position: absolute; width: 280px; height: 240px; right: -80px; top: -100px; border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 37, 106, 0.6), transparent); filter: blur(20px); }
.picker__out > * { position: relative; }
.picker__out.is-swap { opacity: 0; transform: translateY(8px); }
.picker__out .eyebrow { color: var(--teal-bright); }
.picker__out strong { font-size: 22px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; }
.picker__out p { color: var(--on-dark-muted); font-size: 16px; }
.picker__out .more { color: #fff; }

/* ---------- Chi c'è dietro ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 72px; align-items: center; }
.split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.split__text > p:not([class]) { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); text-wrap: pretty; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); }
.photo-wrap { position: relative; isolation: isolate; }
.photo-wrap::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--brand-200), var(--teal-200)); transform: translate(var(--px, 0px), var(--py2, 0px)); }
.photo-wrap .float { animation: none; }
.photo-wrap .float--a { left: -24px; top: auto; bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--brand-50); }
.stat:nth-child(2) { background: var(--teal-50); }
.stat:nth-child(3) { background: var(--plum); color: #fff; }
.stat b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 750; letter-spacing: -0.035em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat:nth-child(2) b { color: var(--teal); }
.stat:nth-child(3) b { color: #fff; }
.stat span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.stat:nth-child(3) span { color: var(--on-dark-muted); }

/* ---------- Fascia finale a colore pieno ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 60%, #4a1030 100%); color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 520px; right: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 211, 196, 0.5), transparent); filter: blur(40px); animation: drift-b 20s ease-in-out infinite alternate; }
.cta::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: var(--grain); opacity: 0.12; mix-blend-mode: overlay; }
.cta .eyebrow { color: #fff; }
.cta .lead { color: rgba(255, 255, 255, 0.85); margin-inline: auto; }
.cta .btn--light { color: var(--brand); }
.cta--plum { background: linear-gradient(135deg, var(--plum-2) 0%, var(--plum) 60%, #0d3a37 100%); }
.cta--plum::before { background: radial-gradient(closest-side, rgba(184, 37, 106, 0.6), transparent); right: auto; left: -160px; }
.cta--plum .eyebrow { color: var(--brand-bright); }
.cta--plum .lead { color: var(--on-dark-muted); }
.cta--teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 65%, #08332f 100%); }
.cta--teal::before { background: radial-gradient(closest-side, rgba(242, 122, 179, 0.55), transparent); }
.cta--teal .btn--light { color: var(--teal); }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; padding: 80px 0 40px; background: var(--plum); color: var(--on-dark-muted); font-size: 15px; line-height: 1.6; }
.footer::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 500px; left: 50%; top: -360px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 37, 106, 0.45), transparent); filter: blur(30px); }
.footer .wrap { display: flex; flex-direction: column; gap: 48px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__about { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer .brand { color: #fff; font-size: 22px; }
.footer .brand__mark { color: #fff; }
.footer h4 { margin-bottom: 10px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-bright); }
.footer__col { display: flex; flex-direction: column; gap: 2px; }
.footer__col a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 34px; color: var(--on-dark-muted); transition: color 0.2s var(--ease), transform 0.2s var(--ease-out); }
.footer__col a:hover { color: #fff; text-decoration: none; transform: translateX(3px); }
.footer__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--plum-line); font-size: 13px; }
.footer__note a { color: #fff; }

/* ---------- Pagine interne: hero ---------- */
.page-hero { padding-block: clamp(56px, 7vw, 100px) clamp(48px, 6vw, 80px); text-align: center; }
.page-hero .hero__inner { gap: 22px; max-width: 900px; }
.price-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 22px; border-radius: 999px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--brand-100); font-size: 26px; font-weight: 750; letter-spacing: -0.03em; color: var(--brand); }
.price-pill small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.hero-photo { position: relative; max-width: 1060px; margin: clamp(40px, 5vw, 64px) auto 0; perspective: 1600px; }
.hero-photo .photo { aspect-ratio: 16 / 7.5; box-shadow: var(--shadow-lg); transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); transform-origin: 50% 0; }

/* ---------- Pagina Smart ---------- */
.zero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.zero li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); transition: transform 0.35s var(--ease-out); }
.zero li:hover { transform: translateY(-4px); }
.zero b { font-size: clamp(40px, 4.2vw, 56px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.zero li:first-child { background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff; }
.zero li:first-child span { color: rgba(255, 255, 255, 0.85); }
.zero li:nth-child(2) b { color: var(--brand); }
.zero span { color: var(--muted); font-size: 16px; }

.config { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.config__steps { flex: 1.6 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.config__group { border: 0; min-width: 0; }
.config__group > legend, .config__title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 750; }
.config__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 750; flex: none; }
.config__list { display: flex; flex-direction: column; gap: 10px; }
.config__list + .config__list { margin-top: 20px; }
.opt { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 72px; padding: 14px 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease-out); }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow-sm); transform: translateY(-1px); }
.opt:active { transform: scale(0.99); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #9a8e96; background: #fff; transition: box-shadow 0.25s var(--ease-out), background-color 0.2s var(--ease), transform 0.25s var(--ease-out); }
.opt input[type="checkbox"] + .opt__mark { border-radius: 7px; }
.opt__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; }
.opt__text b { font-size: 17px; font-weight: 650; line-height: 1.25; }
.opt__text span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.opt__price { flex: none; margin-left: auto; font-size: 16px; font-weight: 700; white-space: nowrap; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-50); }
.opt:has(input:checked) .opt__price { color: var(--brand); }
.opt input[type="radio"]:checked + .opt__mark { box-shadow: inset 0 0 0 6px var(--brand); transform: scale(1.06); }
.opt input[type="checkbox"]:checked + .opt__mark { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: none; transform: scale(1.06); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.opt--static { cursor: default; justify-content: space-between; }
.opt--static:hover { box-shadow: inset 0 0 0 1px var(--line); transform: none; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-50); font-size: 22px; line-height: 1; color: var(--brand); transition: background-color 0.2s var(--ease), transform 0.15s var(--ease-out); }
.stepper button:hover { background: var(--brand-100); }
.stepper button:active { transform: scale(0.9); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }

.summary { flex: 1 1 340px; min-width: 0; position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.summary h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 750; }
.summary__lines { display: flex; flex-direction: column; gap: 10px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.4; animation: slide-in 0.35s var(--ease-out) both; }
.summary__lines span { color: var(--muted); }
.summary__lines b { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.summary__total { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.summary__total::before { content: ""; position: absolute; width: 220px; height: 200px; right: -60px; top: -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 211, 196, 0.45), transparent); filter: blur(16px); }
.summary__total > * { position: relative; }
.summary__total b { font-size: clamp(40px, 4vw, 52px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.summary__meta { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.summary__meta div { display: flex; justify-content: space-between; gap: 16px; }
.summary__meta span { color: var(--muted); }
.summary__meta b { font-weight: 650; text-align: right; }
.summary__meta div:first-child b { color: var(--teal); }
.summary__note { padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.45; }
.summary form { margin: 0; }

.totalbar { position: fixed; z-index: 40; inset: auto 0 0 0; display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.35s var(--ease-out); }
.totalbar.is-on { transform: none; }
.totalbar div { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.3; }
.totalbar b { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; }

.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; counter-reset: passo; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); counter-increment: passo; transition: background-color 0.3s var(--ease), transform 0.35s var(--ease-out); }
.steps li:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.steps li::before { content: counter(passo); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; font-weight: 750; }
.steps li:nth-child(even)::before { background: var(--teal); }
.steps h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
.steps p { font-size: 16px; color: var(--on-dark-muted); }

/* ---------- Pagina Pro ---------- */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.level { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease); }
.level:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level__head { display: flex; flex-direction: column; gap: 8px; }
.level__n { font-size: 13px; font-weight: 650; color: var(--brand); }
.level__name { font-size: 28px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 750; }
.level__head p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.level__foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.level__time { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.level__time .i { width: 18px; height: 18px; color: var(--teal); }
.level__time b { font-weight: 650; color: var(--ink); }
.level--top { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 70%, #4a1030 100%); color: #fff; box-shadow: 0 30px 60px -24px rgba(184, 37, 106, 0.6); }
.level--top .level__n { color: #fff; opacity: 0.85; }
.level--top .level__head p, .level--top .level__time { color: rgba(255, 255, 255, 0.85); }
.level--top .level__time { border-color: rgba(255, 255, 255, 0.2); }
.level--top .level__time .i { color: #fff; }
.level--top .level__time b { color: #fff; }
.level--top .btn { background: #fff; color: var(--brand); box-shadow: none; }

.table-box { overflow-x: auto; padding: 8px 28px 16px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; line-height: 1.45; text-align: left; }
.compare th, .compare td { padding: 16px 16px 16px 0; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th, .compare thead td { padding-block: 22px 18px; border-top: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 750; }
.compare thead th:nth-child(2) { color: var(--brand); }
.compare thead th:nth-child(3) { color: var(--teal); }
.compare tbody th { width: 22%; font-weight: 550; color: var(--muted); }
.compare td { width: 39%; }
.compare td:first-child { width: 22%; }
.compare tr > :last-child { padding-right: 0; }
.compare tbody tr { transition: background-color 0.2s var(--ease); }
.compare tbody tr:hover { background: var(--soft); }
.compare .strong td { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.help { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r); background: linear-gradient(150deg, var(--plum-2), var(--plum)); color: #fff; }
.help::before { content: ""; position: absolute; width: 260px; height: 220px; right: -90px; top: -100px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 124, 116, 0.7), transparent); filter: blur(20px); }
.help > * { position: relative; }
.help b { font-size: 17px; font-weight: 650; }
.help a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #fff; font-weight: 650; }
.help .i { width: 20px; height: 20px; color: var(--teal-bright); }
.help .btn .i { color: #fff; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease); }
.faq details:hover { box-shadow: inset 0 0 0 1px var(--brand-200); }
.faq details[open] { box-shadow: var(--shadow), inset 0 0 0 1px var(--brand-100); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 20px 22px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8256a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.35s var(--ease-out), background-color 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--brand-100); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq p { padding: 0 22px 22px; line-height: 1.6; color: var(--muted); }

/* ---------- Modulo ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px 64px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact__lines { display: flex; flex-direction: column; gap: 4px; }
.contact__lines a { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; color: var(--ink); font-weight: 650; }
.contact__lines .i { width: 20px; height: 20px; color: var(--brand); }
.contact__lines span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.formbox { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-lg); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .form legend { font-size: 15px; font-weight: 650; }
.field label .small { font-weight: 400; }
.field > input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
.field textarea { padding: 14px 16px; line-height: 1.45; resize: vertical; }
.field select { padding-inline: 12px; }
.field > input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.field > input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-100); }
.field > [aria-invalid="true"] { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand); animation: shake 0.4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.field__err { font-size: 14px; font-weight: 550; color: var(--brand); }
.form fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { width: 100%; margin-bottom: 8px; padding: 0; }
.choice { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 550; cursor: pointer; transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease-out), color 0.2s var(--ease); }
.choice:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { background: var(--brand); box-shadow: var(--shadow-brand); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.check--top { align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.check--top input { margin-top: 1px; }
.field .check--top { font-size: 14px; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--teal-50); }
.quote b { font-size: 15px; font-weight: 650; color: var(--teal); }
.quote pre { margin: 0; font: inherit; font-size: 15px; line-height: 1.5; color: var(--muted); white-space: pre-wrap; }
.notice { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }
.notice strong { font-size: clamp(26px, 2.6vw, 34px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.notice p { color: var(--muted); }
.notice__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: #fff; animation: pop 0.6s var(--ease-out) both; }
.notice__icon .i { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s var(--ease-out) 0.3s forwards; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.alert { padding: 14px 16px; border-radius: 14px; background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand); font-size: 15px; line-height: 1.45; }
.btn.is-busy { opacity: 0.75; pointer-events: none; }

/* ---------- Comparsa allo scorrimento ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal--left { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--scale { transform: scale(0.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--clip { opacity: 1; transform: none; clip-path: inset(10% 8% 10% 8% round 36px); transition: clip-path 1.1s var(--ease-out); }
.js .reveal--clip.is-in { clip-path: inset(0 0 0 0 round 0px); }

/* ---------- Schermi medi e piccoli ---------- */
@media (max-width: 1080px) {
  .float--a { left: -16px; }
  .float--b { right: -16px; }
}
@media (max-width: 960px) {
  .flow, .picker, .faq-layout, .contact { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { position: static; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
  .flow__panel { min-height: 380px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .js .menu, .header__link { display: none; }
  html:not(.js) .header .wrap { flex-wrap: wrap; }
  html:not(.js) .menu { order: 3; width: 100%; margin: 0; flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; }
  .header.is-open .menu { display: flex; position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(31, 13, 24, 0.3); animation: rise 0.3s var(--ease-out); }
  .header.is-open .menu a { min-height: 52px; padding: 0 8px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header.is-open .menu a::after { display: none; }
  .summary { position: static; }
  .totalbar { display: flex; }
  body.has-totalbar { padding-bottom: 84px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .announce .announce__back { display: none; }
  .header__actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .float--a, .float--b { display: none; }
  .float--c { right: 12px; bottom: 12px; }
  .stage { padding-bottom: 48px; }
  .browser__top span { display: none; }
  .browser__view img { min-height: 260px; }
  .money__facts, .calc__out, .stats { grid-template-columns: minmax(0, 1fr); }
  .feature, .zero li { padding: 24px; }
  .flow__panel { padding: 24px; min-height: 0; }
  .table-box { padding-inline: 20px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .photo-wrap .float--a { display: flex; left: 12px; bottom: 12px; }
  .photo-wrap::before { inset: 14px -10px -14px 10px; }
  .ribbon__label { display: none; }
  .mesh__follow { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 21px; }
  .brand__mark { width: 26px; height: 27px; }
  .header__actions .btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .intro > * { opacity: 1; transform: none; }
  .js .reveal--clip { clip-path: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .mark { background-size: 100% 100%; }
  .stage__tilt, .hero-photo .photo { transform: none; }
}
@media print {
  .header, .announce, .totalbar, .skip, .progress { display: none; }
  .js .reveal, .js .intro > * { opacity: 1; transform: none; }
}
