/* =========================================================
   IBMG — Igreja Batista em Morro Grande
   Sistema de design / folha de estilo principal
   Paleta extraída da identidade visual da igreja
   ========================================================= */

:root{
  /* --- Cores da marca --- */
  --ibmg-red:        #a32328;
  --ibmg-red-700:    #7c1a1e;
  --ibmg-red-800:    #5f1417;
  --ibmg-red-400:    #c4494e;
  --ibmg-red-200:    #eab9bb;
  --ibmg-red-050:    #fdf4f4;

  --ibmg-ink:        #17110f;
  --ibmg-ink-2:      #3a3234;
  --ibmg-gray:       #7f8285;
  --ibmg-gray-2:     #a7a9ac;
  --ibmg-line:       #ebe4e3;
  --ibmg-surface:    #ffffff;
  --ibmg-surface-2:  #faf7f6;
  --ibmg-surface-3:  #f3eeed;

  /* --- Tipografia --- */
  --font-brand: "Quicksand", "Trebuchet MS", sans-serif;
  --font-head:  "Poppins", "Segoe UI", sans-serif;
  --font-body:  "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Formas / sombras --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --sh-1: 0 2px 10px rgba(23,17,15,.05), 0 1px 2px rgba(23,17,15,.04);
  --sh-2: 0 12px 32px -12px rgba(23,17,15,.16), 0 2px 8px rgba(23,17,15,.05);
  --sh-3: 0 28px 64px -24px rgba(124,26,30,.38);

  --container: 1180px;
  --nav-h: 92px;

  /* Bootstrap overrides */
  --bs-primary: #a32328;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: #3a3234;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ibmg-ink-2);
  background: var(--ibmg-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5{
  font-family: var(--font-head);
  color: var(--ibmg-ink);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}

a{ color: var(--ibmg-red); text-decoration: none; transition: color .18s ease; }
a:hover{ color: var(--ibmg-red-700); }

img, svg{ max-width: 100%; }

::selection{ background: var(--ibmg-red); color:#fff; }

/* Barra de rolagem */
::-webkit-scrollbar{ width: 11px; height: 11px; }
::-webkit-scrollbar-track{ background: var(--ibmg-surface-3); }
::-webkit-scrollbar-thumb{ background: var(--ibmg-red-400); border-radius: 99px; border: 3px solid var(--ibmg-surface-3); }
::-webkit-scrollbar-thumb:hover{ background: var(--ibmg-red); }

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

/* =========================================================
   LOGOTIPO
   ========================================================= */
/* Logotipo oficial da igreja (arquivo PNG, proporção 763x259).
   assets/img/logo-ibmg.png        — versão colorida, para fundos claros
   assets/img/logo-ibmg-branco.png — versão branca, para o rodapé escuro */
.ibmg-logo{ display:inline-flex; align-items:center; line-height:0; flex:none; }
.ibmg-logo img{
  display:block;
  height: 64px;
  width: auto;
  max-width: 100%;
}
.ibmg-logo--light img{ height: 70px; }

/* =========================================================
   TOPO — barra informativa + navegação
   ========================================================= */
.topbar{
  background: var(--ibmg-red-700);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; min-height:40px; flex-wrap:wrap;
}
.topbar__list{ display:flex; gap:22px; flex-wrap:wrap; margin:0; padding:0; list-style:none; }
.topbar__list li{ display:flex; align-items:center; gap:7px; white-space:nowrap; }
.topbar__curto{ display:none; }
.topbar a{ color: rgba(255,255,255,.9); }
.topbar a:hover{ color:#fff; }
.topbar__social{ display:flex; gap:8px; }
.topbar__social a{
  width:26px; height:26px; display:grid; place-items:center;
  border-radius:8px; background: rgba(255,255,255,.12);
  transition: background .18s ease, transform .18s ease;
}
.topbar__social a:hover{ background: rgba(255,255,255,.26); transform: translateY(-1px); }

.nav-ibmg{
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ibmg-line);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav-ibmg.is-stuck{ box-shadow: var(--sh-2); }
.nav-ibmg__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; min-height: var(--nav-h);
}
.nav-ibmg__links{
  display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0;
}
.nav-ibmg__link{
  position:relative;
  display:block;
  padding: 10px 18px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ibmg-ink-2);
  transition: color .2s ease, background .2s ease;
}
.nav-ibmg__link:hover{ color: var(--ibmg-red); background: var(--ibmg-red-050); }
.nav-ibmg__link.is-active{ color: var(--ibmg-red); background: var(--ibmg-red-050); font-weight:600; }
.nav-ibmg__link.is-active::after{
  content:""; position:absolute; left:50%; bottom:2px; transform: translateX(-50%);
  width:18px; height:3px; border-radius:99px; background: var(--ibmg-red);
}
.nav-ibmg__actions{ display:flex; align-items:center; gap:10px; flex:none; }

.nav-toggle{
  display:none;
  /* flex:none é o que conserta o alvo pequeno. Sem isso o botão é o único
     item encolhível da barra — o logotipo tem flex:none — e em telas
     estreitas ele espremia, sobrando só uma faixa clicável. */
  flex:none;
  position:relative;
  width:48px; height:48px; border:1px solid var(--ibmg-line);
  background:#fff; border-radius: var(--r-sm); align-items:center; justify-content:center;
  cursor:pointer; color: var(--ibmg-ink);
  /* Sem isso o navegador segura o toque esperando um duplo-toque de zoom,
     e o clique parece não responder. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* Área de toque folgada além da moldura: o dedo acerta mesmo encostando
   um pouco fora do desenho do botão. Não ocupa espaço no layout. */
.nav-toggle::after{ content:""; position:absolute; inset:-10px; }
/* O ícone não participa do teste de acerto: todo toque resolve no botão. */
.nav-toggle > i{ pointer-events:none; }
.nav-toggle:active{ background: var(--ibmg-surface-3); }
.nav-toggle:focus-visible{ outline:3px solid var(--ibmg-red-200); }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn-ibmg{
  --btn-bg: var(--ibmg-red);
  --btn-fg: #fff;
  --btn-bd: var(--ibmg-red);
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding: 13px 26px;
  border-radius: 99px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-ibmg:hover{ color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(163,35,40,.7); }
.btn-ibmg:active{ transform: translateY(0); }
.btn-ibmg:focus-visible{ outline:3px solid var(--ibmg-red-200); outline-offset:2px; }

.btn-ibmg--outline{ --btn-bg: transparent; --btn-fg: var(--ibmg-red); }
.btn-ibmg--outline:hover{ --btn-bg: var(--ibmg-red); --btn-fg:#fff; }

.btn-ibmg--ghost-light{ --btn-bg: rgba(255,255,255,.08); --btn-fg:#fff; --btn-bd: rgba(255,255,255,.42); }
.btn-ibmg--ghost-light:hover{ --btn-bg:#fff; --btn-fg: var(--ibmg-red); --btn-bd:#fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }

.btn-ibmg--light{ --btn-bg:#fff; --btn-fg: var(--ibmg-red); --btn-bd:#fff; }
.btn-ibmg--sm{ padding: 9px 18px; font-size: .875rem; }
.btn-ibmg--lg{ padding: 16px 34px; font-size: 1.02rem; }

/* =========================================================
   VIEWS / ROTEAMENTO
   ========================================================= */
.view{ display:none; }
.view.is-active{ display:block; animation: viewIn .45s cubic-bezier(.22,.8,.3,1); }
@keyframes viewIn{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  color:#fff;
  background:
    radial-gradient(90% 120% at 12% 8%, #b62a30 0%, transparent 60%),
    linear-gradient(135deg, #a32328 0%, #7c1a1e 55%, #521114 100%);
}
.hero::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:80px;
  background: linear-gradient(to bottom right, transparent 49.6%, var(--ibmg-surface) 50%);
}
/* Ilustração oficial da fachada (PNG branco com fundo transparente).
   O desenho não é alterado — só a opacidade sobre o vermelho do hero. */
.hero__art{
  position:absolute; right:-6%; bottom:4%; width:min(66%, 900px);
  opacity:.26;
  pointer-events:none;
  /* Esmaece à esquerda para não competir com o título. */
  -webkit-mask-image: linear-gradient(to left, #000 58%, transparent 100%);
          mask-image: linear-gradient(to left, #000 58%, transparent 100%);
}
.hero__art img{ display:block; width:100%; height:auto; }
.hero__inner{
  position:relative; z-index:2;
  padding: clamp(64px, 9vw, 128px) 0 clamp(96px, 11vw, 160px);
  max-width: 720px;
}
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  padding: 7px 16px 7px 10px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.24);
  border-radius:99px;
  font-size:.82rem; font-weight:600; letter-spacing:.03em;
  width: max-content; margin-bottom:26px;
}
.hero__eyebrow .dot{ width:8px; height:8px; border-radius:99px; background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.22); }
.hero h1{
  color:#fff;
  font-size: clamp(2.5rem, 6vw, 4.15rem);
  margin: 0 0 20px;
  letter-spacing: -.035em;
}
.hero h1 em{ font-style:normal; color:#f3c8ca; }
.hero__lead{
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  color: rgba(255,255,255,.86);
  max-width: 58ch;
  margin: 0 0 34px;
}
.hero__cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero__meta{
  display:flex; gap: 34px; flex-wrap:wrap;
  margin-top: 46px; padding-top: 28px;
  border-top:1px solid rgba(255,255,255,.2);
}
.hero__meta div strong{ display:block; font-family:var(--font-head); font-size:1.5rem; color:#fff; }
.hero__meta div span{ font-size:.85rem; color: rgba(255,255,255,.7); }

/* ---------------------------------------------------------
   Próximos eventos dentro do hero
   --------------------------------------------------------- */
.hero-ev-bloco{ margin-top: 30px; }
.hero-ev-bloco__titulo{
  display:block; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 12px;
}

.hero-ev-trilho{
  display:grid; gap:12px;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.hero-ev{
  display:flex; align-items:center; gap:13px; text-align:left;
  background: rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: 13px 15px; cursor:pointer; font-family: inherit;
  color:#fff; min-width:0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-ev:hover{
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4);
  transform: translateY(-2px);
}
.hero-ev:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

.hero-ev__dia{
  flex:none; width:46px; text-align:center; line-height:1;
  font-family: var(--font-head); font-weight:600; font-size:1.32rem; color:#fff;
}
.hero-ev__dia small{
  display:block; font-size:.66rem; font-weight:500; margin-top:3px;
  text-transform:uppercase; letter-spacing:.1em; color: rgba(255,255,255,.65);
}

.hero-ev__corpo{ min-width:0; display:block; }
/* Nome inteiro, sem corte. Os quatro cartões dividem a largura em partes
   iguais e a grade iguala as alturas, então um título comprido só faz a
   fileira crescer junto — não desalinha nada. */
.hero-ev__nome{
  display:block; font-family: var(--font-head); font-weight:600; font-size:.93rem;
  color:#fff; line-height:1.3;
}
.hero-ev__hora{ display:block; font-size:.79rem; color: rgba(255,255,255,.7); margin-top:2px; }

/* Hero compacto para páginas internas */
.hero--page .hero__inner{ padding: clamp(52px, 7vw, 92px) 0 clamp(72px, 9vw, 116px); }
.hero--page h1{ font-size: clamp(2.1rem, 4.6vw, 3.25rem); }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section{ padding: clamp(64px, 8vw, 108px) 0; position:relative; }
.section--soft{ background: var(--ibmg-surface-2); }
.section--tint{ background: var(--ibmg-red-050); }
.section--dark{ background: var(--ibmg-ink); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3{ color:#fff; }

.section-head{ max-width: 720px; margin-bottom: 48px; }
.section-head--center{ margin-inline:auto; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family: var(--font-head); font-weight:600; font-size:.8rem;
  letter-spacing:.14em; text-transform: uppercase; color: var(--ibmg-red);
  margin-bottom:14px;
}
.eyebrow::before{
  content:""; width:22px; height:8px; border-radius:3px; background: var(--ibmg-red);
  box-shadow: 12px 0 0 -1px var(--ibmg-red-200);
}
.section-head--center .eyebrow{ justify-content:center; }
.section-head h2{ font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin:0 0 14px; }
.section-head p{ font-size:1.06rem; color: var(--ibmg-gray); margin:0; }

/* =========================================================
   CARDS
   ========================================================= */
.card-ibmg{
  background: var(--ibmg-surface);
  border: 1px solid var(--ibmg-line);
  border-radius: var(--r-lg);
  padding: 30px;
  height: 100%;
  box-shadow: var(--sh-1);
  transition: transform .25s cubic-bezier(.22,.8,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.card-ibmg:hover{ transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--ibmg-red-200); }
.card-ibmg__icon{
  width:56px; height:56px; border-radius: var(--r-md);
  display:grid; place-items:center; margin-bottom:20px;
  background: var(--ibmg-red-050); color: var(--ibmg-red);
  border:1px solid var(--ibmg-red-200);
}
.card-ibmg h3{ font-size:1.2rem; margin:0 0 10px; }
.card-ibmg p{ margin:0; color: var(--ibmg-gray); font-size:.96rem; }

/* Card de horário */
.schedule-card{
  position:relative; overflow:hidden;
  background:#fff; border:1px solid var(--ibmg-line); border-radius: var(--r-lg);
  padding: 28px 28px 28px 32px; height:100%;
  box-shadow: var(--sh-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.schedule-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:6px;
  background: linear-gradient(var(--ibmg-red), var(--ibmg-red-700));
}
.schedule-card:hover{ transform: translateY(-6px); box-shadow: var(--sh-2); }
.schedule-card__day{
  font-family: var(--font-head); font-weight:600; font-size:.78rem;
  letter-spacing:.14em; text-transform:uppercase; color: var(--ibmg-red);
}
.schedule-card__time{ font-family: var(--font-head); font-size:2rem; color: var(--ibmg-ink); margin:6px 0 4px; letter-spacing:-.03em; }
.schedule-card__name{ font-weight:500; color: var(--ibmg-ink-2); margin:0 0 6px; }
.schedule-card__desc{ font-size:.9rem; color: var(--ibmg-gray); margin:0; }

/* =========================================================
   BLOCO SOBRE
   ========================================================= */
.about-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items:center; }
.about-figure{
  position:relative; border-radius: var(--r-xl); overflow:hidden;
  background: linear-gradient(150deg, var(--ibmg-red) 0%, var(--ibmg-red-800) 100%);
  padding: 52px 30px 118px; color:#fff; box-shadow: var(--sh-3);
}
.about-figure img{ display:block; width:100%; height:auto; opacity:.5; }
.about-figure__caption{
  position:absolute; left:24px; right:24px; bottom:24px;
  background: rgba(23,17,15,.4); backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md); padding: 14px 18px; font-size:.9rem;
}
.value-list{ list-style:none; margin: 26px 0 0; padding:0; display:grid; gap:16px; }
.value-list li{ display:flex; gap:14px; align-items:flex-start; }
.value-list .tick{
  flex:none; width:26px; height:26px; border-radius:8px; display:grid; place-items:center;
  background: var(--ibmg-red); color:#fff; margin-top:2px;
}
.value-list strong{ display:block; color: var(--ibmg-ink); font-family:var(--font-head); font-weight:600; }
.value-list span{ font-size:.94rem; color: var(--ibmg-gray); }

/* Versículo destaque */
.verse{
  position:relative; overflow:hidden;
  background: linear-gradient(135deg, var(--ibmg-red) 0%, var(--ibmg-red-800) 100%);
  color:#fff; border-radius: var(--r-xl); padding: clamp(38px, 6vw, 68px);
  text-align:center; box-shadow: var(--sh-3);
}
.verse blockquote{
  font-family: var(--font-head); font-weight:500;
  font-size: clamp(1.3rem, 2.9vw, 2rem); line-height:1.4; letter-spacing:-.02em;
  margin:0 0 16px; max-width: 26ch; margin-inline:auto;
}
.verse cite{ font-style:normal; font-size:.92rem; letter-spacing:.1em; text-transform:uppercase; color: rgba(255,255,255,.75); }

/* =========================================================
   PRÓXIMOS EVENTOS (home)
   ========================================================= */
.event-row{
  display:flex; gap:22px; align-items:center;
  background:#fff; border:1px solid var(--ibmg-line); border-radius: var(--r-lg);
  padding: 20px 24px; box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.event-row:hover{ transform: translateX(4px); box-shadow: var(--sh-2); border-color: var(--ibmg-red-200); }
.event-row__date{
  flex:none; width:74px; text-align:center; border-radius: var(--r-md);
  background: var(--ibmg-red-050); border:1px solid var(--ibmg-red-200); padding:10px 6px;
}
.event-row__date b{ display:block; font-family:var(--font-head); font-size:1.65rem; color: var(--ibmg-red); line-height:1; }
.event-row__date span{ font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color: var(--ibmg-red-700); font-weight:600; }
.event-row__body{ min-width:0; }
.event-row__body h4{ margin:0 0 4px; font-size:1.06rem; }
.event-row__body p{ margin:0; font-size:.88rem; color: var(--ibmg-gray); display:flex; gap:16px; flex-wrap:wrap; }
.event-row__body p span{ display:inline-flex; align-items:center; gap:6px; }

.tag{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 12px; border-radius:99px; font-size:.74rem; font-weight:600;
  font-family: var(--font-head); letter-spacing:.04em; text-transform:uppercase;
  background: var(--ibmg-surface-3); color: var(--ibmg-ink-2); border:1px solid var(--ibmg-line);
}
.tag--culto{ background:#fdf4f4; color: var(--ibmg-red-700); border-color: var(--ibmg-red-200); }
.tag--jovens{ background:#eef4fd; color:#1f4e8c; border-color:#cfe0f7; }
.tag--infantil{ background:#fff6e8; color:#8a5a09; border-color:#fbe2bb; }
.tag--estudo{ background:#eefaf3; color:#1c6b45; border-color:#c8ead9; }
.tag--evento{ background:#f4eefd; color:#54318c; border-color:#e0d1f7; }
.tag--geral{ background:#f2f2f3; color:#4a4a4d; border-color:#e2e2e4; }

/* =========================================================
   PASTORES
   ========================================================= */
.pastor-card{
  position:relative; overflow:hidden; height:100%;
  background:#fff; border:1px solid var(--ibmg-line); border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  transition: transform .28s cubic-bezier(.22,.8,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.pastor-card:hover{ transform: translateY(-8px); box-shadow: var(--sh-2); border-color: var(--ibmg-red-200); }
.pastor-card__foto{
  position:relative; display:block; width:100%; aspect-ratio: 400 / 460;
  background: var(--ibmg-surface-3); overflow:hidden;
}
.pastor-card__foto img, .pastor-card__foto svg{
  width:100%; height:100%; object-fit: cover; display:block;
}
.pastor-card__selo{
  position:absolute; left:16px; top:16px;
  background: rgba(23,17,15,.55); backdrop-filter: blur(6px);
  color:#fff; font-size:.66rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:5px 11px; border-radius:99px; border:1px solid rgba(255,255,255,.28);
}
.pastor-card__corpo{ padding: 26px 26px 28px; }
.pastor-card__funcao{
  font-family: var(--font-head); font-weight:600; font-size:.74rem;
  letter-spacing:.14em; text-transform:uppercase; color: var(--ibmg-red);
}
.pastor-card h3{ font-size:1.28rem; margin:8px 0 12px; }
.pastor-card p{ color: var(--ibmg-gray); font-size:.94rem; margin:0; }
.pastor-card__meta{
  display:flex; flex-wrap:wrap; gap:8px 16px;
  margin-top:18px; padding-top:16px; border-top:1px dashed var(--ibmg-line);
  font-size:.86rem; color: var(--ibmg-gray);
}
.pastor-card__meta span{ display:inline-flex; align-items:center; gap:7px; }
.pastor-card__meta a{ color: var(--ibmg-gray); }
.pastor-card__meta a:hover{ color: var(--ibmg-red); }

.aviso-placeholder{
  display:flex; gap:14px; align-items:flex-start;
  background: var(--ibmg-red-050); border:1px dashed var(--ibmg-red-200);
  border-radius: var(--r-md); padding: 16px 20px; font-size:.92rem;
  color: var(--ibmg-red-700); margin-top: 34px;
}
.aviso-placeholder i{ font-size:1.15rem; line-height:1.4; }

/* =========================================================
   CONTATO (página)
   ========================================================= */
.contato-cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:18px; }
.contato-card{
  display:flex; flex-direction:column; gap:12px;
  background:#fff; border:1px solid var(--ibmg-line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-1); height:100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.contato-card:hover{ transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--ibmg-red-200); }
.contato-card__ic{
  width:50px; height:50px; border-radius:15px; display:grid; place-items:center;
  background: var(--ibmg-red-050); color: var(--ibmg-red); border:1px solid var(--ibmg-red-200);
  font-size:1.2rem;
}
.contato-card h3{ font-size:1.05rem; margin:0; }
.contato-card p, .contato-card a{ margin:0; font-size:.95rem; color: var(--ibmg-gray); }
.contato-card a{ font-weight:500; }
.contato-card a:hover{ color: var(--ibmg-red); }
.contato-card .acao{ margin-top:auto; padding-top:14px; }

/* Tabela de horários de culto */
.horarios{
  background:#fff; border:1px solid var(--ibmg-line); border-radius: var(--r-xl);
  box-shadow: var(--sh-1); overflow:hidden;
}
.horarios__dia{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  padding: 20px 26px; border-bottom:1px solid var(--ibmg-line);
}
.horarios__dia:last-child{ border-bottom:0; }
.horarios__dia:nth-child(odd){ background: var(--ibmg-surface-2); }
.horarios__nome{
  flex:none; width:130px;
  font-family: var(--font-head); font-weight:600; font-size:.8rem;
  letter-spacing:.12em; text-transform:uppercase; color: var(--ibmg-red);
}
.horarios__itens{ display:flex; flex-wrap:wrap; gap:10px 28px; flex:1; min-width:0; }
.horarios__item{ display:flex; align-items:baseline; gap:10px; }
.horarios__hora{
  font-family: var(--font-head); font-weight:600; font-size:1.15rem;
  color: var(--ibmg-ink); letter-spacing:-.02em; white-space:nowrap;
}
.horarios__desc{ font-size:.94rem; color: var(--ibmg-ink-2); }

@media (max-width: 620px){
  .horarios__dia{ gap:10px; padding: 18px 20px; }
  .horarios__nome{ width:100%; }
  .horarios__itens{ flex-direction:column; gap:8px; }
}

/* =========================================================
   CONTRIBUA
   ========================================================= */
.give-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items:start; }
.pix-card{
  position:relative; overflow:hidden;
  background: linear-gradient(150deg, var(--ibmg-ink) 0%, #2a1e1f 100%);
  color:#fff; border-radius: var(--r-xl); padding: 36px; box-shadow: var(--sh-2);
}
.pix-card h3{ color:#fff; font-size:1.35rem; margin:0 0 6px; }
.pix-card p.sub{ color: rgba(255,255,255,.62); font-size:.94rem; margin:0 0 26px; }
.pix-key{
  display:flex; align-items:center; gap:12px;
  background: rgba(255,255,255,.07); border:1px dashed rgba(255,255,255,.28);
  border-radius: var(--r-md); padding: 16px 18px; margin-bottom:16px;
}
.pix-key__label{ font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.5); display:block; }
.pix-key__value{ font-family: var(--font-head); font-size:1.06rem; word-break: break-all; color:#fff; }
.copy-btn{
  flex:none; border:0; border-radius: 10px; padding:10px 14px; cursor:pointer;
  background: var(--ibmg-red); color:#fff; font-weight:600; font-size:.84rem;
  display:inline-flex; align-items:center; gap:7px; transition: background .18s ease, transform .18s ease;
}
.copy-btn:hover{ background: var(--ibmg-red-400); transform: translateY(-1px); }
.copy-btn.is-done{ background:#1c6b45; }

.bank-list{ list-style:none; margin:0; padding:0; }
.bank-list li{
  display:flex; justify-content:space-between; gap:16px; padding: 13px 0;
  border-bottom:1px dashed var(--ibmg-line); font-size:.95rem;
}
.bank-list li:last-child{ border-bottom:0; }
.bank-list .k{ color: var(--ibmg-gray); }
.bank-list .v{ font-family: var(--font-head); font-weight:600; color: var(--ibmg-ink); text-align:right; }

/* Centavos que identificam o destino da oferta */
.centavos h3{ font-size:1.12rem; margin:0 0 8px; }
.centavos__intro{ color: var(--ibmg-gray); font-size:.92rem; margin:0 0 18px; }

.centavos__lista{ list-style:none; margin:0 0 18px; padding:0; }
.centavos__lista li{
  display:flex; align-items:center; gap:14px; padding: 11px 0;
  border-bottom:1px dashed var(--ibmg-line);
}
.centavos__lista li:last-child{ border-bottom:0; }

.centavos__valor{
  flex:none; min-width: 62px; text-align:center;
  font-family: var(--font-head); font-weight:600; font-size:1rem;
  color: var(--ibmg-red); background: var(--ibmg-red-050);
  border:1px solid var(--ibmg-red-200); border-radius: var(--r-sm);
  padding: 5px 10px;
}
.centavos__fim{ color: var(--ibmg-ink); font-size:.95rem; }

.centavos__nota{
  display:flex; align-items:flex-start; gap:9px; margin:0;
  background:#eefaf3; border:1px solid #c8ead9; border-radius: var(--r-sm);
  padding: 12px 15px; font-size:.88rem; color:#1c6b45;
}
.centavos__nota i{ flex:none; margin-top:2px; }

.give-way{
  display:flex; gap:18px; padding: 22px; border-radius: var(--r-lg);
  border:1px solid var(--ibmg-line); background:#fff; box-shadow: var(--sh-1); height:100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.give-way:hover{ transform: translateY(-4px); box-shadow: var(--sh-2); }
.give-way__ic{
  flex:none; width:48px; height:48px; border-radius:14px; display:grid; place-items:center;
  background: var(--ibmg-red); color:#fff;
}
.give-way h4{ margin:0 0 6px; font-size:1.05rem; }
.give-way p{ margin:0; font-size:.9rem; color: var(--ibmg-gray); }

.accordion-ibmg .accordion-item{ border:1px solid var(--ibmg-line); border-radius: var(--r-md) !important; margin-bottom:12px; overflow:hidden; background:#fff; }
.accordion-ibmg .accordion-button{ font-family: var(--font-head); font-weight:600; color: var(--ibmg-ink); background:#fff; padding: 18px 22px; }
.accordion-ibmg .accordion-button:not(.collapsed){ color: var(--ibmg-red); background: var(--ibmg-red-050); box-shadow:none; }
.accordion-ibmg .accordion-button:focus{ box-shadow: 0 0 0 3px var(--ibmg-red-200); border-color: transparent; }
.accordion-ibmg .accordion-body{ color: var(--ibmg-gray); padding: 6px 22px 22px; }

/* =========================================================
   CALENDÁRIO
   ========================================================= */
.cal-shell{
  display:grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items:start;
}
.cal-panel{
  background:#fff; border:1px solid var(--ibmg-line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); overflow:hidden;
}
.cal-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding: 20px 24px; border-bottom:1px solid var(--ibmg-line); flex-wrap:wrap;
  background: linear-gradient(180deg, var(--ibmg-surface-2), #fff);
}
.cal-toolbar__esq{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.cal-title{ font-family: var(--font-head); font-weight:600; font-size:1.35rem; color: var(--ibmg-ink); margin:0; letter-spacing:-.02em; }

/* Seletor mês / lista */
.cal-modo{
  display:flex; gap:2px; padding:3px;
  background: var(--ibmg-surface-3); border-radius: 12px;
}
.cal-modo button{
  display:inline-flex; align-items:center; gap:7px;
  border:0; background:transparent; cursor:pointer;
  border-radius: 9px; padding: 7px 13px;
  font-family: var(--font-head); font-weight:500; font-size:.84rem;
  color: var(--ibmg-gray);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.cal-modo button:hover{ color: var(--ibmg-ink); }
.cal-modo button.is-on{
  background:#fff; color: var(--ibmg-red); font-weight:600;
  box-shadow: 0 1px 3px rgba(23,17,15,.12);
}
.cal-modo button:focus-visible{ outline:2px solid var(--ibmg-red-200); outline-offset:1px; }

.cal-lista{ padding: 18px 20px 22px; }
.cal-nav{ display:flex; gap:8px; align-items:center; }
.cal-nav button{
  width:40px; height:40px; border-radius:12px; border:1px solid var(--ibmg-line);
  background:#fff; color: var(--ibmg-ink-2); cursor:pointer; display:grid; place-items:center;
  transition: all .18s ease;
}
.cal-nav button:hover{ background: var(--ibmg-red); color:#fff; border-color: var(--ibmg-red); }
.cal-nav .cal-today{ width:auto; padding:0 16px; font-weight:600; font-size:.86rem; font-family: var(--font-head); }

.cal-weekdays{
  display:grid; grid-template-columns: repeat(7, 1fr);
  padding: 14px 16px 6px; gap:6px;
}
.cal-weekdays span{
  text-align:center; font-size:.72rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color: var(--ibmg-gray-2);
}
.cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:6px; padding: 0 16px 18px; }
.cal-day{
  position:relative; aspect-ratio: 1 / .92; min-height:62px;
  /* Sem min-width:0 o aspect-ratio deriva uma largura mínima do min-height
     e a grade de 7 colunas estoura o container no celular. */
  min-width: 0;
  border:1px solid transparent; border-radius: 14px;
  background: var(--ibmg-surface-2);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  padding: 8px 4px 6px; cursor:pointer; font-family: var(--font-head);
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.cal-day:hover{ background:#fff; border-color: var(--ibmg-red-200); transform: translateY(-2px); box-shadow: var(--sh-1); }
.cal-day:focus-visible{ outline:3px solid var(--ibmg-red-200); outline-offset:2px; }
.cal-day__num{ font-size:.95rem; font-weight:600; color: var(--ibmg-ink-2); line-height:1; }
.cal-day--out{ opacity:.34; }
.cal-day--today{ border-color: var(--ibmg-red); background:#fff; }
.cal-day--today .cal-day__num{ color: var(--ibmg-red); }
.cal-day--today::after{
  content:"hoje"; position:absolute; bottom:4px; font-size:.56rem; letter-spacing:.08em;
  text-transform:uppercase; color: var(--ibmg-red); font-weight:700;
}
.cal-day--has{ background:#fff; border-color: var(--ibmg-line); }
.cal-day--selected{ background: var(--ibmg-red) !important; border-color: var(--ibmg-red) !important; box-shadow: 0 10px 22px -10px rgba(163,35,40,.8); }
.cal-day--selected .cal-day__num{ color:#fff; }
.cal-day--selected::after{ color:#fff !important; }
.cal-day--selected .cal-dot{ background:#fff !important; }
.cal-day--selected .cal-dot--more{ color:#fff !important; }
.cal-dots{ display:flex; gap:3px; margin-top:6px; flex-wrap:wrap; justify-content:center; max-width:100%; }
.cal-dot{ width:6px; height:6px; border-radius:2px; background: var(--ibmg-red); }
.cal-dot--more{ font-size:.55rem; color: var(--ibmg-red); font-weight:700; line-height:6px; background:none; width:auto; height:auto; }

.cal-side{ display:grid; gap:18px; }
.cal-side__head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding-bottom:14px; border-bottom:2px solid var(--ibmg-line);
}
.cal-side__head h3{ margin:0; font-size:1.15rem; }
.cal-side__head span{ font-size:.84rem; color: var(--ibmg-gray); }

.ev-card{
  background:#fff; border:1px solid var(--ibmg-line); border-left:5px solid var(--ibmg-red);
  border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ev-card:hover{ transform: translateX(3px); box-shadow: var(--sh-2); }
.ev-card__top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:8px; }
.ev-card h4{ margin:0; font-size:1.04rem; }
.ev-card__meta{ display:flex; flex-wrap:wrap; gap:8px 18px; font-size:.86rem; color: var(--ibmg-gray); }
.ev-card__meta span{ display:inline-flex; align-items:center; gap:6px; }
.ev-card__desc{ margin:10px 0 0; font-size:.9rem; color: var(--ibmg-ink-2); }

/* Evento aberto a partir de uma notificação */
.ev-card--destaque{
  border-color: var(--ibmg-red);
  border-left-width: 5px;
  background: var(--ibmg-red-050);
  box-shadow: 0 0 0 4px rgba(163,35,40,.14), var(--sh-2);
  animation: destacarEvento 1.6s ease-out 2;
}
@keyframes destacarEvento{
  0%,100%{ box-shadow: 0 0 0 4px rgba(163,35,40,.14), var(--sh-2); }
  50%    { box-shadow: 0 0 0 9px rgba(163,35,40,.05), var(--sh-2); }
}

.empty-state{
  text-align:center; padding: 46px 24px; border:2px dashed var(--ibmg-line);
  border-radius: var(--r-lg); color: var(--ibmg-gray); background: var(--ibmg-surface-2);
}
.empty-state svg{ color: var(--ibmg-gray-2); margin-bottom:12px; }
.empty-state p{ margin:0; font-size:.94rem; }

.cal-legend{ display:flex; gap:16px; flex-wrap:wrap; font-size:.8rem; color: var(--ibmg-gray); }
.cal-legend i{ width:10px; height:10px; border-radius:3px; display:inline-block; margin-right:6px; }

.skeleton{
  background: linear-gradient(90deg, var(--ibmg-surface-3) 25%, #fff 50%, var(--ibmg-surface-3) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md);
}
@keyframes shimmer{ from{ background-position: 200% 0; } to{ background-position: -200% 0; } }

/* =========================================================
   CONTATO / MAPA
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns: .95fr 1.05fr; gap:40px; align-items:stretch; }
.map-frame{
  border-radius: var(--r-xl); overflow:hidden; border:1px solid var(--ibmg-line);
  box-shadow: var(--sh-2); min-height: 380px; background: var(--ibmg-surface-3);
}
.map-frame iframe{ width:100%; height:100%; min-height:380px; border:0; display:block; }
.contact-item{ display:flex; gap:16px; padding: 16px 0; border-bottom:1px dashed var(--ibmg-line); }
.contact-item:last-of-type{ border-bottom:0; }
.contact-item__ic{
  flex:none; width:44px; height:44px; border-radius:13px; display:grid; place-items:center;
  background: var(--ibmg-red-050); color: var(--ibmg-red); border:1px solid var(--ibmg-red-200);
}
.contact-item strong{ display:block; font-family: var(--font-head); color: var(--ibmg-ink); font-size:.98rem; }
.contact-item span, .contact-item a{ font-size:.93rem; color: var(--ibmg-gray); }
.contact-item a:hover{ color: var(--ibmg-red); }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer{ background: var(--ibmg-ink); color: rgba(255,255,255,.62); padding: 68px 0 0; position:relative; overflow:hidden; }
.footer__grid{ display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:52px; }
.footer h5{ color:#fff; font-size:.86rem; letter-spacing:.14em; text-transform:uppercase; margin:0 0 20px; font-weight:600; }
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.footer a{ color: rgba(255,255,255,.62); font-size:.93rem; }
.footer a:hover{ color:#fff; }
.footer p{ font-size:.93rem; }
.footer__social{ display:flex; gap:10px; margin-top:20px; }
.footer__social a{
  width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  transition: all .2s ease;
}
.footer__social a:hover{ background: var(--ibmg-red); border-color: var(--ibmg-red); color:#fff; transform: translateY(-2px); }
.footer__bar{
  border-top:1px solid rgba(255,255,255,.1); padding: 22px 0;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem;
}

/* =========================================================
   MODAL / TOAST
   ========================================================= */
.modal-ibmg .modal-content{ border:0; border-radius: var(--r-xl); overflow:hidden; box-shadow: var(--sh-3); }
.modal-ibmg .modal-header{ background: linear-gradient(135deg, var(--ibmg-red), var(--ibmg-red-800)); color:#fff; border:0; padding: 22px 26px; }
.modal-ibmg .modal-header .modal-title{ color:#fff; font-size:1.2rem; }
.modal-ibmg .btn-close{ filter: invert(1) grayscale(1) brightness(2); opacity:.85; }
.modal-ibmg .modal-body{ padding: 26px; }

.toast-stack{ position: fixed; right: 18px; bottom: 78px; z-index: 2000; display:grid; gap:10px; }
.toast-ibmg{
  background: var(--ibmg-ink); color:#fff; padding: 13px 18px; border-radius: var(--r-md);
  box-shadow: var(--sh-2); font-size:.9rem; display:flex; align-items:center; gap:10px;
  animation: toastIn .3s cubic-bezier(.22,.8,.3,1);
}
.toast-ibmg--ok{ background:#1c6b45; }
.toast-ibmg--err{ background: var(--ibmg-red-700); }
@keyframes toastIn{ from{ opacity:0; transform: translateY(14px) scale(.96);} to{ opacity:1; transform:none; } }

/* =========================================================
   APLICATIVO (PWA)
   ========================================================= */
/* Aba Aplicativo. A barra flutuante que aparecia por cima do site foi
   retirada: o convite virou uma página, que a pessoa abre quando quer. */
.app-estado{
  display:flex; align-items:flex-start; gap:20px;
  background:#fff; border:1px solid var(--ibmg-line);
  border-radius: var(--r-lg); padding: 26px 28px;
}
.app-estado__ic{
  width:58px; height:58px; border-radius: var(--r-md); flex:none;
  display:grid; place-items:center; font-size:1.5rem;
  background: var(--ibmg-red-050); color: var(--ibmg-red);
  border:1px solid var(--ibmg-red-200);
}
.app-estado__ic--ok{ background:#eefaf3; color:#1c6b45; border-color:#c8ead9; }
.app-estado h2{ font-size:1.25rem; margin:0 0 6px; }
.app-estado p{ margin:0; color: var(--ibmg-gray); font-size:.96rem; }

.app-nota{
  display:flex; align-items:flex-start; gap:11px; margin: 30px 0 0;
  background: var(--ibmg-surface-2); border-radius: var(--r-md);
  padding: 16px 20px; font-size:.9rem; color: var(--ibmg-ink-2);
}
.app-nota i{ flex:none; margin-top:2px; color: var(--ibmg-red); }

@media (max-width: 520px){
  .app-estado{ flex-direction:column; gap:16px; padding: 22px 20px; }
  .app-estado__ic{ width:50px; height:50px; }
}

/* Rodando como app instalado: a barra promocional do topo sai de cena
   e o conteúdo respeita a área segura do aparelho. */
@media (display-mode: standalone){
  .topbar{ display:none; }
  body{ padding-bottom: env(safe-area-inset-bottom); }
  .back-to-top{ bottom: calc(18px + env(safe-area-inset-bottom)); }
  .toast-stack{ bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   AVISOS POR NOTIFICAÇÃO
   ========================================================= */
/* Invisível por padrão. Só o JavaScript decide mostrar, adicionando
   .avisos--visivel. Não usamos o atributo hidden aqui de propósito:
   uma regra de display no CSS do autor sobrepõe [hidden] do navegador,
   e essa ambiguidade já custou tempo de depuração. */
.avisos{ display:none; }
.avisos--visivel{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  background: linear-gradient(135deg, var(--ibmg-red-050), #fff 70%);
  border:1px solid var(--ibmg-red-200); border-radius: var(--r-lg);
  padding: 20px 24px; margin-bottom: 28px; box-shadow: var(--sh-1);
}
.avisos__ic{
  width:48px; height:48px; border-radius:14px; flex:none;
  display:grid; place-items:center; font-size:1.2rem;
  background: var(--ibmg-red); color:#fff;
}
.avisos__txt{ flex:1; min-width:220px; line-height:1.4; }
.avisos__txt strong{ display:block; font-family: var(--font-head); font-size:1.02rem; color: var(--ibmg-ink); }
.avisos__txt span{ font-size:.9rem; color: var(--ibmg-gray); }
.avisos__acoes{ flex:none; display:flex; gap:8px; align-items:center; }

/* Estado ativo */
.avisos--ativo{
  background: linear-gradient(135deg, #eefaf3, #fff 70%);
  border-color:#c8ead9;
}
.avisos--ativo .avisos__ic{ background:#1c6b45; }

/* Estado bloqueado ou indisponível */
.avisos--aviso{
  background: var(--ibmg-surface-2);
  border-color: var(--ibmg-line);
  border-style: dashed;
}
.avisos--aviso .avisos__ic{ background: var(--ibmg-gray-2); }

/* Confirmação discreta quando já está ativado */
.avisos--compacto{
  gap:12px; padding: 13px 18px;
  background: var(--ibmg-surface-2);
  border-color: var(--ibmg-line);
  box-shadow: none;
}
.avisos--compacto .avisos__ic{ width:32px; height:32px; border-radius:10px; font-size:.85rem; }
.avisos--compacto .avisos__txt strong{ font-size:.92rem; }
.avisos--compacto .avisos__txt span{ display:none; }
.avisos__link{
  border:0; background:none; padding:0; cursor:pointer;
  font-size:.85rem; color: var(--ibmg-gray); text-decoration:underline;
  font-family: inherit;
}
.avisos__link:hover{ color: var(--ibmg-red); }

@media (max-width: 620px){
  .avisos--visivel{ padding:18px; gap:14px; }
  .avisos__txt{ min-width:0; flex:1 1 100%; order:2; }
  .avisos__acoes{ flex:1 1 100%; order:3; }
  .avisos__acoes .btn-ibmg{ width:100%; justify-content:center; }
  .avisos--compacto{ padding:13px 16px; }
  .avisos--compacto .avisos__txt{ flex:1 1 auto; order:0; }
  .avisos--compacto .avisos__acoes{ flex:0 0 auto; order:0; }
}

/* =========================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================= */
/* Sem JavaScript o conteúdo continua visível: só escondemos quando a
   classe .js é aplicada no <html> pelo próprio script. */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1); }
.js .reveal.is-in{ opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }
.reveal[data-delay="4"]{ transition-delay:.32s; }

.back-to-top{
  position: fixed; right:18px; bottom:18px; z-index:1040;
  width:48px; height:48px; border-radius:14px; border:0; cursor:pointer;
  background: var(--ibmg-red); color:#fff; display:grid; place-items:center;
  box-shadow: var(--sh-2); opacity:0; pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.is-on{ opacity:1; pointer-events:auto; }
.back-to-top:hover{ transform: translateY(-3px); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1080px){
  .cal-shell{ grid-template-columns: 1fr; }
  .give-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
/* Com seis itens no menu a barra precisa colapsar mais cedo ainda:
   logotipo mais os links passam de 900px antes de sobrar folga. */
@media (max-width: 1080px){
  :root{ --nav-h: 76px; }
  .nav-toggle{ display:flex; }
  .nav-ibmg__nav{
    position: absolute; left:0; right:0; top: 100%;
    background:#fff; border-bottom:1px solid var(--ibmg-line);
    padding: 14px 20px 22px; box-shadow: var(--sh-2);
    display:none;
  }
  .nav-ibmg__nav.is-open{ display:block; animation: viewIn .28s ease; }
  .nav-ibmg__inner{ position: relative; }
  .nav-ibmg__links{ flex-direction: column; align-items: stretch; gap:4px; }
  .nav-ibmg__link{ padding: 14px 16px; }
  .nav-ibmg__link.is-active::after{ display:none; }
  .ibmg-logo img{ height:52px; }
  /* No celular a ilustração vira textura no rodapé do hero. */
  .hero__art{
    right:-26%; bottom:0; width:150%; opacity:.26;
    -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 100%);
            mask-image: linear-gradient(to top, #000 52%, transparent 100%);
  }
  .topbar__list li:nth-child(n+3){ display:none; }
}
@media (max-width: 620px){
  .footer__grid{ grid-template-columns: 1fr; gap:32px; }
  .cal-day{ min-height:48px; padding:6px 2px; border-radius:10px; }
  .cal-grid{ gap:4px; padding-inline:12px; }
  .cal-weekdays{ gap:4px; padding-inline:12px; }
  .cal-day--today::after{ display:none; }
  .cal-weekdays span{ font-size:.62rem; }
  .event-row{ flex-direction:column; align-items:flex-start; gap:14px; }
  .hero__meta{ gap:22px; }

  /* Carrossel: quatro cartões empilhados comeriam a tela inteira, então
     no celular eles deitam numa faixa que desliza com o dedo. O snap
     encaixa um cartão por vez, e o corte do próximo à direita é o que
     avisa que há mais para o lado. */
  .hero-ev-trilho{
    display:flex; gap:10px;
    overflow-x:auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Sangra até a borda da tela e devolve o respiro por dentro. */
    margin-inline: -20px; padding: 2px 20px 10px;
    scrollbar-width:none;
  }
  .hero-ev-trilho::-webkit-scrollbar{ display:none; }
  .hero-ev{ flex: 0 0 78%; scroll-snap-align:start; }
  .hero-ev:hover{ transform:none; }
  /* Só aqui o nome é cortado: na faixa que desliza, um título comprido
     esticaria o cartão e desencaixaria o snap. No desktop ele aparece
     inteiro. */
  .hero-ev__nome{
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .pix-card{ padding: 26px; }
  .card-ibmg{ padding: 24px; }
  .cal-toolbar{ justify-content:center; }
  .cal-toolbar__esq{ justify-content:center; width:100%; gap:12px; }
  /* No celular só os ícones: os rótulos empurrariam a navegação de mês
     para uma terceira linha. */
  .cal-modo button span{ display:none; }
  .cal-modo button{ padding: 8px 14px; }
  .cal-lista{ padding: 14px 14px 18px; }
  /* Na barra superior sobra apenas o horário do culto + redes, em uma linha. */
  .topbar__inner{ flex-wrap:nowrap; }
  .topbar__list li:nth-child(n+2){ display:none; }
  .topbar__list li:first-child{ font-size:.76rem; }
  .topbar__full{ display:none; }
  .topbar__curto{ display:inline; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal, .js .reveal{ opacity:1 !important; transform:none !important; }
}

@media print{
  .topbar, .nav-ibmg, .footer, .back-to-top, .hero__art{ display:none !important; }
  .view{ display:block !important; }
}
