/* CelerTurismo — stile della sola home page (hero con video, calcolatore) */

.hero-subtitle {
  max-width: 800px;
  color: #40516a;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  margin: 24px auto 0;
  font-weight: 550;
}

.section-lead { color: #52647c; font-size: 20px; max-width: 790px; line-height: 1.56; font-weight: 540; }

/* ===== HERO con animazione automatica del logo ===== */
#hero {
  position: relative;
  padding: 0;
  background: #ffffff;
}
.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  padding: 110px 0 90px;
}
/* Video del logo: centrato; su schermi stretti si ingrandisce
   (i lati del video sono bianchi, il logo occupa circa il 62% centrale) */
#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(161vw, 177.78vh);
  width: min(161vw, 177.78svh);
  aspect-ratio: 16 / 9;
  height: auto;
  translate: -50% -50%;
  z-index: 1;
  pointer-events: none;
  background: #ffffff;
  mix-blend-mode: multiply; /* eventuali bianchi "sporchi" del video si fondono con lo sfondo */
  transition: opacity .9s ease, transform .9s ease;
  will-change: opacity, transform;
}
.hero-stage.done #hero-video { opacity: .06; transform: scale(.94); }
.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(249, 115, 22, 0.15);
  pointer-events: none;
  z-index: 2;
}
#hero-text {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity .8s ease-out .15s, transform .8s ease-out .15s;
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 0 20px;
  max-width: 950px;
  visibility: hidden;
}
.hero-stage.done #hero-text { opacity: 1; transform: none; visibility: visible; }

.hero-skip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
  transition: opacity .3s ease;
}
.hero-skip:hover { color: var(--navy); }
.hero-stage.done .hero-skip { opacity: 0; pointer-events: none; }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease .9s;
}
.scroll-hint:hover { color: var(--orange); }
.scroll-hint i { font-size: 20px; animation: hintBounce 1.6s ease-in-out infinite; }
.hero-stage.done .scroll-hint { opacity: 1; pointer-events: auto; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-height: 700px) { .scroll-hint { display: none; } }

/* Chi preferisce meno animazioni: niente animazione, testo subito visibile */
@media (prefers-reduced-motion: reduce) {
  #hero-video, #hero-text, .scroll-hint { transition: none; }
  .hero-skip { display: none; }
}

/* Sezioni della home */
.section-lead { max-width: 790px; }
.hero-title { font-size: clamp(38px, 5.5vw, 76px); }
