/* ==========================================================================
   Blocos da pagina inicial montada no painel (Aparencia > Pagina inicial).
   Tudo aqui usa as variaveis de :root definidas em app.css e sobrescritas
   pelo esquema de cores, entao nenhuma cor aparece literal neste arquivo --
   trocar o tema no painel repinta estes blocos junto com o resto do site.
   ========================================================================== */

.blk { position: relative; }

/* O espacamento vertical vem de um style inline por bloco (BlocoRender), para
   que a borda possa ser arrastada na previa; aqui fica so o que e comum. */
.blk > [data-blk-caixa] { margin-inline: auto; }

/* ------------------------------------------------------------------ fundos */
.blk-f-claro  { background: var(--surface); border-block: 1px solid var(--line); }
.blk-f-suave  { background: var(--bg-2); }
.blk-f-marca  { background: var(--brand); color: var(--brand-contraste, #fff); }
.blk-f-escuro { background: #17140f; color: #f5f3f0; }
.blk-f-imagem { background-size: cover; background-position: center; color: #fff; }

/* Dentro de um fundo forte, os tons de texto do tema claro somem. */
.blk-f-marca h1, .blk-f-marca h2, .blk-f-marca h3, .blk-f-marca b,
.blk-f-escuro h1, .blk-f-escuro h2, .blk-f-escuro h3, .blk-f-escuro b,
.blk-f-imagem h1, .blk-f-imagem h2, .blk-f-imagem h3, .blk-f-imagem b { color: inherit; }

.blk-f-marca .muted, .blk-f-marca .faint, .blk-f-marca .hero-sub, .blk-f-marca .eyebrow,
.blk-f-escuro .muted, .blk-f-escuro .faint, .blk-f-escuro .hero-sub, .blk-f-escuro .eyebrow,
.blk-f-imagem .muted, .blk-f-imagem .faint, .blk-f-imagem .hero-sub, .blk-f-imagem .eyebrow {
  color: inherit; opacity: .82;
}
.blk-f-marca a:not(.btn), .blk-f-escuro a:not(.btn), .blk-f-imagem a:not(.btn) {
  color: inherit; text-decoration: underline;
}
/* O botao primario laranja sobre fundo laranja sumiria. */
.blk-f-marca .btn-primary, .blk-f-imagem .btn-primary {
  background: var(--surface); color: var(--text); border-color: transparent;
}
.blk-f-marca .btn:not(.btn-primary), .blk-f-escuro .btn:not(.btn-primary),
.blk-f-imagem .btn:not(.btn-primary) {
  background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.28);
}
.blk-f-marca .hero-tag, .blk-f-escuro .hero-tag, .blk-f-imagem .hero-tag {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: inherit;
}
.blk-f-marca .hero-tag .ic, .blk-f-escuro .hero-tag .ic, .blk-f-imagem .hero-tag .ic { color: inherit; }

/* A grade decorativa do hero so faz sentido sobre fundo claro. */
.blk-f-marca .hero::before, .blk-f-escuro .hero::before, .blk-f-imagem .hero::before { display: none; }

/* -------------------------------------------------------------- alinhamento */
.blk-al-centro  { text-align: center; }
.blk-al-centro .hero-txt, .blk-al-centro .blk-head { margin-inline: auto; }
.blk-al-centro .hero-acoes, .blk-al-centro .blk-mais { justify-content: center; }
.blk-al-centro .hero-sub { margin-inline: auto; }

.blk-al-direita { text-align: right; }
.blk-al-direita .hero-txt, .blk-al-direita .blk-head { margin-left: auto; }
.blk-al-direita .hero-acoes, .blk-al-direita .blk-mais { justify-content: flex-end; }

@media (max-width: 720px) { .blk-no-mobile { display: none; } }

/* ------------------------------------------------------------- cabecalhos */
.blk-head { margin-bottom: var(--s5); max-width: 62ch; }
.blk-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.035em; margin: 0;
}
.blk-sub { color: var(--muted); margin: var(--s2) 0 0; line-height: 1.6; }

/* -------------------------------------------------------------------- hero */
.blk-hero { margin-bottom: 0; }
.blk-hero-h-compacta { padding-block: var(--s5) var(--s4); }
.blk-hero-h-media    { padding-block: var(--s8) var(--s7); }
.blk-hero-h-alta     { padding-block: var(--s9) var(--s8); }

/* Caixa da imagem: so aparece quando ha espaco para as duas colunas. */
.blk-hero-media { display: none; }

/* Com imagem o hero vira duas colunas. */
@media (min-width: 900px) {
  .blk-hero-img {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: var(--s7); align-items: center;
  }
  .blk-hero-img .hero-txt { max-width: none; }
  .blk-hero-media { display: block; }
  .blk-hero-media img {
    width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-3);
    border: 1px solid var(--line); display: block;
  }
}

.blk-stats { margin-top: 0; }

/* ------------------------------------------------------------- texto livre */
.blk-texto { color: var(--text-2); line-height: 1.7; max-width: 72ch; }
.blk-al-centro .blk-texto { margin-inline: auto; }
.blk-texto > :first-child { margin-top: 0; }
.blk-texto > :last-child  { margin-bottom: 0; }
.blk-texto p  { margin: 0 0 var(--s4); }
.blk-texto h2, .blk-texto h3, .blk-texto h4 {
  color: var(--text); margin: var(--s5) 0 var(--s3); letter-spacing: -.02em;
}
.blk-texto ul, .blk-texto ol { margin: 0 0 var(--s4); padding-left: 1.35em; }
.blk-texto li { margin-bottom: var(--s2); }
.blk-texto a  { color: var(--brand-ink); text-decoration: underline; }
.blk-texto img { border-radius: var(--r); display: block; margin: var(--s4) 0; }
.blk-texto blockquote {
  margin: var(--s4) 0; padding: var(--s3) var(--s5);
  border-left: 3px solid var(--brand); background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2);
}
.blk-texto table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: .92rem; }
.blk-texto th, .blk-texto td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.blk-texto th { font-weight: 700; color: var(--text); }

