/* MELHORIAS DE LAYOUT - MANTENDO IDENTIDADE VISUAL MTDNA */

/* 1. REFINAMENTOS TIPOGRÁFICOS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Melhora na legibilidade geral */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 2. MELHORIAS NO MENU HAMBÚRGUER - HEADER LIMPO */

/* 3. MELHORIAS NO MENU HAMBÚRGUER */
.hamburger_holder {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.hamburger_holder:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.hamburger_holder span {
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 4. SEÇÃO PRINCIPAL MELHORADA */
#identity {
    position: relative;
    overflow: hidden;
}

#identity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(244, 199, 11, 0.1) 0%, 
        rgba(233, 107, 52, 0.1) 50%, 
        rgba(244, 199, 11, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#identity:hover::before {
    opacity: 1;
}

#identity .container {
    position: relative;
    z-index: 2;
}

/* 3. MELHORIAS NO MENU HAMBÚRGUER - HEADER LIMPO */

/* Service Section Improvements */
.section3 {
    background: linear-gradient(135deg, rgba(244, 199, 11, 0.05) 0%, rgba(233, 107, 52, 0.05) 100%);
}

.item-service {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.item-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.item-service:hover::before {
    left: 100%;
}

.item-service:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(244, 199, 11, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: #f4c70b;
}

.item-serv-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.item-service:hover .item-serv-title {
    color: #e96b34;
}

.item-serv-descr {
    color: #666;
    transition: color 0.3s ease;
}

.item-service:hover .item-serv-descr {
    color: #f4c70b;
    font-weight: 600;
}

/* Gradientes suaves nos backgrounds dos serviços */
.item-service.main-1-s1 {
    background: linear-gradient(135deg, #f0f0f0 0%, #e6e6e6 100%);
}

.item-service.main-1-s2 {
    background: linear-gradient(135deg, #d5d5d5 0%, #cfcfcf 100%);
}

.item-service.main-1-s3 {
    background: linear-gradient(135deg, #c7c7c7 0%, #c1c1c1 100%);
}

/* 6. MELHORIAS NO CAROUSEL DE DEPOIMENTOS */
#testimonialSlide .oi_testimonial_holder {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#testimonialSlide .oi_testimonial_holder:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.management_image {
    border-radius: 50%;
    border: 4px solid rgba(244, 199, 11, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.management_image:hover {
    border-color: rgba(244, 199, 11, 0.8);
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(244, 199, 11, 0.2);
}

/* 7. MELHORIAS NAS NAVEGAÇÕES DOS CAROUSELS */
#serviceSlide .owl-nav .owl-next,
#serviceSlide .owl-nav .owl-prev,
#testimonialSlide .owl-nav .owl-next,
#testimonialSlide .owl-nav .owl-prev {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    font-size: 16px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

#serviceSlide .owl-nav .owl-next:hover,
#serviceSlide .owl-nav .owl-prev:hover,
#testimonialSlide .owl-nav .owl-next:hover,
#testimonialSlide .owl-nav .owl-prev:hover {
    background: rgba(244, 199, 11, 0.9);
    border-color: rgba(244, 199, 11, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(244, 199, 11, 0.3);
}

/* Garantir que as setas sejam sempre visíveis */
.owl-carousel .owl-nav {
    display: block !important;
    text-align: center;
    margin-top: 15px;
}

.owl-carousel .owl-nav button {
    display: inline-block !important;
    margin: 0 8px;
}

/* 8. MELHORIAS NA SEÇÃO DE CLIENTES - CORREÇÃO DE SOBREPOSIÇÃO */
.main-2 {
    background: transparent;
    backdrop-filter: none;
    height: 100vh;
    max-height: 100vh;
    position: relative;
    z-index: 3;
    isolation: isolate;
    contain: layout style paint;
    will-change: transform;
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    /* Força limite inferior para evitar vazamento */
    margin-bottom: 0;
    border-bottom: 1px solid transparent;
}

.main-2 .container {
    width: 100%;
}

.main-2 .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.main-2 .col-md-3,
.main-2 .col-sm-6,
.main-2 [class*="col-"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 120px;
}

.main-2 img {
    filter: grayscale(0.3) contrast(1.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.main-2 img:hover {
    filter: grayscale(0) contrast(1.2);
    transform: scale(1.02);
}

/* 9. MELHORIAS NO FORMULÁRIO DE CONTATO - CORREÇÃO DE SOBREPOSIÇÃO */
.main-7 {
    background: transparent;
    height: 100vh;
    max-height: 100vh;
    position: relative;
    z-index: 4;
    isolation: isolate;
    contain: layout style paint;
    overflow: hidden;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Força posicionamento correto */
    margin-top: 0;
    border-top: 1px solid transparent;
    /* Garante que não sobreponha a seção anterior */
    clear: both;
}

/* Mobile override for contact section */
@media (max-width: 768px) {
    .main-7 {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        contain: none !important;
        transform: none !important;
        will-change: auto !important;
    }
}

.wpcf7 input, .wpcf7 textarea {
    border-radius: 8px;
    padding: 16px 20px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wpcf7 input:focus, .wpcf7 textarea:focus {
    border-color: rgba(244, 199, 11, 0.6);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 16px rgba(244, 199, 11, 0.1),
        0 0 0 4px rgba(244, 199, 11, 0.1);
    transform: translateY(-2px);
}

#envia {
    background: linear-gradient(135deg, #f4c70b 0%, #e96b34 100%);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(244, 199, 11, 0.3);
    position: relative;
    overflow: hidden;
}

#envia::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

#envia:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(244, 199, 11, 0.4);
}

#envia:hover::before {
    left: 100%;
}

/* 10. MELHORIAS NAS INFORMAÇÕES DE CONTATO */
.contact-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
}

.contact-info li {
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.contact-info li:hover {
    background: rgba(244, 199, 11, 0.1);
    transform: translateX(5px);
}

.contact-info strong {
    color: #f4c70b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

/* 11. MELHORIAS NOS MODALS */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f4c70b 0%, #e96b34 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.modal-body ul li:hover {
    color: #f4c70b;
    transform: translateX(5px);
}

/* 12. INDICADORES VISUAIS MELHORADOS */
#pp-nav span {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#pp-nav .active span {
    background: linear-gradient(135deg, #f4c70b 0%, #e96b34 100%);
    border-color: #f4c70b;
    box-shadow: 0 4px 16px rgba(244, 199, 11, 0.4);
    transform: scale(1.2);
}

/* 13. MELHORIAS NA SEÇÃO DE NÚMEROS */
.section_number {
    /* Aumenta a opacidade para melhor visibilidade */
    opacity: 0.3 !important;
    
    /* Gradiente mais visível para fundos escuros */
    background: linear-gradient(135deg, 
        rgba(244, 199, 11, 0.8) 0%, 
        rgba(233, 107, 52, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.2));
}

/* Ajuste específico para fundos claros */
.light_bg .section_number {
    /* Em fundos claros, usa gradiente mais escuro */
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4)ddTOUXXXAAAA 0%, 
        rgba(60, 60, 60, 0.4) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; /* Remove cor sólida */
    opacity: 0.4 !important; /* Mais visível em fundos claros */
}

/* Aplicar o mesmo gradiente dos números aos textos laterais */
.page_title p {
    /* Mesmo gradiente dos números para fundos escuros */
    background: linear-gradient(135deg, 
        rgba(244, 199, 11, 0.9) 0%, 
        rgba(233, 107, 52, 0.9) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.3)) !important;
    font-weight: 600 !important;
}

/* Para fundos claros - mesmo gradiente escuro dos números */
body.light_bg .page_title p,
html body.light_bg .page_title p {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(60, 60, 60, 0.7) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(1px 2px 4px rgba(255, 255, 255, 0.4)) !important;
    font-weight: 600 !important;
}

/* CORREÇÃO CRÍTICA: Sobrescreve a regra que esconde page_title em telas menores */
@media screen and (max-width: 1200px), screen and (max-height: 800px) {
    .page_title, .section_number {
        display: block !important; /* Força a exibição */
        visibility: visible !important;
    }
    
    /* Ajusta o posicionamento para telas menores */
    .page_title {
        left: 20px !important; /* Mais próximo da borda */
        font-size: 12px !important; /* Texto menor */
    }
    
    .section_number {
        left: 30px !important; /* Mais próximo da borda */
        font-size: 80px !important; /* Número menor */
        line-height: 80px !important;
        margin-top: -40px !important;
    }
    
    /* Garante visibilidade dos textos em telas menores com mesmo gradiente dos números */
    .light_bg .page_title p {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(60, 60, 60, 0.8) 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(1px 1px 3px rgba(255, 255, 255, 0.5)) !important;
        font-weight: bold !important;
    }
    
    .light_bg .section_number {
        opacity: 0.6 !important; /* Mais visível em telas pequenas */
    }
}

/* Regra adicional para garantir visibilidade em desktop */
@media screen and (min-width: 1201px) {
    .page_title {
        display: block !important;
        visibility: visible !important;
    }
    
    .section_number {
        display: block !important;
        visibility: visible !important;
    }
}

/* Override para quando pagepiling estiver desativado via JS */
body.pagepiling-scroll-fix, body.pagepiling-scroll-fix html, body.pagepiling-scroll-fix body {
    overflow: auto !important;
    height: auto !important;
}

body.pagepiling-scroll-fix #pagepiling {
    transform: none !important;
    height: auto !important;
}

/* Garante que seções não fiquem posicionadas absolutamente quando pagepiling for desativado */
body.pagepiling-scroll-fix .pp-section,
body.pagepiling-scroll-fix .ppslide {
    position: relative !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    transform: none !important;
}

/* Remove navegação flutuante do plugin caso ainda exista */
body.pagepiling-scroll-fix #pp-nav,
body.pagepiling-scroll-fix .pp-slidesNav {
    display: none !important;
}

/* Linhas decorativas com gradiente similar */
.page_title p:before,
.page_title p:after {
    border-bottom: 1px solid rgba(244, 199, 11, 0.6) !important; /* Cor dourada */
}

.light_bg .page_title p:before,
.light_bg .page_title p:after {
    border-bottom-color: rgba(60, 60, 60, 0.6) !important; /* Cor escura para fundos claros */
}

/* 14. MICROINTERAÇÕES GERAIS */
.ppslide {
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}

/* CORREÇÃO ESPECÍFICA: Evitar sobreposição HOME sobre SERVICES */
.main-6 {
    z-index: 1;
    position: relative;
    contain: layout style paint;
    isolation: isolate;
}

.main-1-3 {
    z-index: 2;
    position: relative;
    margin-top: 0;
    contain: layout style paint;
    isolation: isolate;
}

/* CONTROLE RIGOROSO PARA CARREGAMENTO SEM CACHE */
body.loading:not(.site-loaded) .ppslide:not(.main-6):not(#identity) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 300vh, 0) !important;
    z-index: -1000 !important;
    position: absolute !important;
    top: 300vh !important;
}

body.loading:not(.site-loaded) .main-6,
body.loading:not(.site-loaded) #identity {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    z-index: 1000 !important;
    position: relative !important;
}

/* Controle ESPECÍFICO para seções problemáticas */
body.loading:not(.site-loaded) .main-2,
body.loading:not(.site-loaded) #Clients {
    display: none !important;
    z-index: -2000 !important;
    transform: translate3d(0, 400vh, 0) !important;
}

body.loading:not(.site-loaded) .main-7,
body.loading:not(.site-loaded) #contacts {
    display: none !important;
    z-index: -3000 !important;
    transform: translate3d(0, 500vh, 0) !important;
}

