/* ==============================
   PÁGINA INTERNA DE ARTIGO
================================ */

.artigo-page {
  background: #fff;
}

.artigo-hero {
  padding: 140px 0 70px;
  background: #f7f7f4;
}

.artigo-voltar {
  display: inline-block;
  margin-bottom: 28px;
  color: #d94d0b;
  font-weight: 700;
  text-decoration: none;
}

.artigo-voltar:hover {
  text-decoration: underline;
}

.artigo-hero .blog-card__categoria {
  display: inline-block;
  color: #d94d0b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artigo-hero h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  color: #252525;
  text-transform: uppercase;
}

.artigo-hero p {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.7;
  color: #555;
}

.artigo-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #777;
  font-size: 14px;
  font-weight: 600;
}

.artigo-conteudo {
  padding: 70px 0 100px;
}

.artigo-conteudo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: start;
}

.artigo-texto {
  max-width: 860px;
}

.artigo-imagem {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  margin-bottom: 42px;
}

.artigo-texto p {
  margin-bottom: 26px;
  font-size: 19px;
  line-height: 1.85;
  color: #454545;
}

.artigo-texto h2 {
  margin: 42px 0 16px;
  font-size: 32px;
  line-height: 1.15;
  color: #252525;
}

.artigo-cta {
  margin-top: 54px;
  padding: 38px;
  border-radius: 26px;
  background: #f4f8f2;
}

.artigo-cta h2 {
  margin-top: 0;
}

.artigo-cta p {
  margin-bottom: 24px;
}

.artigo-sidebar {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: 24px;
  background: #f7f7f4;
}

.artigo-sidebar h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #252525;
}

.artigo-sidebar a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  color: #252525;
  font-weight: 700;
  text-decoration: none;
}

.artigo-sidebar a:hover {
  color: #d94d0b;
}

/* Deixa os cards do blog clicáveis visualmente */
.blog-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.blog-card:hover h3 {
  color: #d94d0b;
}

/* ==============================
   MOBILE
================================ */

@media (max-width: 900px) {
  .artigo-hero {
    padding: 110px 0 50px;
  }

  .artigo-hero h1 {
    font-size: 42px;
  }

  .artigo-hero p {
    font-size: 17px;
  }

  .artigo-conteudo {
    padding: 46px 0 80px;
  }

  .artigo-conteudo__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .artigo-texto p {
    font-size: 17px;
  }

  .artigo-texto h2 {
    font-size: 26px;
  }

  .artigo-cta {
    padding: 28px;
  }

  .artigo-sidebar {
    position: static;
  }
}

/* AJUSTE VISUAL PARA O BLOG NÃO PARECER TEMPLATE */
.artigo-hero {
  padding: 150px 0 46px !important;
  background: #fff !important;
}

.artigo-voltar {
  margin-bottom: 22px !important;
  font-size: 15px !important;
}

.artigo-hero .blog-card__categoria {
  margin-bottom: 14px !important;
}

.artigo-hero h1 {
  max-width: 820px !important;
  font-size: clamp(36px, 4.8vw, 58px) !important;
  line-height: 1.05 !important;
  text-transform: none !important;
  letter-spacing: -0.04em !important;
}

.artigo-hero p {
  max-width: 760px !important;
  font-size: 19px !important;
  line-height: 1.65 !important;
}

.artigo-meta {
  margin-top: 18px !important;
  font-size: 14px !important;
}

.artigo-conteudo {
  padding-top: 36px !important;
}

.artigo-imagem {
  max-height: 520px !important;
  object-fit: cover !important;
  border-radius: 22px !important;
}

.artigo-texto p {
  font-size: 18px !important;
  line-height: 1.8 !important;
}

.artigo-texto h2 {
  font-size: 30px !important;
  margin-top: 38px !important;
}

.artigo-sidebar {
  top: 130px !important;
}

.artigo-cta {
  background: #f6f8f3 !important;
  border-radius: 24px !important;
}