/* ----------------------------------------------------------------- colunas */
.blk-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blk-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .blk-col-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .blk-col-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .blk-col-2, .blk-col-3, .blk-col-4 { grid-template-columns: minmax(0, 1fr); }
}

.blk-mais { display: flex; margin-top: var(--s5); }

/* ------------------------------------------------------------- diferenciais */
.blk-recursos { display: grid; gap: var(--s5); }
.blk-recurso {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--sh-1);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.blk-recurso:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.blk-recurso h3 { margin: var(--s3) 0 var(--s2); font-size: 1.02rem; letter-spacing: -.02em; }
.blk-recurso p  { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.blk-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r);
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
}
.blk-ico .ic { width: 21px; height: 21px; }
.blk-al-centro .blk-ico { margin-inline: auto; }

/* ---------------------------------------------------------------- galeria */
.blk-galeria { display: grid; gap: var(--s4); }
.blk-galeria figure { margin: 0; }
.blk-galeria img {
  width: 100%; display: block; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface-2); object-fit: cover;
}
.blk-fmt-quadrado img { aspect-ratio: 1/1; }
.blk-fmt-paisagem img { aspect-ratio: 4/3; }
.blk-fmt-retrato  img { aspect-ratio: 3/4; }
.blk-galeria figcaption { font-size: .82rem; color: var(--muted); margin-top: var(--s2); }

.blk-figura { margin: 0; }
.blk-figura img {
  width: 100%; display: block; border-radius: var(--r-xl);
  border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.blk-figura figcaption {
  font-size: .85rem; color: var(--muted); margin-top: var(--s3); text-align: center;
}

/* ------------------------------------------------------------- depoimentos */
.blk-depos { display: grid; gap: var(--s5); }
.blk-depo {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--sh-1);
}
.blk-depo blockquote { margin: var(--s3) 0; color: var(--text-2); line-height: 1.65; }
.blk-depo figcaption { font-weight: 700; font-size: .9rem; }
.blk-estrelas { display: flex; gap: 2px; color: var(--line-strong); }
.blk-estrelas .on { color: var(--amber); }
.blk-estrelas .ic { width: 15px; height: 15px; }

/* --------------------------------------------------------------------- faq */
.blk-faq { display: grid; gap: var(--s2); max-width: 74ch; }
.blk-al-centro .blk-faq { margin-inline: auto; text-align: left; }
.blk-faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.blk-faq summary {
  cursor: pointer; padding: var(--s4) var(--s5); font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  transition: background var(--t);
}
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq summary:hover { background: var(--surface-2); }
.blk-faq summary .ic { flex: none; color: var(--muted); transition: transform var(--t); }
.blk-faq details[open] summary .ic { transform: rotate(180deg); }
.blk-faq-resp {
  padding: 0 var(--s5) var(--s4); color: var(--text-2); line-height: 1.65; font-size: .94rem;
}

/* ------------------------------------------------------------------- cta */
.blk-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); flex-wrap: wrap;
}
.blk-cta h2 { margin: 0 0 var(--s2); font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -.03em; }
.blk-cta p  { margin: 0; color: var(--muted); max-width: 56ch; }
.blk-al-centro .blk-cta { flex-direction: column; text-align: center; }

/* ------------------------------------------------------------- categorias */
.blk-cats { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.blk-cat {
  display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start;
  padding: var(--s5); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--text); box-shadow: var(--sh-1);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color var(--t);
}
.blk-cat:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-2); color: var(--text); }
.blk-cat .nm { font-weight: 700; letter-spacing: -.02em; }
.blk-pills { display: flex; flex-wrap: wrap; gap: var(--s3); }
.blk-al-centro .blk-pills { justify-content: center; }

/* --------------------------------------------------------------- separador */
.blk-sep { display: flex; align-items: center; }
.blk-sep hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ------------------------------------------------- barra de previa (admin) */
.previa-barra {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: 9px 22px; background: var(--amber-soft);
  border-bottom: 1px solid var(--amber-line); color: var(--amber);
  font-size: .86rem; font-weight: 600;
}
.previa-barra .btn { margin-left: auto; }

/* ------------------------------------------------ topo e rodape editaveis */

/* Faixa de aviso acima do cabecalho. Fica FORA do header sticky, entao rola
   junto com a pagina em vez de ocupar altura fixa de tela para sempre. */
.site-aviso {
  padding: 8px 22px; text-align: center; font-size: .85rem;
  font-weight: 600; line-height: 1.4;
}
.site-aviso a { color: inherit; text-decoration: underline; }
.aviso-marca  { background: var(--brand); color: var(--brand-contraste, #fff); }
.aviso-escuro { background: #17140f; color: #f5f3f0; }
.aviso-suave  {
  background: var(--brand-soft); color: var(--brand-ink);
  border-bottom: 1px solid var(--brand-line);
}

/* Sem o menu fixo, o cabecalho rola junto com o resto da pagina. */
.site-header.nao-fixo { position: static; }

/* Logo enviado no painel. A altura vem de la, num style inline; aqui so entra
   o que nao muda: nunca distorcer e nunca estourar a largura do cabecalho. */
.brand-logo {
  display: block; width: auto; max-width: 220px; object-fit: contain;
}
@media (max-width: 560px) { .brand-logo { max-width: 150px; } }
tail -18 assets/css/blocos.css
