/* ================================================
   HOME SCREEN
   ================================================ */
.home-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* === INTRO CINEMATOGRAFICA === */

/* Video: fade in da nero */
.home-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0;
  animation: introVideoIn 2s ease forwards;
}

@keyframes introVideoIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Overlay: appare col video */
.home-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
  opacity: 0;
  animation: introFadeIn 2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes introFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* === LOADER === */
.loader {
  margin-top: 56px;
  text-align: center;
  z-index: 30;
  position: relative;
  opacity: 0;
  animation: introFadeIn 1s ease forwards;
  animation-delay: 0.5s;
  transition: opacity 0.5s var(--ease);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 10px;
}

.loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--verde-chiaro), var(--verde-accent));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.loader__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.loader__pct {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

.loader__phrase {
  font-size: 0.7rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.15s ease;
  min-height: 1.2em;
}

/* === HINT === */
.home-screen__hint {
  margin-top: -60px;
  font-size: 0.78rem;
  color: var(--testo-m);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 20px;
  z-index: 2;
  position: relative;
  opacity: 0;
}
