/* ========================================
   ESTILOS PARA SEÇÃO DE CLIENTES
   ======================================== */

/* ===== SEÇÃO PRINCIPAL ===== */
.clients-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    padding: 15px;
    margin: 10px; /* Margem padrão, será sobrescrita pelo JS do Owl Carousel em breakpoints específicos */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
}

.client-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%); /* Por padrão, fica em escala de cinza */
    opacity: 0.7; /* Opacidade reduzida por padrão */
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

/* Efeito hover para desktop e cor para o item ativo/central */
.client-item:hover img,
.owl-item.active-item-color .client-item img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Remove o transform do hover quando o item já está colorido pelo JS, para evitar pulos */
.owl-item.active-item-color .client-item:hover {
    transform: translateY(0);
}

.icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.icon-img:hover {
    transform: scale(1.1);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .clients-section {
        padding: 50px 0;
    }
    
    .client-item {
        height: 100px;
        padding: 10px;
        margin: 8px;
    }
    
    .client-item img {
        max-height: 60px;
    }
    
    .testimonial.style2 .section-title h1.title {
        font-size: 2rem;
    }
    
    .testimonial.style2 .single-testimonial {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 30px 0 20px 0;
    }
    
    .clients-carousel {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .client-item {
        height: 70px;
        padding: 6px;
        margin: 5px;
        min-width: 90px;
        max-width: 120px;
    }
    
    .client-item img {
        max-height: 40px;
    }
    
    .testimonial.style2 .single-testimonial {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .testimonial.style2 .quote-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .testimonial.style2 .section-title h1.title {
        font-size: 1.8rem;
    }
    
    .testimonial.style2 .client-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial.style2 .client-profile .image {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .clients-section {
        padding: 20px 0 10px 0;
    }
    
    .client-item {
        height: 55px;
        padding: 3px;
        margin: 3px;
        min-width: 70px;
        max-width: 90px;
    }
    
    .client-item img {
        max-height: 28px;
    }
} 