/* =====================================================================
   ARTIGO-LANDING (blog) — Maestro Thermas
   Identidade do site: azul #012dd5, laranja #ea9600, Montserrat + Inter.
   Usado pelas páginas geradas por scripts/artigos/build.mjs.
   ===================================================================== */
/* Fontes provisórias com as larguras medidas da Montserrat (por peso) e da Inter: evita o deslocamento do título (CLS)
   enquanto a fonte do Google carrega de forma assíncrona. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  font-weight: 100 799;
  size-adjust: 115.8%;
  ascent-override: 85.8%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  font-weight: 800 900;
  size-adjust: 118.1%;
  ascent-override: 85.8%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 105.8%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  --mt-blue: #012dd5;
  --mt-blue-dark: #001f99;
  --mt-orange: #ea9600;
  --mt-orange-dark: #d48400;
  --mt-ink: #0f172a;
  --mt-text: #334155;
  --mt-muted: #64748b;
  --mt-line: #e2e8f0;
  --mt-bg: #f8fafc;
  --mt-sky: #eaf1ff;
  --mt-sun: #fff4d9;
  --mt-mint: #e6f8ee;
  --mt-rose: #ffeaf3;
}

body.lp {
  /* As variáveis do site apontam direto para Montserrat/Inter; aqui ganham as fontes provisórias com as mesmas medidas. */
  --site-font-title: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --site-font-body: "Inter", "Inter Fallback", Arial, sans-serif;
  background: var(--mt-bg);
  color: var(--mt-text);
  font-family: var(--site-font-body);
}

