/* ================================
   SWIPER CAROUSEL – Horizon CLEAN
   Versione con progress bar sottile e integrata
================================ */
.my-swiper-carousel {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 20px 0;
  overflow: hidden;
}

/* Contenitore principale */
.my-swiper-carousel .swiper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  /*background: #fff;*/
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  clip-path: inset(0 round 16px); /* mantiene i bordi curvi durante la transizione */
}

/* Slide */
.my-swiper-carousel .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /*background: #fff;*/
}

.my-swiper-carousel .swiper-slide > a {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.my-swiper-carousel .swiper-slide > a img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  transform: none !important;
  transition: transform 0.3s ease;
}

.my-swiper-carousel .swiper-slide > a:hover img {
  transform: scale(1.015);
}

/* ========================= */
/* FRECCE OTTIMIZZATE        */
/* ========================= */
.my-swiper-carousel .swiper-button-prev,
.my-swiper-carousel .swiper-button-next {
  background: rgba(19, 125, 139, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  z-index: 10;
  opacity: 0.95;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.my-swiper-carousel .swiper-button-prev:hover,
.my-swiper-carousel .swiper-button-next:hover {
  background: #fff;
  color: var(--color-primary);
  transform: scale(1.08);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.my-swiper-carousel .swiper-button-prev::after,
.my-swiper-carousel .swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}

.my-swiper-carousel .swiper-button-prev { left: 14px !important; }
.my-swiper-carousel .swiper-button-next { right: 14px !important; }

/* ========================= */
/* PROGRESS BAR SOTTILE      */
/* ========================= */
.my-swiper-carousel .swiper-pagination {
  position: absolute;
  bottom: 12px; /* dentro la foto */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  height: 3px; /* più sottile */
  background: rgba(19,125,139,0.15);
  border-radius: 50px;
  overflow: hidden;
  z-index: 20;
  pointer-events: none;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.my-swiper-carousel .swiper-pagination-progressbar-fill {
  background: var(--color-primary) !important;
  border-radius: inherit;
  transition: transform 0.4s ease;
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 1024px) {
  .my-swiper-carousel .swiper-button-prev,
  .my-swiper-carousel .swiper-button-next {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 768px) {
  .my-swiper-carousel .swiper-button-prev,
  .my-swiper-carousel .swiper-button-next {
    width: 38px;
    height: 38px;
  }
  .my-swiper-carousel .swiper-pagination {
    bottom: 10px;
    height: 2.5px;
    width: calc(100% - 36px);
  }
}

/* ========================= */
/* TRANSIZIONE FLUIDA        */
/* ========================= */
.my-swiper-carousel .swiper,
.my-swiper-carousel .swiper-slide {
  transition: border-radius 0.3s ease, overflow 0.3s ease;
}