/* =================================
   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;
    --gradient-header: linear-gradient(to right, #f5f5f5, #a9a9a9, #2c2c2c);
    --font-family: Verdana, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: #e5e4e2;
    text-align: justify;
    color: #222;
}

/* =================================
   2. HEADER E NAVEGAÇÃ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: var(--gradient-header); padding: 0 2em; gap: 1em;}
.logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 200px; height: auto; }
.navbar { width: 100%; color: var(--text-color); display: flex; align-items: center; } /* --- AJUSTE AQUI --- */
.menu { list-style: none; display: flex; gap: 2em; margin-left: auto; /* --- AJUSTE AQUI: Joga o menu para a direita --- */ }
.menu li a { text-decoration: none; color: var(--text-color); position: relative; padding: 0.5em 0; transition: color 0.3s ease; }
.menu li a::after { content: ''; position: absolute; bottom: 0; left: 0; height: 3px; width: 0%; background-color: var(--hover-color); transition: width 0.3s ease; }
.menu li a:hover { color: var(--hover-color); }
.menu li a:hover::after { width: 100%; }
.menu-icon { display: none; font-size: 2em; cursor: pointer; color: var(--text-color); }
#menu-toggle { display: none; }
.boxverde { background-color: var(--primary-color); height: 25px; display: flex; align-items: center; justify-content: center; }
.boxverde p { color: var(--text-color); margin: 0; font-size: 20px; }
.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; flex-shrink: 0; }
#overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1500; }
#overlay.ativo { display: block; }
.Lateral { 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.ativo { right: 0; }
.MenuInf h4 { font-size: 20px; margin-bottom: 15px; color: var(--dark-color); }
#ListaM { list-style: none; text-align: left; }
#ListaM li { margin-bottom: 12px; }
#ListaM a { text-decoration: none; color: #555; font-weight: 500; transition: color 0.3s; }
#ListaM a:hover { color: var(--primary-color); }

/* =================================
   3. SLIDER / DESTAQUES
   ================================= */
.destaques { display: flex; padding-top: 125px; width: 100%; }
.slider { margin: 0 auto; overflow: hidden; width: 100%; height: 60vh; }
.slides { width: 300%; height: 100%; display: flex; }
.slides input { display: none; }
.slide { width: 33.33%; height: 100%; position: relative; transition: margin-left 0.6s; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.manual-navigation { position: relative; width: 100%; margin-top: -40px; display: flex; justify-content: center; gap: 20px; z-index: 10; }
.manual-btn { border: 2px solid var(--text-color); padding: 5px; border-radius: 10px; cursor: pointer; transition: 0.4s; }
.manual-btn:hover { background-color: var(--primary-color); }
#radio1:checked~.first { margin-left: 0; }
#radio2:checked~.first { margin-left: -33.33%; }
#radio3:checked~.first { margin-left: -66.66%; }
.slide {
    width: 33.33%;
    height: 100%;
    position: relative;
    transition: margin-left 0.6s;
}
/* =================================
   BOTÃO SOBRE O SLIDER
   ================================= */
.slider-button {
    position: absolute;
    bottom: 20%; /* Distância da parte inferior */
    right: 45%;   /* Distância da esquerda */
    z-index: 10;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.slider-button:hover {
    background-color: #38a37b; /* Um tom de verde um pouco mais escuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Ajuste do botão para telas de celular */
@media screen and (max-width: 768px) {
    .slider-button {
        left: 50%;
        transform: translateX(-50%); /* Centraliza o botão */
        bottom: 12%;
        width: calc(80% - 40px); /* Ocupa a largura com margens */
        max-width: 350px;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
		visibility:hidden;
    }
	.slides { width: 300%; height: 45%; display: flex; }
}

/* =================================
   4. SEÇÕES DE CONTEÚDO
   ================================= */
.titulo-pg { text-align: center; font-size: 2em; color: var(--medium-gray); margin: 40px 0; transition: 0.5s; }
.titulo-pg:hover { color: var(--primary-color); transform: translate(-2px, -2%); }
.secao-servicos { padding: 20px 0; }
.box { display: flex; margin: 0 auto; height: 350px; max-width: 1200px; width: 90%; gap: 1rem; }
.box>div { flex: 1; border-radius: 1rem; background-position: center; background-repeat: no-repeat; background-size: cover; transition: all .8s cubic-bezier(.25, .4, .45, 1.4); cursor: pointer; }
.box>div:hover { flex: 6; }
.pagina a { display: block; width: 100%; height: 100%; }
#PG1 { background-image: url(./img/Home/Esocial.png); } 
#PG2 { background-image: url(./img/Home/medicina.png); } 
#PG3 { background-image: url(./img/Home/Segurança.webp); } 
#PG4 { background-image: url(./img/Home/Ambiente.png); } 
#PG5 { background-image: url(./img/Home/Ar.webp); } 
#PG6 { background-image: url(./img/Home/analise-agua.jpg); } 
#PG7 { background-image: url(./img/Home/Laudo.webp); } 
#PG8 { background-image: url(./img/Home/Treinamento.webp); } 
#PG9 { background-image: url(./img/Home/Psicossocial.jpg); }
/* --- NOVOS SERVIÇOS ADICIONADOS AQUI --- */
/* ATENÇÃO: Substitua os URLs abaixo pelas suas novas imagens */
#PG10 { background-image: url(./img/Home/analise-efluentes.jpeg); } /* Imagem provisória para Análise de Efluentes */
#PG11 { background-image: url(./img/Home/limpeza-fossa.jpg); } /* Imagem provisória para Desentupimento */
#PG12 { background-image: url(./img/Home/Esvasiamento-de-fossa.jpg); } /* Imagem provisória para Coleta de Fossa */
#PG13 { background-image: url(./img/Home/controle-pragas.jpg); } /* Imagem provisória para Controle de Pragas */

.box2 { display: none; flex-wrap: wrap; justify-content: center; padding: 0 20px; gap: 15px; }
.pag img { width: 150px; height: 150px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.Sobre { background-color: var(--primary-color); margin-top: 50px; padding: 40px 0; color: var(--text-color); }
.S2 { display: flex; max-width: 1200px; width: 90%; margin: 0 auto; justify-content: space-between; align-items: center; gap: 20px; }
.S2 h3 { font-size: 36px; flex-shrink: 0; }
.S2 p { font-size: 18px; max-width: 650px; }
.Inf { padding: 40px 0; display: flex; justify-content: center; align-items: center; }
.container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1200px; width: 90%; }
.container .card { cursor: pointer; width: 350px; height: 200px; position: relative; overflow: hidden; }
.container .card .face { width: 100%; height: 100%; transition: transform 0.5s ease-in-out; position: absolute; left: 0; display: flex; justify-content: center; align-items: center; }
.container .card .face.face1 { background: var(--dark-color); flex-direction: column; z-index: 2; transform: translateY(0); }
.container .card:hover .face.face1 { transform: translateY(-100%); }
.container .card .face.face1 .content { opacity: 1; text-align: center; }
.container .card .face.face1 img { max-width: 100px; }
.container .card .face.face1 h3 { margin: 10px 0 0; color: var(--text-color); font-size: 1.5em; }
.container .card .face.face2 { background: var(--text-color); padding: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); z-index: 1; text-align: center; transform: translateY(100%); }
.container .card:hover .face.face2 { transform: translateY(0); }

/* =================================
   5. RODAPÉ E ANIMAÇÕES
   ================================= */
footer .verde { background-color: var(--primary-color); height: 5px; }
footer .ImgMei { background: url(./img/Home/Escritorio.jpg) no-repeat fixed center/cover; height: 200px; }
.inf_pag { display: flex; padding: 30px 2rem; background-color: var(--medium-gray); color: var(--text-color); }
.Campo_contato { max-width: 1200px; 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; }
[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="top"] { transform: translate3d(0, 100px, 0); }
[data-anime].animate { opacity: 1; transform: translate3d(0, 0, 0); }

/* =================================
   6. SEÇÕES (EXAMES E ONDE ESTAMOS)
   ================================= */
.exames-section { padding: 1rem 2rem 3rem; background-color: #fff; }
.exames-container { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.exames-card { background-color: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); flex: 1; min-width: 300px; max-width: 500px; border-top: 5px solid var(--primary-color); transition: transform 0.3s, box-shadow 0.3s; text-align: left; /* --- AJUSTE AQUI --- */ }
.exames-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.exames-card h3 { font-size: 1.6rem; color: var(--dark-color); margin-bottom: 1.5rem; padding-left: 45px; background-image: url('https://api.iconify.design/healthicons/i-exam-multiple-choice.svg?color=%2341b48c'); background-repeat: no-repeat; background-position: left center; background-size: 35px; }
.exames-card ul { list-style: none; padding-left: 0; columns: 1; gap: 1rem; }
.exames-card li { padding: 8px 0; font-size: 0.9rem; color: #555; border-bottom: 1px solid #eee; }
.exames-card:nth-child(2) ul { columns: 2; }

#onde-estamos { padding: 3rem 2rem; background-color: var(--light-gray); }
.enderecos-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto 3rem; }
.endereco-card { background-color: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-top: 5px solid var(--primary-color); transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s; text-align: center; /* --- AJUSTE AQUI --- */ }
.endereco-card.endereco-item { cursor: pointer; }
.endereco-card.endereco-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); background-color: #f0f7f5; }
.endereco-card h3 { font-size: 1.3rem; color: var(--dark-color); margin-bottom: 0.5rem; }
.endereco-card p { line-height: 1.6; color: #555; }
.endereco-card .telefone { font-weight: bold; color: var(--dark-color); margin-top: 1rem; }
.endereco-card.destaque { border-color: #ffc107; background-color: #fffaf0; }
.endereco-card .telefone-destaque { font-size: 1.3rem; font-weight: bold; color: var(--dark-color); margin-top: 1rem; }
#mapa-global { width: 100%; height: 450px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); max-width: 1200px; margin: 0 auto; }

/* =================================
   7. RESPONSIVIDADE
   ================================= */
@media screen and (max-width: 1024px) {
    .S2 { flex-direction: column-reverse; text-align: center; }
    .S2 p { width: 100%; }
}
@media screen and (max-width: 800px) {
    .box { display: none; }
    .box2 { display: flex; }
    .container .card { width: 90%; max-width: 400px; height: auto; display: flex; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; position: static; }
    .container .card .face { position: static; transform: none !important; width: 50%; height: 150px; }
    .container .card .face.face1 { background-color: var(--primary-color) !important; }
    .container .card .face.face1 .content { opacity: 1; }
    .container .card .face.face2 { box-shadow: none; align-items: center; }
    .container .card .face.face2 p { font-size: 0.9em; }
    .exames-card ul { columns: 1; }
	.exames-card li {font-size:0.8rem;}
}
@media screen and (max-width: 768px) {
    .boxm1 { height: 80px; padding: 0 1em; }
    .destaques { padding-top: 105px; }
    .logo a { gap: 5px; }
    .logo img { width: 100px; }
    .menu { display: none; flex-direction: column; background: #222; position: absolute; top: 100%; left: 0; width: 100%; padding: 1em 0; }
    #menu-toggle:checked ~ .menu { display: flex; }
    .menu li { text-align: center; padding: 0.5em 0; border-top: 1px solid #444; }
    .menu li:first-child { border-top: none; }
    .menu-icon { display: block; }
    .boxverde p { font-size: 14px; }
    .S2 h3 { font-size: 30px; }
    .S2 p { font-size: 16px; }
    .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; }
	.secao-servicos { margin-top:-60%; }
}

/* =================================
   ESTILOS DO FORMULÁRIO DE CONTATO
   ================================= */
#cont { 
    padding: 2rem 1rem; 
    background-color: #f0f0f0; 
    border-top: 2px solid #e0e0e0; 
}

#form-contato { 
    max-width: 700px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    background-color: var(--text-color); 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.3rem; 
    font-weight: 500; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 0.8rem; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-size: 1rem; 
}

.btn-enviar { 
    background-color: #4a90e2; 
    color: var(--text-color); 
    border: none; 
    padding: 0.8rem 1.6rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background 0.3s ease; 
    align-self: center; 
}

.btn-enviar:hover { 
    background-color: #357ab8; 
}
/* Estilo para o botão do WhatsApp abaixo do formulário */
.btn-whatsapp { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    max-width: 300px; 
    margin: 1.5rem auto 0; 
    text-decoration: none; 
    background-color: #1ebe57; 
    color: var(--text-color); 
    padding: 0.7rem 1rem; 
    border-radius: 8px; 
    transition: background 0.3s ease; 
    gap: 0.5rem; 
    font-weight: bold;
}

.btn-whatsapp:hover { 
    background-color: #1ebe57; 
}

.btn-whatsapp img { 
    width: 1.3rem; 
    height: 1.3rem; 
    filter: invert(1); 
}

/* --- Estilos para a nova seção da Plataforma de Cursos --- */
.plataforma-cursos-section {
    padding: 3rem 2rem;
    background-color: #fff;
}

.plataforma-cursos-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.plataforma-cursos-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.plataforma-cursos-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plataforma-cursos-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-plataforma {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-plataforma:hover {
    background-color: #38a37b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.plataforma-cursos-img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.plataforma-cursos-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}