/* =================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ================================= */
:root {
    --primary-color: #41B48C;
    --dark-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #888686;
    --text-color: #fff;
    --hover-color: #7FFFD4;
    --header-bg: #888686;

    --font-family: Verdana, 'Segoe UI', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #e5e4e2;
    color: var(--dark-color);
}

/* =================================
   2. HEADER E NAVEGAÇÃO (PADRÃO)
   ================================= */
.boxmain {
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.boxm1 {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--header-bg);
    padding: 0 2em;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre os logos */
}

.logo img {
    width: 130px; /* Tamanho ajustado para cada logo */
    height: auto;
}

.navbar {
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5em 1em;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: var(--hover-color);
}

.btn-menu {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    margin-left: 1em;
}

.boxverde {
    background-color: var(--primary-color);
    height: 10px;
}

/* Menu Lateral de Navegação */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
}
#overlay.ativo { display: block; }

.Lateral-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background-color: var(--light-gray);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease-in-out;
    z-index: 2000;
    padding: 20px;
}
.Lateral-nav.ativo { right: 0; }

.MenuInf-nav h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
#ListaM-nav { list-style: none; }
#ListaM-nav li { margin-bottom: 12px; }
#ListaM-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}
#ListaM-nav a:hover { color: var(--primary-color); }


/* =================================
   3. SEÇÃO HERO (TOPO DA PÁGINA)
   ================================= */
.hero-section {
    padding: 140px 2rem 50px;
    min-height: 60vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* --- Imagens de fundo específicas para cada página --- */
#Laudos-hero { background-image: url(./img/Geral/Lau/1.1.png); }
#ESocial-hero { background-image: url(./img/Geral/Social/1.1.png); }
#Ar-hero { background-image: url(./img/Geral/Ar/1.1.png); }
#Treinamentos-hero { background-image: url(./img/Geral/Tre/1.1.png); }
#Ambiental-hero { background-image: url(./img/Geral/Amb/1.1.png); }
#Seguranca-hero { background-image: url(./img/Geral/Seg/1.1.png); }
#Medicina-hero { background-image: url(./img/Geral/Med/1.1.png); }
#Agua-hero { background-image: url(./img/Geral/Agua/1.1.png); }


.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--text-color);
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.btn-whatsapp {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
}
.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #38a37b;
}

/* Formulário da Hero */
.hero-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-form h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--dark-color);
}
.hero-form .form-group {
    margin-bottom: 1rem;
}
.hero-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.hero-form input, .hero-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.hero-form button {
    width: 100%;
    padding: 12px;
    background-color: #25d366;
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.hero-form button:hover {
    background-color: #1ebe57;
}

/* =================================
   4. SEÇÃO DE INFORMAÇÕES
   ================================= */
.info-section {
    background-color: #fff;
    padding-bottom: 2rem;
}

.info-banner {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}
.info-banner p {
    max-width: 1000px;
    margin: 0 auto;
}

.info-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

.info-articles .norma {
    margin-bottom: 2rem;
}
.info-articles .norma h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}
.info-articles .norma p, .info-articles .norma ul {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}
.info-articles .norma ul {
    padding-left: 20px;
    margin-top: 1rem;
}

/* Sidebar */
.info-sidebar .sidebar-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
/* --- Imagens da Sidebar --- */
#Laudos-sidebar-img { background-image: url(./img/Geral/Lau/2.png); }
#Ar-sidebar-img { background-image: url(./img/Geral/Ar/2.png); }
#Treinamentos-sidebar-img1 { background-image: url(./img/Geral/Tre/2.png); }
#Treinamentos-sidebar-img2 { background-image: url(./img/Geral/Tre/3.png); }
#Ambiental-sidebar-img { background-image: url(./img/Geral/Amb/2.png); }
#Seguranca-sidebar-img { background-image: url(./img/Geral/Seg/2.png); }
#Medicina-sidebar-img { background-image: url(./img/Geral/Med/2.png); }
#Agua-sidebar-img { background-image: url(./img/Geral/Agua/2.png); }


.info-sidebar .sidebar-menu {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}
.sidebar-menu h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.sidebar-menu ul {
    list-style: none;
}
.sidebar-menu li a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
    padding: 10px 0 10px 25px;
    background-image: url(./img/Geral/compartilhar.png);
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: left center;
    transition: all 0.2s;
}
.sidebar-menu li a:hover {
    color: var(--primary-color);
    font-weight: bold;
    background-image: url(./img/Geral/compartilharV.png);
}


