/* 
    ODONTOMÉIER - ESTILIZAÇÃO PROFISSIONAL V2.0
    Foco: Performance, SEO e Responsividade
    Arquiteto: Programador Full-Stack Expert Gemini
*/

/* --- 1. VARIÁVEIS E IDENTIDADE VISUAL --- */

:root {
    --azul-marinho: #003B73;
    --dourado: #C5A059;
    --dourado-champanhe: #C49a4a;
    --dourado-escuro: #9D7A3E;
    --dourado-claro: #E2C28E;
    --branco: #FFFFFF;
    --creme: #F8F5F0;
   
    --glow-dourado: rgba(197, 160, 89, 0.5);
    --glow-azul: rgba(0, 59, 115, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --fonte-serif: 'Playfair Display', serif;
    --fonte-sans: 'Montserrat', sans-serif;
    --fonte-accent: 'Oswald', sans-serif;
}



/* --- 2. RESET E CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-sans);
    background-color: var(--creme);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. CABEÇALHO (HEADER) --- */
.header {
    background-color: #f5ede3;
    /* Cor sólida inicial */
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dourado);
    transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estado do Header ao rolar (ativado via JS) */
.header.scrolled {
    background-color: rgba(245, 237, 227, 0.7);
    /* Transparência profissional */
    border-bottom-color: transparent;
    backdrop-filter: blur(10px);
    /* Efeito Glassmorphism */
}

/* Logo */
.logo-img {
    height:65px;
    width: auto;
    transition: 0.3s;
}

.logo-img:hover {
    transform: scale(1.2);
}

/* Menu Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: var(--azul-marinho);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--dourado);
}

/* Ícone Mobile (Escondido por padrão no Desktop) */
.mobile-menu-icon {
    display: none;
}

.header-contact a:hover img {
    transform: scale(1.15);
    /* Aumentei levemente o pulso para combinar com o novo tamanho */
    filter: brightness(1.2);
    transition: 0.3s ease;
}
/* =================================================================================================== */

/* =================================================================================================== */
/* --- 4. HERO SECTION (SPLIT SCREEN) --- */
.hero {
    /* 1. MANTÉM O LAYOUT ORIGINAL (O que funciona) */
    background-color: var(--azul-marinho);
    min-height: 95vh;
    padding-top: 80px;
    /* Protege o texto de ficar sob o header */
    padding-bottom: 100px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Garante que o Glow não escape */

    /* 2. INJETA O VISUAL PREMIUM (Glow e Imagem) */
    background: linear-gradient(rgba(0, 59, 115, 0.85), rgba(0, 59, 115, 0.85)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* 3. O HOLOFOTE (GLOW) - Adicione logo abaixo do bloco .hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-azul) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Garante que o conteúdo do Hero fique acima do Glow */
.hero .container {
    position: relative;
    z-index: 2;
}

/* --- TRANSIÇÃO PREMIUM COM A NOVA IMAGEM --- */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    /* Mantém a altura fina que você solicitou */

    /* Inserindo a imagem gerada */
    background-image: url('../img/background04.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Mantém o recorte curvo elegante */
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 1;

    /* Adiciona um leve brilho para integrar com o "Glow" do site */
    filter: drop-shadow(0 -5px 10px rgba(197, 160, 89, 0.1));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    position: relative;/* Necessário para o z-index funcionar */
    z-index: 2;
    width: 100%;
}

.hero-text h2 {
    color: var(--dourado);
    font-family: var(--fonte-serif);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-text h2::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--dourado);
}

.hero-text h1 {
    color: var(--dourado-claro);
    font-family: var(--fonte-serif);
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 35px;
}

.btn-agendar {
    background-color: var(--dourado);
    color: var(--azul-marinho);
    padding: 20px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--fonte-accent);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-agendar:hover {
    background-color: var(--dourado-claro);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image img {
    max-width: 100%;
    max-height: 70vh;/* CRITICAL: Limita a altura da imagem a 70% da tela para não vazar */
    width: auto;/* Mantém a proporção */
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    /*border: 2px solid var(--dourado);*/
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    border: none;
    transform: none;
}
/* =================================================================================================== */


/* =================================================================================================== */
/* --- ESTRUTURA DA SEÇÃO SOBRE (GRID RESPONSIVO) --- */
.sobre-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 40px;
}

.sobre-text {
    flex: 1;
    /* Ocupa metade do espaço */
    text-align: left;
}

.sobre-text .quote {
    font-family: var(--fonte-serif);
    font-size: 1.5rem;
    color: var(--dourado);
    margin-bottom: 20px;
    font-style: italic;
}

.sobre-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.sobre-btn-wrapper {
    margin-top: 30px;
}

/* --- ESTILO DA IMAGEM COM VIVID GLOW --- */
.sobre-img {
    flex: 1;
    /* Ocupa a outra metade */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 59, 115, 0.2);
    border: 1px solid var(--glass-border-ouro);
}

