/* --- RESET E GLOBAIS --- */
:root {
    /* Cores serão injetadas pelo PHP, mas definimos padrões */
    --cor-primaria: #0d6efd;
    --cor-secundaria: #198754;
    --cor-texto: #333;
    --cor-fundo: #f8f9fa;
    --cor-branco: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--cor-branco);
    color: var(--cor-texto);
}
/* --- Estilos para o Aviso de Cookie --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 15px 25px;
    z-index: 1000;
    display: none; /* Começa escondido, o JS vai mostrar */
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
}

#cookie-consent-banner p {
    margin: 0;
    margin-right: 20px;
}

#cookie-consent-banner a {
    color: var(--cor-primaria);
    text-decoration: underline;
}

#accept-cookie-btn {
    background-color: var(--cor-primaria);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap; /* Evita que o texto quebre linha */
}

#accept-cookie-btn:hover {
    opacity: 0.9;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
    }
    #cookie-consent-banner p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--cor-primaria);
}
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }
section { padding: 5rem 0; }

/* --- HEADER E HERO SECTION --- */
.main-header {
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: var(--cor-branco);
    display: flex;
    flex-direction: column;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}
.main-nav .logo img { height: 50px; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li a {
    color: var(--cor-branco);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: color 0.3s;
}
.main-nav ul li a:hover { color: var(--cor-secundaria); }
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; }
.btn-cta {
    background-color: var(--cor-secundaria);
    color: var(--cor-branco);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, background-color 0.3s;
}
.btn-cta:hover {
    background-color: #156c41;
    transform: translateY(-3px);
}

/* --- SEÇÃO SOBRE --- */
.about-section { background-color: var(--cor-fundo); }
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-content h2 { text-align: left; }

/* --- SEÇÃO SERVIÇOS --- */
.services-grid {
  display: grid;
  /* Cria colunas que têm no mínimo 300px, mas se esticam para preencher o espaço.
     O 'auto-fit' faz com que o número de colunas se ajuste à tela. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* Espaçamento consistente entre os cards */
}
.service-card {
  display: flex;
  flex-direction: column; /* Organiza os itens (imagem e título) em uma coluna */
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Garante que a imagem não vaze das bordas arredondadas */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito de elevação ao passar o mouse */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
}

/* --- SEÇÃO BLOG --- */
.blog-section { background-color: var(--cor-fundo); }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: var(--cor-branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-decoration: none;
    color: var(--cor-texto);
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.blog-card-content { padding: 1.5rem; }
.blog-card-content h3 { margin-bottom: 0.5rem; }
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

/* --- SEÇÃO AGENDAMENTO --- */
#formAgendamento { /* ... adicione seus estilos de formulário aqui ... */ }

/* --- SEÇÃO LOCALIZAÇÃO --- */
.location-section { padding-bottom: 0; }
.google-maps {
    width: 100%;
    height: 450px;
    border: 0;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #212529;
    color: #ccc;
    padding-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-logo { height: 40px; margin-bottom: 1rem; }
.footer-contact h3, .footer-social h3 { margin-bottom: 1rem; color: var(--cor-branco); }
.footer-social a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.footer-social a:hover { color: var(--cor-secundaria); }
.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- RESPONSIVIDADE --- */
@media(max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .about-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .main-nav { flex-direction: column; gap: 1rem; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
}
/* --- SEÇÃO AGENDAMENTO E FORMULÁRIO (ESTILIZAÇÃO COMPLETA) --- */

.appointment-section {
    background-color: var(--cor-fundo);
}

#formAgendamento {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background-color: var(--cor-branco);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

/* Estilo unificado para inputs de texto, data e select */
#formAgendamento input[type="text"],
#formAgendamento input[type="tel"],
#formAgendamento input[type="date"],
#formAgendamento select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#formAgendamento input:focus,
#formAgendamento select:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25); /* Usando a cor primária com transparência */
}

/* Estilização customizada para os Radio Buttons */
.radio-group-container {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.radio-group {
    display: flex;
    align-items: center;
}
.radio-group input[type="radio"] {
    display: none; /* Esconde o radio button padrão */
}
.radio-group label {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}
.radio-group input[type="radio"]:checked + label {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    border-color: var(--cor-primaria);
}

/* Container das patologias (checkboxes) */
.patologias-container {
    background-color: var(--cor-fundo);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0 1.5rem 0;
    
    /* Grid para organizar os checkboxes */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}
.patologias-container h4 { display: none; } /* Oculta o título antigo */
.patologia-item {
    display: flex;
    align-items: center;
}
.patologia-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

/* Botão de Envio */
.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--cor-secundaria);
    color: var(--cor-branco);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.btn-submit:hover {
    background-color: #156c41; /* Um tom mais escuro da cor secundária */
    transform: translateY(-2px);
}

/* Mensagens de Retorno */
#mensagemRetorno {
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}
#mensagemRetorno.sucesso {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
#mensagemRetorno.erro {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Ajustes de responsividade para o formulário */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    #formAgendamento {
        padding: 1.5rem;
    }
    .radio-group-container {
        flex-direction: column;
    }
}
/* --- ESTILOS PARA A PÁGINA DE POSTAGEM DO BLOG --- */

