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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #073990;
  color: white;
  padding: 6px 3px;
  animation: fadeInDown 1s ease-in-out;
  flex-wrap: wrap;
}

header img {
  width: 100px;
  height: auto;
}

.texto-header h1 {
  font-size: 40px;
  margin: 0 0 10px 0;
}

.texto-header p {
  font-size: 18px;
  margin: 0;
}

#sobre h2{
  color: #073990;
}


nav {
  background-color: #073990;
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Faz o menu rolar no celular */
@media (max-width: 768px) {
  nav {
    position: relative !important;
    top: auto !important;
  }
}


nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd700;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  padding: 10px;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
  }

  nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background-color: #073990;
  }

  nav a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #fff;
    color: white;
    text-decoration: none;
  }
}



#banner {
  background-image: url("imagens/capa.jpg");
  background-size: cover;     /* cobre todo o espaço */
  background-position: center;/* centraliza */
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh; /* altura da tela inteira (pode ajustar) */
}

@media (max-width: 768px) {
  #banner {
    height: 50vh; /* metade da tela no celular */
  }
}





main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

#medicos {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

#medicos h2 {
  font-size: 2.2em;
  color: #073990;
  margin-bottom: 40px;
  font-weight: 700;
}

.container-medicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.card-medicos {
  background-color: #f3f7fa;
  border: 1px solid #d6e2ee;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 51, 102, 0.08);
  transition: all 0.3s ease-in-out;
}

.card-medicos:hover {
  background-color: #eaf2f9;
  transform: translateY(-4px);
  box-shadow: 0 4px 10px #073990;
}

.card-medicos h3 {
  font-size: 1.1em;
  color: #073990;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-medicos p {
  font-size: 0.95em;
  color: #555;
  margin: 0;
}



#especialidades {
  margin: 80px 0;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

#especialidades h2 {
  color: #073990;
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  animation: slideInDown 1s ease forwards;
}

#especialidades ol {
  list-style-position: inside;
  counter-reset: item;
  padding: 0;
}

#especialidades li {
  background-color: #ffffff;
  margin: 15px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeItem 0.8s ease forwards;
  opacity: 0;
}

#especialidades li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


#especialidades li strong {
  color: #073990;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeItem {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}

form input,
form select,
form textarea,
form button {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: #073990;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #073990;
  /* azul mais escuro */
  box-shadow: 0 0 10px #073990;
  transform: translateY(-2px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#contato p {
  font-size: 15px;
  margin-bottom: 8px;
}

#contato h2 {
  color: #073990;;
}

footer {
  background-color: #073990;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  animation: fadeIn 1s ease;
}

/* Responsividade */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .texto-header h1 {
    font-size: 28px;
  }

  .texto-header p {
    font-size: 16px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

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

  main {
    padding: 20px;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#agendamento {
  background-color: #f3f7fa;
  padding: 40px 20px;
  border-radius: 10px;
}

#agendamento h2 {
  color: #073990;
}

 #agendamento form {
  display: flex;

  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

#agendamento form div {
  display: flex;
  align-items: center;
  gap: 10px;
}

#agendamento form i {
  color: #073990;
  min-width: 20px;
}

#agendamento form input,
#agendamento form select,
#agendamento form textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#agendamento form button {
  padding: 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#agendamento form button:hover {
  background-color: #073990;
}



#horarios {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
  
}

#horarios h2 {
  font-size: 2em;
  color: #073990;
  margin-bottom: 30px;
  text-transform: uppercase;
  
}

.tabela-horarios {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.linha-horario {
  background-color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 6px solid #073990;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
  border-radius: 5px;
}





.whatsapp-fixo {
  position: fixed;
  bottom: 20px;
  right: 60px;
  background-color: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: background-color 0.3s;
}



.whatsapp-fixo:hover {
  background-color: #1da851;
}

.whatsapp-message {
  position: fixed;
  bottom: 80px;
  /* fica logo acima do botão */
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: fadeIn 1s ease forwards;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Esconde a mensagem após o tempo */
.whatsapp-message.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Animação de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



#btnTopo {
  position: fixed;
  bottom: 20px;
  right: 10px;
  background: #073990;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  display: none;
  z-index: 999;
}



#convenios {
  padding: 40px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

#convenios h2 {
  color: #073990;
  margin-bottom: 10px;
  font-size: 28px;
}

