/* ! =========================
   SLIDE CARD PRODOTTI RESTYLE
========================= */

.products-carousel-section {
  padding: 70px 0;
  background: transparent;
}

.products-carousel-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

.products-carousel-head {
  margin-bottom: 24px;
}

.products-carousel-head h2 {
  margin: 0;
  color: #717985;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
}

/* Splide */

.products-carousel-splide {
  position: relative;
}

.products-carousel-splide .splide__track {
  overflow: hidden;
}

.products-carousel-splide .splide__list {
  align-items: stretch;
}

.products-carousel-splide .splide__slide {
  height: auto;
}

/* Card */

.product-slide-card {
  height: 100%;
}

.product-slide-link {
  height: 100%;
  min-height: 660px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #101217;
  box-shadow: 0 18px 38px rgba(15, 17, 25, 0.12);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

/* Image container */

.product-slide-media {
  position: relative;
  height: 390px;
  flex: 0 0 390px;
  overflow: hidden;
  background: #d8dce2;
}

.product-slide-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition:
    transform 0.55s ease,
    filter 0.35s ease;
}

/* Sfumatura solo sul fondo dell'immagine */
.product-slide-media-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(56, 59, 66, 0) 0%,
    rgba(56, 59, 66, 0.34) 46%,
    rgba(56, 59, 66, 0.98) 100%
  );
  z-index: 2;
}

/* Content container */

.product-slide-content {
  position: relative;
  flex: 1;
  margin-top: -1px;
  padding: 28px 30px 30px;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(56, 59, 66, 0.98) 0%,
    #383b42 34%,
    #383b42 100%
  );
  display: flex;
  flex-direction: column;
}

.product-slide-content h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.85rem, 2.1vw, 2.4rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.product-slide-content h4 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.02rem, 1.2vw, 1.28rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.product-slide-text {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.94rem;
  line-height: 1.48;
  margin-bottom: 24px;
}

.product-slide-text p {
  margin: 0;
}

.product-slide-text strong,
.product-slide-text b {
  color: #ffffff;
  font-weight: 900;
}

.product-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, #3f6fd7 0%, #00b2e9 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 178, 233, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover */

.product-slide-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(15, 17, 25, 0.16);
}

.product-slide-link:hover .product-slide-media img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.03);
}

.product-slide-link:hover .product-slide-cta {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 178, 233, 0.36);
}

/* Arrows */

.products-carousel-arrows {
  pointer-events: none;
}

.products-carousel-arrow {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #101217;
  opacity: 1;
  box-shadow:
    0 0 0 4px rgba(0, 178, 233, 0.2),
    0 12px 28px rgba(0, 178, 233, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.products-carousel-arrow svg,
.products-carousel-arrow span {
  display: none;
}

.products-carousel-arrow::before {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #101217;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-2px);
}

.products-carousel-splide .splide__arrow--prev::before {
  content: "«";
}

.products-carousel-splide .splide__arrow--next::before {
  content: "»";
}

.products-carousel-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
  box-shadow:
    0 0 0 5px rgba(0, 178, 233, 0.26),
    0 16px 34px rgba(0, 178, 233, 0.36);
}

.products-carousel-splide .splide__arrow--prev {
  left: -28px;
}

.products-carousel-splide .splide__arrow--next {
  right: -28px;
}

.products-carousel-splide .splide__pagination {
  display: none;
}

/* Responsive */

@media (max-width: 1199.98px) {
  .product-slide-link {
    min-height: 640px;
  }

  .product-slide-media {
    height: 370px;
    flex-basis: 370px;
  }
}

@media (max-width: 991.98px) {
  .products-carousel-section {
    padding: 62px 0;
  }

  .product-slide-link {
    min-height: 620px;
  }

  .product-slide-media {
    height: 360px;
    flex-basis: 360px;
  }

  .products-carousel-splide .splide__arrow--prev {
    left: 14px;
  }

  .products-carousel-splide .splide__arrow--next {
    right: 14px;
  }
}

@media (max-width: 767.98px) {
  .products-carousel-section {
    padding: 52px 0;
  }

  .products-carousel-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .product-slide-link {
    min-height: 620px;
    border-radius: 16px;
  }

  .product-slide-media {
    height: 355px;
    flex-basis: 355px;
  }

  .product-slide-content {
    padding: 26px 24px 24px;
  }

  .product-slide-content h3 {
    font-size: 2.05rem;
  }

  .product-slide-content h4 {
    font-size: 1.1rem;
  }

  .products-carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .products-carousel-arrow::before {
    font-size: 2.05rem;
  }
}
