/* Quando descer a página */
.header-transparent {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
    /* totalmente transparente no topo */
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease;

}

.scrolled {
    background: rgba(0, 0, 0, 0.75) !important;
    /* cor que quiser */
    backdrop-filter: blur(6px);
    /* opcional: efeito premium */
}

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slides base */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Vídeo YouTube */
.slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 130%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Overlay escuro */
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Conteúdo de cada slide */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    opacity: 0;
}

.slide.active .slide-content {
    opacity: 1;
}

iframe {
    pointer-events: none;
    filter: brightness(0.6);
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
    /* deixa o texto branco */
    text-align: center;
    /* centraliza horizontalmente */
    margin-top: 10px;
    /* espaçamento entre o h1 e o p */
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}

/* Controles (setas) */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.control-btn {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.slide.zoom-image {
    transform: scale(1);
}

.slide.active.zoom-image {
    animation: zoomIn 12s ease-in-out forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12);
    }
}


.clientes-wrapper {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-clientes {
    color: #7A1C1C;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.clientes-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(5, 1fr);
    /* Desktop grande */
}

/* 4 itens até 1199px */
@media (max-width: 1199px) {
    .clientes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 itens até 800px (opcional para suavizar a transição) */
@media (max-width: 800px) {
    .clientes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 itens no smartphone */
@media (max-width: 600px) {
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Card padrão (ESCONDIDO) */
.cliente-item {
    display: none;
    /* agora não ocupa espaço */
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    height: 160px;
    justify-content: center;
    align-items: center;
}

/* Quando estiver visível */


.cliente-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.4s cubic-bezier(.16, .84, .44, 1),
        transform 1.4s cubic-bezier(.16, .84, .44, 1);

}

.cliente-item.show {
    opacity: 1;
    transform: translateY(0);
    cursor: pointer;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cliente-item img {
    width: 90%;
    /* ocupa quase toda a largura */
    height: 90%;
    /* cresce proporcionalmente */
    object-fit: contain;
    max-height: 110px;
    /* ANTES era 80px → agora muito melhor */
    margin: 0 auto;
    filter: grayscale(100%);
    transition: .3s;
}


.cliente-item img:hover {
    filter: grayscale(0);
}

/* Botão centralizado */
#btnMostrarMais {
    margin-top: 35px;
    padding: 10px 20px;
    background: #999;
    color: #FFF;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 16px;
    transition: .3s;
}

#btnMostrarMais:hover {
    background: #1b1b1b;
    color: #FFF;
}

.count-wrap {
    display: inline-flex;
    align-items: baseline;
    /* mantém alinhamento perfeito */
    gap: 4px;
    /* espaço entre prefixo e número */
}

.count-prefix {
    color: #d4181f;
    font-size: 2rem;
    font-weight: 700;
}


.fundo-diagonal {
    position: relative;
    background: #efefef;
    padding: 60px 0 !important;
    overflow: visible;
    z-index: 1;
    top: -120px;
}

/* Faixa branca inclinada por trás do vermelho */
.fundo-diagonal-top {
    /* content: ""; */
    position: relative;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: #efefef;
    transform: skewY(2deg);
    transform-origin: top left;
    z-index: 0;
}

.fundo-diagonal-bottom {
    /* content: ""; */
    position: relative;
    top: -155px;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #efefef;
    transform: skewY(358deg);
    transform-origin: bottom left;
    z-index: 0;
    margin-bottom: -40px;
}

.bg-cidades {
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    /* cobre toda a área horizontal */
    padding: 180px 0;
}


.gif-bg-container {
    position: relative;
    width: 100%;
    padding: 15px 0;

    background-image: url('video-fundo.gif?v=2');
    background-size: cover;
    /* ocupa toda a área */
    background-position: center;
    /* centraliza */
    background-repeat: no-repeat;
    margin-bottom: 50px;
}

/* Sombra opcional */
.gif-bg-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