.sobre-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transicao);
    filter: saturate(1.1);
}

.sobre-img:hover img {
    transform: scale(1.05);
    filter: saturate(1.3) brightness(1.1);
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 992px) {
    .sobre-grid {
        flex-direction: column;
        /* Empilha os itens */
        text-align: center;
        gap: 30px;
    }

    .sobre-text {
        text-align: center;
        order: 1;
        /* Garante que o texto venha primeiro */
    }

    .sobre-img {
        width: 100%;
        max-width: 500px;
        /* Limita o tamanho no mobile para não ficar gigante */
        margin: 0 auto;
        order: 2;
        /* Garante que a imagem fique ABAIXO do texto */
    }

    .sobre-text .quote {
        font-size: 1.3rem;
    }
}
/* =================================================================================================== */


/* =================================================================================================== */
/* --- 5. SEÇÕES E CARDS --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--fonte-serif);
    font-size: 2.8rem;
    text-align: center;
    color: var(--azul-marinho);
    margin-bottom: 60px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--dourado);
    margin: 20px auto;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.servico-card {
    position: relative;
    min-height: 380px;
    /* Aumentado para melhor visualização da imagem */
    display: flex;
    align-items: flex-end;
    padding: 30px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: none;
    border-top: 6px solid var(--dourado);/*Borda do card*/
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.servico-card:hover {
    transform: translateY(-10px);
}

/* 2. O Conteúdo (Texto e Botão) - PRECISA DE POSITION E Z-INDEX */
.card-content {
    position: relative;
    /* CRUCIAL: Sem isso o z-index não funciona */
    z-index: 2;
    /* CRUCIAL: Garante que fique à frente do insulfilme */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.servico-card p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.servico-card h3 {
    color: var(--dourado) !important;
    font-family: var(--fonte-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* REGRAS ESPECÍFICAS: Aqui você define a imagem de cada um */
.card-aparelhos {
    background-image: url(/img/Generatedimage_1789128252408.png);
}
.card-alinhadores {
    background-image: url(/img/Generatedimage_1789128463929.png);
}
.card-implante {
    background-image: url(/img/Generatedimage_1789128494951.png);
}
.card-clareamento {
    background-image: url(/img/Generatedimage_1789128693768.png);
}
.card-harmonizacao {
    background-image: url(/img/Generatedimage_1789128760321.png);
}
.card-lentes {
    background-image: url(/img/Generatedimage_1789129892754.png);
}
.card-facetas {
    background-image: url(/img/Generatedimage_1789130187335.png);
}
.card-proteses {
    background-image: url(/img/Generatedimage_1789130791119.png);
}
.card-endodontia {
    background-image: url(/img/Generatedimage_1789130840777.png);
}
.card-periodontia {
    background-image: url(/img/Generatedimage_1789130879325.png);
}
.card-cirurgias {
    background-image: url(/img/Generatedimage_1789130927550.png);
}
.card-clinica-geral {
    background-image: url(/img/Generatedimage_1789130972794.png);
}
.card-prevencao {
    background-image: url(/img/Generatedimage_1789131265084.png);
}

/* EFEITO INSULFILME (Overlay Azul Marinho) */
.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente mais escuro na base para leitura do texto */
    background: linear-gradient(to top,
            rgba(0, 59, 115, 0.95) 0%,
            rgba(0, 59, 115, 0.7) 50%,
            rgba(0, 59, 115, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}

/* BOTÃO SAIBA MAIS (Estilo Odontoméier) */
.btn-saiba-mais {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--dourado);
    color: var(--azul-marinho) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-saiba-mais:hover {
    background-color: var(--dourado-claro);
    box-shadow: 0 5px 15px rgba(196, 154, 74, 0.4);
}

/* CONTAINER DO CARROSSEL */
.testimonial-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
    /* Trilha alinhada ao container */
}
/* =================================================================================================== */


/* =================================================================================================== */
/* CARDS DE DEPOIMENTO COM DEGRADÊ PREMIUM */
.card-review {
    flex: 0 0 calc(33.333% - 20px);
    /* Mantém o layout de 3 colunas */
    margin: 0 10px;
    min-height: 280px !important;
    background: linear-gradient(180deg, #7496b8 0%, #003B73 100%) !important;
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* EFEITO GLOW & GLASS */
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card-review:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--glow-azul);
    border-color: var(--dourado);
}

.card-review .stars {
    color: var(--dourado);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card-review p {
    color: #ffffff !important;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.card-review h4 {
    color: var(--dourado-claro) !important;
    margin-top: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-claro) 100%);
    color: var(--azul-marinho) !important;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--glow-dourado);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--glow-dourado);
    filter: brightness(1.1);
}

