/**
 * Navigation Menu Styles - iFood Parceiros
 * Fidelidade total aos layouts das imagens de design
 * Seletores específicos apenas onde necessário para sobrescrever Elementor
 */

/* ============================================
   CSS VARIABLES - OTIMIZAÇÃO
   ============================================ */

:root {
    /* Colors */
    --ifp-nav-primary: #EA1D2C;
    --ifp-nav-primary-dark: #D01525;
    --ifp-nav-text: #1A1A1A;
    --ifp-nav-text-light: #666666;
    --ifp-nav-bg-light: #F5F5F5;
    --ifp-nav-bg-hover: #EEEEEE;
    --ifp-nav-bg-cream: #FDF8F1;
    --ifp-nav-bg-mobile: #FEF5F0;
    --ifp-nav-border: #F0F0F0;
    --ifp-nav-white: #FFFFFF;
    
    /* Transitions */
    --ifp-nav-transition: all 0.2s ease;
    --ifp-nav-transition-transform: transform 0.2s ease;
    --ifp-nav-transition-slow: all 0.3s ease;
    
    /* Spacing */
    --ifp-nav-header-height: 90px;
    --ifp-nav-border-radius: 12px;
    --ifp-nav-border-radius-small: 8px;
    --ifp-nav-border-radius-button: 40px;
    
    /* Shadows */
    --ifp-nav-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Reset values */
    --ifp-nav-reset: none;
}

/* ============================================
   RESET E ESTILOS BASE
   ============================================ */

.ifp-main-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Ajuste mínimo para evitar que o conteúdo fique atrás do header fixo */
body {
    margin-top: 0;
    padding-top: 90px !important; /* Padding padrão quando banner não está ativo */
}

/* BANNER EXPANSÍVEL - Ajustes quando banner está ativo */
body.has-expandable-banner {
    padding-top: 120px !important; /* 30px banner + 90px header */
}

body.has-expandable-banner .ifp-main-header {
    top: 30px !important; /* Header posicionado após o banner */
}

/* Remove margin-top do site-content quando banner expansível está ativo */
body.has-expandable-banner .site-content,
body.has-expandable-banner.single .site-content,
body.has-expandable-banner.single-post .site-content,
body.has-expandable-banner.page .site-content {
    margin-top: 0 !important;
}

/* Dropdown quando banner expansível está ativo */
body.has-expandable-banner .ifp-menu-dropdown {
    top: 90px !important; /* 30px banner + 90px header */
}

/* DESKTOP: Regras de fallback quando NÃO há banner expansível */
body:not(.has-expandable-banner) {
    padding-top: 70px !important; /* Apenas altura do header */
}

body:not(.has-expandable-banner) .ifp-main-header {
    top: 0 !important; /* Header no topo */
}

body:not(.has-expandable-banner) .ifp-menu-dropdown {
    top: 90px !important; /* Apenas altura do header */
}

