/* ============================================================
   ACCUMUNATION v2 - design system sperimentale (warm + human)
   Solo per index-v2.html e product-v2.html. Self-contained.
   Niente em-dash nei contenuti. Rispetta prefers-reduced-motion.
   ============================================================ */

:root {
  /* canvas caldo */
  --cream:    #FBF8F2;
  --cream-2:  #F4EDE1;
  --card:     #FFFFFF;
  --ink:      #221C15;
  --ink-2:    #5B5247;
  --ink-3:    #8C8273;
  --line:     #ECE4D6;
  --line-2:   #E1D7C5;

  /* accenti */
  --green:     #14A06A;
  --green-ink: #0B7A50;
  --green-bg:  #E3F5EC;
  /* accenti brand = verde + blu del logo (ex coral/amber: nomi tenuti, valori ora blu per coerenza) */
  --coral:     #2D7FF0;   /* brand blue */
  --coral-bg:  #E4EEFD;
  --amber:     #1E63C8;   /* deep blue */
  --amber-bg:  #D9E7FB;
  --blue:      #2D7FF0;
  --blue-ink:  #1B5FC0;
  --blue-bg:   #E4EEFD;

  /* ombre morbide, calde */
  --sh-sm: 0 1px 2px rgba(60,45,25,.06), 0 2px 6px rgba(60,45,25,.05);
  --sh-md: 0 6px 18px rgba(60,45,25,.08), 0 2px 6px rgba(60,45,25,.05);
  --sh-lg: 0 18px 50px rgba(60,45,25,.12), 0 6px 16px rgba(60,45,25,.07);
  --sh-green: 0 10px 28px rgba(20,160,106,.28);

  /* raggi */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--green-bg); color: var(--green-ink); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--green); }
.eyebrow.is-plain::before { display: none; }

.grad-word {
  background: linear-gradient(100deg, var(--green) 0%, #2bbd85 45%, var(--amber) 80%, var(--green) 120%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.5rem; border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--sh-green); position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20,160,106,.34); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-primary:hover::after { animation: sheen .85s var(--ease); }
@keyframes sheen { to { left: 150%; } }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green); color: var(--green-ink); box-shadow: var(--sh-md); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 28px rgba(45,127,240,.3); }
.btn-coral:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.06rem; }
.btn-sm { padding: .7rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- brand lockup (logo AN reale + wordmark) ---------- */
.brand-lock { display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark { height: 54px; width: auto; flex: 0 0 auto; transition: transform .25s var(--ease-bounce), height .3s; }
.brand-lock:hover .brand-mark { transform: scale(1.05); }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: -.025em; color: var(--ink); line-height: 1; transition: font-size .3s; }
.brand-word .tail { color: inherit; }
.foot .brand-mark { height: 48px; }
.foot .brand-word { font-size: 1.3rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.is-stuck {
  background: rgba(251,248,242,.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 11px 0;
}
.nav.is-stuck .brand-mark { height: 44px; }
.nav.is-stuck .brand-word { font-size: 1.25rem; }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  padding: .5rem .85rem; border-radius: var(--r-pill); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  transition: color .18s, background .18s;
}
.nav__link:hover { color: var(--ink); background: var(--cream-2); }
.nav__cta { margin-left: .35rem; }
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--card); position: relative;
}
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .28s var(--ease), opacity .2s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__sheet {
  position: fixed; inset: 72px 14px auto 14px; z-index: 99;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 14px; display: none; flex-direction: column; gap: 4px;
  transform: translateY(-12px) scale(.98); opacity: 0; transition: transform .26s var(--ease), opacity .2s;
}
body.menu-open .nav__sheet { display: flex; transform: none; opacity: 1; }
.nav__sheet a { padding: .9rem 1rem; border-radius: 14px; font-weight: 600; color: var(--ink); }
.nav__sheet a:hover { background: var(--cream-2); }
.nav__sheet .btn { margin-top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; z-index: 0; animation: float 12s ease-in-out infinite; }
.hero__blob.b1 { width: 340px; height: 340px; background: var(--green-bg); top: -60px; right: -40px; }
.hero__blob.b2 { width: 260px; height: 260px; background: var(--coral-bg); bottom: -40px; left: -60px; animation-delay: -4s; }
.hero__blob.b3 { width: 200px; height: 200px; background: var(--amber-bg); top: 120px; left: 40%; animation-delay: -8s; }
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 1.1rem 0; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-3); display: flex; align-items: center; gap: .5rem; }
.hero__note b { color: var(--ink-2); font-weight: 700; }

