.phc-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
    position: relative;
}

.phc-swiper {
    width: 100%;
    /* Altezza impostata inline via PHP per ogni carosello */
    overflow: hidden; 
}

.phc-slide {
    width: 350px; 
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Espande la slide attiva */
.phc-slide.phc-active-slide {
    width: 580px;
}

.phc-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.phc-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.phc-img-small, 
.phc-img-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

.phc-img-large {
    opacity: 0;
}

/* Gestione opacità per la slide attiva */
.phc-slide.phc-active-slide .phc-img-small {
    opacity: 0;
}

.phc-slide.phc-active-slide .phc-img-large {
    opacity: 1;
}

.phc-pagination-outside {
    position: relative !important;
    text-align: center;
    margin-top: 25px; 
    width: 100%;
    z-index: 10;
}

.phc-pagination-outside .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background: #fff;
    border: 2px solid #000; 
    opacity: 1;
    margin: 0 8px !important; 
    transition: all 0.3s ease;
    display: inline-block;
}

.phc-pagination-outside .swiper-pagination-bullet:hover,
.phc-pagination-outside .swiper-pagination-bullet-active {
    background: #000; 
    border-color: #000;
}

@media (max-width: 768px) {
    .phc-swiper {
        height: 250px !important; 
    }
    .phc-slide {
        width: 250px;
    }
    .phc-slide.phc-active-slide {
        width: 350px;
    }
}