/* =====================================================================
   Stili del sito
   1. Font e variabili   2. Base   3. Componenti   4. Sezioni
   ===================================================================== */

/* ---------- 1. Font (ospitato in locale: veloce e senza richieste a Google) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-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;
}

:root {
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --ink: #12142B;
  --ink-2: #4B5070;
  --ink-3: #767B9B;
  --line: #E4E5EF;
  --tint: #F1F0FF;
  --indigo: #5B4BFF;
  --indigo-600: #4A3AF0;
  --violet: #8A5CFF;
  --pink: #FF4FA3;
  --coral: #FF6A3D;
  --amber: #FFB547;
  --mint: #14C9A6;
  --wa: #168A4B;
  --dark: #0B0D1A;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 43, .05), 0 3px 10px rgba(18, 20, 43, .04);
  --shadow: 0 14px 36px -16px rgba(32, 28, 90, .24);
  --shadow-lg: 0 30px 70px -28px rgba(50, 40, 140, .38);
  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
[hidden] { display: none !important; }
.i18n-wait body { opacity: 0; } /* solo per un istante, mentre arriva la traduzione */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 10px; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
}

/* ---------- 3. Componenti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: translate .18s ease, box-shadow .2s ease, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; }
.btn .icon { transition: translate .2s ease; }
.btn:hover .icon { translate: 3px 0; }
.btn--lg { padding: 1em 1.5em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 75, 255, .75); }
.btn--primary:hover { background: var(--indigo-600); box-shadow: 0 14px 30px -10px rgba(91, 75, 255, .8); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #C9CBE0; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22254A; }
.btn--light { background: #fff; color: var(--ink); }

.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo);
}
.kicker--light { color: #B1A6FF; }
.tag {
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--tint); color: var(--indigo);
}
/* tasti colorati sotto il 3D dell'hero: si premono come i tasti di un pianoforte.
   Ogni tasto ha il suo colore (--k chiaro, --kd scuro) e il suo posto nel glissando (--i). */
