/* ===== Fonte Inter do Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== Nova Paleta de Cores ===== */
:root {
  --primary: #666d63;
  --secondary: #d8d8d8;
  --background: #f9f7f0;
  --footer-bg: #d0d0d0;
  --white: #ffffff;
  --text: #333333;
  --muted: #666666;
  --line: rgba(0, 0, 0, .08);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

/* Prevenir scroll horizontal globalmente */
html, body, div, section, article, header, footer, nav, aside, main {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Fonte Inter para títulos e subtítulos */
h1, h2, h3, h4, h5, h6, .hero h1, .section__header h2, .card__body h3, .equipe-texto h3, .price h3, .footer__brand a {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  color: #272E25;
  letter-spacing: -0.02em;
}

/* Fonte Inter para parágrafos */
p {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
}

/* Fonte Inter para header e listas */
.header, li {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
}

img {
  max-width: 100%;
  display: block;
  transition: transform 0.2s ease; /* Reduzido de 0.3s para 0.2s */
}

img:hover {
  transform: scale(1.05);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Botões */
.btn {
  display: inline-block;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(102, 109, 99, .25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; /* Reduzido de .2s para .15s */
  will-change: transform;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 109, 99, .35)
}

.btn:active {
  transform: translateY(0)
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--primary);
  box-shadow: none;
}

.btn--contrair {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.btn--sm {
  padding: .6rem .9rem;
  font-size: .9rem
}

/* ===== HEADER NOVO ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(102, 109, 99, 0.15);
  backdrop-filter: blur(8px);
  width: 100%;
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.header:hover {
  background: rgba(102, 109, 99, 0.25);
}



.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 0.8rem 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ===== LOGO NO HEADER ===== */
.header-logo {
  display: none;
}

.mobile-logo {
  height: 220px;
  width: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-logo:hover {
  transform: scale(1.05);
}

.logo-link {
  text-decoration: none;
  display: block;
}

/* ===== HAMBURGUER E MENU MOBILE ===== */

/* Botão hamburguer */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000000;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hamburger:hover span {
  background: #333333;
}

/* Menu mobile */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(102, 109, 99, 0.15);
  backdrop-filter: blur(8px);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav:hover {
  background: rgba(102, 109, 99, 0.25);
}

.mobile-nav.active {
  display: flex !important;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(10px);
}

.mobile-nav a:last-child {
  border-bottom: none;
}







/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  overflow: hidden
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--hero-image, url('background.JPEG')) center 45% / cover no-repeat;
}

.hero__content {
  text-align: left;
  padding: 6rem 2rem 3rem;
  max-width: 600px;
  margin-left: 6rem;
  /* Removido o fundo semi-transparente e efeitos de box */
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -.5px;
  color: #272E25;
  white-space: normal; /* Quebra de linhas permitida */
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); /* Sombra mais forte sem fundo */
  font-weight: 800; /* Mais bold para destaque */
}

.hero p {
  color: var(--text); /* Mudança de cor para melhor contraste */
  margin: 0 0 1.2rem;
  max-width: 58ch;
  font-weight: 600; /* Texto mais bold */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra mais forte sem fundo */
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  gap: .8rem;
  justify-content: flex-start;
  align-items: center;
  margin: 1.2rem 0 2rem;
  width: 100%;
}

.hero__ribbon {
  margin-top: 1rem;
  display: inline-block;
  padding: .5rem .9rem;
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: 999px;
  color: var(--sage-700);
  font-weight: 600
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 780px;
  margin-inline: auto
}

.trust__item {
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: 12px;
  padding: 1rem
}

.trust__item strong {
  font-size: 1.6rem;
  display: block;
  color: var(--primary)
}

.trust__item span {
  color: var(--muted);
  font-size: .95rem
}

.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sage-700);
  font-size: 2.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}