/* Classes auxiliares para controle durante loading */
.loading-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.cache-loading-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* Controle para quando as imagens estão prontas mas loading não terminou */
.images-ready {
    /* Mantém escondido até loading completo, mas já com imagens carregadas */
    display: none !important;
    opacity: 0 !important;
}

/* Após loading completo, permite transição suave */
body.site-loaded .images-ready {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.6s ease !important;
}

/* Garantia adicional de ordem de z-index após loading */
body.site-loaded #Clients {
    z-index: 4 !important;
    position: relative !important;
    isolation: isolate !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    contain: layout style paint !important;
}

body.site-loaded #contacts {
    z-index: 5 !important;
    position: relative !important;
    isolation: isolate !important;
    margin-top: 0 !important;
    clear: both !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    contain: layout style paint !important;
}

/* SOLUÇÃO EXTREMA - Força modo estático se PagePiling falhar */
.force-static-layout #Clients,
.force-static-layout #contacts {
    position: static !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
}

.force-static-layout #pagepiling {
    height: auto !important;
    overflow: visible !important;
}

.force-static-layout .ppslide {
    position: static !important;
    height: auto !important;
    min-height: 100vh !important;
    transform: none !important;
}

/* Prevenção final - margin negativo para forçar separação */
@media screen and (max-width: 1200px) {
    #contacts {
        margin-top: -1px !important;
        border-top: 1px solid transparent !important;
    }
}

