.it-hero-text-wrapper h1{
  font-weight: 600;
    font-size: clamp(3rem, 2.1429rem + 2.2857vw, 4rem);
    line-height: clamp(3.3rem, 2.1429rem + 2.2857vw, 4.3rem);
}


/* Hero full height */
.it-hero-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* testo in alto, carosello in basso */
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero-img {
    min-height: 800px;
    object-fit: cover;
}


.hero-headline{
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

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

.it-hero-text-wrapper {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-carousel {
  position: relative;
  z-index: 3;
  border-radius: 4px 4px 0 0;
    --bs-gutter-x: 0px;
  margin-top: -200px;
}

@media(max-width:1600px){
    .hero-carousel {
    --bs-gutter-x: 24px
    }
}


.hero-overlap-carousel {
  background-color: white;
  border-radius: 4px 4px 0 0;
  --bs-gutter-x: 0;
}

@media(max-width:600px){
    .hero-img {
        min-height: 400px;
        object-fit: cover;
    } 

    .hero-carousel {
        margin-top: 90px;
    }

    .it-hero-text-wrapper h1{
        font-weight: 400;
        font-size: 1.8rem;
        line-height: 2.3rem;
    }

    .hero-carousel {
        --bs-gutter-x: 0;
        margin-left: 20px;
    }
}



/* Mobile fix: rientra nel flusso */
@media (max-width: 768px) {
  .hero-overlap-carousel {
    position: static;
    transform: none;
    margin-top: -48px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding-top: 0;
  }
}