.chip {
  --k: var(--indigo); --kd: var(--indigo-600); --p: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px 9px 10px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--k) 30%, var(--line));
  background: linear-gradient(180deg, #fff, #F6F6FC);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--k) 38%, #D5D6E6), 0 10px 18px -12px color-mix(in srgb, var(--k) 75%, transparent);
  font-weight: 700; font-size: .84rem; color: var(--ink-2); cursor: pointer;
  transition: translate .14s ease, box-shadow .14s ease, color .2s, border-color .2s;
}
.chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--k), var(--kd));
  opacity: 0; transition: opacity .25s ease;
}
.chip::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: rgba(255, 255, 255, .55); opacity: 0; pointer-events: none;
}
.chip__dot {
  width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--k);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 22%, transparent); transition: background-color .2s, box-shadow .2s;
}
.chip__bar {
  position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .92); transform-origin: left center; transform: scaleX(var(--p)); opacity: 0;
}
.chip:hover {
  color: var(--ink); border-color: color-mix(in srgb, var(--k) 60%, var(--line)); translate: 0 1px;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--k) 50%, #D5D6E6), 0 12px 22px -12px color-mix(in srgb, var(--k) 90%, transparent);
}
.chip:hover::before { opacity: .12; }
.chip:active {
  translate: 0 3px;
  box-shadow: 0 0 0 color-mix(in srgb, var(--k) 50%, #D5D6E6), 0 6px 14px -10px color-mix(in srgb, var(--k) 90%, transparent);
}
.chip.is-active {
  color: #fff; border-color: transparent; text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--kd) 72%, #000), 0 12px 26px -10px var(--k);
}
.chip.is-active::before { opacity: 1; }
.chip.is-active .chip__dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.chip.is-active .chip__bar { opacity: 1; }
.chip.is-press { animation: keyTap .45s ease; }
.chip.is-press::after { animation: keyRipple .65s ease-out; }
/* glissando: i tasti si accendono uno dopo l'altro, finché il visitatore non ne preme uno */
.is-wave > .chip:not(.is-active) { animation: keyWave 7s ease-in-out calc(1s + var(--i) * .11s) infinite; }
.is-wave > .chip:not(.is-active)::before { animation: keyGlow 7s ease-in-out calc(1s + var(--i) * .11s) infinite; }
.is-wave > .chip:not(.is-active) .chip__dot { animation: keyDot 7s ease-in-out calc(1s + var(--i) * .11s) infinite; }
.is-wave > .chip:hover, .is-wave > .chip:hover::before, .is-wave > .chip:hover .chip__dot { animation: none; }
@keyframes keyWave { 0%, 8%, 100% { translate: 0 0; color: var(--ink-2); } 3% { translate: 0 3px; color: #fff; } }
@keyframes keyGlow { 0%, 8%, 100% { opacity: 0; } 3% { opacity: 1; } }
@keyframes keyDot { 0%, 8%, 100% { background: var(--k); } 3% { background: #fff; } }
@keyframes keyTap { 0%, 100% { translate: 0 0; } 35% { translate: 0 3px; } }
@keyframes keyRipple { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(16); } }

/* animazione d'ingresso (solo se JS attivo, mai con "riduci movimento") */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; scale: 1; } 50% { opacity: .9; scale: 1.03; } }
@keyframes highlight {
  0%, 100% { box-shadow: var(--shadow-sm); }
  25% { box-shadow: 0 0 0 6px rgba(91, 75, 255, .28), var(--shadow-lg); }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 251, .74);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .86); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: .04em; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand [data-brand] { text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(91, 75, 255, .08); color: var(--ink); }
.nav .nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta { padding: .7em 1.15em; font-size: .92rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* selettore lingua: bandiera + triangolo, menu a tendina (uguale su desktop e mobile) */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 11px 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  font-size: .8rem; font-weight: 800; letter-spacing: .05em; color: var(--ink); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.lang__toggle:hover, .lang.is-open .lang__toggle { border-color: #C9CBE0; box-shadow: var(--shadow); }
.lang__code { display: inline-flex; min-width: 1.45em; }
.lang__caret {
  width: 10px; height: 10px; fill: var(--ink-3); stroke: var(--ink-3); stroke-width: 1; stroke-linejoin: round;
  transition: rotate .25s ease;
}
.lang.is-open .lang__caret { rotate: 180deg; }
.flag { display: block; flex: none; width: 22px; height: 16px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(18, 20, 43, .14); }
.flag svg { width: 100%; height: 100%; }
html[lang="it"] [data-show-lang="en"], html[lang="en"] [data-show-lang="it"] { display: none; }
.lang__list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 184px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 -6px; transition: opacity .18s ease, translate .18s ease, visibility .18s;
}
.lang__list::before {
  content: ""; position: absolute; top: -6px; right: 24px; width: 10px; height: 10px; rotate: 45deg;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; translate: 0 0; }
.lang__opt {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
  text-decoration: none; font-size: .95rem; font-weight: 700; color: var(--ink-2); transition: background-color .15s, color .15s;
}
.lang__opt:hover { background: var(--tint); color: var(--ink); }
.lang__opt.is-active { color: var(--ink); }
.lang__check { margin-left: auto; color: var(--indigo); stroke-width: 2.6; opacity: 0; }
.lang__opt.is-active .lang__check { opacity: 1; }
@media (max-width: 1120px) { .nav a { padding: 8px 11px; } }
@media (max-width: 960px) { .lang__toggle { height: 44px; } }

@media (max-width: 960px) {
  .nav {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) - 4px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .nav__cta { display: block; margin-top: 6px; text-align: center; background: var(--indigo); color: #fff; font-weight: 700; }
  .nav .nav__cta:hover { background: var(--indigo-600); color: #fff; }
  .menu-toggle { display: inline-flex; }
  .header__cta { display: none; }
}

/* ---------- 4. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 76px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(91, 75, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 75, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 72% 42%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 75% at 72% 42%, #000 15%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 760px; height: 760px; right: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138, 92, 255, .2), transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.02fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(20, 201, 166, .18); }
.hero__title { margin: 20px 0 18px; font-size: clamp(2.3rem, 4.5vw, 3.95rem); font-weight: 800; letter-spacing: -0.035em; }
.grad {
  background: linear-gradient(92deg, var(--indigo), var(--violet) 40%, var(--pink) 72%, var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 34em; font-size: clamp(1.05rem, 1.35vw, 1.18rem); color: var(--ink-2); }
.hero__lead strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--mint); stroke-width: 2.8; }

.hero__visual { position: relative; }
.hero__stage { position: relative; aspect-ratio: 1.38; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__placeholder {
  position: absolute; inset: 14% 12%; border-radius: 32px; pointer-events: none;
  background:
    radial-gradient(circle at 30% 35%, rgba(91, 75, 255, .22), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(255, 79, 163, .16), transparent 55%);
  filter: blur(6px); animation: breathe 2.6s ease-in-out infinite; transition: opacity .6s;
}
.hero__canvas.is-ready + .hero__placeholder { opacity: 0; }
.hero__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
/* invito "scegli qui sotto": sparisce al primo tasto premuto */
.hero__hint {
  position: absolute; left: 50%; bottom: -2px; z-index: 2; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; pointer-events: none;
  transition: opacity .45s ease, translate .45s ease;
}
.hero__hint.is-gone { opacity: 0; translate: -50% 10px; }
.hero__hand { display: inline-block; animation: handBob 1.3s ease-in-out infinite; }
@keyframes handBob { 0%, 100% { translate: 0 -1px; } 50% { translate: 0 3px; } }
.hero__caption { margin-top: 12px; min-height: 1.6em; text-align: center; font-size: .95rem; color: var(--ink-2); }
.hero__caption b { color: var(--ink); }
.hero__sep { color: var(--ink-3); }

@media (max-width: 960px) {
  .hero { padding: 28px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 18px; }
  .hero__stage { aspect-ratio: 1.3; }
}

/* ---------- Sezioni ---------- */
.section { position: relative; padding: 104px 0; }
.section--tint { background: linear-gradient(180deg, #F0EFFF 0%, var(--bg) 100%); }
.section__head { max-width: 720px; margin-bottom: 46px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
.section__lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
@media (max-width: 640px) { .section { padding: 72px 0; } .section__head { margin-bottom: 32px; } }

/* ---------- Servizi ---------- */
/* card dei servizi: icona 3D "a strati di vetro" che fluttua, luce morbida e leggera inclinazione al passaggio */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes needSpin { to { --ang: 360deg; } }
.needs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.need-wrap { display: flex; }
.need {
  --c: var(--indigo); --c2: var(--violet);
  position: relative; isolation: isolate; flex: 1;
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform .2s ease-out, translate .3s ease, box-shadow .3s ease, border-color .3s;
}
.need::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 8%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.need:hover { translate: 0 -4px; box-shadow: 0 22px 44px -28px color-mix(in srgb, var(--c) 55%, transparent); border-color: color-mix(in srgb, var(--c) 22%, var(--line)); }
.need:hover::before { opacity: 1; }
.need h3 { font-size: 1.2rem; font-weight: 800; }
.need p { flex: 1; color: var(--ink-2); font-size: .98rem; }
.need__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.need__price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.need__price .icon { color: var(--c); transition: translate .2s; }
.need:hover .need__price .icon { translate: 3px 0; }

/* icona 3D: tre lastre (colore, vetro, vetro chiaro con l'icona) sovrapposte in profondità */
.gem { position: relative; width: 56px; height: 56px; margin: 4px 0 10px 2px; perspective: 260px; }
.gem::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: -10px; height: 9px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 45%, transparent); filter: blur(6px); opacity: .5;
  animation: gemShadow 6s ease-in-out infinite;
}
.gem__in { position: absolute; inset: 0; transform-style: preserve-3d; animation: gemFloat 6s ease-in-out infinite; }
.need-wrap:nth-child(2) .gem__in, .need-wrap:nth-child(2) .gem::after { animation-delay: -1s; }
.need-wrap:nth-child(3) .gem__in, .need-wrap:nth-child(3) .gem::after { animation-delay: -2s; }
.need-wrap:nth-child(4) .gem__in, .need-wrap:nth-child(4) .gem::after { animation-delay: -3s; }
.need-wrap:nth-child(5) .gem__in, .need-wrap:nth-child(5) .gem::after { animation-delay: -4s; }
.need-wrap:nth-child(6) .gem__in, .need-wrap:nth-child(6) .gem::after { animation-delay: -5s; }
.gem__plate { position: absolute; inset: 0; border-radius: 16px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gem__plate--1 {
  transform: translateZ(-9px);
  background: linear-gradient(135deg, var(--c), var(--c2));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c) 70%, transparent);
}
.gem__plate--2 {
  transform: translateZ(0);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, rgba(255, 255, 255, .72)), color-mix(in srgb, var(--c2) 32%, rgba(255, 255, 255, .55)));
  border: 1px solid rgba(255, 255, 255, .6);
}
.gem__plate--3 {
  transform: translateZ(9px); display: grid; place-items: center; overflow: hidden; color: var(--c);
  background: linear-gradient(150deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .74));
  border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 4px 10px -4px rgba(18, 20, 43, .18);
}
.gem__plate--3::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 38%; rotate: 20deg; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  animation: gemSheen 6s ease-in-out infinite;
}
.gem .icon { width: 24px; height: 24px; stroke-width: 2.1; }
.need:hover .gem__plate--1, .plan:hover .gem__plate--1 { transform: translateZ(-16px); }
.need:hover .gem__plate--3, .plan:hover .gem__plate--3 { transform: translateZ(16px); }
:is(.need, .plan):not(.is-live) :is(.gem__in, .gem__plate--3)::after,
:is(.need, .plan):not(.is-live) .gem__in, :is(.need, .plan):not(.is-live) .gem::after { animation-play-state: paused; }
@keyframes gemFloat {
  0%, 100% { transform: translateY(0) rotateX(16deg) rotateY(-24deg); }
  50% { transform: translateY(-4px) rotateX(8deg) rotateY(-6deg); }
}
@keyframes gemShadow { 0%, 100% { scale: 1; opacity: .5; } 50% { scale: .82; opacity: .3; } }
@keyframes gemSheen { 0%, 58% { translate: 0 0; } 78%, 100% { translate: 430% 0; } }

