/* ==========================================================================
   Metal-Stop - Valmec
   Foglio di stile della pagina. Nessuna dipendenza esterna, tranne i font.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variabili
   -------------------------------------------------------------------------- */
:root {
  --fg: #323842;
  --muted-fg: #637389;
  --primary: #0770b6;
  --secondary: #eef2f9;
  --muted: #eaeff5;
  --border: #c6cedb;
  --white: #ffffff;
  --navy: #07192f;
  --navy-dark: #050f20;
  --navy-darker: #040b18;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Oswald", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
address {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--primary);
  border-radius: 0.5rem;
}

/* --------------------------------------------------------------------------
   3. Layout e titoli comuni
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.container--medium {
  max-width: 64rem;
}

.container--cta {
  max-width: 56rem;
}

.kicker {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   4. Pulsanti
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn--sm {
  height: 2rem;
  padding-inline: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.btn--lg {
  width: 100%;
  min-height: 3rem;
  padding-inline: 2rem;
}

.btn--primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: rgba(7, 112, 182, 0.9);
}

.btn--ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--light {
  color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--ghost-blue {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.btn--ghost-blue:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--light:focus-visible,
.btn--ghost-blue:focus-visible,
.btn--ghost-light:focus-visible {
  outline-color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Barra di avanzamento e intestazione
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(198, 206, 219, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.logo {
  display: block;
  width: auto;
  height: 1.875rem;
}

.logo--color {
  display: none;
}

.is-scrolled .logo--light {
  display: none;
}

.is-scrolled .logo--color {
  display: block;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav a[aria-current] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.is-scrolled .site-nav a {
  color: rgba(50, 56, 66, 0.8);
  background: transparent;
}

.is-scrolled .site-nav a:hover,
.is-scrolled .site-nav a[aria-current] {
  color: var(--primary);
  background: transparent;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.is-scrolled .menu-toggle {
  color: var(--fg);
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   6. Menu mobile
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
}

.drawer[hidden] {
  display: none;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18rem;
  max-width: 100%;
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__logo {
  display: block;
  width: auto;
  height: 2.25rem;
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.5rem;
  border-radius: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.drawer__close:hover {
  opacity: 1;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.drawer__nav a {
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.drawer__nav a:hover {
  background: var(--muted);
}

.drawer__nav .drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
}

.drawer__nav .drawer__cta:hover {
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(60% 50% at 50% 45%, rgba(0, 88, 152, 0.55), transparent 70%);
}

.hero::after {
  background: linear-gradient(to bottom, var(--navy-dark), transparent, var(--navy-darker));
}

.hero__inner {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.hero__brand {
  display: block;
  width: auto;
  height: 2.75rem;
  margin-inline: auto;
  margin-bottom: 0.625rem;
  opacity: 0.9;
}

.hero__parent {
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero__claim {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
}

.hero__sub {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__product {
  max-width: 56rem;
  margin: 3rem auto 0;
  will-change: transform;
}

.hero__product img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.hero__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background-color 0.2s;
}

.hero__scroll:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero__scroll .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animazioni di ingresso dell'hero */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-product {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(3px);
  }
}

.hero-in {
  animation: hero-in 0.9s var(--ease-out) both;
}

.hero__product img {
  animation: hero-product 1.2s var(--ease-out) 0.4s both, hero-float 6s ease-in-out 1.6s infinite;
}

.hero__scroll .icon {
  animation: scroll-hint 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   8. Numeri
   -------------------------------------------------------------------------- */
.stats {
  padding-block: 4rem;
  background: var(--secondary);
}

.stats__inner {
  display: grid;
  gap: 2.5rem;
}

.stats__figure {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
}

.stats__text {
  max-width: 28rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.bars {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.bar--main .bar__label {
  color: var(--primary);
}

.bar__track {
  height: 0.75rem;
  margin-top: 0.5rem;
  overflow: hidden;
  background: var(--muted);
  border-radius: 999px;
}

.bar__fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  width: var(--w);
  background: rgba(99, 115, 137, 0.5);
  border-radius: 999px;
  transition: width 1s ease-out;
}

.bar--main .bar__fill {
  background: var(--primary);
}

.js .bar__fill {
  width: 0;
}

.js .bar.is-on .bar__fill {
  width: var(--w);
}

.bar--main .bar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(170, 231, 255, 0.75) 50%, transparent 75%);
  transform: translateX(-120%);
}

.bar--main.is-on .bar__fill::after {
  animation: bar-shine 0.8s ease-out 1.05s both;
}

@keyframes bar-shine {
  to {
    transform: translateX(120%);
  }
}

