/* faixa laranja */

.barra_clientes {
    position: relative;
    width: auto !important;
    margin-right: -60px;
    height: 40px;
    background: var(--cor-primaria);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

/* bloco escuro */
.box {
    display: flex;
    justify-content: center;
    background: #354248;
    color: white;
    height: 120%;
    padding: 15px 40px;
    width: 40%;
    font-size: 1.0rem;
    font-weight: 400;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    position: relative;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    align-items: center;
    justify-content: left;
    margin-top: 20px;
}

.box::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 65%;
    width: 398px;
    height: 2px;
    background: var(--cor-primaria);
    z-index: 3;
}

.carousel {
    margin-top: 3%;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

/* 5 itens visíveis */
.carousel-track img {
    width: calc(100vw / 5);
    max-width: 200px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    /* filter: grayscale(100%); */
    opacity: 0.7;
    transition: 0.3s;
}

.carousel-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* animação infinita */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .barra_clientes {
        width: auto !important;
        margin-left: -10px !important;
        margin-right: 0px !important;
    }

    .box {
        width: 85%;
        /* Aumentado para o texto não ficar apertado */
        padding: 10px 20px;
    }

    .box span {
        font-size: 0.8rem;
        /* Um pouco maior para leitura */
        line-height: 1.2;
    }

    .box::before {
        display: none;
    }

    .carousel-track img {
        width: calc(100vw / 3);
        /* Mostra 3 logos por vez no mobile */
        height: 50px;
    }
}