/* ====== HERO ====== */
.Mhero {
  position: relative;
  display: flex;
  justify-content: flex-start; /* spinge tutto a sinistra */
  align-items: center;         /* centra verticalmente */
  min-height: 80vh;
  overflow: hidden;
  width: 100%;
  padding-left: 100px;
  padding-right: 20px;
}

.Mhero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* dietro */
}

.Mhero-content {
  position: absolute;
  top: 10;
  left: 20;  
  z-index: 1; /* sopra l'immagine */
  max-width: 500px;
  color: black;
  text-align: center;
  background-color: transparent;
}

.Mhero-content h1 {
  margin-bottom: 10px;
  font-size: 2.5rem;
  color: black;
}

.Mhero-content p {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: black;
}

/* ====== CAROUSEL ====== */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 4rem 2rem;
  scroll-snap-type: x mandatory;
  text-align: center;
}

.slide {
  flex: 0 0 auto;
  width: 300px;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ====== DESCRIZIONE ====== */
.description {
  text-align: center;
  padding: 3rem 2rem;
}

.description h2 {
  color: #0D3B66;
  margin-bottom: 1rem;
}

.description p {
  color: #555;
  margin-bottom: 2rem;
}

/* ====== BUTTON ====== */
.btn {
  background: #FFA500;
  color: black;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #ff8c00;
  color: black;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .Mhero {
    flex-direction: column;        /* impila elementi */
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 0;
    background: none;
  }

  .Mhero-img {
    position: relative;           /* torna nel flusso normale */
    width: 200%;
    height: 250px;
    z-index: 0;
    padding-right: 60%;
  }

  .Mhero-content {
    position: relative;
    max-width: 90%;
    margin-top: 0;
    padding: 0 1rem 2rem;
    background-color: transparent;
    z-index: 1;
  }

  .Mhero-content h1 {
    font-size: 2rem;
    color: #0D3B66;
    margin-bottom: 1rem;
  }

  .Mhero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
  }

  /* BUTTON */
  .btn {
    background: #FFA500;
    color: black;
  }

  /* CAROUSEL MOBILE */
  .carousel {
    justify-content: start;
    padding-top: 0;
  }

  .slide {
    width: 100%;
    height: 450px;
  }
}
