.swiper-services {
	overflow: hidden;
}

.swiper-services .service-background {
    background-color: #BCBBBB;
    position: relative;
    height: 491px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3.5rem 1.5em 1.5rem 1.5rem;
}

#servizi-pagination {
z-index: 0;
}
#servizi-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
	background: #fff;
	opacity: 1;

}
#servizi-pagination .swiper-pagination-bullet-active {
    background: #65A2FF;
}

.swiper-footer {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    position: relative;
}
.swiper-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10rem;
    align-items: center;
}
#servizi-next, #servizi-prev {
	background: #65A2FF;  /* blue background */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    border: 2px solid #65A2FF;
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
}
/* Disabled button basic style */
#servizi-next.swiper-button-disabled,
#servizi-prev.swiper-button-disabled {
    background: transparent;
    border: 2px solid #65A2FF;
    opacity: 0.6;
    pointer-events: none;
}

/* ====== ARROW (pseudo) ======
   We use border-left + border-top to draw the arrow "chevron",
   then rotate to point right (next) or left (prev).
*/
#servizi-next::after,
#servizi-prev::after {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border-left: 2px solid #fff; /* default arrow color (light) */
    border-top: 2px solid #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* Next = right arrow */
#servizi-next::after {
    transform: rotate(135deg);
}

/* Prev = left arrow */
#servizi-prev::after {
    transform: rotate(-45deg);
}

/* Hover: invert background, keep border; arrow turns blue */
#servizi-prev:hover,
#servizi-next:hover {
    background: transparent;
    border: 2px solid #65A2FF;
}

#servizi-prev:hover::after,
#servizi-next:hover::after {
    border-left-color: #65A2FF;
    border-top-color: #65A2FF;
}

/* ====== Disabled arrow appearance ======
   When Swiper adds .swiper-button-disabled we make the arrow the blue color,
   keep rotation intact, and reduce opacity of the button.
*/
#servizi-next.swiper-button-disabled::after,
#servizi-prev.swiper-button-disabled::after {
    border-left-color: #65A2FF;
    border-top-color: #65A2FF;
    opacity: 1;
}

/* Slight visual adjustment when disabled so chevron stands out on transparent bg */
#servizi-next.swiper-button-disabled,
#servizi-prev.swiper-button-disabled {
    background: transparent;
}

@media only screen and (max-width: 767px){
	.swiper-nav {
		gap: 13rem;
	}
	.swiper-services .service-background {
        height: 520px;
    }	
	
	.swiper-footer {
		margin-top: 30px;
	}
}