/* ==============================
   AJUSTE FINO DO DESIGN DOS ARTIGOS
   mantém o conteúdo, melhora o visual
================================ */

.artigo-page {
  background: #ffffff !important;
}

/* Topo do artigo mais compacto e editorial */
.artigo-hero {
  padding: 120px 0 54px !important;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.artigo-hero .container {
  max-width: 1120px !important;
}

.artigo-voltar {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 22px !important;
  color: #d94d0b !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.artigo-voltar:hover {
  opacity: 0.78 !important;
}

.artigo-hero .blog-card__categoria {
  display: inline-block !important;
  margin-bottom: 14px !important;
  color: #d94d0b !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Título menos “gritado” e mais sofisticado */
.artigo-hero h1 {
  max-width: 850px !important;
  margin: 0 0 22px !important;
  color: #222222 !important;
  font-size: clamp(38px, 4.7vw, 62px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
}

.artigo-hero p {
  max-width: 760px !important;
  color: #4d5661 !important;
  font-size: 20px !important;
  line-height: 1.7 !important;
}

.artigo-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 22px !important;
}

.artigo-meta span {
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: #f4f4f1 !important;
  color: #5f646b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Corpo do artigo */
.artigo-conteudo {
  padding: 58px 0 110px !important;
}

.artigo-conteudo .container {
  max-width: 1180px !important;
}

.artigo-conteudo__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 760px) 310px !important;
  gap: 86px !important;
  align-items: start !important;
}

/* Imagem principal mais elegante */
.artigo-imagem {
  width: 100% !important;
  height: 430px !important;
  object-fit: cover !important;
  display: block !important;
  margin-bottom: 46px !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08) !important;
}

/* Texto com leitura mais bonita */
.artigo-texto {
  max-width: 760px !important;
}

.artigo-texto p {
  margin-bottom: 26px !important;
  color: #27313d !important;
  font-size: 19px !important;
  line-height: 1.85 !important;
}

