/* Igreja Batista Ágape — estilo sóbrio, cores chapadas, fundo claro */
:root {
  --azul: #2B4C9B;
  --azul-claro: #1864B2;
  --vermelho: #D10A0A;
  --vermelho-escuro: #A80808;
  --texto: #333333;
  --texto-suave: #5b6270;
  --fundo: #FFFFFF;
  --fundo-alt: #F4F6FA;
  --borda: #DCE1EA;
  --sucesso: #1E7A3E;
  --raio: 8px;
  --largura: 1120px;
  --sombra: 0 1px 3px rgba(20, 35, 70, .08);
  --fonte-rotulo: 'Cinzel', Georgia, serif;
  --fonte-titulo: 'Montserrat', Arial, sans-serif;
  --fonte-texto: 'Open Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--azul-claro); }
a:hover { color: var(--azul); }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 2px; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--raio); }
.pular:focus { left: 8px; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--borda);
}
.topo .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.topo .logo img { height: 50px; width: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu a {
  display: block; padding: 8px 14px; border-radius: var(--raio);
  font-family: var(--fonte-titulo); font-weight: 600; font-size: .92rem;
  color: var(--azul); text-decoration: none;
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--fundo-alt); }
.menu-botao {
  display: none; background: none; border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 8px 10px; cursor: pointer; color: var(--azul);
}
.menu-botao svg { display: block; }

@media (max-width: 820px) {
  .menu-botao { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--borda);
    display: none;
  }
  .menu.aberto { display: block; }
  .menu ul { flex-direction: column; padding: 8px 12px 16px; }
  .menu a { padding: 12px; font-size: 1rem; }
  .topo .logo img { height: 42px; }
}

/* ---------- Tipografia ---------- */
.rotulo {
  font-family: var(--fonte-rotulo);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--azul-claro);
  margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--fonte-titulo); color: var(--azul); line-height: 1.2; margin: 0 0 16px; }
h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 16px; }
.intro { font-size: 1.08rem; color: var(--texto-suave); max-width: 680px; }

