:root { --cor: #3b5bdb; --cor-texto: #fff; --fundo: #f3f4f7; --card: #fff; --texto: #181b24; --suave: #5f6677; --borda: #e4e7ef; --sombra: 0 2px 14px rgba(20,25,50,.08); --raio: 1.4rem; }
@media (prefers-color-scheme: dark) { :root { --fundo: #101218; --card: #1b1e27; --texto: #f1f2f7; --suave: #a6adbf; --borda: #2c3140; --sombra: 0 2px 14px rgba(0,0,0,.35); } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--fundo); color: var(--texto); line-height: 1.5; font-size: 1.05rem; padding-bottom: 5.2rem; }
main { max-width: 38rem; margin: 0 auto; padding: 0 1rem 1rem; }
main:focus { outline: none; }
a { color: var(--cor); }
h2 { font-size: 1.55rem; margin: 1.2rem 0 .8rem; letter-spacing: -.01em; }
h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.suave { color: var(--suave); font-size: .95rem; }
.demo { background: #fff3bf; color: #5c4400; text-align: center; padding: .35rem; font-size: .85rem; }

/* barra do topo */
header.topo { max-width: 38rem; margin: 0 auto; padding: 1rem 1rem .4rem; display: flex; align-items: center; gap: .7rem; }
.logo { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--cor); color: var(--cor-texto); display: grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }
header.topo .nome { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
header.topo .ola { font-size: .85rem; color: var(--suave); }

/* cartões de imagem (estilo YouVersion) */
.figura { position: relative; border-radius: var(--raio); overflow: hidden; background: #2a2f45; color: #fff; display: block; text-decoration: none; box-shadow: var(--sombra); isolation: isolate; }
.figura > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.figura::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.68) 100%); z-index: -1; }
.figura .texto { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem; }
.figura .rotulo { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.figura h3 { font-size: 1.4rem; line-height: 1.2; margin: .25rem 0; color: #fff; }
.figura .ref { font-family: Georgia, 'Times New Roman', serif; font-style: italic; opacity: .95; }
.hero { height: 25rem; }
.pilula { display: inline-block; margin-top: .6rem; background: #fff; color: #111; border-radius: 2rem; padding: .5rem 1.1rem; font-weight: 700; font-size: .95rem; }

.titulo-secao { display: flex; justify-content: space-between; align-items: baseline; margin: 1.6rem 0 .7rem; }
.titulo-secao h2 { margin: 0; font-size: 1.3rem; }
.titulo-secao a { font-size: .95rem; font-weight: 600; text-decoration: none; }
.carrossel { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: .2rem 1rem .8rem; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.carrossel .figura { flex: none; width: 10.5rem; height: 14rem; scroll-snap-align: start; }
.carrossel .figura h3 { font-size: 1.05rem; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grade .figura { height: 13rem; }
.grade .figura h3 { font-size: 1.05rem; }

/* eventos */
.evento { display: flex; gap: .9rem; background: var(--card); border-radius: var(--raio); padding: .8rem; margin-bottom: .7rem; box-shadow: var(--sombra); color: inherit; text-decoration: none; align-items: center; }
.data { flex: none; width: 3.6rem; text-align: center; background: var(--cor); color: var(--cor-texto); border-radius: 1rem; padding: .45rem 0; line-height: 1.1; }
.data b { display: block; font-size: 1.5rem; }
.data span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.evento .info { flex: 1; min-width: 0; }
.evento img.mini { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: cover; flex: none; }
.cartao-evento { background: var(--card); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); margin-bottom: .9rem; }
.cartao-evento img { width: 100%; height: 9.5rem; object-fit: cover; display: block; }
.cartao-evento .corpo { padding: 1rem; }

.card { background: var(--card); border-radius: var(--raio); padding: 1.1rem; margin: 0 0 .8rem; display: block; color: inherit; text-decoration: none; box-shadow: var(--sombra); }
.etiqueta { display: inline-block; font-size: .78rem; background: var(--cor); color: var(--cor-texto); border-radius: 1rem; padding: .1rem .65rem; margin-bottom: .4rem; }
.leitura { font-family: Georgia, 'Times New Roman', serif; font-size: 1.22rem; line-height: 1.85; }
.pre { white-space: pre-wrap; }
.aviso { border-left: 5px solid #e8a317; background: var(--card); padding: .8rem 1rem; border-radius: .7rem; margin: .8rem 0; box-shadow: var(--sombra); }

.btn { display: block; width: 100%; min-height: 3.1rem; padding: .75rem 1rem; font-size: 1.05rem; font-weight: 600; border: 0; border-radius: 2rem; background: var(--cor); color: var(--cor-texto); cursor: pointer; text-align: center; text-decoration: none; margin: .5rem 0; font-family: inherit; }
.btn.sec { background: transparent; color: var(--texto); border: 2px solid var(--borda); }
.btn.ok { background: #2b8a3e; color: #fff; }
.btn:disabled { opacity: .6; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
input[type=text], textarea, select { width: 100%; min-height: 3rem; font-size: 1rem; padding: .6rem .8rem; border: 2px solid var(--borda); border-radius: .9rem; background: var(--card); color: var(--texto); font-family: inherit; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; }
.consent input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; flex: none; }
.pix-codigo { word-break: break-all; font-family: ui-monospace, monospace; font-size: .85rem; background: var(--fundo); padding: .6rem; border-radius: .6rem; margin-top: .5rem; }
.qr { display: block; width: 14rem; margin: .8rem auto; background: #fff; padding: .7rem; border-radius: 1rem; }
.qr svg { display: block; width: 100%; height: auto; }
.lista { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.lista a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--borda); min-height: 3.4rem; }
.lista a:last-child { border-bottom: 0; }
.voltar { display: inline-flex; align-items: center; gap: .3rem; margin: .6rem 0; font-weight: 600; text-decoration: none; }
.erro { color: #c92a2a; }
.rodape { text-align: center; margin: 1.5rem 0 .5rem; }
.rodape a { color: var(--suave); margin: 0 .6rem; }

/* menu inferior */
nav.abas { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); box-shadow: 0 -2px 16px rgba(20,25,50,.1); display: flex; z-index: 5; padding-bottom: env(safe-area-inset-bottom); }
nav.abas a { flex: 1; text-align: center; padding: .55rem .2rem .5rem; color: var(--suave); text-decoration: none; font-size: .72rem; min-height: 3.5rem; }
nav.abas svg { display: block; margin: 0 auto .15rem; width: 1.55rem; height: 1.55rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav.abas a[aria-current=page] { color: var(--cor); font-weight: 700; }
nav.abas a[aria-current=page] svg { stroke-width: 2.4; }

/* topo: logo + nome + slogan */
header.topo { align-items: center; padding-top: 1.1rem; }
.logo { width: 3.4rem; height: 3.4rem; border-radius: 1rem; font-size: 1.4rem; }
header.topo .nome { font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
header.topo .slogan { font-size: .88rem; color: var(--suave); line-height: 1.3; margin-top: .15rem; }

/* atalhos de mídia */
.atalhos { display: flex; gap: .6rem; margin: 0 0 .4rem; }
.atalhos a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.9rem; border-radius: 2rem; background: var(--card); box-shadow: var(--sombra); color: var(--texto); text-decoration: none; font-weight: 600; font-size: .95rem; }
.atalhos svg, .rede svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* tela de mídias */
.redes { display: grid; gap: .7rem; margin-bottom: .5rem; }
.rede { display: flex; align-items: center; gap: .9rem; padding: 1.1rem; border-radius: var(--raio); color: #fff; text-decoration: none; box-shadow: var(--sombra); }
.rede svg { width: 2rem; height: 2rem; }
.rede.insta { background: linear-gradient(135deg, #7b3fe4, #d6249f 55%, #fd8a3b); }
.rede.yt { background: linear-gradient(135deg, #c4161c, #ff3d3d); }
.rede b { display: block; font-size: 1.1rem; }
.rede span { font-size: .9rem; opacity: .92; }
.video { display: block; background: var(--card); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); margin-bottom: .8rem; color: inherit; text-decoration: none; }
.video .capa { position: relative; aspect-ratio: 16 / 9; background: #2a2f45; }
.video .capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .play { position: absolute; inset: 0; margin: auto; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.video .play::after { content: ''; border-left: 1.1rem solid #fff; border-top: .7rem solid transparent; border-bottom: .7rem solid transparent; margin-left: .25rem; }
.video .corpo { padding: .8rem 1rem; font-weight: 600; }
.banner { height: 11rem; margin-top: 1.4rem; }
.banner::after { background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%); }
.banner > img { object-position: 50% 80%; }
.mapa { position: relative; height: 12rem; border-radius: 1rem; overflow: hidden; background: var(--fundo); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-link { position: absolute; inset: 0; z-index: 2; }

/* calendário mensal */
.cal { padding: .9rem .7rem 1rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: 1.1rem; }
.cal-nav a { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; font-size: 1.8rem; line-height: 1; text-decoration: none; border-radius: 50%; color: var(--cor); }
.cal-semana, .cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2rem; text-align: center; }
.cal-semana span { font-size: .78rem; color: var(--suave); font-weight: 600; padding: .3rem 0; }
.dia { position: relative; min-height: 3.1rem; border: 0; border-radius: .8rem; background: transparent; color: var(--texto); font: inherit; font-size: 1rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .2rem 0; }
.dia.tem { font-weight: 700; background: color-mix(in srgb, var(--cor) 12%, transparent); }
.dia.hoje { outline: 2px solid var(--cor); outline-offset: -2px; }
.dia[aria-pressed=true] { background: var(--cor); color: var(--cor-texto); }
.pontos { display: flex; gap: 2px; height: 6px; }
.pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--cor); }
.dia[aria-pressed=true] .pontos i { background: var(--cor-texto); }
.cal-hoje { display: block; text-align: center; margin-top: .6rem; font-weight: 600; }
