/* ==========================================================================
   ROTTAMA — livello "esperienza"
   Tipografia editoriale (Archivo stretto maiuscolo + Instrument Serif corsivo),
   apertura con la benna, contagiri, telefono navigabile, animazioni.
   Si carica dopo style.css e mockups.css e ne sovrascrive alcune parti.
   ========================================================================== */

/* ---------- Tipografia: lo stesso tono di "Come funziona" su tutto il sito ---------- */
.h2 {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 74;
  text-transform: uppercase; font-size: clamp(2.6rem, 5.6vw, 5.8rem); line-height: .9; letter-spacing: -.012em;
}
.h2 em, .cap__title em, .form__ok h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  font-variation-settings: normal; letter-spacing: -.01em; color: var(--orange); font-size: 1.06em;
}
.section--light .h2 em, .section--light .eyebrow__dot { color: var(--orange-deep); }
.section--light .eyebrow__dot { background: var(--orange-deep); }
.section--orange .h2 em { color: var(--ink); }
.section--orange .eyebrow { color: rgba(12, 12, 12, .7); }
.section--orange .eyebrow__dot { background: var(--ink); }
.section--light .eyebrow { color: var(--muted-dark); }
.eyebrow + .h2 { margin-top: 22px; }
.intro { max-width: 60rem; }
.intro__text { max-width: 44rem; margin-top: 26px; }

.cap__title { font: 800 clamp(2rem, 3.4vw, 3.6rem)/.92 var(--f-display); font-variation-settings: "wdth" 72; text-transform: uppercase; letter-spacing: -.01em; }
.cap__title em { font-size: 1.04em; }

.features__list h3 { font: 800 clamp(1.25rem, 1.6vw, 1.55rem)/1 var(--f-display); font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: 0; }
.features__list p { margin-top: 8px; }
.qa__q { font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.01em; }
.form__ok h3 { font: 800 clamp(1.9rem, 2.6vw, 2.6rem)/.95 var(--f-display); font-variation-settings: "wdth" 74; text-transform: uppercase; letter-spacing: 0; }
.price__big { font-weight: 900; font-variation-settings: "wdth" 96; }

/* titoli che entrano riga per riga (le righe vengono create dal JS) */
.split-line { display: block; overflow: hidden; padding: .03em .06em .06em 0; margin: -.03em -.06em -.06em 0; }
.split-line > span { display: block; will-change: transform; }

/* ---------- Apertura: la benna spacca il vecchio sito ---------- */
.js.smash .hero__drop { animation: none; opacity: 0; }
/* mentre scende, il bordo inferiore della foto sfuma nel nero (niente stacchi netti) */
.hero__drop { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 97%); mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 97%); }
.js.smash .hero__sway { animation: none; }
.js.smash .hero.is-swaying .hero__sway { animation: heroSway 7s ease-in-out infinite alternate; }
.hero__smash { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ==========================================================================
   IL PROBLEMA — cruscotto con contagiri
   ========================================================================== */
.rev { margin-top: clamp(56px, 7vw, 96px); }
.rev__panel {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4.4vw, 64px); border-radius: clamp(24px, 3vw, 36px); color: var(--paper); overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 80% at 78% 10%, #222 0%, #121212 55%, #0b0b0b 100%);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.rev__panel::before { /* grana leggera, come plastica goffrata del cruscotto */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.rev .eyebrow { color: var(--muted); }
.rev .eyebrow__dot { background: var(--orange); }
.rev__title { margin-top: 20px; font: 800 clamp(1.9rem, 2.9vw, 3rem)/.92 var(--f-display); font-variation-settings: "wdth" 74; text-transform: uppercase; }
.rev__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; font-variation-settings: normal; color: var(--orange); font-size: 1.06em; }
.rev__sub { margin-top: 14px; color: var(--muted); font-size: 16px; }
.rev__list { margin-top: 26px; border-top: 1px solid var(--line); }
.rev__item {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; width: 100%;
  padding: 17px 2px; border-bottom: 1px solid var(--line); text-align: left; font-size: 17px; line-height: 1.35;
  color: rgba(242, 239, 232, .74); transition: color .25s;
}
.rev__item:hover { color: var(--paper); }
.rev__item[aria-pressed="true"] { color: var(--paper); }
.rev__idx { font-size: 12px; letter-spacing: .1em; color: rgba(242, 239, 232, .38); transition: color .25s; }
.rev__item[aria-pressed="true"] .rev__idx { color: var(--orange); }
.rev__switch {
  position: relative; width: 50px; height: 28px; border-radius: 99px; background: #262626;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .05); transition: background-color .3s;
}
.rev__switch i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #f6f3ec, #c9c4b9); box-shadow: 0 2px 4px rgba(0, 0, 0, .55), inset 0 -1px 1px rgba(0, 0, 0, .15);
  transition: transform .4s var(--ease-back);
}
.rev__item[aria-pressed="true"] .rev__switch { background: var(--orange); }
.rev__item[aria-pressed="true"] .rev__switch i { transform: translateX(22px); }
.rev__item:focus-visible { outline-offset: -2px; }