@keyframes float { 0%,100% { transform: translate(0,0); } 33% { transform: translate(14px,-18px); } 66% { transform: translate(-12px,10px); } }

/* ---------- sezioni ---------- */
.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--cream-2); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .9rem 0 .8rem; }
.section__head p { color: var(--ink-2); font-size: 1.08rem; }

/* ---------- price lab (centerpiece interattivo) ---------- */
.lab {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: clamp(1.4rem, 3vw, 2.6rem); position: relative; overflow: hidden;
}
.lab__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.6rem; }
.lab__price { display: flex; align-items: baseline; gap: .7rem; }
.lab__now { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 9vw, 5rem); line-height: .9; color: var(--ink); letter-spacing: -.03em; }
.lab__was { font-size: 1.4rem; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--coral); }
.lab__save { display: inline-flex; align-items: center; gap: .45rem; background: var(--green-bg); color: var(--green-ink); font-weight: 800; padding: .5rem .9rem; border-radius: var(--r-pill); font-size: .95rem; }
.lab__people { text-align: right; }
.lab__people-n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--green-ink); transition: transform .2s var(--ease-bounce); }
.lab__people-l { font-size: .85rem; color: var(--ink-3); font-weight: 600; }

/* track con tacche allineate (25/50/75/100) */
.lab__track-wrap { position: relative; padding: 30px 0 8px; }
.lab__rail { position: relative; height: 14px; border-radius: var(--r-pill); background: var(--cream-2); overflow: visible; }
.lab__fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: var(--r-pill); background: linear-gradient(90deg, #2bbd85, var(--green)); transition: width .15s linear; }
.lab__tick { position: absolute; top: 50%; transform: translate(-50%,-50%); z-index: 2; }
.lab__tick-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--line-2); transition: border-color .2s, transform .2s var(--ease-bounce), background .2s; }
.lab__tick.is-on .lab__tick-dot { border-color: var(--green); background: var(--green); }
.lab__tick.pop .lab__tick-dot { transform: scale(1.5); }
.lab__tick-label { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 800; color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.lab__tick.is-on .lab__tick-label { color: var(--green-ink); }
.lab__tick-price { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: .78rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* slider nativo stilizzato */
.lab__slider { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; margin-top: 6px; cursor: grab; position: relative; z-index: 3; }
.lab__slider:active { cursor: grabbing; }
.lab__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green); box-shadow: var(--sh-md), 0 0 0 6px rgba(20,160,106,.12);
  cursor: grab; transition: transform .15s var(--ease-bounce);
}
.lab__slider::-webkit-slider-thumb:active { transform: scale(1.12); }
.lab__slider::-moz-range-thumb { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: var(--sh-md); cursor: grab; }
.lab__hint { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-3); font-weight: 600; margin-top: .4rem; transition: opacity .3s; }
.lab__hint .wob { display: inline-block; animation: wob 1.6s var(--ease) infinite; }
@keyframes wob { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.lab.is-touched .lab__hint { opacity: 0; }
.lab__foot { margin-top: 1.4rem; font-size: .88rem; color: var(--ink-3); }

/* ---------- icone SVG (sprite iniettato da v2.js) ---------- */
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- step cards (icona centrata, badge numerato integrato: niente spazi morti) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.8rem 1.8rem;
  position: relative; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: var(--sh-sm);
  text-align: center;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step__ico {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  margin: 0 auto 1.15rem; position: relative;
  background: linear-gradient(135deg, var(--green-bg), #d2f0e2); color: var(--green-ink);
  box-shadow: inset 0 0 0 1px rgba(20,160,106,.14);
}
.step:nth-child(even) .step__ico { background: linear-gradient(135deg, var(--blue-bg), #cfe1fb); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(45,127,240,.16); }
.step__ico .ic { width: 30px; height: 30px; }
.step__n {
  counter-increment: step; position: absolute; right: -7px; bottom: -7px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.step__n::before { content: counter(step); }
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--ink-2); font-size: .97rem; }

/* ---------- fairness strip ---------- */
.fair { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fair__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.3rem; box-shadow: var(--sh-sm); text-align: center; }
.fair__item .ico {
  width: 50px; height: 50px; border-radius: 15px; margin: 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-bg), #d2f0e2); color: var(--green-ink);
  box-shadow: inset 0 0 0 1px rgba(20,160,106,.14);
}
.fair__item:nth-child(even) .ico { background: linear-gradient(135deg, var(--blue-bg), #cfe1fb); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(45,127,240,.16); }
.fair__item .ico .ic { width: 24px; height: 24px; }
.fair__item b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin: .7rem 0 .3rem; }
.fair__item span { font-size: .9rem; color: var(--ink-2); }

/* ---------- unlock cards ---------- */
.unlock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ucard {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.ucard:hover { transform: translateY(-5px); border-color: var(--green); box-shadow: var(--sh-md); }
.ucard__art { height: 120px; border-radius: var(--r); margin-bottom: 1.1rem; display: grid; place-items: center; overflow: hidden; background: var(--cream-2); }
.ucard__art img { height: 78%; width: auto; object-fit: contain; }
.ucard__tag { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.ucard h3 { font-size: 1.18rem; margin: .4rem 0; }
.ucard p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.ucard__price { font-family: var(--font-display); font-weight: 700; margin: .9rem 0 .7rem; }
.ucard__price s { color: var(--ink-3); font-weight: 600; margin-right: .4rem; }
.ucard__price em { color: var(--green-ink); font-style: normal; }
.ucard__price small { font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.ucard__when { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-2); background: var(--cream-2); border-radius: var(--r-pill); padding: .35rem .8rem; align-self: flex-start; font-weight: 600; }
.ucard__when .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(20,160,106,.5); } 50% { box-shadow: 0 0 0 6px rgba(20,160,106,0); } }

/* ---------- capture / cta band ---------- */
.band { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.6rem); text-align: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; width: 320px; height: 320px; background: radial-gradient(circle, rgba(20,160,106,.45), transparent 70%); top: -120px; right: -80px; }
.band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); position: relative; }
.band p { color: rgba(255,255,255,.72); max-width: 520px; margin: 1rem auto 2rem; position: relative; }
.capture { display: flex; gap: .7rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; position: relative; }
.capture input { flex: 1 1 240px; padding: 1.05rem 1.2rem; border-radius: var(--r-pill); border: none; font-size: 1rem; font-family: inherit; background: rgba(255,255,255,.1); color: #fff; outline: none; transition: background .2s; }
.capture input::placeholder { color: rgba(255,255,255,.5); }
.capture input:focus { background: rgba(255,255,255,.16); }
.capture__ok { display: none; align-items: center; gap: .6rem; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.capture__ok .check { width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: pop .4s var(--ease-bounce); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- footer ---------- */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.foot__brand { max-width: 280px; }
.foot__brand img { height: 30px; margin-bottom: .9rem; }
.foot__brand p { color: var(--ink-2); font-size: .92rem; }
.foot__cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.foot__col h4 { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: .9rem; }
.foot__col a { display: block; color: var(--ink-2); font-size: .95rem; padding: .25rem 0; transition: color .15s; }
.foot__col a:hover { color: var(--green-ink); }
.foot__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- reveal on scroll (progressive: visibile anche senza JS) ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in, .js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- scroll progress (dettaglio raffinato) ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--green), #2bbd85 55%, var(--amber));
  box-shadow: 0 0 10px rgba(20,160,106,.5); transition: width .12s linear; will-change: width;
}

/* ---------- steps: connettore che si disegna (l'animazione spiega il flusso) ---------- */
.steps { position: relative; }
@media (min-width: 901px) {
  .steps::before {
    content: ""; position: absolute; top: calc(1.8rem + 27px); left: 16.6%; right: 16.6%; height: 2px;
    background: linear-gradient(90deg, var(--green), var(--amber)); opacity: .4; z-index: 0;
    transform: scaleX(0); transform-origin: left center; transition: transform 1.05s var(--ease) .15s;
  }
  .steps.in::before { transform: scaleX(1); }
  /* pallino che scorre lungo il connettore quando entra */
  .steps::after {
    content: ""; position: absolute; top: calc(1.8rem + 22px); left: 16.6%; width: 12px; height: 12px;
    border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(20,160,106,.16);
    opacity: 0; z-index: 1;
  }
  .steps.in::after { animation: flowdot 1.6s var(--ease) .3s 1 forwards; }
  @keyframes flowdot {
    0% { left: 16.6%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 83.4%; opacity: 0; }
  }
}
.step__ico { transition: transform .3s var(--ease-bounce), background .3s; }
.step:hover .step__ico { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

/* ---------- countdown live (urgenza onesta, data reale) ---------- */
.countdown { display: inline-flex; gap: .55rem; margin: .2rem auto 1.7rem; position: relative; flex-wrap: wrap; justify-content: center; }
.cd__unit {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: .55rem .7rem; min-width: 64px; text-align: center;
}
.cd__unit span {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.cd__unit small { font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.6); font-weight: 700; }
.cd__unit.tick span { animation: cdpulse .4s var(--ease); }
@keyframes cdpulse { 0% { transform: scale(1); } 40% { transform: scale(1.14); color: var(--amber); } 100% { transform: scale(1); } }

/* fairness: micro-motion su hover */
.fair__item { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.fair__item:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--sh-md); }
.fair__item .ico { display: inline-block; transition: transform .3s var(--ease-bounce); }
.fair__item:hover .ico { transform: scale(1.15) rotate(-6deg); }

/* ---------- bilancia: il peso del gruppo abbassa il prezzo ---------- */
.exp { max-width: 700px; margin: 0 auto 2.6rem; text-align: center; }
.exp__txt h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.exp__txt p { color: var(--ink-2); margin-bottom: 1rem; }
.exp__tiers { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.exp__tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .45rem .9rem; font-size: .84rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--sh-sm); }
.exp__tier b { color: var(--green-ink); }
.scale { position: relative; user-select: none; max-width: 560px; margin: 1.6rem auto 0; }
.scale__svg { display: block; width: 100%; height: auto; overflow: visible; }
.scale__ground, .scale__foot, .scale__post { fill: var(--line-2); }
.scale__pivot { fill: var(--ink); }
.scale__arm { fill: url(#an-beam-grad); }
.scale__hook { fill: var(--ink); }
.scale__string { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.scale__dish { filter: drop-shadow(0 3px 4px rgba(60,45,25,.16)); }
.scale__dish--group { fill: url(#an-dish-g); }
.scale__dish--price { fill: url(#an-dish-b); }
.scale__person { fill: var(--green-ink); opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s var(--ease-bounce); }
.scale__person.on { opacity: 1; transform: translateY(0); }
.scale__weight rect { fill: var(--blue-ink); }
.scale__weight path { stroke: var(--blue-ink); stroke-width: 3; stroke-linecap: round; }
.scale__weight text { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-anchor: middle; }
.scale__tagbox rect { fill: var(--card); stroke: var(--line); stroke-width: 1; filter: drop-shadow(0 2px 5px rgba(60,45,25,.08)); }
.scale__num { font-family: var(--font-display); font-weight: 700; font-size: 21px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.scale__tagbox--l .scale__num { fill: var(--green-ink); }
.scale__tagbox--r .scale__num { fill: var(--blue-ink); }
.scale__lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; fill: var(--ink-3); text-anchor: middle; }
.scale__tagbox.bump .scale__num { animation: combobump .3s var(--ease-bounce); transform-box: fill-box; transform-origin: center; }
@keyframes combobump { 40% { transform: scale(1.12); } 100% { transform: scale(1); } }


/* ---------- conto in colonna: leve a sinistra, scontrino ordinato a destra
     (listino -> sconto gruppo -> credito passaparola -> prezzo finale) ---------- */
.conto {
  max-width: 960px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: clamp(1.4rem, 3vw, 2.3rem); overflow: hidden;
}
.conto__grid { display: grid; grid-template-columns: 1fr 296px; column-gap: 2.2rem; align-items: center; }
.conto__levers { display: flex; flex-direction: column; gap: 1.7rem; min-width: 0; }
.conto__bar { min-width: 0; }
.conto__barhead { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.conto__bar--group .conto__barhead { color: var(--green-ink); }
.conto__bar--ref .conto__barhead { color: var(--blue-ink); }
.conto__barhead .ic { width: 16px; height: 16px; align-self: center; }
.conto__barhead b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.conto__railwrap { position: relative; height: 13px; border-radius: var(--r-pill); background: var(--cream-2); margin-top: .55rem; }
.conto__fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: var(--r-pill); transition: width .16s linear; }
.conto__bar--group .conto__fill { background: linear-gradient(90deg, #2bbd85, var(--green)); }
.conto__bar--ref .conto__fill { background: linear-gradient(90deg, #6ea9f5, var(--blue)); }
.conto__slider { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: grab; position: relative; z-index: 2; margin-top: -24px; display: block; }
.conto__slider:active { cursor: grabbing; }
.conto__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green); box-shadow: var(--sh-md); cursor: grab; transition: transform .15s var(--ease-bounce);
}
.conto__bar--ref .conto__slider::-webkit-slider-thumb { border-color: var(--blue); }
.conto__slider::-webkit-slider-thumb:active { transform: scale(1.12); }
.conto__slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: var(--sh-md); cursor: grab; }
.conto__bar--ref .conto__slider::-moz-range-thumb { border-color: var(--blue); }
.conto__hint { font-size: .78rem; color: var(--ink-3); font-weight: 600; margin-top: .35rem; }
.conto__receipt { border-left: 2px dashed var(--line-2); padding-left: 1.7rem; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: .1rem; }
.conto__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.conto__row small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.conto__row b { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.conto__listino s { color: var(--ink-2); text-decoration-color: var(--coral); }
.conto__row--group small, .conto__row--group b { color: var(--green-ink); }
.conto__row--ref small, .conto__row--ref b { color: var(--blue-ink); }
.conto__row--final { background: var(--green-bg); border-radius: var(--r-lg); border-bottom: none; padding: .8rem 1rem; margin-top: .6rem; transition: background .3s, box-shadow .3s; }
.conto__row--final small { color: var(--green-ink); }
.conto__row--final b { font-size: 1.9rem; color: var(--green-ink); }
.conto__row--final.is-neg { background: var(--ink); box-shadow: 0 12px 34px rgba(20,160,106,.35); }
.conto__row--final.is-neg small { color: #7ee6b8; }
.conto__row--final.is-neg b { color: #4ade97; }
.conto b.bump { animation: combobump .3s var(--ease-bounce); }
.conto__negmsg {
  margin-top: 1.2rem; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: .95rem 1.2rem;
  font-size: .95rem; font-weight: 600; display: flex; gap: .6rem; align-items: flex-start;
  animation: negin .45s var(--ease-bounce);
}
.conto__negmsg[hidden] { display: none; }
.conto__negmsg .ic { width: 20px; height: 20px; flex: 0 0 auto; color: #4ade97; margin-top: .1rem; }
.conto__negmsg b { color: #4ade97; }
@keyframes negin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.conto__foot { margin-top: 1.2rem; font-size: .82rem; color: var(--ink-3); text-align: center; }
@media (max-width: 720px) {
  .conto__grid { grid-template-columns: 1fr; row-gap: 1.4rem; }
  .conto__receipt { border-left: none; border-top: 2px dashed var(--line-2); padding: 1.1rem 0 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .steps, .fair, .unlock { grid-template-columns: 1fr; }
  .fair { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .fair { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 20px; }
  .lab__people { text-align: left; }
  .lab__top { align-items: flex-start; }
  /* nav più compatta su telefono */
  .nav { padding: 12px 0; }
  .brand-mark { height: 44px; }
  .brand-word { font-size: 1.2rem; }
  .nav.is-stuck .brand-mark { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