.admin-bar body > .ifp-main-header + * {
    margin-top: calc(80px + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar body > .ifp-main-header + * {
        margin-top: calc(80px + 46px);
    }
}

@media (max-width: 768px) {
    /* ANTI-CLS: Reserva espaço fixo para header mobile */
    body {
        padding-top: 80px !important; /* Altura do header mobile */
        min-height: 100vh;
        contain: layout;
    }
    
    /* Quando banner está ativo no mobile */
    body.has-expandable-banner {
        padding-top: 110px !important; /* 30px banner + 80px header mobile */
    }
    
    /* Garante que o header fique sempre fixo no topo no mobile - ANTI-CLS */
    .ifp-main-header {
        position: fixed !important;
        top: 0 !important;
        z-index: 1001 !important;
        height: 80px !important;
        contain: layout style !important;
    }
    
    /* Header mobile quando banner está ativo */
    body.has-expandable-banner .ifp-main-header {
        top: 30px !important; /* Header após banner */
    }
    
    /* Remove margin-top do site-content no mobile quando banner está ativo */
    body.has-expandable-banner .site-content,
    body.has-expandable-banner.single .site-content,
    body.has-expandable-banner.single-post .site-content,
    body.has-expandable-banner.page .site-content {
        margin-top: 0 !important;
    }
    
    /* Mobile overlay quando banner expansível está ativo */
    body.has-expandable-banner .ifp-menu-mobile-overlay {
        top: 110px !important; /* 30px banner + 80px header mobile */
        height: calc(100vh - 110px) !important;
    }
    
    body > .ifp-main-header + * {
        margin-top: 80px;
    }
    
    .admin-bar body > .ifp-main-header + * {
        margin-top: calc(80px + 46px);
    }
    
    /* Admin bar quando banner expansível está ativo no mobile */
    .admin-bar body.has-expandable-banner .ifp-menu-mobile-overlay {
        top: calc(110px + 46px) !important; /* 30px banner + 80px header + 46px admin bar */
        height: calc(100vh - 110px - 46px) !important;
    }
}

@media (max-width: 480px) {
    /* ANTI-CLS: Reserva espaço fixo para header mobile pequeno */
    body {
        padding-top: 70px !important; /* Altura do header mobile pequeno */
    }
    
    /* Mobile pequeno - quando banner está ativo */
    body.has-expandable-banner {
        padding-top: 100px !important; /* 30px banner + 70px header mobile pequeno */
    }
    
    /* Mobile overlay pequeno quando banner expansível está ativo */
    body.has-expandable-banner .ifp-menu-mobile-overlay {
        top: 70px !important; /* 30px banner + 70px header mobile pequeno */
        height: calc(100vh - 100px) !important;
    }
    
    /* ANTI-CLS: Header mobile pequeno com dimensões fixas */
    .ifp-main-header {
        height: 70px !important;
        contain: layout style !important;
    }
    
    body > .ifp-main-header + * {
        margin-top: 0; /* Remove margin pois já temos padding-top no body */
    }
    
    .admin-bar body > .ifp-main-header + * {
        margin-top: calc(70px + 46px);
    }
    
    /* Admin bar quando banner expansível está ativo no mobile pequeno */
    .admin-bar body.has-expandable-banner .ifp-menu-mobile-overlay {
        top: calc(100px + 46px) !important; /* 30px banner + 70px header + 46px admin bar */
        height: calc(100vh - 100px - 46px) !important;
    }
}

/* ============================================
   HEADER PRINCIPAL - ANTI-CLS OTIMIZADO
   ============================================ */

.ifp-main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ifp-nav-white);
    border-bottom: 1px solid var(--ifp-nav-border);
    height: var(--ifp-nav-header-height);
    font-family: 'TipoiFoodVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    contain: layout style;
    will-change: auto;
}

/* Ajuste para quando a admin bar está presente */
.admin-bar .ifp-main-header {
    top: 32px;
    z-index: 999;
}

/* Em telas pequenas, a admin bar tem altura diferente */
@media screen and (max-width: 782px) {
    .admin-bar .ifp-main-header {
        top: 46px;
    }
}

.ifp-main-header .ifp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    contain: layout;
}

.ifp-main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    contain: layout;
}

/* ============================================
   LOGO - ANTI-CLS OTIMIZADO
   ============================================ */

.ifp-nav-logo img {
    height: 61px !important;
    width: 140px !important;
    max-width: 140px !important;
    max-height: 61px !important;
    min-width: 140px !important;
    min-height: 61px !important;
    display: block !important;
    aspect-ratio: 140/61 !important;
    contain: layout !important;
    object-fit: contain !important;
}

/* ============================================
   MENU DESKTOP
   ============================================ */

.ifp-nav-desktop {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.ifp-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 40px;
}

.ifp-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.ifp-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    color: var(--ifp-nav-text);
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: var(--ifp-nav-reset);
    background: var(--ifp-nav-reset);
    border: var(--ifp-nav-reset);
    cursor: pointer;
    font-family: inherit;
    transition: var(--ifp-nav-transition);
    white-space: nowrap;
}

.ifp-nav-link:hover {
    color: var(--ifp-nav-primary);
}

