#first {
  background-size: cover;
  background-position: center !important;
  background-repeat: no-repeat;
  min-height: 100vh;
  height: auto;
  position: relative;

  /* Allineamento in fondo */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  /* Padding per staccare il contenuto dal bordo inferiore */
  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Contenitore testi e logo */
#first .hero-content {
  width: 100%;
  max-width: 900px;
  z-index: 2;
}

#first .hero-logo {
  width: 140px;
}

#first h1 {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
}

#first h2 {
  font-weight: 400;
  font-size: 24px;
  margin-top: 10px;
}

/* Bottone stile sezione fifth (Bianco) */
#first .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 45px;
  border: 3px solid white;
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-decoration: none;
}

#first .btn-hero:hover {
  background-color: white;
  color: #000;
  text-decoration: none;
}

/* FIX MOBILE */
@media (max-width: 992px) {
  #first {
    padding-bottom: 60px; /* Un po' meno spazio su mobile */
    /* Gradiente più presente per coprire eventuali spazi vuoti */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
    background-size: cover;
    background-repeat: no-repeat;
  }

  #first .hero-logo {
    width: 120px;
  }

  #first h1 {
    font-size: 36px;
  }

  #first h2 {
    font-size: 18px;
  }

  #first .btn-hero {
    width: 90%;
    max-width: 320px;
  }
}
