/* ============================================
   CARROSSEL – ADS SOBRE NÓS
   ============================================ */

.ads-sobre-nos-carrossel {
    clear: both;
    padding: 10px 0 30px 0;
    position: relative;
}

/* SLIDES */
.ads-sobre-nos-carrossel .splide__slide {
    border-radius: var(--borda-img, 8px);
    overflow: hidden;
}

.ads-sobre-nos-carrossel .splide__slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--borda-img, 8px);
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.ads-sobre-nos-carrossel .splide__slide img:hover {
    transform: scale(1.04);
}

/* ============================================
   SETAS – desabilita SVG padrão do Splide
   e desenha com CSS puro
   ============================================ */

.ads-sobre-nos-carrossel .splide__arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    font-size: 0 !important; /* esconde texto interno */
}

.ads-sobre-nos-carrossel .splide__arrow:hover {
    background: rgba(0, 0, 0, 0.85) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Zera o SVG padrão do Splide */
.ads-sobre-nos-carrossel .splide__arrow svg {
    display: none !important;
}

/* Desenha as setas com CSS */
.ads-sobre-nos-carrossel .splide__arrow--prev::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg) translateX(2px);
}

.ads-sobre-nos-carrossel .splide__arrow--next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg) translateX(-2px);
}

/* Posição lateral das setas */
.ads-sobre-nos-carrossel .splide__arrow--prev {
    left: 10px !important;
}

.ads-sobre-nos-carrossel .splide__arrow--next {
    right: 10px !important;
}

/* ============================================
   LIGHTBOX
   ============================================ */

/*.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.25s ease;
}*/


/* Overlay clicável no fundo */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;      /* indica que o fundo é clicável */
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* Container interno não fecha ao clicar (só o fundo fecha) */
.lightbox-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 120px 20px 40px 20px;  /* espaço pro botão fechar no topo */
    cursor: default;               /* reseta o cursor no conteúdo */
}

/* Wrap da imagem */
.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 85vw;
    max-height: 75vh;
    cursor: default;
}

/* Imagem ampliada menor */
.lightbox-img {
    max-width: 85vw;
    max-height: 75vh;    /* reduzi de 85 para 75 pra dar espaço pro botão fechar */
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.6);
    animation: lightboxZoomIn 0.2s ease;
    display: block;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Botão fechar — garante que aparece sempre por cima */
.lightbox-close {
    position: fixed;      /* fixed ao invés de absolute */
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10001;       /* acima do overlay */
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.45);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 52px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-contador {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {

    .ads-sobre-nos-img-flutuante {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .ads-sobre-nos-botoes {
        flex-direction: column;
        align-items: center;
    }

    .btn-ads-sobre-nos {
        text-align: center;
    }

    /* Setas entram pra dentro no mobile */
    .ads-sobre-nos-carrossel .splide__arrow--prev {
        left: 5px !important;
    }

    .ads-sobre-nos-carrossel .splide__arrow--next {
        right: 5px !important;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 36px;
    }
}