/* ===== SLIDER TESTIMONIAL CSS ===== */
/* Un file CSS base completo con i comandi base della sezione dei tesstimonial */

/* Stili per lo slider */
.testimonial-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 40px;
    overflow: hidden; /* Aggiungiamo overflow hidden qui per controllare i bordi */
}

.testimonial-slider {
    width: 100%;
    overflow: visible; /* Cambiato da hidden a visible per mostrare le card ai lati */
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 500px; /* Larghezza fissa in pixel invece di percentuale */
    min-width: 0;
    opacity: 0.5;
    transform: scale(0.9);
    background-color: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

/* Rimuoviamo il padding-left per gestire la centratura completamente via JS */
.testimonial-track {
    padding-left: 0;
}

/* Contenitore video */
.testimonial-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background-color: #e9e9e9;
    height: 250px;
}

.testimonial-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controlli video */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-play-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.video-progress {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    margin: 0 10px;
}

.video-progress-filled {
    width: 0;
    height: 100%;
    background-color: #00B4C3;
    transition: width 0.1s linear;
}

.video-time {
    color: white;
    font-size: 12px;
    min-width: 40px;
    text-align: right;
}

/* Contenuto della testimonianza */
.testimonial-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    width: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quote-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.testimonial-text {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-weight: 300;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    align-items: center;
}

.author-info {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #00B4C3;
    margin-bottom: 10px;
}

.author-title {
    font-size: 14px;
    color: #667085;
    font-weight: 400;
    margin-top: 8px;
}

/* Navigazione dello slider */
.testimonial-nav {
    width: 30%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.testimonial-nav:hover {
    opacity: 1;
}

.testimonial-nav-left {
    left: 0;
}

.testimonial-nav-right {
    right: 0;
}

/* Indicatori di posizione */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot-active {
    background-color: #00B4C3;
}

/* Responsive design */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 450px;
    }
}

@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 400px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 350px;
    }
}

.testimonial-track.grabbing {
    cursor: grabbing;
    transition: none !important;
}








.vimeo-player {
    position: relative;
    padding-bottom: 56.25%; /* Rapporto 16:9 */
    height: 100%;
    overflow: hidden;
    max-width: 100%;
}

.vimeo-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}