/* Reset e blocco scroll */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
  height: 100%; 
  width: 100%; 
  overflow: hidden; 
}

.hero-container {
  background-image: url('img/hp_c.png');
  background-position: top center;
  background-size: cover;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
  color: white;
  
  /* Flexbox per centrare in basso */
  flex-direction: column;
  justify-content: flex-end; /* Allinea in basso */
  align-items: center;       /* Centra orizzontalmente */
  
  /* Padding inferiore base per alzare le scritte dalle barre del browser */
  padding: 5vh 5vw 10vh 5vw; 
}

/* --- 1. CONFIGURAZIONE PC --- */
@media (min-width: 1025px) {
  .hero-container {
    padding-bottom: 7vh;
  }
  .testo-destra { 
    font-size: clamp(20px, 5vh, 6vh); 
    font-family: 'Red Hat Display', sans-serif;
    text-align: center;
    font-weight: 600; 
    line-height: 0.9; 
    color: #e6cb16; 
  }
}

/* --- 2. CONFIGURAZIONE SMARTPHONE VERTICALE (Portrait) --- */
@media (max-width: 1024px) and (orientation: portrait) {
  .hero-container {
    padding-bottom: 12vh; /* Spinge il testo più in alto dal bordo inferiore */
  }
  .testo-destra { 
    font-size: clamp(2vh, 2.5vh, 3vh); 
    font-family: 'Red Hat Display', sans-serif; 
    text-align: center;
    font-weight: 600; 
    line-height: 0.9; 
    color: #e6cb16; 
  }
}

/* --- 3. CONFIGURAZIONE SMARTPHONE ORIZZONTALE (Landscape) --- */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero-container {
    /* In orizzontale alziamo ancora di più perché lo spazio è critico */
    padding-bottom: 20vh; 
  }
  .testo-destra { 
    font-size: clamp(4vh, 5vh, 6vh); 
    font-family: 'Red Hat Display', sans-serif; 
    text-align: center;
    font-weight: 600; 
    line-height: 0.9; 
    color: #e6cb16;
  }
}