:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --gray: #f5f5f7;
  --line: #d2d2d7;
  --green: #57a373;
  --green-ink: #2f7a4d;
  --green-soft: #e8f3ec;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1068px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--green-ink); }
h2 { margin-top: 8px; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--green); color: #fff; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; transition: transform 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(87, 163, 115, 0.35);
}
.btn:hover { background: var(--green-ink); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--gray); }
.btn--light { background: #fff; color: var(--green-ink); box-shadow: none; }
.btn--light:hover { background: var(--green-soft); }
.btn--full { width: 100%; }

/* Barra in alto */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.top__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.top__brand img { width: auto; height: 22px; mix-blend-mode: multiply; }
.top__call { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; font-weight: 700; }
.top__call svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 1. Apertura */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 100px var(--gutter) 80px; }
.hero__inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; text-align: center; }
.hero h1 { margin-top: 14px; font-size: clamp(2.6rem, 9vw, 6.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; }
.strike { position: relative; display: inline-block; color: var(--muted); }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 0.09em; border-radius: 99px; background: var(--green);
  transform: scaleX(0); transform-origin: left; animation: strike 0.9s var(--ease-out) 0.9s forwards;
}
@keyframes strike { to { transform: scaleX(1); } }
.hero__lead { max-width: 34em; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.4; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__inner > * { opacity: 0; transform: translateY(24px); animation: rise 0.9s var(--ease-out) forwards; }
.hero__inner > :nth-child(2) { animation-delay: 0.1s; }
.hero__inner > :nth-child(3) { animation-delay: 0.25s; }
.hero__inner > :nth-child(4) { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Pioggia di bottiglie di plastica */
.rain { position: absolute; inset: 0; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 0, #000 55%, transparent); mask-image: linear-gradient(#000 0, #000 55%, transparent); }
.rain svg { position: absolute; top: -140px; width: var(--w, 34px); height: auto; opacity: var(--o, 0.5); animation: fall var(--t, 9s) linear var(--delay, 0s) infinite; }
@keyframes fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); }
  to { transform: translate3d(var(--dx, 0px), 115svh, 0) rotate(var(--r1, 180deg)); }
}
.plastic__body { fill: #eef1f4; stroke: #b9c0c8; stroke-width: 1.5; }
.plastic__cap { fill: #c9d3dc; }
.plastic__label { fill: #dfe6ec; }

.scroll-hint { position: absolute; left: 50%; bottom: 24px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(12px); opacity: 0.3; } }

/* 2. Scena: le bottiglie cadono e resta il vetro */
.scene { position: relative; height: 260svh; background: linear-gradient(#fff, var(--gray)); }
.scene__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.scene__caption {
  position: absolute; top: 15svh; left: 0; right: 0; max-width: 18em; margin-inline: auto; padding-inline: var(--gutter);
  text-align: center; font-size: clamp(1.6rem, 4.6vw, 2.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  opacity: 0; transition: opacity 0.5s, transform 0.6s var(--ease-out); transform: translateY(16px);
}
.scene__caption.is-on { opacity: 1; transform: none; }
.scene__caption--b { color: var(--green-ink); }
.pile { position: absolute; left: 50%; bottom: 10svh; width: min(560px, 92vw); height: 46svh; transform: translateX(-50%); }
.pile svg { position: absolute; bottom: 0; width: clamp(34px, 7vw, 54px); height: auto; will-change: transform, opacity; }
.glass { position: absolute; bottom: 12svh; width: clamp(110px, 22vw, 170px); opacity: 0; transform: translateY(60px) scale(0.85); will-change: transform, opacity; }
.glass__body { fill: rgba(232, 243, 236, 0.6); stroke: var(--green-ink); stroke-width: 2.5; }
.glass__water { fill: rgba(87, 163, 115, 0.22); }
.glass__cap { fill: var(--text); }
.glass text { fill: var(--green-ink); font: 700 15px var(--font); }

/* 3. Calcolatore */
.calc { padding: clamp(80px, 12vw, 140px) 0; background: var(--gray); }
.calc__box { margin-top: 36px; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--green-ink); color: #fff; box-shadow: 0 30px 80px rgba(47, 122, 77, 0.25); }
.calc__label { display: block; font-size: 17px; font-weight: 600; }
.calc__label output { font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.calc__range { width: 100%; margin: 18px 0 8px; height: 36px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc__range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p, 17%), rgba(255, 255, 255, 0.25) var(--p, 17%)); }
.calc__range::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); }
.calc__range::-moz-range-progress { height: 8px; border-radius: 99px; background: #fff; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.calc__range::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; }
.calc__result { margin-top: 20px; font-size: 17px; opacity: 0.92; }
.calc__money { margin: 4px 0 6px; font-size: clamp(3.4rem, 13vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; opacity: 1; }
.calc__note { margin: 20px 0 24px; font-size: 14px; opacity: 0.75; }

/* 4. Vantaggi */
.perks { padding: clamp(80px, 12vw, 140px) 0; }
.perks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.perk { padding: 28px 24px; border-radius: 24px; background: var(--gray); opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s var(--ease-out); transition-delay: calc(var(--d) * 0.1s); }
.perk.is-in { opacity: 1; transform: none; }
.perk__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green); color: #fff; }
.perk__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.perk p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 48px; padding: 28px; border-radius: 24px; border: 1.5px dashed var(--line); text-align: center; font-weight: 600; color: var(--muted); }
.ticker b { display: block; color: var(--green-ink); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }

/* 5. Testimonianze */
.voices { padding: clamp(80px, 12vw, 140px) 0; background: var(--text); color: #fff; }
.voices .kicker { color: #8fd1a7; }
.voices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 40px auto 0; }
.voices__hint { display: none; margin-top: 10px; color: rgba(255, 255, 255, 0.6); font-size: 14px; font-weight: 600; }
.voice { position: relative; overflow: hidden; border-radius: 24px; background: #2a2a2d; }
.voice__video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.voice__sound { position: absolute; left: 14px; bottom: 14px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--text); font: 700 14px var(--font); cursor: pointer; }
.voice__sound[aria-pressed="true"] { background: var(--green); color: #fff; }

/* 6. Modulo */
.lead { padding: clamp(80px, 12vw, 140px) 0 clamp(100px, 14vw, 160px); background: linear-gradient(var(--green-soft), #fff); }
.lead .wrap { max-width: 640px; }
.lead__sub { margin-top: 14px; color: var(--muted); font-size: 1.15rem; }
.form { display: grid; gap: 14px; margin-top: 32px; padding: clamp(22px, 4vw, 36px); border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08); }
.field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font: inherit; font-size: 17px; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.form.is-checked :invalid { border-color: #d70015; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; color: var(--muted); font-size: 14px; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-ink); }
.check a { color: var(--text); text-decoration: underline; }
.form.is-checked .check input:invalid + span { color: #d70015; }
.form__msg { min-height: 1.4em; font-weight: 600; text-align: center; }
.form__msg.is-error { color: #d70015; }
.form__msg.is-ok { color: var(--green-ink); }

/* Piè di pagina, barra mobile, cookie */
.foot { padding: 32px var(--gutter) 110px; background: var(--gray); color: var(--muted); font-size: 13px; text-align: center; }
.foot p + p { margin-top: 6px; }
.foot a, .foot__cookies { color: var(--text); text-decoration: underline; }
.foot__cookies { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: none; gap: 10px; }
.dock__btn { flex: 1; display: grid; place-items: center; min-height: 54px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.dock__btn--wa { background: #25d366; color: #073b1d; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 520px; margin-inline: auto; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); font-size: 14px; }
.cookie a { text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; margin-top: 12px; }
.cookie__btn { flex: 1; min-height: 46px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 700 15px var(--font); color: var(--text); cursor: pointer; }
.cookie__btn--yes { border-color: var(--green); background: var(--green); color: #fff; }

@media (max-width: 860px) {
  .perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top__call { display: none; }
  .dock { display: flex; }
  .hero__cta .btn { width: 100%; }
  .perks__grid { grid-template-columns: 1fr; }
  .voices__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
    margin: 28px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .voices__grid::-webkit-scrollbar { display: none; }
  .voice { scroll-snap-align: start; }
  .voices__hint { display: block; }
  .cookie { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__inner > *, .perk { opacity: 1; transform: none; }
  .strike::after { transform: none; }
  .rain { display: none; }
}

/* Nasconde il riquadro "Powered by Netlify": sul piano a pagamento Netlify lo rende nascondibile */
#nl-badge-frame { display: none !important; }
