/* 
 * Correção específica do header para informe-se.html
 * Layout correto em telas pequenas sem afetar outros ficheiros
 */

@media (max-width: 991px) {
    /* Garantir que o body tenha espaço para o header fixo */
    body {
        padding-top: 60px !important;
    }
    
    /* Garantir que o form-header não sobreponha o header */
    .form-header {
        margin-top: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Header principal - fundo azul */
    header.new-style {
        background-color: var(--primary-dark) !important;
        height: 60px !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }
    
    /* Container do header */
    header .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 60px !important;
        padding: 0 20px !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    /* Botão hambúrguer - lado esquerdo */
    .mobile-menu-toggle {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
        color: #fff !important;
        font-size: 20px !important;
        padding: 10px !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
    
    /* Logo - centro */
    .left-section {
        order: 2 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        
    }
    
    .logo {
        margin: 0 !important;
       
        
    }
    
    .logo img {
        height: 40px !important;
        width: auto !important;
        transform: translateY(-10px) !important;
    }
    
    /* Seção direita - botão envelope e idiomas */
    .right-section {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    /* Botão envelope */
    .btn-informe-se {
        background: none !important;
        border: none !important;
        color: #fff !important;
        font-size: 18px !important;
        padding: 8px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Seletor de idiomas */
    .language-selector {
        position: relative !important;
        margin-left: 0 !important;
    }
    
    #lang-select-btn {
        background: none !important;
        border: none !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        padding: 8px 12px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        margin-left: 0 !important;
    }
    
    /* Esconder menu desktop */
    .menu-container {
        display: none !important;
    }
    
    /* Menu móvel */
    #mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: #1a1a1a !important;
        z-index: 10000 !important;
        display: none !important;
        padding: 60px 40px 40px 40px !important;
    }
    
    #mobile-menu.active {
        display: block !important;
    }
    
    #mobile-menu ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 120px 0 0 30px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    #mobile-menu li {
        padding: 0 !important;
        border: none !important;
    }
    
    #mobile-menu a {
        color: #fff !important;
        text-decoration: none !important;
        font-size: 36px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        line-height: 1.1 !important;
        display: block !important;
        transition: opacity 0.3s ease !important;
    }
    
    #mobile-menu a:hover {
        opacity: 0.7 !important;
        color: #fff !important;
    }
    
    /* Esconder botão INFORME-SE no menu móvel */
    #mobile-menu .btn-mobile-informe {
        display: none !important;
    }
    
    /* Logo no menu móvel */
    .mobile-menu-logo {
        position: fixed !important;
        top: 20px !important;
        left: 20px !important;
        width: 180px !important;
        height: 60px !important;
        background-image: url('../logotipos/logoATLANTIDADMC.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: left center !important;
        z-index: 100004 !important;
        filter: brightness(0) invert(1) !important;
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    header .container {
        padding: 0 15px !important;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .mobile-menu-toggle {
        font-size: 18px !important;
        padding: 8px !important;
    }
    
    .btn-informe-se {
        font-size: 16px !important;
        padding: 6px !important;
    }
    
    #lang-select-btn {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
}
