/* ─── Tokens ─────────────────────────────────────────────────── */

:root {
  --bg: #0f0f0f;
  --bg-carbon: #101010;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.44);
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --accent: #e8621a;
  --accent-dim: rgba(232, 98, 26, 0.4);
  --font: "Montserrat", system-ui, sans-serif;
  --topbar-h: 4.75rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ─── Reset ──────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  min-height: 100svh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Atmosfera cinematografica ──────────────────────────────── */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}

/* Stato iniziale — GSAP anima l'opacità (niente visibility toggle) */
[data-reveal] {
  opacity: 0;
}

/* ─── Navbar fissa — stile ufficiale ─────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding-inline: clamp(1.75rem, 4.5vw, 3.5rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s var(--ease-out-expo),
    border-color 0.5s var(--ease-out-expo);
}

.topbar.is-scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.topbar__menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.topbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 13px;
}

.topbar__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
}

.topbar__menu-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.topbar__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__brand-img {
  width: 28px;
  height: auto;
  display: block;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  flex-shrink: 0;
}

.topbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

.topbar__icon-btn:hover {
  opacity: 1;
}

.topbar__icon {
  width: 18px;
  height: 18px;
}

/* ─── Hero — griglia asimmetrica 46 / 54 ─────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  min-height: 100svh;
}

/* ─── Colonna sinistra ───────────────────────────────────────── */

.hero__left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    clamp(3rem, 8vh, 5rem)
    clamp(2.5rem, 5vw, 5rem)
    clamp(3.5rem, 9vh, 6rem)
    clamp(2rem, 4.5vw, 4rem);
  background-color: var(--bg-carbon);
  background-image:
    repeating-linear-gradient(
      127deg,
      rgba(255, 255, 255, 0.016) 0px,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      -53deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 6px
    );
  border-right: none;
}

.hero__left::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -1px;
  width: 1px;
  height: 38%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08) 30%, rgba(201, 162, 39, 0.25) 50%, transparent);
}

/* Logo Hero — asset puro, centrato sul titolo */
.hero__logo-wrap {
  align-self: center;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  transform-origin: center center;
}

.hero__logo {
  width: clamp(130px, 18vw, 200px);
  height: auto;
  display: block;
}

/* Titolo — centrato sotto il logo */
.hero__title {
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  text-align: center;
  width: 100%;
}

.hero__title-line {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  overflow: hidden;
  perspective: 600px;
}

.hero__title-line--1 {
  font-size: clamp(2.6rem, 5.8vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero__title-line--2 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-top: -0.05em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__desc-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 74%;
}

.hero__accent-bar {
  flex-shrink: 0;
  width: 1px;
  height: 0;
  margin-top: 0.35rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top center;
}

.hero__desc {
  font-size: clamp(0.7rem, 0.95vw, 0.8rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero__year {
  position: absolute;
  bottom: clamp(2rem, 5vh, 3.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.18);
  writing-mode: vertical-rl;
}

/* ─── Colonna destra ─────────────────────────────────────────── */

.hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    clamp(2rem, 5vh, 4rem)
    clamp(1.5rem, 3vw, 2.5rem)
    clamp(2.5rem, 6vh, 4.5rem)
    clamp(2rem, 4vw, 3.5rem);
  background: var(--bg);
}

.hero__video-shell {
  position: relative;
  width: 108%;
  margin-left: -2%;
  margin-top: -3vh;
  aspect-ratio: 16 / 9.5;
  margin-bottom: clamp(2rem, 3.5vh, 2.75rem);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 96.5% 100%, 0 100%);
  background: #080808;
}

.hero__video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 40px 12px rgba(0, 0, 0, 0.18);
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero__video-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 48%,
    transparent 52%
  );
  opacity: 0;
}

/* Blocco URUS — spostato a sinistra rispetto al video */
.hero__urus-block {
  padding-left: 0.5rem;
  max-width: 92%;
}

.hero__urus-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero__urus-title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__flag {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-bottom: 0.2rem;
}

.hero__flag-stripe {
  display: block;
  width: 0;
  height: 2px;
  overflow: hidden;
}