@keyframes float {

  0%,
  100% {
    transform: translate(-50%, 0)
  }

  50% {
    transform: translate(-50%, -6px)
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Sections */
.section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.section--welinton {
  border-bottom: none;
}

.section--soft {
  background: #d1cdcb; /* Changed from var(--secondary) */
  padding-bottom: 0.5rem;
}



.section--welinton {
  background: var(--primary);
  color: white;
  margin-top: 0;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: .2rem 0 .4rem;
  color: #272E25;
  letter-spacing: -0.02em;
}

.section__header p {
  color: var(--muted);
  margin: 0
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 1.2rem
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  overflow-x: hidden;
}

.pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .pricing {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 720px) {

  .cards,
  .pricing {
    grid-template-columns: 1fr
  }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease /* Reduzido de .25s para .2s */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12)
}

.card:hover img {
  transform: scale(1.08);
}

.card img {
  aspect-ratio: 3/4;
  object-fit: cover
}

.card__body {
  padding: 1rem 1rem 1.2rem;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 80px;
  padding-bottom: 1.5rem;
  position: relative;
}

.card__body h3 {
  margin: 0;
  color: #272E25;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.7rem;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}



/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; /* Gap reduzido para evitar overflow */
  align-items: start;
  padding-top: 2rem;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

/* Imagem da seção sobre */
.about__img {
  overflow: hidden;
  border-radius: var(--radius);
}

.about__img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3/4;
}

.about__img img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about__text .bullets {
  margin: 1rem 0 1.2rem
}

.about__text .bullets li {
  margin: .35rem 0
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    padding-top: 1rem;
    gap: 2rem; /* Mantém o padrão atual no mobile */
    align-items: start;
  }
  
  .about__img img {
    height: 350px;
  }
}

/* ====== EQUIPE ====== */
.equipe-bloco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: rem;
  align-items: stretch;
  margin-bottom: 4rem;
  position: relative;
  padding: 2rem 0;
  min-height: 500px;
}

/* Ajustar layout para Dr. Welinton - mais espaço para o texto */
.section--welinton .equipe-bloco {
  grid-template-columns: 1.2fr 0.8fr; /* Mais espaço para texto, menos para foto */
  gap: 6rem; /* Reduzido espaçamento */
}

.equipe-foto {
  overflow: hidden;
  border-radius: var(--radius);
}

.equipe-foto img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.equipe-foto img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.equipe-texto h3 {
  margin: .2rem 0 1.5rem; /* Aumentado margin-bottom para melhor espaçamento */
  font-size: 1.8rem; /* Reduzido de 2rem */
  color: #272E25;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.5rem;
}

.equipe-texto h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #666d63, transparent);
  border-radius: 1px;
}

.section--welinton .equipe-texto h3 {
  color: white;
}

.section--welinton .equipe-texto h3::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.section--welinton .equipe-texto p {
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
}

.section--welinton .equipe-texto h4 {
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  line-height: 1.4;
  margin: 1.5rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.section--welinton .equipe-texto strong {
  color: #d1cdcb; /* Specific color for Dr. Welinton's section */
  font-weight: 700;
  font-size: 1.3rem;
  display: inline; /* Prevents line breaks */
  margin: 0 2px; /* Espaçamento lateral para destacar */
  padding: 0 1px; /* Padding interno sutil */
  white-space: nowrap; /* Garante que não quebre linha */
}

.equipe-texto {
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: 100%;
  padding: 1rem 0;
}

.equipe-texto p {
  color: var(--muted);
  line-height: 1.7; /* Ajustado para melhor legibilidade */
  font-size: 1rem; /* Reduzido de 1.1rem */
  font-weight: 400;
  text-align: justify;
  margin-bottom: 0; /* Removido espaçamento entre parágrafos */
  padding: 0 1rem 0 0; /* Aumentado padding direito */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
  word-spacing: 0.3px; /* Melhora espaçamento entre palavras */
  letter-spacing: 0.01em; /* Melhora espaçamento entre letras */
}

/* Subtítulos dos especialistas */
.equipe-texto h4 {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.2rem; /* Reduzido de 1.4rem */
  font-weight: 600;
  color: #272E25;
  margin: 1.5rem 0 1rem; /* Espaçamento adequado */
  letter-spacing: -0.01em;
  line-height: 1.4;
  position: relative;
  padding-bottom: 0.3rem;
}

/* Destaque para especialidades */
.equipe-texto strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.3rem; /* Slightly larger than paragraph text */
  display: inline; /* Prevents line breaks */
  margin: 0 2px; /* Espaçamento lateral para destacar */
  padding: 0 1px; /* Padding interno sutil */
  white-space: nowrap; /* Garante que não quebre linha */
}

