/* section-8-testimonials.css */

.section-testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f9f8 0%, #e9f0ef 100%);
    position: relative;
    overflow: hidden;
}

.section-testimonials::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(10, 77, 64, 0.05) 0%, rgba(10, 77, 64, 0) 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.section-testimonials .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #0A4D40;
    position: relative;
    z-index: 10;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transition: all 0.5s ease;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: perspective(1000px) rotateY(2deg) rotateX(2deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-card:hover .testimonial-photo img {
    transform: scale(1.05);
}

.verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #0A4D40;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.verified-badge::before {
    content: '✓';
    margin-right: 5px;
    font-weight: bold;
}

.testimonial-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #333;
}

.testimonial-text .highlight {
    font-weight: 700;
    color: #F18F1C;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.testimonial-author h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #0A4D40;
}

.testimonial-author p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.clients-logos {
    text-align: center;
    padding: 40px 0 0;
}

.clients-logos h3 {
    font-size: 24px;
    color: #0A4D40;
    margin-bottom: 30px;
    font-weight: 600;
}

.logos-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logos-carousel::before,
.logos-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.logos-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #f5f9f8 0%, rgba(245, 249, 248, 0) 100%);
}

.logos-carousel::after {
    right: 0;
    background: linear-gradient(90deg, rgba(245, 249, 248, 0) 0%, #f5f9f8 100%);
}

.logo-item {
    flex: 0 0 16.666%;
    min-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Animação do carrossel */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logos-carousel {
    animation: scrollLogos 30s linear infinite;
}

/* Media Queries para Responsividade */
@media (max-width: 1199px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-testimonials .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-testimonials {
        padding: 60px 0;
    }
    
    .section-testimonials .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .logo-item {
        flex: 0 0 50%;
        min-width: 120px;
    }
    
    .section-testimonials .section-title {
        font-size: 24px;
    }
}