/* ==========================================================================
   Custom Styles - Landingi Optimization & Standardization
   ========================================================================== */

/* Fix horizontal scroll and page sliding */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

@media only screen and (min-width: 764px) and (max-width: 1199px) {
    html {
        width: 100% !important;
        max-width: 100vw !important;
    }
}

.widget-section,
.widget-smartsection {
    overflow: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.row {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

iframe {
    max-width: 100% !important;
}

/* Fix lazyload and adaptive-delivery background suppression */
.adaptive-delivery-prevent-bg,
.lazyload,
.lazyloading,
.widget-section:not(.lazyload),
.widget-box:not(.lazyload) {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   WhatsApp CTA Buttons Standardization (Section 5)
   ========================================================================== */
.widget-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

/* Remoção da borda esquerda apenas dos 2 botões especificados (Hero e Rodapé) */
#Em7u3uoKOa8z9T9l3svdealFS1zAbGZZ,
#e4UbEIXbeXSU7zTqxxgEOCCp7EoN6mm5 {
    border-left: none !important;
    border-left-width: 0 !important;
}

.widget-button .widget-text {
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.btn-whatsapp-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    fill: currentColor !important;
    color: inherit !important;
}

/* Ajuste específico para o botão da seção "Nossa missão" no mobile para não quebrar linha */
@media only screen and (max-width: 763px) {
    #sS7cZlWNTL8hN6i4OP94vmaTMrTmE6ie {
        width: 18.5rem !important;
        max-width: calc(100% - 1rem) !important;
        height: 3.5rem !important;
        left: 0.75rem !important;
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        padding: 0 12px !important;
    }

    #Em7u3uoKOa8z9T9l3svdealFS1zAbGZZ {
        width: 17rem !important;
        max-width: calc(100% - 1rem) !important;
        left: 1.5rem !important;
        white-space: nowrap !important;
    }

    #e4UbEIXbeXSU7zTqxxgEOCCp7EoN6mm5 {
        width: 17rem !important;
        max-width: calc(100% - 1rem) !important;
        left: 1.5rem !important;
        white-space: nowrap !important;
    }

    /* Duplica o espaço entre o último número telefônico e a base da página no rodapé */
    #epx2mqy1L3aSBRGQrDTtTbzNTrK0tPzK > .row .container {
        height: 35rem !important;
    }
}

/* Mobile-only telephone button protection: keep hidden on Desktop */
@media only screen and (min-width: 764px) {
    a[href^="tel:"],
    .widget-button[href^="tel:"] {
        display: none !important;
    }
}

/* ==========================================================================
   Floating WhatsApp Button + Balão "ONLINE AGORA"
   ========================================================================== */
.whatsapp-float-group {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    z-index: 999999 !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    transform: translateY(10px);
}

.whatsapp-float-group.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateY(0);
}

/* Balão de fala ONLINE AGORA */
.whatsapp-chat-bubble {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 9px 15px 9px 13px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    text-decoration: none !important;
    position: relative !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Ponta do balão apontando para o botão do WhatsApp */
.whatsapp-chat-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #ffffff;
}

.whatsapp-chat-bubble:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    background-color: #fafafa !important;
}

/* Indicador verde piscante (ponto online) */
.online-indicator {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulsozap { 
    animation: pulsozap 2s infinite !important; 
}

@keyframes pulsozap {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float-btn {
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    background-color: #25D366 !important;
    color: #FFF !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

.whatsapp-float-btn img {
    width: 34px !important;
    height: 34px !important;
    filter: brightness(0) invert(1) !important; /* Ícone branco */
    display: block !important;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08) !important;
}

/* Responsividade do balão no mobile pequeno */
@media only screen and (max-width: 480px) {
    .whatsapp-float-group {
        bottom: 15px !important;
        right: 15px !important;
        gap: 8px !important;
    }
    .whatsapp-chat-bubble {
        font-size: 11px !important;
        padding: 7px 11px 7px 9px !important;
    }
    .whatsapp-float-btn {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
    }
    .whatsapp-float-btn img {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ==========================================================================
   Tag Stamina Standardization (Section 16)
   ========================================================================== */
.stamina-footer-container {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.stamina-badge-link {
    pointer-events: auto !important;
    width: fit-content !important;
    max-width: 90% !important;
    background-color: #252525 !important;
    border-radius: 14px 14px 0 0 !important;
    border: none !important;
    padding: 10px 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    cursor: pointer !important;
}

.stamina-badge-logo {
    height: 11px !important;
    width: auto !important;
    display: block !important;
    transform: translateY(-2px) !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.stamina-badge-link:hover {
    background-color: #2e2e2e !important;
    color: #ffffff !important;
}

.stamina-badge-link:hover .stamina-badge-logo {
    transform: translateY(-2px) scale(1.05) !important;
}

/* Ensure the last section is relatively positioned for footer nesting */
#epx2mqy1L3aSBRGQrDTtTbzNTrK0tPzK {
    position: relative !important;
}

/* ==========================================================================
   Video Container
   ========================================================================== */
#A1FOyLbR52e95OklV3MHn9dHOvsqytqT iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 8px !important;
}
