/* Estilos Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #f9f9f9;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}
.main {
  padding: 20px;
  width: 100%;
  max-width: 1600px; 
  margin: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


.header-logo img {
    height: 40px;
}

.Casa {
    color: #2a7de1;
    font-size: 50px;
    margin-bottom: 10px;
    margin-top: 150px;
    width: 100%;
    display: block;
    text-align: center;
}

.TextoCasa {
    font-size: 15px;
    display: block;
    text-align: center;
}

.main-image {
    max-width: 100%;
    height: 300px;
    margin-right: 800px;
    margin-top: 200px;
}

.text-content {
    max-width: 500px;
}

.TextoFritz {
    color: #2a7de1;
    margin-top: -400px;
    font-size: 30px;
    margin-bottom: 10px;
    margin-left: 400px;
    text-align: left;
}

/* Estilos para Resumos (base) */
.ResumoFritz {
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    white-space: pre-line; /* Mantido para quebras de linha pré-formatadas se desejado */
    text-align: left;
    width: 100%;
    display: block;
}

.ResumoFritz,
.ResumoGilmar,
.ResumoCirurgia,
.ResumoLocal {
    
  margin-top: 30px;
  text-align: justify;
  word-break: break-word;
  padding: 0 10px;
}


.fritz-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.Gilmar {
    color: #2a7de1;
    font-size: 30px;
    text-align: left;
    width: 100%;
    display: block;
    margin-left: 300px;
    margin-top: 200px;
}

.ImagemGilmar {
    margin-top: -225px;
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
      margin-left: 1100px;

}


.veja-mais-link {
    color: #2a7de1;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 8px;
    font-size: 18px;
    transition: color 0.2s;
}

.veja-mais-link:hover {
    color: #174f9c;
}

.content-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.linha-separadora {
    border: none;
    height: 2px;
    background-color: #ddd;
    margin: 0;
    width: 100%;
}

.local {
    color: #2a7de1;
    font-size: 40px;
    margin-bottom: 10px;
    margin-left: 350px;
    margin-top: 400px;
    width: 150%;
    display: block;
}

.LocalGrupo {
    margin-top: -400px;
    margin-left: 900px;
    max-width: 100%;
    height: 500px;
}

.Cirurgias {
    color: #2a7de1;
    font-size: 40px;
    margin-bottom: 10px;
    margin-top: 350px;
    width: 100%;
    display: block;
    text-align: center;
}

.cards-section {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 100px 0;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 15px 12px rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.10s;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(42, 125, 225, 0.15);
}

.card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.card-title {
    font-size: 22px;
    color: #2a7de1;
    margin-bottom: 10px;
    text-align: center;
}

.card-desc {
    font-size: 16px;
    color: #333;
    text-align: center;
}

.card-button {
    background-color: #2a7de1;
    color: white;
    padding: 14px 28px;
    margin-top: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(42, 125, 225, 0.2);
}

.card-button:hover {
    background-color: #1c5ebd;
    transform: scale(1.05);
}

.card-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(42, 125, 225, 0.3);
}

.card:nth-child(1) {
    animation-delay: 0.2s;
}
.card:nth-child(2) {
    animation-delay: 0.4s;
}
.card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.depoimentos {
    padding: 60px 20px;
    text-align: center;
    margin-top: 200px;
}

.depoimentos h2 {
    font-size: 2.5rem;
    color: #2a7de1;
    margin-bottom: 100px;
    margin-top: 40px;
}

.depoimentos h2 span {
    font-weight: bold;
}

.carrossel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.seta {
    background: none;
    border: none;
    font-size: 2rem;
    color: #2a7de1;
    cursor: pointer;
    transition: transform 0.2s;
}

.seta:hover {
    transform: scale(1.2);
}

