:root {
    --cor-principal: #7B3232;
    --cor-secundaria: #fff;
    --cor-texto: #333;
    --cor-botao: #25d366;
    --cor-botao-hover: #1da851;
    --cor-footer: #f5f5f5;
}


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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--cor-texto);
    background: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: rgba(123, 50, 50, 0.8); /* cor principal com transparência */
    color: var(--cor-secundaria);
    padding: 0.5rem 0;
    z-index: 100;
    backdrop-filter: blur(4px); /* opcional: efeito de desfoque */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 40px;
    width: auto;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--cor-secundaria);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #ffd6d6;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cor-secundaria);
    font-size: 2rem;
    cursor: pointer;
}

/* HERO SECTION NOVO ESTILO */

.hero-img-desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-img-mobile {
  display: none;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #f8f8f8;
}

.hero-bg {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f8f8f8 100%);
    pointer-events: none;
}

.hero-overlay-content {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    max-width: 570px;
    color: #7B3232;
    padding: 0 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}


.hero-img {
    flex-shrink: 0;
}

.hero-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--cor-principal);
    background: #fff;
}

.hero-overlay-text {
    text-align: justify;
    flex: 1;
}

.hero-overlay-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
    text-shadow: 0 2px 8px rgba(255,255,255,0.7);
}

.hero-overlay-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #444;
    text-shadow: 0 2px 8px rgba(255,255,255,0.6);
}

.btn-whatsapp {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 0.8em 1.6em;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
}
.btn-whatsapp:hover {
    background: #128c7e;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-img img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--cor-principal);
    background: #fff;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: var(--cor-principal);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    background: var(--cor-botao);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    gap: 0.7rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px #0001;
}

.btn-whatsapp:hover {
    background: var(--cor-botao-hover);
}

.btn-whatsapp.destaque {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

.sobre {
    background: #fff;
    padding: 3rem 0;
}

.sobre-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    padding: 0;
}

.sobre-img {
    width: 100%;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.sobre-img img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
    display: block;
    position: relative;
    z-index: 1;
}

.sobre-img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
}

.sobre-text {
    flex: 1;
    position: relative;
    z-index: 3;
    margin-top: -60px;
    background: none;
    padding: 2rem 1rem 0 1rem;
    /* opcional: sombra para destacar o texto sobre o degradê */
    text-align: justify;
}

.sobre-text h2 {
    color: var(--cor-principal);
    margin-bottom: 1rem;
}

.sobre-text p {
    margin-bottom: 0.7rem;
}

.especialidades {
    background: #f9f6f6;
    padding: 2.5rem 0;
}

.especialidades h2 {
    color: var(--cor-principal);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.especialidades ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    font-size: 1.1rem;
}

.especialidades ul li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 1px 4px #0001;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icone-area {
    height: 28px;
    width: auto;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.consulta {
    background: #fff;
    padding: 2.5rem 0;
}

.consulta h2 {
    color: var(--cor-principal);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.consulta ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    list-style: none;
    font-size: 1.1rem;
}

.consulta ul li {
    background: #f9f6f6;
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 1px 4px #0001;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.depoimentos {
    background: #f9f6f6;
    padding: 2.5rem 0;
}

