/* ============================================================
   site.css — Site institucional · IELB Comunidade da Cruz
   Azul luterano + dourado · Fraunces + Public Sans · prefixo ig-
   ============================================================ */

:root {
  --ig-azul:     #1d3a6e;
  --ig-azul-esc: #142a52;
  --ig-dourado:  #b8924e;
  --ig-creme:    #faf7f1;
  --ig-fundo:    #ffffff;
  --ig-texto:    #26303e;
  --ig-suave:    #6b7280;
  --ig-borda:    #e6e2d9;
  --ig-raio:     14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ig-fundo); color: var(--ig-texto);
  font: 400 16px/1.65 "Public Sans", system-ui, sans-serif;
}
img { max-width: 100%; }
a { color: var(--ig-azul); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; }
.ig-container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.ig-centro { text-align: center; }
.ig-estreito { max-width: 620px; }
.ig-meta { color: var(--ig-suave); font-size: .88rem; }
.ig-vazio { color: var(--ig-suave); font-style: italic; text-align: center; padding: 2rem 0; }
.ig-prosa p { margin: 0 0 1rem; }
.ig-pular {
  position: absolute; left: -999px; top: 0; background: var(--ig-azul); color: #fff;
  padding: .5rem 1rem; z-index: 100;
}
.ig-pular:focus { left: 0; }

/* ── Topo ────────────────────────────────────────────────── */
.ig-topo {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ig-borda);
}
.ig-topo-in { display: flex; align-items: center; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.ig-marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ig-texto); }
.ig-marca-img { height: 44px; width: auto; }
.ig-marca-cruz { font-size: 1.8rem; color: var(--ig-dourado); }
.ig-marca-txt { display: flex; flex-direction: column; line-height: 1.15; }
.ig-marca-txt strong { font-family: "Fraunces", serif; font-size: 1.02rem; color: var(--ig-azul); }
.ig-marca-txt small { font-size: .68rem; color: var(--ig-suave); }
.ig-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ig-azul); }
.ig-nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.ig-nav a {
  padding: .45rem .7rem; border-radius: 9px; text-decoration: none;
  color: var(--ig-texto); font-size: .9rem; font-weight: 500;
}
.ig-nav a:hover { background: var(--ig-creme); }
.ig-nav a.ativo { color: var(--ig-azul); font-weight: 700; }
.ig-nav-destaque {
  background: var(--ig-azul); color: #fff !important; font-weight: 600;
  margin-left: .4rem;
}
.ig-nav-destaque:hover { background: var(--ig-azul-esc) !important; }