/* ---------- Seções ---------- */
.secao { padding: 80px 0; }
.secao.alt { background: var(--fundo-alt); }
.secao.azul { background: var(--azul); color: #fff; }
.secao.azul h2, .secao.azul h3 { color: #fff; }
.secao.azul .rotulo { color: #C9D6F2; }
.secao.azul .intro { color: #E3E9F7; }
.cabecalho-secao { margin-bottom: 40px; }
.cabecalho-secao.centro { text-align: center; }
.cabecalho-secao.centro .intro { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .secao { padding: 56px 0; } }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--raio); border: 2px solid transparent;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s;
  line-height: 1.2;
}
.botao.primario { background: var(--vermelho); color: #fff; }
.botao.primario:hover { background: var(--vermelho-escuro); color: #fff; }
.botao.secundario { background: transparent; color: var(--azul); border-color: var(--azul); }
.botao.secundario:hover { background: var(--azul); color: #fff; }
.botao.claro { background: transparent; color: #fff; border-color: #fff; }
.botao.claro:hover { background: #fff; color: var(--azul); }
.botao[disabled] { opacity: .55; cursor: not-allowed; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--azul); color: #fff;
  padding: 96px 0 104px;
}
.hero .coracao {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 520px; max-width: 70%; opacity: .14; pointer-events: none;
}
.hero .container { position: relative; }
.hero .rotulo { color: #C9D6F2; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .subtitulo { font-size: 1.2rem; max-width: 600px; color: #E3E9F7; margin-bottom: 20px; }
.hero .culto-principal {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 32px; font-weight: 600;
}
.pagina-titulo { background: var(--azul); color: #fff; padding: 64px 0; }
.pagina-titulo h1 { color: #fff; margin: 0; }
.pagina-titulo .rotulo { color: #C9D6F2; }

/* ---------- Cards e grades ---------- */
.grade { display: grid; gap: 20px; }
.grade.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grade.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grade.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 24px; box-shadow: var(--sombra);
}
.secao.alt .card { border-color: #E3E7EF; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icone { width: 40px; height: 40px; color: var(--azul-claro); margin-bottom: 12px; display: block; }

.agenda-dia .dia {
  font-family: var(--fonte-rotulo); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--azul-claro); font-size: .85rem;
}
.agenda-dia .hora { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.8rem; color: var(--azul); line-height: 1.1; margin: 4px 0; }
.endereco-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 20px 24px; border-radius: var(--raio); background: var(--fundo-alt); }
.endereco-linha p { margin: 0; }

.lista-check { list-style: none; padding: 0; margin: 0 0 24px; }
.lista-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.lista-check li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--azul-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat;
}

.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .duas-colunas { grid-template-columns: 1fr; gap: 32px; } }

/* Espaço reservado para fotos reais da igreja */
.foto {
  aspect-ratio: 4 / 3; border-radius: var(--raio); overflow: hidden;
  background: #DDE4F1; display: flex; align-items: center; justify-content: center;
  color: var(--azul); font-family: var(--fonte-titulo); font-weight: 600; font-size: .9rem; text-align: center;
  border: 1px dashed #AFC0E0;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.retrato { aspect-ratio: 1 / 1; }

/* Eventos */
.evento .meta { color: var(--texto-suave); font-size: .92rem; margin-bottom: 12px; }
.evento .meta div { display: flex; gap: 8px; }
.evento .preco { font-family: var(--fonte-titulo); font-weight: 800; color: var(--azul); font-size: 1.25rem; margin-bottom: 4px; }
.evento .vagas { font-size: .85rem; color: var(--texto-suave); margin-bottom: 16px; }
.evento .encerrado { font-weight: 700; color: var(--texto-suave); }
.evento { display: flex; flex-direction: column; }
.evento .botao { margin-top: auto; align-self: flex-start; }

/* Futuro */
.projeto .etapa { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--azul); background: var(--fundo-alt); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.projeto .foto { margin-bottom: 16px; aspect-ratio: 16/9; }

/* Células (cards vindos do admin) */
.celulas { margin-bottom: 32px; }
.celulas-reserva { grid-column: 1 / -1; margin: 0; font-size: 1.05rem; }
.celula { overflow: hidden; }
.celula .foto { aspect-ratio: 4 / 3; margin: -24px -24px 20px; border: 0; border-radius: 0; }
.celula h3 { margin-bottom: 4px; }
.celula p { color: var(--texto-suave); }

/* Contribua / PIX */
.pix { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: #fff; color: var(--texto); border-radius: var(--raio); padding: 32px; }
.pix .qr { width: 200px; height: 200px; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px; }
.pix .qr svg, .pix .qr img { width: 100%; height: 100%; }
.pix .chave { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.15rem; color: var(--azul); word-break: break-all; margin-bottom: 4px; }
.pix .favorecido { color: var(--texto-suave); font-size: .92rem; margin-bottom: 20px; }
@media (max-width: 640px) { .pix { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px; } .pix .botoes { justify-content: center; } }

/* Formulários */
.formulario { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); }
.campo { margin-bottom: 18px; }
.campo label, .campo legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.campo .dica { font-weight: 400; color: var(--texto-suave); font-size: .85rem; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="time"], input[type="url"],
input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; color: var(--texto);
  padding: 11px 13px; border: 1px solid #C3CBD9; border-radius: var(--raio); background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(24,100,178,.18); }
.linha-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .linha-campos { grid-template-columns: 1fr; } .formulario { padding: 20px; } }
fieldset { border: 0; padding: 0; margin: 0; }
.opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.opcao { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.opcao input { width: 18px; height: 18px; accent-color: var(--azul-claro); }
.consentimento {
  display: flex; gap: 10px; align-items: flex-start; background: var(--fundo-alt);
  border-radius: var(--raio); padding: 14px; font-size: .9rem; margin-bottom: 18px;
}
.consentimento input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--azul-claro); }
.armadilha { position: absolute; left: -5000px; }
.aviso { border-radius: var(--raio); padding: 14px 16px; margin-top: 16px; font-weight: 600; }
.aviso.ok { background: #E7F5EC; color: var(--sucesso); }
.aviso.erro { background: #FCEAEA; color: var(--vermelho-escuro); }
.aviso:empty { display: none; }

/* Rodapé */
.rodape { background: var(--azul); color: #DCE4F5; padding: 56px 0 28px; font-size: .95rem; }
.rodape h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.rodape a { color: #fff; }
.rodape .grade { gap: 32px; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: 6px; }
.rodape .marca { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.4rem; color: #fff; line-height: 1.1; }
.rodape .marca small { display: block; font-family: var(--fonte-rotulo); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: #C9D6F2; margin-top: 6px; }
.rodape .final { border-top: 1px solid rgba(255,255,255,.2); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }

/* WhatsApp flutuante */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.whatsapp:hover { background: #178A45; color: #fff; }
.whatsapp svg { width: 30px; height: 30px; }

/* Surgimento suave ao rolar */
.surgir { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.surgir.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surgir { opacity: 1; transform: none; transition: none; }
}

/* Página de inscrição / retorno */
.caixa-central { max-width: 640px; margin: 0 auto; }
.resumo-evento { background: var(--fundo-alt); border-radius: var(--raio); padding: 18px 20px; margin-bottom: 24px; }
.resumo-evento p { margin: 0; }
.estado { text-align: center; }
.estado .simbolo { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.estado .simbolo.ok { background: #E7F5EC; color: var(--sucesso); }
.estado .simbolo.espera { background: #FFF5DF; color: #9A6700; }
.estado .simbolo.erro { background: #FCEAEA; color: var(--vermelho-escuro); }
.estado .simbolo svg { width: 36px; height: 36px; }

.texto-legal h2 { font-size: 1.3rem; margin-top: 32px; }
.texto-legal { max-width: 760px; }

.provisorio { outline: 2px dashed #E0A800; outline-offset: 2px; }
.secao.azul .pix .rotulo { color: var(--azul-claro); }

/* ---------- Conta do usuário ---------- */
/* Link "Entrar" / "Minha conta" no topo: discreto, separado dos 5 itens do menu */
.menu .menu-conta a { color: var(--texto-suave); font-weight: 600; font-size: .85rem; }
.menu .menu-conta:first-of-type { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--borda); }
.menu .menu-conta + .menu-conta { margin-left: 0; padding-left: 0; border-left: 0; }
.menu .menu-admin a { color: var(--vermelho-escuro); }
@media (max-width: 820px) {
  .menu .menu-conta:first-of-type { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--borda); }
  .menu .menu-conta a { font-size: .95rem; }
}

.caixa-estreita { max-width: 520px; margin: 0 auto; }
.abas-site { display: flex; gap: 6px; border-bottom: 1px solid var(--borda); margin: 8px 0 20px; }
.abas-site button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: 700 .95rem var(--fonte-titulo); color: var(--texto-suave); cursor: pointer; }
.abas-site button[aria-selected="true"] { color: var(--azul); border-bottom-color: var(--azul); }
.caixa-google { margin: 8px 0 4px; }
.caixa-google .dica { color: var(--texto-suave); font-size: .85rem; margin: 10px 0 0; }
.botao.google { width: 100%; background: #fff; color: #3c4043; border-color: #C3CBD9; }
.botao.google:hover { background: var(--fundo-alt); color: #3c4043; }
.separador { display: flex; align-items: center; gap: 12px; color: var(--texto-suave); font-size: .85rem; margin: 20px 0 4px; }
.separador::before, .separador::after { content: ''; flex: 1; border-top: 1px solid var(--borda); }
.aviso-logado { background: #EAF1FB; color: var(--azul); border-radius: var(--raio); padding: 10px 14px; font-size: .9rem; font-weight: 600; margin: 0 0 18px; }
.titulo-bloco { font-size: 1.3rem; margin: 40px 0 14px; }
.lista-inscricoes { display: grid; gap: 12px; }
.inscricao-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; }
.inscricao-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.inscricao-item .dica { margin: 0; color: var(--texto-suave); font-size: .9rem; }
.inscricao-status { display: flex; align-items: center; gap: 14px; }
.selo { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.selo.paga, .selo.confirmada { background: #E7F5EC; color: var(--sucesso); }
.selo.aguardando_pagamento { background: #FFF5DF; color: #9A6700; }
.selo.cancelada, .selo.expirada { background: #EEF0F4; color: var(--texto-suave); }
.conta-acoes { margin: 40px 0 12px; }
.botao.perigo { background: transparent; color: var(--vermelho-escuro); border-color: var(--vermelho-escuro); }
.botao.perigo:hover { background: var(--vermelho-escuro); color: #fff; }

/* ---------- Ministérios (index) e Nossa história (sobre) ---------- */
.grade.duas-fixas { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grade.duas-fixas { grid-template-columns: 1fr; } }
.pilulas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pilulas li { font-size: .85rem; font-weight: 700; color: var(--azul); background: var(--fundo-alt); border-radius: 999px; padding: 4px 12px; }
.secao.alt .pilulas li { background: #fff; border: 1px solid var(--borda); }
.card .destaque { color: var(--azul); }
.duas-colunas.topo-alinhado { align-items: start; }
.subtitulo { font-size: 1.08rem; color: var(--texto-suave); margin-top: -6px; }
.pastores { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--borda); }
.pastores h3 { margin-bottom: 6px; }
.pastores-nome { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.2rem; color: var(--azul); margin-bottom: 12px; }
.pastores blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--vermelho); font-style: italic; color: var(--texto); }

/* =====================================================================
   Visual 2: tipografia clássica, ornamentos, luz no topo e curvas
   (camada final; sobrescreve as regras básicas acima)
   ===================================================================== */
:root {
  --raio-card: 12px;
  --azul-escuro: #22408A;
  --azul-claro-fundo: #EAF1FB;
  /* ornamento: duas linhas finas com um coração vermelho no meio */
  --ornamento: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 12'%3E%3Cpath d='M0 6.5h28M48 6.5h28' stroke='%231864B2' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M38 11.2C33 7.8 31.5 5.6 32.6 3.3c1-2 3.8-2.2 5.4-.1 1.6-2.1 4.4-1.9 5.4.1 1.1 2.3-.4 4.5-5.4 7.9z' fill='%23D10A0A'/%3E%3C/svg%3E");
  --ornamento-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 12'%3E%3Cpath d='M0 6.5h28M48 6.5h28' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1'/%3E%3Cpath d='M38 11.2C33 7.8 31.5 5.6 32.6 3.3c1-2 3.8-2.2 5.4-.1 1.6-2.1 4.4-1.9 5.4.1 1.1 2.3-.4 4.5-5.4 7.9z' fill='%23D10A0A'/%3E%3C/svg%3E");
  /* traços curvos do coração, para textura bem sutil */
  --textura-coracao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 360' fill='none' stroke='%232B4C9B' stroke-opacity='.045' stroke-linecap='round'%3E%3Cpath d='M200 330C90 250 20 180 30 105 40 40 120 15 170 60c15 15 25 35 30 55' stroke-width='16'/%3E%3Cpath d='M200 115c15-45 65-85 120-70 65 20 70 105 10 170-40 45-85 80-130 115' stroke-width='16'/%3E%3Cpath d='M200 290C120 235 75 180 82 125c6-40 53-55 83-25' stroke-width='9'/%3E%3C/svg%3E");
  /* brilho de luz vindo de cima + linhas finas */
  --luz-azul: radial-gradient(ellipse 75% 60% at 50% -8%, rgba(255,255,255,.26), rgba(255,255,255,.06) 45%, rgba(255,255,255,0) 72%),
              repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 1px, transparent 1px 15px),
              linear-gradient(180deg, var(--azul) 0%, var(--azul-escuro) 100%);
}

/* ---------- Tipografia ---------- */
h1, h2 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.15; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); line-height: 1.22; }
.rotulo { font-family: var(--fonte-titulo); font-weight: 700; letter-spacing: .2em; font-size: .74rem; }
.rotulo::before { content: ''; display: block; width: 76px; height: 12px; margin: 0 0 12px; background: var(--ornamento) no-repeat center / contain; }
.centro .rotulo::before, .pagina-titulo .rotulo::before, .estado .rotulo::before { margin-left: auto; margin-right: auto; }
.secao.azul .rotulo::before, .pagina-titulo .rotulo::before { background-image: var(--ornamento-claro); }
.card .rotulo::before, .pix .rotulo::before, .formulario .rotulo::before { display: none; }
/* No celular, o ornamento, o rótulo e o título de cada seção ficam centralizados, como o versículo */
@media (max-width: 640px) {
  .cabecalho-secao { text-align: center; }
  .cabecalho-secao .intro { margin-left: auto; margin-right: auto; }
  .secao .rotulo, .secao .rotulo + h1, .secao .rotulo + h2, .secao .rotulo + h2 + .intro { text-align: center; }
  .secao .card .rotulo, .secao .pix .rotulo, .secao .formulario .rotulo { text-align: inherit; }
  .rotulo::before { margin-left: auto; margin-right: auto; }
}
.intro { font-size: 1.1rem; }

/* ---------- Cabeçalho transparente sobre a faixa azul ---------- */
.topo .logo { position: relative; display: block; }
.topo .logo img { height: 50px; width: auto; }
.topo .logo .logo-branco { position: absolute; left: 0; top: 0; opacity: 0; }
.topo .logo img, .menu a, .menu-botao { transition: opacity .3s ease, color .3s ease, background-color .3s ease, border-color .3s ease; }
body.topo-transparente .topo {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body.topo-transparente .topo.rolado { background: #fff; border-bottom-color: var(--borda); box-shadow: 0 2px 16px rgba(20, 35, 70, .08); }
body.topo-transparente .topo:not(.rolado) .logo-cor { opacity: 0; }
body.topo-transparente .topo:not(.rolado) .logo-branco { opacity: 1; }
body.topo-transparente .topo:not(.rolado) .menu-botao { color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (min-width: 821px) {
  body.topo-transparente .topo:not(.rolado) .menu a { color: #fff; }
  body.topo-transparente .topo:not(.rolado) .menu a:hover,
  body.topo-transparente .topo:not(.rolado) .menu a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
  body.topo-transparente .topo:not(.rolado) .menu .menu-conta:first-of-type { border-left-color: rgba(255, 255, 255, .35); }
}
@media (max-width: 820px) { .topo .logo img { height: 42px; } }

/* ---------- Topo da página inicial (hero) ---------- */
.hero { background: var(--luz-azul); text-align: center; padding: 148px 0 128px; }
.hero .coracao { left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: 720px; max-width: 130%; opacity: .07; }
.hero-logo { width: min(420px, 82%); height: auto; margin: 0 auto 26px; filter: drop-shadow(0 6px 18px rgba(10, 25, 70, .25)); }
.hero h1 { max-width: none; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(10, 25, 70, .25); }
.hero .subtitulo { margin: 0 auto 26px; font-size: 1.15rem; }
.hero .culto-principal { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); letter-spacing: .02em; }
.hero .culto-principal::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .9; }
.hero .botoes { justify-content: center; }
@media (max-width: 640px) { .hero { padding: 116px 0 104px; } .hero .subtitulo { font-size: 1.05rem; } }

/* Curvas suaves no fim das faixas azuis e no topo do rodapé */
.curva-faixa, .curva-rodape { position: absolute; left: 0; width: 100%; height: 56px; display: block; pointer-events: none; }
.curva-faixa { bottom: -1px; }
.hero .curva-faixa path { fill: var(--fundo-alt); }
.pagina-titulo .curva-faixa path { fill: var(--fundo); }
@media (max-width: 640px) { .curva-faixa, .curva-rodape { height: 32px; } }

/* ---------- Faixa de versículo ---------- */
.faixa-versiculo { background: var(--fundo-alt); text-align: center; padding: 28px 0 64px; }
.faixa-versiculo blockquote { margin: 0; }
.faixa-versiculo p {
  font-family: 'Cinzel', Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem); line-height: 1.35; color: var(--azul);
  max-width: 820px; margin: 0 auto 12px;
}
.faixa-versiculo cite, .versiculo-pix cite {
  font-style: normal; font-family: var(--fonte-titulo); font-weight: 700; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--azul-claro);
}
.ornamento { display: block; width: 76px; height: 12px; margin: 0 auto 18px; background: var(--ornamento) no-repeat center / contain; }

/* ---------- Faixas de título das páginas internas ---------- */
.pagina-titulo { position: relative; overflow: hidden; background: var(--luz-azul); text-align: center; padding: 136px 0 96px; }
.pagina-titulo::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 560px; height: 504px; transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 360' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-linecap='round'%3E%3Cpath d='M200 330C90 250 20 180 30 105 40 40 120 15 170 60c15 15 25 35 30 55' stroke-width='16'/%3E%3Cpath d='M200 115c15-45 65-85 120-70 65 20 70 105 10 170-40 45-85 80-130 115' stroke-width='16'/%3E%3Cpath d='M200 290C120 235 75 180 82 125c6-40 53-55 83-25' stroke-width='9'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.pagina-titulo .container { position: relative; }
.pagina-titulo h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); max-width: 860px; margin: 0 auto; text-shadow: 0 2px 12px rgba(10, 25, 70, .2); }
@media (max-width: 640px) { .pagina-titulo { padding: 112px 0 72px; } }

/* ---------- Seções claras alternadas com textura sutil ---------- */
.secao.alt { background: var(--fundo-alt) var(--textura-coracao) no-repeat right -110px top -70px / 460px auto; }
@media (max-width: 640px) { .secao.alt { background-size: 300px auto; background-position: right -90px top -50px; } }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--raio-card); border: 1px solid #E3E8F1; border-top: 3px solid var(--azul-claro);
  box-shadow: 0 6px 20px rgba(20, 35, 70, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.secao.alt .card { border-color: #E3E8F1; border-top-color: var(--azul-claro); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 35, 70, .1); }
.card h3 { font-size: 1.12rem; }
.icone { width: 58px; height: 58px; padding: 15px; border-radius: 50%; background: var(--azul-claro-fundo); color: var(--azul-claro); margin-bottom: 14px; }
.agenda-dia { text-align: center; padding: 28px 22px; }
.agenda-dia .dia { font-family: var(--fonte-titulo); font-size: .76rem; letter-spacing: .2em; }
.agenda-dia .dia::before { content: ''; display: block; width: 60px; height: 10px; margin: 0 auto 10px; background: var(--ornamento) no-repeat center / contain; }
.agenda-dia .hora { font-size: 2.5rem; margin: 6px 0 10px; letter-spacing: -.01em; }
.endereco-linha { border-radius: var(--raio-card); background: #fff; border: 1px solid #E3E8F1; box-shadow: 0 6px 20px rgba(20, 35, 70, .05); }
.celula .foto { border-radius: 0; }
.formulario { border-radius: var(--raio-card); box-shadow: 0 6px 24px rgba(20, 35, 70, .06); }

/* ---------- Espaços reservados de foto ---------- */
.foto { border: 0; border-radius: var(--raio-card); background: linear-gradient(135deg, #EEF3FB 0%, #D7E3F5 100%); color: #3A5A9F; flex-direction: column; gap: 10px; }
.foto:not(:has(img, iframe)) { padding: 16px; box-shadow: inset 0 0 0 1px rgba(43, 76, 155, .08); }
.foto:not(:has(img, iframe))::before {
  content: ''; width: 46px; height: 46px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4C9B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Contribua ---------- */
.secao.azul { background: var(--luz-azul); }
.versiculo-pix { text-align: center; margin: -8px auto 32px; }
.versiculo-pix p { font-family: 'Cinzel', Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: #fff; margin: 0 0 8px; }
.versiculo-pix cite { color: #C9D6F2; }
.pix { border-radius: var(--raio-card); box-shadow: 0 16px 40px rgba(10, 25, 70, .25); }

/* ---------- Rodapé ---------- */
.rodape { position: relative; background: var(--luz-azul); padding-top: 104px; }
.curva-rodape { top: -1px; transform: scaleY(-1); }
.curva-rodape path { fill: var(--fundo); }
.rodape .marca { display: inline-block; }
.rodape .marca img { width: 210px; height: auto; }
.lema-final { text-align: center; font-family: 'Cinzel', Georgia, serif; font-weight: 600; letter-spacing: .06em; font-size: 1.05rem; color: #DCE4F5; margin: 24px 0 0; }
.lema-final::before { content: ''; display: block; width: 76px; height: 12px; margin: 0 auto 12px; background: var(--ornamento-claro) no-repeat center / contain; }
@media (max-width: 640px) { .rodape { padding-top: 76px; } }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .card, .topo, .topo .logo img, .menu a, .menu-botao { transition: none; }
  .card:hover { transform: none; }
}

/* Elementos com o atributo hidden ficam sempre escondidos (mesmo com display definido, ex.: .botao) */
[hidden] { display: none !important; }

/* ---------- PIX: lista de chaves ---------- */
.pix-dados { min-width: 0; }
.pix-chaves { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.pix-chaves li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--fundo-alt); }
.pix-chaves li > div { min-width: 0; }
.pix-chaves .rotulo { margin-bottom: 2px; }
.pix-chaves .chave { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.pix-chaves .botao { padding: 9px 18px; flex: none; }
.pix .favorecido { margin-bottom: 14px; }
.pix-dica { color: var(--texto-suave); font-size: .82rem; margin: 10px 0 0; }
@media (max-width: 640px) {
  .pix-dados { width: 100%; }
  .pix-chaves li { flex-direction: column; align-items: stretch; text-align: center; }
  .pix-chaves .botao { width: 100%; }
  .pix [data-copiar-pix-codigo] { width: 100%; }
}

/* ---------- Fotos administráveis (aba Fotos) ---------- */
/* Sem foto: a coluna da foto some e o texto ocupa a largura toda */
.duas-colunas.sem-foto { grid-template-columns: 1fr; }
.duas-colunas.sem-foto > div:not([data-foto]) { max-width: 820px; }
.foto:has(img) { padding: 0; background: #DDE4F1; }
.foto-fachada { margin-top: 28px; aspect-ratio: 16 / 9; }
/* Topo da página inicial: foto suave ao fundo, sob o azul */
.hero-fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.75); pointer-events: none; }
.hero .container, .hero .curva-faixa { z-index: 1; }
/* Galeria */
.galeria { columns: 3 280px; column-gap: 20px; }
.galeria-item { break-inside: avoid; margin: 0 0 20px; background: #fff; border-radius: var(--raio-card); overflow: hidden; box-shadow: 0 6px 20px rgba(20, 35, 70, .08); }
.galeria-item a { display: block; }
.galeria-item img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.galeria-item a:hover img { transform: scale(1.02); }
.galeria-item figcaption { padding: 12px 16px 14px; font-size: .92rem; color: var(--texto-suave); }
.galeria-item figcaption strong { display: block; color: var(--azul); font-family: var(--fonte-titulo); font-size: .98rem; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .galeria-item img { transition: none; } .galeria-item a:hover img { transform: none; } }

/* Botão "Como chegar" no card da célula */
.celula .celula-mapa { margin-top: 14px; padding: 9px 18px; font-size: .88rem; }
.celula p { margin-bottom: 0; }

/* ---------- Eventos: página do evento, família, ingressos ---------- */
/* Imagem do evento: aparece INTEIRA (sem cortar), em qualquer proporção.
   O espaço que sobra é preenchido pela própria imagem, desfocada. */
.evento-capa { position: relative; margin: 0 0 24px; border-radius: var(--raio-card); overflow: hidden; background: #DDE4F1; box-shadow: 0 8px 24px rgba(20, 35, 70, .1); display: flex; justify-content: center; }
.evento-capa img:not(.capa-fundo) { position: relative; display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; }
.evento-capa-card { position: relative; display: block; margin: -24px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden; background: #DDE4F1; }
.evento-capa-card img:not(.capa-fundo) { position: relative; width: 100%; height: 100%; object-fit: contain; }
.capa-fundo { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); max-width: none; object-fit: cover; filter: blur(18px) brightness(.85); }
.evento { overflow: hidden; }
.evento-acoes { margin: 0 0 20px; gap: 8px; }
.evento-acoes .botao { padding: 9px 14px; font-size: .86rem; }
.participantes { display: grid; gap: 14px; margin: 8px 0 12px; }
.participante { position: relative; border: 1px solid var(--borda) !important; border-radius: var(--raio) !important; padding: 14px 16px 2px !important; background: var(--fundo-alt); }
.participante legend { font-family: var(--fonte-titulo); font-weight: 700; color: var(--azul); font-size: .95rem; padding: 0 6px; }
.participante .remover-participante { position: absolute; top: 10px; right: 14px; font-size: .85rem; }
.participante label { display: block; font-weight: 600; font-size: .92rem; }
.participante label input, .participante label select { margin-top: 6px; font-weight: 400; }
.rotulo-campo { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opcoes-linha { display: flex; gap: 18px; flex-wrap: wrap; }
.total-inscricao { font-weight: 700; color: var(--azul); margin: 14px 0; font-size: 1.05rem; }
.aviso-ingresso { background: var(--azul-claro-fundo); border-radius: var(--raio-card); padding: 18px; margin: 20px 0 0; text-align: center; }
.aviso-ingresso p { margin-bottom: 12px; }
#form-espera { margin-top: 20px; }
/* Ingresso com QR */
.lista-ingressos { display: grid; gap: 16px; margin: 16px 0; }
.ingresso { display: flex; gap: 20px; align-items: center; padding: 18px; }
.ingresso-qr { flex: none; width: 170px; height: 170px; background: #fff; padding: 6px; border: 1px solid var(--borda); border-radius: 8px; }
.ingresso-qr svg { width: 100%; height: 100%; display: block; }
.ingresso-dados h3 { margin: 0 0 4px; }
.ingresso-dados .rotulo::before { display: none; }
.ingresso-codigo { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; color: var(--texto-suave); word-break: break-all; margin: 8px 0 0; }
@media (max-width: 520px) { .ingresso { flex-direction: column; text-align: center; } .ingresso-qr { width: 220px; height: 220px; } }
.subtitulo-lista { font-size: 1rem; margin: 18px 0 8px; color: var(--texto-suave); }
@media print { .topo, .rodape, .whatsapp, .botoes { display: none !important; } .ingresso { break-inside: avoid; box-shadow: none; } }

/* Botão com cara de link (também usado nas páginas públicas: remover participante, lista de espera) */
.link-botao { background: none; border: 0; color: var(--azul-claro); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.link-botao.perigo { color: var(--vermelho-escuro); }
.link-botao[disabled] { color: var(--texto-suave); cursor: default; text-decoration: none; }

/* Eventos: vários dias e cupom de desconto */
.dias-evento { color: var(--texto-suave, #555); font-size: .95rem; overflow-wrap: anywhere; }
.cupom { margin: 18px 0 6px; max-width: 460px; }
.cupom label { display: block; font-weight: 600; margin-bottom: 6px; }
.linha-cupom { display: flex; gap: 8px; }
.linha-cupom input { flex: 1; min-width: 0; text-transform: uppercase; }
.linha-cupom .botao { flex: none; padding-left: 16px; padding-right: 16px; }
.cupom .dica { margin: 6px 0 0; }
.cupom .dica.ok { color: #1e7a3c; }
.cupom .dica.erro { color: #b3261e; }

/* Evento por pessoa: ingresso e perguntas no mesmo formulário dos dados */
.participante.participante-unico { border: 0 !important; background: none; padding: 0 !important; }

/* Inscrição: campos escolhidos por evento */
.grade-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grade-campos .campo-largo { grid-column: 1 / -1; }
@media (max-width: 640px) { .grade-campos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Descrição do evento com formatação (vem do editor do admin, limpa no servidor) */
.descricao-formatada { overflow-wrap: anywhere; }
.descricao-formatada p, .descricao-formatada div { margin: 0; }
.descricao-formatada ul, .descricao-formatada ol { margin: 6px 0 6px 1.4em; padding: 0; }
.descricao-formatada .tx-p { font-size: .85em; }
.descricao-formatada .tx-g { font-size: 1.25em; }
.descricao-formatada .tx-gg { font-size: 1.6em; line-height: 1.3; }
.descricao-formatada font[size="1"], .descricao-formatada font[size="2"] { font-size: .85em; }
.descricao-formatada font[size="4"], .descricao-formatada font[size="5"] { font-size: 1.25em; }
.descricao-formatada font[size="6"], .descricao-formatada font[size="7"] { font-size: 1.6em; line-height: 1.3; }
.card.evento .descricao-formatada { margin: 0 0 12px; }
.evento-descricao { margin-top: 8px; color: var(--texto); }

/* Editor do admin */
.editor-texto { border: 1px solid #C3CBD9; border-radius: var(--raio); background: #fff; }
.editor-texto:focus-within { border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(24,100,178,.18); }
.editor-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--borda); background: var(--fundo-alt); border-radius: var(--raio) var(--raio) 0 0; }
.editor-barra select { width: auto; padding: 5px 8px; font-size: .9rem; }
.editor-barra button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--texto); font: inherit; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.editor-barra button:hover { background: #fff; border-color: var(--borda); }
.editor-barra button.ativo { background: var(--azul-claro-fundo, #EAF1FB); border-color: var(--azul-claro); color: var(--azul); }
.editor-barra svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.editor-barra svg path { fill: none; }
.editor-sep { width: 1px; height: 22px; background: var(--borda); margin: 0 4px; }
.editor-area { min-height: 140px; max-height: 420px; overflow-y: auto; padding: 11px 13px; outline: none; color: var(--texto); }
.editor-area:empty::before, .editor-area:not(:focus) > div:only-child:has(> br:only-child)::before { content: 'Escreva aqui a descrição do evento...'; color: #8a93a3; }
