/* ========================================
   MEGA MENU - ESTILOS GLOBAIS
   ======================================== */

/* Container principal do mega menu */
.jet-mega-menu-mega-container__inner {
    /* Bordas vermelhas mais visíveis - FORÇA VERMELHO EM TODOS OS NAVEGADORES */
    border: 2px solid #dc3545 !important;
    border-color: #dc3545 !important;
    border-top-color: #dc3545 !important;
    border-right-color: #dc3545 !important;
    border-bottom-color: #dc3545 !important;
    border-left-color: #dc3545 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15) !important;
    
    /* Fundo branco limpo */
    background: #ffffff !important;
    
    /* Margens para não colar nas bordas */
    margin: 8px !important;
    
    /* Padding interno */
    padding: 25px !important;
    
    /* Transição suave */
    transition: all 0.3s ease !important;
    
    /* Z-index alto para ficar sobre outros elementos */
    z-index: 9999 !important;
    
    /* Overflow para scroll se necessário */
    overflow: hidden !important;
}

/* SEM hover no container principal - mantém aparência estática */
.jet-mega-menu-mega-container__inner:hover {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15) !important;
    border-color: #dc3545 !important;
    border-top-color: #dc3545 !important;
    border-right-color: #dc3545 !important;
    border-bottom-color: #dc3545 !important;
    border-left-color: #dc3545 !important;
    /* Sem mudanças visuais no hover */
}

/* ========================================
   ELEMENTOS INTERNOS DO MEGA MENU
   ======================================== */

/* Títulos das seções - respeitando estilo do Elementor */
.jet-mega-menu-mega-container__inner h2,
.jet-mega-menu-mega-container__inner h3,
.jet-mega-menu-mega-container__inner h4,
.jet-mega-menu-mega-container__inner .jet-mega-menu-title {
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Títulos específicos do Elementor */
.jet-mega-menu-mega-container__inner .elementor-heading-title {
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Links dentro do mega menu - sem hover nos títulos principais */
.jet-mega-menu-mega-container__inner a {
    color: inherit !important;
    text-decoration: none !important;
    display: block !important;
}

/* Títulos principais - SEM hover */
.jet-mega-menu-mega-container__inner .elementor-heading-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.jet-mega-menu-mega-container__inner .elementor-heading-title a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Hover apenas nos subitens - vermelho suave */
.jet-mega-menu-mega-container__inner .elementor-widget-text-editor a:hover,
.jet-mega-menu-mega-container__inner p a:hover {
    color: #dc3545 !important;
    text-decoration: underline !important;
}

/* Parágrafos e texto - mantendo legibilidade */
.jet-mega-menu-mega-container__inner p {
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

/* Texto específico do Elementor */
.jet-mega-menu-mega-container__inner .elementor-widget-text-editor p {
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

/* Listas */
.jet-mega-menu-mega-container__inner ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 20px !important;
}

.jet-mega-menu-mega-container__inner li {
    margin-bottom: 6px !important;
}

/* ========================================
   RESPONSIVIDADE E MOBILE
   ======================================== */

@media (max-width: 768px) {
    .jet-mega-menu-mega-container__inner {
        margin: 5px !important;
        padding: 20px !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 15px rgba(220, 53, 69, 0.1) !important;
        border: 2px solid #dc3545 !important;
        border-color: #dc3545 !important;
        border-top-color: #dc3545 !important;
        border-right-color: #dc3545 !important;
        border-bottom-color: #dc3545 !important;
        border-left-color: #dc3545 !important;
    }
}

/* ========================================
   ANIMAÇÕES E EFEITOS ESPECIAIS
   ======================================== */

/* Animação de entrada */
@keyframes megaMenuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jet-mega-menu-mega-container__inner {
    animation: megaMenuSlideIn 0.3s ease-out !important;
}

/* Linha vermelha no topo */
.jet-mega-menu-mega-container__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #e74c3c, #dc3545);
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

/* ========================================
   COMPATIBILIDADE COM ELEMENTOR
   ======================================== */

/* Garantir que o Elementor funcione normalmente */
.jet-mega-menu-mega-container__inner .elementor-section {
    margin-bottom: 0 !important;
}

.jet-mega-menu-mega-container__inner .elementor-container {
    max-width: none !important;
}

.jet-mega-menu-mega-container__inner .elementor-column {
    padding: 0 !important;
}

/* ========================================
   ESTADOS ESPECIAIS
   ======================================== */

/* Quando o menu está ativo - usando vermelho */
.jet-mega-menu-mega-container__inner.active {
    border-color: #b02a37 !important;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.2) !important;
}

/* ========================================
   COMPATIBILIDADE COM TEMAS
   ======================================== */

/* Reset para evitar conflitos */
.jet-mega-menu-mega-container__inner * {
    box-sizing: border-box !important;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

/* Foco para acessibilidade - usando vermelho */
.jet-mega-menu-mega-container__inner a:focus {
    outline: 2px solid #dc3545 !important;
    outline-offset: 2px !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* ========================================
   COMPATIBILIDADE ESPECÍFICA POR NAVEGADOR
   ======================================== */

/* Firefox - força borda vermelha */
@-moz-document url-prefix() {
    .jet-mega-menu-mega-container__inner {
        border: 2px solid #dc3545 !important;
        border-color: #dc3545 !important;
        border-top-color: #dc3545 !important;
        border-right-color: #dc3545 !important;
        border-bottom-color: #dc3545 !important;
        border-left-color: #dc3545 !important;
    }
    
    .jet-mega-menu-mega-container__inner:hover {
        border-color: #dc3545 !important;
        border-top-color: #dc3545 !important;
        border-right-color: #dc3545 !important;
        border-bottom-color: #dc3545 !important;
        border-left-color: #dc3545 !important;
    }
}

/* Webkit (Chrome, Safari, Edge) - força borda vermelha */
@supports (-webkit-appearance: none) {
    .jet-mega-menu-mega-container__inner {
        border: 2px solid #dc3545 !important;
        border-color: #dc3545 !important;
        border-top-color: #dc3545 !important;
        border-right-color: #dc3545 !important;
        border-bottom-color: #dc3545 !important;
        border-left-color: #dc3545 !important;
    }
    
    .jet-mega-menu-mega-container__inner:hover {
        border-color: #dc3545 !important;
        border-top-color: #dc3545 !important;
        border-right-color: #dc3545 !important;
        border-bottom-color: #dc3545 !important;
        border-left-color: #dc3545 !important;
    }
}

/* Regra universal para garantir vermelho em todos os navegadores */
.jet-mega-menu-mega-container__inner,
.jet-mega-menu-mega-container__inner:hover,
.jet-mega-menu-mega-container__inner:focus,
.jet-mega-menu-mega-container__inner:active {
    border: 2px solid #dc3545 !important;
    border-color: #dc3545 !important;
    border-top-color: #dc3545 !important;
    border-right-color: #dc3545 !important;
    border-bottom-color: #dc3545 !important;
    border-left-color: #dc3545 !important;
}