/* Cabeçalho específico para a página de post */
.post-header {
    height: 50vh; /* Um cabeçalho menor que o da página inicial */
    min-height: 400px;
}

/* Layout principal com artigo e sidebar */
.post-layout {
    padding: 4rem 0;
}
.post-container {
    display: grid;
    grid-template-columns: 3fr 1fr; /* O artigo ocupa 3/4 e o sidebar 1/4 */
    gap: 3rem;
}

/* Estilização do conteúdo do artigo */
.post-content {
    line-height: 1.8;
}
.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--cor-primaria);
}
.post-content p {
    margin-bottom: 1rem;
}
.post-content ul,
.post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}
.post-content a {
    color: var(--cor-secundaria);
    font-weight: 600;
}

/* Estilização da barra lateral (sidebar) */
.post-sidebar .sidebar-widget {
    background-color: var(--cor-fundo);
    padding: 1.5rem;
    border-radius: 10px;
}
.post-sidebar h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--cor-borda);
    padding-bottom: 0.5rem;
}
.post-sidebar ul {
    list-style: none;
}
.post-sidebar ul li {
    margin-bottom: 0.75rem;
}
.post-sidebar ul li a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 600;
    transition: color 0.3s;
}
.post-sidebar ul li a:hover {
    color: var(--cor-primaria);
}

/* Responsividade para a página do post */
@media(max-width: 900px) {
    .post-container {
        grid-template-columns: 1fr; /* Coluna única em telas menores */
    }
}
/* Estilo para os novos cards de serviço com imagem */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: var(--cor-card);
    border-radius: var(--raio-borda-forte);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--sombra-card);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.service-card-title {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1; /* A MÁGICA ACONTECE AQUI! Faz esta área crescer para preencher o espaço vazio. */
  
  /* Bônus: centraliza o texto verticalmente dentro do espaço que cresceu */
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card-title h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}
.service-card-image {
  height: 220px; /* ALTURA FIXA - Este é um dos segredos! */
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

/* Efeito de zoom na imagem ao passar o mouse no card */
.service-card:hover .service-card-image {
  transform: scale(1.05);
}
.service-card h3 {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    color: var(--cor-texto-escuro);
    margin: 0;
}
/* =========================================================
   NOVO ESTILO DA SEÇÃO DE SERVIÇOS (ESPECIALIDADES)
   ========================================================= */
.services-section {
    background-color: var(--cor-fundo, #f8f9fa);
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header span {
    display: block;
    color: var(--cor-primaria);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-header .section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--cor-texto-escuro);
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--cor-texto-claro);
    max-width: 500px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--cor-card, #ffffff);
    border-radius: var(--raio-borda-forte, 16px);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--cor-borda, #e9ecef);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 3rem; /* Tamanho do ícone */
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    background-color: rgba(0, 123, 255, 0.08); /* Fundo suave com a cor primária */
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cor-texto-escuro);
    margin: 0;
}
/* ================================================
   EFEITO PARALLAX PARA A SEÇÃO DE BLOG
   ================================================ */