/* Efeitos de animação para títulos (Desktop) */
@media (min-width: 901px) {
  #tit-sobre,
  #tit-especialistas {
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
  }
  
  .about__text,
  .equipe-texto {
    position: relative;
    z-index: 2;
  }
}

.equipe-bloco.invertido .equipe-foto {
  order: 2
}

.equipe-bloco.invertido .equipe-texto {
  order: 1
}

@media (max-width: 900px) {
  .equipe-bloco {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem 0;
    min-height: auto;
    align-items: center;
  }

  .equipe-bloco.invertido .equipe-foto,
  .equipe-bloco.invertido .equipe-texto {
    order: unset
  }

  .equipe-foto img {
    max-width: 100%
  }

  .equipe-texto {
    height: auto;
    padding: 1rem 0;
  }

  .equipe-texto h3 {
    font-size: 1.8rem; /* Increased from 1.6rem */
    margin: 1rem 0 1.2rem;
  }

  .equipe-texto h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .equipe-texto p {
    text-align: center;
    font-size: 1.2rem; /* Increased from 1.1rem */
    line-height: 1.8; /* Increased from 1.6 */
    padding: 0 1rem; /* Adicionado padding lateral */
    flex-grow: 0;
    display: block;
    word-spacing: 0.3px; /* Melhora espaçamento entre palavras */
    letter-spacing: 0.1px; /* Melhora espaçamento entre letras */
    margin-bottom: 0; /* Removido espaçamento entre parágrafos */
  }
  
  .equipe-texto h4 {
    font-size: 1.3rem; /* Tamanho ajustado para tablet */
    margin: 1.2rem 0 0.8rem;
    text-align: center;
  }
  
  .equipe-texto strong {
    font-size: 1.25rem; /* Slightly larger for tablet */
    display: inline; /* Prevents line breaks */
    margin: 0 1px; /* Espaçamento lateral reduzido para tablet */
    white-space: nowrap; /* Garante que não quebre linha */
  }
  
  .section--welinton .equipe-texto strong {
    color: #d1cdcb; /* Specific color for Dr. Welinton's section */
    font-size: 1.25rem;
    display: inline;
    margin: 0 1px; /* Espaçamento lateral reduzido para tablet */
    white-space: nowrap; /* Garante que não quebre linha */
  }

  .section--soft {
    padding-bottom: 0.2rem;
  }

  .section--welinton {
    padding-top: 1.2rem;
    padding-bottom: 0.2rem;
  }
  
  /* Ajustar layout para Dr. Welinton no tablet */
  .section--welinton .equipe-bloco {
    grid-template-columns: 1fr; /* Mesma proporção da Dra. Luana no tablet */
    gap: 3rem; /* Mesmo espaçamento da Dra. Luana no tablet */
  }
}

/* ====== GALERIA SIMPLES ====== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.galeria-item {
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.galeria-item:hover {
  transform: scale(1.05);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.galeria-actions {
  text-align: center;
  margin-top: 2rem;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 109, 99, .3);
}

/* Desktop: 4 colunas, 2 linhas visíveis inicialmente */
@media (min-width: 901px) {
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .galeria-item--hidden {
    display: none;
  }
  
  .galeria-item--hidden.show {
    display: block;
  }
  
  .galeria-actions {
    display: block;
    margin-top: 2rem;
  }
}

