/* MOOVOT — sito www.moovot.app (v2, luminoso e in movimento)
   Colori e caratteri dall'app (Color.kt, Manrope). Manrope è ospitato qui:
   nessun dato del visitatore va a Google. Tema chiaro di partenza; lo scuro
   solo con il tasto in alto (data-theme="dark"). */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(../fonts/manrope-regular.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(../fonts/manrope-medium.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(../fonts/manrope-semibold.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(../fonts/manrope-bold.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(../fonts/manrope-extrabold.woff2) format("woff2"); }

:root {
  --bg: #FCFAF6;
  --surface: #FFFFFF;
  --variant: #F3EEE6;
  --ink: #1D1B16;
  --ink-soft: #6C6659;
  --sage: #3E6B4F;
  --sage-mid: #6E9C7D;
  --sage-light: #A9CDB4;
  --sage-container: #DCEDE1;
  --on-sage-container: #17301F;
  --amber: #C08A3E;
  --amber-light: #EBC58C;
  --amber-container: #F7E7CE;
  --lilac: #7A6BA8;
  --lilac-light: #C9BFEA;
  --lilac-container: #ECE8F8;
  --sky: #4F6480;
  --sky-container: #E2E8F1;
  --outline: #DCD4C6;
  --on-sage: #FFFFFF;
  --protein: #6B5CA5;
  --carbs: #B07A2E;
  --fat: #A65E4E;
  --fiber: #4E7A50;
  --blob-a: #CFE6D6;
  --blob-b: #F6DDB4;
  --blob-c: #DCD5F3;
  --blob-d: #FFE9DA;
  --glass: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(29, 27, 22, .04), 0 4px 14px rgba(29, 27, 22, .05);
  --shadow: 0 2px 6px rgba(29, 27, 22, .04), 0 18px 40px -12px rgba(29, 27, 22, .14);
  --shadow-lg: 0 30px 80px -20px rgba(29, 27, 22, .28), 0 10px 24px -10px rgba(29, 27, 22, .12);
  --radius: 24px;
  --wrap: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15130F; --surface: #1F1C17; --variant: #2A261F; --ink: #EFEAE1; --ink-soft: #A9A293;
  --sage: #8FB89D; --sage-mid: #78A386; --sage-light: #5E8A6C; --sage-container: #2C4534; --on-sage-container: #DCEDE1;
  --amber: #D9A45B; --amber-light: #A97B3E; --amber-container: #4A3A22; --lilac: #A99BD6; --lilac-light: #6D5FA0; --lilac-container: #2F2A42;
  --sky: #9DB1CC; --sky-container: #27303D; --outline: #3E392F; --on-sage: #15130F;
  --protein: #9D8FD6; --carbs: #D9A45B; --fat: #CF8C7C; --fiber: #8FB89D;
  --blob-a: #1F3326; --blob-b: #3A2C17; --blob-c: #29243C; --blob-d: #33241B; --glass: rgba(31, 28, 23, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
section, .marquee-wrap, .site-footer { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 { line-height: 1.04; margin: 0; letter-spacing: -.035em; font-weight: 800; }
h1 { font-size: clamp(42px, 5.4vw, 84px); }
h2 { font-size: clamp(34px, 5vw, 62px); }
h3 { font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
.num { font-feature-settings: "tnum"; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; }
.overline { font-size: 12.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--sage); display: inline-flex; align-items: center; gap: 10px; }
.overline::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.lead { font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.grad {
  background: linear-gradient(100deg, var(--sage) 10%, var(--sage-mid) 45%, var(--amber) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 8px; }

/* ---------- Sfondo vivo: macchie di colore che si muovono con lo scorrimento ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; will-change: transform; }
.aurora .a1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: var(--blob-a); }
.aurora .a2 { width: 40vw; height: 40vw; right: -10vw; top: 8vh; background: var(--blob-b); }
.aurora .a3 { width: 46vw; height: 46vw; left: 30vw; top: 70vh; background: var(--blob-c); opacity: .6; }
.aurora .a4 { width: 30vw; height: 30vw; right: 6vw; top: 120vh; background: var(--blob-d); opacity: .7; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60;
  background: linear-gradient(90deg, var(--sage), var(--amber), var(--lilac)); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 999px; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, color .25s; position: relative; isolation: isolate;
}
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sage); color: var(--on-sage); box-shadow: 0 10px 24px -8px rgba(62, 107, 79, .55); }
.btn-primary:hover { color: var(--on-sage); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(62, 107, 79, .6); }
.btn-outline { background: var(--glass); color: var(--ink); border: 1.5px solid var(--outline); backdrop-filter: blur(8px); }
.btn-outline:hover { color: var(--ink); border-color: var(--sage); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--sage); padding: 0 12px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 13px;
  font-size: 13px; font-weight: 700; background: var(--glass); color: var(--ink-soft); border: 1px solid var(--outline); backdrop-filter: blur(8px);
}
.chip svg { width: 16px; height: 16px; }
.chip-sage { background: var(--sage-container); color: var(--on-sage-container); border-color: transparent; }
.chip-amber { background: var(--amber-container); color: var(--ink); border-color: transparent; }
.chip-workout { background: var(--lilac-container); color: var(--lilac); border-color: transparent; }

/* ---------- Testata ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 color-mix(in srgb, var(--outline) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover svg { transform: rotate(-12deg) scale(1.06); }
.nav { display: flex; gap: 2px; margin-left: 14px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 13px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-soft); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .3s; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
#tema:hover svg { transform: rotate(20deg); transition: transform .4s; }
.menu-btn { display: none; }
.login-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.login-btn svg { width: 18px; height: 18px; }
.login-btn:hover svg { transform: none; }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 76px; left: 12px; right: 12px; flex-direction: column; background: var(--surface); padding: 10px; border-radius: 20px; box-shadow: var(--shadow-lg); margin: 0; }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 12px 14px; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .login-btn span { display: none; }
  .login-btn { width: 44px; padding: 0; }
  .brand { font-size: 19px; }
}

/* ---------- Sezioni: nessuna fascia di colore, solo spazio e profondità ---------- */
section { padding: 120px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; display: grid; gap: 18px; position: relative; z-index: 2; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
@media (max-width: 760px) { section { padding: 80px 0; } .section-head { margin-bottom: 36px; } }

/* Elementi fluttuanti e parallasse (posizioni gestite da site.js con data-speed) */
.float-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fl { position: absolute; will-change: transform; }
.bob { animation: bob 7s ease-in-out infinite; }
.bob.slow { animation-duration: 10s; }
.bob.d1 { animation-delay: -2s; } .bob.d2 { animation-delay: -4s; } .bob.d3 { animation-delay: -6s; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: 2deg; } }
.disc { width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid var(--surface); }
.disc img { width: 100%; height: 100%; object-fit: cover; }
.disc.lg { width: 170px; } .disc.sm { width: 84px; } .disc.xs { width: 60px; border-width: 3px; }
.ring { border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--sage) 35%, transparent); }
.dot-c { border-radius: 50%; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); border-radius: 18px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--ink);
}
.pill .pi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.pill .pi svg { width: 18px; height: 18px; }
.pill small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 12px; line-height: 1.2; }
.pill b { display: block; line-height: 1.2; }
@media (max-width: 760px) { .hide-sm { display: none !important; } .disc { width: 84px; } .disc.lg { width: 110px; } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 120px; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.fade-up.d1 { animation-delay: .35s; } .fade-up.d2 { animation-delay: .5s; } .fade-up.d3 { animation-delay: .65s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stage { position: relative; height: 680px; perspective: 1400px; }
.hero-stage .phone-live { position: absolute; left: 50%; top: 10px; width: 310px; margin-left: -155px; transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero-stage .glow { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sage-light) 70%, transparent), transparent 65%); filter: blur(10px); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-stage { height: 640px; } }
@media (max-width: 520px) { .hero-stage { height: 560px; } .hero-stage .phone-live { width: 256px; margin-left: -128px; } }

/* ---------- Telefono ---------- */
.phone {
  position: relative; aspect-ratio: 393 / 852; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2A2722, #0F0E0B);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #4A453C, inset 0 0 0 4px #15130F; flex: none;
}
.phone > img, .phone > .screen-stack, .phone > .live { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #FAF7F2; }
.phone > img { object-fit: cover; object-position: top; }
.phone::before { content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #2A2722; }
.phone .shine { position: absolute; inset: 11px; border-radius: 36px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%); }

/* Schermata "viva" del telefono nell'apertura */
.live { position: relative; color: #1D1B16; font-family: Manrope, sans-serif; padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.live .lv-top { display: flex; justify-content: space-between; align-items: flex-end; }
.live .lv-ov { font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6C6659; }
.live .lv-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.live .lv-clock { font-size: 12px; font-weight: 800; background: #F0EAE0; border-radius: 999px; padding: 4px 9px; }
.live .lv-card { background: #FFFDF9; border-radius: 18px; padding: 13px; box-shadow: 0 1px 3px rgba(29, 27, 22, .06); }
.live .lv-row { display: flex; gap: 12px; margin-top: 6px; }
.live .lv-row > div { flex: 1; }
.live .lv-big { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.live .lv-lab { font-size: 10px; color: #6C6659; }
.live .lv-next { font-size: 30px; font-weight: 800; color: #3E6B4F; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.live .lv-next small { font-size: 14px; }
.live .lv-why { font-size: 11px; color: #6C6659; line-height: 1.45; min-height: 48px; margin-top: 6px; transition: opacity .35s; }
.live .lv-macros { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.live .lv-macros span { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #F0EAE0; }
.live .lv-tl { display: grid; gap: 6px; }
.live .lv-ev { display: flex; gap: 9px; align-items: center; background: #FFFDF9; border-radius: 13px; padding: 8px 10px; opacity: .35; transform: translateX(0); transition: opacity .5s, transform .5s, box-shadow .5s; }
.live .lv-ev.on { opacity: 1; }
.live .lv-ev.now { box-shadow: 0 0 0 2px #3E6B4F inset; transform: translateX(4px); }
.live .lv-ev i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.live .lv-ev b { font-size: 11.5px; display: block; }
.live .lv-ev span { font-size: 10px; color: #6C6659; }
.live .lv-ev em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 11px; }
.live .lv-bar { height: 7px; border-radius: 999px; background: #F0EAE0; overflow: hidden; margin-top: 8px; }
.live .lv-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3E6B4F, #6E9C7D); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.live .lv-toast { position: absolute; left: 12px; right: 12px; top: 12px; background: #1D1B16; color: #FAF7F2; border-radius: 16px; padding: 10px 12px; font-size: 11.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; transform: translateY(-140%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); z-index: 3; }
.live .lv-toast.show { transform: none; }
.live .lv-toast i { width: 22px; height: 22px; border-radius: 7px; background: #8FB89D; display: grid; place-items: center; color: #15130F; font-style: normal; font-weight: 800; }
.flash { animation: flash .9s ease; }
@keyframes flash { 0% { color: inherit; } 30% { color: #C08A3E; transform: scale(1.04); } 100% { color: inherit; transform: none; } }

/* ---------- Striscia che scorre (ricette) ---------- */
.marquee { overflow: hidden; padding: 30px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.food { width: 240px; flex: none; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.food:nth-child(odd) { transform: rotate(-1.6deg); } .food:nth-child(even) { transform: rotate(1.4deg) translateY(10px); }
.food:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.food img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.food div { padding: 11px 14px 13px; display: grid; gap: 2px; }
.food b { font-size: 14px; line-height: 1.3; }
.food span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.marquee-wrap { position: relative; margin-top: 10px; }

/* ---------- Racconto a scorrimento ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; z-index: 2; }
.story-steps { display: grid; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: .25; transition: opacity .5s; padding: 40px 0; }
.story-step.active { opacity: 1; }
.story-step .num-big { font-size: 15px; font-weight: 800; color: var(--amber); letter-spacing: 1px; }
.story-step h3 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.05; }
.story-step p { color: var(--ink-soft); font-size: 18px; max-width: 480px; }
.story-step ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.story-step li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 16px; }
.story-step li svg { width: 20px; height: 20px; color: var(--sage); margin-top: 3px; }
.story-step .inline-phone { display: none; }
.story-visual { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; perspective: 1400px; }
.story-visual .phone { width: min(300px, 33vh); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.screen-stack { position: relative; }
.screen-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.screen-stack img.on { opacity: 1; transform: none; }
.story-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--outline); transition: background .3s, transform .3s; }
.story-dots i.on { background: var(--sage); transform: scale(1.5); }
.story-badge { position: absolute; z-index: 3; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 30px 0 50px; }
  .story-step .inline-phone { display: block; width: 62%; max-width: 260px; margin: 16px auto 0; }
}

/* ---------- Prova interattiva ---------- */
.playground { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); border-radius: 36px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pg-controls { padding: 44px; display: grid; gap: 26px; align-content: start; }
.pg-out { padding: 44px; background: linear-gradient(160deg, color-mix(in srgb, var(--sage-container) 80%, transparent), color-mix(in srgb, var(--amber-container) 70%, transparent)); display: grid; gap: 16px; align-content: start; position: relative; }
.pg-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 15px; }
.pg-label output { font-size: 28px; letter-spacing: -.02em; color: var(--sage); }
input[type="range"].big { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--sage) var(--p, 30%), var(--variant) var(--p, 30%)); outline: none; margin-top: 12px; cursor: pointer; }
input[type="range"].big::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sage); box-shadow: var(--shadow); cursor: grab; transition: transform .15s; }
input[type="range"].big::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"].big::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sage); box-shadow: var(--shadow); cursor: grab; }
.toggles { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--outline); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; }
.toggle svg { width: 18px; height: 18px; }
.toggle[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); color: #fff; }
.toggle.t-sage[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }
.pg-kcal { font-size: clamp(48px, 6vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--sage); }
.pg-kcal small { font-size: 24px; letter-spacing: -.01em; }
.pg-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pg-macros div { background: var(--surface); border-radius: 16px; padding: 12px; display: grid; gap: 2px; box-shadow: var(--shadow-sm); }
.pg-macros span { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.pg-macros b { font-size: 17px; }
.pg-why { font-size: 16px; color: var(--ink); background: var(--surface); border-radius: 18px; padding: 14px 16px; border-left: 4px solid var(--amber); min-height: 74px; }
.pg-meter { display: grid; gap: 6px; }
.pg-meter .bar { height: 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; display: flex; }
.pg-meter .bar i { display: block; height: 100%; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pg-meter .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.pg-meter .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 900px) { .playground { grid-template-columns: 1fr; } .pg-controls, .pg-out { padding: 28px 22px; } .pg-macros { grid-template-columns: 1fr 1fr; } }

/* ---------- Composizioni (testo + scena) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; z-index: 2; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 20px; }
.checks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.checks li .ck { width: 26px; height: 26px; border-radius: 9px; background: var(--sage-container); color: var(--on-sage-container); display: grid; place-items: center; margin-top: 1px; }
.checks li .ck svg { width: 15px; height: 15px; }
.scene { position: relative; min-height: 600px; perspective: 1400px; }
.scene .photo { position: absolute; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.scene .photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.scene .phone { position: absolute; width: 270px; }
.tilt { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
}
@media (max-width: 560px) { .scene { min-height: 470px; } .scene .phone { width: 200px; } }

/* ---------- Carte del diario ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; z-index: 2; }
.tile { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent); border-radius: 28px; padding: 28px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile .ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.tile .ico svg { width: 24px; height: 24px; }
.tile p { color: var(--ink-soft); font-size: 15.5px; }
.tile.w2 { grid-column: span 2; } .tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile .demo-line { margin-top: 6px; background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; box-shadow: var(--shadow-sm); display: grid; gap: 4px; }
.tile .demo-line .typed { font-weight: 700; min-height: 1.5em; }
.tile .demo-line .typed::after { content: "|"; color: var(--sage); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.tile .demo-line .parsed { display: flex; gap: 6px; flex-wrap: wrap; }
.tile .demo-line .parsed span { font-size: 12.5px; font-weight: 700; background: var(--sage-container); color: var(--on-sage-container); padding: 3px 9px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .4s; }
.tile .demo-line .parsed span.in { opacity: 1; transform: none; }
.tile.has-photo { padding-right: 180px; }
@media (max-width: 620px) { .tile.has-photo { padding-right: 28px; padding-bottom: 150px; } }
.tile .tile-photo { position: absolute; right: -30px; bottom: -30px; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; opacity: .95; box-shadow: var(--shadow); border: 5px solid var(--surface); }
.tile .tile-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .tile.w2, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.wide-sm { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile.wide-sm { grid-column: span 1; } }

/* ---------- Esercizi ---------- */
.ex-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 2; }
.ex-tile { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.ex-tile:nth-child(even) { margin-top: 40px; }
.ex-tile:hover { transform: translateY(-8px) rotate(-1deg); }
.ex-anim { position: relative; aspect-ratio: 800 / 603; background: #fff; overflow: hidden; }
.ex-anim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-anim img.end { animation: xfade 3.2s ease-in-out infinite; }
@keyframes xfade { 0%, 30% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
.ex-tile .ex-name { padding: 13px 16px 16px; font-weight: 800; font-size: 15px; line-height: 1.3; }
.ex-tile .ex-name small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
@media (max-width: 860px) { .ex-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Referto che si compila ---------- */
.report { background: var(--surface); border-radius: 26px; padding: 20px; box-shadow: var(--shadow-lg); width: 320px; display: grid; gap: 4px; }
.report .rp-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.report .rp-h b { font-size: 16px; }
.rp-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); font-size: 14px; opacity: 0; transform: translateX(-10px); transition: all .5s cubic-bezier(.2, .8, .2, 1); }
.rp-row.in { opacity: 1; transform: none; }
.rp-row .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-container); color: var(--on-sage-container); font-size: 12px; font-weight: 800; }
.rp-row .st svg { width: 13px; height: 13px; }
.rp-row.q .st { background: var(--amber-container); color: var(--carbs); }
.rp-row b { font-feature-settings: "tnum"; }
.rp-row.q span { color: var(--carbs); font-weight: 700; }

/* ---------- Privacy ---------- */
.orbit { position: relative; height: 560px; }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--surface), var(--sage-container)); box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--sage); }
.orbit .core svg { width: 84px; height: 84px; }
.orbit .core::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--sage) 30%, transparent); animation: spin 40s linear infinite; }
.orbit .core::before { content: ""; position: absolute; inset: -110px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--amber) 22%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.pledges { display: grid; gap: 14px; }
.pledge { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .3s; }
.pledge:hover { transform: translateX(6px); }
.pledge .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-container); color: var(--on-sage-container); }
.pledge .ico svg { width: 22px; height: 22px; }
.pledge b { display: block; font-size: 16.5px; }
.pledge span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; display: block; }
@media (max-width: 980px) { .orbit { height: 420px; } }
@media (max-width: 560px) { .orbit { height: 360px; } .orbit .core { width: 150px; height: 150px; margin: -75px 0 0 -75px; } .orbit .core svg { width: 56px; height: 56px; } }

/* ---------- Professionisti ---------- */
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; position: relative; z-index: 2; }
.pro { background: var(--surface); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); display: grid; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.pro:hover { transform: translateY(-6px); }
.pro .pro-img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.pro .pro-img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.pro .pro-img .pill { position: absolute; left: 18px; bottom: 18px; }
.pro-body { padding: 28px 30px 32px; display: grid; gap: 12px; }
.pro-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--ink-soft); font-size: 15.5px; }
.pro-body li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.pro-body li svg { width: 18px; height: 18px; color: var(--sage); margin-top: 3px; }
@media (max-width: 860px) { .pro-grid { grid-template-columns: 1fr; } }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 2; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; position: relative; z-index: 2; }
.faq-grid .section-head { position: sticky; top: 120px; margin: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent); border-radius: 22px; padding: 0 24px; transition: box-shadow .3s, background .3s; }
.faq details[open] { background: var(--surface); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sage-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317301F' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } .faq-grid .section-head { position: static; } }

/* ---------- Chiusura ---------- */
.finale { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 22px; padding: 90px 30px; border-radius: 44px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, var(--blob-a), transparent 55%), radial-gradient(120% 120% at 100% 100%, var(--blob-b), transparent 55%), radial-gradient(80% 80% at 80% 10%, var(--blob-c), transparent 60%), var(--surface);
  box-shadow: var(--shadow-lg); }