.hero__flag-stripe--green  { background: #009246; }
.hero__flag-stripe--white  { background: #ffffff; }
.hero__flag-stripe--red    { background: #ce2b37; }

.hero__specs {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.4rem 1.75rem;
  list-style: none;
}

.hero__specs li {
  font-size: 0.6rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero__specs li::before {
  content: "— ";
  color: rgba(201, 162, 39, 0.45);
  font-weight: 400;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__left {
    justify-content: center;
    align-items: flex-start;
    padding-top: calc(var(--topbar-h) + 0.75rem);
    padding-inline: clamp(1.25rem, 4vw, 2rem);
  }

  .hero__logo-wrap {
    margin-top: 0.5rem;
  }

  .hero__left::after {
    display: none;
  }

  .hero__desc-wrap {
    max-width: 100%;
  }

  .hero__year {
    writing-mode: horizontal-tb;
    bottom: auto;
    top: clamp(2rem, 6vh, 4rem);
    right: clamp(2rem, 4.5vw, 4rem);
  }

  .hero__video-shell {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  .hero__right {
    padding-top: 0;
    padding-inline: clamp(1rem, 3.5vw, 1.5rem);
  }

  .hero__urus-block {
    max-width: 100%;
    padding-left: 0;
  }

  .hero__video {
    object-position: center center;
  }
}

@media (max-width: 520px) {
  .hero__specs {
    grid-template-columns: 1fr;
  }

  .topbar__menu-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    display: none;
  }

  .btn-geo::before {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MODELS SLIDER — sezione 02 (layout pulito, stile ufficiale)
   ═══════════════════════════════════════════════════════════════ */

.models-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding:
    clamp(2.5rem, 6vh, 4rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 7vh, 5rem);
  background: var(--bg);
  overflow: hidden;
}

/* ─── Stage centrale ─────────────────────────────────────────── */

.models-slider__stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(480px, 72vh, 680px);
  margin-inline: auto;
}

/* Testo monumentale — z-index 1, opacità bassissima */
.models-slider__bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8%;
  pointer-events: none;
}

.models-slider__bg-text {
  text-align: center;
  margin: 0;
  will-change: transform, opacity;
}

.models-slider__bg-line {
  display: block;
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.045);
}

.models-slider__bg-line + .models-slider__bg-line {
  margin-top: -0.02em;
}

/* Intestazione modello — fissa, centrata, sopra l'auto */
.models-slider__model-head {
  position: absolute;
  top: clamp(0.5rem, 2vh, 1.25rem);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 36rem;
  text-align: center;
  pointer-events: none;
}

.models-slider__name-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
}

.models-slider__model-name {
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.models-slider__flag {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 0.65rem;
}

.models-slider__flag-stripe {
  display: block;
  width: 32px;
  height: 2px;
}

.models-slider__flag-stripe--green  { background: #009246; }
.models-slider__flag-stripe--white  { background: rgba(255, 255, 255, 0.9); }
.models-slider__flag-stripe--red    { background: #ce2b37; }

.models-slider__tagline {
  margin-top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  max-width: 36ch;
  min-height: 2.2em;
}

/* Corsia auto — z-index 3 */
.models-slider__car-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  z-index: 3;
  height: 52%;
  overflow: hidden;
}

.models-slider__car-lane {
  position: relative;
  width: 100%;
  height: 100%;
}

.models-slider__car-slot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(88%, 860px);
  transform-origin: 50% 100%;
  will-change: transform;
}

.models-slider__car-slot.is-active {
  z-index: 3;
}

.models-slider__car-img {
  width: 100%;
  height: auto;
  max-height: clamp(200px, 38vh, 420px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.55));
}

.models-slider__car-slot.is-placeholder .models-slider__car-img {
  opacity: 0;
  min-height: clamp(160px, 30vh, 320px);
}

.models-slider__car-slot.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 75%, rgba(232, 98, 26, 0.1), transparent 70%),
    linear-gradient(175deg, #1a1814 0%, #2a2418 40%, transparent 100%);
  clip-path: polygon(8% 55%, 18% 42%, 32% 38%, 68% 38%, 82% 42%, 94% 52%, 96% 68%, 88% 78%, 12% 78%, 4% 68%);
}

.models-slider__floor {
  position: absolute;
  bottom: 13%;
  left: 8%;
  right: 8%;
  z-index: 2;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(201, 162, 39, 0.18) 50%,
    rgba(255, 255, 255, 0.06) 80%,
    transparent
  );
  pointer-events: none;
}