/* Tablet: 2 colunas, 4 linhas visíveis inicialmente */
@media (max-width: 900px) and (min-width: 561px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .galeria-item--hidden {
    display: none;
  }
  
  .galeria-item--hidden.show {
    display: block;
  }
  
  .galeria-actions {
    display: block;
    margin-top: 1.5rem;
  }
}

/* Mobile: 2x2 grid, botão "Exibir mais" */
@media (max-width: 560px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .galeria-item--hidden {
    display: none;
  }
  
  .galeria-item--hidden.show {
    display: block;
  }
  
  .galeria-actions {
    display: block;
    margin-top: 1.5rem;
  }
  
  .galeria-item {
    border-radius: 8px;
  }
  
  .galeria-item img {
    border-radius: 8px;
  }
  
  /* Contato mobile - alinhar conteúdo à esquerda */
  .contact-content h3 {
    text-align: left;
  }
  
  .contact-content p {
    text-align: left;
  }
  
  /* Logo no header para mobile */
  .header-logo {
    display: block;
    z-index: 1001;
    position: relative;
  }
  
  .nav {
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-logo {
    height: 210px;
    width: auto;
  }
}



/* ====== INFORMAÇÕES DE CONTATO ====== */
.section--contact {
  background: linear-gradient(135deg, var(--secondary) 0%, #e8e8e8 100%);
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease;
  overflow: hidden;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 109, 99, 0.1);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.contact-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #5a6158);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
  transform: scale(1.1);
}

.contact-icon {
  color: white;
  width: 28px;
  height: 28px;
}

.contact-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.contact-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.contact-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-content a:hover {
  color: #5a6158;
  text-decoration: underline;
}

.contact-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn--contact {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn--contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #128C7E, #075E54);
}

.contact-map {
  width: 100%;
  height: 500px;
}

.map-container {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(102, 109, 99, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.1) contrast(1.1) brightness(0.95);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  backdrop-filter: blur(8px);
  color: #333;
}

.footer__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__social a {
  color: #666d63;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__social a:hover {
  color: #333;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  height: 100px;
  width: auto;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

.footer__logo:hover {
  transform: scale(1.1);
}

.footer__contact h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem
}

.footer__contact p {
  color: var(--muted);
  margin: 0.25rem 0;
  font-size: 0.9rem
}

.footer__nav {
  display: grid;
  gap: .5rem
}

.footer__nav a {
  color: var(--muted);
  text-decoration: none
}

.newsletter__row {
  display: flex;
  gap: .5rem;
  margin-top: .4rem
}

.newsletter__row input {
  flex: 1
}

.footer__bottom {
  text-align: center;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.7);
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
}

.volcode-link {
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}

.volcode-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.socials a {
  color: var(--sage-700);
  margin-left: .6rem;
  display: inline-flex
}