.rev__right { display: flex; flex-direction: column; align-items: center; }
.rev__pod {
  padding: clamp(12px, 1.4vw, 20px); border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #2b2b2b 0%, #141414 55%, #080808 100%);
  box-shadow: inset 0 14px 30px rgba(0, 0, 0, .85), inset 0 -2px 2px rgba(255, 255, 255, .04), 0 30px 60px -24px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05);
}
.tach { --a: -130deg; position: relative; width: clamp(270px, 30vw, 440px); aspect-ratio: 1; border-radius: 50%; user-select: none; }
.tach__bezel {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, #4c4c4c, #d8d8d8 9%, #6b6b6b 20%, #2a2a2a 33%, #959595 46%, #f1f1f1 54%, #7a7a7a 64%, #262626 77%, #b8b8b8 90%, #4c4c4c);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .25), inset 0 -2px 3px rgba(0, 0, 0, .7), 0 4px 10px rgba(0, 0, 0, .6);
}
.tach__face {
  position: absolute; inset: 4.4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1c1c1c 0%, #0d0d0d 60%, #040404 100%);
  box-shadow: inset 0 0 0 1px #000, inset 0 14px 34px rgba(0, 0, 0, .95);
}
.tach__face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px); }
.tach__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tach__ticks line { stroke: #303030; stroke-linecap: butt; transition: stroke .5s; }
.tach__ticks .maj { stroke-width: 3.6; }
.tach__ticks .mid { stroke-width: 2.2; }
.tach__ticks .min { stroke-width: 1.4; }
.tach__nums text { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 84; font-size: 31px; text-anchor: middle; fill: #2e2e2e; transition: fill .5s; }
.tach__red { fill: none; stroke: #b3261a; stroke-width: 11; opacity: .28; transition: opacity .5s; }
.tach__amber { fill: none; stroke: #d39b17; stroke-width: 4; opacity: .2; transition: opacity .5s; }
.tach__brand { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 110; font-size: 12px; letter-spacing: .42em; text-anchor: middle; fill: #2a2a2a; transition: fill .5s; }
.tach__unit { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-anchor: middle; fill: #2a2a2a; transition: fill .5s; }
.tach.is-on .tach__ticks line { stroke: #ece8df; }
.tach.is-on .tach__ticks .red { stroke: #ff3b24; }
.tach.is-on .tach__nums text { fill: #f2efe8; }
.tach.is-on .tach__nums .red { fill: #ff4a2e; }
.tach.is-on .tach__red { opacity: .95; }
.tach.is-on .tach__amber { opacity: .75; }
.tach.is-on .tach__brand { fill: #777; }
.tach.is-on .tach__unit { fill: #8d8d8d; }
.tach.is-on .tach__ticks line:nth-child(n) { transition-delay: calc(var(--d, 0) * 1ms); }

.tach__leds { position: absolute; left: 50%; top: 27.5%; transform: translateX(-50%); display: flex; gap: 5px; }
.tach__leds i { width: clamp(9px, 1vw, 14px); height: clamp(5px, .5vw, 7px); border-radius: 2px; background: #161616; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: background-color .06s, box-shadow .06s; }
.tach__leds i.on:nth-child(1), .tach__leds i.on:nth-child(2) { background: #35d35b; box-shadow: 0 0 7px rgba(53, 211, 91, .7); }
.tach__leds i.on:nth-child(3), .tach__leds i.on:nth-child(4) { background: #ffb21e; box-shadow: 0 0 7px rgba(255, 178, 30, .7); }
.tach__leds i.on:nth-child(5) { background: #ff2f1c; box-shadow: 0 0 8px rgba(255, 47, 28, .8); }

.tach__lamp { position: absolute; top: 54.5%; width: 7%; aspect-ratio: 1; display: grid; place-items: center; color: #1f1f1f; transition: color .12s, filter .12s; }
.tach__lamp svg { width: 100%; height: 100%; }
.tach__lamp--engine { left: 29%; }
.tach__lamp--batt { right: 29%; }
.tach__lamp--engine.is-lit { color: #ffb21e; filter: drop-shadow(0 0 5px rgba(255, 178, 30, .7)); }
.tach__lamp--batt.is-lit { color: #ff3b24; filter: drop-shadow(0 0 5px rgba(255, 59, 36, .7)); }

.tach__lcd {
  position: absolute; left: 50%; top: 64.5%; transform: translateX(-50%); width: 28%; padding: 5% 0 4%; border-radius: 7px;
  background: linear-gradient(180deg, #0b0f0b, #131913); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center; font-family: var(--f-mono); color: #222a21; transition: color .3s;
}
.tach__lcd-num { display: block; font-size: clamp(18px, 2.1vw, 30px); font-weight: 600; line-height: 1; letter-spacing: .02em; }
.tach__lcd-num small { font-size: .52em; opacity: .7; }
.tach__lcd-msg { display: block; margin-top: 4px; font-size: clamp(7px, .7vw, 10px); letter-spacing: .16em; white-space: nowrap; }
.tach.is-on .tach__lcd { color: #ff8a3d; text-shadow: 0 0 6px rgba(255, 138, 61, .45); }

.tach__needle { position: absolute; inset: 0; filter: drop-shadow(3px 7px 4px rgba(0, 0, 0, .6)); pointer-events: none; }
.tach__needle i { position: absolute; inset: 0; transform: rotate(var(--a)); will-change: transform; }
.tach__needle i::before {
  content: ""; position: absolute; left: calc(50% - 4px); top: 9.5%; width: 8px; height: 48%;
  background: linear-gradient(90deg, #b8290c 0%, #ff4a1c 40%, #ff8a5c 52%, #e0400f 100%);
  clip-path: polygon(42% 0, 58% 0, 100% 84%, 100% 100%, 0 100%, 0 84%);
}
.tach__cap {
  position: absolute; left: 50%; top: 50%; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #6a6a6a 0%, #222 38%, #070707 78%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .75), inset 0 1px 1px rgba(255, 255, 255, .25);
}
.tach__glass { position: absolute; inset: 4.4%; border-radius: 50%; pointer-events: none; background: linear-gradient(158deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 34%, transparent 36%); }
.tach.is-limiter { animation: tachShake .07s linear infinite; }
@keyframes tachShake { 0% { transform: translate(0, 0); } 25% { transform: translate(.8px, -.6px); } 50% { transform: translate(-.6px, .7px); } 75% { transform: translate(.5px, .4px); } 100% { transform: translate(0, 0); } }

.rev__readout { margin-top: clamp(22px, 3vw, 34px); max-width: 27rem; text-align: center; }
.rev__verdict { min-height: 3.1em; font-size: 17px; line-height: 1.5; color: rgba(242, 239, 232, .85); }
.rev__cta { margin-top: 18px; }
.rev__cta svg { width: 18px; height: 18px; }

@media (max-width: 1000px) and (min-width: 761px) {
  .rev__panel { grid-template-columns: 1fr .9fr; gap: 28px; }
  .tach { width: clamp(240px, 36vw, 320px); }
  .rev__item { font-size: 15.5px; }
}
/* Telefono: cruscotto intero, niente fasce. Contagiri grande in alto, le frasi come schede a due colonne */
@media (max-width: 760px) {
  .rev { margin-left: calc(-1 * var(--pad) + 8px); margin-right: calc(-1 * var(--pad) + 8px); }
  .rev__panel { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 26px 14px 18px; border-radius: 28px; }
  .rev__left, .rev__right, .rev__readout { display: contents; }
  .rev .eyebrow { order: 1; padding-left: 4px; }
  .rev__title { order: 2; margin-top: 14px; padding: 0 4px; font-size: clamp(1.75rem, 8.4vw, 2.2rem); }
  .rev__sub { order: 3; margin-top: 8px; padding: 0 4px; font-size: 15px; }
  .rev__dash { order: 4; display: flex; justify-content: center; margin-top: 22px; }
  .rev__pod { padding: 10px; }
  .tach { width: min(76vw, 300px); }
  .rev__verdict { order: 5; min-height: 2.9em; margin: 16px 6px 0; font-size: 15.5px; text-align: center; }
  .rev__list { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; border: 0; }
  .rev__list li { display: flex; }
  .rev__item {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px;
    min-height: 112px; padding: 13px 13px 14px; border: 1px solid rgba(242, 239, 232, .08); border-radius: 18px;
    background: linear-gradient(180deg, #1a1a1a, #141414); font-size: 14.5px; line-height: 1.28; font-weight: 500;
    transition: border-color .3s, background-color .3s, color .25s, transform .15s;
  }
  .rev__item:active { transform: scale(.97); }
  .rev__idx { position: absolute; top: 14px; left: 13px; font-size: 11px; }
  .rev__switch { position: absolute; top: 10px; right: 10px; width: 40px; height: 23px; }
  .rev__switch i { top: 2.5px; left: 2.5px; width: 18px; height: 18px; }
  .rev__item[aria-pressed="true"] .rev__switch i { transform: translateX(17px); }
  .rev__txt { padding-top: 26px; }
  .rev__item[aria-pressed="true"] { border-color: rgba(255, 74, 28, .55); background: linear-gradient(180deg, #241510, #161210); }
  .rev__cta { order: 7; width: 100%; margin-top: 14px; }
}
}
@media (prefers-reduced-motion: reduce) {
  .tach.is-limiter { animation: none; }
}

/* ---------- Logo: la pressa che schiaccia un sito ---------- */
.logo { gap: 11px; }
.logo__mark { width: 32px; height: 32px; overflow: hidden; border-radius: 7px; }
.logo__press, .logo__site { fill: var(--ink); transition: transform .5s var(--ease-back); }
.logo__site { transform-origin: 50% 84%; transform-box: view-box; }
.logo__cut { fill: var(--orange); stroke: var(--orange); stroke-width: 1.6; }
.logo__cut circle { stroke: none; }
.logo:hover .logo__press { transform: translateY(4px); }
.logo:hover .logo__site { transform: scaleY(.84); }
.logo__word { display: inline-flex; align-items: baseline; gap: 6px; font: 900 20px/1 var(--f-display); font-variation-settings: "wdth" 78; text-transform: uppercase; letter-spacing: .01em; }
.logo__word em { font: italic 400 17px/1 var(--f-serif); text-transform: none; letter-spacing: 0; color: var(--orange); }
@media (max-width: 380px) { .logo__word em { display: none; } }

/* ---------- Animazioni allo scroll ---------- */
.js [data-split] { visibility: hidden; }
.js [data-split].is-split, .js [data-split].is-done { visibility: visible; }
.js .eyebrow { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.js .eyebrow .eyebrow__dot { transform: scale(0) rotate(-45deg); transition: transform .6s var(--ease-back) .15s; }
.js .eyebrow.is-in { opacity: 1; transform: none; }
.js .eyebrow.is-in .eyebrow__dot { transform: none; }
.price__big { display: inline-block; transform-origin: 0 80%; font-variant-numeric: tabular-nums; }

/* footer: la parola che viene schiacciata */
.footer__word { margin-top: clamp(48px, 7vw, 100px); overflow: hidden; text-align: center; line-height: .8; user-select: none; pointer-events: none; }
.footer__word span { --wdth: 100; display: inline-block; font: 900 clamp(3rem, 14.5vw, 16rem)/.8 var(--f-display); font-variation-settings: "wdth" var(--wdth); color: var(--orange); text-transform: uppercase; letter-spacing: -.02em; transform-origin: 50% 100%; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .js .eyebrow, .js .eyebrow .eyebrow__dot { opacity: 1; transform: none; transition: none; }
}

.hero__replay {
  position: absolute; z-index: 2; right: var(--pad); bottom: clamp(24px, 4vh, 40px);
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 99px;
  background: rgba(242, 239, 232, .08); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, .16); color: rgba(242, 239, 232, .8);
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease-out), background-color .2s;
}
.hero__replay svg { width: 14px; height: 14px; }
.hero__replay:hover { background: rgba(242, 239, 232, .16); color: var(--paper); }
.hero.is-played .hero__replay { opacity: 1; transform: none; pointer-events: auto; transition-delay: .6s; }
@media (max-width: 760px) { .hero__replay { display: none; } }
.hero.no-replay .hero__replay { display: none; }

/* ==========================================================================
   APERTURA — film 3D (sostituisce la foto della benna)
   ========================================================================== */
.hero { background: #050506; }
.hero__bg { background: #050506; }
.hero__bg::before { display: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; background: #050506; }
.hero__bg::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .7) 26%, rgba(5, 5, 6, .18) 46%, rgba(5, 5, 6, 0) 58%),
    linear-gradient(180deg, rgba(5, 5, 6, .7) 0, rgba(5, 5, 6, 0) 14%, rgba(5, 5, 6, 0) 72%, rgba(12, 12, 12, .85) 92%, var(--ink) 100%);
}
@media (max-width: 1000px) {
  .hero__video { object-position: 70% 50%; }
}
@media (max-width: 760px) {
  .hero__video { top: 0; bottom: auto; height: auto; aspect-ratio: 1080 / 1350; object-fit: cover; object-position: 50% 0; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 6, .55) 0, rgba(5, 5, 6, 0) 12%, rgba(5, 5, 6, 0) 32%, rgba(5, 5, 6, .55) 40%, rgba(8, 8, 9, .9) 46%, var(--ink) 51%);
  }
}

/* computer: il film si sposta a destra, così l'azione non passa mai dietro al titolo */
@media (min-width: 1001px) and (min-aspect-ratio: 1/1) {
  .hero__video { top: auto; bottom: 0; left: 5.4%; width: 104%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
}
/* tablet in verticale: versione verticale del film, a tutto schermo */
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .hero__video { object-position: 50% 20%; }
}

@media (max-width: 760px) {
  /* il film sale un po': il cubo finale resta sopra il titolo */
  .hero__video { top: -52px; }
}