/* --------------------------------------------------------------------------
   9. Il problema
   -------------------------------------------------------------------------- */
.problem {
  padding-block: 5rem;
  background: var(--white);
}

.problem__inner {
  display: grid;
  gap: 3rem;
}

.problem__lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: rgba(50, 56, 66, 0.9);
}

.problem__more {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted-fg);
}

.problem__media {
  padding: 2rem;
  overflow: hidden;
  background: var(--secondary);
  border-radius: var(--radius-lg);
}

.problem__media img {
  width: 100%;
  transform-origin: center;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   10. La soluzione
   -------------------------------------------------------------------------- */
.solution {
  padding-block: 5rem;
  overflow: hidden;
  background: var(--secondary);
}

.solution__head {
  max-width: 48rem;
}

.solution__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-0.25rem);
}

.card .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-fg);
}

.solution__media {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}

.solution__media img {
  width: 100%;
  max-width: 18rem;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   11. Come funziona
   Base: elenco verticale. Con la classe .scenes su <html> (schermi larghi,
   senza riduzione del movimento) diventa una scena che resta ferma
   mentre si scorre; l'avanzamento è gestito da js/main.js.
   -------------------------------------------------------------------------- */
.how {
  padding-block: 5rem;
  background: var(--white);
}

.how__head {
  max-width: 48rem;
}

.how__steps {
  margin-top: 3rem;
}

.step + .step {
  margin-top: 2.5rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(7, 112, 182, 0.3);
}

.step__copy h3 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
}

.step__copy p {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted-fg);
}

.step__media {
  margin-top: 1.5rem;
  padding: 2rem;
  overflow: hidden;
  background: var(--secondary);
  border-radius: var(--radius-md);
}

.step--full .step__media {
  padding: 0;
}

.step__media img {
  width: 100%;
}

.how__dots {
  display: none;
}

