
.body--journey { background: var(--navy-900); }

.journey { height: 446vh; position: relative; }

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.stage__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(95% 72% at 50% 50%,
    #0B5098 0%, #183461 50%, #122748 75%, #0c192e 100%);
}

.stage__fx { position: absolute; inset: 0; width: 100%; height: 100%; }

.scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  translate: -50% -50%;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}
.scene.is-active { pointer-events: auto; }

.scene__inner {
  width: 100%;
  max-width: var(--contenitore);
  margin-inline: auto;
  padding-inline: 24px;
}

.scene--hero .scene__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.scene--hero .hero__object { animation: fluttua 9s ease-in-out infinite; }

.claim {
  margin: 0;
  text-align: center;
  line-height: 1;
  color: var(--bianco);
}

.claim__forte {
  display: block;
  font-weight: 900;
  font-size: clamp(38px, 6.6vw, 92px);
  letter-spacing: -.022em;
  background: linear-gradient(100deg,
    #ffffff 0%, #ffffff 38%, #a9ccff 48%, #ffffff 58%, #ffffff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: luce 7s linear infinite;
}

.claim__lieve {
  display: block;
  margin-top: .34em;
  font-family: var(--font-etichette);
  font-weight: 600;
  font-size: clamp(28px, 4.3vw, 60px);
  letter-spacing: .08em;
  text-indent: .08em;
  color: rgba(255, 255, 255, .96);
}

@keyframes luce {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}

.scene--logo { z-index: 3; }

.marchio {
  display: block;
  width: clamp(78px, 10vw, 140px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .45));
}

.marchio__p1, .marchio__p4 { fill: var(--bianco); }
.marchio__p2, .marchio__p3 { fill: #b9c8dd; }

.marchio > * {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.scene--logo.is-costruito .marchio { animation: fluttuaMarchio 6s ease-in-out .75s infinite; }
.scene--logo.is-costruito .marchio__p1 { animation: daSinistra .45s var(--ease) forwards; }
.scene--logo.is-costruito .marchio__p2 { animation: daDestra   .45s var(--ease) .09s forwards; }
.scene--logo.is-costruito .marchio__p4 { animation: dallAlto   .45s var(--ease) .18s forwards; }
.scene--logo.is-costruito .marchio__p3 { animation: aFuoco     .45s var(--ease) .27s forwards; }

@keyframes daSinistra { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes daDestra   { from { opacity: 0; transform: translateX(46px); }  to { opacity: 1; transform: none; } }
@keyframes dallAlto   { from { opacity: 0; transform: translateY(-42px); } to { opacity: 1; transform: none; } }
@keyframes aFuoco     { from { opacity: 0; transform: scale(.35); }        to { opacity: 1; transform: none; } }
@keyframes fluttuaMarchio { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }

.hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  translate: -50% 0;
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  transition: opacity .6s var(--ease);
}
.hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 14px auto 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7), transparent);
  animation: scendi 2s ease-in-out infinite;
}
.hint.is-hidden { opacity: 0; }

.scene--indice .menu {
  min-height: 0;
  padding: 0;
  gap: clamp(30px, 5vw, 80px);
}
.scene--indice .menu__vetro { max-height: 62vh; }
.scene--indice .menu__voci { padding-bottom: 0; }
.scene--indice .menu__voce {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), padding-left .5s var(--ease);
}
.scene--indice.is-active .menu__voce { opacity: 1; transform: none; }
.scene--indice.is-active .menu__voce:nth-child(2) { transition-delay: .05s; }
.scene--indice.is-active .menu__voce:nth-child(3) { transition-delay: .10s; }
.scene--indice.is-active .menu__voce:nth-child(4) { transition-delay: .15s; }
.scene--indice.is-active .menu__voce:nth-child(5) { transition-delay: .20s; }
.scene--indice.is-active .menu__voce:nth-child(6) { transition-delay: .25s; }
.scene--indice.is-active .menu__voce:nth-child(7) { transition-delay: .30s; }
.scene--indice.is-active .menu__voce:nth-child(8) { transition-delay: .35s; }
.scene--indice.is-active .menu__voce:hover { transition-delay: 0s; }
.scene--indice .menu__vetro { aspect-ratio: 1 / 1; }
.menu__3d {
  position: absolute;
  inset: 6% 2% 4%;
  z-index: 1;
  display: none;
}
.menu__3d.is-attivo { display: block; animation: menu3dEntra .6s var(--ease); }
@keyframes menu3dEntra { from { opacity: 0; } }
.menu__3d--largo { inset: 6% -28% 4% -28%; }
.menu__3d-riserva {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.menu__3d-riserva:not([src]) { display: none; }
.menu__3d.is-pronto .menu__3d-riserva { opacity: 0; transition: opacity .2s linear .45s; }
.menu__3d model-viewer {
  position: relative;
  opacity: 0;
  transition: opacity .6s var(--ease);
  width: 100%;
  height: 100%;
  background-color: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0px;
  cursor: grab;
}
.menu__3d.is-pronto model-viewer { opacity: 1; }
.menu__3d model-viewer:active { cursor: grabbing; }

.menu--indice.is-in-attesa .menu__voce { pointer-events: none; }

.scene--indice .menu__azioni {
  position: static;
  margin-top: clamp(22px, 2.6vw, 36px);
  opacity: 0;
  transition: opacity .7s var(--ease) .4s;
}
.scene--indice.is-active .menu__azioni { opacity: 1; }

@media (max-width: 900px) {
  .journey { height: 374vh; }

  .scene--hero .scene__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 26px;
  }
  .scene--hero .hero__lockup { order: 2; align-items: center; }
  .scene--hero .hero__object { order: 1; width: min(320px, 66%); }
  .scene--hero .hero__tag { align-self: center; }

  .scene--indice .menu__voce { padding-block: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .stage { position: static; height: auto; padding-block: 120px; }
  .stage__fx, .hint { display: none; }
  .stage__bg { position: fixed; }
  .scene {
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    padding-block: 60px;
  }
  .scene--indice .menu__voce { opacity: 1; transform: none; }
  .scene--indice .menu__azioni { opacity: 1; }
}