/* Sobrescrever estilos do Elementor APENAS nos links */
body .ifp-main-header .ifp-nav-link,
body .ifp-main-header .ifp-nav-link:visited,
body .ifp-main-header .ifp-nav-link:link {
    color: var(--ifp-nav-text) !important;
    text-decoration: var(--ifp-nav-reset) !important;
    background: var(--ifp-nav-reset) !important;
    border: var(--ifp-nav-reset) !important;
    box-shadow: var(--ifp-nav-reset) !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .ifp-main-header .ifp-nav-link:hover,
body .ifp-main-header .ifp-nav-item.has-dropdown:hover .ifp-nav-link,
body .ifp-main-header .ifp-nav-item.has-dropdown .ifp-nav-link[aria-expanded="true"] {
    color: var(--ifp-nav-primary) !important;
    text-decoration: var(--ifp-nav-reset) !important;
    background: var(--ifp-nav-reset) !important;
}

.ifp-nav-chevron {
    color: var(--ifp-nav-text);
    transition: var(--ifp-nav-transition-transform), color 0.2s ease;
    width: 12px;
    height: 12px;
}

.ifp-nav-item.has-dropdown:hover .ifp-nav-link,
.ifp-nav-item.has-dropdown .ifp-nav-link[aria-expanded="true"] {
    color: var(--ifp-nav-primary);
}

.ifp-nav-item.has-dropdown:hover .ifp-nav-chevron,
.ifp-nav-item.has-dropdown .ifp-nav-link[aria-expanded="true"] .ifp-nav-chevron {
    transform: rotate(180deg);
    color: var(--ifp-nav-primary);
}

/* ============================================
   AÇÕES DO HEADER (CTA, BUSCA, MOBILE)
   ============================================ */

.ifp-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Botão de busca */
.ifp-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ifp-nav-bg-light);
    border: 1px solid var(--ifp-nav-text);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--ifp-nav-transition);
    color: var(--ifp-nav-text-light);
    position: relative;
}

.ifp-search-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.ifp-search-btn:hover {
    background: var(--ifp-nav-bg-hover);
    color: var(--ifp-nav-primary);
}

