/* NDS · ndsweb.it */
@font-face {
  font-family: "Manrope";
  src: url("/font/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --carta: #F5F4F0;
  --bianco: #FFFFFF;
  --inchiostro: #111413;
  --grigio: #5E6461;
  --linea: rgba(17, 20, 19, .1);
  --verde: #0E8A5C;
  --verde-vivo: #19B57B;
  --verde-tenue: #E2F1E9;
  --raggio: 22px;
  --gutter: clamp(16px, 5vw, 72px);
  --facile: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font: 400 17px/1.55 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: .98; }
h2 { font-size: clamp(40px, 6.6vw, 96px); }
h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--verde); color: #fff; }

.verde { color: var(--verde); }
.punto {
  display: inline-block; width: .2em; height: .2em; margin-left: .06em;
  border-radius: 50%; background: var(--verde); vertical-align: baseline;
}
.occhiello {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grigio);
}
.occhiello i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.occhiello.chiaro { color: rgba(255, 255, 255, .6); }

.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--inchiostro); color: #fff; font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--inchiostro);
  transition: transform .35s var(--facile), background .25s, color .25s, box-shadow .35s;
}
.bottone:hover { transform: translateY(-2px); background: var(--verde); border-color: var(--verde); box-shadow: 0 12px 30px -10px rgba(14, 138, 92, .6); }
.bottone.vuoto { background: transparent; color: var(--inchiostro); }
.bottone.vuoto:hover { background: var(--inchiostro); color: #fff; border-color: var(--inchiostro); box-shadow: none; }
.bottone.piccolo { height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- barra in alto ---------- */
.barra {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px; padding: 0 12px 0 24px; border-radius: 999px;
  background: rgba(245, 244, 240, .72); border: 1px solid rgba(17, 20, 19, .06);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: transform .5s var(--facile);
}
.barra.nascosta { transform: translateY(-120px); }
.logo svg { display: block; height: 26px; width: 68px; color: var(--inchiostro); transition: color .3s; }

/* voci del menu con la pillola che scivola sotto quella attiva */
.menu { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; background: rgba(17, 20, 19, .05); }
.menu a {
  position: relative; z-index: 1; padding: 9px 17px; border-radius: 99px;
  font-size: 14.5px; font-weight: 600; color: var(--grigio); white-space: nowrap; transition: color .25s;
}
.menu a:hover, .menu a.attivo { color: var(--inchiostro); }
.menu-pillola {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 99px;
  background: #fff; box-shadow: 0 4px 14px -4px rgba(17, 20, 19, .2); opacity: 0;
  transition: transform .45s var(--facile), width .45s var(--facile), opacity .3s;
}
.barra-azioni { display: flex; align-items: center; gap: 10px; }
.cta-barra i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--verde-vivo); }
.cta-barra i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--verde-vivo); animation: pulsa 1.8s infinite; }