/* luce Deltalux: quando arriva, l'icona si "accende" (strati aperti, giro 3D, riflesso a prisma) */
.gem__plate--3::before {
  content: ""; position: absolute; inset: -30%; translate: -100% 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 90, 170, .38) 44%, rgba(255, 205, 90, .38) 51%, rgba(80, 205, 255, .38) 58%, transparent 68%);
}
.is-lit .gem__in { animation: gemLit 1.1s cubic-bezier(.2, .8, .2, 1); }
.is-lit .gem__plate--1 { transform: translateZ(-19px); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 85%, transparent); }
.is-lit .gem::after { opacity: .85; }
.is-lit .gem__plate--3 { transform: translateZ(19px); }
.is-lit .gem__plate--3::before { animation: gemPrism 1s ease-out; }
@keyframes gemLit {
  0% { transform: translateY(0) rotateX(16deg) rotateY(-24deg) scale(1); }
  38% { transform: translateY(-6px) rotateX(-8deg) rotateY(30deg) scale(1.13); }
  100% { transform: translateY(0) rotateX(16deg) rotateY(-24deg) scale(1); }
}
@keyframes gemPrism { from { translate: -100% 0; } to { translate: 100% 0; } }
.lux-trail { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; opacity: 0; }
.lux-trail.is-on { opacity: 1; }
.lux-trail .lux-path { fill: none; stroke-width: 3; stroke-linecap: round; }
.lux-trail .lux-halo { fill: none; stroke-width: 10; stroke-linecap: round; stroke-opacity: .16; }