#convenios p {
  margin-bottom: 20px;
  color: #555;
}

.convenios-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.convenios-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.convenios-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.convenio {
  flex: 0 0 auto;
  width: 120px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.convenio:hover {
  transform: scale(1.05);
}

.convenio img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.convenio p {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Setas */

.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #073990;
  color: #fff;
  border: none;
  font-size: 40px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.seta:hover {
  background-color: #073990;
}

.seta-esquerda {
  left: -40px;
}

.seta-direita {
  right: -40px;
}

/* Responsividade */

@media (max-width: 768px) {
  .convenios-wrapper {
    max-width: 100%;
    padding: 0 20px;
  }

  .seta {
    font-size: 28px;
    padding: 10px;
  }

  .seta-esquerda {
    left: 0;
  }

  .seta-direita {
    right: 0;
  }

  .convenio {
    width: 100px;
  }

  .convenio img {
    width: 60px;
    height: 60px;
  }
}

/* Dicas de Saúde */
.dicas-container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dica {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 10px;
  background-color: #f9f9f9;
  text-align: center;
}

.dica img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.dica h2 {
  color: #073990;
  font-size: 20px;
  margin: 10px 0;
}

.botao-leia {
  display: inline-block;
  margin-top: 10px;
  background-color: #28a745;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}


/* Estilo para página de artigo individual */
.artigo {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: #444;
}

.artigo h1 {
  color: #073990;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 28px;
  text-align: center;
}

.artigo h2 {
  color: #073990;
  margin-bottom: 20px;
  font-weight: 600;
}

.artigo p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #444;
}

.artigo ul {
  margin-left: 20px;
  margin-bottom: 24px;
  padding-left: 16px;
  list-style-type: disc;
  color: #000000;
}

.artigo li {
  margin-bottom: 10px;
  font-size: 15px;
}


/* Botão de voltar */
.botao-voltar {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: #073990;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.botao-voltar:hover {
  background-color: #073990;
}

.capa-artigo {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Trabalhe Conosco */
#trabalhe-conosco {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

#trabalhe-conosco h2,
#trabalhe-conosco h3 {
  color: #073990;
  margin-bottom: 16px;
  font-weight: 600;
}

#trabalhe-conosco p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #444;
}

#trabalhe-conosco ul {
  margin-left: 20px;
  margin-bottom: 24px;
  padding-left: 16px;
  list-style-type: disc;
  color: #101010;
}

#trabalhe-conosco li {
  margin-bottom: 10px;
  font-size: 15px;
}

/*dicas frio*/
.dicas-frio h2 {
 color: #073990;
 font-size: 1.9rem;
}

.dicas-frio h3 {
 color: #073990;
 font-size: 1.7rem;
 margin-top: 15px;
}

.dicas-frio h4 {
 color: #073990;
 font-size: 1.7rem;
 margin-top: 15px;
}

.dicas-frio p {
 color: #000000;
 font-size: 1.0rem;
 margin-bottom: 10px;
 line-height: 1.6;
}

.dicas-frio ul {
  margin-left: 20px;
  margin-bottom: 24px;
  padding-left: 16px;
  list-style-type: disc;
  color: #000000;
}

.dicas-frio li {
  margin-bottom: 10px;
  font-size: 1.0rem;
  line-height: 1.5;
}

.alerta h3 {
 color: #d02520;
 font-size: 1.7rem;
 margin-top: 15px;
}

.alerta p {
 color: #000000;
 font-size: 1.1rem;
 margin-bottom: 10px;
 line-height: 1.6;
}

/* Altera a cor dos links dentro do footer */
footer a {
    color: #fff; /* branco */
    text-decoration: none; /* opcional: remove sublinhado */
}

/* Se quiser efeito de hover */
footer a:hover {
    color: #ffd700; /* dourado, por exemplo */
    text-decoration: underline; /* opcional: adiciona sublinhado ao passar o mouse */
}
