/* ========================================
   SEZIONE TESTIMONIANZE - CAROUSEL
   ======================================== */

/* Sezione Testimonianze */
.testimonials-section {
    margin-top: 60px;
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 14px); /* 3 per riga su desktop */
    min-width: calc(33.333% - 14px);
}

.testimonial-content {
    background: #f8f9fa;
    border-left: 4px solid #333;
    padding: 18px 18px 16px 18px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.testimonial-company {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.testimonial-text {
    font-size: 13px;
    line-height: 1.55;
    color: #444;
    font-style: italic;
    margin: 0;
    flex-grow: 1;
}

/* Pulsanti Navigazione */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: #555;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: #333;
    transform: translateY(-50%) scale(1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Indicatori */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #333;
    width: 30px;
    border-radius: 5px;
}

.indicator:hover {
    background: #666;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet: 2 testimonianze per riga */
@media (max-width: 992px) {
    .testimonials-carousel {
        max-width: 900px;
    }

    .testimonial-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .testimonial-content {
        min-height: 260px;
    }
}

/* Mobile: 1 testimonianza per riga */
@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0 50px;
    }

    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .testimonial-content {
        padding: 16px 16px 14px 16px;
        min-height: 240px;
    }

    .testimonial-avatar {
        width: 34px;
        height: 34px;
    }

    .testimonial-initials {
        font-size: 13px;
    }

    .testimonial-name {
        font-size: 14px;
    }
    
    .testimonial-text {
        font-size: 13px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-track {
        gap: 0;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 40px;
    }
    
    .testimonial-content {
        padding: 15px 14px 13px 14px;
        min-height: 260px;
    }

    .testimonial-avatar {
        width: 32px;
        height: 32px;
    }

    .testimonial-initials {
        font-size: 12px;
    }

    .testimonial-name {
        font-size: 13px;
    }
    
    .testimonial-text {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}