.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;
    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-text-wrapper {
    position: absolute;
    bottom: 160px;
    left: 50px;
    width: calc(100% - 60px);
    text-align: left;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s;
}

.phc-slide.phc-active-slide .phc-slide-text-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.phc-mobile-text {
    display: none;
}

.phc-slide-text-link {
    display: inline-block;
    color: #000;
    font-size: 45px;
    font-family: "Montserrat", sans-serif; /* Aggiunto font simile se disponibile, altrimenti usa il default del tema */
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.1;
    max-width: 250px;
    transition: color 0.3s ease;
}

.bianco{
    color: #fff !important;
}

.bianco:hover {
    color: #e30613 !important;
}

.phc-slide-text-link:hover {
    color: #e30613;
}

.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-mobile-img {
    display: none;
}

.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;
    }
    .phc-slide-text-wrapper {
        bottom: 30px;
        left: 20px;
        width: calc(100% - 40px);
    }
    .phc-slide-text-link {
        font-size: 28px;
        max-width: 200px;
    }
    .phc-desktop-text {
        display: none;
    }
    .phc-mobile-text {
        display: inline;
    }
    .phc-desktop-img {
        display: none;
    }
    .phc-mobile-img {
        display: block;
    }

    .phc-pagination-outside .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #a5a5a5;
    border: 0px solid #a5a5a5;
    margin: 0 6px !important;
    }
    .phc-pagination-outside .swiper-pagination-bullet-active {
     background: #000;   
    }
}