/* Efeito de brilho passando */
.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-premium:hover::after {
    left: 120%;
}
/* =================================================================================================== */


/* =================================================================================================== */
/* --- GALERIA CARROSSEL PREMIUM --- */
.galeria-vivid {
    background: radial-gradient(circle at center, #00264d 0%, var(--azul-marinho) 100%);
    overflow: hidden;
}

.galeria-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.galeria-carousel-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.galeria-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.galeria-item {
    flex: 0 0 calc(33.333% - 14px);
    height: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transicao);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) saturate(1.1);
    transition: var(--transicao);
}

.galeria-item figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 59, 115, 0.85);
    backdrop-filter: blur(5px);
    color: var(--dourado-claro);
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: var(--transicao);
}

.galeria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--glow-azul);
    border-color: var(--dourado-claro);
}

.galeria-item:hover figcaption {
    transform: translateY(0);
}

.galeria-item:hover img {
    filter: brightness(1.1) saturate(1.3);
    transform: scale(1.1);
}

/*ATUALIZAÇÃO DA SESSÃO CARROCEL DE IMAGENS*/

/* ============================================================
   ESTILO EXCLUSIVO: SEÇÃO GALERIA CARROSSEL
   ============================================================ */

/* 1. CENTRALIZAÇÃO E REMOÇÃO DO TRAVESSÃO NO TÍTULO */
.galeria-vivid .galeria-header {
    text-align: center !important;
    margin-bottom: 50px;
}

.galeria-vivid .section-title {
    text-align: center !important;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    /* MUDANÇA DE COR E TIPOGRAFIA DO TÍTULO */
    color: var(--dourado-claro) !important;
    /* Cor específica para esta seção */
    font-family: var(--fonte-serif) !important;
    /* Playfair Display */
    font-size: 2.8rem;

    /* REMOVENDO O TRAVESSÃO (Borda ou Elemento Decorativo) */
    border-bottom: none !important;
}

/* Mata o travessão se ele for um pseudo-elemento ::after */
.galeria-vivid .section-title::after {
    display: none !important;
    content: none !important;
}

/* 2. CENTRALIZAÇÃO E COR DO SUBTÍTULO */
.galeria-vivid .section-subtitle {
    text-align: center !important;
    display: block;
    color: var(--branco) !important;
    /* Texto claro sobre o fundo azul */
    font-family: var(--fonte-sans) !important;
    /* Montserrat */
    opacity: 0.9;
    margin-top: 10px;
}

/* 3. CENTRALIZAÇÃO DOS TEXTOS DENTRO DAS IMAGENS (LEGENDA) */
.galeria-vivid .galeria-item figcaption {
    text-align: center !important;
    font-family: var(--fonte-sans) !important;
    font-weight: 600;
    color: var(--branco) !important;
    background: rgba(0, 38, 77, 0.9);
    /* Azul profundo para contraste */
    width: 100%;
}