/* Após loading, mostra todas as seções com transição controlada */
body.site-loaded .ppslide {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
    position: relative;
    z-index: auto;
    top: auto;
}

/* Força separação adequada entre seções após loading */
body.site-loaded #identity,
body.site-loaded .main-6 {
    margin-bottom: 0;
    z-index: 1;
    isolation: isolate;
    contain: layout style paint;
}

body.site-loaded #services,
body.site-loaded .main-1-3 {
    margin-top: 0;
    clear: both;
    z-index: 2;
    isolation: isolate;
    contain: layout style paint;
}

body.site-loaded .main-2,
body.site-loaded #Clients {
    z-index: 3;
    isolation: isolate;
    contain: layout style paint;
}

body.site-loaded .main-7,
body.site-loaded #contacts {
    z-index: 4;
    isolation: isolate;
    contain: layout style paint;
}

/* CORREÇÃO ESPECÍFICA E DRÁSTICA - CLIENTS E CONTACT */
/* Força separação absoluta entre as seções */
#Clients.main-2 {
    position: relative !important;
    z-index: 3 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    contain: layout style paint !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
    /* Força limite rígido da seção */
    border-bottom: 5px solid transparent !important;
    margin-bottom: 0 !important;
}

#contacts.main-7 {
    position: relative !important;
    z-index: 4 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    contain: layout style paint !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
    /* Força posicionamento rígido abaixo da anterior */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    clear: both !important;
    border-top: 5px solid transparent !important;
}

