/* 05-carrossel.css
 * Carrossel de Destaques (Hero Carousel)
 * Criado por Agência Federal
 * https://agencia.federal.gov.br
 */

/* =========================
   HERO CAROUSEL (Destaques)
   ========================= */
.af-hero-carousel {
    position: relative;
    width: 100%;
    background: #07090c;
    border-bottom: 1px solid var(--af-border);

    /* ✅ NOVO: sombra/profundidade abaixo do carrossel */
    box-shadow: 0 18px 42px rgba(0, 0, 0, .55);
    z-index: 2;
}

/* ✅ NOVO: faixa de sombra/fade abaixo do carrossel */
.af-hero-carousel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 38px;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, 0));
}

/* ✅ mantém o carrossel “grande”, independente do hero base */
.af-hero-track {
    position: relative;
    width: 100%;

    /* antes: clamp(360px, 55vw, 560px) */
    height: clamp(420px, 56vw, 640px);

    overflow: hidden;
}

.af-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .5s ease, transform .8s ease;
    pointer-events: none;
}

.af-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.af-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .20) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .20) 0%, rgba(0, 0, 0, .60) 100%);
}

.af-hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1px);

    background-size: 5px 5px;
    mix-blend-mode: multiply;
    opacity: .45;
}

.af-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    /* padding responsivo pro conteúdo não “comer” a altura */
    padding: clamp(34px, 4.5vw, 56px) 0;
}

.af-hero-kicker {
    color: rgba(255, 255, 255, .75);
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}

.af-hero-title {
    margin: 0 0 10px 0;
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: 1.05;
    letter-spacing: .02em;
}

.af-hero-title a {
    color: var(--af-white);
    text-decoration: none;
}

.af-hero-title a:hover {
    color: var(--af-gold);
    text-decoration: none;
}

.af-hero-text {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, .85);
    max-width: 760px;
}

.af-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* setas */
.af-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    /* era 44 */
    height: 54px;
    /* era 44 */
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(0, 0, 0, .38);
    backdrop-filter: blur(6px);

    color: var(--af-white);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    /* era 26 */
    line-height: 1;

    box-shadow:
        0 14px 28px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);

    z-index: 3;
}

.af-hero-nav:hover {
    border-color: rgba(212, 175, 55, .65);
    background: rgba(0, 0, 0, .50);
    transform: translateY(-50%) scale(1.04);
}

.af-hero-prev {
    left: 18px;
}

.af-hero-next {
    right: 18px;
}

/* dots */
.af-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
    padding: 10px 12px;
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .34);
    backdrop-filter: blur(10px);

    box-shadow: 0 12px 26px rgba(0, 0, 0, .30);
}

.af-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    cursor: pointer;
}

.af-hero-dot[aria-selected="true"] {
    background: rgba(212, 175, 55, .95);
    border-color: rgba(212, 175, 55, .95);
}