/* carosello su smartphone: si scorre in orizzontale, la card al centro è in primo piano */
@media (max-width: 980px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .needs {
    position: relative; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 22px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .needs::-webkit-scrollbar { display: none; }
  .need-wrap { flex: 0 0 82%; scroll-snap-align: center; }
  .need { padding: 22px; transition: box-shadow .3s ease, border-color .3s; }
  .need.is-center { box-shadow: 0 22px 44px -28px color-mix(in srgb, var(--c) 55%, transparent); border-color: color-mix(in srgb, var(--c) 22%, var(--line)); }
}

/* pallini dei caroselli (servizi e prezzi): li crea site.js e li mostra solo quando si scorre */
.snap-dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.snap-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #D5D6E6; cursor: pointer; transition: width .3s ease, background-color .3s; }
.snap-dots button.is-on { width: 24px; background: var(--indigo); }
@media (max-width: 980px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .needs {
    position: relative; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 22px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .needs::-webkit-scrollbar { display: none; }
  .need-wrap { flex: 0 0 82%; scroll-snap-align: center; }
  .need { padding: 22px; transition: box-shadow .25s ease, border-color .25s; }
  .need.is-center { box-shadow: 0 24px 50px -26px color-mix(in srgb, var(--c) 60%, transparent); border-color: color-mix(in srgb, var(--c) 28%, var(--line)); }
}

.glossary { margin-top: 26px; padding: 22px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.glossary__title { margin-bottom: 14px; font-weight: 800; }
.glossary dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; }
.glossary dt { font-weight: 800; font-size: .95rem; color: var(--indigo); }
.glossary dd { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .glossary dl { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .glossary dl { grid-template-columns: 1fr; } }

/* ---------- Lab 3D ---------- */
.lab {
  overflow: hidden; color: #E8E8F6;
  background: radial-gradient(1100px 520px at 50% -8%, #26215E 0%, rgba(11, 13, 26, 0) 70%), var(--dark);
}
.lab h2 { color: #fff; }
.lab .section__lead { color: #B4B6D6; font-size: 1.02rem; text-wrap: balance; }
.lab .section__head { max-width: 620px; margin-bottom: 24px; }
.lab .section__head h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
.lab-tab__mini { display: none; }
.lab-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
/* schede colorate, come tasti: ognuna ha il suo colore (--k) e il suo posto nel glissando (--i) */
.lab-tab {
  --k: #B1A6FF;
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--k) 35%, rgba(255, 255, 255, .1)); background: rgba(255, 255, 255, .04);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--k) 30%, transparent);
  color: #D6D6EE; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, translate .14s, box-shadow .14s;
}
.lab-tab .icon { width: 18px; height: 18px; color: var(--k); }
.lab-tab:hover { background: color-mix(in srgb, var(--k) 16%, transparent); border-color: var(--k); color: #fff; translate: 0 1px; }
.lab-tab:active { translate: 0 3px; box-shadow: none; }
.lab-tab.is-active {
  background: #fff; border-color: #fff; color: var(--ink);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--k) 70%, #000), 0 10px 28px -10px var(--k);
}
.lab-tab.is-active .icon { color: color-mix(in srgb, var(--k) 70%, #1B1E3A); }
.lab-tabs.is-wave .lab-tab:not(.is-active) { animation: tabWave 7s ease-in-out calc(1.4s + var(--i) * .12s) infinite; }
.lab-tabs.is-wave .lab-tab:hover { animation: none; }
@keyframes tabWave {
  0%, 9%, 100% { translate: 0 0; background-color: rgba(255, 255, 255, .04); border-color: color-mix(in srgb, var(--k) 35%, rgba(255, 255, 255, .1)); color: #D6D6EE; }
  3.5% { translate: 0 3px; background-color: color-mix(in srgb, var(--k) 40%, transparent); border-color: var(--k); color: #fff; }
}

.lab-frame { position: relative; }
.lab-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--header-h) - 40px); min-height: 420px;
  border-radius: 26px; overflow: hidden; background: #0B0D1A;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 40px 120px -40px rgba(91, 75, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; transition: opacity .22s ease; }
.lab-canvas.is-grabbing { cursor: grabbing; }
.lab-stage.is-switching .lab-canvas { opacity: 0; }
.lab-loader {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: #B4B6D6; font-weight: 600; font-size: .95rem; transition: opacity .4s; pointer-events: none;
}
.lab-loader b { font-weight: inherit; }
.lab-loader span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #B1A6FF; animation: spin .9s linear infinite; }
.lab-stage.is-ready .lab-loader { opacity: 0; }
.lab-fallback { position: absolute; inset: 0; display: none; place-items: center; padding: 32px; text-align: center; color: #C9CAE4; }
.lab-stage.is-fallback .lab-fallback { display: grid; }
.lab-stage.is-fallback .lab-loader, .lab-stage.is-fallback .lab-drag { display: none; }
.lab-drag {
  position: absolute; right: 18px; top: 18px; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: opacity .5s;
}
.lab-stage.is-touched .lab-drag { opacity: 0; }
.lab-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lab-label {
  position: absolute; left: 0; top: 0; translate: -50% -140%;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .76rem; font-weight: 800; white-space: nowrap; opacity: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.lab-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 9px; translate: -50% 0; background: rgba(255, 255, 255, .85); }

.lab-info {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin-bottom: 14px; padding: 14px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.lab-info__text { flex: 1 1 420px; font-size: .95rem; line-height: 1.5; color: #C9CAE4; }
.lab-info__title { margin-right: 4px; font-weight: 800; color: #fff; }
.lab-info__title::after { content: " ·"; color: #7C7FA8; }
.lab-info__ideal { flex: 0 1 auto; padding: 6px 12px; border-radius: 999px; background: rgba(177, 166, 255, .1); font-size: .84rem; color: #C3BAFF; }
.lab-info__ideal b { color: #fff; }
.lab-info__short { display: none; }
.lab-ui {
  position: absolute; left: 18px; right: 18px; bottom: 18px; pointer-events: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.lab-ui > * { pointer-events: auto; }

.lab-hud, .lab-product, .lab-crm {
  padding: 14px 16px; border-radius: 16px; background: rgba(13, 15, 34, .66); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lab-hud { min-width: 270px; }
.lab-hud__row { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; font-weight: 600; color: #C9CAE4; }
.lab-hud__row b { color: #fff; font-variant-numeric: tabular-nums; }
.lab-hud__bar { height: 6px; margin: 10px 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lab-hud__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5FE0FF, #8A5CFF); transition: width .5s ease; }
.lab-hud__step { font-size: .92rem; font-weight: 700; color: #fff; }
.lab-hud.is-done .lab-hud__step { color: #6EF3C9; }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lab-btn {
  padding: 10px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(13, 15, 34, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-weight: 700; font-size: .86rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.lab-btn:hover { background: rgba(255, 255, 255, .14); }
.lab-btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lab-btn--accent { border-color: transparent; background: linear-gradient(90deg, var(--coral), var(--pink)); }
.lab-btn--accent:hover { background: linear-gradient(90deg, #FF7A52, #FF62AE); }
.lab-demo-tag { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.lab-hint {
  padding: 10px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: #E8E8F6;
  background: rgba(13, 15, 34, .62); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lab-product { display: flex; flex-direction: column; gap: 10px; }
.lab-product__meta b { display: block; font-size: 1rem; color: #fff; }
.lab-product__meta span { font-size: .85rem; color: #B4B6D6; }
.lab-product__meta em { font-style: normal; font-weight: 700; color: #fff; }
.lab-swatches { display: flex; gap: 10px; }
.lab-swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; background: var(--sw);
  border: 2px solid rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
  transition: scale .15s, border-color .2s, box-shadow .2s;
}
.lab-swatch:hover { scale: 1.08; }
.lab-swatch.is-on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.lab-toast {
  position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 8px; opacity: 0; pointer-events: none;
  width: max-content; max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 14px;
  background: #fff; color: var(--ink); font-size: .9rem; font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  transition: opacity .25s, translate .25s;
}
.lab-toast.is-on { opacity: 1; translate: -50% 0; }
.lab-crm { min-width: 230px; }
.lab-crm__total span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #B4B6D6; }
.lab-crm__total b { font-size: 2rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.lab-crm__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lab-crm__list li { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #D6D7EE; }
.lab-crm__list i { width: 9px; height: 9px; border-radius: 50%; }
.lab-crm__list b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }

.lab-cta {
  margin-top: 26px; padding: 20px 24px; border-radius: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.lab-cta p { max-width: 46em; color: #C9CAE4; }
.lab-cta strong { color: #fff; }

@media (max-width: 760px) {
  /* smartphone: intestazione corta e schede basse, così animazione e pulsanti stanno insieme sullo schermo */
  .lab.section { padding-top: 44px; }
  .lab .section__head { margin-bottom: 12px; }
  .lab .section__head h2 { font-size: 1.38rem; }
  .lab .section__lead { margin-top: 6px; font-size: .9rem; }
  .lab .kicker { margin-bottom: 6px; }
  .lab-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .lab-tab {
    flex-direction: column; justify-content: center; gap: 3px; padding: 7px 4px 6px;
    border-radius: 12px; font-size: .74rem; line-height: 1.1; text-align: center;
  }
  .lab-tab .icon { width: 17px; height: 17px; }
  /* nome lungo solo per chi usa il lettore di schermo, a video quello breve */
  .lab-tab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lab-tab__mini { display: block; }
  .lab-drag { top: 10px; right: 10px; padding: 4px 9px; font-size: .7rem; }
  .lab-stage { aspect-ratio: 1 / 1; max-height: 74vh; min-height: 0; border-radius: 20px; }
  .lab-info { margin-bottom: 8px; padding: 7px 12px; border-radius: 12px; }
  .lab-info__text { flex-basis: 100%; font-size: .8rem; line-height: 1.4; }
  .lab-info__title, .lab-info__full, .lab-info__ideal { display: none; }
  .lab-info__short { display: inline; }
  .lab-ui { position: relative; left: auto; right: auto; bottom: auto; margin-top: 12px; }
  .lab-hud, .lab-product, .lab-crm, .lab-hint { width: 100%; }
  .lab-hint { border-radius: 14px; }
}

/* ---------- Prezzi ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 0; }
/* subgrid: nome, prezzo, elenco e pulsante allineati alla stessa altezza in tutte le card */
.plan {
  position: relative; display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 30px 28px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: translate .25s ease, box-shadow .25s ease;
}
.plan:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.plan { --c: #14C9A6; --c2: #38B6FF; }
.plan[data-plan-card="crescita"] { --c: var(--indigo); --c2: var(--pink); }
.plan[data-plan-card="pro"] { --c: var(--coral); --c2: var(--violet); }
.plan:hover { box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.plan:not(.plan--featured):hover { border-color: color-mix(in srgb, var(--c) 24%, var(--line)); }
.plan .gem { position: absolute; top: 26px; right: 24px; width: 50px; height: 50px; margin: 0; }
.plan__name, .plan__goal { padding-right: 60px; }
.plan .gem .icon { width: 22px; height: 22px; }
.plan:nth-child(2) .gem__in, .plan:nth-child(2) .gem::after { animation-delay: -2s; }
.plan:nth-child(3) .gem__in, .plan:nth-child(3) .gem::after { animation-delay: -4s; }
.plans { position: relative; }
.plan--featured {
  border: 2px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--indigo), var(--pink), var(--coral)) border-box;
}
.plan.is-highlight { animation: highlight 1.8s ease; }
.plan__badge {
  position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap;
}
.plan__name { font-size: 1.5rem; font-weight: 800; }
.plan__goal { margin-top: 4px; font-weight: 600; color: var(--ink-2); }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 4px; }
.plan__amount { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.plan__once { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.plan__for { margin: 14px 0 18px; padding: 12px 14px; border-radius: 12px; background: #F6F6FB; font-size: .92rem; color: var(--ink-2); }
.plan__for b { color: var(--ink); }
.plan__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; align-content: start; gap: 11px; }
.plan__list li { position: relative; padding-left: 30px; font-size: .97rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(20, 201, 166, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9F86' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__list li.is-plus { padding-left: 0; font-weight: 800; color: var(--indigo); }
.plan__list li.is-plus::before { display: none; }
.plan__list li.is-star { font-weight: 700; }
.plan__list li.is-star::before {
  background: rgba(255, 106, 61, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8552B' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plan__time { display: flex; align-items: center; align-self: end; gap: 8px; margin-bottom: 16px; font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.plan__time .icon { color: var(--indigo); }
@media (min-width: 981px) {
  .plan--featured { translate: 0 -10px; }
  .plan--featured:hover { translate: 0 -14px; }
}
/* smartphone e tablet: i pacchetti scorrono in orizzontale, si parte da "Crescita" al centro */
@media (max-width: 980px) {
  .plans {
    position: relative; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter) 26px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan {
    flex: 0 0 min(82%, 380px); scroll-snap-align: center; display: flex; flex-direction: column; padding: 26px 22px;
    transform: perspective(900px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: box-shadow .25s ease;
  }
  .js .plans .plan.reveal { opacity: 1; transform: perspective(900px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: box-shadow .25s ease; }
  .plan:hover { translate: none; }
  .plan.is-center { box-shadow: 0 26px 54px -26px color-mix(in srgb, var(--c) 60%, transparent); }
  .plan.is-center:not(.plan--featured) { border-color: color-mix(in srgb, var(--c) 24%, var(--line)); }
  .plan .gem { top: 24px; right: 20px; }
  .plan__amount { font-size: 2.6rem; }
  .plan__time { margin-top: auto; align-self: flex-start; }
}

.included {
  margin-top: 30px; padding: 20px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 36px;
}
.included p { font-weight: 800; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px 26px; }
@media (max-width: 980px) { .included { grid-template-columns: 1fr; } .included ul { justify-content: start; } }
@media (max-width: 640px) { .included ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .included ul { grid-template-columns: 1fr; } }
.included li { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.included .icon { color: var(--indigo); }

.extras { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 20px; }
.extra { padding: 26px 28px; border-radius: 22px; }
.extra h3 { margin-bottom: 8px; font-size: 1.3rem; font-weight: 800; }
.extra--dark { background: var(--ink); color: #fff; }
.extra--dark p { margin-bottom: 18px; color: #C9CAE4; }
.extra--soft { background: #fff; border: 1px solid var(--line); }
.extra-list { list-style: none; margin: 8px 0 0; padding: 0; }
.extra-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.extra-list li:last-child { border-bottom: 0; }
.extra-list span { color: var(--ink-2); }
.extra-list b { white-space: nowrap; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: start; transition: grid-template-columns .4s ease; }
@media (min-width: 981px) { .finder.has-result { grid-template-columns: .55fr 1.45fr; } }
.finder__intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.finder__intro p:last-child { margin-top: 14px; font-size: 1.05rem; color: var(--ink-2); }
.finder__panel { position: relative; min-height: 380px; padding: 28px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.finder__progress { height: 6px; margin-bottom: 22px; border-radius: 99px; background: #EEEDF8; overflow: hidden; }
.finder__progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--pink)); transition: width .4s ease; }
.finder__step { display: none; }
.finder__step.is-active { display: block; animation: fadeUp .35s ease; }
.finder__q { margin-bottom: 18px; font-size: 1.3rem; font-weight: 800; }
.finder__q span {
  display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 99px; vertical-align: 3px;
  background: var(--tint); color: var(--indigo); font-size: .78rem;
}
.finder__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.finder__options--one { grid-template-columns: 1fr; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-align: left;
  border-radius: 16px; border: 1.5px solid var(--line); background: #FBFBFE;
  font-weight: 700; font-size: .98rem; cursor: pointer; transition: border-color .2s, background-color .2s, translate .15s;
}
.option:hover { border-color: var(--indigo); background: #F5F4FF; translate: 0 -1px; }
.option[aria-pressed="true"] { border-color: var(--indigo); background: #F1F0FF; }
.option__emoji { font-size: 1.35rem; line-height: 1; }
.finder__back { margin-top: 16px; padding: 6px 0; border: 0; background: none; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.finder__back:hover { color: var(--ink); }
@media (max-width: 980px) { .finder { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .finder__options { grid-template-columns: 1fr; } .finder__panel { padding: 22px; } }

.result { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; animation: fadeUp .4s ease; }
.result__label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.result__plan { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 10px; font-size: 2rem; font-weight: 800; outline: none; }
.result__plan span { font-size: 1.2rem; color: var(--indigo); }
.result__why { color: var(--ink-2); }
.result__note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #FFF4E8; color: #8A4B12; font-size: .9rem; }
.result__list { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 8px; }
.result__list li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 600; }
.result__list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(20, 201, 166, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9F86' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.result__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .result { grid-template-columns: 1fr; } }

/* anteprima del sito (mockup browser) */
.mock {
  --m1: #5B4BFF; --m2: #8A5CFF;
  align-self: start; overflow: hidden; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; line-height: 1.4;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F1F2F7; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF6A3D; }
.mock__bar i:nth-child(2) { background: #FFB547; }
.mock__bar i:nth-child(3) { background: #14C9A6; }
.mock__bar span { flex: 1; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: #fff; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.mock__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-weight: 800; }
.mock__nav span { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.mock__hero { position: relative; overflow: hidden; margin: 0 12px; padding: 22px 18px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--m1), var(--m2)); }
.mock__hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mock__title { max-width: 72%; font-size: 19px; font-weight: 800; line-height: 1.15; }
.mock__sub { max-width: 76%; margin-top: 6px; opacity: .88; }
.mock__btn { display: inline-block; margin-top: 12px; padding: 7px 12px; border-radius: 99px; background: #fff; color: var(--m1); font-weight: 800; }
.mock__badge { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .95); color: #1B1E3A; font-size: 10.5px; font-weight: 800; }
.mock__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.mock__features span { padding: 10px 6px; border-radius: 10px; background: #F6F6FB; text-align: center; font-size: 11px; font-weight: 700; }
.mock__widget { display: flex; justify-content: space-between; gap: 8px; margin: 0 12px 12px; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--m1); color: var(--m1); font-weight: 800; }
.mock__app { display: inline-block; margin: 0 12px 12px; padding: 6px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; }

/* ---------- Come funziona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 800; }
.step:nth-child(2) .step__n { background: var(--indigo); }
.step:nth-child(3) .step__n { background: var(--violet); }
.step:nth-child(4) .step__n { background: var(--coral); }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 800; }
.step p { font-size: .96rem; color: var(--ink-2); }
.step__when { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 99px; background: var(--tint); color: var(--indigo); font-size: .78rem; font-weight: 800; }
.steps__note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; text-align: center; font-weight: 600; color: var(--ink-2); }
.steps__note .icon { color: var(--mint); }
@media (min-width: 981px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px;
    background: repeating-linear-gradient(90deg, #C9CBE0 0 4px, transparent 4px 8px);
  }
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  list-style: none; cursor: pointer; font-size: 1.05rem; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; transition: rotate .25s;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B4BFF' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- Contatti ---------- */
.contact { color: #E8E8F6; background: radial-gradient(900px 520px at 8% 0%, #2B2573 0%, rgba(11, 13, 26, 0) 62%), var(--dark); }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact__copy > p { margin-top: 16px; font-size: 1.08rem; color: #B4B6D6; }
.contact__direct { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.direct {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .2s;
}
.direct:hover { background: rgba(255, 255, 255, .1); }
.direct .icon { width: 22px; height: 22px; color: #B1A6FF; }
.direct--wa .icon { color: #25D366; }
.direct b { display: block; color: #fff; }
.direct small { font-size: .85rem; color: #9FA2C6; }
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px;
  border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .6);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #FBFBFE; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(91, 75, 255, .15); }
.field.is-invalid input { border-color: #E5484D; background: #FFF6F6; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--indigo); }
.check.is-invalid { color: #C93A40; }
.form__note { min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.form__note.is-ok { color: #0E8F70; }
.form__note.is-error { color: #C93A40; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .contact__form { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 28px; background: #07080F; color: #9FA2C6; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.brand--light { color: #fff; }
.footer__tag { max-width: 30em; margin-top: 12px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__legal p + p { margin-top: 6px; }
.footer__company { margin-bottom: 12px; line-height: 1.5; }
.footer__company p + p { margin-top: 2px; }
.footer__company b { color: #fff; }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Barra rapida su smartphone ---------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 8px;
    border-radius: 20px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    translate: 0 150%; transition: translate .35s ease;
  }
  .mobile-bar.is-visible { translate: 0 0; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: .95rem; }
  .mobile-bar__link { background: var(--tint); color: var(--indigo); }
  .mobile-bar__cta { background: var(--indigo); color: #fff; }
  .footer { padding-bottom: 104px; }
}

/* ---------- Pulsante WhatsApp sempre visibile, con impulso ---------- */
.wa-float {
  position: fixed; z-index: 65; right: calc(22px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  transition: bottom .35s ease;
  animation: waIn .7s cubic-bezier(.2, .9, .3, 1.25) .9s both;
}
.wa-float__label {
  padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .92rem; font-weight: 700; white-space: nowrap;
  opacity: 0; translate: 12px 0; pointer-events: none; transition: opacity .25s ease, translate .25s ease;
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label, .wa-float.is-teasing .wa-float__label { opacity: 1; translate: 0 0; }
.wa-float__btn { position: relative; isolation: isolate; display: grid; place-items: center; width: 60px; height: 60px; color: #fff; transition: scale .2s ease; }
.wa-float__btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: linear-gradient(150deg, #3BE584, #22C35E 55%, #179E4C);
  box-shadow: 0 14px 30px -10px rgba(16, 150, 70, .75), 0 2px 6px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.wa-float__btn::before, .wa-float__btn i {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 50%; background: #25D366;
  animation: waPulse 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
}
.wa-float__btn i { animation-delay: 1.2s; }
.wa-float__btn svg { width: 31px; height: 31px; fill: currentColor; animation: waNudge 6s ease-in-out 3s infinite; }
.wa-float:hover .wa-float__btn { scale: 1.07; }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float__btn::after { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--indigo); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.85); opacity: 0; } }
@keyframes waNudge { 0%, 86%, 100% { rotate: 0deg; } 89% { rotate: -14deg; } 92% { rotate: 12deg; } 95% { rotate: -7deg; } 98% { rotate: 4deg; } }
@keyframes waIn { from { opacity: 0; translate: 0 24px; scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (max-width: 960px) {
  .wa-float { right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mobile-bar.is-visible ~ .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .wa-float__btn { width: 56px; height: 56px; }
}

/* ---------- Accessibilità: meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__placeholder, .lab-loader span, .wa-float, .wa-float__btn::before, .wa-float__btn i, .wa-float__btn svg { animation: none; }
  .chip, .chip::before, .chip::after, .chip__dot, .hero__hand, .lab-tab, .lab-tab::before { animation: none !important; }
  .gem__in, .gem::after, .gem__plate--3::after { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