/* ── Hero ────────────────────────────────────────────────── */
.ig-hero {
  background: linear-gradient(150deg, var(--ig-azul) 0%, var(--ig-azul-esc) 70%);
  color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden;
}
.ig-hero::after {
  content: '✝'; position: absolute; right: -1rem; bottom: -3rem;
  font-size: 16rem; color: rgba(255,255,255,.06); line-height: 1; pointer-events: none;
}
.ig-hero-sup { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ig-dourado); font-weight: 700; margin: 0 0 .4rem; }
.ig-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .5rem; }
.ig-hero-slogan { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 540px; margin: 0 0 1.6rem; }
.ig-hero-acoes { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ── Botões ──────────────────────────────────────────────── */
.ig-btn {
  display: inline-block; padding: .65rem 1.25rem; border-radius: 10px;
  background: var(--ig-dourado); color: #fff; text-decoration: none;
  font: 600 .92rem "Public Sans", sans-serif; border: 0; cursor: pointer;
  transition: filter .15s;
}
.ig-btn:hover { filter: brightness(1.08); }
.ig-btn-claro { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); }
.ig-secao .ig-btn-claro, .ig-btn-claro.ig-btn-mini { background: #fff; border: 1px solid var(--ig-borda); color: var(--ig-texto); }
.ig-btn-mini { padding: .4rem .8rem; font-size: .82rem; }

/* ── Seções / cards ──────────────────────────────────────── */
.ig-secao { padding: 3rem 0; }
.ig-secao-alt { background: var(--ig-creme); }
.ig-h2 { font-size: 1.55rem; margin: 0 0 1.3rem; color: var(--ig-azul); }
.ig-h2::after { content: ''; display: block; width: 44px; height: 3px; background: var(--ig-dourado); margin-top: .45rem; border-radius: 3px; }
.ig-cabecalho-pag { background: var(--ig-azul); color: #fff; padding: 2.4rem 0; }
.ig-cabecalho-pag h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.ig-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.ig-card {
  background: #fff; border: 1px solid var(--ig-borda); border-radius: var(--ig-raio);
  overflow: hidden; box-shadow: 0 1px 3px rgba(20, 30, 50, .06);
}
.ig-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ig-retrato { height: 260px; object-position: top; }
.ig-card-corpo { padding: 1.05rem 1.15rem; }
.ig-card-corpo h3 { margin: .15rem 0 .4rem; font-size: 1.08rem; }
.ig-card-data { color: var(--ig-dourado); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.ig-card-passado { opacity: .75; }
.ig-links-internos { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ── Cultos ──────────────────────────────────────────────── */
.ig-cultos { display: flex; gap: .8rem; flex-wrap: wrap; }
.ig-culto-card {
  background: var(--ig-creme); border: 1px solid var(--ig-borda); border-left: 4px solid var(--ig-dourado);
  border-radius: 10px; padding: .8rem 1.1rem; font-weight: 600;
}

/* ── Avisos ──────────────────────────────────────────────── */
.ig-avisos { padding: 1.2rem 0 0; }
.ig-aviso {
  background: #fdf6e8; border: 1px solid #ecd9b0; border-radius: 10px;
  padding: .8rem 1.1rem; margin-bottom: .7rem; font-size: .95rem;
}
.ig-aviso-ok { background: #e9f7ee; border-color: #bfe5cc; }
.ig-aviso-erro { background: #fdecec; border-color: #f3c8c8; }

/* ── Agenda ──────────────────────────────────────────────── */
.ig-agenda-mes { color: var(--ig-azul); margin: 1.6rem 0 .6rem; }
.ig-agenda-lista { list-style: none; margin: 0; padding: 0; }
.ig-agenda-lista li {
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px dashed var(--ig-borda); padding: .65rem 0;
}
.ig-agenda-dia {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px;
  background: var(--ig-azul); color: #fff; display: flex; align-items: center;
  justify-content: center; font: 700 1.15rem "Fraunces", serif;
}
.ig-agenda-info { display: flex; flex-direction: column; }

/* ── Galeria ─────────────────────────────────────────────── */
.ig-filtros { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.ig-filtro {
  padding: .35rem .85rem; border-radius: 99px; text-decoration: none; font-size: .85rem;
  font-weight: 600; background: #fff; border: 1px solid var(--ig-borda); color: var(--ig-texto);
}
.ig-filtro.ativo { background: var(--ig-azul); border-color: var(--ig-azul); color: #fff; }
.ig-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.ig-foto img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  display: block; transition: transform .2s;
}
.ig-foto:hover img { transform: scale(1.03); }
.ig-video { position: relative; aspect-ratio: 16/9; background: #000; }
.ig-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ig-video-arq { width: 100%; display: block; background: #000; }

/* ── Sermões / notícias / docs ───────────────────────────── */
.ig-lista-sermoes { display: flex; flex-direction: column; gap: 1.6rem; }
.ig-sermao {
  display: grid; grid-template-columns: 340px 1fr; gap: 1.3rem; align-items: start;
  background: #fff; border: 1px solid var(--ig-borda); border-radius: var(--ig-raio); padding: 1.1rem;
}
.ig-sermao h3 { margin: .2rem 0 .3rem; }
.ig-lista-noticias { display: flex; flex-direction: column; gap: 1.3rem; }
.ig-noticia {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem;
  background: #fff; border: 1px solid var(--ig-borda); border-radius: var(--ig-raio); padding: 1.1rem;
}
.ig-noticia img { width: 100%; border-radius: 10px; object-fit: cover; aspect-ratio: 4/3; }
.ig-noticia h3 { margin: .2rem 0 .4rem; }
.ig-docs { list-style: none; margin: 0; padding: 0; }
.ig-docs li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-bottom: 1px dashed var(--ig-borda); padding: .75rem 0;
}

/* ── Formulários públicos ────────────────────────────────── */
.ig-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .9rem; }
.ig-form input, .ig-form textarea {
  width: 100%; margin-top: .3rem; padding: .6rem .75rem;
  border: 1px solid var(--ig-borda); border-radius: 10px;
  font: 400 .95rem "Public Sans", sans-serif;
}
.ig-form input:focus, .ig-form textarea:focus { outline: 2px solid var(--ig-azul); border-color: var(--ig-azul); }
.ig-check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500 !important; }
.ig-check input { width: auto !important; margin-top: .25rem; }
.ig-hp { position: absolute !important; left: -9999px !important; height: 0; opacity: 0; }
.ig-grid-contato { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.ig-mapa { position: relative; aspect-ratio: 4/3; border-radius: var(--ig-raio); overflow: hidden; margin-top: 1rem; }
.ig-mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Rodapé ──────────────────────────────────────────────── */
.ig-rodape { background: var(--ig-azul-esc); color: rgba(255,255,255,.85); margin-top: 3rem; }
.ig-rodape a { color: var(--ig-dourado); text-decoration: none; }
.ig-rodape-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; padding-top: 2.6rem; padding-bottom: 2.2rem;
}
.ig-rodape h3 { color: #fff; font-size: 1.02rem; margin: 0 0 .6rem; }
.ig-rodape p { margin: .25rem 0; font-size: .92rem; }
.ig-redes { display: flex; gap: .8rem; margin-top: .6rem; }
.ig-rodape-base { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .8rem; color: rgba(255,255,255,.6); }
.ig-credito {
  background: none; border: 0; color: var(--ig-dourado); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline dotted;
}

/* ── Modal do crédito ────────────────────────────────────── */
/* Importante: o atributo [hidden] precisa vencer o display:flex abaixo,
   senão o modal/CTA ficam sempre visíveis e travam a página. */
[hidden] { display: none !important; }

.ig-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .6); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ig-modal-caixa {
  background: #fff; border-radius: 16px; padding: 2rem; max-width: 340px;
  width: 100%; text-align: center; position: relative; color: var(--ig-texto);
}
.ig-modal-fechar {
  position: absolute; top: .5rem; right: .8rem; background: none; border: 0;
  font-size: 1.6rem; cursor: pointer; color: var(--ig-suave);
}
.ig-modal-cruz { font-size: 2.2rem; color: var(--ig-dourado); margin: 0; }
.ig-modal-caixa h3 { margin: .3rem 0 .6rem; font-family: "Fraunces", serif; }
.ig-modal-caixa .ig-btn { margin-top: 1rem; }

/* ── CTA de push ─────────────────────────────────────────── */
.ig-push-cta {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--ig-borda); border-radius: 99px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .18); padding: .55rem .6rem .55rem 1.1rem;
  display: flex; align-items: center; gap: .6rem; z-index: 60;
  font-size: .88rem; font-weight: 600; max-width: calc(100% - 2rem);
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .ig-burger { display: block; }
  .ig-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--ig-borda); padding: .6rem 1rem 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
  }
  .ig-nav.aberta { display: flex; }
  .ig-nav a { padding: .7rem .6rem; }
  .ig-nav-destaque { margin-left: 0; text-align: center; }
  .ig-sermao, .ig-noticia, .ig-grid-contato { grid-template-columns: 1fr; }
}

/* ── Banners da home — painel editorial (estilo IELB) ──────── */
.ig-banners-secao { padding: 2.2rem 0 1.4rem; position: relative; overflow: hidden; }
.ig-banners-secao::before {           /* padrão sutil de cruzes pixeladas */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 52%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%230d1a35' fill-opacity='.045'%3E%3Crect x='49' y='21' width='14' height='14'/%3E%3Crect x='49' y='35' width='14' height='14'/%3E%3Crect x='21' y='49' width='14' height='14'/%3E%3Crect x='35' y='49' width='14' height='14'/%3E%3Crect x='49' y='49' width='14' height='14'/%3E%3Crect x='63' y='49' width='14' height='14'/%3E%3Crect x='77' y='49' width='14' height='14'/%3E%3Crect x='49' y='63' width='14' height='14'/%3E%3Crect x='49' y='77' width='14' height='14'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ig-banners {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative;
}
.ig-banners::-webkit-scrollbar { display: none; }
.ig-banner {
  flex: 0 0 100%; scroll-snap-align: center;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.4rem; align-items: center; padding: .4rem .2rem;
}
.ig-banner-foto-wrap { position: relative; }
.ig-banner-foto {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 26px 110px 26px 110px;
  box-shadow: 0 16px 40px rgba(13, 26, 53, .18);
}
.ig-banner-destaque {
  position: absolute; right: -1.1rem; bottom: 1.6rem; max-width: 240px;
  background: var(--ig-dourado); color: #fff; border-radius: 16px;
  padding: 1.6rem 1.1rem 1.1rem; font-weight: 600; font-size: .92rem; line-height: 1.45;
  box-shadow: 0 10px 26px rgba(13, 26, 53, .22);
}
.ig-banner-destaque p { margin: 0; }
.ig-banner-aspas {
  position: absolute; top: -20px; left: 16px; width: 42px; height: 42px;
  background: #fff; color: var(--ig-dourado); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; box-shadow: 0 4px 12px rgba(13, 26, 53, .15);
}
.ig-banner-chamada {
  color: var(--ig-dourado); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .82rem; margin: 0 0 .5rem;
}
.ig-banner-texto h2 {
  font-family: "Fraunces", Georgia, serif; color: var(--ig-azul);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 .9rem;
}
.ig-banner-par { color: #3d4a5f; font-size: 1.02rem; line-height: 1.7; margin: 0 0 1.3rem; }
.ig-btn-banner {
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  padding: .85rem 1.7rem; border-radius: 8px;
}
.ig-banners-dots { display: flex; gap: .45rem; justify-content: center; margin-top: 1.2rem; }
.ig-dot {
  width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0;
  background: #c9d2e0; cursor: pointer; transition: all .25s;
}
.ig-dot.ativo { background: var(--ig-dourado); width: 24px; }

@media (max-width: 860px) {
  .ig-banner { grid-template-columns: 1fr; gap: 1.4rem; padding-bottom: .4rem; }
  .ig-banners-secao::before { width: 100%; }
  .ig-banner-foto { border-radius: 20px 70px 20px 70px; }
  .ig-banner-destaque { right: .4rem; bottom: -0.9rem; max-width: 210px; font-size: .84rem; padding: 1.3rem .9rem .9rem; }
  .ig-banner-texto { padding-top: .6rem; }
  .ig-banner-texto h2 { font-size: 1.45rem; }
  .ig-banner-par { font-size: .94rem; }
}

/* ── Rodapé: próximos cultos vindos do cadastro ─────────────── */
.ig-rodape-culto { margin: 0 0 .55rem; line-height: 1.45; }
.ig-rodape-culto strong { display: block; color: var(--ig-dourado); font-size: .88rem; }
.ig-rodape-culto span { font-size: .85rem; opacity: .9; }

/* ── Galeria: álbuns ────────────────────────────────────────── */
.ig-albuns { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.ig-album-card {
  display: block; background: #fff; border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; border: 1px solid var(--ig-borda);
  box-shadow: 0 2px 10px rgba(13,26,53,.06); transition: transform .15s, box-shadow .15s;
}
.ig-album-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,26,53,.12); }
.ig-album-card img, .ig-album-semcapa { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ig-album-semcapa { display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); }
.ig-album-corpo { padding: .9rem 1rem 1rem; }
.ig-album-corpo h3 { margin: 0 0 .2rem; color: var(--ig-azul); font-size: 1.02rem; }
.ig-voltar { color: var(--ig-dourado); font-weight: 700; text-decoration: none; }
.ig-album-desc { color: #4a5568; max-width: 640px; }

/* ── Galeria: grade do álbum ────────────────────────────────── */
.ig-gal-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.ig-gal-item {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 12px;
  overflow: hidden; aspect-ratio: 1/1; background: #0d1a35; display: block; width: 100%;
}
.ig-gal-item img, .ig-gal-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-gal-item:hover img, .ig-gal-item:hover video { opacity: .88; }
.ig-gal-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; background: linear-gradient(140deg, #1d3a6e, #0d1a35); }
.ig-gal-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,26,53,.72); color: #fff; border-radius: 50%;
  font-size: 1.15rem; padding-left: 4px; pointer-events: none;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lb-fundo { position: fixed; inset: 0; background: rgba(8,12,24,.95); z-index: 9999;
  display: flex; align-items: center; justify-content: center; }
.lb-fundo[hidden] { display: none !important; }   /* sem isto, o ✕ não fecha */
.lb-palco { max-width: 92vw; max-height: 82vh; display: flex; }
.lb-palco img, .lb-palco video { max-width: 92vw; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lb-btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0;
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-fechar { top: max(1rem, env(safe-area-inset-top)); right: 1rem; width: 52px; height: 52px; z-index: 3; }
.lb-ant { left: .7rem; top: 50%; transform: translateY(-50%); }
.lb-prox { right: .7rem; top: 50%; transform: translateY(-50%); }
.lb-cap { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; color: #dbe2ee; font-size: .9rem; padding: 0 4rem; }

/* ── Busca de álbuns ────────────────────────────────────────── */
.ig-gal-busca { display: flex; gap: .6rem; margin: 0 0 1.4rem; max-width: 460px; }
.ig-gal-busca input { flex: 1; padding: .7rem .95rem; border: 1px solid var(--ig-borda);
  border-radius: 10px; font: inherit; font-size: .95rem; }

/* ── Carrossel de notícias ──────────────────────────────────── */
.ig-secao-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.ig-secao-topo .ig-h2 { margin: 0; }
.ig-nav-setas { display: flex; gap: .4rem; }
.ig-seta {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ig-borda);
  background: #fff; color: var(--ig-azul); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.ig-seta:hover { background: var(--ig-azul); color: #fff; border-color: var(--ig-azul); }
.ig-carrossel {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ig-carrossel::-webkit-scrollbar { display: none; }
.ig-carrossel > * { flex: 0 0 clamp(240px, 31%, 340px); scroll-snap-align: start; }
.ig-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; }
.ig-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(13,26,53,.14); }
.ig-card-semimg { display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); aspect-ratio: 16/10; }
.ig-card-mais { color: var(--ig-dourado); font-weight: 700; font-size: .86rem; margin-top: .45rem; display: inline-block; }
.ig-noticia-link { text-decoration: none; color: inherit; }
.ig-noticia-link:hover h3 { color: var(--ig-dourado); }
.ig-noticia-semimg { width: 120px; aspect-ratio: 1/1; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0;
  background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); }

/* ── Notícia completa ───────────────────────────────────────── */
.ig-artigo-largura { max-width: 760px; }
.ig-artigo-titulo { font-family: "Fraunces", Georgia, serif; color: var(--ig-azul);
  font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; margin: .2rem 0 1rem; }
.ig-artigo-img { width: 100%; border-radius: 16px; margin: 0 0 1.4rem;
  box-shadow: 0 10px 28px rgba(13,26,53,.14); }
.ig-artigo-corpo { font-size: 1.05rem; line-height: 1.75; color: #33405a; }
.ig-secao-clara { background: #f6f8fc; }

/* ── Barra de compartilhamento ──────────────────────────────── */
.cp-barra { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 1.8rem 0 .5rem; padding-top: 1.2rem; border-top: 1px solid var(--ig-borda); }
.cp-rotulo { font-weight: 700; color: var(--ig-azul); font-size: .92rem; }
.cp-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--ig-borda);
  background: #fff; color: #33405a; border-radius: 99px; padding: .5rem .95rem;
  font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.cp-btn:hover { border-color: var(--ig-dourado); }
.cp-zap:hover { background: #e8f7ee; border-color: #25d366; }
.cp-face:hover { background: #eaf1fb; border-color: #1877f2; }
.cp-aviso { font-size: .84rem; color: #15803d; font-weight: 600; }

/* ── Cards de notícia: capa com selos ───────────────────────── */
.ig-card-capa { position: relative; }
.ig-card-selo {
  position: absolute; left: 0; bottom: 0; background: var(--ig-azul); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .3em .7em; border-radius: 0 8px 0 0;
}
.ig-card-fonte {
  position: absolute; right: .5rem; top: .5rem; background: rgba(255,255,255,.94);
  color: var(--ig-azul); font-size: .72rem; font-weight: 800; padding: .3em .65em;
  border-radius: 99px; box-shadow: 0 2px 8px rgba(13,26,53,.18);
}
.ig-selo-fonte {
  background: #eef2f9; color: var(--ig-azul); font-size: .74rem; font-weight: 800;
  padding: .2em .6em; border-radius: 99px; margin-left: .4rem;
}

/* ── Página do desenvolvedor ────────────────────────────────── */
.ig-dev-capa { background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); color: #fff;
  padding: 2.8rem 0 2.6rem; position: relative; overflow: hidden; }
.ig-dev-capa::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23ffffff' fill-opacity='.05'%3E%3Crect x='49' y='21' width='14' height='14'/%3E%3Crect x='49' y='35' width='14' height='14'/%3E%3Crect x='21' y='49' width='14' height='14'/%3E%3Crect x='35' y='49' width='14' height='14'/%3E%3Crect x='49' y='49' width='14' height='14'/%3E%3Crect x='63' y='49' width='14' height='14'/%3E%3Crect x='77' y='49' width='14' height='14'/%3E%3Crect x='49' y='63' width='14' height='14'/%3E%3Crect x='49' y='77' width='14' height='14'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ig-dev-topo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 2.4rem; align-items: center; position: relative; }
.ig-dev-foto-wrap { position: relative; }
.ig-dev-foto { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  border-radius: 26px 110px 26px 110px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.ig-dev-foto-vazia { display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; background: rgba(255,255,255,.12); }
.ig-dev-destaque { position: absolute; right: -1.1rem; bottom: 1.6rem; max-width: 240px;
  background: var(--ig-dourado); color: #fff; border-radius: 16px;
  padding: 1.6rem 1.1rem 1.1rem; font-weight: 600; font-size: .92rem; line-height: 1.45;
  box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.ig-dev-destaque p { margin: 0; }
.ig-dev-aspas { position: absolute; top: -20px; left: 16px; width: 42px; height: 42px;
  background: #fff; color: var(--ig-dourado); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.ig-dev-sup { color: var(--ig-dourado); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .25rem; }
.ig-dev-topo h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 .3rem; line-height: 1.1; }
.ig-dev-titulo { margin: 0 0 .6rem; opacity: .92; }
.ig-dev-chamada { margin: 0 0 1.3rem; opacity: .9; max-width: 46ch; line-height: 1.6; }
.ig-dev-botoes { display: flex; gap: .55rem; flex-wrap: wrap; }
.ig-dev-bt { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1); color: #fff; border-radius: 99px; padding: .6rem 1.1rem;
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s; }
.ig-dev-bt:hover { background: rgba(255,255,255,.22); }
.ig-dev-bt.ativo { background: #fff; color: var(--ig-azul); border-color: #fff; }
.ig-dev-bt-zap { background: #25d366; border-color: #25d366; }
.ig-dev-bt-zap:hover { background: #1fb457; }
.ig-dev-bt-mini { padding: .6rem .8rem; font-size: 1rem; }
.ig-dev-conteudo { max-width: 820px; }
.ig-dev-painel { display: none; }
.ig-dev-painel.ativo { display: block; animation: igFade .25s ease; }
@keyframes igFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ig-dev-servicos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.ig-dev-servico { background: #fff; border: 1px solid var(--ig-borda); border-radius: 12px;
  padding: .8rem 1rem; font-weight: 600; color: var(--ig-azul); }
.ig-dev-projeto { text-decoration: none; color: inherit; display: block; }
.ig-dev-projeto h3 { color: var(--ig-azul); margin: 0 0 .3rem; }
.ig-dev-fim { text-align: center; background: #f6f8fc; }
@media (max-width: 860px) {
  .ig-dev-topo { grid-template-columns: 1fr; gap: 1.6rem; }
  .ig-dev-foto { aspect-ratio: 4/3; border-radius: 20px 70px 20px 70px; }
  .ig-dev-destaque { right: .4rem; bottom: -.8rem; max-width: 200px; font-size: .84rem; padding: 1.3rem .9rem .9rem; }
  .ig-dev-texto { padding-top: .8rem; }
  .ig-dev-bt { font-size: .84rem; padding: .55rem .9rem; }
}
.ig-credito {
  background: none; border: 0; color: var(--ig-dourado); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline dotted;
}

/* ── Modal do crédito ────────────────────────────────────── */
/* Importante: o atributo [hidden] precisa vencer o display:flex abaixo,
   senão o modal/CTA ficam sempre visíveis e travam a página. */
[hidden] { display: none !important; }

.ig-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .6); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ig-modal-caixa {
  background: #fff; border-radius: 16px; padding: 2rem; max-width: 340px;
  width: 100%; text-align: center; position: relative; color: var(--ig-texto);
}
.ig-modal-fechar {
  position: absolute; top: .5rem; right: .8rem; background: none; border: 0;
  font-size: 1.6rem; cursor: pointer; color: var(--ig-suave);
}
.ig-modal-cruz { font-size: 2.2rem; color: var(--ig-dourado); margin: 0; }
.ig-modal-caixa h3 { margin: .3rem 0 .6rem; font-family: "Fraunces", serif; }
.ig-modal-caixa .ig-btn { margin-top: 1rem; }

/* ── CTA de push ─────────────────────────────────────────── */
.ig-push-cta {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--ig-borda); border-radius: 99px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .18); padding: .55rem .6rem .55rem 1.1rem;
  display: flex; align-items: center; gap: .6rem; z-index: 60;
  font-size: .88rem; font-weight: 600; max-width: calc(100% - 2rem);
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .ig-burger { display: block; }
  .ig-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--ig-borda); padding: .6rem 1rem 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
  }
  .ig-nav.aberta { display: flex; }
  .ig-nav a { padding: .7rem .6rem; }
  .ig-nav-destaque { margin-left: 0; text-align: center; }
  .ig-sermao, .ig-noticia, .ig-grid-contato { grid-template-columns: 1fr; }
}

/* ── Banners da home — painel editorial (estilo IELB) ──────── */
.ig-banners-secao { padding: 2.2rem 0 1.4rem; position: relative; overflow: hidden; }
.ig-banners-secao::before {           /* padrão sutil de cruzes pixeladas */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 52%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%230d1a35' fill-opacity='.045'%3E%3Crect x='49' y='21' width='14' height='14'/%3E%3Crect x='49' y='35' width='14' height='14'/%3E%3Crect x='21' y='49' width='14' height='14'/%3E%3Crect x='35' y='49' width='14' height='14'/%3E%3Crect x='49' y='49' width='14' height='14'/%3E%3Crect x='63' y='49' width='14' height='14'/%3E%3Crect x='77' y='49' width='14' height='14'/%3E%3Crect x='49' y='63' width='14' height='14'/%3E%3Crect x='49' y='77' width='14' height='14'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ig-banners {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative;
}
.ig-banners::-webkit-scrollbar { display: none; }
.ig-banner {
  flex: 0 0 100%; scroll-snap-align: center;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.4rem; align-items: center; padding: .4rem .2rem;
}
.ig-banner-foto-wrap { position: relative; }
.ig-banner-foto {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 26px 110px 26px 110px;
  box-shadow: 0 16px 40px rgba(13, 26, 53, .18);
}
.ig-banner-destaque {
  position: absolute; right: -1.1rem; bottom: 1.6rem; max-width: 240px;
  background: var(--ig-dourado); color: #fff; border-radius: 16px;
  padding: 1.6rem 1.1rem 1.1rem; font-weight: 600; font-size: .92rem; line-height: 1.45;
  box-shadow: 0 10px 26px rgba(13, 26, 53, .22);
}
.ig-banner-destaque p { margin: 0; }
.ig-banner-aspas {
  position: absolute; top: -20px; left: 16px; width: 42px; height: 42px;
  background: #fff; color: var(--ig-dourado); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; box-shadow: 0 4px 12px rgba(13, 26, 53, .15);
}
.ig-banner-chamada {
  color: var(--ig-dourado); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .82rem; margin: 0 0 .5rem;
}
.ig-banner-texto h2 {
  font-family: "Fraunces", Georgia, serif; color: var(--ig-azul);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 .9rem;
}
.ig-banner-par { color: #3d4a5f; font-size: 1.02rem; line-height: 1.7; margin: 0 0 1.3rem; }
.ig-btn-banner {
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  padding: .85rem 1.7rem; border-radius: 8px;
}
.ig-banners-dots { display: flex; gap: .45rem; justify-content: center; margin-top: 1.2rem; }
.ig-dot {
  width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0;
  background: #c9d2e0; cursor: pointer; transition: all .25s;
}
.ig-dot.ativo { background: var(--ig-dourado); width: 24px; }

@media (max-width: 860px) {
  .ig-banner { grid-template-columns: 1fr; gap: 1.4rem; padding-bottom: .4rem; }
  .ig-banners-secao::before { width: 100%; }
  .ig-banner-foto { border-radius: 20px 70px 20px 70px; }
  .ig-banner-destaque { right: .4rem; bottom: -0.9rem; max-width: 210px; font-size: .84rem; padding: 1.3rem .9rem .9rem; }
  .ig-banner-texto { padding-top: .6rem; }
  .ig-banner-texto h2 { font-size: 1.45rem; }
  .ig-banner-par { font-size: .94rem; }
}

/* ── Rodapé: próximos cultos vindos do cadastro ─────────────── */
.ig-rodape-culto { margin: 0 0 .55rem; line-height: 1.45; }
.ig-rodape-culto strong { display: block; color: var(--ig-dourado); font-size: .88rem; }
.ig-rodape-culto span { font-size: .85rem; opacity: .9; }

/* ── Galeria: álbuns ────────────────────────────────────────── */
.ig-albuns { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.ig-album-card {
  display: block; background: #fff; border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; border: 1px solid var(--ig-borda);
  box-shadow: 0 2px 10px rgba(13,26,53,.06); transition: transform .15s, box-shadow .15s;
}
.ig-album-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,26,53,.12); }
.ig-album-card img, .ig-album-semcapa { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ig-album-semcapa { display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); }
.ig-album-corpo { padding: .9rem 1rem 1rem; }
.ig-album-corpo h3 { margin: 0 0 .2rem; color: var(--ig-azul); font-size: 1.02rem; }
.ig-voltar { color: var(--ig-dourado); font-weight: 700; text-decoration: none; }
.ig-album-desc { color: #4a5568; max-width: 640px; }

/* ── Galeria: grade do álbum ────────────────────────────────── */
.ig-gal-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.ig-gal-item {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 12px;
  overflow: hidden; aspect-ratio: 1/1; background: #0d1a35; display: block; width: 100%;
}
.ig-gal-item img, .ig-gal-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-gal-item:hover img, .ig-gal-item:hover video { opacity: .88; }
.ig-gal-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; background: linear-gradient(140deg, #1d3a6e, #0d1a35); }
.ig-gal-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,26,53,.72); color: #fff; border-radius: 50%;
  font-size: 1.15rem; padding-left: 4px; pointer-events: none;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lb-fundo { position: fixed; inset: 0; background: rgba(8,12,24,.95); z-index: 9999;
  display: flex; align-items: center; justify-content: center; }
.lb-fundo[hidden] { display: none !important; }   /* sem isto, o ✕ não fecha */
.lb-palco { max-width: 92vw; max-height: 82vh; display: flex; }
.lb-palco img, .lb-palco video { max-width: 92vw; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lb-btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0;
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-fechar { top: max(1rem, env(safe-area-inset-top)); right: 1rem; width: 52px; height: 52px; z-index: 3; }
.lb-ant { left: .7rem; top: 50%; transform: translateY(-50%); }
.lb-prox { right: .7rem; top: 50%; transform: translateY(-50%); }
.lb-cap { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; color: #dbe2ee; font-size: .9rem; padding: 0 4rem; }

/* ── Busca de álbuns ────────────────────────────────────────── */
.ig-gal-busca { display: flex; gap: .6rem; margin: 0 0 1.4rem; max-width: 460px; }
.ig-gal-busca input { flex: 1; padding: .7rem .95rem; border: 1px solid var(--ig-borda);
  border-radius: 10px; font: inherit; font-size: .95rem; }

/* ── Carrossel de notícias ──────────────────────────────────── */
.ig-secao-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.ig-secao-topo .ig-h2 { margin: 0; }
.ig-nav-setas { display: flex; gap: .4rem; }
.ig-seta {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ig-borda);
  background: #fff; color: var(--ig-azul); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.ig-seta:hover { background: var(--ig-azul); color: #fff; border-color: var(--ig-azul); }
.ig-carrossel {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ig-carrossel::-webkit-scrollbar { display: none; }
.ig-carrossel > * { flex: 0 0 clamp(240px, 31%, 340px); scroll-snap-align: start; }
.ig-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; }
.ig-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(13,26,53,.14); }
.ig-card-semimg { display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); aspect-ratio: 16/10; }
.ig-card-mais { color: var(--ig-dourado); font-weight: 700; font-size: .86rem; margin-top: .45rem; display: inline-block; }
.ig-noticia-link { text-decoration: none; color: inherit; }
.ig-noticia-link:hover h3 { color: var(--ig-dourado); }
.ig-noticia-semimg { width: 120px; aspect-ratio: 1/1; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0;
  background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); }

/* ── Notícia completa ───────────────────────────────────────── */
.ig-artigo-largura { max-width: 760px; }
.ig-artigo-titulo { font-family: "Fraunces", Georgia, serif; color: var(--ig-azul);
  font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; margin: .2rem 0 1rem; }
.ig-artigo-img { width: 100%; border-radius: 16px; margin: 0 0 1.4rem;
  box-shadow: 0 10px 28px rgba(13,26,53,.14); }
.ig-artigo-corpo { font-size: 1.05rem; line-height: 1.75; color: #33405a; }
.ig-secao-clara { background: #f6f8fc; }

/* ── Barra de compartilhamento ──────────────────────────────── */
.cp-barra { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 1.8rem 0 .5rem; padding-top: 1.2rem; border-top: 1px solid var(--ig-borda); }
.cp-rotulo { font-weight: 700; color: var(--ig-azul); font-size: .92rem; }
.cp-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--ig-borda);
  background: #fff; color: #33405a; border-radius: 99px; padding: .5rem .95rem;
  font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.cp-btn:hover { border-color: var(--ig-dourado); }
.cp-zap:hover { background: #e8f7ee; border-color: #25d366; }
.cp-face:hover { background: #eaf1fb; border-color: #1877f2; }
.cp-aviso { font-size: .84rem; color: #15803d; font-weight: 600; }

/* ── Cards de notícia: capa com selos ───────────────────────── */
.ig-card-capa { position: relative; }
.ig-card-selo {
  position: absolute; left: 0; bottom: 0; background: var(--ig-azul); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .3em .7em; border-radius: 0 8px 0 0;
}
.ig-card-fonte {
  position: absolute; right: .5rem; top: .5rem; background: rgba(255,255,255,.94);
  color: var(--ig-azul); font-size: .72rem; font-weight: 800; padding: .3em .65em;
  border-radius: 99px; box-shadow: 0 2px 8px rgba(13,26,53,.18);
}
.ig-selo-fonte {
  background: #eef2f9; color: var(--ig-azul); font-size: .74rem; font-weight: 800;
  padding: .2em .6em; border-radius: 99px; margin-left: .4rem;
}

/* ── Página do desenvolvedor ────────────────────────────────── */
.ig-dev-capa { background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); color: #fff; padding: 2.6rem 0 2.4rem; }
.ig-dev-topo { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; }
.ig-dev-foto { width: 148px; height: 148px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(0,0,0,.25); flex-shrink: 0; }
.ig-dev-foto-vazia { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: rgba(255,255,255,.12); }
.ig-dev-sup { color: var(--ig-dourado); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .2rem; }
.ig-dev-topo h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .25rem; }
.ig-dev-titulo { margin: 0 0 .5rem; opacity: .92; }
.ig-dev-chamada { margin: 0 0 1rem; opacity: .88; max-width: 46ch; }
.ig-dev-contatos { display: flex; gap: .5rem; flex-wrap: wrap; }
.ig-dev-servicos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.ig-dev-servico { background: #fff; border: 1px solid var(--ig-borda); border-radius: 12px; padding: .8rem 1rem; font-weight: 600; color: var(--ig-azul); }
.ig-dev-projeto { text-decoration: none; color: inherit; display: block; }
.ig-dev-projeto h3 { color: var(--ig-azul); margin: 0 0 .3rem; }
.ig-dev-fim { text-align: center; }
.ig-credito { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ── Filtros da agenda ──────────────────────────────────────── */
.ig-filtros { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.ig-filtro-busca { display: flex; gap: .5rem; max-width: 460px; }
.ig-filtro-busca input { flex: 1; padding: .6rem .9rem; border: 1px solid var(--ig-borda);
  border-radius: 99px; font: inherit; }
.ig-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.ig-chip { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
  border: 1px solid var(--ig-borda); background: #fff; color: #33405a; border-radius: 99px;
  padding: .4rem .85rem; font-size: .85rem; font-weight: 600; }
.ig-chip:hover { border-color: var(--ig-dourado); }
.ig-chip.ativo { background: var(--ig-azul); border-color: var(--ig-azul); color: #fff; }
.ig-chip-num { background: rgba(0,0,0,.08); border-radius: 99px; padding: 0 .4em; font-size: .78em; }
.ig-chip.ativo .ig-chip-num { background: rgba(255,255,255,.25); }
.ig-agenda-tipo { background: #eef2f9; color: var(--ig-azul); border-radius: 99px;
  padding: .1em .55em; font-size: .72rem; font-weight: 800; margin-left: .4rem; }

/* ── Paginação, capa padrão de evento e botão voltar ────────── */
.ig-paginacao { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin: 1.6rem 0 .5rem; }
.ig-pag { display: inline-flex; align-items: center; justify-content: center; min-width: 40px;
  padding: .5rem .8rem; border: 1px solid var(--ig-borda); border-radius: 10px; background: #fff;
  color: var(--ig-azul); text-decoration: none; font-weight: 700; font-size: .9rem; }
.ig-pag:hover { border-color: var(--ig-dourado); }
.ig-pag.ativo { background: var(--ig-azul); border-color: var(--ig-azul); color: #fff; }
.ig-evento-padrao { display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 16/10; background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc));
  color: #fff; position: relative; }
.ig-evento-cruz { position: absolute; font-size: 5.5rem; opacity: .13; }
.ig-evento-dia { font-family: "Fraunces", Georgia, serif; font-size: 2.6rem; line-height: 1; position: relative; }
.ig-evento-mes { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem;
  font-weight: 800; color: var(--ig-dourado); margin-top: .25rem; position: relative; }
.ig-secao-voltar { padding-top: 0; }
.ig-voltar-bloco { margin: 0; }

/* ── Biblioteca ─────────────────────────────────────────────── */
.ig-bib-topo { background: linear-gradient(140deg, var(--ig-azul), var(--ig-azul-esc)); color: #fff; padding: 2.2rem 0 2rem; }
.ig-bib-sup { color: var(--ig-dourado); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; margin: 0 0 .2rem; }
.ig-bib-topo h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .3rem; }
.ig-bib-chamada { margin: 0 0 1.3rem; opacity: .92; max-width: 52ch; }
.ig-bib-busca { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 12px; padding: .55rem .75rem; max-width: 620px; }
.ig-bib-lupa { font-size: 1.2rem; }
.ig-bib-busca input { flex: 1; border: 0; font: inherit; font-size: 1.05rem; padding: .45rem 0; outline: none; min-width: 0; }
.ig-bib-busca button { border: 0; background: var(--ig-azul); color: #fff; font: inherit; font-weight: 700;
  border-radius: 8px; padding: .6rem 1.2rem; cursor: pointer; }
.ig-bib-cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ig-bib-cat { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  border: 1px solid var(--ig-borda); background: #fff; color: #33405a; border-radius: 999px;
  padding: .6rem 1.1rem; font-size: 1rem; font-weight: 600; }
.ig-bib-cat:hover { border-color: var(--ig-dourado); }
.ig-bib-cat.ativo { background: var(--ig-azul); border-color: var(--ig-azul); color: #fff; }
.ig-bib-estante { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.ig-bib-card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--ig-borda); border-radius: 14px; overflow: hidden;
  transition: transform .15s, box-shadow .15s; }
.ig-bib-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13,26,53,.16); }
.ig-bib-capa { position: relative; aspect-ratio: 3/4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; }
.ig-bib-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-bib-capa-icone { font-size: 2.6rem; }
.ig-bib-capa-titulo { font-family: "Fraunces", Georgia, serif; font-size: 1rem; line-height: 1.25; }
.ig-bib-tipo { position: absolute; top: .5rem; left: .5rem; background: rgba(255,255,255,.95);
  color: var(--ig-azul); font-size: .7rem; font-weight: 800; padding: .25em .6em; border-radius: 999px; }
.ig-bib-estrela { position: absolute; top: .5rem; right: .5rem; font-size: 1rem; }
.ig-bib-corpo { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.ig-bib-corpo strong { font-size: 1rem; line-height: 1.3; color: var(--ig-azul); }
.ig-bib-autor { font-size: .82rem; color: #5b6577; margin-bottom: .5rem; }
.ig-bib-botao { margin-top: auto; background: var(--ig-azul); color: #fff; text-align: center;
  border-radius: 9px; padding: .7rem; font-weight: 700; font-size: .95rem; }
.ig-bib-botao.externo { background: #fff; color: var(--ig-azul); border: 1px solid var(--ig-azul); }

/* ── Leitor ─────────────────────────────────────────────────── */
.ltr-barra { background: var(--ig-azul); color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; flex-wrap: wrap; }
.ltr-voltar, .ltr-baixar { color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.ltr-baixar { border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: .4rem .9rem; }
.ltr-titulo { font-weight: 700; text-align: center; flex: 1; min-width: 160px; }
.ltr-area { max-width: 1120px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.ltr-retomada { background: #fffbeb; border: 1px solid #f2d492; border-radius: 10px;
  padding: .7rem 1rem; font-size: .95rem; margin: 0 0 1rem; }
.ltr-caixa { background: #eef1f6; border-radius: 12px; padding: 12px; display: flex;
  justify-content: center; min-height: 320px; align-items: center; }
.ltr-caixa:fullscreen { background: #1a2233; padding: 0; align-items: flex-start; overflow: auto; }
.ltr-caixa canvas { max-width: 100%; background: #fff; box-shadow: 0 6px 20px rgba(13,26,53,.18); }
.ltr-aviso { color: #33405a; font-size: 1rem; text-align: center; }
.ltr-controles { display: flex; align-items: center; justify-content: center; gap: .8rem;
  flex-wrap: wrap; margin-top: 1rem; }
.ltr-controles-2 { margin-top: .6rem; }
.ltr-btn { font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  border: 1px solid var(--ig-borda); background: #fff; color: #33405a;
  border-radius: 10px; padding: .8rem 1.3rem; }
.ltr-btn:hover:not(:disabled) { border-color: var(--ig-dourado); }
.ltr-btn-forte { background: var(--ig-azul); border-color: var(--ig-azul); color: #fff; }
.ltr-btn:disabled { opacity: .45; cursor: default; }
.ltr-pag { font-size: 1.05rem; color: #33405a; }
.ltr-resumo { max-width: 640px; margin: 1.4rem auto 0; text-align: center; color: #5b6577; line-height: 1.7; }
@media (max-width: 560px) {
  .ltr-btn { padding: .75rem 1rem; font-size: .95rem; }
  .ig-bib-estante { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
}
