/* Caminho: public/assets/publico/css/publico.css
   Site institucional da RomaLogic — NÃO usar em sites de clientes (esse
   é o layout classico, em app/Templates/portal/layouts/classico/). */

:root {
  --navy:   #1B2A4A;
  --gold:   #C9A84C;
  --gold-l: #F0D98B;
  --bg:     #F7F8FA;
  --muted:  #4A5568;
  --border: #E2E8F0;
  --navy-escuro:  #101d38;
  --fonte-corpo:   'Inter', sans-serif;
  --fonte-titulos: 'Playfair Display', serif;
}

body { font-family: var(--fonte-corpo); background: var(--bg); color: var(--navy); }
h1, h2, h3, .serif { font-family: var(--fonte-titulos); }

/* ── Navbar ── */
.pub-nav {
  background: var(--navy);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.pub-nav .brand { font-family: var(--fonte-titulos); color: #fff; font-size: 1.2rem; text-decoration: none; }
.pub-nav .brand span { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none; border: none; color: #fff; font-size: 1.5rem;
  padding: .25rem .5rem; cursor: pointer;
}
.pub-nav .nav-links { display: flex; align-items: center; gap: 1.5rem; }
.pub-nav .nav-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .875rem; transition: color .15s; }
.pub-nav .nav-links a:hover { color: #fff; }
.pub-nav .nav-links a.active { color: var(--gold); }

.btn-gold {
  background: var(--gold); color: var(--navy) !important; padding: .45rem 1.1rem;
  border-radius: 6px; font-weight: 600; font-size: .85rem; text-decoration: none; transition: opacity .15s;
}
.btn-gold:hover { opacity: .88; }

/* ── Seções ── */
.section { padding: 5rem 0; }
.section-tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.section-title { font-size: 2rem; color: var(--navy); margin-bottom: .75rem; }
.section-sub { color: var(--muted); font-size: .95rem; line-height: 1.7; max-width: 520px; }

/* ── Cards ── */
.rl-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; height: 100%; transition: box-shadow .2s, transform .2s; }
.rl-card:hover { box-shadow: 0 6px 24px rgba(27,42,74,.08); transform: translateY(-2px); }
.rl-card.gold-top { border-top: 3px solid var(--gold); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #EEF2FF;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem;
}

/* ── Botões ── */
.btn-navy { background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: .7rem 1.75rem; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-navy:hover { opacity: .87; color: #fff; }
.btn-gold-lg { background: var(--gold); color: var(--navy); border: none; border-radius: 8px; padding: .75rem 2rem; font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-gold-lg:hover { opacity: .88; color: var(--navy); }
.btn-outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px; padding: .7rem 1.75rem; font-weight: 500; font-size: .9rem; text-decoration: none; display: inline-block; transition: border-color .15s; }
.btn-outline-w:hover { border-color: #fff; color: #fff; }

/* ── Hero (home) ── */
.hero-pub {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-escuro) 100%);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-pub::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
}
.hero-pub .eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,.35); border-radius: 999px; padding: .35rem 1rem; margin-bottom: 1.5rem;
}
.hero-pub h1 { color: #fff; font-size: 3rem; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-pub h1 em { color: var(--gold); font-style: normal; }
.hero-pub p.lead { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2.25rem; line-height: 1.7; }
.hero-pub .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Blog / vazio elegante ── */
.blog-vazio {
  border: 1.5px dashed var(--border); border-radius: 14px; padding: 3rem 2rem; text-align: center; color: var(--muted); background: #fff;
}
.blog-vazio i { font-size: 1.75rem; color: var(--gold); display: block; margin-bottom: .75rem; }

/* ── Formulário de orçamento: etapas, radio-cards, módulo selecionado ── */
.form-step-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.25rem;
}
.form-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold-l);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.radio-card {
  display: flex; align-items: flex-start; gap: .75rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s, background .15s;
  height: 100%;
}
.radio-card:hover { border-color: var(--gold); }
.radio-card.is-checked { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, white); }
.modulo-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.modulo-card.is-checked {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 5%, white);
  box-shadow: 0 2px 10px rgba(201,168,76,.15);
}
.link-saiba-mais { font-size: .76rem; color: var(--gold); text-decoration: underline; cursor: pointer; }
.form-section-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; margin-bottom: 2rem;
}

