@import url("index.css");

.separatore-arrow-down.white {
  margin: 4px;
  padding: 0 !important;
}

.inline-logo-info {
  object-position: 27px -30px;
}

.icplogo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 300px;
  height: auto !important;
  object-fit: contain !important;
}

.dati-section {
  width: 100%;
  margin: 2rem 0;
}

.dati-titolo {
  font-size: 2rem;
  color: #fff;
  background: transparent;
  margin-bottom: 2rem;
  font-weight: 400;
}

.dati-riga {
  display: grid;
  border-top: 2px solid #000;
  padding: 2rem 3rem;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  align-items: center;
}

.dati-numero {
  font-size: 6rem;
  font-weight: 500;
}

.dati-testo {
  font-size: 3rem;
  font-weight: 500;
}

@media screen and (max-width:768px) {
  img.icplogo {
    width: 200px;
  }

  .dati-numero {
    font-size: 3rem;
  }

  .dati-testo {
    font-size: 1.8rem;
    text-align: right;
  }

  .inline-logo-info {
    object-position: 27px -15px;
  }
}

.separatore-arrow-down {
  padding: 3rem
}

.img-caption {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  color: #fff;
  z-index: 2;
}

.testo-centrato {
  text-align: center;
  font-size: 1.6rem;
  margin-top: 3rem;
}

.team .info-subtitle {
  padding: 1rem 0
}

.separatore-arrow-down.white {
  padding: 3rem
}

.section-piccoloamerica-general .separatore-arrow-down.white {
  padding-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0;
}

.info-section-custom {
  padding: 1rem 0;
}

.section-piccoloamerica-general.team {
  border: none;
  border-bottom: none !important;

}

.section-piccoloamerica-general.chisiamo {
  border: 1px solid black;

  border-bottom: none !important;
}

.team-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.team-card {
  flex: 0 0 auto;
  width: 250px;
  height: 360px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid black;
}

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

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 30px;
  color: white;
  background:linear-gradient(180deg, rgba(2, 0, 36, 0) 0%, rgb(0 0 0 / 66%) 30%);
}

.team-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-role {
  font-size: 18px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.team-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.team-container {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.hero-carousel {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 100%;
}

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

.carousel-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  padding: 16px 24px;
  font-size: 1.1rem;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  max-width: none;
  text-align: left;
  min-height: 56px;
  max-height: 90px;
  overflow: hidden;
  transition: background 0.3s, max-height 0.4s;
}

.carousel-caption-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.carousel-caption-desc {
  font-size: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
  pointer-events: none;
}

/* Mostra la descrizione solo in hover sulla slide o sulla caption */
.carousel-slide:hover .carousel-caption,
.carousel-slide:focus-within .carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 80%, rgba(0, 0, 0, 0) 100%);
  max-height: 220px;
  transition: max-height 0.4s, background 0.3s;
}

.carousel-slide:hover .carousel-caption-desc,
.carousel-slide:focus-within .carousel-caption-desc {
  opacity: 1;
  max-height: 200px;
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media (max-width: 900px) {
  .separatore-arrow-down {
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .separatore-arrow-down.white {
    margin-top: -20px;
    margin-bottom: 20px;
  }

  .info-section-custom {
    margin: -10px 40px 3rem 40px;
  }
}