.depoimento-card {
    background-color: #eef4f7cc;
    border-radius: 16px;
    padding: 20px;
    width: 600px;
    display: flex;
    gap: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    align-items: center;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.foto {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 25%;
}

.estrelas {
    color: gold;
    font-size: 1.5rem;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.depoimento-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    text-align: left;
    flex: 1;
    min-width: 250px;
}

.menu-h {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #2a7de1;
    cursor: pointer;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.header-nav ul li a {
    text-decoration: none;
    color: #2a7de1;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.header-nav ul li a:hover {
    color: #174f9c;
}

.footer {
  background-color: #2a7de1;
  color: #ffffff;
  padding: 60px 20px 40px;
  margin-top: 80px;
  text-align: center;
  width: 100%;
}

.footer-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.footer-depoimento {
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-depoimento a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 25px;
}

.footer-social a {
  font-size: 32px;
  color: #ffffff;
  transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
  transform: scale(1.2);
  color: #d0e6ff;
}

.footer-copy {
  font-size: 15px;
  color: #e0e0e0;
  text-align: center;
}

   .footer-title {
    font-size: 26px;
  }

  .footer-depoimento {
    font-size: 16px;
    padding: 0 10px;
  }

  .footer-social a {
    font-size: 24px;
  }

  .footer-copy {
    font-size: 13px;
    padding: 0 10px;
  }
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-logo {
    margin-bottom: 0;
  }

  .header-nav {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  .header-nav.active {
    display: block;
    text-align: center;
  }

  .header-nav ul {
    flex-direction: column;
  }

  .header-nav li {
    margin: 10px 0;
  }
}

@media (max-width: 1700px) {
  .cards-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* espaçamento entre os cards */
  }

  .cards-section .card-tratamento {
    width: calc(50% - 40px); /* dois cards por linha */
  }
}

/* MEDIA QUERIES ORGANIZADAS E OTIMIZADAS */
@media (max-width: 768px) {
  .ImagemGilmar {
    margin: 40px auto 0; /* Centraliza no celular */
    width: 90%;          /* Ocupa quase toda a largura da tela */
  }
}
@media (max-width: 1200px) {
  .ResumoFritz,
  .ResumoGilmar,
  .ResumoCirurgia,
  .ResumoLocal {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 30px;
    text-align: justify !important;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1200px) {
    /* Ajustes para telas médias (desktops menores, tablets grandes) */

    /* Resumos: Fritz, Gilmar, Cirurgia e Local */
    .ResumoFritz,
    .ResumoGilmar,
    .ResumoCirurgia,
    .ResumoLocal {
       margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 30px;
        text-align: left !important; /* Removido justify para evitar espaçamento */
        width: 100%;
        font-size: 18px;
        white-space: normal;
        padding: 0 20px;
        line-height: 1.5;
        word-spacing: normal !important; /* Garante espaçamento padrão */
        letter-spacing: normal !important; /* Remove espaçamento extra entre letras */
    }

    /* Títulos: Fritz e Gilmar */
    .TextoFritz,
    .Gilmar {
        text-align: center !important; /* Centraliza os títulos */
        font-size: 30px; /* Mantém tamanho de fonte para títulos */
        margin-left: 0; /* Remove margem específica */
        white-space: normal;
        padding: 0 20px; /* Adiciona espaçamento interno */
        margin-top: 30px; /* Ajusta margem superior */
    }

    /* Imagens: Gilmar e Imagem Principal */
    .ImagemGilmar,
    .main-image {
        margin: 30px auto 0; /* Centraliza a imagem e adiciona margem superior */
        height: auto;
        width: 100%;
        max-width: 500px; /* Limita largura máxima para imagens */
        display: block;
    }

    .text-content {
        max-width: 95vw; /* Garante que o conteúdo não ultrapasse 95% da largura da viewport */
        margin: 0 auto; /* Centraliza o bloco de texto */
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Ajustes para telas pequenas (tablets na vertical, smartphones) */

    /* Ativa o botão de menu e oculta a navegação */
    .menu-h {
        display: block;
    }
    
    .header-logo{
        margin-left: 30px;
    }

    .header-nav {
        display: none; /* Esconde a navegação por padrão */
        width: 100%;
        margin-top: 10px;
    }

    .header-nav.active {
        display: block; /* Mostra a navegação quando a classe 'active' está presente */
    }

    .header-nav ul {
        flex-direction: column; /* Coloca os itens do menu em coluna */
        gap: 12px;
        padding-top: 10px;
    }

    .header-nav ul li {
        border-bottom: 1px solid #eee; /* Adiciona linha separadora entre itens do menu */
        padding-bottom: 10px;
    }

    /* Resumos: Fritz, Gilmar, Cirurgia e Local */
    .ResumoFritz,
    .ResumoGilmar,
    .ResumoCirurgia,
    .ResumoLocal {
    font-size: 16px;
        padding: 0 15px;
        max-width: 100%;
        margin-top: 20px;
        line-height: 1.5;
        text-align: left !important; /* Evita o espaçamento justificado */
        word-spacing: normal !important;
        letter-spacing: normal !important;
    }

    /* Títulos principais: Casa, Fritz, Gilmar, Local, Cirurgias */
    .Casa {
        font-size: 48px; /* Reduz o tamanho da fonte do título "Casa" */
        margin-top: 60px;
        padding: 0 15px;
    }

    .TextoCasa {
        font-size: 18px; /* Ajusta o tamanho da fonte do texto "TextoCasa" */
        padding: 0 15px;
    }

    .TextoFritz,
    .Gilmar,
    .local,
    .Cirurgias {
        font-size: 28px; /* Ajusta o tamanho dos títulos das seções */
        margin-top: 50px; /* Margem superior para títulos */
        padding: 0 15px;
        text-align: center !important; /* Garante centralização */
        margin-left: 0 !important; /* Remove margens específicas */
        width: 100%;
    }
    
    .local {
        font-size: 32px; /* Título "Local" um pouco maior */
        margin-top: 60px;
    }

    .Cirurgias {
        font-size: 32px; /* Título "Cirurgias" um pouco maior */
        margin-top: 60px;
    }

    /* Imagem do Grupo Local */
    .LocalGrupo {
        margin: 30px auto 0; /* Centraliza a imagem */
        width: 100%;
        max-width: 400px; /* Limita largura máxima */
        height: auto;
        display: block;
    }

    /* Seção de Cards */
    .cards-section {
        flex-direction: column; /* Coloca os cards em coluna */
        align-items: center; /* Centraliza os cards */
    }

    .card {
        width: 90%; /* Cards ocupam 90% da largura da tela */
    }

    /* Depoimentos */
    .depoimentos h2 {
        font-size: 2.2rem; /* Reduz o tamanho do título de depoimentos */
        margin-bottom: 60px;
    }

    .depoimento-card {
        flex-direction: column; /* Coloca os elementos do card de depoimento em coluna */
        width: 95%; /* Ocupa quase toda a largura */
        padding: 20px 15px;
    }

    .foto {
        width: 120px;
        height: 120px;
    }

    .estrelas,
    .depoimento-card p {
        text-align: center; /* Centraliza as estrelas e o texto do depoimento */
    }

    /* Rodapé */
    .footer-title {
        font-size: 28px;
    }
    .footer-depoimento {
        font-size: 18px;
        padding: 0 15px;
    }
    .footer-social a {
        font-size: 28px;
    }
    .footer-copy {
        font-size: 14px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas (smartphones menores) */
    .Casa {
        font-size: 36px; /* Ajuste final para o título "Casa" */
        margin-top: 40px;
        padding: 0 10px;
    }

    .TextoCasa {
        font-size: 15px; /* Ajuste final para o texto "TextoCasa" */
        padding: 0 10px;
    }

    .depoimentos h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* Rodapé para telas muito pequenas */
    .footer-title {
        font-size: 24px;
    }

    .footer-depoimento {
        font-size: 16px;
        padding: 0 10px;
    }

    .footer-social {
        gap: 20px;
    }

    .footer-social a {
        font-size: 24px;
    }

    .footer-copy {
        font-size: 13px;
    }
}