/* 4. CENTRALIZAÇÃO DO CARROSSEL NA PÁGINA */
.galeria-vivid .galeria-carousel-wrapper {
    justify-content: center !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* CONTROLES */
.carousel-control {
    background: var(--dourado);/*COR DE FUNDO DO BOTÃO*/
    border: none;
    color: var(--azul-marinho);/*COR DA SETA DO BOTÃO*/
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--glow-dourado);
    z-index: 10;
    transition: var(--transicao);
}

.carousel-control:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--glow-dourado-intenso);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.aberto {
    display: flex;
}

.lightbox-imagem {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--dourado);
    box-shadow: 0 0 40px var(--glow-dourado);
    border-radius: 10px;
}

@media (max-width: 992px) {
    .galeria-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .galeria-item {
        flex: 0 0 100%;
    }

    .carousel-control {
        display: none;
    }
}
/* =================================================================================================== */

/* =================================================================================================== */
/* --- AJUSTE PARA CABEÇALHO EM PÁGINAS INTERNAS --- */

/* Força o cabeçalho a ser sólido e visível na página interna */
.internal-page .header {
    background-color: var(--creme) !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    /* Garante que fique acima do Hero */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Garante que o conteúdo da página não comece "atrás" do menu */
.internal-page .page-hero {
    margin-top: 80px;
    /* Ajuste conforme a altura do seu header */
}

/* Garante que o link "Tratamentos" fique dourado nestas páginas */
.internal-page .nav-menu a[href*="#servicos"] {
    color: var(--dourado-claro);
    font-weight: 700;
}
/* =================================================================================================== */

/* =================================================================================================== */
/*SESSÃO DO NOSSA HISTORIA DO SITE*/
/* --- ESTILIZAÇÃO DA TIMELINE PREMIUM --- */
.timeline-section {
    background-color: var(--creme);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
}
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 50px auto 0;
}

/* Linha central no Desktop */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradiente-ouro);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    width: 100%;
    position: relative;
}

/* Alternância de Lados no Desktop */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-img {
    width: 45%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 59, 115, 0.15);
    border: 1px solid var(--glass-border-ouro);
    transition: var(--transicao);
}

.timeline-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.05);
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: var(--branco);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--dourado);
    position: relative;
}

.timeline-date {
    display: inline-block;
    background: var(--gradiente-ouro);
    color: var(--azul-profundo);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-family: var(--fonte-accent);
    margin-bottom: 15px;
    box-shadow: 0 0 15px var(--glow-dourado);
}

.timeline-content h3 {
    font-family: var(--fonte-serif);
    color: var(--azul-marinho);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- RESPONSIVIDADE (MOBILE) - AJUSTE DE RESPIRO --- */
@media (max-width: 992px) {
    .timeline-line {
        display: none;
        /* Remove a linha central */
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        /* Empilha verticalmente */
        align-items: flex-start;
    }

    .timeline-img,
    .timeline-content {
        width: 100%;
        /* Ocupa a largura toda */
    }

    .timeline-img {
        /* CORREÇÃO AQUI: Mudamos de -30px para um valor positivo para dar respiro */
        margin-bottom: 20px !important;
        z-index: 2;
    }

    .timeline-img img {
        height: 250px;
        border-radius: 20px 20px 0 0;
        /* Arredonda apenas o topo para "encaixar" visualmente */
    }

    .timeline-content {
        /* CORREÇÃO AQUI: Removemos o padding exagerado que era usado para a sobreposição */
        padding-top: 30px !important;
        z-index: 1;
        border-radius: 0 0 20px 20px;
        /* Arredonda a base do card de texto */
    }
}
/* =================================================================================================== */

/* ============================================================
   ESTÉTICA PREMIUM: PÁGINAS DE TRATAMENTO (ESTILO IMAGEM 1)
   ============================================================ */

/* Container Principal: Transforma em 2 colunas no Desktop */
.internal-page .treatment-main-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Coluna de Texto: Ocupa a esquerda */
.internal-page .treatment-block {
    flex: 1;
    background: transparent !important;
    /* Remove o fundo branco do card se houver */
    box-shadow: none !important;
    /* Remove sombras genéricas */
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
}

.internal-page .treatment-content {
    /* Aumentamos para 160px para garantir que o título e a imagem fiquem totalmente visíveis */
    padding-top: 160px !important;
    padding-bottom: 80px;
}

/* Garante que o container das colunas respeite o alinhamento */
.internal-page .treatment-main-grid {
    margin-top: 0 !important;
    /* Remove qualquer margem negativa que possa estar subindo o conteúdo */
}

.internal-page .treatment-section-title {
    font-size: 3rem;
    color: var(--azul-marinho);
    margin-bottom: 25px;
    line-height: 1.1;
}

.internal-page .treatment-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--cinza-texto);
    margin-bottom: 30px;
}

