/* ==========================================================================
   1. VARIÁVEIS E RESET
   ========================================================================== */
:root {
    --primary: #8CC63F;
    --primary-hover: #7AB32E;
    --black: #000;
    --dark: #1A1A1A;
    --gray: #666;
    --light-gray: #F5F5F5;
    --bg-card: #F0FADC;
    --divider-color: #DCEBCB;
    --font: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; } 
body { font-family: var(--font); color: var(--dark); background-color: #fff; width: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }

/* BOTÕES */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; text-align: center; border: none; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid #ccc; color: var(--gray); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 15px 40px; font-size: 1.1rem; }
.btn-wide { width: 100%; }

/* TÍTULOS ESTILIZADOS */
.section-title-styled { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.icon-box-lime { width: 60px; height: 60px; background: var(--primary); border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box-lime img { width: 30px; filter: brightness(0); }
.section-title-styled h2 { font-size: 2.5rem; font-weight: 800; margin: 0; color: #000; line-height: 1.1; }

/* ==========================================================================
   2. HEADER & MENU
   ========================================================================== */
.site-header { padding: 15px 0; position: sticky; top: 0; background: rgba(255,255,255,0.98); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 40px; width: auto; }

/* Menu Desktop */
.main-nav ul { display: flex; gap: 25px; }
.main-nav a { font-weight: 500; font-size: 0.9rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

/* Botão Hambúrguer */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1100; }
.mobile-toggle span { display: block; width: 25px; height: 3px; background-color: #000; border-radius: 3px; transition: 0.3s; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Gaveta Mobile */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255,255,255,0.98);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 1050;
    transform: translateY(-100%); transition: transform 0.4s ease;
    text-align: center;
}
.mobile-menu-overlay.active { transform: translateY(0); }
.mobile-menu-overlay ul { display: flex; flex-direction: column; gap: 30px; margin-bottom: 30px; }
.mobile-menu-overlay a { font-size: 1.5rem; font-weight: 700; color: #000; }
.mobile-menu-overlay a:hover, .mobile-menu-overlay a.active { color: var(--primary); }

/* Botão Fechar Menu */
.btn-close-menu {
    position: absolute; top: 25px; right: 25px;
    background: none; border: none; font-size: 3rem; line-height: 1;
    color: #000; cursor: pointer;
}

/* ==========================================================================
   3. HOME - SEÇÕES
   ========================================================================== */
.hero-section {
    padding: 60px 0 100px; text-align: center;
    background: radial-gradient(circle at 50% 60%, rgba(140, 198, 63, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
}
.hero-text h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; color: #000; font-weight: 800; }
.hero-text p { max-width: 700px; margin: 0 auto 30px; color: var(--gray); }
.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }

.hero-visual { position: relative; max-width: 500px; margin: 0 auto; height: 450px; }
.hero-man { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; object-fit: contain; z-index: 2; }
.float-pill {
    position: absolute; background: #fff; padding: 10px 20px; border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); font-weight: 600; font-size: 0.9rem; z-index: 3; white-space: nowrap;
    animation: float 4s ease-in-out infinite;
}
.pill-1 { top: 10%; left: -10%; } .pill-4 { top: 20%; right: -10%; }
.pill-2 { top: 35%; left: -20%; } .pill-5 { top: 50%; right: -20%; }
.pill-3 { bottom: 20%; left: -10%; } .pill-6 { bottom: 15%; right: -5%; }
.pill-7 { bottom: -5%; left: 25%; transform: translateX(-50%); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.section-divider { width: 100%; height: 4px; background-color: var(--divider-color); margin: 40px auto; border-radius: 2px; max-width: 800px; }

/* Qualidade */
.section-qualidade { padding: 50px 0; }
.qualidade-flex { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.qualidade-left { max-width: 600px; }
.qualidade-right { display: flex; gap: 40px; align-items: center; }
.logo-inmetro { height: 55px; width: auto; object-fit: contain; }
.logo-a-cert { height: 75px; width: auto; object-fit: contain; }

/* Diferenciais */
.section-diferenciais { padding: 50px 0; }
.diferenciais-wrapper { display: flex; align-items: center; justify-content: center; gap: 50px; }
.diferenciais-img { width: 50%; display: flex; justify-content: center; }
.diferenciais-img img { width: 200%; max-width: 500px; }
.diferenciais-content { background: var(--bg-card); padding: 50px; border-radius: 40px; width: 50%; }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.icon-box-black { background: #000; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.icon-box-black img { width: 20px; filter: invert(1); }
.diferenciais-content h3 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
.tags-cloud span { display: inline-block; background: #000; color: #fff; padding: 8px 15px; border-radius: 20px; font-size: 0.85rem; margin: 0 5px 10px 0; }

/* Como Funciona */
.section-como-funciona { padding: 60px 0; }
.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.section-header h2 { font-size: 2rem; font-weight: 800; }
.subtitle { color: var(--gray); margin-bottom: 40px; font-size: 1.1rem; }
.steps-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step-row { display: flex; align-items: center; padding: 20px; border-radius: 10px; position: relative; }
.step-row.gray { background: #D3D3D3; color: #fff; }
.step-row.green { background: var(--primary); color: #fff; grid-column: 1 / -1; }
.step-num { font-size: 3rem; font-weight: 800; margin-right: 20px; opacity: 0.8; line-height: 1; }
.seal-img { position: absolute; right: -20px; top: -20px; width: 120px; }

/* CTA Complexo */
.section-complex-cta { padding: 80px 0 100px; position: relative; overflow: visible; }
.cta-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.cta-left-content { position: relative; padding-bottom: 100px; }
.cta-left-content h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 30px; }
.illustration-bottom-left { position: absolute; bottom: -500px; left: 0; width: 200%; max-width: 600px; z-index: 1; }
.cta-right-box { position: relative; padding-top: 50px; }
.man-and-wave { position: absolute; top: -100px; right: -100px; width: 550px; height: 450px; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; }
.wave-background { position: absolute; width: 100%; height: auto; top: 100px; left: 80px; transform: rotate(5deg) scale(1.1); }
.man-on-wave { position: absolute; z-index: 2; height: 100%; width: auto; object-fit: contain; transform: translateX(-50px); align-content: center }
.contact-form { margin-top: 280px; max-width: 450px; margin-left: auto; padding: 30px; background: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; z-index: 2; }
.contact-form label { display: block; margin-bottom: 5px; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; border: 1px solid #eee; border-radius: 5px; margin-bottom: 15px; background: #fff; }
.contact-form button { width: 100%; border-radius: 20px; }

/* Mapa */
.section-mapa { padding: 60px 0; background: #f9fcf5; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.map-frame { border-radius: 30px; overflow: hidden; min-height: 350px; background: #eee; }
.address-box-wrapper { display: flex; flex-direction: column; gap: 45px; }
.building-photo { border-radius: 30px; height: 200px; object-fit: cover; width: 100%; }
.green-address-card { background: #8FC742; padding: 30px; border-radius: 30px; color: #fff; position: relative; }
.green-address-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.icon-box-check { position: absolute; bottom: 20px; right: 20px; width: 40px; }

/* Newsletter Fixa Desktop */
.newsletter-fixed {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    width: 100%; max-width: 500px;
    background: #9ACA58; padding: 25px 30px; border-radius: 25px;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
}
.btn-close { position: absolute; top: 10px; right: 15px; background: transparent; border: none; color: rgba(255,255,255,0.6); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.news-text-area h4 { color: #fff; margin: 0 0 10px 0; font-size: 1.1rem; font-weight: 400; }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; border: none; border-radius: 30px; padding: 10px 20px; font-size: 0.9rem; outline: none; }
.news-form button { background: #fff; color: #8CC63F; border: none; padding: 10px 25px; border-radius: 30px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.news-icon-img { width: 70px; height: auto; }

/* ==========================================================================
   4. WHATSAPP & MODAIS
   ========================================================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 1000;
    display: block; width: 65px; height: auto; cursor: pointer;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-icon-img { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

.wa-modal-overlay {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.5);
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.wa-modal-overlay.active { display: flex; opacity: 1; }

.wa-modal-box {
    background-color: #fff; padding: 30px; border-radius: 20px;
    width: 90%; max-width: 400px; position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); text-align: center;
}
.wa-close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }
.wa-modal-box h3 { margin-bottom: 20px; color: #000; font-size: 1.2rem; }
.wa-form input, .wa-form select {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 10px; outline: none; font-family: var(--font);
}
.wa-form button {
    width: 100%; padding: 12px; background-color: #25d366; color: #fff;
    border: none; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.wa-form button:hover { background-color: #1da851; }

/* ==========================================================================
   5. ESTILOS PÁGINAS INTERNAS
   ========================================================================== */
/* Certificações */
.cert-hero { padding: 60px 0; position: relative; }
.cert-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cert-hero-illu { display: flex; justify-content: center; }
.cert-hero-illu img { max-width: 100%; width: 450px; }
.cert-details-section { padding: 100px 0 60px; position: relative; overflow: hidden; }
.bg-blob-right { position: absolute; right: -100px; top: 50px; width: 400px; opacity: 0.5; z-index: -1; }
.cert-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pill-header { background: #ECF8D9; color: #555; padding: 15px 30px; border-radius: 50px; font-weight: 700; display: inline-block; margin-bottom: 30px; font-size: 0.9rem; }
.cert-items-list li { margin-bottom: 25px; }
.cert-items-list strong { display: block; font-size: 1rem; color: #000; margin-bottom: 5px; }
.cert-pills-nav { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; position: relative; padding-left: 40px; }
.nav-line-connector { position: absolute; left: 15px; top: 20px; bottom: 20px; width: 2px; background: #eee; z-index: 0; }
.cert-pill-btn { background: #fff; border: 1px solid #eee; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 1rem; color: #333; cursor: pointer; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s; position: relative; z-index: 1; width: 100%; max-width: 250px; }
.cert-pill-btn:hover { border-color: var(--primary); transform: translateX(5px); color: var(--primary); }

/* Reutilizável: Contato Padrão */
.section-contato-padrao { padding: 80px 0; position: relative; overflow: hidden; }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.form-padrao input, .form-padrao textarea { width: 100%; padding: 12px 15px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 15px; outline: none; }
.contato-visual-bg { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.wave-bottom-bg { position: absolute; bottom: 0; right: 0; width: 120%; z-index: 0; }

/* Blog */
.blog-hero-section { padding: 20px 0; background-color: #fff; position: relative; overflow: hidden; }
.blog-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.blog-title-wrapper { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.icon-blob-green { width: 70px; height: 70px; background-color: #9CCF50; border-radius: 20px 20px 20px 5px; display: flex; align-items: center; justify-content: center; }
.blog-hero-text h1 { font-size: 3.5rem; font-weight: 700; margin: 0; line-height: 1; }
.green-divider-line { width: 100%; max-width: 300px; height: 8px; background-color: #ECF8D9; border-radius: 4px; }
.section-blog-feed { padding: 0px 0 100px 0; background-color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
/* --- CLASSE DA CAPA DA MATÉRIA (Ajuste Solicitado) --- */
.img-capa-materia {
    width: 100%;
    height: 200px; /* Altura fixa solicitada */
    object-fit: cover; /* Garante que a imagem preencha sem distorcer */
    object-position: center; /* Centraliza a imagem no corte */
    border-radius: 30px; /* Mantém o padrão arredondado do site */
    margin-bottom: 40px;
    display: block;
}

/* Ajuste para mobile (opcional, se quiser menor ainda no celular) */
@media (max-width: 991px) {
    .img-capa-materia {
        height: 200px;
    }
}
.blog-card { background-color: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.2s; border: 1px solid #f0f0f0; }
.blog-card-image-placeholder { width: 100%; height: 220px; background-color: #E6E6E6; display: flex; align-items: center; justify-content: center; color: #999; }
.blog-card-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-link { font-weight: 700; color: #8BC53F; font-size: 0.95rem; display: inline-flex; align-items: center; }

/* Blog Destaque & Artigo */
.blog-featured-post { margin-bottom: 80px; width: 100%; }
.featured-img-wide { width: 100%; height: 450px; background-color: #9ACA58; border-radius: 30px; overflow: hidden; margin-bottom: 30px; position: relative; }
.featured-img-wide img { width: 100%; height: 100%; object-fit: cover; }
.featured-content { padding-left: 20px; border-left: 8px solid #ECF8D9; }
.featured-content h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; color: #000; line-height: 1.2; }
.featured-content p { font-size: 1.1rem; color: #555; margin-bottom: 15px; line-height: 1.6; }
.featured-link { font-weight: 800; color: #8BC53F; text-decoration: none; font-size: 1.1rem; }

/* Google Ads e Artigo Interno */
.google-ad-container { margin: 30px 0; padding: 10px; }
.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 60px; }
.article-content p { margin-bottom: 20px; line-height: 1.8; color: #444; }
.article-meta { border-top: 1px solid #eee; padding-top: 20px; margin-top: 40px; color: #888; font-style: italic; }

/* Contato Page */
.contact-hero-section { padding: 60px 0; display: flex; align-items: center; justify-content: center; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-form-card { background-color: #E9F7D6; border-radius: 40px; padding: 60px 50px; box-shadow: none; }
.contact-form-card h1 { font-family: 'Poppins', sans-serif; font-weight: 800; color: #0D0D25; margin-bottom: 40px; font-size: 3rem; line-height: 1.1; }
.contact-form-card label { font-weight: 600; color: #444; font-size: 0.95rem; margin-bottom: 8px; display: block; }
.contact-form-card .form-control { border-radius: 15px; padding: 18px 25px; margin-bottom: 20px; font-size: 1rem; color: #333; width: 100%; border: 1px solid #eee; background: #fff; outline: none; }
.btn-contact-submit { background-color: #8BC53F; border-radius: 50px; padding: 15px 60px; font-size: 1.1rem; font-weight: 700; margin-top: 10px; box-shadow: 0 10px 20px rgba(140, 198, 63, 0.3); border: none; color: #fff; cursor: pointer; }
.contact-visual-right { position: relative; display: flex; justify-content: center; align-items: center; min-height: 300px; }
.bg-wave-decoration { position: absolute; z-index: 0; width: 100%; max-width: 500px; opacity: 0.6; }
.icon-3d-chat { position: relative; z-index: 1; max-width: 80%; animation: float 6s ease-in-out infinite; }

/* Quem Somos */
.qs-hero { padding: 80px 0; }
.qs-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.qs-illu img { width: 100%; max-width: 450px; }
.qs-mv-layout { display: block; width: 100%; }
.qs-cards-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; }
.qs-card { background: #8CC63F; padding: 50px 40px; border-radius: 30px; color: #fff; min-height: 320px; box-shadow: 0 15px 30px rgba(140, 198, 63, 0.2); display: flex; flex-direction: column; justify-content: center; }
.qs-card h3 { font-size: 2rem; margin-bottom: 20px; line-height: 1.1; }
.qs-card p { font-size: 1.05rem; line-height: 1.6; opacity: 0.9; }
.qs-historia { margin-top: 100px; padding-bottom: 60px; }
.qs-historia-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.qs-contato-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-end; }

/* Clientes e Depoimentos */
.section-clientes { padding: 60px 0; overflow: hidden; }
.section-title-styled.centered { justify-content: center; text-align: center; }
.logos-marquee-wrapper { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.logos-track { display: flex; gap: 30px; width: max-content; animation: scrollMarquee 20s linear infinite; }
.client-logo-box { 
    width: 180px; 
    height: 120px; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 15px;
}
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); object-fit: contain; /* Normaliza o tamanho visual */; } }

.section-depoimentos { padding: 80px 0; background: linear-gradient(to bottom, #fff, #f9fcf5); }
.testimonial-layout { display: flex; align-items: center; justify-content: center; gap: 20px; position: relative; }
.testimonials-slider { display: flex; gap: 30px; overflow-x: auto; scroll-behavior: smooth; padding: 20px 10px; width: 100%; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonials-slider::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: 350px; max-width: 350px; background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 40px 30px; box-shadow: 0 15px 30px rgba(0,0,0,0.05); flex-shrink: 0; transition: transform 0.3s; scroll-snap-align: center; }
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.avatar-circle { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; }
.testi-info h4 { font-size: 1.1rem; font-weight: 800; margin: 0; color: #000; }
.testi-info span { font-size: 0.85rem; color: #888; font-weight: 600; text-transform: uppercase; }
.testimonial-card p { font-size: 0.95rem; color: #555; line-height: 1.6; font-style: italic; }
.nav-arrow { width: 50px; height: 50px; border-radius: 50%; border: none; background-color: #8CC63F; color: #000; font-weight: 800; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; flex-shrink: 0; z-index: 2; }
.nav-arrow:hover { background-color: #7AB32E; transform: scale(1.1); }

/* ==========================================================================
   6. FOOTER GLOBAL
   ========================================================================== */
.site-footer { background: #000; color: #fff; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col-nav h4, .footer-col-news h4, .footer-col-posts h4 { color: #fff; margin-bottom: 20px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.footer-col-nav a { display: block; margin-bottom: 10px; color: #888; }
.footer-col-nav a:hover { color: var(--primary); }
.footer-form input { width: 100%; padding: 10px; border: none; margin-bottom: 10px; }
.footer-form button { width: 100%; padding: 10px; background: var(--primary); color: #fff; border: none; font-weight: 700; cursor: pointer; }
.footer-bar { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: #666; font-size: 0.8rem; }
.social-icons a { margin-right: 15px; font-weight: 700; color: #fff; }

/* ==========================================================================
   7. RESPONSIVIDADE GLOBAL (CORREÇÃO TOTAL MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
    
    /* --- GERAL --- */
    html, body { overflow-x: hidden; width: 100%; position: relative; }
    .container { width: 90%; padding: 0; overflow: visible; } 
    
    /* Header e Menu */
    .main-nav, .site-header .btn-sm { display: none; }
    .mobile-toggle { display: flex; }
    .header-inner { flex-direction: row; justify-content: space-between; }
    
    /* Centralização de Títulos */
    .section-title-styled { justify-content: center; text-align: center; margin-bottom: 30px; }
    
    /* Transforma Grids em Colunas */
    .qualidade-flex, .diferenciais-wrapper, .map-grid, .footer-grid, 
    .cert-hero-grid, .cert-details-grid, .contato-grid, 
    .blog-hero-layout, .contact-layout,
    .qs-hero-grid, .qs-mv-layout, .qs-historia-grid, .qs-contato-layout, .article-layout {
        display: flex; flex-direction: column; align-items: center; gap: 40px;
    }

    /* --- HOME --- */
    .hero-text h1 { font-size: 2.2rem; }
    .hero-visual { width: 70%; height: auto; margin-bottom: 30px; margin-top: 20px; }
    .hero-man { position: relative; height: auto; max-height: 350px; transform: none; left: auto; margin: 0 auto; }
    .float-pill { transform: scale(0.7); position: absolute; white-space: nowrap; }
    
    /* NEWSLETTER MOBILE COMPACTA */
    .newsletter-fixed {
       display: flex; flex-direction: column;
       left: 50%; transform: translateX(-50%);
       bottom: 20px; right: auto; width: 95%; max-width: 400px;
       padding: 15px 20px; gap: 10px; text-align: center;
    }
    .news-icon-img { display: none; }
    .news-text-area h4 { font-size: 0.9rem; margin: 0 0 5px 0; }
    .news-form { display: flex; gap: 8px; width: 100%; }
    .news-form input { padding: 10px; margin: 0; height: 45px; font-size: 0.9rem; }
    .news-form button { padding: 0 15px; height: 45px; width: auto; font-size: 0.85rem; }
    .btn-close { top: 5px; right: 10px; color: #fff; }

    /* Outros */
    .qualidade-right { justify-content: center; margin-top: 0; flex-wrap: wrap; gap: 30px; }
    .logo-inmetro { height: 55px; } .logo-a-cert { height: 75px; }

    .diferenciais-wrapper { gap: 0; }
    .diferenciais-img { order: 1; margin-bottom: -30px; z-index: 2; position: relative; }
    .diferenciais-content { order: 2; width: 100%; padding: 60px 30px 40px; border-radius: 30px; z-index: 1; }
    .tags-cloud { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; }

    .steps-container { grid-template-columns: 1fr; width: 100%; }
    .step-row.green { position: relative; overflow: hidden; padding-right: 10px; }
    .seal-img { width: 80px; top: 50%; transform: translateY(-50%); right: 10px; opacity: 1; z-index: 2; }
    .step-row.green .step-text { padding-right: 70px; }

    /* HOME CONTATO MOBILE (Homem > Form > Texto) */
    .section-complex-cta { padding: 0 0 50px; overflow: hidden; }
    .cta-grid-layout { display: flex; flex-direction: column; gap: 0; }
    .cta-right-box { order: 1; width: 100%; padding-top: 0; display: flex; flex-direction: column; align-items: center; }
    .man-and-wave { position: relative; top: 0; right: 0; width: 100%; height: 280px; margin-bottom: 0; justify-content: center; align-items: flex-end; }
    .man-on-wave { height: 100%; max-height: 320px; object-fit: contain; position: center; bottom: -20px; margin-left: 120px; }
    .wave-background { width: 140%; top: 50px; left: 210px; transform: translateX(-50%); }
    .contact-form { margin-top: -40px; margin-left: 0; width: 100%; position: relative; z-index: 10; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    .cta-left-content { order: 2; width: 100%; padding-bottom: 0; text-align: center; margin-top: 40px; display: flex; flex-direction: column; align-items: center; }
    .illustration-bottom-left { position: relative; bottom: auto; left: auto; width: 80%; margin: 0 auto; }

    /* MAPA MOBILE */
    .address-box-wrapper { width: 100%; order: 2; }
    .map-frame { order: 1; width: 100%; height: 250px; border-radius: 20px; }
    .green-address-card { padding: 40px 30px 80px; text-align: center; margin-top: -30px; position: relative; z-index: 10; }
    .icon-box-check { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); width: 60px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2)); }

    /* BLOG & DEPOIMENTOS MOBILE */
    .blog-grid { grid-template-columns: 1fr; }
    .featured-img-wide { height: 250px; }
    .featured-content { border-left: none; padding-left: 0; }
    
    .testimonial-card { min-width: 85vw; max-width: 85vw; padding: 30px 40px; }
    .nav-arrow { position: absolute; width: 40px; height: 40px; background-color: rgba(140, 198, 63, 0.95); box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 100; color: #000; display: flex; top: 50%; transform: translateY(-50%); }
    .prev-arrow { left: 0; border-radius: 50% 50% 50% 50%; padding-right: 5px; }
    .next-arrow { right: 0; border-radius: 50% 50% 50% 50%; padding-left: 5px; }
    .testimonials-slider { width: 100%; padding: 20px 40px; }

    /* FOOTER */
    .footer-grid { text-align: center; gap: 40px; }
    .footer-bar { flex-direction: column; gap: 15px; }
    
    /* PÁGINAS INTERNAS */
    .cert-newsletter-float, .blog-hero-layout, .contact-layout { display: flex; flex-direction: column; }
    .cert-hero-illu, .blog-hero-visual, .contact-visual-right, .qs-illu { order: -1; margin-bottom: 20px; }
    .cert-pills-nav, .cert-list-box { width: 100%; padding: 0; }
    
    /* Ajuste Mobile Quem Somos */
    .qs-cards-wrapper { grid-template-columns: 1fr; }
    .qs-card { min-height: auto; padding: 40px 30px; }
    .qs-historia { margin-top: 60px; }
}
/* POP-UP DE COOKIES (GDPR) */
.cookie-consent-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 20px 30px;
    z-index: 99999;
    display: none; /* Oculto por padrão, ativado via JS */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #eee;
}

.cookie-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.cookie-text a {
    color: #8CC63F;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-btn {
    background-color: #8CC63F;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.cookie-btn:hover {
    background-color: #7AB32E;
}

@media (max-width: 768px) {
    .cookie-consent-bar {
        flex-direction: column;
        text-align: center;
        bottom: 0;
        width: 100%;
        border-radius: 15px 15px 0 0;
    }
    .cookie-btn {
        width: 100%;
    }
}
/* ==========================================================================
   MODAL DE COOKIES LGPD (Barra + Preferências)
   ========================================================================== */

/* 1. Barra Fixa no Rodapé */
.cookie-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 99999; /* Bem alto para ficar sobre tudo */
    display: none; /* Oculto por padrão (JS ativa) */
    padding: 20px;
}

.cookie-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: #8CC63F;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Botões da Barra */
.cookie-btn-accept {
    background: #8CC63F;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: #7AB32E;
}

.cookie-btn-settings {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.cookie-btn-settings:hover {
    border-color: #8CC63F;
    color: #8CC63F;
}

/* 2. Modal de Preferências (Overlay Escuro) */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000; /* Maior que a barra */
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Caixa Branca do Modal */
.cookie-modal {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cookie-modal h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #0D0D25;
}

/* Linhas de Opção (Necessários, Marketing...) */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-label strong {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 2px;
}

.cookie-label small {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

/* 3. Switch (Chavinha Toggle iOS Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #8CC63F;
}

input:focus + .slider {
    box-shadow: 0 0 1px #8CC63F;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Estado Desabilitado (Cookies Necessários) */
input:disabled + .slider {
    background-color: #8CC63F; /* Sempre verde */
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .cookie-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .cookie-btn-accept, .cookie-btn-settings {
        width: 100%; /* Botões largos no mobile */
    }
}