/* Sobrescrever estilos do Elementor APENAS no botão de busca */
body .ifp-main-header .ifp-search-btn {
    width: 40px !important;
    height: 40px !important;
    background: #F5F5F5 !important;
    border: 1px solid #1A1A1A !important;
    border-radius: 50% !important;
    color: #666666 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    min-width: 40px !important;
    max-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

body .ifp-main-header .ifp-search-btn svg {
    width: 20px !important;
    height: 20px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

body .ifp-main-header .ifp-search-btn:hover {
    background: #EEEEEE !important;
    color: #EA1D2C !important;
    border: 1px solid #1A1A1A !important;
    box-shadow: none !important;
}

/* Botão CTA */
.ifp-cta-button {
    background: var(--ifp-nav-primary);
    color: var(--ifp-nav-white);
    padding: 10px 28px;
    border-radius: var(--ifp-nav-border-radius-button);
    text-decoration: var(--ifp-nav-reset);
    font-size: 16px;
    font-weight: 600;
    transition: var(--ifp-nav-transition);
    border: var(--ifp-nav-reset);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.ifp-cta-button:hover {
    background: var(--ifp-nav-primary-dark);
    transform: translateY(-1px);
    color: var(--ifp-nav-white);
    text-decoration: var(--ifp-nav-reset);
}

/* Sobrescrever estilos do Elementor APENAS no botão CTA */
body .ifp-main-header .ifp-cta-button,
body .ifp-main-header .ifp-cta-button:visited,
body .ifp-main-header .ifp-cta-button:link {
    background: #EA1D2C !important;
    color: #FFFFFF !important;
    padding: 10px 28px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: normal !important;
}

body .ifp-main-header .ifp-cta-button:hover {
    background: #D01525 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Toggle do menu mobile - ANTI-CLS */
.ifp-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #F5F5F5;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    position: relative;
    padding: 8px;
    flex-shrink: 0;
    contain: layout;
}

.ifp-mobile-toggle:hover {
    background: #EEEEEE;
}

.ifp-mobile-toggle svg {
    width: 18px;
    height: 18px;
    color: #1A1A1A;
}

/* Garantir que mobile toggle nunca apareça no desktop */
@media (min-width: 1025px) {
    .ifp-mobile-toggle,
    body .ifp-main-header .ifp-mobile-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
        overflow: hidden !important;
    }
    
}


/* Override total do Elementor */
body .ifp-main-header .ifp-mobile-toggle,
body .ifp-main-header .ifp-mobile-toggle:hover,
body .ifp-main-header .ifp-mobile-toggle:focus,
body .ifp-main-header .ifp-mobile-toggle:active {
    background: #F5F5F5 !important;
    border: none !important;
    box-shadow: none !important;
    color: #1A1A1A !important;
    padding: 8px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

body .ifp-main-header .ifp-mobile-toggle:hover {
    background: #EEEEEE !important;
}

/* SVG styling */
body .ifp-main-header .ifp-mobile-toggle svg {
    width: 18px !important;
    height: 18px !important;
    color: #1A1A1A !important;
    display: block !important;
    flex-shrink: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Estado ativo do mobile toggle - transforma em X com borda */
body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"] {
    background: transparent !important;
    border: 2px solid #1A1A1A !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
}

/* Esconde o ícone hambúrguer quando ativo */
body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"] svg {
    opacity: 0 !important;
}

/* Cria o X com pseudo-elementos quando ativo */
body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"]::before,
body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"]::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 2px !important;
    background: #EB0033 !important;
    transform-origin: center !important;
    transition: all 0.3s ease !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"]::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* ============================================
   DROPDOWNS - ESTRUTURA BASE
   ============================================ */

.ifp-menu-dropdown {
    position: fixed;
    top: var(--ifp-nav-header-height);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ifp-nav-white);
    border-radius: var(--ifp-nav-border-radius);
    box-shadow: var(--ifp-nav-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: var(--ifp-nav-transition-slow);
    z-index: 1001;
    min-width: 380px;
}

/* Ajuste para dropdowns quando admin bar está presente */
.admin-bar .ifp-menu-dropdown {
    top: calc(var(--ifp-nav-header-height) + 32px);
}

/* Admin bar quando banner expansível está ativo */
.admin-bar body.has-expandable-banner .ifp-menu-dropdown {
    top: calc(120px + 32px) !important; /* 30px banner + 90px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .ifp-menu-dropdown {
        top: calc(var(--ifp-nav-header-height) + 46px);
    }
    
    /* Admin bar em telas pequenas quando banner expansível está ativo */
    .admin-bar body.has-expandable-banner .ifp-menu-dropdown {
        top: calc(120px + 46px) !important; /* 30px banner + 90px header + 46px admin bar */
    }
}

.ifp-nav-item.has-dropdown:hover .ifp-menu-dropdown,
.ifp-nav-item.has-dropdown .ifp-nav-link[aria-expanded="true"] + .ifp-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsivo: Em telas menores, voltar ao posicionamento relativo */
@media (max-width: 1024px) {
    .ifp-menu-dropdown {
        position: absolute;
        top: 100%;
    }
}

.ifp-dropdown-content {
    padding: 32px;
}

/* ============================================
   DROPDOWN MOMENTOS
   ============================================ */

.ifp-dropdown-momentos {
    min-width: 880px;
}

.ifp-momentos-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ifp-moment-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 16px;
    background: #FDF8F1;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    min-width: 200px;
}

.ifp-moment-card:hover {
    border-color: #EA1D2C;
    background: #FDF8F1;
    transform: none;
}

.ifp-moment-card:hover .ifp-moment-card__title,
.ifp-moment-card:hover .ifp-moment-card__cta {
    color: #EA1D2C;
}

.ifp-moment-card__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifp-moment-card__icon img {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.2s ease;
}

.ifp-moment-card:hover .ifp-moment-card__icon img {
    transform: translateX(3px);
}

.ifp-moment-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ifp-moment-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    text-align: left;
}