/* ── Hero de post individual (com imagem de destaque de fundo) ── */
.post-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 9rem 0 6rem;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,.45) 0%, rgba(16,29,56,.88) 100%);
}
.post-hero .post-hero-content { position: relative; z-index: 1; }

/* Sem imagem destaque: gradiente elegante (igual a home) no lugar da foto,
   e sem o overlay de contraste (só é necessário sobre foto) */
.post-hero--sem-imagem {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-escuro) 100%);
}
.post-hero--sem-imagem::before { display: none; }

/* ── Hero split (texto + imagem lado a lado) ── */
.hero-split { background: var(--navy); padding: 5rem 0; }
.hero-split img {
  border-radius: 16px; width: 100%; height: 100%;
  object-fit: cover; max-height: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ── Hero split invertido (imagem à esquerda) ── */
@media (min-width: 768px) {
  .hero-split--invertido .row { flex-direction: row-reverse; }
}

/* ── Hero perfil (foto redonda) e perfil lateral ── */
.hero-perfil { padding: 5rem 0 4rem; }
.hero-perfil h1 { font-size: 2.5rem; margin-bottom: .75rem; }
.hero-perfil p { font-size: 1.1rem; line-height: 1.7; }
.hero-foto-redonda {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--gold); box-shadow: 0 10px 30px rgba(27,42,74,.18);
  margin-bottom: 1.75rem;
}
.hero-foto-redonda--grande { width: 260px; height: 260px; margin-bottom: 0; }

/* ── Hero minimalista (só tipografia) ── */
.hero-minimalista { padding: 6rem 0 4.5rem; }
.hero-minimalista-filete { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 1.5rem; }
.hero-minimalista h1 { font-size: 3.2rem; line-height: 1.1; max-width: 820px; margin-bottom: 1.25rem; }
.hero-minimalista p { font-size: 1.15rem; line-height: 1.7; max-width: 640px; margin-bottom: 2rem; }

