/* ==========================================================================
   siCassa — sito di presentazione
   ========================================================================== */

/* ---------- Font (self-hosted, nessuna chiamata a servizi esterni) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-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;
}

/* ---------- Design token ---------- */
:root {
  --ink: #0E0F13;
  --ink-2: #17181F;
  --ink-3: #23242D;
  --paper: #F5F2EC;
  --white: #FFFFFF;

  --violet: #6457FF;
  --violet-2: #8273FF;
  --violet-3: #3F31D9;
  --violet-soft: #E6E3FF;

  --lime: #D4FF3A;
  --lime-3: #93B800;
  --coral: #FF5A3C;
  --sun: #FFC93C;
  --pink: #FF7AC6;
  --sky: #4DD4FF;
  --danger: #D93A1E;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --page-bg: var(--ink);
  --page-fg: var(--white);

  interpolate-size: allow-keywords;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
strong, b { font-weight: 800; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Lenis (scroll fluido) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Utility ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: .7em 1.1em; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* Temi di sezione: senza JS ogni sezione ha il suo sfondo,
   con JS lo sfondo della pagina "sfuma" da un colore all'altro durante lo scroll. */
.t-ink    { --sec-bg: var(--ink);    --sec-fg: var(--white); }
.t-paper  { --sec-bg: var(--paper);  --sec-fg: var(--ink); }
.t-lime   { --sec-bg: var(--lime);   --sec-fg: var(--ink); }
.t-sun    { --sec-bg: var(--sun);    --sec-fg: var(--ink); }
.t-violet { --sec-bg: var(--violet); --sec-fg: var(--white); }
.t-sec { background: var(--sec-bg); color: var(--sec-fg); position: relative; }
html.morph body { background: var(--page-bg); color: var(--page-fg); }
html.morph .t-sec { background: transparent; color: var(--page-fg); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ""; width: .7em; height: .7em; border-radius: 50%;
  display: none;
}
.display {
  font-size: clamp(2.3rem, 6.2vw, 5.6rem);
  line-height: .95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display--sm { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.hl {
  --hl: var(--violet);
  padding: 0 .14em; border-radius: .14em;
  background: linear-gradient(var(--hl), var(--hl)) 0 58% / 100% 76% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl--violet { --hl: var(--violet); color: var(--white); }
.hl--lime   { --hl: var(--lime);   color: var(--ink); }
.hl--ink    { --hl: var(--ink);    color: var(--sun); }

.sec-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__lead {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 60ch;
  color: color-mix(in srgb, currentColor 72%, transparent);
}
.sec-head--center .sec-head__lead { margin-inline: auto; }

/* SplitText: margine extra perché le maschere non taglino gli evidenziatori */
.split-line-mask { padding: .06em .12em .1em; margin: -.06em -.12em -.1em; }

/* Liste con spunta */
.ticks { display: grid; gap: .7em; }
.ticks li { position: relative; padding-left: 2em; font-weight: 600; }
.ticks li::before, .ticks li::after {
  content: ""; position: absolute; left: 0; top: .12em; width: 1.3em; height: 1.3em;
}
.ticks li::before { border-radius: 50%; background: var(--tick-bg, var(--violet)); }
.ticks li::after {
  background: var(--tick-fg, var(--white));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 64% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 64% no-repeat;
}

/* ---------- Pulsanti ---------- */
.btn {
  --bg: var(--violet); --fg: var(--white); --sh: var(--violet-3);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.55em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  box-shadow: 0 .3em 0 var(--sh);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px);
  user-select: none;
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 .5em 0 var(--sh); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: translateY(.22em); box-shadow: 0 .08em 0 var(--sh); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn--primary { --bg: var(--violet); --fg: var(--white); --sh: var(--violet-3); }
.btn--lime    { --bg: var(--lime);   --fg: var(--ink);   --sh: var(--lime-3); }
.btn--light   { --bg: var(--white);  --fg: var(--ink);   --sh: #BDB8D6; }
.btn--ink     { --bg: var(--ink);    --fg: var(--white); --sh: var(--violet); }
.btn--ghost   { --bg: transparent;   --fg: currentColor; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--sm { padding: .62em 1.1em; font-size: .9rem; box-shadow: 0 .22em 0 var(--sh); }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .5em 1em .5em .7em; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem; font-weight: 700;
}
.chip__dot { width: .6em; height: .6em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 58, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(212, 255, 58, 0); } }

/* ---------- Barra di avanzamento ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--violet-2);
}

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--white); }
.wordmark__mark { width: 1.45em; height: 1.45em; }
.wordmark__text b { color: var(--violet-2); }
.wordmark--lg { font-size: 2rem; }

/* ---------- Navigazione ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: 12px; pointer-events: none; }
.nav__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(14, 15, 19, .62);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  color: var(--white);
  pointer-events: auto;
  transition: transform .5s var(--ease), background-color .3s;
}
.nav.is-hidden .nav__inner { transform: translateY(-140%); }
.nav.is-scrolled .nav__inner { background: rgba(14, 15, 19, .82); }
.nav__links { display: flex; gap: 4px; }
.nav__links a, .nav__login {
  padding: .5em .9em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.nav__links a:hover, .nav__login:hover { background: rgba(255, 255, 255, .1); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(255, 255, 255, .1); }
.nav__burger .ic { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--gutter) 40px;
  background: var(--violet); color: var(--white);
  pointer-events: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -0.04em; text-decoration: none; line-height: 1.15; }

@media (max-width: 960px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: grid; }
}
@media (max-width: 400px) {
  .nav__actions .btn--sm { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: clamp(112px, 15vh, 150px) 0 0; overflow-x: clip; text-align: center; isolation: isolate; }
.hero::before {
  display: none;
  content: ""; position: absolute; inset: -10% -10% auto; height: 110%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(100, 87, 255, .38), transparent 70%),
    radial-gradient(35% 35% at 85% 30%, rgba(255, 122, 198, .22), transparent 70%),
    radial-gradient(40% 40% at 50% 85%, rgba(77, 212, 255, .16), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent 92%); mask-image: linear-gradient(#000 60%, transparent 92%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__chip { margin-bottom: clamp(22px, 3vw, 34px); }
.hero__title {
  font-size: clamp(2.5rem, min(12vw, 15.5vh), 8.8rem);
  line-height: .9;
  letter-spacing: -0.055em;
}
.hero__title .line { display: block; overflow: hidden; padding: .06em .2em .1em; margin: -.06em -.2em -.1em; }
.hero__title .line__in { display: inline-block; }
.hero__title .line--rot { padding-block: .1em .14em; }

.rotator {
  position: relative; display: inline-block; vertical-align: top;
  padding: 0 .26em .04em; border-radius: .2em;
  background: var(--lime); color: var(--ink);
  transform: rotate(-2deg);
  box-shadow: .07em .07em 0 rgba(0, 0, 0, .35);
}
.rotator__word { display: inline-block; white-space: nowrap; }
html:not(.gsap) .rotator__word + .rotator__word { display: none; }
html.gsap .rotator { overflow: hidden; height: 1.02em; }
html.gsap .rotator__word { position: absolute; left: .26em; top: 0; }

.hero__lead {
  max-width: 680px; margin: clamp(22px, 3vw, 34px) auto 0;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  color: color-mix(in srgb, currentColor 74%, transparent);
}
.hero__lead strong { color: var(--white); font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(26px, 3.4vw, 40px); }
.hero__trust { margin-top: 22px; font-size: .95rem; font-weight: 600; color: color-mix(in srgb, currentColor 62%, transparent); }
.hero__kicker { margin-bottom: clamp(20px, 3vw, 30px); font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: color-mix(in srgb, currentColor 60%, transparent); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45em; }
.hero__trust .ic { color: var(--lime); stroke-width: 3; }

/* Forme decorative */
.hero__shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape { position: absolute; display: block; }
.shape--star { width: clamp(56px, 8vw, 130px); left: 5%; top: 17%; fill: var(--violet); }
.shape--ring { width: clamp(70px, 9vw, 140px); aspect-ratio: 1; right: 6%; top: 21%; border-radius: 50%; border: clamp(10px, 1.4vw, 20px) solid var(--lime); }
.shape--pill { width: clamp(90px, 12vw, 190px); height: clamp(34px, 4.4vw, 66px); left: 4%; top: 58%; border-radius: 999px; background: var(--coral); rotate: -24deg; }
.shape--squiggle { width: clamp(110px, 13vw, 210px); right: 3%; top: 60%; fill: none; stroke: var(--pink); stroke-width: 12; stroke-linecap: round; }
.shape--dot { width: clamp(22px, 2.6vw, 40px); aspect-ratio: 1; left: 22%; top: 9%; border-radius: 50%; background: var(--sun); }

/* Palco con la cassa */
.hero__stage {
  position: relative; z-index: 1;
  --pb: clamp(110px, 15vw, 220px);
  width: min(1080px, 92vw); margin: clamp(48px, 6vw, 80px) auto 0;
  padding-bottom: var(--pb);
  perspective: 1600px;
  text-align: left;
}
.device {
  position: relative; z-index: 1;
  padding: clamp(6px, 1.2vw, 14px); border-radius: clamp(16px, 2.6vw, 30px);
  background: linear-gradient(160deg, #2A2B36, #15161C);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 60px 120px -40px rgba(100, 87, 255, .7), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 0;
  container-type: inline-size;
}
.device__screen { border-radius: clamp(10px, 1.6vw, 18px); overflow: hidden; background: #F4F3F9; color: var(--ink); aspect-ratio: 16 / 9.6; }

.pos { font-size: 1.32cqw; display: flex; flex-direction: column; }
.pos__bar { display: flex; align-items: center; gap: 1.6em; height: 3.6em; padding: 0 1.5em; background: var(--white); border-bottom: 1px solid #E7E5F0; flex: none; }
.pos__brand { display: inline-flex; align-items: center; gap: .45em; font-weight: 800; font-size: 1.2em; letter-spacing: -0.03em; }
.pos__brand svg { width: 1.5em; height: 1.5em; }
.pos__brand b { color: var(--violet); }
.pos__tabs { display: flex; gap: .4em; }
.pos__tabs b { padding: .45em .9em; border-radius: 999px; font-weight: 700; color: #6B6880; }
.pos__tabs b.is-on { background: var(--ink); color: var(--white); }
.pos__meta { margin-left: auto; font-weight: 700; color: #6B6880; font-variant-numeric: tabular-nums; }
.pos__body { flex: 1; display: grid; grid-template-columns: 1fr 31%; min-height: 0; }
.pos__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: .85em; padding: 1.3em; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: .9em 1em; border-radius: 1em; background: var(--c);
  box-shadow: inset 0 -.3em 0 rgba(0, 0, 0, .08);
}
.tile b { font-size: 1.12em; letter-spacing: -0.02em; line-height: 1.15; }
.tile span { font-weight: 700; opacity: .7; }
.pos__cart { display: flex; flex-direction: column; padding: 1.3em 1.4em; background: var(--white); border-left: 1px solid #E7E5F0; min-height: 0; }
.pos__cart-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15em; margin-bottom: .6em; }
.pos__cart-head span { color: #8C89A0; font-weight: 700; }
.pos__lines li { display: flex; justify-content: space-between; padding: .62em 0; border-bottom: 1px dashed #DDDAE8; font-weight: 600; }
.pos__lines b { font-variant-numeric: tabular-nums; }
.pos__total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding: .8em 0; font-weight: 800; }
.pos__total span { color: #6B6880; }
.pos__total b { font-size: 1.9em; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pos__pay { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; padding: .3em; border-radius: .9em; background: #F1EFF7; font-weight: 700; text-align: center; margin-bottom: .8em; }
.pos__pay span { padding: .55em; border-radius: .7em; color: #6B6880; }
.pos__pay .is-on { background: var(--white); color: var(--ink); box-shadow: 0 .15em .4em rgba(0, 0, 0, .08); }
.pos__go { padding: 1em; border-radius: .9em; background: var(--violet); color: var(--white); text-align: center; font-weight: 800; font-size: 1.2em; box-shadow: inset 0 -.3em 0 var(--violet-3); }

/* Scontrino che esce dalla cassa */
.receipt { position: absolute; z-index: 0; right: 9%; top: calc(100% - var(--pb) - 1.5%); width: clamp(120px, 18%, 200px); rotate: 3deg; transform-origin: top center; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.receipt__paper {
  position: relative; padding: 1.1em 1em 1.2em; background: #FFFEF8; color: #222;
  font-family: var(--mono); font-size: clamp(8px, .9vw, 11.5px); line-height: 1.5;
}
.receipt__paper::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
  background: conic-gradient(from -45deg at 50% 100%, #FFFEF8 90deg, transparent 0) 0 0 / 14px 100% repeat-x;
}
.receipt__paper b { display: block; text-align: center; font-size: 1.25em; letter-spacing: .08em; }
.receipt__paper small { display: block; text-align: center; font-size: .85em; opacity: .7; }
.receipt__paper hr { border: 0; border-top: 1px dashed #999; margin: .6em 0; }
.receipt__paper p { display: flex; justify-content: space-between; }
.receipt__tot { font-weight: 800; font-size: 1.15em; }
.receipt__code { display: block; height: 2.6em; margin-top: .7em; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px, #222 8px 11px, transparent 11px 12px); }

/* Adesivi */
.sticker {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .75em;
  padding: .75em 1.15em .75em .75em; border-radius: 18px;
  background: var(--c); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .65), 5px 5px 0 rgba(0, 0, 0, .35);
  font-size: clamp(.66rem, 1.05vw, .95rem); line-height: 1.25;
  rotate: var(--r, 0deg);
  white-space: nowrap;
}
.sticker b { display: block; font-size: 1.12em; letter-spacing: -0.02em; }
.sticker small { display: block; font-weight: 700; opacity: .72; font-size: .92em; }
.sticker__ic { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 12px; background: var(--ink); color: var(--c); flex: none; }
.sticker__ic .ic { stroke-width: 2.6; }
.sticker--lime  { --c: var(--lime);  left: -5%;  top: 14%; }
.sticker--sun   { --c: var(--sun);   right: -6%; top: 4%; }
.sticker--coral { --c: var(--coral); left: -3%;  top: 66%; }
.sticker--sky   { --c: var(--sky);   right: -5%; top: 40%; }

@media (max-width: 720px) {
  .sticker--lime  { left: -2%; top: -10%; }
  .sticker--sun   { right: -2%; top: auto; bottom: 30%; }
  .sticker--coral { display: none; }
  .sticker--sky   { display: none; }
  .receipt { right: 4%; }
  .shape--dot, .shape--squiggle, .shape--pill { display: none; }
  .shape--star { top: 30%; left: -5%; width: 54px; }
  .shape--ring { top: 27%; right: -7%; width: 70px; border-width: 10px; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { position: relative; z-index: 2; padding: clamp(50px, 7vw, 100px) 0; overflow: clip; }
.marquee__band {
  width: 112%; margin-left: -6%; padding: .32em 0;
  font-size: clamp(1.8rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  white-space: nowrap; overflow: hidden;
}
.marquee__band--violet { background: var(--violet); color: var(--white); rotate: -3deg; }
.marquee__band--lime   { background: var(--lime); color: var(--ink); rotate: 2deg; margin-top: .9em; position: relative; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track > * { margin-right: .45em; flex: none; }
.marquee__track svg { width: .62em; height: .62em; fill: currentColor; }

/* ==========================================================================
   PRIMA E DOPO
   ========================================================================== */
.merge { position: relative; z-index: 1; background: #24252D; color: var(--white); overflow: clip; }
.merge__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 50px; }
.merge__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.merge__tags { position: relative; }
.merge__tag { display: inline-block; }
.merge__titles { display: grid; gap: 28px; }
.merge__state h2 { margin-bottom: 1.2rem; }
.merge__state p { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 46ch; color: rgba(255, 255, 255, .75); }
.merge__counters { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 4vw, 44px); }
.counter {
  display: flex; flex-direction: column; gap: .2em;
  min-width: 120px; padding: .9em 1.1em; border-radius: 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.counter span { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.counter b { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.merge__stage { position: relative; height: min(70vh, 600px); container-type: size; }
.app-card {
  position: absolute; left: var(--x); top: var(--y); width: 44%;
  display: flex; align-items: center; gap: .8em;
  padding: .85em 1em .85em .85em; border-radius: 16px;
  background: #33343E; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
  font-size: clamp(.6rem, 2.6cqw, .95rem); line-height: 1.25;
  rotate: var(--r);
}
.app-card__ic { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 12px; background: #45464F; color: #B9B8C4; flex: none; }
.app-card__txt { min-width: 0; }
.app-card__txt b { display: block; font-size: 1.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card__txt small { display: block; color: #A6A5B2; font-weight: 600; }
.app-card__badge {
  position: absolute; top: -.6em; right: -.6em; display: grid; place-items: center;
  width: 1.9em; height: 1.9em; border-radius: 50%; background: #FF4D4D; color: var(--white);
  font-style: normal; font-weight: 800; font-size: .95em; border: 2px solid #24252D;
}

.merge__core { position: absolute; inset: 0; pointer-events: none; }
.core__orbit { position: absolute; inset: 0; }
.core__mod {
  position: absolute;
  left: calc(50% + sin(var(--a)) * 39cqmin);
  top:  calc(50% - cos(var(--a)) * 39cqmin);
  translate: -50% -50%;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em .95em .55em .7em; border-radius: 999px;
  background: var(--c); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800; font-size: clamp(.7rem, 3cqmin, 1.05rem); white-space: nowrap;
}
.core__mod .ic { stroke-width: 2.4; }
.core__logo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 40cqmin; aspect-ratio: 1; border-radius: 26%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em;
  background: var(--white); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  font-weight: 800; letter-spacing: -0.04em; font-size: 6cqmin;
}
.core__logo svg { width: 46%; height: auto; aspect-ratio: 1; }
.core__logo b { color: var(--violet); }

/* Stato statico (senza JS o con "riduci movimento"): niente sovrapposizioni */
.merge:not(.merge--anim) .app-card { display: none; }
.merge:not(.merge--anim) .merge__tag--after,
.merge:not(.merge--anim) .merge__tag--before { margin-right: .6em; }

/* Stato animato */
.merge--anim .merge__titles { display: grid; }
.merge--anim .merge__state { grid-area: 1 / 1; }
.merge--anim .merge__tags { display: grid; }
.merge--anim .merge__tag { grid-area: 1 / 1; }
.merge--anim .merge__tags::before { display: none; }
.merge--anim .merge__tag::before {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .6em; border-radius: 50%;
  background: currentColor; vertical-align: -.05em;
}
.merge--anim .merge__tag--before { color: #FF7A6B; }
.merge--anim .merge__tag--after { color: var(--lime); }
.merge--anim .app-card { rotate: none; }

@media (max-width: 860px) {
  .merge__pin { padding: 90px 0 24px; align-items: flex-start; }
  .merge__grid { grid-template-columns: 1fr; gap: 18px; }
  .merge__state h2 { font-size: clamp(1.9rem, 8.4vw, 3rem); margin-bottom: .6rem; }
  .merge--anim .merge__state p { display: none; }
  .merge__counters { margin-top: 14px; gap: 8px; }
  .counter { min-width: 0; flex: 1; padding: .6em .7em; }
  .counter span { font-size: .62rem; }
  .counter b { font-size: 1.9rem; }
  .merge__stage { height: min(46vh, 420px); height: min(46svh, 420px); }
  .app-card { width: 46%; }
}

/* ==========================================================================
   VERSUS
   ========================================================================== */
.versus { padding: clamp(90px, 12vw, 170px) 0; }
.versus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.vs-card { border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); border: 2px solid var(--ink); }
.vs-card h3 { display: flex; flex-direction: column; gap: .5em; font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 1.2rem; }
.vs-card__tag { align-self: flex-start; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.vs-card li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 1em 0; border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent); font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 700; }
.vs-card li b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; margin-bottom: .15em; }
.vs-card li .ic { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 50%; stroke-width: 3; }
.vs-card--before { background: #E4E0D7; color: #5A5650; box-shadow: 8px 8px 0 #BFB9AD; }
.vs-card--before .vs-card__tag { background: #CFC9BD; color: #5A5650; }
.vs-card--before li .ic { background: #D2CBBE; color: #A2442F; }
.vs-card--after { background: var(--violet); color: var(--white); box-shadow: 10px 10px 0 var(--ink); }
.vs-card--after h3 b { color: var(--lime); }
.vs-card--after .vs-card__tag { background: var(--lime); color: var(--ink); }
.vs-card--after li .ic { background: var(--lime); color: var(--ink); }

@media (max-width: 760px) {
  .versus__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SETTORI
   ========================================================================== */
.sectors { position: relative; z-index: 1; overflow: clip; background: var(--violet); }
.sectors__track { display: flex; flex-direction: column; }
.sector { display: flex; align-items: center; padding: clamp(80px, 10vw, 120px) var(--gutter); }
.sector__inner { width: min(100%, var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sector--intro { background: var(--violet); color: var(--white); }
.sector--intro .sector__inner { display: block; }
.sector--food    { background: var(--coral); color: var(--ink); --tick-bg: var(--ink); --tick-fg: var(--coral); }
.sector--shop    { background: var(--sun);   color: var(--ink); --tick-bg: var(--ink); --tick-fg: var(--sun); }
.sector--service { background: var(--pink);  color: var(--ink); --tick-bg: var(--ink); --tick-fg: var(--pink); }
.sector__big { font-size: clamp(3rem, 9vw, 9rem); line-height: .9; letter-spacing: -0.055em; max-width: 12ch; }
.sector__hint { display: inline-flex; align-items: center; gap: .6em; margin-top: 2rem; font-weight: 800; font-size: 1.1rem; padding: .6em 1.1em; border-radius: 999px; border: 2px solid currentColor; }
.sector__hint .ic { animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.sector__num { display: inline-flex; align-items: center; gap: .8em; font-weight: 800; font-size: 1rem; margin-bottom: 1.2rem; }
.sector__num span { padding: .3em .8em; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.sector__title { font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: .95; letter-spacing: -0.05em; margin-bottom: 1.2rem; }
.sector__copy > p:not(.sector__num) { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 46ch; margin-bottom: 1.6rem; font-weight: 600; }
.sector__visual { position: relative; }

/* Variante orizzontale (desktop, con animazioni) */
.sectors--h .sectors__track { flex-direction: row; width: max-content; height: 100vh; }
.sectors--h .sector { width: 100vw; height: 100vh; flex: none; padding-top: 110px; padding-bottom: 50px; }
.sectors--h .sector--intro { width: 72vw; }
.sectors--h .sector__hint .ic { rotate: 0deg; }
.sector__hint .ic { rotate: 90deg; }

/* Mockup */
.mock { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--ink); padding: clamp(16px, 2vw, 26px); }
.mock__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1em; }
.mock__head b { font-size: 1.15rem; }
.mock__head span { font-size: .85rem; font-weight: 700; color: #6B6880; }

.tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tbl { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: #F1EFEA; font-weight: 800; font-size: clamp(.9rem, 1.4vw, 1.2rem); border: 2px solid transparent; }
.tbl--busy { background: var(--ink); color: var(--white); }
.tbl--bill { background: var(--sun); border-color: var(--ink); }
.tbl--long { border-radius: 50%; }
.tables__legend { display: flex; gap: 16px; margin-top: 14px; font-size: .8rem; font-weight: 700; color: #6B6880; }
.tables__legend span { display: inline-flex; align-items: center; gap: .4em; }
.lg { width: .9em; height: .9em; border-radius: 4px; display: inline-block; }
.lg--free { background: #F1EFEA; border: 1px solid #D6D2C8; }
.lg--busy { background: var(--ink); }
.lg--bill { background: var(--sun); border: 1px solid var(--ink); }
.mock--tables { width: 86%; }
.mock--ticket {
  position: absolute; right: 0; bottom: -14%; width: 52%; rotate: 5deg;
  font-family: var(--mono); font-size: clamp(.7rem, 1vw, .9rem); background: #FFFEF8;
}
.mock--ticket b { display: block; font-family: var(--font); font-size: 1.05em; margin-bottom: .6em; }
.mock--ticket p { padding: .2em 0; }
.mock--ticket p span { font-weight: 800; margin-right: .3em; }
.mock--ticket em { display: block; font-style: normal; color: var(--danger); font-size: .9em; padding-left: 2.2em; }
.mock--ticket small { display: block; margin-top: .6em; color: #6B6880; }

.mock--scan { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(14px, 2vw, 24px); align-items: center; }
.scan { position: relative; aspect-ratio: 1; border-radius: 16px; background: #F1EFEA; overflow: hidden; display: grid; place-items: center; }
.scan__bars { width: 70%; height: 46%; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px, transparent 7px 11px, var(--ink) 11px 15px, transparent 15px 17px); }
.scan__laser { position: absolute; left: 8%; right: 8%; height: 3px; top: 30%; background: var(--coral); box-shadow: 0 0 14px 3px rgba(255, 90, 60, .7); animation: laser 1.8s ease-in-out infinite alternate; }
@keyframes laser { to { top: 70%; } }
.scan__item b { display: block; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.03em; }
.scan__item > span { display: block; font-family: var(--mono); font-size: .8rem; color: #6B6880; margin-bottom: .9em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1em; }
.chips i { font-style: normal; font-weight: 800; font-size: .85rem; padding: .35em .7em; border-radius: 10px; border: 2px solid #E2DFD7; }
.chips i.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.scan__row { display: flex; justify-content: space-between; padding: .55em 0; border-top: 1px dashed #DDD9CF; font-weight: 700; }

.agenda { display: grid; grid-template-columns: 3.6em 1fr; grid-auto-rows: clamp(30px, 4.6vh, 44px); column-gap: 12px; }
.agenda__h { grid-column: 1; font-size: .8rem; font-weight: 700; color: #8C89A0; border-top: 1px solid #EEEAE2; padding-top: .3em; }
.agenda__ev {
  grid-column: 2; grid-row: span var(--h); margin: 4px 0;
  padding: .5em .8em; border-radius: 12px; background: var(--c); color: var(--white);
  font-size: .85rem; font-weight: 600; line-height: 1.3;
}
.agenda__ev b { display: block; font-size: 1.05em; }

@media (max-width: 899px) {
  .sector__inner { grid-template-columns: 1fr; }
  .mock--ticket { bottom: -10%; }
  .sector--food .sector__visual { padding-bottom: 40px; }
}

/* ==========================================================================
   FUNZIONALITÀ
   ========================================================================== */
.features { padding: clamp(90px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); --tick-bg: var(--ink); --tick-fg: var(--lime); }
.features__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 100px); }
.feat { padding: clamp(36px, 8vh, 80px) 0; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
html.gsap .feat { opacity: .28; transition: opacity .5s; }
html.gsap .feat.is-active { opacity: 1; }
.feat__num { display: inline-flex; align-items: center; gap: .8em; font-weight: 800; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.feat__ic { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 14px; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.feat__ic .ic { stroke-width: 2.4; }
.feat h3 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -0.045em; line-height: .98; margin-bottom: 1.1rem; }
.feat > p:not(.feat__num) { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 48ch; margin-bottom: 1.4rem; color: color-mix(in srgb, currentColor 75%, transparent); }
.feat__mobile { display: none; }

.features__sticky { position: sticky; top: 13vh; height: 74vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.screen-frame {
  --acc: #FFC93C;
  width: 100%; padding: 10px; border-radius: 26px; background: var(--ink);
  border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--acc);
  transition: box-shadow .6s var(--ease);
}
.screen-frame__bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 12px; color: var(--white); }
.screen-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3B45; }
.screen-frame__bar i:first-child { background: var(--coral); }
.screen-frame__bar i:nth-child(2) { background: var(--sun); }
.screen-frame__bar i:nth-child(3) { background: var(--lime); }
.screen-frame__bar span { margin-left: auto; font-weight: 800; font-size: .85rem; padding: .25em .8em; border-radius: 999px; background: var(--acc); color: var(--ink); transition: background-color .6s; }
.screen-frame__body { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #F4F3F9; color: var(--ink); container-type: inline-size; }
.features__dots { display: flex; gap: 8px; justify-content: center; }
.features__dots i { width: 10px; height: 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 25%, transparent); transition: width .5s var(--ease), background-color .5s; }
.features__dots i.is-active { width: 34px; background: currentColor; }

.screen { position: absolute; inset: 0; padding: 5cqw; font-size: 2.5cqw; opacity: 0; transform: translateY(5%) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.screen.is-active { opacity: 1; transform: none; }
html:not(.gsap) .screen[data-screen="0"] { opacity: 1; transform: none; }

.toast {
  position: absolute; left: 50%; bottom: 5cqw; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  padding: .7em 1.1em; border-radius: 999px; font-weight: 800; font-size: .95em;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(160%); opacity: 0; transition: transform .6s var(--ease) .5s, opacity .4s .5s;
}
.toast .ic { stroke-width: 3; }
.toast--ok { background: var(--lime); }
.toast--warn { background: var(--coral); color: var(--ink); }
.screen.is-active .toast { transform: none; opacity: 1; }

.sc-cassa { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3cqw; height: 78%; }
.sc-cassa__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.sc-cassa__grid i { display: flex; flex-direction: column; justify-content: space-between; padding: .8em; border-radius: .8em; background: var(--c); font-style: normal; font-weight: 800; box-shadow: inset 0 -.25em 0 rgba(0, 0, 0, .08); }
.sc-cassa__grid i b { font-weight: 700; opacity: .65; }
.sc-cassa__side { display: flex; flex-direction: column; padding: 1em; border-radius: 1em; background: var(--white); box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .06); }
.sc-cassa__side p { display: flex; justify-content: space-between; padding: .45em 0; border-bottom: 1px dashed #DDDAE8; font-weight: 600; }
.sc-disc { color: var(--violet); }
.sc-tot { margin-top: auto; border: 0 !important; font-weight: 800 !important; font-size: 1.15em; }
.sc-btn { margin-top: .5em; padding: .8em; border-radius: .8em; background: var(--violet); color: var(--white); text-align: center; font-weight: 800; }

.sc-stock { background: var(--white); border-radius: 1em; padding: .6em 1.2em; box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .06); }
.sc-stock__row { display: grid; grid-template-columns: 1.6fr .6fr 1.2fr; align-items: center; gap: 1em; padding: .9em 0; border-bottom: 1px solid #EEECF4; font-weight: 600; }
.sc-stock__row:last-child { border: 0; }
.sc-stock__row--head { font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8C89A0; }
.sc-stock__row b { font-variant-numeric: tabular-nums; }
.sc-stock__row i { height: .7em; border-radius: 999px; background: linear-gradient(90deg, var(--violet) calc(var(--v) * 100%), #EEECF4 0); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.screen.is-active .sc-stock__row i { transform: none; }
.sc-stock__row.is-low { color: var(--danger); }
.sc-stock__row.is-low i { background: linear-gradient(90deg, var(--coral) calc(var(--v) * 100%), #EEECF4 0); }
.sc-stock__row.is-mid i { background: linear-gradient(90deg, var(--sun) calc(var(--v) * 100%), #EEECF4 0); }

.sc-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2cqw; margin-bottom: 3cqw; }
.sc-kpis div { padding: .9em 1em; border-radius: 1em; background: var(--white); box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .06); }
.sc-kpis div:first-child { background: var(--ink); color: var(--white); }
.sc-kpis small { display: block; font-weight: 700; opacity: .65; font-size: .85em; }
.sc-kpis b { display: block; font-size: 1.65em; letter-spacing: -0.03em; line-height: 1.2; }
.sc-kpis em { font-style: normal; font-weight: 800; font-size: .8em; color: var(--lime); }
.sc-chart { display: flex; align-items: flex-end; gap: 1.6cqw; height: 30cqw; padding: 1em 1em 2em; border-radius: 1em; background: var(--white); box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .06); }
.sc-chart i { position: relative; flex: 1; height: calc(var(--v) * 100%); border-radius: .4em .4em .15em .15em; background: var(--violet); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); }
.sc-chart i:nth-child(5), .sc-chart i:nth-child(11) { background: var(--pink); }
.sc-chart i span { position: absolute; left: 50%; bottom: -1.7em; translate: -50% 0; font-style: normal; font-size: .75em; font-weight: 700; color: #8C89A0; }
.screen.is-active .sc-chart i { transform: none; }
.sc-chart i:nth-child(2) { transition-delay: .04s; } .sc-chart i:nth-child(3) { transition-delay: .08s; }
.sc-chart i:nth-child(4) { transition-delay: .12s; } .sc-chart i:nth-child(5) { transition-delay: .16s; }
.sc-chart i:nth-child(6) { transition-delay: .2s; }  .sc-chart i:nth-child(7) { transition-delay: .24s; }
.sc-chart i:nth-child(8) { transition-delay: .28s; } .sc-chart i:nth-child(9) { transition-delay: .32s; }
.sc-chart i:nth-child(10) { transition-delay: .36s; } .sc-chart i:nth-child(11) { transition-delay: .4s; }
.sc-chart i:nth-child(12) { transition-delay: .44s; }
.sc-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 3cqw; }
.sc-top p { display: flex; align-items: center; gap: .5em; padding: .6em .8em; border-radius: .8em; background: var(--white); font-weight: 700; font-size: .9em; }
.sc-top p span { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--sun); font-weight: 800; }
.sc-top p b { margin-left: auto; color: #8C89A0; }

.sc-inv { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3cqw; align-items: center; height: 100%; }
.sc-inv__doc { padding: 1.4em; border-radius: 1em; background: var(--white); box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .08); }
.sc-inv__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1em; padding-bottom: .8em; border-bottom: 3px solid var(--ink); }
.sc-inv__head b { font-size: 1.3em; letter-spacing: -0.03em; }
.sc-inv__head span { color: #8C89A0; font-weight: 700; }
.sc-inv__doc p { display: flex; justify-content: space-between; padding: .45em 0; font-weight: 600; }
.sc-inv__client { display: block !important; margin-bottom: .6em; font-weight: 800 !important; }
.sc-inv__client small { display: block; font-weight: 700; color: #8C89A0; font-size: .8em; }
.sc-inv__tot { margin-top: .5em; padding-top: .8em !important; border-top: 1px dashed #CFCBDA; font-weight: 800 !important; font-size: 1.15em; }
.sc-steps { display: grid; gap: 1.2em; }
.sc-steps li { display: flex; align-items: center; gap: .7em; font-weight: 800; opacity: .3; transform: translateX(10%); transition: opacity .5s, transform .6s var(--ease); }
.sc-steps li i { width: 1.8em; height: 1.8em; border-radius: 50%; border: 2px solid var(--ink); background: var(--sky); flex: none; position: relative; }
.sc-steps li i::after { content: ""; position: absolute; inset: 0; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 60% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 60% no-repeat; }
.screen.is-active .sc-steps li { opacity: 1; transform: none; }
.screen.is-active .sc-steps li:nth-child(2) { transition-delay: .35s; }
.screen.is-active .sc-steps li:nth-child(3) { transition-delay: .7s; }

@media (max-width: 899px) {
  .features__grid { grid-template-columns: 1fr; }
  .features__sticky { display: none; }
  .feat { min-height: 0; padding: 28px 0 44px; }
  html.gsap .feat { opacity: 1; }
  .feat__mobile { display: block; margin-top: 28px; }
  .screen-frame--mini { padding: 8px; box-shadow: 8px 8px 0 var(--accent); }
  .screen-frame--mini .screen { position: absolute; }
}

/* ==========================================================================
   COME SI PARTE
   ========================================================================== */
.steps { padding: clamp(90px, 12vw, 170px) 0; }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(40px, 5vw, 64px); }
.step { position: relative; padding-top: 1.4rem; border-top: 3px solid currentColor; }
.step__n {
  display: block; font-size: clamp(5rem, 11vw, 10rem); font-weight: 800; line-height: .85; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px currentColor;
  margin-bottom: 1.4rem; transition: color .6s var(--ease);
}
.step__n { color: transparent; }
.step.is-in .step__n, .step:hover .step__n { color: var(--violet); -webkit-text-stroke-color: var(--violet); }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .6rem; }
.step p { font-size: 1.08rem; max-width: 34ch; font-weight: 600; color: color-mix(in srgb, currentColor 78%, transparent); }

@media (max-width: 760px) {
  .steps__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PREZZI
   ========================================================================== */
.pricing { padding: clamp(90px, 12vw, 170px) 0; }
.billing {
  position: relative; display: inline-flex; margin-top: 2rem; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.billing button { position: relative; z-index: 1; padding: .7em 1.3em; border-radius: 999px; font-weight: 800; transition: color .3s; }
.billing button em { font-style: normal; font-size: .75em; margin-left: .4em; padding: .2em .6em; border-radius: 999px; background: var(--lime); color: var(--ink); }
.billing button.is-on { color: var(--ink); }
.billing__knob { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: 0; border-radius: 999px; background: var(--white); transition: left .45s var(--ease), width .45s var(--ease); }
html:not(.js) .billing { display: none; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: .3rem;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); color: var(--white);
}
.plan .btn { margin: 1.2rem 0 1.6rem; }
.plan .ticks { font-size: .98rem; }
.plan .ticks li strong { font-weight: 800; }
.plan--featured { background: var(--violet); border: 2px solid var(--lime); box-shadow: 0 40px 90px -30px rgba(100, 87, 255, .8), 10px 10px 0 var(--lime); --tick-bg: var(--lime); --tick-fg: var(--ink); }
.plan__badge { position: absolute; top: -16px; left: 50%; translate: -50% 0; padding: .4em 1em; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .85rem; white-space: nowrap; border: 2px solid var(--ink); }
.plan__name { font-size: 1.6rem; }
.plan__for { color: rgba(255, 255, 255, .7); font-weight: 600; }
.plan__price { display: flex; align-items: flex-start; gap: .1em; margin-top: 1rem; line-height: 1; }
.plan__price b { font-size: clamp(3.6rem, 6vw, 5.2rem); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; display: inline-block; }
.plan__cur { font-size: 1.6rem; font-weight: 800; margin-top: .3em; }
.plan__per { align-self: flex-end; margin-bottom: .5em; font-weight: 700; color: rgba(255, 255, 255, .7); }
.plan__note { font-size: .85rem; color: rgba(255, 255, 255, .6); font-weight: 600; min-height: 2.6em; }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* Confronto versioni */
.compare { margin-top: clamp(80px, 10vw, 140px); }
.compare__head { text-align: center; margin-bottom: 2rem; }
.compare__head p { margin-top: .8rem; color: rgba(255, 255, 255, .7); font-size: 1.1rem; }
.compare__scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .12); background: var(--ink-2); -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; min-width: 620px; border-collapse: collapse; color: var(--white); }
.compare__table thead th { padding: 22px 16px; font-size: 1.15rem; font-weight: 800; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.compare__table thead th.is-pro { color: var(--lime); }
.compare__table tbody th[scope="row"] { text-align: left; font-weight: 600; padding: 14px 20px; color: rgba(255, 255, 255, .86); width: 46%; }
.compare__table td { text-align: center; padding: 14px 12px; font-weight: 700; font-size: .95rem; }
.compare__table td:nth-child(3), .compare__table thead th:nth-child(3) { background: rgba(100, 87, 255, .14); }
.compare__table tbody tr:not(.compare__group) { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.compare__group th { text-align: left; padding: 28px 20px 10px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.compare__group th .ic { display: inline-block; vertical-align: -.3em; margin-right: .5em; }
.compare__table td.y::before, .compare__table td.n::before { content: ""; display: inline-block; vertical-align: middle; width: 1.5em; height: 1.5em; border-radius: 50%; }
.compare__table td.y::before {
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0F13' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.compare__table td.n::before { width: 1em; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.compare__toggle { display: flex; margin: 24px auto 0; color: var(--white); }
.compare__toggle .ic { transition: transform .4s var(--ease); }
.compare.is-open .compare__toggle .ic { transform: rotate(45deg); }
html:not(.js) .compare__toggle { display: none; }
html.js .compare:not(.is-open) .compare__more { display: none; }

/* ==========================================================================
   PARTNER
   ========================================================================== */
.partner { padding: clamp(90px, 12vw, 170px) 0; }
.partner__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.partner__lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 56ch; font-weight: 600; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.4rem; }
.perk { display: flex; flex-direction: column; gap: .35em; padding: 1.2em; border-radius: var(--radius); background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.perk b { font-size: 1.15rem; letter-spacing: -0.02em; }
.perk > span:last-child { font-size: .95rem; color: #4A4858; font-weight: 600; }
.perk__ic { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 14px; background: var(--violet); color: var(--white); margin-bottom: .4em; }
.partner__who-label { margin-top: 2.2rem; margin-bottom: .8rem; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.partner__who { display: flex; flex-wrap: wrap; gap: 8px; }
.partner__who li { padding: .45em .95em; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: .92rem; }

@media (max-width: 960px) {
  .partner__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MODULI
   ========================================================================== */
.form-card { position: relative; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.cta .form-card { box-shadow: 12px 12px 0 var(--lime); }
.form { display: grid; gap: 14px; }
.form__title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.03em; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 14px;
  border: 2px solid #E2E0EA; background: #FAF9FC; color: var(--ink);
  font-weight: 600; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6em;
  background: #FAF9FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0F13' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1em center / 1.1em no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #A09DB0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBC7DB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background-color: var(--white); box-shadow: 0 0 0 4px rgba(100, 87, 255, .18); }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .86rem; font-weight: 600; color: #4A4858; }
.check input { width: 1.25em; height: 1.25em; margin-top: .1em; accent-color: var(--violet); flex: none; }
.check a { color: var(--violet); font-weight: 800; }
.hp { position: absolute !important; left: -9999px; }
.form__msg { min-height: 1.3em; font-size: .9rem; font-weight: 700; color: var(--danger); text-align: center; }
.form__msg.is-info { color: #6B6880; }
.form__done { text-align: center; padding: 30px 10px; }
.form__done[hidden] { display: none; }
.form__done-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); margin-bottom: 20px; }
.form__done-ic .ic { width: 40px; height: 40px; stroke-width: 3; }
.form__done h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.form__done p { color: #4A4858; font-weight: 600; max-width: 36ch; margin-inline: auto; }
.confetti { position: absolute; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 5; }

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: clamp(90px, 12vw, 170px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.faq .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
.qa { border-bottom: 2px solid currentColor; }
.qa:first-child { border-top: 2px solid currentColor; }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 1.3em 0; cursor: pointer; list-style: none;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--ink); transition: transform .45s var(--ease), background-color .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42%; height: 3px; border-radius: 3px; background: var(--white); translate: -50% -50%; }
.qa summary i::after { rotate: 90deg; }
.qa summary:hover i { background: var(--violet); }
.qa[open] summary i { transform: rotate(135deg); background: var(--violet); }
.qa__a p { padding-bottom: 1.5em; max-width: 62ch; font-size: 1.06rem; font-weight: 600; color: color-mix(in srgb, currentColor 76%, transparent); }
.qa__a a { color: var(--violet); font-weight: 800; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; }
}

/* ==========================================================================
   CTA FINALE
   ========================================================================== */
.cta { padding: clamp(90px, 12vw, 170px) 0; overflow: clip; isolation: isolate; }
.cta__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__shapes .shape--star { left: auto; right: 4%; top: 8%; fill: var(--lime); width: clamp(60px, 10vw, 160px); }
.cta__shapes .shape--ring { right: auto; left: -3%; top: auto; bottom: 8%; border-color: var(--pink); width: clamp(100px, 14vw, 220px); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.cta__title { font-size: clamp(3rem, 8.4vw, 8rem); line-height: .9; letter-spacing: -0.055em; }
.cta__lead { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 44ch; font-weight: 600; color: color-mix(in srgb, currentColor 85%, transparent); }
.cta__list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.8rem; font-weight: 800; }
.cta__list li { display: inline-flex; align-items: center; gap: .5em; }
.cta__list .ic { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 50%; background: var(--lime); color: var(--ink); stroke-width: 3; }

@media (max-width: 960px) {
  .cta__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--ink); color: var(--white); padding: clamp(70px, 9vw, 110px) 0 32px; overflow: clip; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand p { margin-top: 1rem; max-width: 34ch; color: rgba(255, 255, 255, .65); font-weight: 600; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(32px, 6vw, 90px); }
.footer__cols h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 1rem; }
.footer__cols a { display: block; padding: .3em 0; text-decoration: none; font-weight: 700; color: rgba(255, 255, 255, .85); transition: color .2s; }
.footer__cols a:hover { color: var(--lime); }
.footer__giant {
  margin: clamp(50px, 8vw, 100px) 0 clamp(20px, 3vw, 40px);
  font-size: min(21vw, 310px); font-weight: 800; line-height: .82; letter-spacing: -0.065em;
  text-align: center; white-space: nowrap; user-select: none;
}
.footer__giant b { color: var(--violet); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: rgba(255, 255, 255, .6); font-weight: 600; }
.footer__bottom a { color: inherit; }

@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA fissa su mobile ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.4em; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5), 4px 4px 0 var(--ink);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (max-width: 760px) {
  html.js .sticky-cta { display: flex; }
}

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

/* ==========================================================================
   PAGINE INTERNE E FASCE DI RICHIAMO
   ========================================================================== */
.page-first { padding-top: clamp(130px, 17vh, 190px); }
.partner--teaser .partner__grid { align-items: center; }
.partner--teaser .partner__copy .btn { margin-top: 2rem; }
.partner--teaser .perks { margin-top: 0; }
.cta--teaser { text-align: center; }
.cta__center { display: flex; flex-direction: column; align-items: center; }
.cta__center .eyebrow { justify-content: center; }
.cta__center .cta__lead { margin-inline: auto; margin-bottom: 2.2rem; }
.cta__center .cta__list { justify-content: center; }

.marquee__sep { font-style: normal; opacity: .45; font-weight: 500; }
.cta__center { align-items: flex-start; text-align: left; }
.cta--teaser { text-align: left; }
.cta__center .eyebrow { justify-content: flex-start; }
.cta__center .cta__lead { margin-inline: 0; }