.depoimentos h2 {
    color: var(--cor-principal);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.depoimentos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.depoimento {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px #0001;
    padding: 1.2rem 1.5rem;
    max-width: 350px;
    min-width: 220px;
    text-align: justify;
}

.depoimento .estrelas {
    color: #FFD700;
    font-size: 1.1rem;
}

.depoimento .autor {
    display: block;
    margin-top: 0.7rem;
    color: var(--cor-principal);
    font-weight: bold;
    font-size: 1rem;
}

.agendar {
    background: var(--cor-principal);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.agendar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.agendar h2 {
    margin-bottom: 0.7rem;
}

#contato {
    background: var(--cor-footer);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
    padding: 2rem 0 1rem 0;
}

.footer-info, .footer-contato {
    flex: 1;
    min-width: 250px;
}

.footer-info h3, .footer-contato h3 {
    color: var(--cor-principal);
    margin-bottom: 0.7rem;
}

.footer-mapa iframe {
    border-radius: 12px;
    margin-top: 0.7rem;
}

.footer-contato ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-contato ul li {
    margin-bottom: 0.5rem;
}

.footer-contato a {
    color: var(--cor-principal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contato a:hover {
    color: #b94d4d;
}

.footer-copy {
    background: #e7e7e7;
    text-align: center;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    color: #555;
}

.curriculo {
    background: #fff;
    padding: 2.5rem 0;
}

.curriculo h2 {
    color: var(--cor-principal);
    margin-bottom: 1.2rem;
    text-align: left;
    padding-left: 0;
}

.curriculo-lista {
    list-style: none;
    font-size: 1.1rem;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.curriculo-lista li {
    text-align: left;
    color: var(--cor-texto);
}

.curriculo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.curriculo-texto {
    flex: 1;
    width: 100%;
}

.curriculo-foto {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.curriculo-foto img {
    width: 400px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    object-fit: cover;
    display: block;
}

.curriculo-separador {
    width: 100%;
    height: 3px;
    background: var(--cor-principal);
    border-radius: 2px;
}

@media (min-width: 901px) {
    .hero-overlay-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .hero-overlay-content p {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero-overlay-content {
    left: 30%;
    transform: translateX(-30%);
  }

    .sobre-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .sobre-img {
    display: block; /* ou flex com align-items: flex-start */
    width: 45%;
    max-height: 600px;
    overflow: hidden;
  }

  .sobre-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top; /* garante que o topo da imagem seja exibido */
    border-radius: 12px;
  }

  .sobre-text {
    width: 55%;
    padding: 2rem;
  }

  .especialidades ul {
    display: grid;
    grid-template-columns: 1fr 1fr; /* duas colunas */
    gap: 1.5rem 2rem; /* espaço entre linhas e colunas */
    justify-items: start; /* alinha os itens à esquerda */
  }

  .especialidades ul li {
    width: 100%;      /* ocupa toda a largura da célula */
    max-width: none;  /* remove o limite de 600px */
    margin: 0;        /* remove o centralizado */
  }

  /* Empilhar listas das consulta */
  .consulta ul {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .consulta ul li {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .especialidades h2,
  .consulta h2 {
    text-align: center;
  }

  .curriculo-content {
    flex-direction: row; /* lado a lado */
    align-items: flex-start;
    gap: 1rem; /* espaço entre texto e foto */
  }

  .curriculo-texto {
    width: 60%; /* texto ocupa mais espaço */
  }

  .curriculo-foto {
    width: 40%; /* imagem ocupa menos espaço */
    margin-top: 0; /* remove o espaçamento extra que estava empurrando */
    justify-content: flex-end; /* alinha a imagem à direita */
  }

  .curriculo-foto img {
    max-width: 100%;
    height: auto;
  }

}

@media (max-width: 900px) {
    .hero-bg, .hero-full-img {
        height: 60vh;
        min-height: 250px;
    }
    .hero-overlay-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-overlay-text {
        text-align: center;
    }
    .hero-overlay-content h1 {
        font-size: 1.4rem;
    }
    .hero-overlay-content p {
        font-size: 1rem;
    }
    .hero-content, .sobre-content, .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    .header-content {
        flex-direction: row;
    }

    .hero-img-desktop {
    display: none;
  }

  .hero-img-mobile {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(123, 50, 50, 0.8);
        width: 200px;
        display: none;
        flex-direction: column;
        box-shadow: 0 2px 8px #0002;
        border-radius: 0 0 0 12px;
    }
    nav.open {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    nav ul li {
        border-bottom: 1px solid #fff2;
        padding: 1rem 0;
        text-align: right;
        margin: 0 1.2rem;
    }
    .menu-toggle {
        display: block;
    }

    .especialidades ul li,
    .consulta ul li {
        flex: 1 1 100%;
        margin: 0 auto;
    }

    .especialidades ul,
    .consulta ul {
        justify-content: center;
    }

    .hero-overlay-content {
        padding-left: 18px;
        padding-right: 18px;
    }

}

@media (max-width: 500px) {
    .logo img {
        margin-top: 10px;
        height: 35px;
        object-fit: contain;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }
    .btn-whatsapp, .btn-whatsapp.destaque {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .sobre-text {
        margin-top: -15px;
        padding: 0.7rem 0.2rem 0 0.2rem;
    }
}
