/* Landing Pages públicas — estilos do template "classico" (base para os próximos) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0f172a; -webkit-font-smoothing: antialiased; }
.lp-in { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.lp-carregando, .lp-indisp { color: #64748b; text-align: center; padding: 60px 20px; font-size: 16px; }

/* Hero */
.lp-hero { padding: 64px 0; }
.lp-hero-in { max-width: 1080px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.lp-hero-com-img .lp-hero-in { grid-template-columns: 1.15fr 1fr; }
.lp-logo { height: 54px; width: auto; margin-bottom: 22px; display: block; }
.lp-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
.lp-hero p { margin-top: 16px; font-size: 18px; line-height: 1.55; opacity: .92; max-width: 560px; }
.lp-hero-img img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); display: block; }
.lp-botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Botões */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 999px; padding: 14px 26px; font-size: 15px; font-weight: 800; letter-spacing: .02em; cursor: pointer; text-decoration: none; color: #fff; font-family: inherit; transition: transform .12s, filter .12s; }
.lp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lp-btn-ghost { background: rgba(255,255,255,.14); color: inherit; border: 1.5px solid rgba(255,255,255,.55); }
.lp-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Seções */
.lp-secao { padding: 56px 0; }
/* Bloco de texto só com título vira cabeçalho do bloco seguinte (sem vão embaixo) */
.lp-secao-titulo { padding-bottom: 0; }
.lp-secao-titulo h2 { margin-bottom: 0; }
.lp-secao-titulo + .lp-secao { padding-top: 24px; }
.lp-secao h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 18px; color: #0f172a; }
.lp-rich { font-size: 17px; line-height: 1.7; color: #334155; max-width: 800px; }
.lp-rich p { margin-bottom: 14px; }
.lp-rich ul, .lp-rich ol { margin: 0 0 14px 24px; }
.lp-rich h1, .lp-rich h2, .lp-rich h3 { margin: 22px 0 10px; color: #0f172a; }
.lp-rich img { max-width: 100%; border-radius: 12px; }
.lp-rich a { color: #1d4ed8; }
.lp-rich blockquote { border-left: 4px solid #cbd5e1; padding-left: 14px; color: #475569; margin: 14px 0; }

/* Diferenciais (cartões) */
.lp-diferenciais h2 { text-align: center; margin-bottom: 32px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; padding: 26px 22px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.lp-card-ic { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.lp-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #0f172a; }
.lp-card p { font-size: 14.5px; line-height: 1.55; color: #475569; }

/* Números / destaques */
.lp-numeros h2 { text-align: center; margin-bottom: 28px; }
.lp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.lp-num-v { font-size: clamp(34px, 4.5vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.lp-num-r { margin-top: 8px; font-size: 14.5px; color: #64748b; font-weight: 600; }

/* HTML livre — largura total; o HTML de quem monta controla o próprio layout.
   Imagens e vídeos dentro dele não estouram a tela. */
.lp-html { width: 100%; }
.lp-html img, .lp-html video, .lp-html iframe { max-width: 100%; }

/* Vídeo incorporado (16:9 responsivo) — largura total da seção pra alinhar com
   o título e os demais blocos (antes ficava estreito e centralizado = "torto"). */
.lp-video h2 { margin-bottom: 20px; }
.lp-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(15,23,42,.18); background: #000; }
.lp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bloco de texto vazio (só título, sem corpo) não reserva espaço à toa. */
.lp-rich:empty { display: none; }

/* Imagem de destaque no corpo */
.lp-imagem .lp-fig { margin: 0; text-align: center; }
.lp-imagem img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 60px rgba(15,23,42,.18); display: block; }
.lp-imagem figcaption { margin-top: 12px; font-size: 13.5px; color: #64748b; }

/* Rodapé */
.lp-rodape { padding: 34px 0 40px; border-top: 1px solid rgba(15,23,42,.08); color: #64748b; font-size: 13.5px; text-align: center; }
.lp-rodape-nome { font-weight: 800; color: #0f172a; font-size: 15px; margin-bottom: 6px; }
.lp-rodape-linha { margin-bottom: 8px; }
.lp-rodape-lgpd { font-size: 12px; opacity: .8; max-width: 640px; margin: 0 auto; line-height: 1.45; }

/* Modal do formulário */
.lp-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 50; }
.lp-overlay[hidden] { display: none; }
.lp-modal { position: relative; background: #fff; color: #0f172a; width: 100%; max-width: 480px; max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 22px; box-shadow: 0 40px 100px rgba(0,0,0,.5); padding: 34px 30px 28px; }
/* barrinha colorida no topo do modal (usa a cor de destaque do tema via JS) */
.lp-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 22px 22px 0 0; background: var(--lp-destaque, #c0212f); }
.lp-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f5f9; color: #334155; font-size: 15px; cursor: pointer; transition: background .12s; }
.lp-x:hover { background: #e2e8f0; }
.lp-modal-head h2 { font-size: 25px; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 6px; padding-right: 34px; color: #0f172a; text-decoration: none; }
.lp-modal-head p { color: #64748b; font-size: 14.5px; line-height: 1.5; margin-bottom: 22px; }
.lp-campo { margin-bottom: 14px; }
.lp-campo label, .lp-segs legend { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin-bottom: 6px; text-decoration: none; }
.lp-campo input, .lp-campo select, .lp-campo textarea { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 13px 14px; font-size: 15px; color: #0f172a; background: #f8fafc; font-family: inherit; transition: border-color .12s, box-shadow .12s, background .12s; }
.lp-campo input::placeholder, .lp-campo textarea::placeholder { color: #94a3b8; }
.lp-campo input:focus, .lp-campo select:focus, .lp-campo textarea:focus { outline: none; background: #fff; border-color: var(--lp-destaque, #16285c); box-shadow: 0 0 0 3px var(--lp-destaque-suave, rgba(22,40,92,.12)); }
.lp-segs { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 8px; margin-bottom: 14px; }
.lp-segs legend { padding: 0 4px; }
.lp-seg { display: flex; align-items: center; gap: 10px; padding: 10px 10px; font-size: 14px; color: #1e293b; cursor: pointer; border-radius: 9px; transition: background .1s; }
.lp-seg:hover { background: #f1f5f9; }
.lp-seg input { width: 18px; height: 18px; accent-color: var(--lp-destaque, #16285c); cursor: pointer; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lp-enviar { width: 100%; margin-top: 10px; padding: 16px; font-size: 16px; border-radius: 14px; }
.lp-consent { font-size: 11.5px; color: #94a3b8; text-align: center; margin-top: 14px; line-height: 1.45; }
.lp-erro { background: #fee2e2; color: #991b1b; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.lp-erro[hidden] { display: none; }

/* Obrigado */
.lp-ok { text-align: center; padding: 22px 6px 6px; }
.lp-ok-ic { font-size: 54px; margin-bottom: 12px; }
.lp-ok h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.lp-ok p { color: #475569; line-height: 1.55; font-size: 15.5px; margin-bottom: 20px; }
.lp-link-fechar { display: block; margin: 16px auto 0; background: none; border: none; color: #64748b; font-size: 13.5px; text-decoration: underline; cursor: pointer; font-family: inherit; }

/* ── Formulário EMBUTIDO no herói ─────────────────────────────────────────
   Quando o herói tem foto e o botão de formulário está ligado, clicar no
   botão troca a foto por este card COM o formulário, no mesmo lugar (em vez
   do popup). A foto some (.lp-hero-aberto) e o card entra com uma animação. */
.lp-hero-lado { position: relative; width: 100%; }
.lp-hero-form { display: none; }
.lp-hero-aberto .lp-hero-img { display: none; }               /* a foto sai */
.lp-hero-aberto .lp-hero-form {                               /* o form entra no lugar */
  display: block; position: relative;
  background: #fff; color: #0f172a;
  max-width: 460px; margin-left: auto; margin-right: auto;
  border-radius: 22px; padding: 30px 28px 26px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: lpFormIn .34s cubic-bezier(.16,.84,.44,1) both;
}
/* barrinha colorida no topo, igual à do modal */
.lp-hero-aberto .lp-hero-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--lp-destaque, #c0212f);
}
@keyframes lpFormIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── Formulário FIXO ao lado (sempre visível no cabeçalho) ────────────────
   Card branco compacto no lado direito do herói. Mais enxuto que o modal:
   campos menores, menos respiro — pra não ficar "grosseiro". */
.lp-hero-form-fixo {
  position: relative; background: #fff; color: #0f172a;
  width: 100%; max-width: 460px; margin-left: auto; margin-right: auto;
  border-radius: 18px; padding: 26px 24px 22px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.30);
}
.lp-hero-form-fixo::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--lp-destaque, #c0212f);
}
/* Cabeçalho do form mais enxuto */
.lp-hero-form-fixo .lp-modal-head h2 { font-size: 21px; margin-bottom: 4px; padding-right: 0; }
.lp-hero-form-fixo .lp-modal-head p { font-size: 13px; line-height: 1.4; margin-bottom: 16px; }
/* Campos compactos */
.lp-hero-form-fixo .lp-campo { margin-bottom: 10px; }
.lp-hero-form-fixo .lp-campo label,
.lp-hero-form-fixo .lp-segs legend { font-size: 11px; margin-bottom: 4px; }
.lp-hero-form-fixo .lp-campo input,
.lp-hero-form-fixo .lp-campo select,
.lp-hero-form-fixo .lp-campo textarea { padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.lp-hero-form-fixo .lp-segs { padding: 6px; margin-bottom: 10px; }
.lp-hero-form-fixo .lp-seg { padding: 6px 8px; font-size: 13px; gap: 8px; }
.lp-hero-form-fixo .lp-seg input { width: 16px; height: 16px; }
.lp-hero-form-fixo .lp-enviar { padding: 13px; font-size: 15px; margin-top: 6px; border-radius: 12px; }
.lp-hero-form-fixo .lp-consent { font-size: 11px; margin-top: 10px; }
.lp-hero-form-fixo .lp-erro { font-size: 12.5px; padding: 8px 10px; }
/* No formulário fixo o cabeçalho tem menos respiro embaixo (o form já preenche) */
.lp-hero-fixo .lp-hero { padding: 56px 0; }

@media (max-width: 760px) {
  .lp-hero { padding: 44px 0; }
  .lp-hero-com-img .lp-hero-in { grid-template-columns: 1fr; }
  .lp-hero-img img { max-height: 280px; }
  .lp-hero p { font-size: 16px; }
  .lp-btn { width: 100%; }
  .lp-secao { padding: 40px 0; }
  .lp-modal { padding: 24px 18px 20px; border-radius: 16px; }
  .lp-hero-aberto .lp-hero-form { padding: 24px 18px 20px; border-radius: 16px; }
  .lp-hero-form-fixo { padding: 22px 16px 18px; border-radius: 16px; margin-top: 26px; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-nums { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .lp-imagem img { max-height: 300px; }
}

/* ══════════════════════════════════════════════════════════════════════
   TEMPLATES (galeria estilo RD Station) — cada .lp-tpl-<id> é uma "pele".
   Só mexem em LAYOUT: fontes, arranjo do cabeçalho, formato de botão,
   fundo. As cores vêm do tema (inline no render). Onde o cabeçalho é
   CLARO, ajustamos botão fantasma e logo pra não sumirem.
   ══════════════════════════════════════════════════════════════════════ */

/* 1) CLÁSSICO — é a base; nada a mudar. */

/* 2) MODERNO — índigo, centralizado, arredondado, muito respiro */
.lp-tpl-moderno .lp-hero { padding: 84px 0; }
.lp-tpl-moderno .lp-hero-in { text-align: center; }
.lp-tpl-moderno .lp-hero-com-img .lp-hero-in { grid-template-columns: 1fr; }
.lp-tpl-moderno .lp-logo { margin-left: auto; margin-right: auto; }
.lp-tpl-moderno .lp-hero p { margin-left: auto; margin-right: auto; }
.lp-tpl-moderno .lp-botoes { justify-content: center; }
.lp-tpl-moderno .lp-btn { border-radius: 14px; padding: 16px 30px; }
.lp-tpl-moderno .lp-hero-img { margin-top: 34px; }
.lp-tpl-moderno .lp-hero-img img { max-height: 380px; border-radius: 18px; }
.lp-tpl-moderno .lp-secao h2 { text-align: center; }
.lp-tpl-moderno .lp-rich { margin-left: auto; margin-right: auto; text-align: center; }

/* 3) DIVIDIDO — cabeçalho partido ao meio, foto de ponta a ponta */
.lp-tpl-split .lp-hero { padding: 0; }
.lp-tpl-split .lp-hero-in { max-width: none; padding: 0; gap: 0; grid-template-columns: 1fr 1fr; min-height: 460px; }
.lp-tpl-split.lp .lp-hero-com-img .lp-hero-in { grid-template-columns: 1fr 1fr; }
.lp-tpl-split .lp-hero-txt { padding: 64px clamp(24px, 5vw, 72px); align-self: center; }
.lp-tpl-split .lp-hero-img { height: 100%; }
.lp-tpl-split .lp-hero-img img { height: 100%; max-height: none; min-height: 460px; border-radius: 0; box-shadow: none; }
@media (max-width: 760px) {
  .lp-tpl-split .lp-hero-in { grid-template-columns: 1fr; min-height: 0; }
  .lp-tpl-split .lp-hero-img img { min-height: 240px; max-height: 280px; }
}

/* 4) MINIMALISTA — cabeçalho branco, texto preto, 1 cor de destaque */
.lp-tpl-minimal .lp-hero { border-bottom: 1px solid #ececec; padding: 72px 0; }
.lp-tpl-minimal .lp-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.lp-tpl-minimal .lp-hero p { opacity: .7; }
.lp-tpl-minimal .lp-btn { border-radius: 6px; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
/* botão fantasma no claro: borda escura em vez de branca */
.lp-tpl-minimal .lp-btn-ghost { background: transparent; color: #111827; border-color: #cbd5e1; }
.lp-tpl-minimal .lp-hero-img img { border-radius: 4px; box-shadow: none; border: 1px solid #ececec; }

/* 5) DEGRADÊ — cabeçalho com degradê vibrante, botões translúcidos */
.lp-tpl-gradiente .lp-hero { background: linear-gradient(135deg, #7c3aed 0%, #ec4899 60%, #f97316 100%) !important; }
.lp-tpl-gradiente .lp-btn-primary { background: rgba(255,255,255,.16) !important; backdrop-filter: blur(6px); border: 1.5px solid rgba(255,255,255,.6); }
.lp-tpl-gradiente .lp-hero-img img { border-radius: 26px; }
.lp-tpl-gradiente .lp-hero h1 { font-size: clamp(32px, 5vw, 52px); }

/* 6) EDITORIAL — serifa, creme, ar de revista */
.lp-tpl-editorial { font-family: Georgia, "Times New Roman", serif; }
.lp-tpl-editorial .lp-hero { padding: 72px 0; }
.lp-tpl-editorial .lp-hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.12; }
.lp-tpl-editorial .lp-hero p { font-style: italic; opacity: .85; }
.lp-tpl-editorial .lp-btn { border-radius: 2px; font-weight: 700; letter-spacing: .04em; }
.lp-tpl-editorial .lp-btn-ghost { background: transparent; color: #1c1917; border-color: #b8a98a; }
.lp-tpl-editorial .lp-hero-img img { border-radius: 2px; border: 1px solid #e4d9bf; box-shadow: 0 20px 50px rgba(60,40,10,.18); }
.lp-tpl-editorial .lp-secao h2 { font-weight: 700; }

/* 7) VIBRANTE — cores quentes, tipos grandes, botões redondos */
.lp-tpl-vibrante .lp-hero { padding: 76px 0; }
.lp-tpl-vibrante .lp-hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 900; letter-spacing: -.02em; }
.lp-tpl-vibrante .lp-btn { border-radius: 999px; padding: 17px 34px; font-size: 16px; font-weight: 900; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.lp-tpl-vibrante .lp-hero-img img { border-radius: 30px; }

/* 8) ESCURO — página inteira escura, destaque ciano */
.lp-tpl-escuro .lp-hero { border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-tpl-escuro .lp-btn-primary { color: #06121a; }
.lp-tpl-escuro .lp-hero-img img { box-shadow: 0 30px 80px rgba(0,0,0,.6); }
/* como a página é escura, as seções e o rodapé precisam de texto claro */
.lp-tpl-escuro .lp-secao h2 { color: #f8fafc; }
.lp-tpl-escuro .lp-rich { color: #cbd5e1; }
.lp-tpl-escuro .lp-rich h1, .lp-tpl-escuro .lp-rich h2, .lp-tpl-escuro .lp-rich h3 { color: #f8fafc; }
.lp-tpl-escuro .lp-rich a { color: #22d3ee; }
.lp-tpl-escuro .lp-rodape { border-top-color: rgba(255,255,255,.1); color: #94a3b8; }
.lp-tpl-escuro .lp-rodape-nome { color: #f8fafc; }
/* blocos novos no escuro: cartão vira translúcido, textos claros */
.lp-tpl-escuro .lp-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.lp-tpl-escuro .lp-card h3 { color: #f8fafc; }
.lp-tpl-escuro .lp-card p { color: #cbd5e1; }
.lp-tpl-escuro .lp-num-r { color: #94a3b8; }
.lp-tpl-escuro .lp-imagem figcaption { color: #94a3b8; }
