/* ESTILOS GLOBAIS */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 90px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
h1,
h2,
h3 {
  font-family: "Lexend", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: #2a2a2a;
}

p {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.7;
  color: #444;
}

/* ESTILOS GLOBAIS - CORREÇÃO DEFINITIVA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

body {
  font-family: Arial, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 90px !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  font-family: "Lexend", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: #2a2a2a;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

p {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.7;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Garantir que todos os containers principais respeitem a largura */
.content,
.secao,
.estrutura-container,
.convenios-section,
.especialidades-section {
  max-width: 100% !important;
  overflow-x: hidden !important;
  width: 100% !important;
}

/* NAVBAR - CORREÇÃO COMPLETA */
.navbar {
  background: linear-gradient(to right, rgb(123, 202, 233), rgb(9, 126, 141));
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-sizing: border-box;
}

.nav-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  position: relative;
  width: 100%;
  padding: 0 20px;
  background: transparent;
}

.menu-items {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* CORREÇÃO DEFINITIVA DO LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  flex-shrink: 0;
  min-width: auto;
}

.nav-logo img {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 25px;
  justify-content: space-between;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* CONTEÚDO PRINCIPAL */
.content {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section-titulo {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
  font-size: 2rem;
  position: relative;
}

.text-content {
  text-align: center;
  margin-bottom: 10px;
}

.text-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.saiba-button {
  background: linear-gradient(to right, rgb(123, 202, 233), rgb(9, 126, 141));
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.saiba-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%;
  overflow-x: hidden;
}

/* lado esquerdo */
.conteudo-esquerda {
  flex: 1;
  max-width: 100%;
}

/* lado direito (imagem) */
.conteudo-direita {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: 3%;
}

.conteudo-direita img {
  width: 100%;
  max-width: 90%;
  border-radius: 40px;
  height: auto;
  object-fit: cover;
}

/* IMAGEM INICIAL - CORREÇÃO DEFINITIVA */
.img-inicial {
  width: 100%;
  max-width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.img-inicial .image-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.img-inicial .image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.feature p {
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* SEÇÃO DE ESPECIALIDADES - LARGURA TOTAL */
.especialidades-section {
  width: 100%;
  max-width: 100%;
  padding-bottom: 10px;
  background: linear-gradient(135deg, #f8fdff 0%, #e8f7ff 100%);
  overflow: hidden;
}

.especialidades-section .section-titulo {
  margin-bottom: 10px;
  font-size: 2.8rem;
  color: #333;
  text-align: center;
}

/* CARROSSEL MODIFICADO - 3 ITENS VISÍVEIS, SCROLL SUAVE */
.carrossel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.carrossel-wrapper {
  overflow: hidden;
  margin: 0;
  padding: 30px 0;
  width: 100%;
}

.especialidades-carrossel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0;
  will-change: transform;
}

/* ITENS DO CARROSSEL - 3 VISÍVEIS */
.especialidade-item {
  flex: 0 0 calc(33.333% - 30px);
  background: white;
  border-radius: 25px;
  padding: 35px 30px;
  transition: all 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0 15px;
  min-height: 520px;
  border: 2px solid #f0f8ff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

.especialidade-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, rgb(123, 202, 233), rgb(9, 126, 141));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.especialidade-item:hover::before {
  transform: scaleX(1);
}

.especialidade-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgb(123, 202, 233);
}

.especialidade-imagem {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
  position: relative;
  z-index: 2;
}

.especialidade-item:hover .especialidade-imagem {
  transform: scale(1.1);
  border-color: rgb(123, 202, 233);
  box-shadow: 0 18px 40px rgba(123, 202, 233, 0.4);
}

.especialidade-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(1.05);
}

.especialidade-item:hover .especialidade-imagem img {
  transform: scale(1.15);
}

.especialidade-conteudo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.especialidade-conteudo h3 {
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.especialidade-resumo {
  color: #5d6d7e;
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.05rem;
  text-align: center;
  flex: 1;
  font-weight: 500;
}

.especialidade-btn {
  background: linear-gradient(135deg, rgb(123, 202, 233), rgb(9, 126, 141));
  color: white;
  border: none;
  padding: 16px 35px;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
  max-width: 220px;
  margin-top: auto;
  box-shadow: 0 6px 20px rgba(123, 202, 233, 0.4);
  position: relative;
  overflow: hidden;
}

.especialidade-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.especialidade-btn:hover::before {
  left: 100%;
}

.especialidade-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(123, 202, 233, 0.6);
}

/* INDICADORES DO CARROSSEL - ATUALIZADO */
.carrossel-indicadores {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carrossel-indicador {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bdc3c7;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carrossel-indicador::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.carrossel-indicador.active {
  background: linear-gradient(135deg, rgb(123, 202, 233), rgb(9, 126, 141));
  transform: scale(1.3);
  border-color: white;
  box-shadow: 0 4px 15px rgba(123, 202, 233, 0.5);
}

.carrossel-indicador.active::before {
  width: 6px;
  height: 6px;
}

.carrossel-indicador:hover {
  transform: scale(1.2);
  background: rgb(123, 202, 233);
}

/* GALERIA SOBREPOSTA - MODIFICADA COM MARGEM DE 5% */
.galeria-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.galeria-overlay.active {
  display: flex;
  opacity: 1;
}

.galeria-container {
  background: white;
  border-radius: 20px;
  width: 95%;
  max-width: 1100px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.galeria-overlay.active .galeria-container {
  transform: translateY(0);
}

/* CABEÇALHO DA GALERIA */
.galeria-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.galeria-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: white;
  text-align: left;
  border-bottom: none;
}

.galeria-fechar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.galeria-fechar:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* CONTEÚDO DA GALERIA - COM MARGEM DE 5% */
.galeria-conteudo {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* LADO ESQUERDO - IMAGEM */
.galeria-imagem {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  padding: 30px;
  min-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.imagem-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
}

.galeria-imagem img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  width: auto;
  height: auto;
}

/* LADO DIREITO - TEXTO COM 5% DE MARGEM À DIREITA */
.galeria-texto {
  flex: 0 0 60%;
  padding: 30px 30px 30px 30px;
  padding-right: calc(30px + 5%);
  overflow-y: auto;
  max-height: calc(85vh - 140px);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

.galeria-titulo-principal {
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-size: 1.8rem;
  padding-bottom: 15px;
  border-bottom: 3px solid #7bcaef;
  width: 100%;
  box-sizing: border-box;
}

.galeria-descricao {
  color: #5d6d7e;
  line-height: 1.7;
  font-size: 1.05rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.galeria-descricao p {
  margin-bottom: 20px;
  text-align: justify;
  width: 100%;
}

.galeria-descricao ul {
  margin: 20px 0;
  padding-left: 25px;
  width: 100%;
  box-sizing: border-box;
}

.galeria-descricao li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 10px;
  width: 100%;
  box-sizing: border-box;
}

.galeria-descricao li::before {
  content: "▸";
  color: #7bcaef;
  position: absolute;
  left: -15px;
  font-weight: bold;
}

/* FOOTER DA GALERIA */
.galeria-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.galeria-btn-contato {
  background: linear-gradient(135deg, #7bcaef, #097e8d);
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.galeria-btn-contato:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
}

.galeria-btn-contato i {
  font-size: 1.1rem;
}

/* ===== TÍTULO "NOSSA ESTRUTURA" RESPONSIVO ===== */
.section-titulo.estrutura-titulo {
  color: #2c3e50;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(123, 202, 233, 0.15),
    rgba(9, 126, 141, 0.15)
  );
  display: inline-block;
  border-radius: 5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(123, 202, 233, 0.3);
  width: 90%;
  max-width: 1200px;
  padding: clamp(15px, 3vw, 30px) clamp(20px, 4vw, 60px);
  margin-top: 20px;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
}

/* SUBTÍTULO RESPONSIVO */
.text-content.estrutura-subtitulo {
  color: #5d6d7e;
  font-size: clamp(1rem, 3vw, 1.4rem);
  text-align: center;
  max-width: 90%;
  margin: 0 auto clamp(40px, 6vw, 80px);
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ===== ESTRUTURA MOBILE FIRST ===== */
.estrutura-section {
  position: relative;
  overflow: hidden;
}

/* CONTEÚDO PRINCIPAL - MOBILE: COLUNA, DESKTOP: 50% CADA */
.estrutura-conteudo {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* LADO ESQUERDO - CARDS (50%) */
.estrutura-texto {
  width: 100%;
}

/* CARACTERÍSTICAS - SEMPRE 2 POR LINHA */
.estrutura-caracteristicas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.caracteristica-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.caracteristica-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #7bcaef, #097e8d);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.caracteristica-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(123, 202, 233, 0.3);
}

.caracteristica-item:hover::before {
  opacity: 1;
}

.caracteristica-item i {
  font-size: 1.5rem;
  color: #7bcaef;
  background: rgba(123, 202, 233, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.caracteristica-item:hover i {
  background: rgba(123, 202, 233, 0.2);
  transform: scale(1.1);
}

.caracteristica-item h4 {
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.caracteristica-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.estrutura-chamada {
  background: linear-gradient(
    135deg,
    rgba(123, 202, 233, 0.1),
    rgba(9, 126, 141, 0.1)
  );
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #7bcaef;
  font-weight: 500;
  color: #2c3e50;
  margin-top: 30px !important;
  position: relative;
  overflow: hidden;
}

/* LADO DIREITO - GALERIA (50%) */
.estrutura-imagem-container {
  position: relative;
  width: 100%;
}

.estrutura-imagem-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.estrutura-imagem-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.estrutura-imagem-principal {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.estrutura-imagem-wrapper:hover .estrutura-imagem-principal {
  transform: scale(1.05);
}

/* OVERLAY E BOTÃO */
.estrutura-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  padding: 40px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.btn-veja-mais {
  background: linear-gradient(135deg, #7bcaef, #097e8d);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-veja-mais::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  z-index: -1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(123, 202, 233, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
  }
}

.btn-veja-mais:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(123, 202, 233, 0.6);
  animation: none;
}

.btn-veja-mais:hover::before {
  left: 100%;
}

.btn-veja-mais i {
  font-size: 1.2rem;
}

.estrutura-info {
  margin-top: 15px;
  text-align: center;
  background: rgba(123, 202, 233, 0.05);
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed rgba(123, 202, 233, 0.3);
}

.estrutura-info p {
  color: #5d6d7e;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.estrutura-info i {
  color: #7bcaef;
}

/* RODAPÉ */
.footer {
  background: #232222;
  color: #ccc;
  padding: 40px 0 10px;
  font-family: Arial, sans-serif;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 260px;
  margin: 15px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-section p {
  line-height: 1.5;
  color: #ccc;
}

.footer-section p > a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.social a {
  font-size: 24px;
  margin-right: 15px;
  color: #ccc;
  transition: 0.3s;
}

.social a:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* ANIMAÇÕES */
.especialidade-item {
  transition: all 0.6s ease;
}

.especialidade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SEÇÃO DE CONVÊNIOS - CORREÇÃO DEFINITIVA */
.convenios-section {
  overflow: hidden;
  position: relative;
  background: transparent;
  width: 100%;
  max-width: 100%;
}

.convenios-section .section-titulo {
  margin-bottom: 10px;
  font-size: 2.5rem;
  color: #333;
  text-align: center;
}

.convenios-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.convenios-track {
  display: flex;
  gap: 10px;
  animation: scrollConvenios 40s linear infinite;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.convenios-track:hover {
  animation-play-state: paused;
}

/* ITENS DO CARROSSEL DE CONVÊNIOS */
.convenio-item {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.convenio-imagem {
  width: 150px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.convenio-imagem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.convenio-item:hover .convenio-imagem {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.convenio-item:hover .convenio-imagem::before {
  opacity: 0.05;
}

.convenio-imagem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.convenio-item:hover .convenio-imagem img {
  transform: scale(1.02);
}

/* ANIMAÇÃO DO CARROSSEL - AJUSTADA PARA MOBILE */
@keyframes scrollConvenios {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 9));
  }
}

/* ===== RESPONSIVIDADE ESPECÍFICA PARA O TÍTULO ===== */

/* Para telas muito pequenas (mobile) */
@media screen and (max-width: 480px) {
  .section-titulo.estrutura-titulo {
    width: 95%;
    padding: 15px 20px;
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 15px;
    border-width: 1px;
  }

  .text-content.estrutura-subtitulo {
    padding: 0 10px;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  @keyframes scrollConvenios {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-170px * 9));
    }
  }

  .convenio-imagem {
    width: 100px;
    height: 60px;
  }
}

/* Para tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .section-titulo.estrutura-titulo {
    width: 85%;
    padding: 20px 30px;
    font-size: 2.2rem;
    margin-top: 15px;
    margin-bottom: 20px;
  }

  .text-content.estrutura-subtitulo {
    padding: 0 20px;
    margin-bottom: 50px;
  }

  @keyframes scrollConvenios {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200px * 9));
    }
  }

  .convenio-imagem {
    width: 120px;
    height: 70px;
  }
}

/* Para telas médias */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .section-titulo.estrutura-titulo {
    width: 80%;
    padding: 25px 40px;
    font-size: 2.5rem;
  }

  .text-content.estrutura-subtitulo {
    max-width: 80%;
    margin-bottom: 60px;
  }
}

/* Para telas grandes */
@media screen and (min-width: 1025px) {
  .section-titulo.estrutura-titulo {
    width: 85%;
    padding: 30px 50px;
    font-size: 2.8rem;
  }
}

/* ===== RESPONSIVIDADE - TABLET ===== */
@media screen and (min-width: 768px) {
  .estrutura-section {
    padding: 100px 0;
  }

  .estrutura-conteudo {
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
  }

  /* DESKTOP: 50% CADA LADO */
  .estrutura-texto {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  .estrutura-imagem-container {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .estrutura-imagem-principal {
    height: 350px;
  }

  .caracteristica-item {
    padding: 25px;
  }
}

/* ===== RESPONSIVIDADE - DESKTOP ===== */
@media screen and (min-width: 992px) {
  .text-content.estrutura-subtitulo {
    max-width: 800px;
  }

  .estrutura-conteudo {
    gap: 60px;
  }

  /* GARANTINDO 50% EXATO EM DESKTOP */
  .estrutura-texto {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .estrutura-imagem-container {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .caracteristica-item {
    padding: 30px;
  }

  .caracteristica-item i {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .estrutura-imagem-principal {
    height: 400px;
  }

  .btn-veja-mais {
    padding: 16px 35px;
    font-size: 1.1rem;
  }
}

/* ===== RESPONSIVIDADE - MOBILE PEQUENO ===== */
@media screen and (max-width: 576px) {
  .estrutura-section {
    padding: 60px 0;
  }

  /* MOBILE: COLUNA COMPLETA */
  .estrutura-texto {
    width: 100%;
    max-width: 100%;
  }

  .estrutura-imagem-container {
    width: 100%;
    max-width: 100%;
  }

  /* MANTÉM 2 CARDS POR LINHA EM MOBILE */
  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .caracteristica-item {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .caracteristica-item i {
    margin-bottom: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .caracteristica-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .caracteristica-item p {
    font-size: 0.85rem;
  }

  .estrutura-imagem-principal {
    height: 250px;
  }

  .estrutura-overlay {
    padding: 30px 15px 15px;
  }

  .btn-veja-mais {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .estrutura-info {
    padding: 10px;
  }

  .estrutura-info p {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

/* MOBILE MUITO PEQUENO - ajuste para 2 cards */
@media screen and (max-width: 380px) {
  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .caracteristica-item {
    padding: 12px;
  }

  .caracteristica-item i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .caracteristica-item h4 {
    font-size: 0.9rem;
  }

  .caracteristica-item p {
    font-size: 0.8rem;
  }
}

/* RESPONSIVIDADE GERAL */
@media screen and (max-width: 1600px) {
  .especialidade-item {
    margin: 0 12px;
    min-height: 500px;
    padding: 30px 25px;
  }
}

@media screen and (max-width: 1400px) {
  .especialidade-item {
    margin: 0 10px;
    min-height: 480px;
    padding: 28px 22px;
  }

  .especialidade-imagem {
    width: 230px;
    height: 230px;
  }
}

@media screen and (max-width: 1200px) {
  .especialidade-item {
    flex: 0 0 calc(50% - 30px);
    margin: 0 15px;
    min-height: 520px;
  }

  .especialidades-section .section-titulo {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 992px) {
  .especialidades-section {
    padding: 10px 0;
  }

  .especialidades-section .section-titulo {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .especialidade-item {
    flex: 0 0 calc(50% - 30px);
    min-height: 500px;
    padding: 25px 20px;
    margin: 0 12px;
  }

  .especialidade-imagem {
    width: 200px;
    height: 200px;
    margin-bottom: 25px;
  }

  .especialidade-conteudo h3 {
    font-size: 1.3rem;
  }
}

/* ===== ATUALIZAÇÃO: IMAGEM INICIAL REDUZIDA EM 25% NO MOBILE ===== */
/* ===== E IMAGEM BEM-VIND.PNG OCULTADA EM MOBILE ===== */
@media screen and (max-width: 800px) {
  .img-inicial {
    height: 337.5px;
  }

  /* OCULTAR A IMAGEM BEM-VIND.PNG EM MOBILE */
  .conteudo-direita {
    display: none;
  }

  /* Ajustar o layout da seção para ocupar toda a largura */
  .secao {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* Ajustar o conteúdo esquerdo para ocupar toda a largura */
  .conteudo-esquerda {
    width: 100%;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .nav-header {
    display: flex;
    background: transparent;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-items {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    background: linear-gradient(
      to bottom,
      rgb(123, 202, 233),
      rgb(9, 126, 141)
    );
    width: 100%;
  }

  .navbar.active .menu-items {
    max-height: 500px;
  }

  .navbar a {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.2s;
  }

  .navbar.active .menu-items a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-logo {
    left: 20px;
  }

  .navbar.active .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .navbar.active .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.active .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .especialidade-item {
    flex: 0 0 calc(100% - 30px);
    min-height: 450px;
    margin: 0 15px;
    padding: 30px 25px;
  }

  .especialidade-imagem {
    width: 180px;
    height: 180px;
  }

  .especialidade-conteudo h3 {
    font-size: 1.4rem;
  }

  .especialidade-resumo {
    font-size: 1rem;
  }

  /* Responsividade para convênios */
  .convenios-section {
    padding: 10px 0;
  }

  .convenios-section .section-titulo {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .convenios-track {
    gap: 40px;
    animation: scrollConvenios 35s linear infinite;
  }
}

/* CORREÇÃO DO LOGO PARA MOBILE */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-logo img {
    height: 55px;
    max-width: 160px;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 0 15px;
  }

  .nav-logo img {
    height: 45px;
    max-width: 140px;
  }
}

@media screen and (max-width: 380px) {
  .nav-logo img {
    height: 40px;
    max-width: 120px;
  }
}

@media screen and (max-width: 768px) {
  .especialidade-item {
    flex: 0 0 calc(100% - 30px);
  }

  .galeria-overlay .galeria-conteudo {
    flex-direction: column;
    overflow: auto;
  }

  .galeria-overlay .galeria-imagem,
  .galeria-overlay .galeria-texto {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .galeria-overlay .galeria-imagem {
    padding: 20px;
  }

  .galeria-overlay .imagem-container {
    max-height: 250px;
    max-width: 100%;
  }

  .galeria-overlay .galeria-imagem img {
    max-height: 200px;
    max-width: 100%;
  }

  .galeria-overlay .galeria-texto {
    max-height: 400px;
    padding: 20px;
    padding-right: calc(20px + 5%);
    width: 100%;
  }
}

/* ===== AJUSTES ADICIONAIS PARA IMAGEM INICIAL EM TELAS MENORES ===== */
@media screen and (max-width: 576px) {
  .img-inicial {
    height: 300px;
  }

  .especialidades-section {
    padding: 50px 0;
  }

  .especialidades-section .section-titulo {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .especialidade-item {
    padding: 25px 20px;
    min-height: 420px;
    margin: 0 15px;
  }

  .especialidade-imagem {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
  }

  .especialidade-conteudo h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .especialidade-resumo {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .especialidade-btn {
    padding: 14px 28px;
    font-size: 1rem;
    max-width: 200px;
  }

  .carrossel-indicadores {
    margin-top: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Responsividade para convênios */
  .convenios-section {
    padding: 8px 0;
  }

  .convenios-section .section-titulo {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .convenios-track {
    gap: 30px;
    animation: scrollConvenios 30s linear infinite;
  }
}

/* ===== IMAGEM INICIAL PARA TELAS MUITO PEQUENAS ===== */
@media screen and (max-width: 480px) {
  .img-inicial {
    height: 280px;
  }
}

@media screen and (min-width: 801px) {
  .nav-header {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .menu-items {
    display: flex !important;
    max-height: none !important;
    position: static !important;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    left: 0;
    transform: none;
  }

  .navbar a {
    opacity: 1 !important;
    transform: none !important;
    text-align: center;
  }

  .nav-logo {
    display: flex !important;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-logo img {
    height: 70px;
  }
}

@media screen and (min-width: 801px) {
  .nav-logo {
    display: flex !important;
    position: relative;
  }

  /* Garantir que a imagem seja exibida em desktop */
  .conteudo-direita {
    display: flex !important;
  }
}

/* Estados de Foco para Acessibilidade */
.btn-veja-mais:focus,
.carrossel-indicador:focus,
.galeria-nav:focus,
.galeria-indicador:focus,
.galeria-fechar:focus {
  outline: 3px solid rgba(123, 202, 233, 0.8);
  outline-offset: 2px;
}

/* Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
  .caracteristica-item,
  .estrutura-imagem-wrapper,
  .btn-veja-mais,
  .especialidade-item,
  .feature,
  .convenios-track,
  .galeria-container,
  .galeria-nav {
    animation: none;
    transition: none;
  }
}

/* CSS para divisor animado */
.divider-animated {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7,
    #ff6b6b
  );
  background-size: 300% 100%;
  animation: gradientMove 5s ease infinite;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ESTILIZAÇÃO HARMONIZADA PARA O LADO ESQUERDO */
.conteudo-esquerda {
  max-width: 600px;
  padding: 2rem;
}

.conteudo-esquerda h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #097e8d;
  position: relative;
  padding-bottom: 1rem;
}

.conteudo-esquerda h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: #7bcaef;
  border-radius: 2px;
}

.conteudo-esquerda p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.conteudo-esquerda p strong {
  font-weight: 600;
  color: #097e8d;
  background: rgba(123, 202, 239, 0.15);
  padding: 0 4px;
}

.conteudo-esquerda p:last-of-type {
  font-size: 1.2rem;
  background: #e6f3f9;
  padding: 1.2rem;
  border-radius: 12px;
  border-left: 4px solid #7bcaef;
  margin: 1.5rem 0;
  font-weight: 400;
  color: #1e2b3a;
  box-shadow: 0 4px 6px rgba(9, 126, 141, 0.1);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .conteudo-esquerda h1 {
    font-size: 2rem;
  }

  .conteudo-esquerda p {
    font-size: 1rem;
  }

  .conteudo-esquerda {
    padding: 1rem;
  }
}

/* CONTEÚDO PRINCIPAL */
.content {
  padding: 20px;
  max-width: 1400px !important;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section-titulo {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
  font-size: 2rem;
  position: relative;
}

.text-content {
  text-align: center;
  margin-bottom: 10px;
}

.text-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.saiba-button {
  background: linear-gradient(to right, rgb(123, 202, 233), rgb(9, 126, 141));
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.saiba-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* lado esquerdo */
.conteudo-esquerda {
  flex: 1;
}

/* lado direito (imagem) */
.conteudo-direita {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: 3%;
}

.conteudo-direita img {
  width: 100%;
  max-width: 90%;
  border-radius: 40px;
  height: auto;
  object-fit: cover;
}

/* IMAGEM INICIAL - ATUALIZADA PARA SER RESPONSIVA */
.img-inicial {
  width: 100%;
  height: 450px; /* Altura padrão para desktop */
  overflow: hidden;
  position: relative;
}

.img-inicial .image-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-inicial .image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.feature p {
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* SEÇÃO DE ESPECIALIDADES - LARGURA TOTAL */
.especialidades-section {
  width: 100%;
  max-width: 100%;
  padding-bottom: 10px;
  background: linear-gradient(135deg, #f8fdff 0%, #e8f7ff 100%);
  overflow: hidden;
}

.especialidades-section .section-titulo {
  margin-bottom: 10px;
  font-size: 2.8rem;
  color: #333;
  text-align: center;
}

/* CARROSSEL MODIFICADO - 3 ITENS VISÍVEIS, SCROLL SUAVE */
.carrossel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.carrossel-wrapper {
  overflow: hidden;
  margin: 0;
  padding: 30px 0;
  width: 100%;
}

.especialidades-carrossel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0;
  will-change: transform;
}

/* ITENS DO CARROSSEL - 3 VISÍVEIS */
.especialidade-item {
  flex: 0 0 calc(33.333% - 30px);
  background: white;
  border-radius: 25px;
  padding: 35px 30px;
  transition: all 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0 15px;
  min-height: 520px;
  border: 2px solid #f0f8ff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

.especialidade-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, rgb(123, 202, 233), rgb(9, 126, 141));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.especialidade-item:hover::before {
  transform: scaleX(1);
}

.especialidade-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgb(123, 202, 233);
}

.especialidade-imagem {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
  position: relative;
  z-index: 2;
}

.especialidade-item:hover .especialidade-imagem {
  transform: scale(1.1);
  border-color: rgb(123, 202, 233);
  box-shadow: 0 18px 40px rgba(123, 202, 233, 0.4);
}

.especialidade-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(1.05);
}

.especialidade-item:hover .especialidade-imagem img {
  transform: scale(1.15);
}

.especialidade-conteudo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.especialidade-conteudo h3 {
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.especialidade-resumo {
  color: #5d6d7e;
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.05rem;
  text-align: center;
  flex: 1;
  font-weight: 500;
}

.especialidade-btn {
  background: linear-gradient(135deg, rgb(123, 202, 233), rgb(9, 126, 141));
  color: white;
  border: none;
  padding: 16px 35px;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
  max-width: 220px;
  margin-top: auto;
  box-shadow: 0 6px 20px rgba(123, 202, 233, 0.4);
  position: relative;
  overflow: hidden;
}

.especialidade-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.especialidade-btn:hover::before {
  left: 100%;
}

.especialidade-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(123, 202, 233, 0.6);
}

/* INDICADORES DO CARROSSEL - ATUALIZADO */
.carrossel-indicadores {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carrossel-indicador {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bdc3c7;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carrossel-indicador::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.carrossel-indicador.active {
  background: linear-gradient(135deg, rgb(123, 202, 233), rgb(9, 126, 141));
  transform: scale(1.3);
  border-color: white;
  box-shadow: 0 4px 15px rgba(123, 202, 233, 0.5);
}

.carrossel-indicador.active::before {
  width: 6px;
  height: 6px;
}

.carrossel-indicador:hover {
  transform: scale(1.2);
  background: rgb(123, 202, 233);
}

/* GALERIA SOBREPOSTA - MODIFICADA COM MARGEM DE 5% */
.galeria-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.galeria-overlay.active {
  display: flex;
  opacity: 1;
}

.galeria-container {
  background: white;
  border-radius: 20px;
  width: 95%;
  max-width: 1100px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.galeria-overlay.active .galeria-container {
  transform: translateY(0);
}

/* CABEÇALHO DA GALERIA */
.galeria-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.galeria-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: white;
  text-align: left;
  border-bottom: none;
}

.galeria-fechar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.galeria-fechar:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* CONTEÚDO DA GALERIA - COM MARGEM DE 5% */
.galeria-conteudo {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* LADO ESQUERDO - IMAGEM */
.galeria-imagem {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  padding: 30px;
  min-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.imagem-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
}

.galeria-imagem img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  width: auto;
  height: auto;
}

/* LADO DIREITO - TEXTO COM 5% DE MARGEM À DIREITA */
.galeria-texto {
  flex: 0 0 60%;
  padding: 30px 30px 30px 30px;
  padding-right: calc(30px + 5%);
  overflow-y: auto;
  max-height: calc(85vh - 140px);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

.galeria-titulo-principal {
  color: #2c3e50;
  margin: 0 0 20px 0;
  font-size: 1.8rem;
  padding-bottom: 15px;
  border-bottom: 3px solid #7bcaef;
  width: 100%;
  box-sizing: border-box;
}

.galeria-descricao {
  color: #5d6d7e;
  line-height: 1.7;
  font-size: 1.05rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.galeria-descricao p {
  margin-bottom: 20px;
  text-align: justify;
  width: 100%;
}

.galeria-descricao ul {
  margin: 20px 0;
  padding-left: 25px;
  width: 100%;
  box-sizing: border-box;
}

.galeria-descricao li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 10px;
  width: 100%;
  box-sizing: border-box;
}

.galeria-descricao li::before {
  content: "▸";
  color: #7bcaef;
  position: absolute;
  left: -15px;
  font-weight: bold;
}

/* FOOTER DA GALERIA */
.galeria-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.galeria-btn-contato {
  background: linear-gradient(135deg, #7bcaef, #097e8d);
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.galeria-btn-contato:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
}

.galeria-btn-contato i {
  font-size: 1.1rem;
}

/* ===== TÍTULO "NOSSA ESTRUTURA" RESPONSIVO ===== */
.section-titulo.estrutura-titulo {
  color: #2c3e50;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(123, 202, 233, 0.15),
    rgba(9, 126, 141, 0.15)
  );
  display: inline-block;
  border-radius: 5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(123, 202, 233, 0.3);
  width: 90%;
  max-width: 1200px;
  padding: clamp(15px, 3vw, 30px) clamp(20px, 4vw, 60px);
  margin-top: 20px;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
}

/* SUBTÍTULO RESPONSIVO */
.text-content.estrutura-subtitulo {
  color: #5d6d7e;
  font-size: clamp(1rem, 3vw, 1.4rem);
  text-align: center;
  max-width: 90%;
  margin: 0 auto clamp(40px, 6vw, 80px);
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ===== ESTRUTURA MOBILE FIRST ===== */
.estrutura-section {
  position: relative;
  overflow: hidden;
}

/* CONTEÚDO PRINCIPAL - MOBILE: COLUNA, DESKTOP: 50% CADA */
.estrutura-conteudo {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* LADO ESQUERDO - CARDS (50%) */
.estrutura-texto {
  width: 100%;
}

/* CARACTERÍSTICAS - SEMPRE 2 POR LINHA */
.estrutura-caracteristicas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.caracteristica-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.caracteristica-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #7bcaef, #097e8d);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.caracteristica-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(123, 202, 233, 0.3);
}

.caracteristica-item:hover::before {
  opacity: 1;
}

.caracteristica-item i {
  font-size: 1.5rem;
  color: #7bcaef;
  background: rgba(123, 202, 233, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.caracteristica-item:hover i {
  background: rgba(123, 202, 233, 0.2);
  transform: scale(1.1);
}

.caracteristica-item h4 {
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.caracteristica-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.estrutura-chamada {
  background: linear-gradient(
    135deg,
    rgba(123, 202, 233, 0.1),
    rgba(9, 126, 141, 0.1)
  );
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #7bcaef;
  font-weight: 500;
  color: #2c3e50;
  margin-top: 30px !important;
  position: relative;
  overflow: hidden;
}

/* LADO DIREITO - GALERIA (50%) */
.estrutura-imagem-container {
  position: relative;
  width: 100%;
}

.estrutura-imagem-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.estrutura-imagem-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.estrutura-imagem-principal {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.estrutura-imagem-wrapper:hover .estrutura-imagem-principal {
  transform: scale(1.05);
}

/* OVERLAY E BOTÃO */
.estrutura-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  padding: 40px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.btn-veja-mais {
  background: linear-gradient(135deg, #7bcaef, #097e8d);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-veja-mais::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  z-index: -1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(123, 202, 233, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(123, 202, 233, 0.4);
  }
}

.btn-veja-mais:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(123, 202, 233, 0.6);
  animation: none;
}

.btn-veja-mais:hover::before {
  left: 100%;
}

.btn-veja-mais i {
  font-size: 1.2rem;
}

.estrutura-info {
  margin-top: 15px;
  text-align: center;
  background: rgba(123, 202, 233, 0.05);
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed rgba(123, 202, 233, 0.3);
}

.estrutura-info p {
  color: #5d6d7e;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.estrutura-info i {
  color: #7bcaef;
}

/* RODAPÉ */
.footer {
  background: #232222;
  color: #ccc;
  padding: 40px 0 10px;
  font-family: Arial, sans-serif;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 260px;
  margin: 15px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-section p {
  line-height: 1.5;
  color: #ccc;
}

.footer-section p > a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.social a {
  font-size: 24px;
  margin-right: 15px;
  color: #ccc;
  transition: 0.3s;
}

.social a:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* ANIMAÇÕES */
.especialidade-item {
  transition: all 0.6s ease;
}

.especialidade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SEÇÃO DE CONVÊNIOS */
.convenios-section {
  overflow: hidden;
  position: relative;
  background: transparent;
}

.convenios-section .section-titulo {
  margin-bottom: 10px;
  font-size: 2.5rem;
  color: #333;
  text-align: center;
}

.convenios-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.convenios-track {
  display: flex;
  gap: 10px;
  animation: scrollConvenios 40s linear infinite;
  width: max-content;
  align-items: center;
}

.convenios-track:hover {
  animation-play-state: paused;
}

/* ITENS DO CARROSSEL DE CONVÊNIOS */
.convenio-item {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.convenio-imagem {
  width: 150px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.convenio-imagem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #7bcaef 0%, #097e8d 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.convenio-item:hover .convenio-imagem {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.convenio-item:hover .convenio-imagem::before {
  opacity: 0.05;
}

.convenio-imagem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.convenio-item:hover .convenio-imagem img {
  transform: scale(1.02);
}

/* ANIMAÇÃO DO CARROSSEL */
@keyframes scrollConvenios {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 9));
  }
}

/* ===== RESPONSIVIDADE ESPECÍFICA PARA O TÍTULO ===== */

/* Para telas muito pequenas (mobile) */
@media screen and (max-width: 480px) {
  .section-titulo.estrutura-titulo {
    width: 95%;
    padding: 15px 20px;
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 15px;
    border-width: 1px;
  }

  .text-content.estrutura-subtitulo {
    padding: 0 10px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
}

/* Para tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .section-titulo.estrutura-titulo {
    width: 85%;
    padding: 20px 30px;
    font-size: 2.2rem;
    margin-top: 15px;
    margin-bottom: 20px;
  }

  .text-content.estrutura-subtitulo {
    padding: 0 20px;
    margin-bottom: 50px;
  }
}

/* Para telas médias */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .section-titulo.estrutura-titulo {
    width: 80%;
    padding: 25px 40px;
    font-size: 2.5rem;
  }

  .text-content.estrutura-subtitulo {
    max-width: 80%;
    margin-bottom: 60px;
  }
}

/* Para telas grandes */
@media screen and (min-width: 1025px) {
  .section-titulo.estrutura-titulo {
    width: 85%;
    padding: 30px 50px;
    font-size: 2.8rem;
  }
}

/* ===== RESPONSIVIDADE - TABLET ===== */
@media screen and (min-width: 768px) {
  .estrutura-section {
    padding: 100px 0;
  }

  .estrutura-conteudo {
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
  }

  /* DESKTOP: 50% CADA LADO */
  .estrutura-texto {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  .estrutura-imagem-container {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .estrutura-imagem-principal {
    height: 350px;
  }

  .caracteristica-item {
    padding: 25px;
  }
}

/* ===== RESPONSIVIDADE - DESKTOP ===== */
@media screen and (min-width: 992px) {
  .text-content.estrutura-subtitulo {
    max-width: 800px;
  }

  .estrutura-conteudo {
    gap: 60px;
  }

  /* GARANTINDO 50% EXATO EM DESKTOP */
  .estrutura-texto {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .estrutura-imagem-container {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .caracteristica-item {
    padding: 30px;
  }

  .caracteristica-item i {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .estrutura-imagem-principal {
    height: 400px;
  }

  .btn-veja-mais {
    padding: 16px 35px;
    font-size: 1.1rem;
  }
}

/* ===== RESPONSIVIDADE - MOBILE PEQUENO ===== */
@media screen and (max-width: 576px) {
  .estrutura-section {
    padding: 60px 0;
  }

  /* MOBILE: COLUNA COMPLETA */
  .estrutura-texto {
    width: 100%;
    max-width: 100%;
  }

  .estrutura-imagem-container {
    width: 100%;
    max-width: 100%;
  }

  /* MANTÉM 2 CARDS POR LINHA EM MOBILE */
  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .caracteristica-item {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .caracteristica-item i {
    margin-bottom: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .caracteristica-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .caracteristica-item p {
    font-size: 0.85rem;
  }

  .estrutura-imagem-principal {
    height: 250px;
  }

  .estrutura-overlay {
    padding: 30px 15px 15px;
  }

  .btn-veja-mais {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .estrutura-info {
    padding: 10px;
  }

  .estrutura-info p {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

/* MOBILE MUITO PEQUENO - ajuste para 2 cards */
@media screen and (max-width: 380px) {
  .estrutura-caracteristicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .caracteristica-item {
    padding: 12px;
  }

  .caracteristica-item i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .caracteristica-item h4 {
    font-size: 0.9rem;
  }

  .caracteristica-item p {
    font-size: 0.8rem;
  }
}

/* RESPONSIVIDADE GERAL */
@media screen and (max-width: 1600px) {
  .especialidade-item {
    margin: 0 12px;
    min-height: 500px;
    padding: 30px 25px;
  }
}

@media screen and (max-width: 1400px) {
  .especialidade-item {
    margin: 0 10px;
    min-height: 480px;
    padding: 28px 22px;
  }

  .especialidade-imagem {
    width: 230px;
    height: 230px;
  }
}

@media screen and (max-width: 1200px) {
  .especialidade-item {
    flex: 0 0 calc(50% - 30px);
    margin: 0 15px;
    min-height: 520px;
  }

  .especialidades-section .section-titulo {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 992px) {
  .especialidades-section {
    padding: 10px 0;
  }

  .especialidades-section .section-titulo {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .especialidade-item {
    flex: 0 0 calc(50% - 30px);
    min-height: 500px;
    padding: 25px 20px;
    margin: 0 12px;
  }

  .especialidade-imagem {
    width: 200px;
    height: 200px;
    margin-bottom: 25px;
  }

  .especialidade-conteudo h3 {
    font-size: 1.3rem;
  }
}

/* ===== ATUALIZAÇÃO: IMAGEM INICIAL REDUZIDA EM 25% NO MOBILE ===== */
/* ===== E IMAGEM BEM-VIND.PNG OCULTADA EM MOBILE ===== */
@media screen and (max-width: 800px) {
  .img-inicial {
    height: 337.5px; /* 25% menos que 450px (450 * 0.75 = 337.5) */
  }

  /* OCULTAR A IMAGEM BEM-VIND.PNG EM MOBILE */
  .conteudo-direita {
    display: none; /* Oculta completamente a imagem em mobile */
  }

  /* Ajustar o layout da seção para ocupar toda a largura */
  .secao {
    flex-direction: column;
    text-align: center;
    gap: 20px; /* Reduzir o gap quando a imagem não está visível */
  }

  /* Ajustar o conteúdo esquerdo para ocupar toda a largura */
  .conteudo-esquerda {
    width: 100%;
    text-align: center;
  }

  .nav-header {
    display: flex;
    background: transparent;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-items {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    background: linear-gradient(
      to bottom,
      rgb(123, 202, 233),
      rgb(9, 126, 141)
    );
    width: 100%;
  }

  .navbar.active .menu-items {
    max-height: 500px;
  }

  .navbar a {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.2s;
  }

  .navbar.active .menu-items a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-logo {
    left: 20px;
  }

  .nav-logo img {
    height: 70px;
  }

  .navbar.active .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .navbar.active .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.active .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .especialidade-item {
    flex: 0 0 calc(100% - 30px);
    min-height: 450px;
    margin: 0 15px;
    padding: 30px 25px;
  }

  .especialidade-imagem {
    width: 180px;
    height: 180px;
  }

  .especialidade-conteudo h3 {
    font-size: 1.4rem;
  }

  .especialidade-resumo {
    font-size: 1rem;
  }

  /* Responsividade para convênios */
  .convenios-section {
    padding: 10px 0;
  }

  .convenios-section .section-titulo {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .convenios-track {
    gap: 40px;
    animation: scrollConvenios 35s linear infinite;
  }

  .convenio-imagem {
    width: 160px;
    height: 80px;
  }

  @keyframes scrollConvenios {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200px * 9));
    }
  }
}

@media screen and (max-width: 768px) {
  .especialidade-item {
    flex: 0 0 calc(100% - 30px);
  }

  .galeria-overlay .galeria-conteudo {
    flex-direction: column;
    overflow: auto;
  }

  .galeria-overlay .galeria-imagem,
  .galeria-overlay .galeria-texto {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .galeria-overlay .galeria-imagem {
    padding: 20px;
  }

  .galeria-overlay .imagem-container {
    max-height: 250px;
    max-width: 100%;
  }

  .galeria-overlay .galeria-imagem img {
    max-height: 200px;
    max-width: 100%;
  }

  .galeria-overlay .galeria-texto {
    max-height: 400px;
    padding: 20px;
    padding-right: calc(20px + 5%);
    width: 100%;
  }
}

/* ===== AJUSTES ADICIONAIS PARA IMAGEM INICIAL EM TELAS MENORES ===== */
@media screen and (max-width: 576px) {
  .img-inicial {
    height: 300px; /* Redução adicional para telas muito pequenas */
  }

  .especialidades-section {
    padding: 50px 0;
  }

  .especialidades-section .section-titulo {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .especialidade-item {
    padding: 25px 20px;
    min-height: 420px;
    margin: 0 15px;
  }

  .especialidade-imagem {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
  }

  .especialidade-conteudo h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .especialidade-resumo {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .especialidade-btn {
    padding: 14px 28px;
    font-size: 1rem;
    max-width: 200px;
  }

  .carrossel-indicadores {
    margin-top: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Responsividade para convênios */
  .convenios-section {
    padding: 8px 0;
  }

  .convenios-section .section-titulo {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .convenios-track {
    gap: 30px;
    animation: scrollConvenios 30s linear infinite;
  }

  .convenio-imagem {
    width: 140px;
    height: 70px;
    padding: 8px;
  }

  @keyframes scrollConvenios {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-170px * 9));
    }
  }
}

/* ===== IMAGEM INICIAL PARA TELAS MUITO PEQUENAS ===== */
@media screen and (max-width: 480px) {
  .img-inicial {
    height: 280px; /* Mais compacta para telas muito pequenas */
  }
}

@media screen and (min-width: 801px) {
  .nav-header {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .menu-items {
    display: flex !important;
    max-height: none !important;
    position: static !important;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    left: 0;
    transform: none;
  }

  .navbar a {
    opacity: 1 !important;
    transform: none !important;
    text-align: center;
  }

  .nav-logo {
    display: flex !important;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-logo img {
    height: 75px;
  }
}

@media screen and (min-width: 801px) {
  .nav-logo {
    display: flex !important;
    position: relative;
    /*left: calc(50% - 15% - var(--menu-half-width, 0px));*/
  }

  /* Garantir que a imagem seja exibida em desktop */
  .conteudo-direita {
    display: flex !important;
  }
}

/* Estados de Foco para Acessibilidade */
.btn-veja-mais:focus,
.carrossel-indicador:focus,
.galeria-nav:focus,
.galeria-indicador:focus,
.galeria-fechar:focus {
  outline: 3px solid rgba(123, 202, 233, 0.8);
  outline-offset: 2px;
}

/* Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
  .caracteristica-item,
  .estrutura-imagem-wrapper,
  .btn-veja-mais,
  .especialidade-item,
  .feature,
  .convenios-track,
  .galeria-container,
  .galeria-nav {
    animation: none;
    transition: none;
  }
}

/* CSS para divisor animado */
.divider-animated {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7,
    #ff6b6b
  );
  background-size: 300% 100%;
  animation: gradientMove 5s ease infinite;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ESTILIZAÇÃO HARMONIZADA PARA O LADO ESQUERDO */

.conteudo-esquerda {
  max-width: 600px;
  padding: 2rem;
}

.conteudo-esquerda h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #097e8d; /* Verde azulado escuro */
  position: relative;
  padding-bottom: 1rem;
}

.conteudo-esquerda h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: #7bcaef; /* Azul claro */
  border-radius: 2px;
}

.conteudo-esquerda p {
  font-size: 1.1rem;
  text-align: start;
  line-height: 1.6;
  color: #2c3e50; /* Cinza azulado escuro */
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.conteudo-esquerda p strong {
  font-weight: 600;
  color: #097e8d; /* Verde azulado escuro */
  background: rgba(123, 202, 239, 0.15); /* Azul claro transparente */
  padding: 0 4px;
}

.conteudo-esquerda p:last-of-type {
  font-size: 1.2rem;
  background: #e6f3f9; /* Azul bem clarinho */
  padding: 1.2rem;
  border-radius: 12px;
  border-left: 4px solid #7bcaef; /* Azul claro */
  margin: 1.5rem 0;
  font-weight: 400;
  color: #1e2b3a;
  box-shadow: 0 4px 6px rgba(9, 126, 141, 0.1);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .conteudo-esquerda h1 {
    font-size: 2rem;
  }

  .conteudo-esquerda p {
    font-size: 1rem;
  }
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: #128c7e;
}

.whatsapp-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Responsividade */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float img {
        width: 25px;
        height: 25px;
    }
}