/* ===== RESPONSIVO MOBILE ===== */
@media (max-width: 900px) {
  /* Header */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu {
    display: none
  }

  /* Hero */
  .hero__content {
    padding: 4rem 1.5rem 2rem;
    text-align: left;
    max-width: 100%;
    margin-left: 3.5rem;
    /* Removido o fundo semi-transparente e efeitos de box */
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    white-space: normal;
    line-height: 1.2;
    text-align: left;
    margin: 0 0 .6rem;
    max-width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); /* Sombra sutil para tablets */
    font-weight: 700;
  }

  .hero p {
    font-size: .9rem;
    max-width: 100%;
    padding: 0;
    text-align: left;
    margin: 0 0 1.2rem;
    color: var(--text);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Sombra sutil para tablets */
  }

  .hero__actions {
    flex-direction: column;
    gap: .6rem;
    margin: 1.5rem 0;
    align-items: center;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .trust {
    grid-template-columns: 1fr;
    gap: .8rem;
    max-width: 100%
  }

  .trust__item {
    padding: .8rem
  }

  .card__body {
    padding: .8rem .8rem 1rem;
    min-height: 60px;
    align-items: flex-end;
    padding-bottom: 1.2rem;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center
  }

  .about__text .bullets {
    text-align: left;
    margin: 1rem 0
  }

  /* Equipe */
  .equipe-bloco {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    min-height: auto;
    align-items: center;
  }

  .equipe-bloco.invertido .equipe-foto,
  .equipe-bloco.invertido .equipe-texto {
    order: unset
  }

  .equipe-foto img {
    max-width: 280px;
    margin: 0 auto
  }

  .equipe-texto {
    height: auto;
    padding: 0.5rem 0;
  }

  .equipe-texto h3 {
    font-size: 1.5rem; /* Reduzido de 1.7rem */
    margin: 1rem 0 1.2rem; /* Aumentado margin-bottom para melhor espaçamento */
  }

  .equipe-texto h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }

  .equipe-texto p {
    text-align: center;
    font-size: 1rem; /* Reduzido de 1.15rem */
    line-height: 1.7; /* Increased from 1.5 */
    padding: 0 0.5rem; /* Adicionado padding lateral reduzido */
    flex-grow: 0;
    display: block;
    word-spacing: 0.2px; /* Melhora espaçamento entre palavras */
    letter-spacing: 0.05px; /* Melhora espaçamento entre letras */
    margin-bottom: 0; /* Removido espaçamento entre parágrafos */
  }
  
  .equipe-texto h4 {
    font-size: 1.1rem; /* Reduzido de 1.2rem */
    margin: 1rem 0 0.6rem;
    text-align: center;
  }
  
  .equipe-texto strong {
    font-size: 1.2rem; /* Slightly larger for mobile */
    display: inline; /* Prevents line breaks */
    margin: 0 1px; /* Espaçamento lateral reduzido para mobile */
    white-space: nowrap; /* Garante que não quebre linha */
  }
  
  .section--welinton .equipe-texto strong {
    color: #d1cdcb; /* Specific color for Dr. Welinton's section */
    font-size: 1.2rem;
    display: inline;
    margin: 0 1px; /* Espaçamento lateral reduzido para mobile */
    white-space: nowrap; /* Garante que não quebre linha */
  }
  
  /* Garantir que o texto do Dr. Welinton tenha a mesma formatação da Dra. Luana no mobile */
  .section--welinton .equipe-texto {
    height: auto;
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Ajustar espaçamento do Dr. Welinton no mobile */
  .section--welinton .equipe-bloco {
    grid-template-columns: 1fr; /* Mesma proporção da Dra. Luana no mobile */
    gap: 3rem; /* Mesmo espaçamento da Dra. Luana no mobile */
  }
  
  .section--welinton .equipe-texto h3 {
    font-size: 1.5rem;
    margin: 1rem 0 1.2rem;
    color: white;
  }
  
  .section--welinton .equipe-texto h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    white-space: normal; /* Permite quebra de linha no mobile */
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3; /* Melhor espaçamento para quebra de linha */
  }
  
  .section--welinton .equipe-texto p {
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 0.5rem;
    flex-grow: 0;
    display: block;
    word-spacing: 0.2px;
    letter-spacing: 0.05px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
  }

  /* Galeria */
  .cluster-carousel {
    padding: 0.8rem 0; /* Reduzido para mobile */
  }

  /* Planos */
  .pricing {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  .price {
    padding: 1.5rem 1rem
  }



  /* Informações de Contato */
  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    max-width: 600px;
  }

  .contact-details {
    gap: 1rem;
    width: 100%;
  }

  .contact-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .contact-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .contact-content h3 {
    font-size: 1.1rem;
  }

  .contact-content p {
    font-size: 0.95rem;
  }

  .btn--contact {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .contact-map {
    height: 350px;
    width: 100%;
  }

  /* Footer */
  .footer__grid {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    max-width: 600px;
  }

  .footer__logo {
    height: 80px;
    object-fit: contain;
  }

  .footer__bottom {
    flex-direction: column;
    gap: .8rem;
    text-align: center
  }

  .socials {
    justify-content: center
  }

  .socials a {
    margin: 0 .3rem
  }
}