/* Frecce esagonali — angoli alto stage (stile ufficiale, dark) */
.models-slider__ctrl {
  position: absolute;
  top: clamp(0.25rem, 1.5vh, 0.75rem);
  z-index: 6;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.models-slider__ctrl--prev { left: 0; }
.models-slider__ctrl--next { right: 0; }

.models-slider__ctrl:hover {
  opacity: 0.75;
}

.models-slider__hex {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  transition: border-color 0.3s ease;
}

.models-slider__ctrl:hover .models-slider__hex {
  border-color: rgba(232, 98, 26, 0.55);
}

.models-slider__arrow {
  position: relative;
  width: 14px;
  height: 14px;
  z-index: 1;
}

.models-slider__arrow--left {
  border-left: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg) translate(2px, -2px);
}

.models-slider__arrow--right {
  border-right: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  transform: rotate(-45deg) translate(-2px, -2px);
}

/* Tab centrate sotto lo stage */
.models-slider__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
  margin-top: clamp(1.75rem, 3vh, 2.5rem);
  padding-inline: 1rem;
}

.models-slider__tab {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.models-slider__tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.models-slider__tab:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.7);
}

/* CTA centrate — riga pulita come sito ufficiale */
.models-slider__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  padding-inline: 1rem;
}

.btn-geo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.9rem 1.65rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--accent-dim);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out-expo), border-color 0.35s ease;
}