/* Prevenção DRÁSTICA de sobreposição */
#Clients.main-2 + #contacts.main-7 {
    /* Garante que Contact sempre venha após Clients */
    margin-top: 0 !important;
    transform: translate3d(0, 0, 0) !important;
    top: auto !important;
    bottom: auto !important;
}

/* Força ordem de empilhamento via CSS Grid/Flexbox */
#pagepiling {
    display: flex !important;
    flex-direction: column !important;
}

#pagepiling > .ppslide {
    flex-shrink: 0 !important;
    order: 0 !important;
}

#identity { order: 1 !important; }
#services { order: 2 !important; }
.main-4, .main-5 { order: 3 !important; }
#Clients { order: 4 !important; }
#contacts { order: 5 !important; }

/* CORREÇÃO PARA PAGEPILING ATIVO */
body.pp-initialized #Clients.main-2 {
    position: relative !important;
    z-index: 3 !important;
    height: 100vh !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

body.pp-initialized #contacts.main-7 {
    position: relative !important;
    z-index: 4 !important;
    height: 100vh !important;
    overflow: hidden !important;
    isolation: isolate !important;
    margin-top: 0 !important;
}

/* CORREÇÃO PARA MODO SCROLL NORMAL */
body:not(.pp-initialized) #Clients.main-2,
body.pagepiling-scroll-fix #Clients.main-2 {
    position: relative !important;
    z-index: 3 !important;
    min-height: 100vh !important;
    height: auto !important;
    margin-bottom: 0 !important;
}

body:not(.pp-initialized) #contacts.main-7,
body.pagepiling-scroll-fix #contacts.main-7 {
    position: relative !important;
    z-index: 4 !important;
    min-height: 100vh !important;
    height: auto !important;
    margin-top: 0 !important;
    clear: both !important;
}

/* Efeito de parallax sutil */
.main-6::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-image: inherit;
    background-size: 110%;
    background-position: center;
    z-index: -1;
    transition: transform 0.6s ease-out;
}

.main-6:hover::before {
    transform: scale(1.05);
}

