/* ==========================================================================
   CLIENTES - DESKTOP (E ESTRUTURA GERAL)
   ========================================================================== */
.nossos-clientes {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.nossos-clientes h2 {
    color: #3e546e;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.clientes-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.clientes-overflow {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clientes-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.cliente-item {
    flex: 0 0 25%; /* Exibe 4 logos por vez no desktop */
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cliente-item img {
    max-width: 150px;
    height: auto;
    filter: none !important; 
    opacity: 1 !important; 
    transition: transform 0.3s;
}

.cliente-item img:hover {
    transform: scale(1.1);
}

/* Controles: Setas e Dots */
.nossos-clientes .slider-prev,
.nossos-clientes .slider-next {
    background: #666;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.slider-dots {
    margin-top: 30px;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #717171;
}

/* ==========================================================================
   CLIENTES - DESKTOP Versão para 1400px
   ========================================================================== */
@media screen and (max-width: 1400px) {
    .clientes-slider-container {
        max-width: 1000px !important; /* Container um pouco mais justo */
        padding: 0 40px !important;    /* Espaço lateral para as setas */
    }
    .cliente-item img {
        max-width: 140px; 
    }
}

/* ==========================================================================
   CLIENTES - DESKTOP Versão para 1024px
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .clientes-slider-container {
        max-width: 800px !important;
        padding: 0 40px !important;
    }
    .cliente-item img {
        max-width: 120px; 
    }
    /* Setas levemente menores para não obstruir o conteúdo */
    .nossos-clientes .slider-prev,
    .nossos-clientes .slider-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}


/* ==========================================================================
   CLIENTES - MOBILE (MÁXIMO 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    .clientes-wrapper {
        width: auto !important; /* Remove a largura forçada que causava o vazio */
    }

    .cliente-item {
        flex: 0 0 100% !important; /* Exibe 1 logo por vez no mobile */
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .cliente-item img {
        max-width: 180px; /* Logos levemente maiores no mobile para destaque */
    }

    /* Oculta as setas no mobile para priorizar o uso dos dots/swipe */
    .nossos-clientes .slider-prev,
    .nossos-clientes .slider-next {
        display: none; 
    }

    .nossos-clientes h2 {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   MEDIA QUERIES - RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .container-banner-2 {
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 120px !important;
        gap: 20px !important;
    }
    .texto-lateral-banner {
        order: 1 !important;
        text-align: center !important;
        width: 100% !important;
    }
    .texto-lateral-banner h2 {
        font-size: 1.1rem !important;
        letter-spacing: 1px;
    }
    .centro-banner {
        order: 2 !important;
        display: block !important;
        width: 100% !important;
    }
    .centro-banner img {
        max-height: 200px !important;
        margin-top: 0 !important;
    }
    .logo-marinha-banner {
        order: 3 !important;
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
        text-align: center !important;
        padding: 0 !important;
    }
    .marinha-card {
        width: 100% !important;
        max-width: 340px !important;
        padding: 12px 16px !important;
    }
    .logo-marinha-banner img {
        height: 40px !important;
        margin: 0 auto !important;
    }
    .logo-marinha-banner p {
        font-size: 0.8rem !important;
    }
    .marinha-text-box {
        margin-left: 0 !important;
        text-align: center !important;
    }
    
}