/* ============================================
   Michael Costa Liderança — Correções v1.0
   ============================================ */

/* -----------------------------------------------
   1. REMOVER ESPAÇOS VAZIOS EXCESSIVOS
   Seções Elementor sem conteúdo visível
----------------------------------------------- */
.elementor-section:not(:has(*:not(:empty))):not(:has(iframe)):not(:has(video)) {
    display: none !important;
}

/* Reduzir altura mínima de seções com conteúdo vazio */
.elementor-section .elementor-container:empty,
.elementor-widget-wrap:empty {
    min-height: 0 !important;
    padding: 0 !important;
}

/* Corrigir iframes/embeds que não carregam (blocos pretos grandes) */
.elementor-widget-video .elementor-wrapper:empty,
.elementor-widget-html iframe[src=""]:empty {
    display: none !important;
}

/* -----------------------------------------------
   2. AMPLIAR LARGURA DO CONTEÚDO
----------------------------------------------- */
.elementor-section .elementor-container {
    max-width: 1200px !important;
}

/* -----------------------------------------------
   3. HERO SLIDER — IMAGENS QUEBRADAS
   Esconder slides com imagens não carregadas
----------------------------------------------- */
.elementor-carousel .swiper-slide img[src=""],
.elementor-carousel .swiper-slide img:not([src]),
.elementor-slides .swiper-slide:has(.elementor-slide-bg[style*="background-image: none"]) {
    display: none !important;
}

/* -----------------------------------------------
   4. BOTÃO CTA NO HERO
   Adiciona destaque ao primeiro botão de ação
----------------------------------------------- */
.elementor-slides-wrapper .elementor-slide-button,
.elementor-section:first-of-type .elementor-button {
    background-color: #c9a84c !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 16px 36px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.elementor-slides-wrapper .elementor-slide-button:hover,
.elementor-section:first-of-type .elementor-button:hover {
    background-color: #a8882e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4) !important;
}

/* -----------------------------------------------
   5. BOTÃO CTA FLUTUANTE (sticky)
----------------------------------------------- */
.mc-cta-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: #c9a84c;
    color: #000 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: mc-bounce-in 0.6s ease 1s both;
}

.mc-cta-float:hover {
    background: #a8882e;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
    color: #000 !important;
}

@keyframes mc-bounce-in {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------
   9. FADE-IN ANIMAÇÃO NAS SEÇÕES
----------------------------------------------- */
.mc-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mc-fade.mc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 767px) {
    .mc-cta-float {
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: center;
        border-radius: 12px;
    }
}

/* -----------------------------------------------
   6. SEÇÃO DE NÚMEROS E CREDIBILIDADE
----------------------------------------------- */
.mc-stats-section {
    background: #111;
    border-top: 2px solid #c9a84c;
    border-bottom: 2px solid #c9a84c;
    padding: 60px 20px;
    text-align: center;
}

.mc-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.mc-stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.mc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.mc-stat-number {
    font-size: 56px;
    font-weight: 900;
    color: #c9a84c;
    line-height: 1;
    font-family: inherit;
}

.mc-stat-plus {
    font-size: 36px;
    font-weight: 900;
    color: #c9a84c;
    line-height: 1;
    margin-top: -8px;
}

.mc-stat-label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    font-weight: 600;
}

.mc-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mc-badge {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .mc-stats-grid { gap: 32px; }
    .mc-stat-number { font-size: 42px; }
    .mc-badges { gap: 10px; }
    .mc-badge { font-size: 12px; padding: 8px 16px; }
}

/* -----------------------------------------------
   7. PADRONIZAR TÍTULOS DAS SEÇÕES
----------------------------------------------- */
.elementor-widget-heading h2.elementor-heading-title {
    font-weight: 800 !important;
    letter-spacing: 1px !important;
}

/* -----------------------------------------------
   7. MELHORAR NAVEGAÇÃO — STICKY HEADER
----------------------------------------------- */
.elementor-location-header,
#masthead,
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(8px) !important;
}

/* -----------------------------------------------
   8. FOTO P&B — SUAVIZAR EFEITO
----------------------------------------------- */
.elementor-widget-image img[style*="filter: grayscale"],
.elementor-widget-image .grayscale {
    filter: grayscale(100%) contrast(1.1) !important;
    transition: filter 0.4s ease !important;
}

.elementor-widget-image img[style*="filter: grayscale"]:hover,
.elementor-widget-image .grayscale:hover {
    filter: grayscale(0%) !important;
}
