.swiper-capab {
    --border-gradient-50: linear-gradient(
       270deg,
        rgba(166, 132, 168, 0.15),
        rgba(166, 132, 168, 0.40)
    );

    --border-gradient-100: linear-gradient(
        270deg,
        rgba(166, 132, 168, 0.30),
        rgba(166, 132, 168, 0.60)
    );

    --card-bg-gradient: linear-gradient(
        90deg,
        rgba(166, 132, 168, 0.05),
        rgba(166, 132, 168, 0.15)
    );
}

.swiper-capab{
	width: 100%;
	overflow: visible;
	position: relative;
	margin: 0;
}

.swiper-capab .swiper-slide{
	position: relative;
    background-color: transparent;
    transition: 0.3s ease-in-out;
}

.swiper-capab .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--border-gradient-50);
    transition: background 0.3s ease-in-out;
    pointer-events: none;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.swiper-capab .card-custom{
	min-height: 470px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: var(--white);
	padding: 24px;
	transition: 0.3s ease-in-out;
}

.swiper-capab .card-custom {
    position: relative;
    z-index: 2;
}

.swiper-capab .card-custom::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-bg-gradient);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

/* Hover che funziona */
.swiper-capab .swiper-slide:hover .card-custom::after {
    opacity: 1;
}


.swiper-capab .swiper-slide:hover::before {
    background: var(--border-gradient-100);
}

.swiper-capab .swiper-slide:hover .card-custom {
    background: var(--card-bg-gradient);
    transition: background 0.3s ease-in-out;
}

.swiper-capab .card-custom p{
	font-size: 18px;
	color: var(--accent);
}

.swiper-capab .card-custom h4{
	font-size: 46px;
	color: #EEE3E1;
}

.swiper-capab .description-capab, .swiper-capab .description-capab p{
	color: var(--grey);
}

.swiper-capab .swiper-slide:hover .arrow-btn-18{
	color: var(--black);
}

.swiper-capab .swiper-slide:hover .arrow-btn-18::before{
	background-image: url('/wp-content/uploads/2025/02/arrow-black.png');
}

.swiper-scrollbar-custom {
  position: absolute;
  bottom: -70px;
  left: 12px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  overflow: hidden;
}

.swiper-scrollbar-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease-in-out;
  border-radius: 5px;
}

@media only screen and (max-width: 1440px){
	.swiper-scrollbar-custom {
	  position: absolute;
	  bottom: -70px;
	  left: 36px;
	  width: 100%;
	  height: 2px;
	  background: rgba(255, 255, 255, 0.3);
	  border-radius: 5px;
	  overflow: hidden;
	}
}

@media only screen and (max-width: 768px){	
	.swiper-capab .card-custom h3{
		font-size: 25px;
	}
	
	.swiper-scrollbar-custom {
		bottom: -30px;
	}
	
	.swiper-capab .card-custom {
		min-height: 330px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		color: var(--white);
		padding: 20px;
	}
	
	.swiper-scrollbar-custom {
		  left: 12px;
		}
}

.swiper-capab .navig-btns {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; 
}

.swiper-capab .navig-btns .swiper-button-prev,
.swiper-capab .navig-btns .swiper-button-next {
  position: relative;
  width: 50px;
  height: 50px;
  pointer-events: auto; /* riattiva il click */
}

/* Prev */
.swiper-capab .navig-btns .swiper-button-prev::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url(/wp-content/uploads/2025/12/arrow-left.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Next */
.swiper-capab .navig-btns .swiper-button-next::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url(/wp-content/uploads/2025/12/arrow-blake.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Mobile: i bottoni un po’ più vicini al centro */
@media only screen and (max-width: 768px) {
  .swiper-capab .navig-btns .swiper-button-prev {
    left: 10px;
  }

  .swiper-capab .navig-btns .swiper-button-next {
    right: 10px;
  }
}