.ifp-moment-card__cta {
    font-size: 12px;
    color: #1A1A1A;
    font-weight: 400;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ifp-moment-card__cta svg {
    transition: transform 0.2s ease;
}

.ifp-moment-card:hover .ifp-moment-card__cta svg {
    transform: translateX(3px);
}

/* ============================================
   DROPDOWN NEGÓCIOS E MATERIAIS
   ============================================ */

.ifp-dropdown-negocios,
.ifp-dropdown-materiais {
    min-width: 800px;
}

.ifp-dropdown-two-columns {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

/* Materiais com coluna de destaques maior */
.ifp-dropdown-materiais .ifp-dropdown-two-columns {
    grid-template-columns: 1fr 380px;
}

.ifp-dropdown-column:first-child {
    padding-right: 20px;
    border-right: 1px solid #F0F0F0;
}

/* Itens de menu (negócios/materiais) */
.ifp-business-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
}

.ifp-materials-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ifp-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #1A1A1A !important;
    background: #FDF8F1;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.ifp-menu-item:hover {
    background: #FDF8F1;
    border-color: #EA1D2C;
    color: #EA1D2C !important;
}

.ifp-menu-item:hover .ifp-menu-item__text {
    color: #EA1D2C;
}

.ifp-menu-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.ifp-menu-item__icon img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.ifp-menu-item:hover .ifp-menu-item__icon img {
    transform: translateX(3px);
}

.ifp-menu-item__text {
    font-weight: 400;
    transition: color 0.2s ease;
}

/* ============================================
   SEÇÃO "EM DESTAQUE" DOS DROPDOWNS
   ============================================ */

.ifp-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.ifp-featured-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ifp-featured-post {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px;
    text-decoration: none;
    color: #1A1A1A;
    position: relative;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.ifp-featured-post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #EA1D2C;
    transition: width 0.3s ease;
}

.ifp-featured-post:hover::after {
    width: 100%;
}

.ifp-featured-post:hover .ifp-featured-post__text {
    color: #EA1D2C;
}

.ifp-featured-post__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    position: relative;
}

.ifp-featured-post__icon img {
    transition: opacity 0.2s ease;
}

.ifp-featured-post__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 13L13 3M13 3H5M13 3V11" stroke="%23EA1D2C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ifp-featured-post:hover .ifp-featured-post__icon img {
    opacity: 0;
}

.ifp-featured-post:hover .ifp-featured-post__icon::after {
    opacity: 1;
}

.ifp-featured-post__text {
    font-size: 13px;
    font-weight: 400;
    color: #333333;
    transition: color 0.2s ease;
}

/* ============================================
   MENU MOBILE - OVERLAY
   ============================================ */

.ifp-menu-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FEF5F0;
    z-index: 1010; /* Acima de todos elementos TOC (1000-1003) */
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    overflow-y: auto;
    will-change: transform, opacity;
    backface-visibility: hidden;
    pointer-events: none;
}

.ifp-menu-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
}

.ifp-mobile-menu-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   MOBILE MENU - ADJUSTMENTS
   ============================================ */

/* Ajustar posicionamento do menu mobile para mostrar a barra */
.ifp-menu-mobile-overlay {
    top: var(--ifp-nav-header-height); /* Posiciona abaixo do header principal */
    height: calc(100vh - var(--ifp-nav-header-height)); /* Ajusta altura para não sobrepor */
    transform: translateX(-100%); /* Inicialmente escondido à esquerda */
}

