/* ! =========================
   HERO SPLIDE SLIDER
========================= */

.hero-slider-section {
  padding: 120px 0 72px;
}

.hero-slider-shell {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #dfe8f0;
  box-shadow: 0 28px 80px rgba(15, 17, 25, 0.16);
}

.hero-splide,
.hero-splide .splide__track,
.hero-splide .splide__list,
.hero-splide .splide__slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 178, 233, 0.72) 0%,
    rgba(0, 178, 233, 0.5) 24%,
    rgba(255, 255, 255, 0.32) 48%,
    rgba(255, 255, 255, 0.04) 100%
  );
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 25, 0.1) 0%,
    rgba(15, 17, 25, 0.02) 45%,
    rgba(15, 17, 25, 0.16) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding-left: clamp(36px, 7vw, 88px);
  padding-right: 24px;
  color: #ffffff;
}

.hero-slide-content h1,
.hero-slide-content h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2.5rem, 4.5vw, 3rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 26px rgba(15, 17, 25, 0.2);
}

.hero-slide-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 6px 20px rgba(15, 17, 25, 0.16);
}

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, #3f6fd7 0%, #00b2e9 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 178, 233, 0.26);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.hero-slide-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 178, 233, 0.34);
}

/* Splide pagination */

.hero-splide .splide__pagination {
  bottom: 30px;
  z-index: 5;
  gap: 7px;
}

.hero-splide .splide__pagination__page {
  width: 13px;
  height: 13px;
  margin: 0;
  background: rgba(15, 17, 25, 0.35);
  opacity: 1;
  transform: none;
  transition: all 0.22s ease;
}

.hero-splide .splide__pagination__page.is-active {
  background: #ffffff;
  transform: scale(1.05);
}

/* Hide default arrows, se non servono */
.hero-splide .splide__arrow {
  display: none;
}

/* Scroll down button */

.hero-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 8;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(0, 178, 233, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 14px 30px rgba(0, 178, 233, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.hero-scroll-down:hover {
  transform: translateX(-50%) translateY(2px);
  background: rgba(0, 178, 233, 0.88);
}

.hero-scroll-down span {
  width: 16px;
  height: 16px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
  margin-top: -7px;
}

.hero-scroll-down span:first-child {
  opacity: 0.65;
}

/* Responsive */

@media (max-width: 1199.98px) {
  .hero-slide {
    min-height: 560px;
  }
}

@media (max-width: 991.98px) {
  .hero-slider-section {
    padding: 108px 0 62px;
  }

  .hero-slide {
    min-height: 520px;
    background-position: center;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      90deg,
      rgba(0, 178, 233, 0.78) 0%,
      rgba(0, 178, 233, 0.58) 40%,
      rgba(15, 17, 25, 0.18) 100%
    );
  }

  .hero-slide-content {
    max-width: 620px;
    padding-left: 42px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider-section {
    padding: 98px 0 46px;
  }

  .hero-slider-shell,
  .hero-slide {
    border-radius: 24px;
  }

  .hero-slide {
    min-height: 520px;
    align-items: flex-end;
    background-position: center right;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 17, 25, 0.05) 0%,
      rgba(0, 178, 233, 0.56) 46%,
      rgba(0, 60, 90, 0.88) 100%
    );
  }

  .hero-slide-content {
    padding: 0 24px 108px;
  }

  .hero-slide-content h1,
  .hero-slide-content h2 {
    font-size: 2.55rem;
  }

  .hero-slide-content p {
    font-size: 1.08rem;
  }

  .hero-slide-btn {
    width: 100%;
  }

  .hero-scroll-down {
    bottom: 62px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .hero-splide .splide__pagination {
    bottom: 24px;
  }
}