@media (max-width: 640px) {
  /* Container mais compacto */
  .container {
    width: 95%;
    margin-inline: auto;
  }

  /* Hero mais compacto */
  .hero__content {
    padding: 4rem 1.5rem 2rem;
    margin: 0 auto;
    text-align: center;
    background: rgba(102, 109, 99, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 7vw, 2rem);
    text-align: center;
    margin: 0 0 .6rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Sombra mais forte no mobile */
    font-weight: 700;
  }

  .hero p {
    font-size: .9rem;
    padding: 0;
    text-align: center;
    margin: 0 0 1.2rem;
    color: var(--text);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Sombra sutil no mobile */
  }
  
  /* Centralizar botão na hero section mobile */
  .hero__actions {
    justify-content: center;
    align-items: center;
  }
  
  .hero__actions .btn {
    text-align: center;
  }

  .hero__ribbon {
    font-size: .85rem;
    padding: .4rem .7rem
  }

  /* Seções mais compactas */
  .section {
    padding: clamp(1.5rem, 3vw, 2rem) 0
  }

  .section__header h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.7rem)
  }

  .card__body h3 {
    font-size: 0.7rem;
    line-height: 1.1;
    margin: 0;
    text-align: center;
    width: 100%;
  }

  /* Botões menores */
  .btn {
    padding: .7rem 1rem;
    font-size: .9rem
  }

  .btn--sm {
    padding: .5rem .7rem;
    font-size: .85rem
  }

  /* Galeria mobile */
  .cc-slide {
    flex-basis: 100%
  }

  .cc-track {
    gap: .5rem
  }
  
  /* About mobile - formato paisagem */
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Maior espaçamento entre hero e sobre no mobile */
  #sobre.section {
    padding-top: 4rem; /* Aumentado o espaçamento superior */
  }
  
  .image-carousel {
    height: 320px; /* Altura aumentada para cobrir o quadrado vermelho no mobile */
  }



  /* Informações de Contato mobile */
  .contact-info {
    gap: 1.5rem
  }



  .contact-details h2 {
    font-size: 1.2rem
  }

  .contact-item {
    font-size: 0.9rem;
    gap: 0.5rem
  }

  .contact-map {
    height: 300px;
  }

  /* Header mobile */
  .nav {
    padding: .6rem 0;
    height: 50px
  }

  .logo__img {
    height: 70px;
    max-height: 70px
  }

  .hamburger {
    width: 32px;
    height: 32px
  }

  .hamburger span {
    width: 20px;
    height: 2px
  }

  /* Mobile menu */
  .mobile-menu {
    padding: 1.5rem 5%;
    gap: .8rem;
    transform: translateX(-100%);
    text-align: center;
  }

  .mobile-menu a {
    font-size: 0.95rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .mobile-menu a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 143, 134, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  .mobile-menu a:hover::before {
    left: 100%;
  }
  
  .mobile-menu a:hover {
    color: var(--text);
    transform: translateX(5px);
  }
}

/* Animações - ACELERADAS */
[data-animate] {
  opacity: 0;
  transform: translateY(6px); /* Reduzido de 8px para 6px */
  transition: .4s ease /* Reduzido de .6s para .4s */
}

[data-animate].revealed {
  opacity: 1;
  transform: none
}

[data-animate="fade-left"] {
  transform: translateX(8px) /* Reduzido de 12px para 8px */
}

[data-animate="fade-left"].revealed {
  transform: none
}

[data-animate="zoom-in"] {
  transform: scale(.98); /* Reduzido de .96 para .98 */
  opacity: 0
}