.dot {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   12. Il prodotto
   -------------------------------------------------------------------------- */
.showcase {
  padding-block: 5rem;
  overflow-x: clip;
  background: linear-gradient(180deg, #050f20 0%, #071b33 52%, #07192f 100%);
}

.showcase__inner {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.showcase__head {
  text-align: center;
  color: var(--white);
}

.showcase__kicker {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.showcase__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.showcase__sub {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.showcase__stage {
  margin-top: 3rem;
}

.showcase__img {
  width: 100%;
  height: 14rem;
  object-fit: contain;
}

.showcase__img + .showcase__img {
  margin-top: 1.5rem;
}

.showcase__dots {
  display: none;
}

/* --------------------------------------------------------------------------
   13. Video
   -------------------------------------------------------------------------- */
.video {
  padding-block: 5rem;
  color: var(--white);
  background: var(--navy);
}

.video__head {
  text-align: center;
}

.video__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
}

.video__head p {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.75);
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 2.5rem;
  overflow: hidden;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video__play:focus-visible {
  outline-color: var(--white);
  outline-offset: -2px;
}

.video__play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  object-fit: contain;
  opacity: 0.8;
}

.video__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s;
}

.video__icon .icon {
  width: 2.25rem;
  height: 2.25rem;
  transform: translateX(2px);
}

.video__play:hover .video__icon {
  transform: scale(1.1);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   14. Contatti
   -------------------------------------------------------------------------- */
.cta {
  padding-block: 5rem;
  color: var(--white);
  background: var(--primary);
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.footer {
  padding-block: 4rem;
  color: var(--white);
  background: var(--navy);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__logo {
  display: block;
  width: auto;
  height: 3rem;
  margin-bottom: 1rem;
}

.footer__brand {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.footer__brand a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s;
}

.footer__brand a:hover {
  border-bottom-color: var(--white);
}

.footer__note {
  max-width: 24rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contacts {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer__item:hover {
  color: var(--white);
}

.footer__item--top {
  align-items: flex-start;
}

.footer__item .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__item--top .icon {
  margin-top: 0.125rem;
}

.footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--white);
}

.footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   15. Comparsa degli elementi durante lo scorrimento
   L'attributo data-reveal viene gestito da js/main.js: senza JavaScript
   tutto resta visibile.
   -------------------------------------------------------------------------- */
[data-reveal] {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
}

/* --------------------------------------------------------------------------
   16. Schermi piccoli e medi
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .container,
  .showcase__inner {
    padding-inline: 1.5rem;
  }

  .hero {
    padding-inline: 1.5rem;
  }

  .hero__brand {
    height: 3.25rem;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .hero__claim {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .hero__sub {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .hero__buttons {
    flex-direction: row;
  }

  .btn--lg {
    width: auto;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .section-title,
  .video__title,
  .cta__title {
    font-size: 3rem;
    line-height: 1;
  }

  .stats {
    padding-block: 5rem;
  }

  .stats__figure {
    font-size: 6rem;
  }

  .problem,
  .solution,
  .how,
  .showcase,
  .video {
    padding-block: 7rem;
  }

  .cta {
    padding-block: 6rem;
  }

  .problem__media {
    padding: 3rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution__media {
    padding-top: 4rem;
  }

  .step__copy h3 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .step__media {
    padding: 3rem;
  }

  .step--full .step__media {
    padding: 0;
  }

  .showcase__title {
    font-size: 4.5rem;
  }

  .showcase__sub {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .showcase__stage {
    margin-top: 3rem;
  }

  .showcase__img {
    height: 20rem;
  }

  .showcase__img + .showcase__img {
    margin-top: 2rem;
  }

  .cta__buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   17. Schermi larghi
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .container,
  .showcase__inner {
    padding-inline: 2rem;
  }

  .hero {
    padding-inline: 2rem;
  }

  .hero__title {
    font-size: 6rem;
  }

  .site-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .stats__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: center;
  }

  .problem__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .problem__media {
    padding: 3.5rem;
  }

  .solution__grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
  }

  .solution__media {
    padding-top: 5rem;
  }
}

@media (min-width: 1280px) {
  .solution__media img {
    max-width: 20rem;
  }
}

/* --------------------------------------------------------------------------
   18. Scene con scorrimento (classe .scenes su <html>)
   -------------------------------------------------------------------------- */
.js.scenes [data-reveal="list"]:not(.is-visible) {
  opacity: 1;
  transform: none;
}

.scenes [data-reveal="list"] {
  transition: none;
}

/* Come funziona */
.scenes .how {
  height: 320vh;
  height: 320svh;
  padding-block: 0;
}

.scenes .how__panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  height: 100svh;
}

.scenes .how__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: 4rem;
}

.scenes .how__head {
  grid-column: 1;
  grid-row: 2;
}

.scenes .how__head .section-title {
  font-size: 3rem;
  line-height: 1;
}

.scenes .how__steps {
  display: contents;
}

.scenes .step {
  display: contents;
}

.scenes .step + .step {
  margin-top: 0;
}

.scenes .step__copy {
  grid-column: 1;
  grid-row: 3;
  min-height: 13rem;
  margin-top: 3rem;
  will-change: transform;
}

.scenes .step__copy h3 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.scenes .step__media {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  aspect-ratio: 4 / 3;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-lg);
}

/* Le tre immagini sono sovrapposte: solo la prima porta lo sfondo */
.scenes .step:first-child .step__media {
  background: var(--secondary);
}

.scenes .step__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  padding: 3.5rem;
  object-fit: contain;
  will-change: transform;
}

.scenes .step--full .step__media img {
  padding: 0;
  object-fit: cover;
}

.scenes .how__dots {
  display: flex;
  grid-column: 1;
  grid-row: 4;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Stato iniziale, prima che parta lo script */
.scenes .step:not(:first-child) .step__copy {
  opacity: 0;
  visibility: hidden;
}

.scenes .step:not(:first-child) .step__media img {
  opacity: 0;
}

.scenes .how__dots .dot:not(:first-child) {
  opacity: 0.3;
}

/* Il prodotto */
.scenes .showcase {
  height: 340vh;
  height: 340svh;
  padding-block: 0;
}

.scenes .showcase__panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.scenes .showcase__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
}

.scenes .showcase__head {
  flex-shrink: 0;
}

.scenes .showcase__title {
  margin-top: 0.5rem;
  font-size: 3.75rem;
}

.scenes .showcase__sub {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.scenes .showcase__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 0;
}

.scenes .showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1rem 2.5rem;
  will-change: transform;
}

.scenes .showcase__img + .showcase__img {
  margin: 0;
}

.scenes .showcase__dots {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-50%);
}

.scenes .showcase__dots .dot {
  background: var(--white);
}

.js.scenes .showcase__stage .showcase__img:not(:first-child) {
  opacity: 0;
}

@media (min-width: 1280px) {
  .scenes .showcase__title {
    font-size: 4.5rem;
  }
}

/* --------------------------------------------------------------------------
   19. Movimento ridotto
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    transition: none;
  }

  .js [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .hero-in,
  .hero__product img,
  .hero__scroll .icon {
    animation: none;
  }

  .bar__fill {
    transition: none;
  }

  .bar--main .bar__fill::after {
    display: none;
  }
}
