/* Sinapsia Motion — CSS da affiancare a motion.js (e a lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* niente "lampo" del contenuto prima che partano le animazioni */
html.sm-js:not(.sm-ready) [data-reveal],
html.sm-js:not(.sm-ready) [data-stagger] > *,
html.sm-js:not(.sm-ready) [data-split] { opacity: 0; }

[data-img-reveal] { overflow: hidden; }
[data-img-reveal] img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-parallax] { will-change: transform; }

[data-marquee] { overflow: hidden; white-space: nowrap; }
[data-marquee] > * { display: inline-flex; gap: 3rem; will-change: transform; }

[data-horizontal] { overflow: hidden; }
[data-horizontal] .h-track { display: flex; width: max-content; }
@media (max-width: 767px) {
  [data-horizontal] .h-track { width: auto; flex-direction: column; }
}

[data-progress] { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: currentColor; z-index: 9999; }

[data-shiny] {
  background: linear-gradient(110deg, currentColor 40%, rgba(255,255,255,.95) 50%, currentColor 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sm-shiny 3.5s linear infinite;
}
@keyframes sm-shiny { from { background-position: 100% 0; } to { background-position: -150% 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-shiny] { animation: none; -webkit-text-fill-color: currentColor; background: none; }
  html.sm-js [data-reveal], html.sm-js [data-stagger] > *, html.sm-js [data-split] { opacity: 1 !important; }
}
