/* ===========================================
   ALE BANNER — Hero Fullscreen com Tabs
   =========================================== */

/* --- CONTAINER PRINCIPAL --- */
.ale-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background-color: #0d121c;
}

.ale-banner.has-bottom-radius {
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
}

/* --- FUNDOS (imagem/video) --- */
.ale-banner__backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ale-banner__bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.ale-banner__bg.is-active {
    opacity: 1;
    pointer-events: auto;
}


.ale-banner__img,
.ale-banner__video,
.ale-banner__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ale-banner__yt {
    border: 0;
    pointer-events: none;
}

.ale-banner__fallback {
    z-index: 0;
}

.ale-banner__video {
    z-index: 1;
}

/* --- OVERLAY (gradient lateral — so cobre a area do texto) --- */
.ale-banner__overlay {
    --ale-overlay-color: rgba(13, 18, 28, 0.85);
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        var(--ale-overlay-color) 0%,
        color-mix(in srgb, var(--ale-overlay-color) 70%, transparent) 35%,
        color-mix(in srgb, var(--ale-overlay-color) 20%, transparent) 60%,
        transparent 80%
    ) !important;
    pointer-events: none;
}

/* --- CONTAINER DE CONTEUDO --- */
.ale-banner__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 120px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
}

.ale-banner__contents {
    position: relative;
    max-width: 680px;
    margin-bottom: 48px;
    min-height: 200px;
}

.ale-banner__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ale-banner__content.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* --- ANIMACOES DE ENTRADA --- */
@keyframes aleFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.ale-banner__content.is-active .ale-banner__title {
    animation: aleFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ale-banner__content.is-active .ale-banner__subtitle {
    animation: aleFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.ale-banner__content.is-active .ale-banner__cta {
    animation: aleFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* --- TIPOGRAFIA --- */
.ale-banner__title {
    font-family: 'Mont', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.ale-banner__title .is-highlight {
    color: #0099D6;
    font-style: italic;
}

.ale-banner__subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 480px;
}

/* --- CTA BUTTON --- */
.ale-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.05);
}

.ale-banner__cta:hover {
    border-color: #0099D6;
    color: #0099D6;
    background: rgba(0, 153, 214, 0.1);
}

.ale-banner__cta:hover .ale-banner__cta-arrow {
    transform: translateX(4px);
}

.ale-banner__cta-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* --- SETAS (canto direito, acima da barra) --- */
.ale-banner__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
    margin-bottom: 16px;
}

.ale-banner__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    flex-shrink: 0;
}

.ale-banner__arrow svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ale-banner__arrow:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* --- BARRA DE PROGRESSO + LABELS --- */
.ale-banner__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ale-banner__progress {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.ale-banner__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #0099D6;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0, 153, 214, 0.4);
}

.ale-banner__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
}

.ale-banner__tab {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    white-space: nowrap;
}

.ale-banner__tab.is-active {
    color: #ffffff;
    font-weight: 500;
}

.ale-banner__tab.is-next {
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.3s;
}

.ale-banner__tab.is-next:hover {
    color: rgba(255, 255, 255, 0.6);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .ale-banner__container {
        padding: 60px 32px 32px;
    }

    .ale-banner__content {
        max-width: 560px;
        margin-bottom: 40px;
    }

    .ale-banner__arrow {
        width: 36px;
        height: 36px;
    }
}

/* =============================================
   MOBILE — layout proprio, nao remendo do desktop
   ============================================= */
@media (max-width: 767px) {

    /* Banner fullscreen */
    .ale-banner {
        min-height: 100vh;
        min-height: 100svh;
    }

    /* Imagem: fica no topo, ocupa 45% da altura */
    .ale-banner__backgrounds {
        height: 45%;
        bottom: auto;
    }

    /* Overlay: imagem derrete pro fundo escuro */
    .ale-banner__overlay {
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 20%,
            rgba(13, 18, 28, 0.6) 35%,
            #0d121c 50%,
            #0d121c 100%
        ) !important;
    }

    /* Container: conteudo comeca no terco da tela */
    .ale-banner__container {
        padding: 0 24px 24px;
        padding-top: 30vh;
        justify-content: flex-start;
        gap: 0;
        max-width: 100%;
    }

    /* Contents: bloco de texto, sem truques */
    .ale-banner__contents {
        position: static;
        min-height: 0;
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    /* Cada slide de texto */
    .ale-banner__content {
        position: static;
        text-align: center;
        display: none;
        opacity: 1;
    }

    .ale-banner__content.is-active {
        position: static;
        display: block;
        opacity: 1;
    }

    /* Titulo: grande, centralizado, usa toda largura */
    .ale-banner__title {
        font-size: clamp(1.75rem, 8.5vw, 2.5rem);
        text-align: center;
        margin: 0 0 12px 0;
        max-width: 100%;
    }

    /* Subtitulo */
    .ale-banner__subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
        text-align: center;
        max-width: 100%;
        margin: 0;
    }

    /* CTA centralizado */
    .ale-banner__cta {
        margin: 16px auto 0;
    }

    /* Setas: canto direito */
    .ale-banner__arrows {
        align-self: flex-end;
        margin: 12px 0;
    }

    .ale-banner__arrow {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }

    /* Barra + labels: colado embaixo */
    .ale-banner__nav {
        margin-top: auto;
    }

    .ale-banner__tab {
        font-size: 0.8125rem;
    }
}
