
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(105, 142, 181, 0.4); */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  padding: 0 1rem;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.8rem;
  /* margin-bottom: 1.5rem; */
}

.hero-multiimgs {
  --img-size: 20rem; /* variabile modificabile: altezza massima immagini */
  width: 100%;
  display: flex;
  flex-wrap: wrap;        /* le immagini vanno a capo se serve */
  justify-content: space-evenly;/* centrate orizzontalmente */
  align-items: center;    /* centrate verticalmente */
  box-sizing: border-box;
  background: transparent; /* opzionale */
}

.hero-multiimgs img {
  height: var(--img-size); /* limite altezza controllato */
  width: var(--img-size);                      /* mantiene proporzioni */
  object-fit: cover;               /* preserva proporzioni interne */
  flex: 0 1 auto;                    /* permette adattamento dinamico */
  display: block;
  }

.inline-icon {
  display: inline-block;
  max-height: 1.5em;           /* scala in base al testo */
  max-width: 1.5em;
  vertical-align: middle;/* allinea al testo */
  margin-right: 0.4em;   /* spazio tra icona e testo */
  object-fit: cover;
}

/* Responsivo per mobile */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1.3rem;
  }
}