/* =================================
   5. SEÇÕES PARALLAX E BENEFÍCIOS
   ================================= */
.parallax-section {
    min-height: 250px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 2rem;
}
.parallax-section h3 {
    font-size: 1.8rem;
    max-width: 800px;
}
/* --- Imagens Parallax --- */
#Laudos-parallax { background-image: url(./img/Geral/Lau/1.2.png); }
#ESocial-parallax { background-image: url(./img/Geral/Social/1.2.png); }
#Ar-parallax { background-image: url(./img/Geral/Ar/1.2.png); }
#Treinamentos-parallax { background-image: url(./img/Geral/Tre/1.2.png); }
#Ambiental-parallax { background-image: url(./img/Geral/Amb/1.2.png); }
#Seguranca-parallax { background-image: url(./img/Geral/Seg/1.2.png); }
#Medicina-parallax { background-image: url(./img/Geral/Med/1.2.png); }
#Agua-parallax { background-image: url(./img/Geral/Agua/1.2.png); }


.benefits-section {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 3rem 2rem;
}
.benefits-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.benefits-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}
.benefits-list {
    flex: 1;
}
.benefits-list ul {
    list-style: none;
}
.benefits-list li {
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 8px 0 8px 30px;
    background: url(./img/Geral/selecione.png) no-repeat left center;
    background-size: 22px;
}

/* =================================
   6. RODAPÉ (PADRÃO)
   ================================= */
.inf_pag {
    display: flex;
    padding: 30px 2rem;
    background-color: var(--medium-gray);
    color: var(--text-color);
}
.Campo_contato {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: wrap;
}
#logo_rodape, .boxredes, .boxcontatos {
    background-color: #9c9a9a;
    height: 150px;
    flex: 1;
    min-width: 300px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#logo_rodape img { width: 200px; margin-bottom: 10px; }
#texto_logo_rodape { font-size: 1em; text-align: left; }

.boxredes a { text-decoration: none; color: var(--text-color); transition: color 0.2s; }
.boxredes a:hover { color: var(--hover-color); }
.redes { height: 25px; margin: 5px 0; }
.redes-link { padding-left: 35px; background-repeat: no-repeat; background-position: left center; background-size: 25px; }
.redes-link.facebook { background-image: url(./img/Geral/Facebook.png); }
.redes-link.instagram { background-image: url(./img/Geral/Instagram.png); }
.redes-link.twitter { background-image: url(./img/Geral/Twitter.png); }
.redes-link.youtube { background-image: url(./img/Geral/Youtube.png); }

.boxcontatos { align-items: flex-end; text-align: right; }
.cont { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 2px 0; }
.cont img { width: 25px; height: 25px; }

#Copy {
    background-color: var(--dark-color);
    color: var(--text-color);
    text-align: center;
    padding: 10px 0;
}
#Copy h5 { margin: 0; font-weight: normal; }


/* =================================
   7. ANIMAÇÕES
   ================================= */
[data-anime] { opacity: 0; transition: 0.9s; }
[data-anime="left"] { transform: translate3d(-50px, 0, 0); }
[data-anime="right"] { transform: translate3d(50px, 0, 0); }
[data-anime].animate { opacity: 1; transform: translate3d(0, 0, 0); }


/* =================================
   8. RESPONSIVIDADE
   ================================= */
@media screen and (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { max-width: 800px; }
    .info-main-content { grid-template-columns: 1fr; }
    .benefits-content { flex-direction: column; text-align: center; }
}

/* --- CORREÇÃO AQUI: Bloco de CSS para mobile melhorado --- */
@media screen and (max-width: 768px) {
    .boxm1 {
        height: 80px;
        padding: 0 1rem;
    }
    .hero-section{
        padding-top: 100px;
    }
    .logo img {
        width: 100px; /* Reduz o tamanho de cada logo */
    }
    .menu { 
        display: none; /* Esconde o link "Home" do menu principal */
    }
    .hero-text h1 { 
        font-size: 2.2rem; 
    }
    .parallax-section h3 { 
        font-size: 1.5rem; 
    }
    .Campo_contato { 
        flex-direction: column; 
    }
    #logo_rodape, .boxredes, .boxcontatos { 
        width: 100%; 
        max-width: 400px; 
        align-items: center; 
        text-align: center; 
    }
    .boxcontatos { 
        align-items: center; 
    }
    .cont { 
        justify-content: center; 
    }
}