* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  line-height: 1;
  width: 100%;
  height: 110px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  color: #000000;
  background-color: white;
}

.logo img {
  width: 250px;
  transition: opacity 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
  transition: color 0.3s ease;
  color: #000000;
}

nav ul li a:hover {
  color: #4f76bb;
}

.contact-info a:hover {
  color: #4f76bb;
  transition: color 0.3s ease;
}

.dropdown-content {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background-color: white;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transform: translateY(-10px) translateX(0%);
  transition: opacity 0.8s ease, transform 0.3s ease, visibility 0.3s;
  left: -50%;
  top: 125%;
}

.dropdown-content li {
  padding: 12px 16px;
  text-align: left;
}

.dropdown-content li a {
  color: #333;
  display: block;
}

.mobile-only {
  display: block;
}

.dropdown-content li a:hover {
  color: #ff9900;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-info a {
  text-decoration: none;
  font-weight: bold;
  color: #000000;
  width: 135px;
}

.menu-toggle {
  display: none;
}

.content {
  padding-top: 100px;
  text-align: center;
  background-color: #4f76bb;
}

.mobile-only {
  display: none;
}

@media (max-width: 1540px) {
  header {
    padding: 0 20px;
  }
}

@media (max-width: 1230px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
    margin-right: 20px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110px;
    right: 0;
    width: 100%;
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul li a {
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
    color: #000000;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    text-align: center;
    padding: 10px;
  }

  .contact-info {
    display: none;
  }

  .dropdown {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  nav ul li a::after {
    display: none;
  }

  nav ul li a.active::after {
    display: none;
  }
}

@media (min-width: 769px) {
  .contact-button-wrapper {
    display: block;
  }

  .contact-menu-item {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-button-wrapper {
    display: none;
  }

  .contact-menu-item {
    display: block;
    padding: 0px;
  }

  .contact-menu-item a {
    background-color: #4f76bb;
    color: #ffffff;
    padding: 9px 18px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease, border 0.3s ease;
    display: inline-block;
    border: 2px solid #4f76bb;
    border-radius: 5px;
  }

  .contact-menu-item a:hover {
    background-color: rgba(17, 119, 253, 0.4);
    color: #ffffff;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
  }

  .logo img {
    width: 110px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}

.contact-button {
  display: flex;
  gap: 8px;
  background-color: #4f76bb;
  color: #ffffff;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease, border 0.3s ease;
  /* display: inline-block; */
  border: 2px solid #4f76bb;
  align-items: end;
  text-align: center;
  border-radius: 5px;
  font-size: 16px;
}

.contact-button:hover {
  background-color: rgba(17, 119, 253, 0.4);
  color: #ffffff;
}

.icon-lupa {
  width: 22px;
  height: 22px;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 3px;
  background-color: #4f76bb;
  transition: width 0.4s ease, left 0.4s ease;
}

nav ul li a:hover::after {
  width: 100%;
  left: 0;
}

nav ul li a.active::after {
  width: 100%;
  left: 0;
}

a {
  color: #0066cc;
  text-decoration: none;
}

/* BANNER */
.banner {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.banner-politica-de-privacidade {
  background-image: url("../img/banner-politica-de-privacidade.webp"); /* Altere conforme sua imagem */
}

.banner-termos-de-uso {
  background-image: url("../img/banner-termos-de-uso.webp"); /* Altere conforme sua imagem */
}

.banner-politica-de-cookies {
  background-image: url("../img/banner-politica-de-cookies.webp"); /* Altere conforme sua imagem */
}

.banner-contato {
  background-image: url("../img/banner-contato.webp"); /* Altere conforme sua imagem */
}

.banner-blog {
  background-image: url("../img/banner-blog.webp"); /* Altere conforme sua imagem */
}

.banner-quem-somos {
  background-image: url("../img/banner-quem-somos.webp"); /* Altere conforme sua imagem */
}

.banner-home {
  background-image: url("../img/banner-home.jpeg"); /* Altere conforme sua imagem */
}

.banner-mask {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 200px;
}

.banner h1 {
  color: #fff;
  font-size: 2.5rem;
  margin: 0;
}

/* CONTEÚDO */
.conteudo {
  margin: 50px 200px;
  font-size: 1rem;
  line-height: 1.6;
}

.conteudo h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  color: #222;
}

.conteudo p {
  margin-bottom: 15px;
}

.conteudo p,
.conteudo li {
  text-align: justify;
}

.conteudo ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.conteudo li {
  margin-bottom: 8px;
}

.tag-azul {
  color: #4f76bb;
  font-weight: 600;
}

.tag-gradiente {
  background: linear-gradient(to right, #e47808 0%, #e47808 50%, #f9ae08 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.tag-facebook {
  color: #0866ff;
  font-weight: 600;
}

.tag-youtube {
  color: #ff0033;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .conteudo {
    margin: 50px 100px;
  }

  .banner {
    height: 320px;
  }

  .banner-mask {
    padding-left: 100px;
  }
}

@media (max-width: 768px) {
  .conteudo {
    margin: 40px 40px;
    font-size: 0.95rem;
  }

  .banner {
    height: 250px;
  }

  .banner-mask {
    padding-left: 40px;
  }

  .banner h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .conteudo {
    margin: 30px 20px;
    font-size: 0.9rem;
  }

  .banner-mask {
    padding-left: 0px;
    justify-content: center;
    text-align: center;
  }

  .banner {
    height: 200px;
  }

  .banner-mask {
    padding-left: 20px;
    justify-content: center;
    text-align: center;
  }

  .banner h1 {
    font-size: 1.6rem;
  }
}

/* =========== CONTATO =========== */
.rede-contato {
  background-color: #ffffff;
  padding: clamp(40px, 6vw, 60px);
  text-align: center;
}

.container-redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}

.bloco-rede {
  border: 2px solid #4f76bb;
  border-radius: 6px;
  padding: clamp(20px, 4vw, 24px) 10px;
  width: min(100%, 310px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fdfdfd;
}

.bloco-rede img {
  width: 40px;
  margin-bottom: 12px;
}

.btn-rede {
  display: inline-block;
  margin: 12px 0;
  padding: 8px 16px;
  background-color: #4f76bb;
  color: #fff;
  border-radius: 5px;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-rede:hover {
  background-color: #3a5ea4;
}

.bloco-rede p {
  font-size: clamp(14px, 1.2vw, 16px);
  color: #444;
  line-height: 1.4;
  margin: 0;
}

.formulario-contato {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.formulario-contato h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: bold;
  color: #636363;
  text-align: center;
  margin-bottom: 20px;
}

.formulario-contato h2 .destaque {
  color: #4f76bb;
}

.formulario-contato p {
  text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  color: #636363;
  margin-bottom: 25px;
}

.formulario-contato form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== LINHAS DO FORM ===== */
.linha-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.linha-form input,
.linha-form textarea {
  flex: 1;
  min-width: 240px;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px;
  font-size: 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #333;
  outline: none;
}

.linha-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

/* BOTÃO */
.botao-final {
  display: flex;
  justify-content: flex-end;
}

.botao-final button {
  background: none;
  border: none;
  color: #4f76bb;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: color 0.3s;
}

.botao-final button:hover {
  text-decoration: underline;
  color: #3a5ea4;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .linha-form {
    flex-direction: column;
  }

  .botao-final {
    justify-content: center;
  }

  .botao-final button {
    font-size: 1rem;
  }
}

.cta-cooperado {
  background-image: url("../img/banner-cta-cooperado.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  padding: clamp(60px, 12vw, 100px) 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.cta-cooperado::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* leve escurecimento para leitura */
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
}

.cta-content h2 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: bold;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #ffffff;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #ffffff;
  margin-bottom: 24px;
}

.btn-cta {
  background-color: #4f76bb;
  color: #ffffff;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #3a5ea4;
  text-decoration: none;
}

/* ============================================= */

/* ===== TÍTULO DA SEÇÃO ===== */
/* ===== TÍTULO DA SEÇÃO ===== */
.atuacao-titulo {
  text-align: center;
  margin: 40px auto;
  padding: 0 clamp(16px, 5vw, 0px);
  max-width: 1000px;
}

.atuacao-titulo h2 {
  font-size: clamp(22px, 5vw, 28px);
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #333;
}

.atuacao-titulo .destaque {
  color: #4f76bb;
}

.atuacao-titulo p {
  font-size: clamp(14px, 2.5vw, 16px);
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #666;
  margin-top: 10px;
}

/* ===== MAPA LEAFLET ===== */
.mapa-unidades {
  padding: 0 clamp(16px, 5vw, 100px);
  margin-top: 20px;
}

#map {
  width: 100%;
  height: clamp(300px, 40vw, 400px);
  border: 1px solid #4f76bb;
  border-radius: 8px;
}

/* ===== CONTAINER DE CARDS ===== */
.cards-unidades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 100px;
  margin: 25px auto;
  box-sizing: border-box;
}

.card-unidade {
  width: 100%; /* agora o grid controla a largura */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 5px 5px rgba(0, 0, 0, 0.25);
  background: white;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* TÍTULO */
.card-unidade h3 {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 16px;
}

/* LINHAS COM ÍCONE */
.linha-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.linha-info img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  margin-top: 2px;
}

.linha-info p {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

.linha-info a {
  color: #000000;
  text-decoration: none;
}

.linha-info a:hover {
  text-decoration: underline;
}

.especialidades {
  margin: 16px 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 14px;
  color: #000000;
  max-height: 70px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.card-unidade.expandido .especialidades {
  max-height: 500px;
}

.especialidades .extra {
  display: list-item;
}

.card-unidade:not(.expandido) .especialidades .extra {
  display: none;
}

.btn-toggle {
  background: none;
  border: none;
  color: #4f76bb;
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
}

/* RESPONSIVIDADE */
@media (max-width: 1100px) {
  .card-unidade {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .cards-unidades {
    padding: 0 40px;
  }

  .card-unidade {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .cards-unidades {
    padding: 0 20px;
  }
}

@media (max-width: 1300px) {
  .cards-unidades {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 60px;
  }
  .mapa-unidades {
    padding: 0 60px;
  }
}

@media (max-width: 992px) {
  .cards-unidades {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
  .mapa-unidades {
    padding: 0 40px;
  }
}

@media (max-width: 600px) {
  .cards-unidades {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .mapa-unidades {
    padding: 0 20px;
  }
}

#encontre-medico {
  width: 100%;
  min-height: 490px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

#encontre-medico::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.bloco-busca {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 750px;
  padding: clamp(20px, 5vw, 40px) clamp(20px, 8vw, 60px);
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.bloco-busca h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: bold;
  color: #4f76bb;
  margin-bottom: 12px;
}

.bloco-busca p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #636363;
  margin-bottom: 16px;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-container input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 12px;
  font-size: clamp(14px, 2.5vw, 16px);
  font-family: "Plus Jakarta Sans", sans-serif;
  background-size: 16px;
  margin-bottom: 24px;
  outline: none;
  text-align: center;
}

@media (max-width: 480px) {
  .input-container input {
    text-align: left;
  }
}

.sugestoes-lista {
  list-style: none;
  text-align: left;
  padding: 0;
  margin-top: -20px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
  display: none;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.sugestoes-lista li {
  padding: 10px;
  cursor: pointer;
}

.sugestoes-lista li:hover {
  background-color: #f1f1f1;
}

.sugestoes-lista-1 {
  list-style: none;
  text-align: left;
  padding: 0;
  margin-top: 45px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
  display: none;
  position: absolute;
  width: 70%;
  z-index: 3;
  top: 180px;
}

.sugestoes-lista-1 li {
  padding: 10px;
  cursor: pointer;
}

.sugestoes-lista-1 li:hover {
  background-color: #f1f1f1;
}

.bloco-busca button {
  width: 100%;
  background-color: #4f76bb;
  color: #ffffff;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: bold;
  font-family: "Noto Sans", sans-serif;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bloco-busca button:hover {
  background-color: #3a5ea4;
}

.resultado-busca {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

.cabecalho-busca {
  margin-bottom: 32px;
}

.cabecalho-busca label {
  font-size: clamp(13px, 2vw, 14px);
  color: #636363;
  margin-bottom: 8px;
  display: block;
}

.cabecalho-busca input {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: clamp(14px, 2.5vw, 16px);
  font-family: "Noto Sans", sans-serif;
  margin-bottom: 12px;
  background-color: transparent;
  color: #4f76bb;
}

.resumo-resultados {
  font-size: 14px;
  color: #444;
}

/* ========== INPUT E BOTÃO ========== */
.input-nova-busca {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.input-nova-busca input {
  flex: 1 1 250px;
  min-width: 0;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #ccc;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.2;
  max-height: 48px;
  box-sizing: border-box;
}

.input-nova-busca button {
  background-color: #4f76bb;
  color: white;
  font-family: "Noto Sans", sans-serif;
  font-weight: bold;
  font-size: clamp(14px, 2.5vw, 16px);
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.input-nova-busca button:hover {
  background-color: #3a5ea4;
}

/* ========== GRID DE CARDS ========== */
.cards-medicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* ========== CARD MÉDICO ========== */
.card-medico {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topo-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.topo-card h3 {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.topo-card .crm {
  font-size: 14px;
  color: #666;
}

.especialidade {
  font-size: 14px;
  color: #444;
  margin: 6px 0 16px;
}

/* ========== INFO (com ícones) ========== */
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
}

.info-item img {
  width: 18px;
  height: 18px;
}

/* ========== BOTÕES ========== */
.botoes {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* impede quebra */
  /* justify-content: space-between; */
}

.btn-outline,
.btn-solid {
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  padding: 8px 8px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  min-width: 130px;
}

.btn-outline {
  border: 1px solid #4f76bb;
  color: #4f76bb;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #f0f4ff;
}

.btn-solid {
  background-color: #4f76bb;
  color: white;
  font-weight: bold;
}

.btn-solid:hover {
  background-color: #3a5ea4;
}

/* ========== RESPONSIVIDADE EXTRA ========== */
@media (max-width: 500px) {
  .input-nova-busca {
    flex-direction: column;
  }

  .input-nova-busca button {
    width: 100%;
  }
}

.institucional {
  background-color: #cce9f9;
  padding: 50px 20px;
  text-align: center;
}

.institucional p {
  font-size: clamp(20px, 4vw, 32px); /* Responsivo, entre 20px e 32px */
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: bold;
  color: #636363;
  margin: 0 auto;
  max-width: 1000px;
  line-height: 1.4;
  padding: 0 10px;
}

.institucional .azul {
  color: #4f76bb;
}

.especialidades-index {
  text-align: center;
  margin: 50px auto;
  padding: 0 20px;
}

.titulo-especialidades {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: bold;
  color: #636363;
  margin-bottom: 16px;
}

.titulo-especialidades .azul {
  color: #4f76bb;
}

.subtitulo-especialidades {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #636363;
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.colunas-especialidades-index {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.coluna-especialidades-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.item-especialidade-index {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.item-especialidade-index img {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  object-fit: contain;
}

.item-especialidade-index span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #636363;
}

/* 📱 Responsividade aprimorada */
@media (max-width: 768px) {
  .colunas-especialidades-index {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .coluna-especialidades-index {
    align-items: start;
  }

  .item-especialidade-index {
    justify-content: center;
    margin-bottom: 16px;
  }
}

.chamada-busca {
  position: relative;
  padding: clamp(80px, 15vw, 110px) 20px;
  text-align: center;
  overflow: hidden;
}

/* camada do blur */
.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px); /* Safari */
  z-index: 1;
}

/* conteúdo sobreposto */
.conteudo-chamada {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
}

/* título */
.titulo-chamada {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: bold;
  color: #081a3b;
  margin-bottom: 16px;
}

.titulo-chamada .azul {
  color: #4f76bb;
}

/* subtítulo */
.subtitulo-chamada {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  color: #081a3b;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* botão */
.btn-chamada {
  display: inline-block;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: bold;
  color: #ffffff;
  background-color: #4f76bb;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-chamada:hover {
  background-color: #3a5fa2;
}

.institucional-quem-somos {
  background-color: #cce9f9;
  padding: clamp(30px, 6vw, 50px) 20px;
  text-align: center;
}

.institucional-quem-somos p {
  font-size: clamp(18px, 4vw, 32px);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: bold;
  color: #636363;
  margin: 0 auto;
  max-width: 1200px;
  line-height: 1.5;
  padding: 0 10px;
}

.institucional-quem-somos .azul-quem-somos {
  color: #4f76bb;
}

.valores-coopmed {
  display: flex;
  justify-content: center;
  align-items: stretch; /* 👈 importante para igualar altura */
  gap: 32px;
  padding: clamp(20px, 5vw, 40px) 20px;
  flex-wrap: wrap;
  text-align: center;
  max-width: 1300px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-radius: 8px;
  max-width: 320px;
  flex: 1 1 280px;
  box-sizing: border-box;
  height: 100%;
  min-height: 240px; /* garante consistência mesmo com pouco texto */
}

.card img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(18px, 4vw, 20px);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.card p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 2.5vw, 15px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
}

/* Cores dos cards */
.card-missao {
  background-color: #cce9f9;
  color: #636363;
}

.card-missao h3,
.card-missao p {
  color: #636363;
}

.card-visao {
  background-color: #8bb7e1;
}

.card-valores {
  background-color: #4f76bb;
}

.blog-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.blog-left {
  flex: 3;
  min-width: 0;
}

.blog-post {
  display: flex;
  margin-bottom: 2px;
  border-bottom: 2px solid #636363;
  padding-bottom: 16px;
}

.blog-post + .blog-post {
  padding-top: 16px;
}

.blog-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.blog-content {
  flex: 1;
}

.blog-title {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  color: #4f76bb;
  margin-bottom: 8px;
  text-align: justify;
}

.blog-subtitle {
  font-size: clamp(13px, 1.8vw, 14px);
  font-weight: 400;
  color: #636363;
  margin-bottom: 8px;
  text-align: justify;
}

.blog-date {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  color: #636363;
}

.calendar-icon {
  width: 15px;
  height: 15px;
  margin-right: 8px;
}

.blog-link {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
}

.blog-link:hover .blog-title {
  text-decoration: underline;
}

/* Sidebar */
.blog-right {
  flex: 1;
  min-width: 280px;
}

.social-title {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  color: #4f76bb;
  margin-bottom: 16px;
}

.social-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: clamp(13px, 1.8vw, 14px);
  font-weight: 400;
  color: #636363;
}

.social-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* 📱 Responsivo: empilhar colunas e corrigir imagem */
@media (max-width: 848px) {
  .blog-wrapper {
    flex-direction: column;
    padding: 30px 16px;
    gap: 0px;
  }

  .blog-left,
  .blog-right {
    width: 100%;
  }

  .blog-post {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-image {
    display: none;
  }

  .blog-content {
    text-align: center;
  }

  .blog-title,
  .blog-subtitle {
    text-align: start;
  }

  .blog-date {
    justify-content: start;
  }

  .blog-right {
    margin-top: 40px;
    text-align: center;
  }

  .social-item {
    justify-content: start;
  }

  .social-title {
    text-align: start;
  }
}

/* Botão Voltar */
.back-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4f76bb;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.back-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Imagem principal do artigo */
.article-image {
  width: 100%;
  height: auto;
  margin: 16px 0 26px;
  border-radius: 8px;
  object-fit: cover;
}

/* Título do artigo */
.article-title {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  color: #4f76bb;
  margin-bottom: 16px;
  text-align: justify;
}

/* Subtítulo */
.article-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 400;
  color: #000000;
  margin-bottom: 8px;
  text-align: justify;
}

/* Data */
.article-date {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  color: #636363;
  white-space: nowrap;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 24px;
}

.calendar-icon {
  width: 15px;
  height: 15px;
  margin-right: 8px;
}

/* Parágrafos do artigo */
.article-text {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: justify;
}

/* Sidebar */
.social-title {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  color: #4f76bb;
  margin-bottom: 16px;
}

.social-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: clamp(13px, 1.8vw, 14px);
  font-weight: 400;
  color: #636363;
}

.social-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* Responsivo: empilhamento mobile */
@media (max-width: 848px) {
  .blog-wrapper {
    flex-direction: column;
    padding: 30px 16px;
  }

  .blog-left,
  .blog-right {
    width: 100%;
  }

  .blog-right {
    margin-top: 40px;
    text-align: center;
  }

  .social-item {
    justify-content: start;
  }

  .article-title,
  .article-subtitle,
  .article-text {
    text-align: justify;
  }

  .article-date {
    justify-content: end;
  }
}

.diferenciais {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 60px) 20px;
  text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.diferenciais-titulo {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: #636363;
  margin-bottom: 24px;
}

.diferenciais-titulo strong {
  color: #4f76bb;
}

.diferenciais-subtitulo {
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  color: #636363;
  margin-bottom: 50px;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Cards */
.card-diferencial {
  background-color: #4f76bb;
  color: #ffffff;
  padding: 25px 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: 100%;
  min-height: 200px; /* opcional para reforçar uniformidade */
}

.card-icone {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.card-titulo {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 800;
  margin-bottom: 12px;
}

.card-texto {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
}

/* Seção agora ocupa a largura total da tela */
.linha-do-tempo {
  width: 100%;
  padding: 60px 100px;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Título e botões no topo */
.linha-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.linha-titulos {
  flex: 1;
}

.linha-subtitulo {
  font-size: 16px;
  color: #4f76bb;
  font-weight: 400;
}

.linha-titulo {
  font-size: 32px;
  font-weight: 700;
  color: #636363;
}

.linha-titulo strong {
  color: #4f76bb;
}

.linha-botoes {
  display: flex;
  gap: 8px;
}

.btn-nav {
  background-color: #4f76bb;
  border: none;
  padding: 13px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-nav.disabled {
  background-color: #636363;
  cursor: default;
  pointer-events: none;
}

.btn-nav img {
  width: 24px;
  height: 24px;
}

.linha-externa {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* margin: 0 auto; */
  /* max-width: 1440px; */
}

.timeline-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 2;
}

.timeline-scroll {
  display: flex;
  gap: 180px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.timeline-item {
  width: 266px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.linha-horizontal {
  position: absolute;
  top: 67px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #636363;
  z-index: 1;
}

/* Cada item da linha do tempo */
.timeline-item {
  width: 266px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.ano {
  font-size: 32px;
  font-weight: 700;
  color: #4f76bb;
  margin-bottom: 8px;
}

.bolinha {
  width: 16px;
  height: 16px;
  background-color: #636363;
  border-radius: 50%;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.descricao {
  font-size: 14px;
  font-weight: 400;
  color: #636363;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .linha-do-tempo {
    padding: 40px 20px;
  }

  .linha-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .linha-titulo {
    font-size: 26px;
  }

  .linha-subtitulo {
    font-size: 14px;
  }

  .linha-botoes {
    align-self: flex-end;
  }

  .timeline-scroll {
    gap: 40px;
    padding-bottom: 20px;
  }

  .timeline-item {
    width: 240px;
  }

  .linha-horizontal {
    top: 65px;
  }

  .descricao {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .timeline-scroll {
    gap: 20px;
  }

  .timeline-item {
    width: 200px;
  }

  .ano {
    font-size: 24px;
  }

  .descricao {
    font-size: 12px;
  }

  .btn-nav img {
    width: 20px;
    height: 20px;
  }

  .btn-nav {
    padding: 10px;
  }
  .linha-horizontal {
    top: 55px;
  }
}

.diretoria {
  font-family: "Plus Jakarta Sans", sans-serif;
  position: relative;
}

/* Faixa azul fixa ao topo da seção */
.faixa-superior {
  background-color: #4f76bb;
  padding: 50px 0px;
}

.titulo-diretoria {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-left: 100px; /* sobreposição na faixa azul */
  margin-bottom: 50px;
}

/* Bloco branco sobreposto */
.cards-diretoria {
  background-color: #ffffff;
  margin-top: -50px;
  margin-left: 100px; /* sobreposição na faixa azul */
  margin-right: 100px; /* sobreposição na faixa azul */

  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  z-index: 2;
  position: relative;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: stretch; /* força altura igual nos cards */
}

.card-diretor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 270px;
  background: white;
}

/* Foto do diretor */
.foto-diretor {
  width: 100%;
  height: 270px;
  background-color: #d9d9d9;
  border-radius: 8px;
  margin-bottom: 12px;
}

.foto-julio {
  background-image: url("../img/diretor-julio.jpeg");
  background-size: cover;
  background-position: center;
}

.foto-isabela {
  background-image: url("../img/diretora-isabela.jpeg");
  background-size: cover;
  background-position: center;
}

.foto-marinna {
  background-image: url("../img/diretora-marinna.jpeg");
  background-size: cover;
  background-position: start;
}

/* Nome */
.nome-diretor {
  font-size: 20px;
  font-weight: 800;
  color: #002140;
  width: 100%;
  min-height: 48px; /* espaço para 2 linhas de nome */
  line-height: 1.2;
  text-align: start;
}

/* Cargo */
.cargo-diretor {
  font-size: 16px;
  font-weight: 600;
  color: #4f76bb;
  margin: 8px 0;
  min-height: 24px;
}

/* CRM */
.crm-diretor {
  font-size: 14px;
  font-weight: 200;
  color: #002140;
}

@media (max-width: 768px) {
  .cards-diretoria {
    background-color: #ffffff;
    margin-top: -50px;
    margin-left: 20px; /* sobreposição na faixa azul */
    margin-right: 20px; /* sobreposição na faixa azul */

    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    z-index: 2;
    position: relative;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    align-items: stretch; /* força altura igual nos cards */
  }
  .titulo-diretoria {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-left: 20px; /* sobreposição na faixa azul */
    margin-bottom: 50px;
  }
}

.footer {
  background-color: #5379bd;
  color: white;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 50px 100px;
  margin: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  margin-bottom: 30px;
}

.footer-logo img {
  width: 200px;
}

.footer-section {
  min-width: 180px;
  margin-bottom: 20px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer-section p {
  padding-bottom: 6px;
  margin: 0;
  font-size: 14px;
  color: white;
}

.footer-section a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 6px;
  display: inline-block;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 20px;
  vertical-align: middle;
}

.footer-bottom {
  background-color: #0b1e43;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
}

/* Tablets */
@media (max-width: 1540px) {
  .footer-container {
    padding: 40px 50px;
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 960px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
  }

  .footer-logo {
    margin-bottom: 30px;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-section ul {
    padding-left: 0;
  }
}

/* Celulares menores */
@media (max-width: 480px) {
  .footer-container {
    padding: 30px 20px;
  }

  .footer-section h4 {
    font-size: 15px;
  }

  .footer-section a {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .social-icons a img {
    width: 22px;
  }
}

.header-offset {
  height: 110px;
}

@media (max-width: 480px) {
  .header-offset {
    height: 60px;
  }
}

.local-detalhes {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.local-detalhes .container {
  max-width: 960px;
  margin: 0 auto;
  height: auto;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4f76bb;
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 600;
}

.back-button img {
  width: 20px;
}

.local-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.local-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #081a3b;
}

.linha-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.linha-info img {
  width: 20px;
  margin-top: 3px;
}

.linha-info p,
.linha-info a {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.linha-info a {
  color: #4f76bb;
  text-decoration: none;
}

.linha-info a:hover {
  text-decoration: underline;
}

.especialidades-local {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.especialidades-local li {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .local-title {
    font-size: 22px;
  }

  .linha-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .linha-info img {
    margin-top: 0;
  }
}

.loading-message,
.success-message,
.error-message {
  display: none;
}

#contato-anchor {
  position: relative;
  top: -110px; /* altura do seu header fixo */
  height: 0;
  visibility: hidden;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-circle {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-circle img {
  width: 36px;
  height: 36px;
}

.whatsapp-circle:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

/* Overlay de imagem em tela cheia */
.img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex; /* sempre flex, mas controlamos via opacity/visibility */
  align-items: center;
  justify-content: center;
  z-index: 10000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.img-overlay.open {
  opacity: 1;
  visibility: visible;
}

.img-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);

  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.img-overlay.open img {
  transform: scale(1);
  opacity: 1;
}

/* Botão fechar (X) */
.img-overlay .close-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
  z-index: 10001;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.img-overlay.open .close-btn {
  opacity: 1;
  transform: scale(1);
}

.img-overlay .close-btn:hover {
  background: rgba(255,255,255,.25);
}
