/* =====================================================
   CORREÇÃO DEFINITIVA PARA PADDING DO BODY
   Este arquivo deve ser carregado por último
   ===================================================== */

/* RESET ABSOLUTO para desktop - máxima especificidade */
@media screen and (min-width: 769px) {
    html body,
    html body:not(.mobile-menu-open),
    html body.desktop,
    body:not(.mobile),
    body:not(.is-mobile) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* Para garantir que funcione em qualquer situação */
@media screen and (min-width: 769px) {
    /* Usando a máxima especificidade possível */
    html > body:first-child {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Backup com ID (caso exista) */
    html body[id],
    html body:not([class*="mobile"]) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Reset para qualquer classe que possa estar aplicada */
    body.custom-menu-active,
    body.desktop-mode,
    body:not(.mobile-mode) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* Mobile específico - manter funcionamento */
@media screen and (max-width: 768px) {
    /* Aplicar padding apenas onde necessário, não globalmente */
    body:not(.sobre-page) {
        padding-top: 70px !important;
    }

    /* Página sobre deve ter zero padding */
    body.sobre-page {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Páginas com hero sections não precisam de padding */
    body:has(.newsletter-hero),
    body:has(.ns-about-hero),
    body:has(.mobile-hero-fix) {
        padding-top: 0 !important;
    }
}

/* FORÇA ZERO PADDING EM DESKTOP - ANULA QUALQUER JS */
@media screen and (min-width: 769px) {
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Anular qualquer estilo inline aplicado por JavaScript */
    body[style*="padding-top"] {
        padding-top: 0 !important;
    }

    body[style*="paddingTop"] {
        padding-top: 0 !important;
    }
}