[data-animate="zoom-in"].revealed {
  transform: none;
  opacity: 1
}

/* Parallax leve */
[data-parallax] {
  will-change: transform
}

/* ===== HEADER RESPONSIVO ===== */
@media (min-width: 901px) {
  .header {
    height: 70px;
  }
  
  .nav {
    padding: 0 2rem;
  }
  

  
  .hamburger {
    right: 2rem;
  }
  

}

@media (max-width: 900px) {
  .header {
    height: 65px;
  }
  
  .nav {
    padding: 0 1rem;
  }
  

  
  .hamburger {
    right: 1rem;
    display: block;
  }
  
  .nav-links {
    display: none;
  }
  

  
  .mobile-menu {
    top: 65px;
  }
  
  /* Garantir que o menu mobile funcione */
  .mobile-nav {
    top: 65px;
    background: rgba(102, 109, 99, 0.15);
    backdrop-filter: blur(8px);
  }
  
  .mobile-nav:hover {
    background: rgba(102, 109, 99, 0.25);
  }
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Responsivo do botão WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== Grid de Especialidades Atendidas ===== */
.especialidades-grid {
  width: 100%;
  margin: 3rem 0;
  overflow: visible;
  position: relative;
}

.especialidades-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  overflow: visible;
  position: relative;
}

.especialidades-row:last-child {
  margin-bottom: 0;
}

.especialidades-grid .card {
  background: var(--white);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  min-height: auto;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}



/* Cards com efeito de rotação 3D */
.especialidades-grid .card {
  position: relative;
  overflow: visible !important;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 350px;
}

.especialidades-grid .card__front,
.especialidades-grid .card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  top: 0;
  left: 0;
}

.especialidades-grid .card__front {
  background: var(--white);
  border: 1px solid var(--secondary);
  box-shadow: var(--shadow);
  transform: rotateY(0deg);
}

.especialidades-grid .card__front img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.3s ease;
}

.especialidades-grid .card__front .card__body {
  padding: 0.5rem 1rem;
  min-height: 0;
  display: block;
}

.especialidades-grid .card__front .card__body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #272E25;
}