/* sopra le sezioni scure la barra diventa scura */
.barra.scura { background: rgba(17, 20, 19, .72); border-color: rgba(255, 255, 255, .08); }
.barra.scura .logo svg { color: #fff; }
.barra.scura .menu { background: rgba(255, 255, 255, .07); }
.barra.scura .menu a { color: rgba(255, 255, 255, .6); }
.barra.scura .menu a:hover, .barra.scura .menu a.attivo { color: #fff; }
.barra.scura .menu-pillola { background: rgba(255, 255, 255, .14); box-shadow: none; }
.barra.scura .cta-barra { background: #fff; color: var(--inchiostro); border-color: #fff; }
.barra { transition: transform .5s var(--facile), background .35s, border-color .35s; }

.hamburger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--inchiostro); cursor: pointer; }
.hamburger span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--facile), top .4s var(--facile); }
.hamburger span:first-child { top: 18px; } .hamburger span:last-child { top: 25px; }
.menu-aperto .hamburger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-aperto .hamburger span:last-child { top: 21px; transform: rotate(-45deg); }
.barra.scura .hamburger { background: #fff; } .barra.scura .hamburger span { background: var(--inchiostro); }

.tendina {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px 24px 32px; background: var(--inchiostro); color: #fff;
  clip-path: circle(0 at calc(100% - 46px) 42px); transition: clip-path .6s var(--facile);
}
.tendina.aperta { clip-path: circle(150% at calc(100% - 46px) 42px); }
.tendina nav { display: grid; gap: 4px; }
.tendina nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0; font-size: 40px; font-weight: 800; letter-spacing: -.045em;
  opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s var(--facile), color .2s;
}
.tendina nav a small { font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--verde-vivo); }
.tendina nav a:hover { color: var(--verde-vivo); }
.tendina.aperta nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--k) * .05s); }
.tendina-piede { display: grid; gap: 18px; opacity: 0; transition: opacity .4s .35s; }
.tendina.aperta .tendina-piede { opacity: 1; }
.tendina-piede .bottone { background: var(--verde); border-color: var(--verde); height: 58px; }
.tendina-piede p { font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .6); }
.menu-aperto .barra { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-aperto .barra .logo svg { color: #fff; }
.menu-aperto .barra .cta-barra { opacity: 0; pointer-events: none; }
.menu-aperto .barra .hamburger { background: #fff; } .menu-aperto .barra .hamburger span { background: var(--inchiostro); }
.menu-aperto { overflow: hidden; }

/* ---------- apertura ---------- */
.hero { position: relative; height: 240vh; }
.hero-palco {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  --a: clamp(0, calc(var(--p, 0) * 1.75), 1);
}
.hero-testo {
  position: absolute; inset: 0; padding: clamp(110px, 17vh, 170px) var(--gutter) 0; text-align: center;
  opacity: clamp(0, calc(1 - var(--p, 0) * 3), 1);
  transform: translateY(calc(var(--p, 0) * -28vh)) scale(calc(1 - var(--p, 0) * .12));
}
.hero h1 { font-size: clamp(42px, 7.6vw, 124px); letter-spacing: -.055em; }
.hero .sotto { max-width: 560px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--grigio); }
.azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.azioni .bottone span { transition: transform .35s var(--facile); }
.azioni .bottone:hover span { transform: translateX(4px); }
.nota-cta { margin-top: 18px; font-size: 14px; color: var(--grigio); text-align: center; text-wrap: balance; }
.nota-cta span { display: inline-block; }
.nota-cta .punto { width: 7px; height: 7px; margin: 0 8px 1px 0; vertical-align: middle; }

.hero-scena { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 20%; pointer-events: none; }
.browser {
  --larg: min(1080px, 88vw, calc((100vh - 150px) * 1.5));
  position: absolute; left: 50%; top: 54%; width: var(--larg);
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translateY(calc((1 - var(--a)) * var(--spinta, 46vh)))
    rotateX(calc((1 - var(--a)) * 42deg + var(--my, 0) * -3deg))
    rotateY(calc(var(--mx, 0) * 5deg))
    rotateZ(calc((1 - var(--a)) * -4deg))
    scale(calc(.74 + var(--a) * .26));
  will-change: transform;
}
.browser-schermo {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 50px 100px -30px rgba(17, 20, 19, .45), 0 0 0 1px rgba(17, 20, 19, .08);
}
.browser-barra { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #EFEEEA; }
.browser-barra i { width: 11px; height: 11px; border-radius: 50%; background: #D5D3CD; }
.browser-barra i:first-child { background: #FF6159; } .browser-barra i:nth-child(2) { background: #FFBD2E; } .browser-barra i:nth-child(3) { background: #28C941; }
.browser-barra span {
  margin: 0 auto; transform: translateX(-24px); padding: 4px 18px; border-radius: 8px;
  background: #fff; font-size: 12px; color: var(--grigio);
}
.etichetta {
  position: absolute; padding: 12px 18px; border-radius: 14px; white-space: nowrap;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -14px rgba(17, 20, 19, .35); font-size: 15px; font-weight: 700;
  opacity: clamp(0, calc(var(--a) * 2.4 - 1.4), 1);
}
.e1 { top: 16%; left: -4%; transform: translateZ(120px); }
.e2 { top: 42%; right: -4%; transform: translateZ(170px); }
.e3 { bottom: -4%; right: 14%; transform: translateZ(90px); }

.scorri {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--linea); border-radius: 14px; opacity: calc(1 - var(--p, 0) * 6);
}
.scorri span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--verde); animation: scorri 1.8s infinite; }
@keyframes scorri { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- i mini-siti di esempio (scalano con il contenitore) ---------- */
.sito { container-type: inline-size; display: flex; flex-direction: column; aspect-ratio: 16 / 10; background: #fff; }
.s-nav { display: flex; align-items: center; gap: 3.4cqw; height: 8cqw; padding: 0 4cqw; font-size: 1.45cqw; flex: none; }
.s-nav b { margin-right: auto; font-size: 2cqw; letter-spacing: -.02em; }
.s-hero { position: relative; flex: 1; background-size: cover; background-position: center; }
.s-velo { position: absolute; inset: 0; }
.s-titolo { position: absolute; left: 5cqw; bottom: 7cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6cqw; }
.s-titolo small { font-size: 1.35cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.s-titolo strong { font-size: 6cqw; line-height: .98; letter-spacing: -.04em; }
.s-titolo em { font-style: normal; font-size: 1.5cqw; font-weight: 700; padding: 1.2cqw 2.4cqw; border-radius: 99px; }

.s-forno .s-nav { background: #F7F1E8; color: #3A2A1C; font-family: Georgia, serif; }
.s-forno .s-velo { background: linear-gradient(90deg, rgba(28, 16, 6, .78), rgba(28, 16, 6, .1) 70%); }
.s-forno .s-titolo { color: #fff; } .s-forno strong { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
.s-forno em { background: #E9B44C; color: #2B1D0E; }

.s-osteria .s-nav { background: #2B0F12; color: #F3E6D3; font-family: Georgia, serif; }
.s-osteria .s-velo { background: linear-gradient(0deg, rgba(43, 15, 18, .85), rgba(43, 15, 18, 0) 70%); }
.s-osteria .s-titolo { color: #F3E6D3; } .s-osteria strong { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.s-osteria em { background: #F3E6D3; color: #2B0F12; }

.s-officina .s-nav { background: #0B0F17; color: #fff; letter-spacing: .12em; font-weight: 700; }
.s-officina .s-nav b { letter-spacing: .2em; }
.s-officina .s-velo { background: linear-gradient(90deg, rgba(8, 12, 20, .9), rgba(8, 12, 20, .2) 75%); }
.s-officina .s-titolo { color: #fff; } .s-officina strong { text-transform: uppercase; font-weight: 800; }
.s-officina small { color: #7FA4FF; } .s-officina em { background: #2F6BFF; color: #fff; border-radius: .6cqw; }

.s-studio .s-nav { background: #fff; color: #12221D; border-bottom: 1px solid #EEE; }
.s-studio .s-velo { background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7) 42%, rgba(255, 255, 255, 0) 72%); }
.s-studio .s-titolo { color: #12221D; } .s-studio small { color: #4F7A6B; } .s-studio strong { font-weight: 600; }
.s-studio em { background: #12221D; color: #fff; border-radius: .6cqw; }

.s-fiori .s-nav { background: #FBEFF1; color: #7A3B4A; } .s-fiori .s-nav b { font-size: 2.4cqw; font-weight: 800; }
.s-fiori .s-velo { background: linear-gradient(90deg, rgba(122, 59, 74, .7), rgba(122, 59, 74, 0) 65%); }
.s-fiori .s-titolo { color: #fff; } .s-fiori em { background: #fff; color: #7A3B4A; }

/* ---------- vetrina 3D ---------- */
.vetrina { position: relative; height: 460vh; background: var(--inchiostro); color: #fff; }
.vetrina-palco {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 4vh, 44px);
  padding: 90px var(--gutter) 30px;
}
.vetrina-testa { text-align: center; }
.vetrina h2 { font-size: clamp(36px, 5.4vw, 80px); }
.anello-scena {
  --w: min(600px, 74vw, calc((100vh - 360px) * 1.6));
  --r: calc(var(--w) * .688 + 30px);
  width: var(--w); aspect-ratio: 16 / 10; perspective: 1900px; perspective-origin: 50% 30%;
}
.anello {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateY(calc(var(--p, 0) * -288deg));
  will-change: transform;
}
.carta-sito {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  transform: rotateY(calc(var(--i) * 72deg)) translateZ(var(--r));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.carta-sito .sito { height: 100%; aspect-ratio: auto; }
.carta-sito::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--buio, 0); pointer-events: none; }
.didascalia-vetrina { display: flex; gap: 14px; align-items: baseline; font-size: 20px; }
.didascalia-vetrina span { color: rgba(255, 255, 255, .5); font-size: 15px; }
.nota-vetrina { font-size: 13px; color: rgba(255, 255, 255, .38); }

/* ---------- la scelta: telefono 3D ---------- */
/* fasi dentro la sezione: f0 entra il telefono, f1 la domanda, f2 i risultati,
   f3 il sito NDS sale in cima, f4 il tocco, f5 la notifica esce verso di te */
.scelta { position: relative; height: 440vh; }
.scelta-palco {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  max-width: 1320px; margin: 0 auto; padding: 80px var(--gutter) 0;
  --f0: clamp(0, calc(var(--p, 0) / .12), 1);
  --f1: clamp(0, calc((var(--p, 0) - .12) / .16), 1);
  --f2: clamp(0, calc((var(--p, 0) - .30) / .12), 1);
  --f3: clamp(0, calc((var(--p, 0) - .44) / .16), 1);
  --f4: clamp(0, calc((var(--p, 0) - .62) / .08), 1);
  --f5: clamp(0, calc((var(--p, 0) - .70) / .14), 1);
}
.scelta h2 { font-size: clamp(38px, 5vw, 76px); }
.fasi { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 6px; counter-reset: fase; }
.fasi li {
  position: relative; padding: 14px 0 14px 28px; font-size: 18px; color: var(--grigio);
  opacity: .32; transition: opacity .4s, transform .5s var(--facile); transform: translateX(0);
}
.fasi li::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; margin-top: 0; border-radius: 2px; background: var(--verde); transition: height .4s var(--facile), margin .4s var(--facile); }
.fasi li b { color: var(--inchiostro); margin-right: 4px; }
.fasi li.attiva { opacity: 1; transform: translateX(6px); }
.fasi li.attiva::before { height: 70%; margin-top: -9%; }

.scelta-scena { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; perspective: 1400px; }
.telefono {
  position: relative; width: 300px; height: 620px; transform-style: preserve-3d;
  transform:
    translateY(calc((1 - var(--f0)) * 34vh))
    rotateX(calc(6deg + (1 - var(--f0)) * 22deg))
    rotateY(calc(-24deg + (1 - var(--f0)) * -36deg + var(--f3) * 12deg))
    rotateZ(calc((1 - var(--f3)) * 2deg))
    scale(var(--scala-tel, 1));
  will-change: transform;
}
.tel-corpo {
  position: absolute; inset: 0; transform-style: preserve-3d;
  padding: 16px 16px 20px; border-radius: 48px; background: #FBFBF9;
  border: 10px solid var(--inchiostro);
  box-shadow: 0 60px 90px -40px rgba(17, 20, 19, .55), -24px 30px 60px -30px rgba(17, 20, 19, .3);
  font-size: 13px;
}
.tel-isola { position: absolute; top: 8px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 99px; background: var(--inchiostro); }
.tel-stato { display: flex; justify-content: space-between; padding: 2px 14px 0; font-size: 11px; font-weight: 700; }
.tel-stato span:last-child { letter-spacing: -.1em; font-size: 9px; }
.tel-testa { margin: 22px 0 18px; text-align: center; font-weight: 700; font-size: 14px; }
.tel-testa i { font-style: normal; color: var(--verde); }
.bolla-utente {
  margin-left: auto; width: fit-content; max-width: 86%; min-height: 40px; padding: 10px 14px;
  border-radius: 18px 18px 4px 18px; background: var(--inchiostro); color: #fff; font-weight: 600; line-height: 1.4;
  opacity: clamp(0, calc(var(--f1) * 8), 1);
}
.cursore { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--verde-vivo); animation: lampeggia 1s steps(1) infinite; }
.scelta[data-scritta="fatta"] .cursore { display: none; }
@keyframes lampeggia { 50% { opacity: 0; } }
.risposta { margin-top: 18px; transform-style: preserve-3d; opacity: var(--f2); transform: translateY(calc((1 - var(--f2)) * 16px)); }
.risposta-intro { margin-bottom: 12px; color: var(--grigio); font-weight: 600; }
.risultati { position: relative; height: 206px; transform-style: preserve-3d; }
.risultato {
  position: absolute; left: 0; right: 0; height: 62px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border-radius: 16px; background: #fff; border: 1.5px solid var(--linea);
  transform-style: preserve-3d;
}
.risultato b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.risultato small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--grigio); }
.r-logo { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #E8E7E2; color: #8A8F8C; font-size: 12px; font-weight: 800; }
.r-logo.nds-r { background: #E9B44C; color: #2B1D0E; }
.r1 { top: 0;
  opacity: min(clamp(0, calc(var(--f2) * 3), 1), calc(1 - var(--f3) * .6));
  transform: translateY(calc(var(--f3) * 72px)) scale(calc(1 - var(--f3) * .07)); }
.r2 { top: 72px;
  opacity: min(clamp(0, calc(var(--f2) * 3 - 1), 1), calc(1 - var(--f3) * .6));
  transform: translateY(calc(var(--f3) * 72px)) scale(calc(1 - var(--f3) * .07)); }
.r3 { top: 144px;
  opacity: clamp(0, calc(var(--f2) * 3 - 2), 1);
  border-color: color-mix(in srgb, var(--verde) calc(var(--f3) * 100%), var(--linea));
  transform:
    translateY(calc(var(--f3) * -144px))
    translateZ(calc(var(--f3) * 80px))
    scale(calc(1 + var(--f3) * .06 - var(--f4) * (1 - var(--f4)) * .16));
}
.r3::before {
  content: ""; position: absolute; inset: -2px; border-radius: 17px; z-index: -1;
  box-shadow: 0 18px 40px -10px rgba(14, 138, 92, .55), 0 0 0 4px rgba(14, 138, 92, .12);
  opacity: var(--f3);
}
.r3 small { color: var(--verde); font-weight: 700; }
.gira { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #CFCFCA; border-top-color: #8A8F8C; animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.consigliato {
  position: absolute; top: -10px; right: 10px; padding: 3px 9px; border-radius: 99px;
  background: var(--verde); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em;
  opacity: var(--f3); transform: translateZ(20px) scale(calc(.6 + var(--f3) * .4));
}
.tocco {
  position: absolute; left: 62%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(14, 138, 92, .35); border: 2px solid rgba(14, 138, 92, .7);
  opacity: calc(var(--f4) * (1 - var(--f4)) * 4); transform: scale(calc(.3 + var(--f4) * 1.5));
}
.notifica {
  position: absolute; top: 34px; left: 50%; width: 290px; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(17, 20, 19, .45), 0 0 0 1px rgba(17, 20, 19, .06);
  font-size: 13px; opacity: clamp(0, calc(var(--f5) * 3), 1);
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--f5)) * 30px + var(--f5) * var(--notifica-y, -20px)))
    translateX(calc(var(--f5) * var(--notifica-x, 90px)))
    translateZ(calc(var(--f5) * var(--notifica-z, 200px)))
    rotateY(calc(var(--f5) * 20deg));
}
.notifica b { display: block; } .notifica small { color: var(--grigio); font-size: 12px; }
.notifica em { margin-left: auto; align-self: flex-start; font-style: normal; font-size: 11px; color: var(--grigio); }
.nota-scelta { margin-top: 28px; font-size: 13px; color: var(--grigio); opacity: .7; }

/* ---------- sezioni normali ---------- */
.sezione { padding: clamp(100px, 16vh, 180px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.sezione.stretta { max-width: 920px; }
.sezione > h2 { margin-bottom: clamp(48px, 8vh, 80px); }

[data-entra] { --e: clamp(0, calc(var(--p, 0) * 1.5 - var(--ritardo, 0) * .12), 1); }

/* ---------- servizi: griglia bento con animazioni ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tessera {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
  padding: 36px; border-radius: 28px; background: var(--bianco); border: 1px solid var(--linea);
  opacity: var(--e);
  transform: perspective(1600px) translateY(calc((1 - var(--e)) * 80px))
             rotateX(calc((1 - var(--e)) * 34deg + var(--ty, 0deg) * .45)) rotateY(calc(var(--tx, 0deg) * .45));
  transform-origin: 50% 100%; transition: transform .45s var(--facile), box-shadow .45s;
}
.tessera:hover { box-shadow: 0 50px 80px -50px rgba(17, 20, 19, .5); }
.tessera::after {   /* riflesso che segue il mouse */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .16), transparent 60%);
}
.tessera:hover::after { opacity: 1; }
.t-testo h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.045em; line-height: 1.02; }
.t-testo p { margin-top: 12px; max-width: 420px; color: var(--grigio); }
.t-numero { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--verde); }

.t-misura {
  grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 20px;
  background: var(--inchiostro); color: #fff; border-color: var(--inchiostro); padding: 44px;
}
.t-misura .t-testo p { color: rgba(255, 255, 255, .6); }
.t-misura .t-numero { color: var(--verde-vivo); }
.dispositivi { position: relative; height: clamp(260px, 27vw, 400px); perspective: 1200px; }
.disp-gruppo { position: absolute; inset: 0; transform-style: preserve-3d; animation: fluttua 9s ease-in-out infinite alternate; }
@keyframes fluttua { from { transform: rotateY(-20deg) rotateX(14deg); } to { transform: rotateY(10deg) rotateX(6deg); } }
.disp { position: absolute; overflow: hidden; background: #222826; border: 6px solid #2C3230; box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .7); }
.d-pc  { left: 2%;  top: 6%;  width: 74%; aspect-ratio: 16 / 10; border-radius: 12px; transform: translateZ(0); }
.d-tab { right: 2%; top: 20%; width: 31%; aspect-ratio: 3 / 4;   border-radius: 16px; transform: translateZ(70px); }
.d-tel { left: 46%; top: 38%; width: 17%; aspect-ratio: 9 / 19;  border-radius: 18px; border-width: 5px; transform: translateZ(130px); }
.schermi { position: absolute; inset: 0; }
.schermi i { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: schermo 9s infinite; }
.schermi i:nth-child(2) { animation-delay: 3s; } .schermi i:nth-child(3) { animation-delay: 6s; }
.d-tab .schermi i { animation-delay: 1s; } .d-tab .schermi i:nth-child(2) { animation-delay: 4s; } .d-tab .schermi i:nth-child(3) { animation-delay: 7s; }
.d-tel .schermi i { animation-delay: 2s; } .d-tel .schermi i:nth-child(2) { animation-delay: 5s; } .d-tel .schermi i:nth-child(3) { animation-delay: 8s; }
@keyframes schermo { 0% { opacity: 0; transform: scale(1.08); } 6%, 33% { opacity: 1; } 40%, 100% { opacity: 0; transform: scale(1); } }

.t-google { background: var(--verde); color: #fff; border-color: var(--verde); }
.t-google .t-testo p { color: rgba(255, 255, 255, .75); } .t-google .t-numero { color: #BDF5DC; }
.barra-ricerca {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 99px;
  background: #fff; color: var(--inchiostro); font-weight: 600; font-size: 15px;
}
.barra-ricerca svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #8A8F8C; stroke-width: 2.4; stroke-linecap: round; }
.scrive { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--verde); animation: scrivi 7s steps(18) infinite; }
@keyframes scrivi { 0% { width: 0; } 28%, 92% { width: 17.5ch; } 100% { width: 0; } }
.classifica { position: relative; height: 138px; margin-top: 14px; }
.voce {
  position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .13); font-size: 14px; font-weight: 700;
  animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.5, 0, .2, 1);
}
.voce b { width: 18px; opacity: .7; }
.voce i { flex: 1; max-width: 55%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.v-altro:nth-child(1) { animation-name: giu1; } .v-altro:nth-child(2) { animation-name: giu2; }
.v-tuo { animation-name: sali; background: #fff; color: var(--verde); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .35); }
.v-tuo b { opacity: 1; }
.v-tuo em { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--verde-tenue); font-style: normal; font-size: 11px; font-weight: 800; }
@keyframes giu1 { 0%, 26% { opacity: 0; transform: translateY(0); } 32%, 44% { opacity: 1; transform: translateY(0); } 60%, 92% { opacity: .55; transform: translateY(49px); } 100% { opacity: 0; transform: translateY(49px); } }
@keyframes giu2 { 0%, 28% { opacity: 0; transform: translateY(49px); } 34%, 44% { opacity: 1; transform: translateY(49px); } 60%, 92% { opacity: .55; transform: translateY(98px); } 100% { opacity: 0; transform: translateY(98px); } }
@keyframes sali { 0%, 30% { opacity: 0; transform: translateY(98px); } 36%, 44% { opacity: 1; transform: translateY(98px) scale(1); } 60% { transform: translateY(0) scale(1.04); } 66%, 92% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(0); } }

.pannello { padding: 18px; border-radius: 18px; background: var(--carta); border: 1px solid var(--linea); display: grid; gap: 10px; }
.stato-sito { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; padding-bottom: 6px; }
.stato-sito i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--verde-vivo); }
.stato-sito i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--verde-vivo); animation: pulsa 1.8s infinite; }
@keyframes pulsa { to { transform: scale(3); opacity: 0; } }
.lavoro { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; animation: lavoro 6s infinite both; }
.lavoro b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 12px; animation: spunta 6s infinite both; }
.l2, .l2 b { animation-delay: .7s; } .l3, .l3 b { animation-delay: 1.4s; }
@keyframes lavoro { 0% { opacity: 0; transform: translateX(-14px); } 10%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes spunta { 0%, 14% { transform: scale(0); } 22% { transform: scale(1.25); } 28%, 100% { transform: scale(1); } }

/* ---------- manifesto ---------- */
.manifesto { height: 260vh; position: relative; }
.manifesto-palco { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }
.frase { font-size: clamp(38px, 6.4vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; }
.frase span { opacity: clamp(.1, calc(var(--p, 0) * 1.35 * var(--n) - var(--j)), 1); transition: opacity .1s linear; }
.peso { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--grigio); opacity: clamp(0, calc(var(--p, 0) * 5 - 4), 1); }
.peso .punto { width: 10px; height: 10px; margin: 0; }

/* ---------- prezzi ---------- */
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.prezzi-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(48px, 8vh, 80px); }
.prezzi-testa h2 { margin: 0; }
.prezzi-sotto { max-width: 340px; font-size: 17px; color: var(--grigio); }
.pacchetti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pacchetto {
  position: relative; display: flex; flex-direction: column; padding: 32px 30px 28px; border-radius: 28px;
  background: var(--bianco); border: 1px solid var(--linea);
  opacity: var(--e);
  transform: perspective(1200px) translateY(calc((1 - var(--e)) * 70px + var(--alza, 0px)))
             rotateX(calc((1 - var(--e)) * 22deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg));
  transition: transform .5s var(--facile), box-shadow .5s;
}
.pacchetto:hover { box-shadow: 0 50px 80px -45px rgba(17, 20, 19, .45); }
.tessera::after, .pacchetto::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(14, 138, 92, .09), transparent 60%);
}
.tessera:hover::after, .pacchetto:hover::after { opacity: 1; }
.t-misura::after, .t-google::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .14), transparent 60%); }
.pacchetto h3 { font-size: 36px; letter-spacing: -.05em; }
.pacchetto .per { margin-top: 6px; color: var(--grigio); }
.prezzo { display: flex; align-items: baseline; gap: 4px; margin: 26px 0 6px; }
.prezzo b { font-size: 76px; font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.prezzo > span { font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.consegna { padding-bottom: 24px; border-bottom: 1px solid var(--linea); font-size: 14px; font-weight: 600; color: var(--verde); }
.pacchetto ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 13px; font-size: 15.5px; font-weight: 500; }
.pacchetto li { display: flex; gap: 11px; align-items: center; }
.pacchetto li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--verde-tenue); color: var(--verde); font-size: 11px; font-weight: 800;
}
.pacchetto .bottone { width: 100%; height: 56px; margin-top: auto; }
.badge {
  position: absolute; top: 30px; right: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
  background: rgba(25, 181, 123, .14); border: 1px solid rgba(25, 181, 123, .45); color: #7DE8BC; font-size: 12px; font-weight: 700;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--verde-vivo); }

.in-evidenza {
  --alza: -18px; color: #fff; border: 2px solid transparent;
  background:
    linear-gradient(160deg, #1B211F, var(--inchiostro) 55%) padding-box,
    conic-gradient(from var(--giro), rgba(255, 255, 255, .08) 0 55%, var(--verde-vivo) 70%, #C9F7E3 76%, rgba(255, 255, 255, .08) 88%) border-box;
  animation: giro 5s linear infinite;
  box-shadow: 0 50px 90px -40px rgba(14, 138, 92, .55);
}
@keyframes giro { to { --giro: 360deg; } }
.in-evidenza .per { color: rgba(255, 255, 255, .6); }
.in-evidenza .prezzo b { color: var(--verde-vivo); }
.in-evidenza .consegna { color: #7DE8BC; border-color: rgba(255, 255, 255, .12); }
.in-evidenza li::before { background: rgba(25, 181, 123, .18); color: var(--verde-vivo); }
.in-evidenza .bottone {
  border-color: var(--verde);
  background: linear-gradient(110deg, var(--verde) 40%, #3FD69C 50%, var(--verde) 60%) 0 0 / 250% 100%;
  animation: luce 3.5s ease-in-out infinite;
}
.in-evidenza .bottone:hover { color: #fff; }
@keyframes luce { 0%, 40% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.in-evidenza::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .07), transparent 60%); }

/* Canone Cura */
.cura {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  margin-top: 28px; padding: 44px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #062A1D, #0B5A3C 55%, var(--verde));
  opacity: var(--e); transform: perspective(1200px) translateY(calc((1 - var(--e)) * 50px)) rotateX(calc((1 - var(--e)) * 14deg));
}
.cura-alone {
  position: absolute; width: 520px; height: 520px; right: -120px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 227, 164, .45), transparent 65%); animation: alone 9s ease-in-out infinite alternate;
}
@keyframes alone { to { transform: translate(-260px, 160px) scale(1.2); } }
.cura-testo, .cura-azione { position: relative; }
.cura-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cura-chip i { font-style: normal; color: #7DE8BC; }
.cura h3 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.05em; }
.cura-prezzo { margin: 4px 0 16px; font-size: 26px; font-weight: 800; }
.cura-prezzo b { font-size: 64px; letter-spacing: -.06em; line-height: 1; color: #BDF5DC; }
.cura-prezzo span { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.cura-testo > p:not(.cura-chip):not(.cura-prezzo) { max-width: 640px; color: rgba(255, 255, 255, .78); }
.cura ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 600; }
.cura li::before { content: "✓"; margin-right: 7px; color: #7DE8BC; }
.cura-azione { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cura-azione small { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.bottone.chiaro { background: #fff; color: var(--inchiostro); border-color: #fff; height: 58px; padding: 0 30px; }
.bottone.chiaro:hover { background: var(--inchiostro); color: #fff; border-color: var(--inchiostro); }

/* ---------- passi ---------- */
.passi-sezione { position: relative; }
.passi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; z-index: 1; }
.numero {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 50%;
  background: var(--carta); border: 2px solid var(--inchiostro); font-weight: 800; font-size: 20px;
}
.passi p { margin-top: 10px; color: var(--grigio); max-width: 300px; }
.passi li .numero { position: relative; }
.passi li:not(:last-child) .numero::after {
  content: ""; position: absolute; left: calc(100% + 12px); top: 50%; height: 2px; width: calc((100vw - 2 * var(--gutter)) / 3 - 80px); max-width: 340px;
  background: var(--verde); transform-origin: 0 50%; transform: scaleX(var(--e, 0));
}

/* ---------- domande ---------- */
.domande { display: grid; gap: 12px; }
details {
  border-radius: 20px; background: var(--bianco); border: 1px solid var(--linea);
  transition: box-shadow .3s, border-color .3s;
}
details:hover { border-color: rgba(14, 138, 92, .35); }
details[open] { box-shadow: 0 24px 50px -30px rgba(17, 20, 19, .3); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px;
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; letter-spacing: -.02em; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2.4px solid var(--inchiostro); border-bottom: 2.4px solid var(--inchiostro);
  transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--facile);
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { margin: 0 26px; padding: 18px 0 24px; border-top: 1px solid var(--linea); color: var(--grigio); line-height: 1.65; }

/* ---------- contatti ---------- */
.contatti {
  position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center;
  padding: 140px var(--gutter); background: var(--inchiostro); color: #fff;
}
.contatti-griglia {
  position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr minmax(0, 560px); align-items: center; gap: clamp(40px, 6vw, 96px);
}
.contatti h2 { font-size: clamp(56px, 8.4vw, 140px); letter-spacing: -.06em; line-height: .9; }
.contatti h2 .punto { background: var(--verde-vivo); }
.contatti-testo > p { margin-top: 28px; font-size: 19px; color: rgba(255, 255, 255, .65); max-width: 460px; }
.canali { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* modulo contatti: vetro scuro sopra la sfera */
.modulo {
  padding: clamp(24px, 3vw, 36px); border-radius: 28px;
  background: rgba(17, 20, 19, .62); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7);
}
.modulo h3 { margin-bottom: 22px; font-size: 24px; letter-spacing: -.035em; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.campo.largo { grid-column: 1 / -1; }
.campo > span, .campo legend { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .7); padding: 0; }
.campo input, .campo textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 15px; resize: vertical;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.campo input::placeholder, .campo textarea::placeholder { color: rgba(255, 255, 255, .32); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--verde-vivo); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(25, 181, 123, .18); }
.campo.errore input, .campo.errore textarea { border-color: #FF6B6B; }
.scelte { display: flex; flex-wrap: wrap; gap: 8px; }
.scelte legend { margin-bottom: 7px; }
.scelte label { cursor: pointer; }
.scelte input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scelte span {
  display: inline-block; padding: 9px 15px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); transition: all .2s;
}
.scelte input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; }
.scelte input:focus-visible + span { box-shadow: 0 0 0 3px rgba(25, 181, 123, .4); }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consenso { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 20px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .62); cursor: pointer; }
.consenso input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--verde-vivo); }
.consenso a { color: #7DE8BC; text-decoration: underline; }
.consenso.errore span { color: #FF9B9B; }
.invia { width: 100%; height: 58px; background: var(--verde); border-color: var(--verde); font-size: 16px; }
.invia:hover { background: #fff; color: var(--inchiostro); border-color: #fff; }
.invia[disabled] { opacity: .6; pointer-events: none; }
.esito { margin-top: 14px; font-size: 14px; line-height: 1.5; min-height: 1px; }
.esito.ok { padding: 14px 16px; border-radius: 12px; background: rgba(25, 181, 123, .15); color: #BDF5DC; }
.esito.no { color: #FF9B9B; }
.esito a { color: #fff; text-decoration: underline; }
.canale {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 26px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 18px; font-weight: 700;
  transition: background .25s, transform .35s var(--facile), border-color .25s;
}
.canale small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.canale:hover { background: var(--verde); border-color: var(--verde); transform: translateY(-3px); }
.canale:hover small { color: rgba(255, 255, 255, .8); }
.sfera {
  position: absolute; right: -8vw; top: 50%; width: min(62vw, 820px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at calc(30% + var(--e, 0) * 10%) 26%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 36% 32%, #3FE3A4 0%, #0E8A5C 42%, #05402A 78%, #021C13 100%);
  box-shadow: 0 0 160px 10px rgba(14, 138, 92, .35);
  transform: translateY(calc(-50% + (1 - var(--e, 0)) * 40vh)) scale(calc(.55 + var(--e, 0) * .45));
  opacity: calc(.35 + var(--e, 0) * .65);
}

/* ---------- piede ---------- */
.piede { max-width: 1320px; margin: 0 auto; padding: 72px var(--gutter) 32px; font-size: 14px; color: var(--grigio); }
.piede a { transition: color .2s; } .piede a:hover { color: var(--verde); }
.piede-alto { display: grid; grid-template-columns: minmax(240px, 1.1fr) auto auto; align-items: center; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--linea); }
.piede-marchio .logo svg { height: 26px; width: 68px; }
.piede-marchio p { margin-top: 10px; max-width: 380px; line-height: 1.5; }
.piede-menu { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; font-weight: 500; color: var(--inchiostro); }
.torna-su {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--linea); background: var(--bianco); color: var(--inchiostro); font-weight: 500; white-space: nowrap;
}
.torna-su:hover { border-color: var(--verde); }
.piede-colonne { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--linea); }
.piede h4 { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--inchiostro); }
.piede-colonne p { line-height: 1.6; color: var(--inchiostro); opacity: .82; }
.piede-colonne p + p { margin-top: 4px; }
.piede-colonne .tenue { color: var(--grigio); opacity: .8; }
.verde-link { display: inline-flex; align-items: center; gap: 6px; color: var(--verde); font-weight: 600; }
.verde-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.piede-basso { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; }
.piede-basso .sep { margin: 0 8px; }

.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .35s var(--facile);
}
.whatsapp:hover { transform: scale(1.08) rotate(-6deg); }
.whatsapp.via { transform: scale(.4); opacity: 0; pointer-events: none; }
.whatsapp { transition: transform .35s var(--facile), opacity .3s; }
.whatsapp svg { width: 30px; height: 30px; }

@media (max-width: 1060px) and (min-width: 861px) { .menu a { padding: 9px 12px; font-size: 14px; } }
@media (max-width: 1180px) {
  .piede-alto { grid-template-columns: 1fr auto; }
  .piede-menu { grid-column: 1 / -1; grid-row: 2; }
}

/* schermi bassi (portatili): il telefono della scelta si rimpicciolisce per starci tutto */
@media (max-height: 860px) { .telefono { --scala-tel: .86; } }
@media (max-height: 740px) { .telefono { --scala-tel: .74; } }
@media (max-height: 600px) { .telefono { --scala-tel: .6; } .nota-scelta { display: none; } }

/* ---------- telefono ---------- */
@media (max-width: 860px) {
  .barra .menu { display: none; }
  .hamburger { display: block; }
  .barra { height: 58px; inset: 10px 12px auto; padding: 0 7px 0 20px; }
  .cta-barra { height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
  /* sul telefono il testo sfuma salendo e il browser si raddrizza al centro dello schermo */
  .hero { height: 190vh; }
  .hero-testo { padding-top: 104px; opacity: clamp(0, calc(1 - var(--p, 0) * 2.2), 1); transform: translateY(calc(var(--p, 0) * -22vh)); }
  .hero h1 { font-size: clamp(40px, 12.4vw, 64px); }
  .hero h1 .riga { display: block; }
  .hero h1 br { display: none; }
  .hero .sotto { margin-top: 20px; }
  .azioni { margin-top: 26px; }
  .azioni .bottone { width: 100%; max-width: 360px; }
  .hero-palco { --a: clamp(0, calc(var(--p, 0) * 1.4), 1); }
  .browser { --larg: 92vw; --spinta: 30vh; top: 52%; }
  .etichetta { font-size: 12px; padding: 8px 12px; }
  .e1 { left: -1%; top: -10%; } .e2 { right: 1%; top: auto; bottom: -9%; } .e3 { display: none; }
  /* sezioni animate più corte: sul telefono si scorre col pollice, non con la rotella */
  .vetrina { height: 300vh; }
  .anello-scena { --w: 80vw; perspective: 1100px; }
  .scelta { height: 320vh; }
  .manifesto { height: 190vh; }
  .scelta-palco { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding-top: 88px; align-items: start; }
  .scelta h2 { font-size: 34px; }
  .scelta .occhiello { margin-bottom: 12px; }
  .fasi { margin-top: 14px; }
  .fasi li { display: none; padding: 6px 0 6px 18px; font-size: 16px; }
  .fasi li.attiva { display: block; transform: none; }
  .scelta-scena { justify-content: flex-start; }
  .telefono { --scala-tel: .74; margin-top: -60px; --notifica-y: 60px; --notifica-x: 30px; --notifica-z: 140px; }
  .nota-scelta { margin-top: -60px; opacity: clamp(0, calc(var(--f0) * 10 - 9), .7); }
  .bento, .pacchetti, .passi { grid-template-columns: 1fr; }
  .t-misura { grid-column: auto; grid-template-columns: 1fr; padding: 28px 24px; }
  .tessera { padding: 28px 24px; }
  .in-evidenza { --alza: 0px; }
  .prezzi-testa { flex-direction: column; align-items: flex-start; }
  .cura { grid-template-columns: 1fr; padding: 32px 24px; }
  .cura-azione { align-items: stretch; }
  /* passi: numero a sinistra, testo a destra, linea verticale tra i numeri */
  .passi { gap: 34px; }
  .passi li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
  .passi li .numero { grid-row: span 2; margin: 0; }
  .passi li h3 { padding-top: 14px; }
  .passi li p { margin-top: 6px; }
  .passi li:not(:last-child)::before {   /* la linea deve arrivare fino al numero successivo */
    content: ""; position: absolute; left: 27px; top: 64px; bottom: -26px; width: 2px;
    background: var(--verde); transform-origin: 50% 0; transform: scaleY(var(--e, 0));
  }
  .passi li:not(:last-child) .numero::after { display: none; }
  .cura { flex-direction: column; align-items: flex-start; }
  .sfera { right: -40vw; width: 110vw; top: 22%; }
  .contatti { padding: 110px 16px 80px; }
  .contatti-griglia { grid-template-columns: 1fr; }
  .campi { grid-template-columns: 1fr; }
  .canale { flex: 1 1 100%; }
  summary { padding: 18px 20px; } details p { margin: 0 20px; }
  .piede-alto { grid-template-columns: 1fr; gap: 24px; }
  .piede-menu { grid-row: auto; gap: 12px 22px; }
  .torna-su { justify-self: start; }
  .piede-colonne { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .piede-basso { flex-direction: column; padding-bottom: 70px; }
  .whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .barra { padding-left: 16px; }
  .logo svg { width: 58px; height: 22px; }
  .cta-barra { padding: 0 12px; font-size: 13px; gap: 6px; }
}

/* chi preferisce meno movimento vede tutto subito, senza animazioni */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; } .hero-palco { position: relative; height: auto; padding-bottom: 60px; --a: 1; }
  .hero-testo { position: relative; opacity: 1; transform: none; }
  .hero-scena { position: relative; height: calc(min(1080px, 88vw) * .66); }
  .browser { transform: translate(-50%, -50%); top: 50%; }
  .etichetta { opacity: 1; }
  .scorri span { animation: none; }
  .disp-gruppo, .schermi i, .scrive, .voce, .lavoro, .lavoro b, .in-evidenza, .in-evidenza .bottone, .cura-alone { animation: none !important; }
  .schermi i:first-child, .voce, .lavoro { opacity: 1; } .scrive { width: auto; }
  .v-altro:nth-child(2) { transform: translateY(49px); } .v-tuo { transform: translateY(98px); }
}