/* ---------- Barra superior ---------- */
.lp-top {
  background: var(--mt-blue);
  padding: 12px 0;
  position: relative;
  z-index: 30;
}
.lp-top .container {
  max-width: 1180px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lp-top-logo img { height: 52px; width: auto; display: block; }
.lp-top-nav { display: flex; align-items: center; gap: 22px; }
.lp-top-nav a { color: #fff; font-weight: 700; text-decoration: none; font-size: 0.98rem; }
.lp-top-nav a:hover { color: var(--mt-orange); }
.lp-top-nav a.is-active { color: var(--mt-orange); }
.lp-top-nav .btn-maestro-cta { padding: 9px 20px !important; font-size: 0.88rem !important; }
@media (max-width: 767px) {
  .lp-top-nav a:not(.btn) { display: none; }
  .lp-top-logo img { height: 44px; }
}

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #012dd5 0%, #0b3ff2 55%, #001f99 100%);
  color: #fff;
  padding: 48px 0 120px;
}
.lp-hero::before,
.lp-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.lp-hero::before {
  width: 560px; height: 560px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(234, 150, 0, 0.38) 0%, rgba(234, 150, 0, 0) 70%);
}
.lp-hero::after {
  width: 420px; height: 420px; left: -200px; bottom: -160px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.35) 0%, rgba(0, 163, 255, 0) 70%);
}
.lp-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.lp-hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.lp-crumbs { font-size: 0.9rem; margin-bottom: 18px; color: #c7d4ff; }
.lp-crumbs a { color: #c7d4ff; text-decoration: none; }
.lp-crumbs a:hover { color: #fff; }
.lp-crumbs span[aria-hidden] { margin: 0 8px; color: #8fa6f5; }
.lp-crumbs [aria-current] { color: var(--mt-orange); font-weight: 700; }
.lp-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.lp-hero h1 {
  text-wrap: balance;
  font-family: var(--site-font-title);
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}
.lp-hero h1 em { font-style: normal; color: var(--mt-orange); }
.lp-sub { font-size: 1.15rem; line-height: 1.6; color: #dde6ff; margin: 0 0 18px; max-width: 560px; }
.lp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: #c7d4ff; margin-bottom: 26px; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7); color: #fff !important; text-decoration: none;
  font-family: var(--site-font-title); font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.lp-btn-ghost:hover { background: #fff; color: var(--mt-blue) !important; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.lp-chips li {
  background: #fff; color: var(--mt-blue); font-weight: 700; font-size: 0.86rem;
  padding: 8px 14px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.lp-hero-media { position: relative; }
.lp-hero-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 28px; border: 6px solid #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(1.5deg);
}
.lp-badge {
  position: absolute; z-index: 3;
  font-family: var(--site-font-title); font-weight: 800; line-height: 1.1; text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.lp-badge--temp {
  top: -18px; left: -18px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--mt-orange); color: #fff; font-size: 1.6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-8deg);
}
.lp-badge--temp small { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.lp-badge--note {
  right: -10px; bottom: -22px; background: #fff; color: var(--mt-blue);
  border-radius: 16px; padding: 12px 16px; font-size: 0.9rem; max-width: 220px; text-align: left;
}
.lp-badge--note span { display: block; color: var(--mt-orange); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Layout: conteúdo + barra lateral ---------- */
.lp-layout {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: -64px auto 0;
  padding: 0 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.lp-body {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 48px 52px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--mt-text);
  min-width: 0;
}
.lp-body > :first-child { margin-top: 0; }
.lp-body p { margin: 0 0 18px; }
.lp-body a:not(.btn):not(.lp-related-card) { color: var(--mt-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(1, 45, 213, 0.3); text-underline-offset: 3px; }
.lp-body a:not(.btn):not(.lp-related-card):hover { text-decoration-color: var(--mt-orange); }
.lp-body strong { color: var(--mt-ink); }
.lp-lead {
  font-size: 1.2rem; line-height: 1.7; color: var(--mt-ink);
  border-left: 5px solid var(--mt-orange); padding: 4px 0 4px 20px; margin-bottom: 30px !important;
}
.lp-body h2 {
  font-family: var(--site-font-title) !important;
  color: var(--mt-blue);
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 800;
  margin: 52px 0 18px;
  scroll-margin-top: 24px;
}
.lp-body h2::after {
  content: ""; display: block; width: 56px; height: 5px; border-radius: 5px; margin-top: 12px;
  background: linear-gradient(90deg, var(--mt-orange), #ffc406);
}
.lp-body h3 {
  font-family: var(--site-font-title) !important;
  color: var(--mt-ink); font-size: 1.25rem; font-weight: 800; margin: 30px 0 10px;
}

/* Cards de destaque */
.lp-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 12px; }
.lp-card { border-radius: 20px; padding: 22px; line-height: 1.6; }
.lp-card:nth-child(4n+1) { background: var(--mt-sky); }
.lp-card:nth-child(4n+2) { background: var(--mt-sun); }
.lp-card:nth-child(4n+3) { background: var(--mt-mint); }
.lp-card:nth-child(4n+4) { background: var(--mt-rose); }
.lp-ico {
  width: 48px; height: 48px; border-radius: 14px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08); margin-bottom: 12px;
}
.lp-ico::before { content: attr(data-ico); }
.lp-cta::before { content: attr(data-ico); font-size: 2.2rem; line-height: 1; }
.lp-body .lp-card p { margin: 0; font-size: 0.97rem; }
.lp-card-title { display: block; font-family: var(--site-font-title); font-weight: 800; color: var(--mt-ink); font-size: 1.05rem; margin-bottom: 6px; }

/* Galerias de fotos */
.lp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 30px; }
.lp-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-gallery--1 { grid-template-columns: minmax(0, 1fr); }
.lp-gallery figure { margin: 0; position: relative; }
.lp-gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 18px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.lp-gallery--1 img { aspect-ratio: 16 / 9; }

/* Checklist */
.lp-check { list-style: none; padding: 0; margin: 8px 0 26px; display: grid; gap: 10px; }
.lp-check li { position: relative; padding-left: 38px; line-height: 1.6; }
.lp-check li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: #22c55e; color: #fff;
  font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}

/* Quadro de horários / dados rápidos */
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.lp-body .lp-fact {
  border: 2px solid var(--mt-line); border-radius: 18px; padding: 16px; text-align: center; background: #fff;
  margin: 0; font-size: 0.9rem; color: var(--mt-muted); line-height: 1.4;
}
.lp-body .lp-fact-value { display: block; font-family: var(--site-font-title); font-weight: 800; color: var(--mt-blue); font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }

/* Passo a passo */
.lp-steps { list-style: none; counter-reset: lp-step; padding: 0; margin: 10px 0 28px; display: grid; gap: 14px; }
.lp-steps li {
  counter-increment: lp-step; position: relative; padding: 18px 20px 18px 74px;
  background: var(--mt-bg); border-radius: 18px; line-height: 1.6;
}
.lp-steps li::before {
  content: counter(lp-step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 12px; background: var(--mt-blue); color: #fff;
  font-family: var(--site-font-title); font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Chamadas para orçamento */
.lp-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #fff7e1 0%, #ffe9b8 100%);
  border: 2px solid var(--mt-orange); border-radius: 24px; padding: 24px 26px; margin: 36px 0;
  box-shadow: 0 12px 30px rgba(234, 150, 0, 0.16);
}
.lp-body .lp-cta-title { display: block; font-family: var(--site-font-title); font-weight: 800; color: var(--mt-blue); font-size: 1.2rem; margin-bottom: 4px; line-height: 1.3; }
.lp-body .lp-cta p { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.lp-cta .btn-maestro-cta { white-space: nowrap; }

/* Perguntas frequentes */
.lp-faq { display: grid; gap: 12px; margin: 10px 0 30px; }
.lp-faq-item { border-left: 5px solid var(--mt-orange); background: var(--mt-bg); border-radius: 0 18px 18px 0; padding: 16px 20px; }
.lp-body .lp-faq-item p { margin: 0; line-height: 1.65; }
.lp-body .lp-faq-q { display: block; font-family: var(--site-font-title); font-weight: 800; color: var(--mt-blue); font-size: 1.05rem; line-height: 1.4; margin-bottom: 6px; }

/* Leia também (links internos) */
.lp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 34px; }
.lp-related-card {
  display: block; text-decoration: none; color: inherit; border-radius: 20px; overflow: hidden; background: #fff;
  border: 2px solid var(--mt-line); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-related-card:hover { transform: translateY(-4px); border-color: var(--mt-orange); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1); }
.lp-related-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.lp-related-card span { display: block; padding: 12px 14px 16px; font-family: var(--site-font-title); font-weight: 700; color: var(--mt-ink); font-size: 0.95rem; line-height: 1.35; }
.lp-related-card span::after { content: " →"; color: var(--mt-orange); }

/* Fechamento */
.lp-final {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #012dd5 0%, #001f99 100%);
  border-radius: 26px; padding: 40px 30px; margin-top: 40px;
  box-shadow: 0 18px 40px rgba(1, 45, 213, 0.28);
}
.lp-final::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(234, 150, 0, 0.45) 0%, rgba(234, 150, 0, 0) 70%);
}
.lp-final > * { position: relative; }
.lp-final-title { font-family: var(--site-font-title); font-weight: 800; font-size: 1.8rem; line-height: 1.2; color: #fff; margin: 0 0 10px !important; }
.lp-final p { color: #dbe4ff; }
.lp-final .lp-final-note { font-size: 0.88rem; color: #b8c7f7; margin: 14px 0 0; }

/* ---------- Barra lateral ---------- */
.lp-aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.lp-aside-box { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08); }
.lp-aside-title { font-family: var(--site-font-title); font-weight: 800; color: var(--mt-ink); font-size: 1rem; margin: 0 0 12px; }
.lp-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: lp-toc; }
.lp-toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none;
  color: var(--mt-text); font-size: 0.9rem; line-height: 1.35;
}
.lp-toc a::before { counter-increment: lp-toc; content: counter(lp-toc); color: var(--mt-orange); font-weight: 800; min-width: 14px; }
.lp-toc a:hover { background: var(--mt-sky); color: var(--mt-blue); }
.lp-aside-cta { background: linear-gradient(160deg, #ea9600 0%, #f7b733 100%); color: #fff; text-align: center; }
.lp-aside-cta .lp-aside-title { color: #fff; font-size: 1.15rem; }
.lp-aside-cta p { font-size: 0.92rem; line-height: 1.5; margin: 0 0 16px; color: #fff8ea; }
.lp-aside-cta a {
  display: block; background: #fff; color: var(--mt-blue); font-family: var(--site-font-title); font-weight: 800;
  text-decoration: none; border-radius: 999px; padding: 12px 16px; font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.lp-aside-cta a:hover { color: var(--mt-orange-dark); }
.lp-aside-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.85rem; text-align: left; display: grid; gap: 6px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .lp-hero h1 { font-size: 2.2rem; }
}
@media (max-width: 991px) {
  .lp-hero { padding: 36px 0 110px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-hero-media { max-width: 560px; margin: 0 auto; width: 100%; }
  .lp-layout { grid-template-columns: minmax(0, 1fr); }
  .lp-aside { display: none; }
}
@media (max-width: 767px) {
  .lp-hero h1 { font-size: 1.75rem; }
  .lp-sub { font-size: 1.04rem; }
  .lp-body { padding: 30px 20px; border-radius: 22px; font-size: 1.02rem; }
  .lp-layout { padding: 0 12px 56px; margin-top: -72px; }
  .lp-body h2 { font-size: 1.4rem; margin-top: 42px; }
  .lp-highlights, .lp-related { grid-template-columns: minmax(0, 1fr); }
  .lp-gallery { gap: 10px; }
  .lp-gallery img { border-radius: 14px; }
  .lp-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-gallery--3 figure:first-child { grid-column: 1 / -1; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lp-cta { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 22px 18px; }
  .lp-cta::before { display: none; }
  .lp-cta .btn-maestro-cta { white-space: normal; }
  .lp-badge--temp { width: 84px; height: 84px; font-size: 1.3rem; left: -6px; top: -14px; }
  .lp-badge--note { right: 6px; }
  .lp-final { padding: 32px 20px; }
  .lp-final-title { font-size: 1.45rem; }
  .lp-hero-ctas .btn, .lp-hero-ctas .lp-btn-ghost { width: 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-related-card, .lp-related-card:hover { transition: none; transform: none; }
}

/* Rodapé dos artigos: mesma largura do conteúdo (a regra global .container{max-width:100%} o deixava colado nas bordas). */
body.lp > footer .container { max-width: 1180px; padding-left: 20px; padding-right: 20px; }

/* Tabela comparativa */
.lp-table-wrap { overflow-x: auto; margin: 10px 0 28px; border-radius: 18px; border: 2px solid var(--mt-line); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; min-width: 520px; }
.lp-table th, .lp-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mt-line); }
.lp-table thead th { background: var(--mt-blue); color: #fff; font-family: var(--site-font-title); font-weight: 800; }
.lp-table tbody th { color: var(--mt-ink); font-weight: 700; background: var(--mt-bg); width: 26%; }
.lp-table tbody tr:last-child th, .lp-table tbody tr:last-child td { border-bottom: 0; }

/* Chamada para motor de orçamento externo (abre em nova guia) */
.lp-cta--ext { background: linear-gradient(135deg, #eaf1ff 0%, #d9e6ff 100%); border-color: var(--mt-blue); box-shadow: 0 12px 30px rgba(1, 45, 213, 0.14); }

/* Crédito de imagem */
.lp-body .lp-credit { font-size: 0.78rem; line-height: 1.45; color: var(--mt-muted); margin: -18px 0 26px; }
.lp-body .lp-credit a:not(.btn):not(.lp-related-card) { color: var(--mt-muted); font-weight: 400; text-decoration-color: rgba(100, 116, 139, 0.4); }
.lp-body .lp-credit--end { margin: 24px 0 0; }
