/* ==========================================================================
   TIFOSO INFINITO — Hero
   HOMEPAGE_ARCHITECTURE.md §2 (Sezione 1 — Hero editoriale)
   DESIGN_LANGUAGE.md §1-4, §10 (bottoni), §31 (animazioni)
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(12, 12, 10, 0.55) 0%, rgba(12, 12, 10, 0.72) 55%, rgba(12, 12, 10, 0.92) 100%);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  isolation: isolate;
}

/*
  Rotazione settimanale (Europe/Rome, cambio ogni lunedi', js/hero.js):
  4 foto reali gia' a catalogo (pezzi unici), stesso linguaggio visivo
  "dettaglio ricamo/texture" gia' approvato per l'hero originale — nessuna
  immagine esterna introdotta. js/hero.js applica una delle 4 classi
  sotto su #hero in base alla settimana corrente; il markup nasce gia'
  con "hero--img-1" (settimana 1, foto Inter Centenario Zanetti gia' in
  uso) cosi' da mostrare sempre un'immagine anche senza JavaScript.
  COMPLETAMENTO_HOME §3-6: pool approvato, verificato in Preview su
  375/768/1440px — crop, leggibilita' titolo/CTA, contrasto.

  hero--img-2 (Real Madrid/Nando) usa una copia dedicata
  "06-stemma-real-madrid-hero.webp" (WebP qualita' 75, 224KB, stesse
  dimensioni 1122x1402 dell'originale, nessuna perdita visibile) invece
  del file originale "06-stemma-real-madrid.webp" (548KB) referenziato
  in products.json/galleria prodotto: cosi' l'ottimizzazione resta
  isolata all'Hero e non tocca l'asset condiviso dello Shop.
*/
.hero--img-1 {
  background-image:
    linear-gradient(180deg, rgba(12, 12, 10, 0.55) 0%, rgba(12, 12, 10, 0.72) 55%, rgba(12, 12, 10, 0.92) 100%),
    url('../../shop/inter-centenario-07-08-zanetti/03-dettaglio-stemma-centenario.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero--img-2 {
  background-image:
    linear-gradient(180deg, rgba(12, 12, 10, 0.55) 0%, rgba(12, 12, 10, 0.75) 55%, rgba(12, 12, 10, 0.94) 100%),
    url('../../shop/real-madrid-95-96-nando-15/06-stemma-real-madrid-hero.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero--img-3 {
  background-image:
    linear-gradient(180deg, rgba(12, 12, 10, 0.55) 0%, rgba(12, 12, 10, 0.72) 55%, rgba(12, 12, 10, 0.92) 100%),
    url('../../shop/crvena-zvezda-vintage/04-dettaglio-toyota-usura.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero--img-4 {
  background-image:
    linear-gradient(180deg, rgba(12, 12, 10, 0.6) 0%, rgba(12, 12, 10, 0.78) 55%, rgba(12, 12, 10, 0.94) 100%),
    url('../../shop/juventus-06-07-nedved-11/04-dettaglio-stelle-scudetto.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-9);
  padding-bottom: var(--space-8);
  max-width: 780px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.98;
  color: var(--color-foreground);
  text-transform: none;
  opacity: 0;
  animation: heroFadeInUp var(--motion-entrance) var(--ease-out) forwards;
  animation-delay: 100ms;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--color-foreground-muted);
  max-width: 520px;
  margin-top: var(--space-4);
  opacity: 0;
  animation: heroFadeInUp var(--motion-entrance) var(--ease-out) forwards;
  animation-delay: 260ms;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  opacity: 0;
  animation: heroFadeInUp var(--motion-entrance) var(--ease-out) forwards;
  animation-delay: 420ms;
}

.hero__shop-link {
  color: var(--color-foreground-muted);
}

.hero__shop-link:hover {
  color: var(--color-foreground);
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Scroll cue — invito discreto a continuare, nessun link a sezioni future
   -------------------------------------------------------------------------- */
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-foreground-muted);
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: heroFadeInUp var(--motion-entrance) var(--ease-out) forwards;
  animation-delay: 600ms;
  transition: color var(--motion-fast) var(--ease-out);
}

.hero__scroll-cue:hover {
  color: var(--color-foreground);
}

.hero__scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: heroScrollBounce 2.2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue svg {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile — altezza ridotta per lasciare intravedere la sezione successiva
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .hero {
    min-height: 80vh;
    background-position: center 20%;
  }

  .hero__inner {
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
}