/* ── MicroBlog (feed, página do post e seção da home) ── */
.mb-feed { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: var(--navy); text-align: left; }
.mb-feed--card .mb-post { height: 100%; }
.mb-post { display: flex; gap: .85rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.mb-post:last-child { border-bottom: none; }
.mb-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.mb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mb-avatar span { font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.mb-corpo { flex: 1; min-width: 0; }
.mb-cabecalho { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; font-size: .9rem; margin-bottom: .2rem; }
.mb-nome { font-weight: 700; }
.mb-arroba, .mb-ponto, .mb-data { color: #6b7280; }
.mb-data { text-decoration: none; }
.mb-data:hover { text-decoration: underline; color: #6b7280; }
.mb-fixado { margin-left: auto; font-size: .75rem; color: var(--gold); font-weight: 600; }
.mb-texto { font-size: .98rem; line-height: 1.6; overflow-wrap: anywhere; }
.mb-texto a { color: var(--gold); text-decoration: none; font-weight: 500; }
.mb-texto a:hover { text-decoration: underline; }
.mb-mostrar-mais { background: none; border: none; padding: 0; color: var(--gold); font-weight: 600; font-size: .92rem; cursor: pointer; }
.mb-mostrar-mais:hover { text-decoration: underline; }
.mb-imagem { display: block; margin-top: .75rem; }
.mb-imagem img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.mb-link-card { display: block; margin-top: .75rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--navy); transition: border-color .15s, background .15s; }
.mb-link-card:hover { border-color: var(--gold); background: #fcfbf7; color: var(--navy); }
.mb-link-card img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border-bottom: 1px solid var(--border); }
.mb-link-info { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; }
.mb-link-dominio { font-size: .78rem; color: #6b7280; }
.mb-link-titulo { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.mb-link-descricao { font-size: .84rem; color: #6b7280; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mb-acoes { display: flex; gap: 1.25rem; margin-top: .6rem; }
.mb-acoes a, .mb-acoes button { background: none; border: none; padding: 0; color: #9ca3af; font-size: 1rem; text-decoration: none; cursor: pointer; }
.mb-acoes a:hover, .mb-acoes button:hover { color: var(--gold); }
.mb-feed--unico .mb-post { padding: 1.5rem 1.75rem; }
.mb-feed--unico .mb-texto { font-size: 1.08rem; }
/* MicroBlog — layout "linha do tempo" (linha vertical + ponto + data) */
.mb-linha-tempo { position: relative; max-width: 680px; padding-left: 2.25rem; }
.mb-linha-tempo::before { content: ''; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--gold), rgba(201,168,76,.15)); border-radius: 2px; }
.mb-lt-item { position: relative; margin-bottom: 1.75rem; }
.mb-lt-item:last-child { margin-bottom: 0; }
.mb-lt-ponto { position: absolute; left: -2.25rem; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.mb-lt-ponto--fixado { background: var(--gold); }
.mb-lt-data { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); text-decoration: none; margin-bottom: .45rem; }
.mb-lt-data:hover { color: var(--gold); text-decoration: underline; }
.mb-lt-data .mb-fixado { text-transform: none; letter-spacing: 0; margin-left: .5rem; }
.mb-linha-tempo .mb-post { padding: 1rem 1.25rem; }
.secao-texto-claro .mb-lt-ponto { box-shadow: 0 0 0 4px var(--navy); }

.mb-carrossel { max-width: 680px; padding-bottom: 2.5rem; }
.mb-carrossel-indicadores { margin-bottom: 0; }
.mb-carrossel-indicadores [data-bs-target] { background-color: var(--gold); width: 10px; height: 10px; border-radius: 50%; border: none; }
.mb-tag-chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: .82rem; text-decoration: none; }
.mb-tag-chip small { color: #9ca3af; }
.mb-tag-chip:hover, .mb-tag-chip.ativo { border-color: var(--gold); color: var(--navy); background: rgba(201,168,76,.1); }

/* ── Diferenciais: layout "lista horizontal com divisórias" ── */
.diferenciais-lista {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.diferenciais-lista .item {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.25rem 2rem; border-right: 1px solid var(--border);
  font-size: .9rem;
}
.diferenciais-lista .item:last-child { border-right: none; }
.diferenciais-lista .item i { color: var(--gold); font-size: 1.1rem; }

/* ── Como funciona: layout "linha do tempo conectada" ──
   Conector por coluna (::before/::after), não uma linha única
   calculada em % do container — essa abordagem antiga desalinhava
   com o centro real dos ícones (a % dependia de quantas colunas
   existiam, e não acompanhava). Cada coluna desenha metade da linha
   pra cada lado do próprio ícone (que fica com uma folga de 24px —
   metade da largura dele — pra não sobrepor); a 1ª coluna não tem
   metade esquerda, a última não tem metade direita. Ícone vira um
   "nó": anel dourado + fundo sólido, pra ficar óbvio que é outro
   layout num relance, não só um detalhe sutil. */
.como-funciona-linha .linha-step { position: relative; }
.como-funciona-linha .linha-step::before,
.como-funciona-linha .linha-step::after {
  content: ''; position: absolute; top: 24px; height: 3px;
  background: var(--gold); opacity: .55; z-index: 1;
}
.como-funciona-linha .linha-step::before { left: 0; right: 50%; margin-right: 24px; }
.como-funciona-linha .linha-step::after { left: 50%; right: 0; margin-left: 24px; }
.como-funciona-linha .linha-step:first-child::before,
.como-funciona-linha .linha-step:last-child::after { display: none; }
.como-funciona-linha .card-icon {
  position: relative; z-index: 2;
  background: #fff; border: 2px solid var(--gold);
}
.secao-texto-claro.section .como-funciona-linha .card-icon { background: var(--navy); }

/* ── Como funciona: layout "lista vertical" ── */
.como-funciona-lista-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.como-funciona-lista-item:last-child { border-bottom: none; }
.como-funciona-lista-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.secao-texto-claro .como-funciona-lista-item { border-color: rgba(255,255,255,.15); }

/* ── Seção com fundo navy: adapta texto/cards pra continuar legível ── */
.secao-texto-claro { color: rgba(255,255,255,.85); }
.secao-texto-claro h2.serif,
.secao-texto-claro h2.section-title { color: #fff; }
.secao-texto-claro .text-muted { color: rgba(255,255,255,.6) !important; }
.secao-texto-claro .rl-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.secao-texto-claro .rl-card .fw-semibold,
.secao-texto-claro .rl-card h3 { color: #fff; }
.secao-texto-claro .diferenciais-lista { border-color: rgba(255,255,255,.15); }
.secao-texto-claro .diferenciais-lista .item { border-color: rgba(255,255,255,.15); }

/* ── Blog na home: layout lista horizontal ── */
.blog-lista-item {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.blog-lista-item:last-child { border-bottom: none; }
.blog-lista-item img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.secao-texto-claro .blog-lista-item { border-color: rgba(255,255,255,.15); }

/* ── Blog na home: layout destaque (1º post grande) ── */
.blog-destaque-principal { border-radius: 16px; overflow: hidden; position: relative; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.blog-destaque-principal::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(16,29,56,.9) 100%); }
.blog-destaque-principal .conteudo { position: relative; z-index: 1; padding: 1.75rem; color: #fff; }

/* ── CTA banner ── */
.cta-banner { background: var(--navy); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.65); font-size: .95rem; margin-bottom: 2rem; }

/* ── Footer ── */
.pub-footer { background: #111827; padding: 3rem 0 1.5rem; }
.pub-footer .brand { font-family: var(--fonte-titulos); color: #fff; font-size: 1.1rem; }
.pub-footer .brand span { color: var(--gold); }
.pub-footer p { color: rgba(255,255,255,.4); font-size: .8rem; }
.pub-footer a { color: rgba(255,255,255,.55); font-size: .85rem; text-decoration: none; }
.pub-footer a:hover { color: var(--gold); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 1.5rem 0; }

/* ── Flash ── */
.flash-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 991px) {
  /* Nav vira hambúrguer — links empilham num painel que desce do topo */
  .nav-toggle { display: block; }
  .pub-nav { padding: 0 1.25rem; }
  .pub-nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: .5rem 1.25rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 999;
  }
  .pub-nav .nav-links.aberto { display: flex; }
  .pub-nav .nav-links a {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1rem;
  }
  .pub-nav .nav-links a:last-of-type { border-bottom: none; }
  .pub-nav .nav-links .btn-gold { margin-top: 1rem; text-align: center; }
}

@media (max-width: 767px) {
  /* Hero institucional */
  .hero-pub { padding: 3rem 0 2.5rem; }
  .hero-pub h1 { font-size: 1.85rem; line-height: 1.25; }
  .hero-pub p.lead { font-size: .95rem; padding: 0 .5rem; }
  .hero-pub .cta-row { flex-direction: column; align-items: stretch; }
  .hero-pub .cta-row a { text-align: center; }

  /* Hero split (com imagem) — imagem sobe pra cima do texto, altura controlada */
  .hero-split { padding: 3rem 0; }
  .hero-split .row { flex-direction: column-reverse; }
  .hero-split img { max-height: 240px; margin-bottom: 1.5rem; }
  .hero-perfil { padding: 3rem 0 2.5rem; }
  .hero-perfil h1, .hero-minimalista h1 { font-size: 1.9rem; }
  .hero-foto-redonda { width: 140px; height: 140px; }
  .hero-foto-redonda--grande { width: 180px; height: 180px; }
  .hero-perfil-lateral-texto { text-align: center; }
  .hero-minimalista { padding: 3.5rem 0 3rem; }

  /* Seções em geral — respiro menor */
  .section { padding: 3rem 0; }
  .section h2.serif, .section-title { font-size: 1.35rem !important; }
  .section-sub { font-size: .88rem; }

  /* Diferenciais lista — para de ficar em linha, empilha */
  .diferenciais-lista { flex-direction: column; border: none; }
  .diferenciais-lista .item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: flex-start; }
  .diferenciais-lista .item:last-child { border-bottom: none; }

  /* Como funciona (linha conectada) — sem os conectores quando empilha (coluna já deixa claro a sequência) */
  .como-funciona-linha .linha-step::before,
  .como-funciona-linha .linha-step::after { display: none; }

  /* Blog destaque — imagem principal mais baixa */
  .blog-destaque-principal { min-height: 220px; }

  /* CTA banner */
  .cta-banner { padding: 3rem 0; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* Cards de ícone (features) — texto/ícone menores, menos espaço */
  .card-icon { width: 48px; height: 48px; font-size: 1.1rem; }

  /* Formulário de orçamento — cards com menos padding em tela pequena */
  .form-section-card { padding: 1.25rem !important; }
  .form-step-title { font-size: .95rem; }
  .radio-card, .modulo-card { padding: .85rem !important; }

  /* Footer — colunas já empilham via Bootstrap, só ajusta o espaçamento */
  .pub-footer { padding: 2.5rem 0 1.25rem; }
  .pub-footer .row.g-4 > div { margin-bottom: 1.25rem; }
  .pub-footer .d-flex.justify-content-between { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-pub h1 { font-size: 1.6rem; }
  .pub-nav .brand { font-size: 1.05rem; }
}

