/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;700&family=Inter:wght@400;600&display=swap');

/* --- HEADER TRANSPARENTE EFFECT --- */
/* Essa classe é adicionada via JS quando o efeito está ativo no widget */
body.agc-transparent-header-active header, 
.agc-transparent-header-override {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    z-index: 999 !important; /* Garante que o menu fique sobre o slide */
    transition: background-color 0.3s ease, padding 0.3s ease !important;
}

/* --- RESET BÁSICO --- */
.agc_uba_flow_wrapper * {
    box-sizing: border-box;
}

.agc_uba_flow_wrapper {
    position: relative;
    width: 100%;
    /* Altura e Min-Height são controlados pelo Elementor */
    min-height: 400px;
    background-color: #000;
    overflow: hidden;
    
    /* Variáveis de Default */
    --slide-text-color: inherit;
    --slide-btn-bg: inherit;
}

.agc_uba_flow_swiper {
    width: 100%;
    height: 100%;
}

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

/* --- CAMADAS DE FUNDO (MÍDIA) --- */
.agc_uba_flow_bg_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-position: center;
    background-size: cover;
}

.agc_uba_flow_video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que o vídeo preencha sem distorcer */
    display: block;
}

.agc_uba_flow_image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Overlay (Estilos dinâmicos injetados via PHP) */
.agc_uba_flow_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- CONTEÚDO --- */
.agc_uba_flow_content_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Padding base (sobrescrito pelo Elementor) */
    padding: 60px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; 
}

/* Título */
.agc_uba_flow_title_area {
    width: 100%; /* Max-width controlado pelo Elementor */
    pointer-events: auto;
}

.agc_uba_flow_main_title {
    font-family: 'Funnel Display', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    /* Cor e Margem controlados pelo Elementor */
}

/* Área Inferior (CTA + Descrição) */
.agc_uba_flow_bottom_content {
    display: flex;
    align-items: flex-end;
    /* Margin-bottom controlado pelo Elementor */
    pointer-events: auto;
}

.agc_uba_flow_cta_wrapper {
    width: 30%;
}

.agc_uba_flow_desc_wrapper {
    width: 40%;
    margin-left: auto;
    padding-left: 20px;
    border-left-style: solid;
    /* Cor e Espessura da borda controlados pelo Elementor */
}

.agc_uba_flow_description {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    /* Cor controlada pelo Elementor */
}

/* --- BOTÃO (CTA) --- */
.agc_uba_flow_btn {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 5;
    /* Padding, Cores, Radius e Clip-Path controlados pelo Elementor */
}

.agc_uba_flow_btn:hover {
    filter: brightness(1.1);
}

/* --- MENU E UI CONTROLS --- */
.agc_uba_flow_ui_controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    /* Padding e Margem controlados pelo Elementor para alinhar com o grid */
    display: block !important; 
    pointer-events: auto;
}

/* Barra de Progresso */
.agc_uba_flow_progress_track {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Altura, Cor e Margem controlados pelo Elementor */
}

.agc_uba_flow_progress_bar {
    height: 100%;
    width: 0%;
    /* Cor controlada pelo Elementor */
    transition: width 0.1s linear;
}

/* Container do Menu */
.agc_uba_flow_custom_pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* Gap controlado pelo Elementor */
}

/* ITEM DO MENU (Texto Puro - Resetando Bolinhas do Swiper) */
.agc_uba_flow_pagination_bullet {
    /* Reseta estilos nativos do Swiper */
    width: auto; /* IMPORTANTE: Removido !important para permitir controle de largura */
    height: auto; 
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    opacity: 0.5; /* Estado inativo (transparente) */
    
    /* Configuração para Texto: Quebra de linha e Alinhamento à Esquerda */
    display: inline-flex !important;
    justify-content: flex-start; /* Alinha o texto à esquerda */
    align-items: center; /* Centraliza verticalmente */
    text-align: left; /* Garante alinhamento do texto */
    white-space: normal; /* Permite a quebra de linha <br> quando a largura diminui */
    
    /* Estilos de Texto */
    cursor: pointer;
    font-family: 'Funnel Display', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity 0.3s ease, color 0.3s ease;
    user-select: none;
    -webkit-appearance: none;
}

/* Estado Ativo e Hover */
.agc_uba_flow_pagination_bullet:hover,
.agc_uba_flow_pagination_bullet.swiper-pagination-bullet-active {
    opacity: 1 !important; /* Totalmente visível */
    /* A cor exata é injetada pelo Elementor */
}

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 768px) {
    .agc_uba_flow_bottom_content {
        flex-direction: column-reverse; 
        align-items: flex-start;
    }

    .agc_uba_flow_cta_wrapper,
    .agc_uba_flow_desc_wrapper {
        width: 100%;
        border: none;
    }

    .agc_uba_flow_desc_wrapper {
        padding-left: 0;
        margin-bottom: 20px;
        border-left: none !important; /* Remove a linha vertical no mobile */
    }

    /* Scroll horizontal no menu para telas muito pequenas */
    .agc_uba_flow_custom_pagination {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px; 
        -webkit-overflow-scrolling: touch;
    }
}