/* Ajuste para menu mobile quando admin bar está presente */
.admin-bar .ifp-menu-mobile-overlay {
    top: calc(var(--ifp-nav-header-height) + 32px);
    height: calc(100vh - var(--ifp-nav-header-height) - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .ifp-menu-mobile-overlay {
        top: calc(var(--ifp-nav-header-height) + 46px);
        height: calc(100vh - var(--ifp-nav-header-height) - 46px);
    }
}

.ifp-menu-mobile-overlay.is-open {
    transform: translateX(0); /* Desliza para a posição original */
}

/* ============================================
   SEÇÕES DO MENU MOBILE
   ============================================ */

.ifp-mobile-menu-sections {
    flex: 1;
    padding: 40px 20px;
}

.ifp-mobile-section {
    margin-bottom: 48px;
}

/* Override específico para título das seções mobile */
body .ifp-menu-mobile-overlay .ifp-mobile-section__title,
body .ifp-menu-mobile-overlay h2.ifp-mobile-section__title {
    color: #EB0033 !important;
    font-family: "TipoiFoodVariable", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 24px !important; /* 133.333% */
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ============================================
   MOMENTOS MOBILE
   ============================================ */

.ifp-mobile-moments {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.ifp-mobile-moment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 8px;
    background: #FFFFFF;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.ifp-mobile-moment:hover {
    background: #F9F9F9;
    transform: translateY(-1px);
}

.ifp-mobile-moment__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ifp-mobile-moment__text {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
}

/* ============================================
   NEGÓCIOS MOBILE
   ============================================ */

.ifp-mobile-business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ifp-mobile-business-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.ifp-mobile-business-item:hover {
    background: #F9F9F9;
}

.ifp-mobile-business-item--empty {
    display: none;
}

.ifp-mobile-business-item__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Override específico para texto dos business items mobile */
body .ifp-menu-mobile-overlay .ifp-mobile-business-item__text,
body .ifp-menu-mobile-overlay span.ifp-mobile-business-item__text {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #1A1A1A !important;
    font-family: "TipoiFoodVariable", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: none !important;
    border: none !important;
}

/* ============================================
   MATERIAIS MOBILE
   ============================================ */

.ifp-mobile-materials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ifp-mobile-material-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.ifp-mobile-material-item:hover {
    background: #F9F9F9;
}

.ifp-mobile-material-item__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Override específico para texto dos material items mobile */
body .ifp-menu-mobile-overlay .ifp-mobile-material-item__text,
body .ifp-menu-mobile-overlay span.ifp-mobile-material-item__text {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1A1A1A !important;
    font-family: "TipoiFoodVariable", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: none !important;
    border: none !important;
}

/* ============================================
   FOOTER MOBILE (SOBRE)
   ============================================ */

.ifp-mobile-footer {
    padding-top: 24px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ifp-mobile-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #FFFFFF;
    border-radius: 30px;
    text-decoration: none;
    color: #1A1A1A;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 50%;
    margin: 0;
}

.ifp-mobile-footer-link svg {
    color: #1A1A1A;
    stroke: #1A1A1A;
}

.ifp-mobile-footer-link:hover {
    background: #F9F9F9;
}

/* ============================================
   RESPONSIVO - DESKTOP
   ============================================ */

@media (min-width: 1025px) {
    .ifp-nav-desktop {
        display: flex;
    }
    
    .ifp-search-btn {
        display: flex;
    }
    
    /* Remove gap do hambúrguer no desktop */
    .ifp-nav-actions {
        gap: 12px;
    }
    
    /* Força o hambúrguer a não ocupar espaço no gap */
    .ifp-nav-actions .ifp-mobile-toggle {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        flex: none !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: 0 !important;
        order: 999 !important;
    }
    
    /* Garante que logo e search ocupem as bordas */
    .ifp-nav-logo {
        flex-shrink: 0;
        margin-right: auto;
    }
    
    .ifp-nav-actions {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Remove qualquer margin/padding desnecessário */
    .ifp-main-nav {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .ifp-nav-desktop {
        display: none;
    }
    
    .ifp-mobile-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .ifp-search-btn {
        display: none;
    }
}

/* ============================================
   RESPONSIVO - TABLET
   ============================================ */

@media (max-width: 768px) {
    .ifp-main-header {
        height: 80px;
        contain: layout style;
    }
    
    .ifp-main-header .ifp-container {
        padding: 0 16px;
    }
    
    .ifp-nav-logo img {
        height: 50px !important;
        width: 114px !important;
        max-width: 114px !important;
        max-height: 50px !important;
        min-width: 114px !important;
        min-height: 50px !important;
        aspect-ratio: 140/61 !important;
        contain: layout !important;
    }
    
    .ifp-cta-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .ifp-mobile-moments {
        gap: 12px;
    }
}

/* ============================================
   RESPONSIVO - MOBILE
   ============================================ */

@media (max-width: 480px) {
    .ifp-main-header {
        height: 70px;
        contain: layout style;
    }
    
    .ifp-nav-logo img {
        height: 45px !important;
        width: 103px !important;
        max-width: 103px !important;
        max-height: 45px !important;
        min-width: 103px !important;
        min-height: 45px !important;
        aspect-ratio: 140/61 !important;
        contain: layout !important;
    }
    
    .ifp-nav-actions {
        gap: 8px;
    }
    
    /* Override específico para CTA button no mobile */
    body .ifp-main-header .ifp-cta-button,
    body .ifp-main-header .ifp-cta-button:visited,
    body .ifp-main-header .ifp-cta-button:link,
    body .ifp-main-header .ifp-cta-button:hover {
        padding: 9px 9px !important;
        font-size: 14px !important;
    }
    
    /* Override específico para search button no mobile */
    body .ifp-main-header .ifp-search-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        border: 1px solid #1A1A1A !important;
    }
    
    body .ifp-main-header .ifp-search-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .ifp-mobile-toggle {
        padding: 5px;
        background: #F5F5F5;
        border-radius: 6px;
        width: 44px;
        height: 44px;
    }
    
    /* Override do Elementor para mobile - ANTI-CLS */
    body .ifp-main-header .ifp-mobile-toggle {
        background: #F5F5F5 !important;
        border: none !important;
        box-shadow: none !important;
        color: #1A1A1A !important;
        padding: 5px !important;
        border-radius: 6px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
        contain: layout !important;
    }
    
    /* Ajuste do SVG para mobile */
    body .ifp-main-header .ifp-mobile-toggle svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Ajuste do X para mobile */
    body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"]::before,
    body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"]::after {
        width: 14px !important;
    }
    
    /* Estado ativo do mobile toggle em telas pequenas */
    body .ifp-main-header .ifp-mobile-toggle[aria-expanded="true"] {
        width: 38px !important;
        height: 38px !important;
    }
    
    /* Override para mobile menor */
    body .ifp-menu-mobile-overlay .ifp-mobile-section__title,
    body .ifp-menu-mobile-overlay h2.ifp-mobile-section__title {
        font-size: 18px !important;
    }
    
    /* Ajustar overlay mobile para telas menores */
    .ifp-menu-mobile-overlay {
        top: 70px;
        height: calc(100vh - 70px);
        transform: translateX(-100%);
    }
    
    /* Admin bar em mobile pequeno */
    .admin-bar .ifp-menu-mobile-overlay {
        top: calc(70px + 46px);
        height: calc(100vh - 70px - 46px);
    }
    
    .ifp-menu-mobile-overlay.is-open {
        transform: translateX(0);
    }
    
    .ifp-mobile-moment__text {
        font-size: 13px;
    }
    
    /* Override para business items em mobile menor */
    body .ifp-menu-mobile-overlay .ifp-mobile-business-item__text,
    body .ifp-menu-mobile-overlay span.ifp-mobile-business-item__text {
        font-size: 13px !important;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
.ifp-nav-link:focus,
.ifp-search-btn:focus,
.ifp-mobile-toggle:focus,
.ifp-cta-button:focus {
    outline: 2px solid #EA1D2C;
    outline-offset: 2px;
}

/* ============================================
   ESTADOS DE CARREGAMENTO
   ============================================ */

.ifp-main-header.is-loading .ifp-menu-dropdown {
    pointer-events: none;
}

/* ============================================
   OTIMIZAÇÕES DE PERFORMANCE
   ============================================ */

.ifp-menu-dropdown {
    will-change: transform, opacity;
}

.ifp-moment-card,
.ifp-mobile-moment,
.ifp-mobile-business-item,
.ifp-mobile-material-item {
    will-change: transform;
}

/* Previne layout shift */
.ifp-nav-logo img {
    vertical-align: top;
}