
/* ==========================================
   ZETA JOURNAL
   AJUSTES DO CARROSSEL PRINCIPAL

   Não altera a largura nem a altura
   original definida no style.css.
========================================== */

#zjHeroCarrossel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* FUNDO ADAPTADO À IMAGEM */

#zjHeroCarrossel .zj-hero-fundo {
    position: absolute;
    inset: -15px;
    z-index: 0;

    background-position: center;
    background-size: cover;

    filter: blur(17px) brightness(.65);
    transform: scale(1.07);

    pointer-events: none;
}


/* IMAGENS DO CARROSSEL — AJUSTE AUTOMÁTICO */

#zjHeroCarrossel > img.zj-hero-foto,
#zjHeroCarrossel > img.zj-hero-fantasma {
    display: block;

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;

    /* Preenche o painel sem distorcer a imagem */
    object-fit: cover;
    object-position: center center;

    /* Ampliação discreta de 4% */
    transform: scale(1.04);
    transform-origin: center center;

    margin: 0;
    padding: 0;
}

#zjHeroCarrossel > img.zj-hero-foto {
    z-index: 1;
}

#zjHeroCarrossel::before {
    z-index: 2;
}

/* TRANSIÇÃO SUAVE */

#zjHeroCarrossel > img.zj-hero-fantasma {
    z-index: 3;

    opacity: 1;
    pointer-events: none;

    transition: opacity .55s ease;
}

/* SETAS LATERAIS */

#zjHeroCarrossel .zj-hero-seta {
    display: grid;
    place-items: center;

    position: absolute;
    top: 50%;
    z-index: 5;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;
    padding: 0;

    color: #fff;
    background: rgba(6,27,44,.64);

    border: 1px solid rgba(255,255,255,.68);
    border-radius: 50%;

    cursor: pointer;

    font: 600 32px/1 Arial, sans-serif;

    box-shadow: 0 3px 13px rgba(0,0,0,.2);

    transition:
        background .2s,
        transform .2s;
}

#zjHeroCarrossel .zj-hero-seta:hover {
    background: rgba(6,27,44,.93);
}

#zjHeroCarrossel .zj-hero-seta:focus-visible,
#zjHeroCarrossel .zj-hero-ponto:focus-visible {
    outline: 3px solid #f2c65e;
    outline-offset: 3px;
}

#zjHeroCarrossel .zj-hero-seta[disabled] {
    opacity: .32;
    cursor: default;
}

#zjHeroCarrossel .zj-hero-anterior {
    left: 13px;
}

#zjHeroCarrossel .zj-hero-proxima {
    right: 13px;
}

/* INDICADORES DAS IMAGENS */

#zjHeroCarrossel .zj-hero-pontos {
    display: flex;
    gap: 8px;
    align-items: center;

    position: absolute;
    z-index: 5;

    bottom: 13px;
    left: 50%;

    transform: translateX(-50%);

    padding: 8px 10px;
    border-radius: 25px;

    background: rgba(6,27,44,.59);
}

#zjHeroCarrossel .zj-hero-ponto {
    padding: 0;

    width: 9px;
    height: 9px;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    background: #d1d3d5;
}

#zjHeroCarrossel .zj-hero-ponto[aria-current="true"] {
    width: 23px;
    background: #ecc16a;
}

#zjHeroCarrossel .zj-hero-pontos[hidden] {
    display: none !important;
}

/* RESPONSIVIDADE */

@media (max-width: 600px) {
    #zjHeroCarrossel .zj-hero-seta {
        width: 36px;
        height: 36px;
        font-size: 27px;
    }

    #zjHeroCarrossel .zj-hero-anterior {
        left: 7px;
    }

    #zjHeroCarrossel .zj-hero-proxima {
        right: 7px;
    }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {
    #zjHeroCarrossel > img.zj-hero-fantasma {
        transition: none;
    }
}

/* ==========================================
   ZETA JOURNAL
   AJUSTE FINAL DO BANNER PRINCIPAL
   Altura ampliada e laterais desfocadas
========================================== */

/* Altura um pouco maior no computador */
@media (min-width: 761px) {
    .destaque.zj-hero {
        min-height: 365px;
    }

    #zjHeroCarrossel {
        min-height: 365px;
    }
}

/* Recupera o efeito de fundo desfocado */
#zjHeroCarrossel .zj-hero-fundo {
    background-size: cover;
    background-position: center;

    filter: blur(20px) brightness(.72);
    transform: scale(1.08);
}

/* Imagem principal proporcional */
#zjHeroCarrossel > img.zj-hero-foto,
#zjHeroCarrossel > img.zj-hero-fantasma {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: scale(1.025);
    transform-origin: center;
}

/* Mantém a adaptação no celular */
@media (max-width: 760px) {
    #zjHeroCarrossel {
        min-height: 250px;
    }
}