.blog-section {
    /* A imagem é definida pelo PHP, aqui configuramos como ela se comporta */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* ESTA É A PROPRIEDADE MÁGICA PARA O EFEITO PARALLAX */
    background-attachment: fixed;

    /* Posicionamento relativo para o overlay funcionar */
    position: relative;
    z-index: 1; /* Garante que a seção fique no fluxo correto */
    padding: 5rem 2rem;
}

/* Overlay (Camada de Cor Semi-Transparente) */
/* Isso é crucial para garantir que o texto seja legível sobre qualquer imagem */
.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fundo branco com 85% de opacidade. Altere a cor (255,255,255) ou a opacidade (0.85) como quiser */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px); /* Efeito de desfoque moderno (opcional) */
    z-index: -1; /* Coloca o overlay atrás do conteúdo (títulos, cards) */
}
/* =========================================================
   ARQUIVO DE ESTILO COMPLETO E FINAL - style.css
   ========================================================= */

/* --- RESET E GLOBAIS --- */
:root {
    --cor-primaria: #0d6efd; --cor-secundaria: #198754; --cor-acento: #ff9900;
    --cor-fundo: #f8f9fa; --cor-card: #ffffff;
    --cor-texto-escuro: #212529; --cor-texto-claro: #6c757d;
    --raio-borda-suave: 8px; --raio-borda-forte: 16px;
    --sombra-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: 'Poppins', sans-serif; line-height: 1.7;
    background-color: var(--cor-branco); color: var(--cor-texto-escuro);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; color: var(--cor-primaria); font-weight: 700; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; font-size: 1.1rem; line-height: 1.7; color: #555; }
section { padding: 5rem 0; }

/* --- HEADER PROFISSIONAL E RESPONSIVO --- */
.site-header {
    background-color: #fff; padding: 1rem 0; position: sticky;
    top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo img { height: 45px; display: block; }
.main-navigation ul {
    list-style: none; display: flex; align-items: center; background-color: #fff;
    border: 1px solid #e9ecef; border-radius: 50px; padding: 0.5rem;
}
.main-navigation li a {
    text-decoration: none; color: var(--cor-texto-escuro); font-weight: 600;
    padding: 0.6rem 1.2rem; border-radius: 50px; transition: all 0.3s ease;
}
.main-navigation li a:hover, .main-navigation li a.active { background-color: var(--cor-primaria); color: #fff; }
.main-navigation li a.btn-contact { background-color: var(--cor-primaria); color: #fff; }
.main-navigation li a.btn-contact:hover { background-color: #0b5ed7; }
.header-contact { display: flex; align-items: center; gap: 1.5rem; }
.contact-phone { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--cor-texto-escuro); font-weight: 600; }
.contact-chat-button {
    background-color: var(--cor-primaria); color: #fff; width: 45px; height: 45px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: background-color 0.3s;
}
.contact-chat-button:hover { background-color: #0b5ed7; }
.mobile-menu-toggle { display: none; /* Escondido em telas grandes */ }

/* --- HERO SECTION --- */
.hero-section {
    background-size: cover; background-position: center; height: 90vh;
    color: #fff; display: flex; justify-content: center; align-items: center; text-align: center;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; }
.btn-cta {
    background-color: var(--cor-secundaria); color: #fff; padding: 1rem 2rem;
    border-radius: 50px; text-decoration: none; font-weight: 700;
    transition: transform 0.3s, background-color 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.btn-cta:hover { background-color: #156c41; transform: translateY(-3px); }

/* --- ANIMAÇÕES FADE-IN --- */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVIDADE DO HEADER --- */
@media(max-width: 1024px) {
    .main-navigation, .header-contact { display: none; } /* Esconde o menu e contato */
    .mobile-menu-toggle {
        display: block; background: none; border: none; font-size: 1.8rem;
        cursor: pointer; color: var(--cor-primaria);
    }
    /* Estilos para o menu mobile quando aberto (controlado por JS) */
    .main-navigation.active {
        display: flex; position: absolute; top: 100%; right: 0;
        background: #fff; width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1rem; border-top: 1px solid #eee;
    }
    .main-navigation.active ul { flex-direction: column; width: 100%; border: none; }
    .main-navigation.active li { width: 100%; text-align: center; }
    .main-navigation.active li a { display: block; width: 100%; }
}
/* =========================================================
   CORREÇÃO DO FUNDO PARALLAX NO MOBILE
   ========================================================= */
@media (max-width: 1024px) {
    /* Desativa o efeito parallax em telas menores para evitar bugs */
    .hero-section,
    .blog-section,
    .appointment-section {
        background-attachment: scroll;
    }
    
    /* Ajustes de fonte para o banner no celular */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}
<Style>
/* ================================
   PRÉ-AVALIAÇÃO CTA
================================ */
.pre-avaliacao-cta-section {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
}
.cta-content h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

/* ================================
   FAQ SECTION
================================ */
.faq-section { background: var(--cor-fundo); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.05); background: #fff; }
.faq-question {
    width: 100%; padding: 1.25rem 1.5rem; font-size: 1.1rem;
    font-weight: 600; text-align: left; border: none; background: transparent;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question .icon { font-size: 1.4rem; transition: transform 0.3s; }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem; color: #555; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 200px; padding: 0 1.5rem 1.25rem 1.5rem; }
.faq-item.active .icon { transform: rotate(45deg); }

/* ================================
   WHATSAPP FLOAT BUTTON
================================ */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px;
    bottom: 25px; right: 25px; background-color: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float img { width: 35px; height: 35px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
 :root {
            --cor-primaria: <?= $config['cor_primaria'] ?>;
            --cor-secundaria: <?= $config['cor_secundaria'] ?>;
        }/* ================================
   PRÉ-AVALIAÇÃO CTA
================================ */
.pre-avaliacao-cta-section {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 60px auto;
    max-width: 1100px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pre-avaliacao-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/pattern.svg") repeat;
    opacity: 0.08;
    z-index: 0;
}

.pre-avaliacao-cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-cta {
    background: #fff;
    color: var(--cor-primaria);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    background: var(--cor-secundaria);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Responsividade */
@media (max-width: 768px) {
    .cta-title {
        font-size: 1.8rem;
    }
    .cta-subtitle {
        font-size: 1rem;
    }
}
/* ================================
   FAQ SECTION
================================ */
.faq-section {
    background: #f9f9f9;
    padding: 80px 20px;
    border-top: 1px solid #eee;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    background: #fff;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f1f1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-answer p {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* ajusta conforme conteúdo */
    padding: 15px 20px;
}

.faq-item .icon {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.faq-item.active .icon {
    transform: rotate(45deg); /* vira + em x */
}
/* =======================================
   ESTILO CORRIGIDO E ROBUSTO PARA A SEÇÃO DE SERVIÇOS
   ======================================= */

.services-section {
    background: var(--cor-fundo, #f8f9fa); /* Usa a cor de fundo suave */
    padding: 5rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--cor-card, #ffffff);
    border-radius: var(--raio-borda-forte, 16px);
    overflow: hidden; /* Essencial para a imagem não "vazar" das bordas */
    box-shadow: var(--sombra-card, 0 10px 30px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* * ESTA É A PARTE CRÍTICA QUE ESTAVA FALTANDO E CORRIGE O PROBLEMA.
 * Ela define um tamanho para o container da imagem.
 */
.service-card-image {
    display: block; /* Garante que o div se comporte como um bloco */
    width: 100%;    /* Ocupa toda a largura do card */
    height: 220px;  /* <<< ALTURA FIXA - SEM ISSO, A IMAGEM NÃO APARECE */
    background-size: cover; /* Faz a imagem preencher o espaço, cortando se necessário */
    background-position: center; /* Centraliza a imagem no espaço */
    background-repeat: no-repeat; /* Impede que a imagem se repita */
}

.service-card h3 {
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cor-texto-escuro, #34495e);
    margin: 0;
}
/* ================================
   BLOG SECTION
================================ */
.blog-section {
    background: #fff;
    padding: 80px 20px;
}

.blog-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 15px;
}

.blog-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.blog-card-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 200px;
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.blog-card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cor-secundaria);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.read-more i {
    transition: transform 0.3s;
}

.blog-card:hover .read-more {
    color: var(--cor-primaria);
}

.blog-card:hover .read-more i {
    transform: translateX(4px);
}
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float img {
    width: 38px;
    height: 38px;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}
/* =========================================================
   ESTILO DEFINITIVO DA SEÇÃO DE ESPECIALIDADES (COM ÍCONES)
   ========================================================= */
.services-section {
    /* Fundo gradiente suave com "blob" de cor */
    background-color: #f8f9fa;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(200, 220, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(220, 210, 255, 0.4) 0%, transparent 40%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header span {
    display: block;
    color: var(--cor-primaria, #007bff);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-header .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b; /* Cor escura para o título principal */
    line-height: 1.2;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    border-radius: 24px; /* Cantos bem arredondados */
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* Parte de cima do card (ícone) */
.service-icon-background {
    background-color: #e9ecef; /* Fundo cinza claro */
    padding: 2.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Faz com que ocupe o espaço para alinhar os cards */
}

.service-icon-background i {
    font-size: 3.5rem;
    color: #34495e; /* Azul escuro para o ícone */
}

/* Parte de baixo do card (título) */
.service-title-background {
    background-color: #ffffff;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-top: 1px solid #dee2e6; /* Divisória sutil */
}

.service-title-background h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin: 0;
}
/* =========================================================
   ESTILO FINAL E DEFINITIVO DA SEÇÃO DE SERVIÇOS
   (Fundo de Seção + Cards com Foto no Fundo Inteiro)
   ========================================================= */

.services-section {
    /* O fundo gradiente suave com "blobs" de cor */
    background-color: #f8f9fa;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(200, 220, 255, 0.4) 0%, transparent, 40%),
        radial-gradient(circle at 85% 70%, rgba(220, 210, 255, 0.4) 0%, transparent 40%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Cabeçalho da seção (Nossas Especialidades, etc.) */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}
.section-header span {
    display: block;
    color: var(--cor-primaria, #007bff);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.section-header .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.2;
}
.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid que organiza os cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* O card com a foto no fundo inteiro */
.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
    display: flex;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* A imagem que preenche o card */
.service-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-image {
    transform: scale(1.05);
}

/* O título sobreposto na parte de baixo */
.service-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    /* Gradiente para garantir a legibilidade do texto */
    background-color: #ffffff; /* Fundo branco sólido */
    z-index: 2;
}
.service-card-title h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #34495e; /* Título com texto azul escuro */
    margin: 0;
}
/* =======================================================
   EFEITO PARALLAX PARA A SEÇÃO DE AGENDAMENTO
   ======================================================= */

.appointment-section {
    /* Configura a imagem de fundo para o efeito parallax */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* A propriedade que cria o efeito parallax */

    position: relative; /* Necessário para o overlay */
    z-index: 1;
    padding: 5rem 2rem;
}

/* Camada escura para garantir a legibilidade do texto e do formulário */
.appointment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fundo escuro com 70% de opacidade */
    background-color: rgba(33, 37, 41, 0.7); 
    z-index: -1;
}

/* Ajusta as cores dos títulos para contrastar com o fundo escuro */
.appointment-section .section-title,
.appointment-section .section-subtitle {
    color: #ffffff; /* Texto branco */
}
.main-footer-final {
        background-color: #ffffff;
        padding: 4rem 2rem 1.5rem 2rem;
        border-top: 1px solid #e9ecef;
        color: #34495e;
    }
    .footer-grid-final {
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 2rem;
        align-items: start;
        text-align: left;
    }
    .footer-col-final h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #212529;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .footer-col-final p {
        margin: 0;
        line-height: 1.6;
        color: #6c757d;
    }
    .footer-center-final {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-logo-final {
        max-height: 45px;
        margin-bottom: 1rem;
    }
    .footer-phone-final {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--cor-primaria, #0d6efd);
        text-decoration: none;
        margin: 0.5rem 0 1rem 0;
    }
    .footer-cta-button-final {
        background-color: var(--cor-primaria, #0d6efd);
        color: #fff;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: background-color 0.3s;
    }
    .footer-cta-button-final:hover {
        background-color: #0b5ed7;
    }
    .footer-right-final {
        text-align: right;
    }
    .footer-social-link-final {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        text-decoration: none;
        color: #6c757d;
        font-weight: 500;
        transition: color 0.3s;
    }
    .footer-social-link-final:hover {
        color: var(--cor-primaria, #0d6efd);
    }
    .footer-social-link-final i {
        font-size: 1.5rem;
    }
    .footer-divider-final {
        border-top: 1px solid #e9ecef;
        margin: 3rem 0 1.5rem 0;
    }
    .footer-copyright-final {
        text-align: center;
        font-size: 0.9rem;
        color: #6c757d;
    }
    .footer-copyright-final p {
        margin: 0;
    }
    @media(max-width: 900px) {
        .footer-grid-final {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .footer-right-final {
            text-align: center;
        }
        .footer-social-link-final {
            justify-content: center;
        }
    }
    /* =========================================================
   NOVO ESTILO DO CABEÇALHO (HEADER)
   ========================================================= */
.site-header {
    background-color: #fff;
    padding: 1rem 0;
    position: sticky; /* Efeito "grudento" no topo */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo img {
    height: 45px;
    display: block;
}

/* O container dos links de navegação */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
   /* Novo fundo escuro, semi-transparente, com desfoque */
background-color: rgba(30, 41, 59, 0.95); /* Azul escuro com 95% de opacidade */
backdrop-filter: blur(8px); /* Efeito de desfoque */
    border: 1px solid #e9ecef;
    border-radius: 50px; /* Cantos arredondados "pílula" */
    padding: 0.5rem;
}
.main-navigation li a {
    text-decoration: none;
    color: var(--cor-texto-escuro);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
/* O link ativo ou em hover */
.main-navigation li a:hover,
.main-navigation li a.active {
    background-color: var(--cor-primaria);
    color: #fff;
}
/* Botão de contato dentro da navegação */
.main-navigation li a.btn-contact {
    background-color: var(--cor-primaria);
    color: #fff;
}
.main-navigation li a.btn-contact:hover {
    background-color: #0b5ed7;
}

/* Contato à direita */
.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--cor-texto-escuro);
    font-weight: 600;
}
.contact-chat-button {
    background-color: var(--cor-primaria);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}
.contact-chat-button:hover {
    background-color: #0b5ed7;
}

/* =========================================================
   ESTILO FINAL DA SEÇÃO HERO (BANNER)
   ========================================================= */
.hero-section {
    background-size: cover;
    background-position: center;
    /* Efeito Parallax para DESKTOP */
    background-attachment: fixed;
    height: 100vh; /* Ocupa a tela inteira */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3.8rem; /* Título maior e mais impactante */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra para legibilidade */
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-content .btn-cta {
    padding: 1rem 2.5rem; /* Botão um pouco maior */
    font-size: 1.1rem;
}

/* Indicador de Scroll Down */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-down-indicator a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -20px); }
    60% { transform: translate(-50%, -10px); }
}

/* Animações de Entrada do Conteúdo */
.animate-on-load {
    opacity: 0;
    animation-fill-mode: forwards; /* Mantém o estado final da animação */
}
.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}
.animate-on-load.delay-1 { animation-delay: 0.3s; }
.animate-on-load.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- RESPONSIVIDADE DO HEADER --- */

/* Por padrão, o botão hambúrguer é escondido em telas grandes */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    /* Esconde o menu normal e o contato em telas menores */
    .main-navigation, .header-contact {
        display: none;
    }

    /* Mostra o botão hambúrguer */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--cor-primaria);
    }

    /* Estilo do menu quando ele está ativo (aberto) */
    .main-navigation.active {
        display: flex;
        position: absolute;
        top: 100%; /* Aparece logo abaixo do header */
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1rem;
        border-top: 1px solid #eee;
    }

    .main-navigation.active ul {
        flex-direction: column;
        width: 100%;
        border: none; /* Remove a borda de pílula no mobile */
    }

    .main-navigation.active li {
        width: 100%;
        text-align: center;
    }

    .main-navigation.active li a {
        display: block;
        width: 100%;
        padding: 1rem; /* Mais área de toque */
    }
}
</Style>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?= $config['titulo_principal'] ?> - Fisioterapia Especializada</title>
    
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
    
    <link rel="stylesheet" href="css/style.css">
    <script src="https://unpkg.com/imask"></script>
    
    <style>
        :root {
            --cor-primaria: <?= $config['cor_primaria'] ?>;
            --cor-secundaria: <?= $config['cor_secundaria'] ?>;
        }
        /* =========================================================
   NOVO HEADER ROBUSTO E BONITO
   ========================================================= */
.site-header {
    background-color: #fff;
    padding: 1rem 0;
    position: fixed; /* Fixo no topo */
    top: -100px; /* Começa escondido para animar a entrada */
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: top 0.5s ease-in-out;
}
/* Classe adicionada via JS para mostrar o header */
.site-header.visible {
    top: 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo img {
    height: 45px;
    display: block;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.main-navigation li a {
    text-decoration: none;
    color: var(--cor-texto-escuro);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.3s ease;
}
.main-navigation li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--cor-primaria);
    transition: width 0.3s ease;
}
.main-navigation li a:hover::after,
.main-navigation li a.active::after {
    width: 100%;
}
.main-navigation li a:hover,
.main-navigation li a.active {
    color: var(--cor-primaria);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.btn-header-cta {
    background-color: var(--cor-primaria);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-header-cta:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}
.mobile-menu-toggle { display: none; }

/* --- RESPONSIVIDADE DO HEADER --- */
@media(max-width: 992px) {
    .main-navigation {
        position: fixed;
        top: 0; right: -100%; /* Começa fora da tela */
        width: 300px; height: 100%;
        /* Novo fundo escuro, semi-transparente, com desfoque */
background-color: rgba(30, 41, 59, 0.95); /* Azul escuro com 95% de opacidade */
backdrop-filter: blur(8px); /* Efeito de desfoque */
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding: 6rem 2rem 2rem 2rem;
        transition: right 0.5s ease-in-out;
        z-index: 999;
    }
    .main-navigation.active {
        right: 0; /* Desliza para dentro da tela */
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .main-navigation li { width: 100%; }
    .main-navigation li a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.2rem;
    }
    .btn-header-cta { display: none; }
    .mobile-menu-toggle {
        display: block; background: none; border: none; font-size: 1.8rem;
        cursor: pointer; color: var(--cor-texto-escuro); z-index: 1001;
    }
    .mobile-menu-toggle .icon-close { display: none; }
    body.menu-open .mobile-menu-toggle .icon-open { display: none; }
    body.menu-open .mobile-menu-toggle .icon-close { display: block; }
}
    </style>
    
/* ... (Todos os outros estilos que já criamos para as seções sobre, serviços, blog, agendamento, faq e rodapé) ... */