/* 15. MELHORIAS RESPONSIVAS REFINADAS */
@media (max-width: 768px) {
    
    .item-service {
        border-radius: 12px;
    }
    
    #testimonialSlide .oi_testimonial_holder {
        padding: 25px;
        border-radius: 16px;
    }
    
    .contact-info {
        padding: 20px;
        border-radius: 12px;
    }
    
    /* Ajustes para seção de clientes em mobile - IMAGENS MAIORES */
    .main-2 .col-md-3,
    .main-2 .col-sm-6,
    .main-2 [class*="col-"] {
        padding: 20px;
        min-height: 120px;
    }
    
    .main-2 img {
        max-height: 100px;
        width: auto;
        max-width: 90%;
    }
}

/* 16. LOADING STATES MELHORADOS */
.preload {
    background: linear-gradient(135deg, 
        rgba(244, 199, 11, 0.9) 0%, 
        rgba(233, 107, 52, 0.9) 100%);
    backdrop-filter: blur(20px);
}

.preload::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 17. MELHORIAS DE ACESSIBILIDADE VISUAL */
:focus-visible {
    outline: 3px solid rgba(244, 199, 11, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 18. OTIMIZAÇÕES DE PERFORMANCE VISUAL */
* {
    will-change: auto;
}

.item-service,
.oi_testimonial_holder {
    will-change: transform, box-shadow;
}

/* 19. ELEMENTOS DECORATIVOS SUTIS */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(244, 199, 11, 0.1) 0%, 
        rgba(233, 107, 52, 0.1) 100%);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-element-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* 20. MELHORIAS NO TEXTO PRINCIPAL */
.main-quote {
    position: relative;
    z-index: 3;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.highlight-text {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f4c70b, #e96b34);
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.main-quote:hover .highlight-text::after {
    width: 100%;
}

.highlight-text:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(244, 199, 11, 0.4));
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 21. MELHORIAS NOS TÍTULOS DAS SEÇÕES */
.oi_icon_titile {
    position: relative;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.oi_white.oi_icon_titile {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 22. EFEITOS DE HOVER MELHORADOS PARA NAVEGAÇÃO */
.primary-menu > li > a {
    position: relative;
    overflow: hidden;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f4c70b, #e96b34);
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
    width: 100%;
}

/* 23. MELHORIAS NO BOTÃO DE EMERGÊNCIA */
.scroll-emergency-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    animation: pulse 2s infinite;
}

.scroll-emergency-btn:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 68, 68, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 68, 68, 0.5);
    }
}

/* 24. MELHORIAS NAS BORDAS E LINHAS DECORATIVAS */
.oi_heading_border span {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #f4c70b 20%, 
        #e96b34 50%, 
        #f4c70b 80%, 
        transparent 100%);
    height: 2px;
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(244, 199, 11, 0.3);
}

/* 25. ANIMAÇÕES DE ENTRADA PARA ELEMENTOS */
.item-service {
    animation: slideInFromBottom 0.8s ease-out;
}

.item-service:nth-child(2) {
    animation-delay: 0.2s;
}

.item-service:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 26. MELHORIAS NO FORMULÁRIO DE CONTATO */
.section5 {
    background: linear-gradient(135deg, rgba(244, 199, 11, 0.08) 0%, rgba(233, 107, 52, 0.08) 100%);
    position: relative;
}

.section5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactgrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(244,199,11,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23contactgrid)"/></svg>');
    pointer-events: none;
}

.contact-form {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f4c70b, #e96b34, #f4c70b);
    border-radius: 27px;
    z-index: -1;
    animation: contactBorderGlow 3s ease-in-out infinite alternate;
}

@keyframes contactBorderGlow {
    0% {
        opacity: 0.4;
        filter: blur(2px);
    }
    100% {
        opacity: 0.7;
        filter: blur(4px);
    }
}

.form-control {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 18px 20px !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    backdrop-filter: blur(10px) !important;
    color: #333 !important;
    font-size: 16px !important;
}

.form-control::placeholder {
    color: rgba(51, 51, 51, 0.6) !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #f4c70b !important;
    box-shadow: 0 0 0 4px rgba(244, 199, 11, 0.2), 0 10px 30px rgba(244, 199, 11, 0.15) !important;
    outline: none !important;
    transform: translateY(-2px) !important;
}

textarea.form-control {
    min-height: 120px !important;
    resize: vertical !important;
}