/* Coluna da Imagem: Ocupa a direita com o Card da Imagem 1 */
.internal-page .treatment-image-container {
    flex: 1;
    max-width: 550px;
    border-radius: 30px;
    /* Bordas bem arredondadas como na foto */
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 59, 115, 0.15);
    border: 1px solid var(--glass-border-ouro);
    transition: var(--transicao);
}

.internal-page .treatment-image-container img {
    width: 100%;
    height: 500px;
    /* Altura fixa para manter o padrão */
    object-fit: cover;
    display: block;
}

/* --- RESPONSIVIDADE (ESTILO MOBILE) --- */
@media (max-width: 992px) {
    .internal-page .treatment-main-grid {
        flex-direction: column;
        /* Empilha no mobile */
        text-align: center !important;
        gap: 40px;
    }

    .internal-page .treatment-block,
    .internal-page .treatment-image-container {
        width: 100%;
        text-align: center !important;
    }

    .internal-page .treatment-section-title {
        font-size: 2.2rem;
    }

    .internal-page .treatment-image-container img {
        height: 350px;
    }
}





/* =================================================================================================== */
/* --- ESTILIZAÇÃO DO FOOTER DE TODO O SITE --- */
/* --- FOOTER PREMIUM COM BACKGROUND DE CURVAS --- */
.footer {
    /* Mantém a cor base para garantir o preenchimento caso a imagem demore a carregar */
    background-color: var(--azul-marinho);

    /* Insere a nova imagem de curvas douradas */
    background-image: linear-gradient(rgba(155, 158, 189, 0), rgba(0, 59, 115, 0)),
        url('../img/background04.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--dourado-escuro);
    padding: 80px 0 30px;
    font-family: var(--fonte-principal);
    font-weight: 600;/* Um negrito levemente mais elegante que o padrão */

    /* Adiciona uma borda superior sutil para separar das seções claras */
    border-top: 1px rgba(0, 0, 0, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    /* Proporção das colunas */
    gap: 50px;
    margin-bottom: 50px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-title {
    color: var(--azul-marinho);
    font-family: var(--fonte-serif);
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--dourado-escuro);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 600;/* Um negrito levemente mais elegante que o padrão */
}

.footer-links a:hover {
    opacity: 1;
    color: var(--dourado);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact-item .icon {
    font-size: 1.2rem;
}

.footer-contact-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.footer-social {
    margin-top: 30px;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: scale(1.1);
}

/* RODAPÉ INFERIOR */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.5;
    letter-spacing: 0.5px;
}
/* =================================================================================================== */

/* =================================================================================================== */
/*BOTÃO DO WHATSAPP USADO EM TODO O SITE*/
/* --- ESTILIZAÇÃO DO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    /* Faz o ícone flutuar na tela, independente do scroll */
    width: 60px;
    /* Largura fixa */
    height: 60px;
    /* Altura fixa */
    bottom: 30px;
    /* Distância do fundo da tela */
    right: 30px;
    /* Distância da direita da tela */
    background-color: #25d366;
    /* Verde oficial do WhatsApp */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    /* Valor altíssimo para ficar por cima do footer e de tudo */
    transition: transform 0.3s ease;
}

/* Controla o tamanho da imagem interna para não ficar gigante */
.whatsapp-float img {
    width: 35px;
    /* Tamanho do ícone interno */
    height: 35px;
}

/* Efeito de destaque ao passar o mouse */
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.footer-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    /* Garante que a logo fique branca no fundo azul */
}
/* =================================================================================================== */