.artigo-texto h2 {
  margin: 48px 0 18px !important;
  color: #14181f !important;
  font-size: 34px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

.artigo-texto h2:first-of-type {
  margin-top: 22px !important;
}

/* Box final mais bonito */
.artigo-cta {
  margin-top: 60px !important;
  padding: 42px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #f5f8f1 0%, #eef6ec 100%) !important;
  border: 1px solid rgba(20, 120, 60, 0.08) !important;
}

.artigo-cta h2 {
  margin: 0 0 14px !important;
  color: #15202b !important;
  font-size: 34px !important;
}

.artigo-cta p {
  margin-bottom: 28px !important;
}

/* Sidebar de outros conteúdos */
.artigo-sidebar {
  position: sticky !important;
  top: 130px !important;
  padding: 30px !important;
  border-radius: 28px !important;
  background: #f7f7f4 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.04) !important;
}

.artigo-sidebar h2 {
  margin: 0 0 24px !important;
  color: #101820 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.artigo-sidebar a {
  display: block !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #17202a !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

.artigo-sidebar a:hover {
  color: #d94d0b !important;
}

/* Botão flutuante menos invasivo no desktop */
.whatsapp-flutuante {
  right: 28px !important;
  bottom: 28px !important;
}

/* ==============================
   RESPONSIVO
================================ */

@media (max-width: 980px) {
  .artigo-hero {
    padding: 105px 0 42px !important;
  }

  .artigo-hero h1 {
    font-size: 42px !important;
    line-height: 1.08 !important;
  }

  .artigo-hero p {
    font-size: 17px !important;
  }

  .artigo-conteudo {
    padding: 42px 0 90px !important;
  }

  .artigo-conteudo__grid {
    grid-template-columns: 1fr !important;
    gap: 42px !important;
  }

  .artigo-texto {
    max-width: 100% !important;
  }

  .artigo-imagem {
    height: 300px !important;
    border-radius: 22px !important;
    margin-bottom: 34px !important;
  }

  .artigo-texto p {
    font-size: 17px !important;
    line-height: 1.75 !important;
  }

  .artigo-texto h2 {
    font-size: 28px !important;
  }

  .artigo-sidebar {
    position: static !important;
    padding: 26px !important;
  }

  .artigo-cta {
    padding: 30px !important;
  }

  .artigo-cta h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 560px) {
  .artigo-hero {
    padding: 92px 0 34px !important;
  }

  .artigo-hero h1 {
    font-size: 34px !important;
  }

  .artigo-meta span {
    font-size: 12px !important;
  }

  .artigo-imagem {
    height: 240px !important;
  }
}

/* CORREÇÃO RESPONSIVA DOS ARTIGOS */

/* segura a imagem para ela não crescer demais */
.artigo-imagem {
  width: 100% !important;
  height: clamp(240px, 30vw, 420px) !important;
  max-height: 420px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* garante que o botão Agendar Consulta apareça nos artigos */
.cabecalho .cabecalho__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* tablet/mobile */
@media (max-width: 900px) {
  .cabecalho {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 14px !important;
  }

  .cabecalho__logo-area {
    flex: 0 0 auto !important;
  }

  .cabecalho__logo-area img {
    width: 130px !important;
    max-width: 38vw !important;
    height: auto !important;
  }

  .cabecalho .cabecalho__cta {
    flex: 1 !important;
    max-width: 230px !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }

  .artigo-imagem {
    height: 270px !important;
    max-height: 270px !important;
    border-radius: 22px !important;
  }
}

/* celular menor */
@media (max-width: 520px) {
  .cabecalho {
    gap: 8px !important;
  }

  .cabecalho__logo-area img {
    width: 112px !important;
    max-width: 36vw !important;
  }

  .cabecalho .cabecalho__cta {
    max-width: 190px !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .artigo-imagem {
    height: 220px !important;
    max-height: 220px !important;
    border-radius: 18px !important;
  }
}

/* CORREÇÃO DEFINITIVA DA IMAGEM DOS ARTIGOS */
.artigo-imagem {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* Evita que o conteúdo fique escondido atrás do cabeçalho */
.artigo-hero {
  padding-top: 150px !important;
}

/* Ajuste para telas médias */
@media (max-width: 1200px) {
  .artigo-conteudo__grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 50px !important;
  }

  .artigo-imagem {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* Mobile/tablet */
@media (max-width: 980px) {
  .artigo-hero {
    padding-top: 130px !important;
  }

  .artigo-conteudo__grid {
    grid-template-columns: 1fr !important;
  }

  .artigo-imagem {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 20px !important;
  }
}

/* Celular */
@media (max-width: 560px) {
  .artigo-hero {
    padding-top: 115px !important;
  }

  .artigo-imagem {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* LETRAS MENORES NOS ARTIGOS */
.artigo-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem) !important;
  line-height: 1.08 !important;
}

.artigo-hero p {
  font-size: 1.05rem !important;
}

.artigo-texto h2 {
  font-size: 1.65rem !important;
}

.artigo-texto p {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

.artigo-cta h2 {
  font-size: 1.65rem !important;
}

.artigo-sidebar h2 {
  font-size: 1.25rem !important;
}

.artigo-sidebar a {
  font-size: 0.95rem !important;
}

@media (max-width: 620px) {
  .artigo-hero h1 {
    font-size: 2rem !important;
  }

  .artigo-texto h2,
  .artigo-cta h2 {
    font-size: 1.45rem !important;
  }

  .artigo-texto p {
    font-size: 0.96rem !important;
  }
}

/* Botão CTA dos artigos */
.artigo-cta .botao--principal {
  color: #ffffff !important;
  text-decoration: none !important;
}

.artigo-cta .botao--principal:hover,
.artigo-cta .botao--principal:focus,
.artigo-cta .botao--principal:visited {
  color: #ffffff !important;
}