.btn-primary {
    background: linear-gradient(135deg, #f4c70b 0%, #e96b34 100%) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 18px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    font-size: 14px !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(244, 199, 11, 0.4) !important;
    background: linear-gradient(135deg, #e96b34 0%, #f4c70b 100%) !important;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* Contact Info Enhancement */
.contact-info h3,
.oi_icon_titile {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Melhorias para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    #serviceSlide .owl-nav .owl-next,
    #serviceSlide .owl-nav .owl-prev,
    #testimonialSlide .owl-nav .owl-next,
    #testimonialSlide .owl-nav .owl-prev {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        line-height: 43px !important;
    }
    
    /* Ajustes para seção de clientes em tablets - TAMANHO INTERMEDIÁRIO */
    .main-2 .col-md-3,
    .main-2 .col-sm-6,
    .main-2 [class*="col-"] {
        padding: 20px;
        min-height: 110px;
    }
    
    .main-2 img {
        max-height: 90px;
        width: auto;
        max-width: 85%;
    }
}

/* 27. MELHORIAS NA TIPOGRAFIA RESPONSIVA */
@media (max-width: 768px) {
    .main-quote {
        font-size: 24px !important;
        line-height: 30px !important;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .floating-element {
        display: none; /* Remove elementos decorativos em mobile para performance */
    }
    
    .oi_icon_titile {
        font-size: 28px !important;
    }
    
    .contact-form {
        margin: 1rem !important;
        padding: 2rem !important;
        border-radius: 20px !important;
    }
    
    .form-control {
        padding: 15px 18px !important;
        border-radius: 12px !important;
    }
    
    .btn-primary {
        padding: 15px 30px !important;
        border-radius: 25px !important;
    }
    
    /* Melhorias nas setas de navegação para mobile */
    #serviceSlide .owl-nav .owl-next,
    #serviceSlide .owl-nav .owl-prev,
    #testimonialSlide .owl-nav .owl-next,
    #testimonialSlide .owl-nav .owl-prev {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        line-height: 48px !important;
        text-align: center !important;
        background: rgba(244, 199, 11, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.8) !important;
        color: white !important;
        position: relative !important;
        z-index: 10 !important;
        margin: 5px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }
    
    #serviceSlide .owl-nav .owl-next:hover,
    #serviceSlide .owl-nav .owl-prev:hover,
    #testimonialSlide .owl-nav .owl-next:hover,
    #testimonialSlide .owl-nav .owl-prev:hover {
        background: rgba(233, 107, 52, 0.95) !important;
        transform: scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(244, 199, 11, 0.4) !important;
    }
    
    /* Posicionamento melhorado para mobile */
    #serviceSlide .owl-nav,
    #testimonialSlide .owl-nav {
        text-align: center !important;
        margin-top: 20px !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .owl-carousel .owl-nav {
        display: block !important;
    }
    
    .owl-carousel .owl-nav button {
        display: inline-block !important;
        margin: 0 5px !important;
    }
}

/* Para telas muito pequenas - CLIENTES AINDA MAIORES */
@media (max-width: 480px) {
    /* Seção de clientes em smartphones pequenos */
    .main-2 img {
        max-height: 120px !important;
        width: auto !important;
        max-width: 95% !important;
        margin: 10px auto !important;
        display: block !important;
    }
    
    .main-2 .col-sm-12 > div {
        padding: 25px 15px !important;
        margin: 15px 0 !important;
    }
    #serviceSlide .owl-nav .owl-next,
    #serviceSlide .owl-nav .owl-prev,
    #testimonialSlide .owl-nav .owl-next,
    #testimonialSlide .owl-nav .owl-prev {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        line-height: 43px !important;
        margin: 0 8px !important;
    }
    
    #serviceSlide .owl-nav,
    #testimonialSlide .owl-nav {
        margin-top: 15px !important;
        padding: 10px 0 !important;
    }
}

/* 28. OTIMIZAÇÕES FINAIS DE PERFORMANCE */
.glassmorphism * {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevenção de FOUC (Flash of Unstyled Content) */
.ppslide {
    opacity: 1;
    transform: translateZ(0);
}

/* Melhorias nos estados de carregamento */
.contact-form {
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.5s forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}