.especialidades-grid .card__back {
  background: linear-gradient(135deg, var(--primary), #5a6158);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.especialidades-grid .card__content {
  text-align: center;
  max-width: 100%;
}

.especialidades-grid .card__content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: white;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.especialidades-grid .card__content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Estilo específico para "Tratamento de Canal" no card de Endodontia */
.especialidades-grid .card[data-especialidade="endodontia"] .card__body p {
  font-size: 0.65rem;
  margin: 0.05rem 0 0 0;
  color: #272E25;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: block;
  width: 100%;
  line-height: 1.2;
  clear: both;
  float: none;
}

/* Botão personalizado para os cards */
.btn--card {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.btn--card:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Efeito de rotação no hover */
@media (min-width: 769px) {
  .especialidades-grid .card:hover {
    transform: rotateY(180deg) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  }
}

/* Mobile: rotação no clique */
.especialidades-grid .card.card--flipped {
  transform: rotateY(180deg) scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Garantir que o botão funcione no mobile */
@media (max-width: 768px) {
  .btn--card {
    pointer-events: auto !important;
    z-index: 20 !important;
  }
  
  .especialidades-grid .card__back {
    pointer-events: auto;
  }
}

/* Indicador visual para mobile - mostrar que é clicável */
@media (max-width: 768px) {
  .especialidades-grid .card {
    cursor: pointer;
  }
  
  .especialidades-grid .card::before {
    content: '↻';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(102, 109, 99, 0.6);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 200;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
  }
  
  .especialidades-grid .card:hover::before {
    opacity: 1;
    transform: scale(1.05);
  }
  
  .especialidades-grid .card.card--flipped::before {
    display: none;
  }
}

/* Responsividade do grid */
@media (max-width: 1000px) {
  .especialidades-grid {
    margin: 2rem 0;
  }
  
  .especialidades-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .especialidades-grid .card {
    min-height: 310px;
  }
  
  .especialidades-grid .card__front img {
    height: 260px;
  }
  
  .especialidades-grid .card__front .card__body {
    padding: 0.5rem 1rem;
    min-height: 0;
  }
  
  .especialidades-grid .card__front .card__body h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 720px) {
  .especialidades-grid {
    margin: 1rem 0;
  }
  
  .especialidades-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .especialidades-grid .card {
    min-height: 300px;
  }
  
  .especialidades-grid .card__front img {
    height: 220px;
  }
  
  .especialidades-grid .card__front .card__body {
    padding: 0.4rem 0.4rem;
    min-height: 0;
  }
  
  .especialidades-grid .card__front .card__body h3 {
    font-size: 1.3rem;
    margin: 0;
  }
  
  /* Card back mobile */
  .especialidades-grid .card__back {
    padding: 1.2rem;
  }
  
  .especialidades-grid .card__content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .especialidades-grid .card__content p {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .btn--card {
    font-size: 0.85rem;
    padding: 0.7rem 1.3rem;
  }
}

@media (max-width: 480px) {
  .especialidades-grid {
    margin: 0.8rem 0;
  }
  
  .especialidades-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .especialidades-grid .card {
    min-height: 260px;
  }
  
  .especialidades-grid .card__front img {
    height: 180px;
  }
  
  .especialidades-grid .card__front .card__body {
    padding: 0.3rem 0.3rem;
    min-height: 0;
  }
  
  .especialidades-grid .card__front .card__body h3 {
    font-size: 1.2rem;
    margin: 0;
  }
  
  /* Card back mobile pequeno */
  .especialidades-grid .card__back {
    padding: 0.8rem;
  }
  
  .especialidades-grid .card__content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .especialidades-grid .card__content p {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  
  .btn--card {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 360px) {
  .especialidades-grid {
    margin: 0.6rem 0;
  }
  
  .especialidades-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .especialidades-grid .card {
    min-height: 240px;
  }
  
  .especialidades-grid .card__front img {
    height: 160px;
  }
  
  .especialidades-grid .card__front .card__body {
    padding: 0.3rem 0.3rem;
    min-height: 0;
  }
  
  .especialidades-grid .card__front .card__body h3 {
    font-size: 1.2rem;
  }
  
  /* Card back para telas muito pequenas */
  .especialidades-grid .card__back {
    padding: 0.8rem;
  }
  
  .especialidades-grid .card__content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .especialidades-grid .card__content p {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  
  .btn--card {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .especialidades-grid .card::before {
    width: 18px;
    height: 18px;
    font-size: 9px;
    top: 6px;
    right: 6px;
  }
}

/* ===== Fim do Grid de Especialidades ===== */

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

.galeria-item--hidden.show {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Suavizar transições da galeria */
.galeria-grid {
  transition: all 0.3s ease;
}

/* Indicador de imagem clicável */
.galeria-item img,
.about__img img,
.equipe-foto img {
  cursor: pointer;
  transition: all 0.3s ease;
}

.galeria-item img:hover,
.about__img img:hover,
.equipe-foto img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== Modal de Imagem ===== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: auto;
}

/* Desktop: mais espaço ao redor */
@media (min-width: 769px) {
  .modal-overlay {
    padding: 3rem;
  }
}

.modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem;
  max-width: 80%;
  max-height: 80%;
  margin: 0 auto;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: auto;
  height: auto;
}

/* Desktop: limitar tamanho da imagem */
@media (min-width: 769px) {
  .modal-image {
    max-width: 90%;
    max-height: 85vh;
  }
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid white;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10001;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid white;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10001;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}



.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Responsivo do modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0.5rem;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .modal-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid white;
    font-size: 22px;
  }
  
  .modal-nav {
    position: fixed;
    display: flex;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    font-size: 20px;
    font-weight: bold;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
  
  .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Grid helpers */