/* --- Variáveis CSS (Melhora a manutenção) --- */
:root {
    --primary-color: #2a9d8f;
    --primary-dark-color: #21867a;
    --secondary-color: #e63946;
    --text-color: #333;
    --light-bg-color: #f9f9f9;
    --white-color: #fff;
    --border-color: #eee;
    --shadow-light: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-deep: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Ajuste para o conteúdo abaixo do header --- */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    box-sizing: border-box;
    padding-top: 100px;
    background-color: #ddd;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.schedule-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.schedule-btn:hover {
    background-color: var(--primary-dark-color);
}

/* --- Menu principal FIXO (Dividido em 3 partes e com cores) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: row;
}

.header-part {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left {
    background-color: #e9dcd4;
}

.header-middle {
    background-color: #22495a;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-part.header-middle {
    width: 15%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
    flex: none; /* Remove o flex-grow para manter o tamanho fixo */
}
.header-part.header-left {
    width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
    flex: none; /* Remove o flex-grow para manter o tamanho fixo */
}

.header-left, .header-right {
    flex: 1; /* Mantém as outras partes flexíveis */
}
.header-right {
    background-color: #486573;
}

.header-middle-content {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.header-left-content,
.header-right-content {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left-content .logo {
    justify-content: flex-start;
    width: auto;
}

.header-right-content .contact-info {
    justify-content: flex-end;
    width: auto;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-color);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.contact-info {
    font-weight: bold;
    white-space: nowrap;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* --- Conteúdo principal (Hero Section) --- */
.hero {
    text-align: center;
    position: relative;
    padding: 100px 20px;
    min-height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--white-color);
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    box-shadow: var(--shadow-light);
}

.primary-btn:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.secondary-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* --- Seção Sobre --- */
.about-section {
    position: relative; /* Permite que o z-index funcione */
    z-index: 1; /* Coloca acima do vídeo */
    margin-top: 0vh; /* Move para cima 25% da altura da viewport */
    background-color: #fff; /* Garante que o fundo seja sólido */
    padding-top: 0; /* Remove o padding superior original */
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1); /* Opcional: sombra para efeito de elevação */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.chat-invite {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    color: #333;
}

/* --- Seção Dra. Amanda --- */
.doctor-section {
    background-color: var(--light-bg-color);
    text-align: center;
}

.doctor-profile {
    max-width: 800px;
    margin: 0 auto;
}

.doctor-name {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.doctor-crp {
    font-weight: bold;
    color: #555;
    margin-bottom: 30px;
    display: block;
    font-size: 18px;
}

.doctor-bio {
    text-align: left;
    margin-bottom: 30px;
    font-size: 17px;
    color: #444;
}

.doctor-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px;
    display: block;
    background-color: #ddd;
    border: 7px solid var(--white-color);
    box-shadow: var(--shadow-medium);
}

/* --- Seção Tratamentos --- */
.treatments-section {
    background-color: var(--white-color);
    text-align: center;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.treatment-card {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
}

.treatment-icon {
    font-size: 55px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.treatment-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.treatment-card p {
    font-size: 16px;
    color: #555;
}

/* --- Seção Seguros --- */
.insurance-section {
    background-color: #ddd; /* Cor de fundo cinza claro como na imagem */
    text-align: center;
    padding: 60px 0;
}

.insurance-title {
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #2a9d8f; /* Verde semelhante ao da imagem */
    font-size: 36px; /* Ajuste para combinar com o tamanho na imagem */
}

.insurance-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    color: #333; /* Cor do texto na imagem */
    font-weight: bold; /* Destaque como na imagem */
}

.insurance-section .container {
    display: flex; /* Usa flexbox para alinhar as divs lado a lado */
    flex-wrap: wrap; /* Permite que as divs quebrem para a próxima linha em telas menores */
    justify-content: center; /* Centraliza os itens horizontalmente */
    align-items: flex-start; /* Alinha os itens no topo */
    gap: 40px; /* Espaçamento entre as divs */
    max-width: 1200px; /* Limita a largura máxima do container */
    margin: 0 auto; /* Centraliza o container na página */
}

.insurance-content {
    max-width: 400px; /* Define uma largura máxima para o texto */
    margin: 0 auto; /* Centraliza a div dentro do espaço disponível */
    font-size: 16px;
    color: #555;
    background-color: #fff; /* Fundo branco como na imagem */
    padding: 20px; /* Adiciona padding para se assemelhar ao card */
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombra leve */
    flex: 1; /* Permite que o conteúdo ocupe espaço disponível */
    min-width: 300px; /* Garante um tamanho mínimo */
    text-align: left; /* Alinha o texto à esquerda dentro da div */
}

.insurance-plans {
    background-color: var(--white-color);
    max-width: 800px; /* Largura aproximada do card na imagem */
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza os itens dentro da .insurance-plans */
    gap: 25px;
    margin: 0; /* Remove margens para melhor controle */
    flex: 1; /* Permite que os planos ocupem espaço disponível */
    min-width: 300px; /* Garante um tamanho mínimo */
}

.insurance-plan {
    background-color: #fff; /* Fundo branco para os logos */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insurance-plan img {
    max-width: 100px; /* Ajuste o tamanho dos logos conforme necessário */
    height: auto;
    display: block;
    margin: 0 auto;
}

.insurance-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Responsividade */
@media (max-width: 768px) {
    .insurance-section .container {
        flex-direction: column; /* Empilha as divs em telas menores */
        align-items: center;
    }

    .insurance-content, .insurance-plans {
        flex: none; /* Remove o comportamento flexível em telas menores */
        width: 90%; /* Ocupa quase toda a largura */
        max-width: none; /* Remove a largura máxima */
        margin: 0 auto; /* Centraliza em telas menores */
    }
}

/* Ajuste na seção online-consulting para refletir o fundo cinza da imagem */
.online-consulting {
    background-color: #ddd; 
    color: var(--text-color);
    padding: 70px 0;
    text-align: center;
}
/* Estilizando o card */
.consulting-card {
    background-color: var(--white-color);
    max-width: 800px; /* Largura aproximada do card na imagem */
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
}


/* Título da consulta */
.consulting-title {
    font-size: 28px;
    color: #10b981; /* Verde semelhante ao da imagem */
    margin-bottom: 10px;
    font-weight: bold;
}

.consulting-title::after {
    background-color: var(--white-color);
}
/* Subtítulo */
.consulting-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.consulting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.consulting-info {
    margin-bottom: 20px;
}

.consulting-info p {
    margin-bottom: 10px;
    font-size: 17px;
}

.consulting-duration {
    font-size: 18px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 5px;
    border-bottom: 1px solid #10b981; /* Linha verde como na imagem */
    padding-bottom: 5px;
}

.consulting-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

/* Botão Agendar */
.consulting-button {
    background-color: #10b981; /* Verde do botão na imagem */
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.consulting-button:hover {
    background-color: #047857; /* Tom mais escuro de verde para hover */
}

/* --- Seção Clínica e Contato --- */
.clinic-contact-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    background-color: var(--white-color);
    padding: 80px 20px;
}

.clinic-info {
    padding: 0;
    text-align: center;
}

.clinic-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.clinic-name {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.clinic-location {
    font-style: normal;
    color: #777;
    margin-bottom: 30px;
    font-size: 17px;
}

.clinic-address {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
    font-style: normal;
}

.clinic-address p {
    margin-bottom: 5px;
}

.clinic-hours h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.clinic-hours p {
    margin-bottom: 8px;
    color: #555;
    font-size: 16px;
}

.contact-form {
    padding: 40px;
    background-color: var(--light-bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-submit {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 18px;
    width: 100%;
}

.form-submit:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* --- Chat flutuante --- */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    text-decoration: none;
    z-index: 1000;
}

.chat-button:hover {
    background-color: #1DA851;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.chat-button span {
    font-size: 24px;
    line-height: 1;
}

/* --- Rodapé --- */
.footer-text {
    text-align: center;
    padding: 30px;
    color: #777;
    font-size: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg-color);
}

.footer-text p {
    margin: 5px 0;
}

/* --- Responsividade (Media Queries) --- */
@media (max-width: 992px) {
    body {
        padding-top: 150px;
    }
    .main-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .contact-info {
        margin-top: 15px;
    }

    .main-header .container {
        flex-direction: column;
    }
    /* Ajuste para o container do vídeo */
    .hero {
        position: relative;
        z-index: 0; /* Garante que fique atrás */
        
        
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 80%;
        max-width: 300px;
    }

    .treatments-grid {
        grid-template-columns: 1fr;
    }

    .clinic-contact-section {
        grid-template-columns: 1fr;
    }

    .clinic-info, .contact-form {
        padding: 20px;
    }

    .consulting-content {
        flex-direction: column;
    }

    .consulting-button {
        width: 100%;
        max-width: 300px;
    }
    .header-part.header-middle {
        width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .header-part.header-left {
        width: 60%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 130px;
    }
    h2 {
        font-size: 30px;
    }

    .schedule-btn {
        width: 100%;
        margin-top: 10px;
    }

    .main-header {
        padding: 15px 0;
    }

    .logo {
        font-size: 24px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .chat-button {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 16px;
    }

    .chat-button span {
        font-size: 20px;
    }

    section {
        padding: 50px 0;
    }
    .header-part.header-middle {
        width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .header-part.header-left {
        width: 60%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .consulting-card {
        max-width: 90%;
    }
}

/* Estilo do botão hamburguer */
.hamburger-btn {
    display: none; /* Escondido por padrão (mostra só em mobile) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Quando o menu está aberto */
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #333;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .header-right-content {
        position: static;
    }
    
    /* Overlay quando menu está aberto */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }
    
    .overlay.active {
        display: block;
    }
     .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    .header-part.header-middle {
        width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .header-part.header-left {
        width: 60%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
}

/* Efeitos 3D */
.about-3d-container {
    perspective: 1200px;
    padding: -30px;
}

.about-grid-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    transform-style: preserve-3d;
    position: relative;
}

.about-image-3d {
    position: relative;
    transform: rotateY(-5deg) translateZ(30px);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.about-image-3d:hover {
    transform: rotateY(-8deg) translateZ(50px);
}

.about-image-3d img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-3d:hover img {
    transform: scale(1.05);
}

.reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(255,255,255,0.3), transparent);
    z-index: 2;
}

.about-content-3d {
    position: relative;
    background: white;
    padding: 40px;
    transform: rotateY(5deg) translateZ(30px);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.2);
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.about-content-3d:hover {
    transform: rotateY(8deg) translateZ(50px);
}

.about-content-3d h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #333;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.about-content-3d h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
}

.about-content-3d p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    position: relative;
    z-index: 1;
}

.corner-3d {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 0;
    opacity: 0.8;
}

/* Responsivo */
@media (max-width: 768px) {
    .about-grid-3d {
        grid-template-columns: 1fr;
    }
    
    .about-image-3d, 
    .about-content-3d {
        transform: none !important;
    }
    
    .about-image-3d {
        margin-bottom: 30px;
    }
    .header-part.header-middle {
        width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .header-part.header-left {
        width: 60%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
}

/* Efeitos 3D para seção do psicólogo */
.doctor-3d-container {
    perspective: 1200px;
    padding: 40px 0;
}

.doctor-profile-3d {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 30px 50px rgba(0,0,0,0.15);
    transform: rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.doctor-profile-3d:hover {
    transform: rotateY(-8deg) translateY(-10px);
    box-shadow: 0 40px 60px rgba(0,0,0,0.2);
}

.doctor-image-3d-wrapper {
    position: relative;
    transform: translateZ(40px);
    overflow: hidden;
}

.doctor-image-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.doctor-profile-3d:hover .doctor-image-3d {
    transform: scale(1.05);
}

.image-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
    z-index: 2;
}

.doctor-info-3d {
    padding: 40px 40px 40px 0;
    position: relative;
    transform: translateZ(30px);
}

.doctor-name-3d {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #333;
    position: relative;
    display: inline-block;
}

.doctor-name-3d::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
}

.doctor-crp-3d {
    display: block;
    margin-bottom: 25px;
    color: #666;
    font-size: 1.1rem;
}

.doctor-bio-3d p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
    position: relative;
    z-index: 1;
}

.corner-accent {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.doctor-profile-3d:hover .corner-accent {
    opacity: 0.3;
}

/* Responsivo */
@media (max-width: 900px) {
    .doctor-profile-3d {
        grid-template-columns: 1fr;
        transform: none !important;
    }
    
    .doctor-image-3d-wrapper {
        height: 400px;
    }
    
    .doctor-info-3d {
        padding: 30px;
    }
    .header-part.header-middle {
        width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .header-part.header-left {
        width: 60%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
}

@media (max-width: 480px) {
    .doctor-image-3d-wrapper {
        height: 300px;
    }
    
    .doctor-name-3d {
        font-size: 1.8rem;
    }
    .header-part.header-middle {
        width: 30%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
    .header-part.header-left {
        width: 60%; /* Reduzindo para 1/4 do espaço (já que cada parte original era 1/3) */
        flex: none; /* Remove o flex-grow para manter o tamanho fixo */
    }
}

/* Localização */
        .localizacao {
            padding: 50px 0;
             background-color: #e9dcd4;
        }

        .localizacao-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .localizacao-card {
            background-color: var(--branco);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .localizacao-card h3 {
            color: var(--azul-escuro);
            margin-bottom: 15px;
        }

        .localizacao-card iframe {
            width: 100%;
            height: 300px;
            border: none;
            border-radius: 10px;
        }
        
        /* Artigo */
        .artigo {
            padding: 80px 0;
             background-color: #e9dcd4;
        }
        
        .artigo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .artigo-card {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        .artigo-card .btn-agendar {
            display: block;
            margin: 15px auto 0;
            text-align: center;
            width: fit-content;
            text-decoration: none; /* Remove sublinhado */
        }
        
        .artigo-img {
            height: 200px;
            overflow: hidden;
        }
        
        .artigo-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .artigo-card:hover .artigo-img img {
            transform: scale(1.1);
        }
        
        .artigo-content {
            padding: 20px;
            background-color: var(--branco);
        }
        
        .artigo-content h3 {
            color: var(--azul-escuro);
            margin-bottom: 10px;
        }
        
        .artigo-meta {
            color: var(--cinza-medio);
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        
        
        /* --- Seção Paerceiros --- */
        .container-parceiros {
            max-width: 1000px;
            margin: 0 auto;
            padding: 40px 20px;
            background-color: ddd;
        }

        .title-parceiros {
            text-align: center;
            letter-spacing: 3px;
            font-weight: 600;
            font-size: 20px;
            margin-bottom: 30px;
            position: relative;
        }

        .title-parceiros::after {
            content: '';
            display: block;
            width: 40px;
            height: 2px;
            background-color: #1abc9c;
            margin: 10px auto 0;
        }

        .content-parceiros {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }

        .left-box-parceiros {
            background-color: #1abc9c;
            color: white;
            padding: 20px;
            flex: 1 1 250px;
            border-radius: 3px;
            box-sizing: border-box;
        }

        .left-box-parceiros p {
            margin: 0;
            font-size: 18px;
        }

        .right-box-parceiros {
            background-color: white;
            padding: 20px;
            flex: 2 1 500px;
            border-radius: 3px;
            box-sizing: border-box;
            font-size: 14px;
            line-height: 1.6;
        }

        .logos-parceiros {
            background-color: white;
            padding: 20px;
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            border-radius: 3px;
        }

        .logos-parceiros img {
            max-height: 50px;
            margin: 10px 20px;
            object-fit: contain;
        }

        @media (max-width: 768px) {
            .content-parceiros {
                flex-direction: column;
            }
            .logos-parceiros {
                justify-content: center;
            }
        }