.btn-geo span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.btn-geo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, var(--accent) 0%, var(--gold) 100%);
  transform: translateX(-102%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn-geo:hover {
  border-color: var(--accent);
  color: #0f0f0f;
}

.btn-geo:hover::before {
  transform: translateX(0);
}

.btn-geo--ghost {
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
  clip-path: none;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-geo--ghost::before {
  display: none;
}

.btn-geo--ghost:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ─── Models slider responsive ───────────────────────────────── */

@media (max-width: 900px) {
  .models-slider__bg-line {
    font-size: clamp(2.25rem, 12vw, 4.5rem);
  }

  .models-slider__model-name {
    white-space: normal;
    font-size: clamp(0.95rem, 4vw, 1.25rem);
  }

  .models-slider__name-slot {
    min-height: 3.25rem;
  }
}

@media (max-width: 600px) {
  .models-slider__stage {
    padding-inline: 2.75rem;
    height: clamp(400px, 62vh, 540px);
  }

  .models-slider__ctrl {
    width: 40px;
    height: 40px;
  }

  .models-slider__tabs {
    gap: 0.5rem 1.25rem;
  }

  .models-slider__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn-geo {
    width: 100%;
  }

  .btn-geo--ghost {
    width: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DEALER LOCATOR
   ═══════════════════════════════════════════════════════════════ */

.dealer-locator {
  position: relative;
  min-height: 60vh;
  height: clamp(60vh, 65vh, 70vh);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.dealer-locator__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dealer-locator__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.dealer-locator__content {
  position: relative;
  z-index: 2;
  padding:
    clamp(2.5rem, 6vh, 4rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(2.5rem, 6vh, 4rem)
    clamp(2rem, 4.5vw, 4rem);
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
}

.dealer-locator__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 14ch;
}

.dealer-locator__btn {
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
}

@media (max-width: 900px) {
  .dealer-locator {
    min-height: 55vh;
    height: auto;
  }

  .dealer-locator__title {
    max-width: none;
    font-size: clamp(1.75rem, 7vw, 2.75rem);
  }
}

@media (max-width: 520px) {
  .dealer-locator {
    min-height: 50vh;
  }

  .dealer-locator__content {
    padding-inline: clamp(1rem, 4vw, 1.25rem);
  }

  .dealer-locator__btn {
    display: inline-flex;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DYNAMICS IN MOTION — sezione 03
   ═══════════════════════════════════════════════════════════════ */

.dynamics {
  position: relative;
  min-height: 100svh;
  padding:
    clamp(3rem, 7vh, 5rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3.5rem, 8vh, 6rem);
  background: #0f0f0f;
  overflow: hidden;
}

/* Flash N2O — picco di energia */
.dynamics__flash {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 90% 70% at 50% 45%,
    rgba(255, 240, 220, 0.55) 0%,
    rgba(232, 98, 26, 0.35) 35%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.dynamics__header {
  margin-bottom: clamp(2rem, 4vh, 3rem);
  padding-left: clamp(0.5rem, 2vw, 1rem);
}

.dynamics__eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.dynamics__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 14ch;
}

/* Griglia asimmetrica */
.dynamics__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.65fr);
  gap: 0;
  align-items: center;
  position: relative;
}

.dynamics__video-wrap {
  position: relative;
  width: 108%;
  margin-left: -4%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 97% 100%, 0 100%);
  background: #080808;
}

.dynamics__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dynamics__film-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

.dynamics__film-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 80% at 50% 50%, transparent 35%, rgba(15, 15, 15, 0.75) 100%),
    linear-gradient(to right, #0f0f0f 0%, transparent 12%, transparent 88%, #0f0f0f 100%);
}

/* Cockpit telemetria — overlap parziale */
.dynamics__cockpit {
  position: relative;
  z-index: 5;
  margin-left: clamp(-3rem, -6vw, -5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(232, 98, 26, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.dynamics__telemetry {
  list-style: none;
  margin-bottom: clamp(1.75rem, 3vh, 2.5rem);
}

.dynamics__tel-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dynamics__tel-row:last-child {
  border-bottom: none;
}

.dynamics__tel-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dynamics__tel-value {
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.dynamics__tel-value--accent {
  color: var(--accent);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.dynamics__tel-value--accent.is-charged {
  color: #ffb347;
  text-shadow:
    0 0 12px rgba(232, 98, 26, 0.9),
    0 0 28px rgba(232, 98, 26, 0.55),
    0 0 48px rgba(255, 140, 40, 0.35);
}

/* Pulsante Boost — esagonale/tagliato */
.dynamics__boost {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(232, 98, 26, 0.35);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.dynamics__boost-glow {
  position: absolute;
  inset: -2px;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(232, 98, 26, 0.35), transparent 70%);
  pointer-events: none;
}

.dynamics__boost-label {
  position: relative;
  z-index: 1;
}

.dynamics__boost.is-glow {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(232, 98, 26, 0.25);
}

.dynamics__boost.is-active {
  border-color: var(--gold-light);
}

.dynamics__boost.is-activated {
  border-color: var(--accent);
  background: rgba(232, 98, 26, 0.12);
  box-shadow:
    0 0 20px rgba(232, 98, 26, 0.3),
    inset 0 0 24px rgba(232, 98, 26, 0.08);
  pointer-events: none;
}

.dynamics__boost.is-activated .dynamics__boost-label {
  color: #ffb347;
  text-shadow: 0 0 14px rgba(232, 98, 26, 0.7);
}

/* ─── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.site-footer__inner {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.site-footer__logo {
  width: 24px;
  height: auto;
  opacity: 0.7;
}

.site-footer__copy {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-footer__social a:hover {
  color: var(--accent);
}

.site-footer__disclaimer {
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 0.5rem;
  text-align: center;
  max-width: 42ch;
}

/* ─── Dynamics responsive ────────────────────────────────────── */

@media (max-width: 900px) {
  .dynamics__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dynamics__video-wrap {
    width: 100%;
    margin-left: 0;
  }

  .dynamics__cockpit {
    margin-left: 0;
  }

  .dynamics__title {
    max-width: none;
  }

  .dynamics {
    min-height: auto;
  }

  .dynamics__header {
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .site-footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .site-footer__disclaimer {
    max-width: 32ch;
    font-size: 0.65rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DEMO POPOVER — Il Sito Facile
   ═══════════════════════════════════════════════════════════════ */

.demo-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  max-width: 280px;
  padding: 20px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transform-origin: top left;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.demo-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.demo-popover__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.demo-popover__close:hover {
  opacity: 0.85;
  color: var(--text);
}

.demo-popover__text {
  margin: 0;
  padding-right: 1.25rem;
}

.demo-popover__text strong {
  color: var(--text);
  font-weight: 600;
}

.demo-popover__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.demo-popover__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-popover__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.demo-popover__btn--primary {
  color: #0f0f0f;
  background: linear-gradient(105deg, var(--accent) 0%, var(--gold) 100%);
}

.demo-popover__btn--whatsapp {
  color: #ffffff;
  background: #25d366;
}

@media (max-width: 480px) {
  .demo-popover {
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    max-width: none;
    transform-origin: bottom center;
  }

  .demo-popover:not(.is-open) {
    transform: scale(0.95) translateY(8px);
  }

  .demo-popover.is-open {
    transform: scale(1) translateY(0);
  }
}