.finale h2 { max-width: 820px; }
.finale .lead { max-width: 620px; }
.finale .float-layer { z-index: -1; }

/* ---------- Piede ---------- */
.site-footer { padding: 70px 0 40px; margin-top: 60px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--outline), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-grid a:hover { color: var(--sage); }
.footer-bottom { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 13.5px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine interne ---------- */
.page-hero { padding: 60px 0 40px; position: relative; }
.page-hero .wrap > .ph-inner { display: grid; gap: 20px; max-width: 880px; position: relative; z-index: 2; }
.prose { max-width: 780px; position: relative; z-index: 2; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent); border-radius: 32px; padding: 40px 44px; box-shadow: var(--shadow-sm); }
.prose h2 { font-size: 26px; margin: 36px 0 12px; letter-spacing: -.02em; }
.prose h2:first-of-type { margin-top: 24px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
@media (max-width: 620px) { .prose { padding: 26px 22px; } }
.notice { background: var(--amber-container); color: var(--ink); border-radius: 18px; padding: 14px 18px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 2px; }

/* ---------- Accedi ---------- */
.login-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 30px 0 60px; position: relative; z-index: 2; }
.login-side { position: relative; height: 620px; }
.login-side .photo { position: absolute; inset: 0 40px 60px 0; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-lg); }
.login-side .photo img { width: 100%; height: 100%; object-fit: cover; }
.login-box { width: 100%; max-width: 470px; display: grid; gap: 20px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent); border-radius: 32px; padding: 34px; box-shadow: var(--shadow-lg); justify-self: center; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--outline); background: var(--surface); color: var(--ink); min-height: 52px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.role-pick { display: grid; gap: 10px; }
.role-opt { display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; text-align: left; width: 100%; background: var(--surface); border: 1.5px solid transparent; border-radius: 20px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .3s; }
.role-opt:hover { border-color: var(--sage); transform: translateX(6px); box-shadow: var(--shadow); }
.role-opt .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.role-opt .ico svg { width: 24px; height: 24px; }
.role-opt b { display: block; font-size: 16px; }
.role-opt span { color: var(--ink-soft); font-size: 14px; line-height: 1.4; display: block; }
.role-opt .go { color: var(--sage); transition: transform .3s; }
.role-opt:hover .go { transform: translateX(4px); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--outline); }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-side { display: none; } }

/* ---------- Apparizioni ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-50px); } .reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span, .fade-up { transform: none; opacity: 1; }
  .marquee-track { animation: none; }
}