/* =================================================================================================== */
/*RESPONSIVIDADE DA VERSÃO MOBILE*/
/* --- AJUSTE DEFINITIVO PARA CARROSSEL MOBILE --- */
@media (max-width: 992px) {
    .testimonial-track {
        gap: 0;
        /* O JS controla o salto, o gap aqui causaria erro de cálculo */
    }

    .card-review {
        flex: 0 0 100%;
        /* Ocupa exatamente 100% da área visível */
        margin: 0;
        /* Remove margens que "empurram" o próximo card para a visão */
        padding: 20px;
        /* Respiro interno do card */
        box-sizing: border-box;
    }
}

/* --- AJUSTE DE CENTRALIZAÇÃO DA LOGO NO MOBILE --- */
@media (max-width: 992px) {
    .footer-col {
        text-align: center;
        /* Centraliza os textos da coluna */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centraliza todos os itens flexíveis, incluindo a logo */
    }

    .footer-logo {
        margin: 0 auto 25px;
        /* O 'auto' nas laterais força a centralização horizontal */
        max-width: 180px;
        /* Ajuste leve no tamanho para telas menores */
    }
}
        

/* Responsividade: Ajuste para celulares */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 25px;
    }
}

/* --- 7. ANIMAÇÕES (REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- 8. RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 992px) {

    /* Mostra o ícone hambúrguer */
    .mobile-menu-icon {
        display: block !important;
    }

    /* Transforma o menu em cascata */
    .nav-menu {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f5ede3; /* Cor sólida quando o header está no topo */
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--dourado);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        /* Adicione esta linha para suavizar a transição de cor */
        transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
    }

    .nav-menu a.active,
    .nav-menu a:active {
        color: var(--dourado) !important;
        background-color: rgba(255, 255, 255, 0.05);
        /* Fundo sutil */
        border-left: 4px solid var(--dourado);
        /* Barra lateral dourada */
        padding-left: 30px !important;
        /* Efeito de recuo para a direita */
        transition: all 0.3s ease;
    }
    
    .header.scrolled .nav-menu {
        background-color: rgba(245, 237, 227, 0.8);
        /* Transparência igual ao desktop */
        backdrop-filter: blur(10px);
        /* Efeito de vidro fosco no menu aberto */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(196, 154, 74, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .nav-menu a:active {
        background-color: rgba(196, 154, 74, 0.2);
    }
    
    .nav-menu a.current {
        background-color: rgba(196, 154, 74, 0.15);
        color: var(--dourado) !important;
        border-left: 4px solid var(--dourado);
        font-weight: 700;
    }

    /* Ajustes Hero Mobile */

    .hero {
        /* 1. Dá o "respiro" necessário para não colar no menu */
        padding-top: 140px !important;
        min-height: auto;
        padding-bottom: 10px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
        /* 2. Aproxima o texto da imagem/botão para ficar harmônico */
        margin-bottom: 20px;
        width: 100%;
        padding: 0 10px;
        /* Evita que o texto encoste nas bordas da tela */
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-top: 20px;
        margin-bottom: 0px;
        max-width: 100%;/* Centraliza visualmente o bloco de texto */
        order: 1;
    }

    .hero-text h1 {
        font-size: 2.9rem;/* Ajuste conforme necessário */
        margin-bottom: 25px;
    }

    .hero-text h2::after {
        display: none !important;/* Isso mata o travessão fantasma */
    }

    .hero-text h2 {
        font-size: 1.5rem;
        justify-content: center;
        gap: 0;
        letter-spacing: 2px;/* Reduzi um pouco para caber melhor em telas pequenas */
        margin-bottom: 25px;
    }

    .hero-image {
        order: 2;
        margin-bottom: 30px;
        margin-top: 0;/* Remove espaços extras entre texto e imagem */
    }

    .hero-image img {
        max-height: 45vh;
        /* Ajusta a altura da imagem para telas menores */
    }

    .logo-img {
        height: 50px;
    }

    .header-contact {
        display: none;
    }

    .nav-menu a:active {
      background-color: rgba(196, 154, 74, 0.2);
      /* Fundo dourado suave */
    }

    /* Estado de link selecionado/atual */
    .nav-menu a.current {
      background-color: rgba(196, 154, 74, 0.15);
      color: var(--dourado) !important;
      border-left: 4px solid var(--dourado);
      /* Barra lateral dourada de destaque */
      font-weight: 700;
    }
}
/* =================================================================================================== */