/**
 * IBG Gramado — layout próprio (sem style-friendly / Pixy)
 * Ordem: bootstrap-grid → fontawesome → ibg-theme → ibg-site → este ficheiro
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ibg {
  margin: 0;
  font-family: var(--ibg-font, system-ui, sans-serif);
  background: var(--ibg-cream);
  color: var(--ibg-ink-soft);
  line-height: 1.5;
  overflow-x: clip;
}

.ibg-skip {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 0.5rem 1rem;
  background: var(--ibg-green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.ibg-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Preloader */
.ibg-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--ibg-paper) 0%, var(--ibg-cream-deep) 100%);
  transition: opacity 0.2s ease;
}
.ibg-preloader-inner {
  text-align: center;
  opacity: 0;
}
.ibg-preloader-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ibg-green);
  margin-bottom: 1rem;
}
.ibg-preloader-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ibg-ink);
}

/* Barra de progresso do scroll */
.ibg-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999998;
  background: transparent;
  pointer-events: none;
}
.ibg-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ibg-sage), var(--ibg-green));
}

/* Cabeçalho */
.ibg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* Sobre o hero: texto e ícones brancos, barra semissólida */
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) {
  background: rgba(10, 12, 11, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-logo {
  color: #fff !important;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-nav a {
  color: rgba(255, 255, 255, 0.94) !important;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-nav a:hover {
  color: #b8f0d8 !important;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-icon-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-icon-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-burger {
  background: rgba(255, 255, 255, 0.14);
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-burger span,
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-burger span::before,
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-burger span::after {
  background: #fff;
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-lang {
  border-color: rgba(255, 255, 255, 0.38);
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-lang button {
  color: rgba(255, 255, 255, 0.92);
}
.ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) .ibg-lang button.ibg-lang-active {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.ibg-header.ibg-header--scrolled {
  background: rgba(255, 252, 249, 0.96);
  border-bottom-color: rgba(31, 30, 28, 0.06);
  box-shadow: 0 4px 24px rgba(31, 30, 28, 0.04);
}

html[data-theme="dark"] .ibg-header:not(.ibg-header--on-hero),
html[data-theme="dark"] .ibg-header.ibg-header--scrolled {
  background: rgba(20, 19, 18, 0.92);
}
html[data-theme="dark"] .ibg-header.ibg-header--scrolled {
  background: rgba(26, 25, 23, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .ibg-header.ibg-header--on-hero:not(.ibg-header--scrolled) {
  background: rgba(8, 9, 9, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ibg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.ibg-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ibg-ink) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.ibg-logo span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ibg-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.ibg-nav {
  display: none;
}
@media (min-width: 992px) {
  .ibg-nav {
    display: block;
    flex: 1;
    max-width: 720px;
  }
}
.ibg-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
.ibg-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ibg-ink-soft);
  transition: color 0.2s ease;
}
.ibg-nav a:hover {
  color: var(--ibg-green);
}

.ibg-header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ibg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(45, 106, 79, 0.08);
  color: var(--ibg-green);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ibg-icon-btn:hover {
  background: rgba(45, 106, 79, 0.15);
}

.ibg-burger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(45, 106, 79, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 992px) {
  .ibg-burger {
    display: none;
  }
}
.ibg-burger span,
.ibg-burger span::before,
.ibg-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ibg-ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.ibg-burger span::before,
.ibg-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.ibg-burger span::before {
  top: -6px;
}
.ibg-burger span::after {
  top: 6px;
}
.ibg-burger[aria-expanded="true"] span {
  background: transparent;
}
.ibg-burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.ibg-burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer menu */
.ibg-drawer {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s step-end;
}
.ibg-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s step-start;
}
.ibg-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 30, 28, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ibg-drawer.is-open .ibg-drawer-backdrop {
  opacity: 1;
}
.ibg-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: var(--ibg-paper);
  box-shadow: -8px 0 40px rgba(31, 30, 28, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  padding: 5.5rem 1.75rem 2rem;
}
.ibg-drawer.is-open .ibg-drawer-panel {
  transform: translateX(0);
}

.ibg-drawer-nav ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.ibg-drawer-nav a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ibg-ink);
  border-bottom: 1px solid rgba(31, 30, 28, 0.08);
}
.ibg-drawer-nav a:hover {
  color: var(--ibg-green);
}

.ibg-drawer-posts h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ibg-mist);
}
.ibg-drawer-cards {
  display: grid;
  gap: 1rem;
}
.ibg-drawer-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.ibg-drawer-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--ibg-radius-sm);
}
.ibg-drawer-card span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ibg-ink);
}

.ibg-drawer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 30, 28, 0.08);
}
.ibg-drawer-social a {
  color: var(--ibg-green);
  font-size: 1.25rem;
}

/* Redes ainda não configuradas no painel (Contacto) */
a.ibg-social--placeholder {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

/* Conteúdo principal */
.ibg-main {
  padding-top: 0;
  min-height: 100vh;
  background: var(--ibg-cream);
}

/* Hero topo — imagem 60% + vinheta; texto branco só aqui */
.ibg-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ibg-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
  will-change: transform, background-position;
  transform: scale(1.12);
  transform-origin: center center;
}
@media (prefers-reduced-motion: reduce) {
  .ibg-hero__media {
    transform: none;
    will-change: auto;
  }
}
.ibg-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 14, 13, 0.42) 0%,
    rgba(12, 14, 13, 0.58) 45%,
    rgba(12, 14, 13, 0.72) 100%
  );
}
.ibg-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(6.75rem, 15vw, 9.5rem) 0 clamp(3rem, 9vw, 5.5rem);
}
.ibg-welcome--hero {
  width: 100%;
}
.ibg-welcome--hero .container {
  text-align: center;
}
.ibg-welcome--hero .ibg-tagline {
  color: rgba(255, 255, 255, 0.9) !important;
}
.ibg-welcome--hero h1 {
  color: #fff !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
  max-width: min(100%, 38rem);
  margin-left: auto;
  margin-right: auto;
}
.ibg-welcome--hero .ibg-lead {
  color: rgba(255, 255, 255, 0.93) !important;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.ibg .ibg-welcome--hero h1,
html[data-theme="dark"] body.ibg .ibg-welcome--hero .ibg-lead,
html[data-theme="dark"] body.ibg .ibg-welcome--hero p {
  color: rgba(255, 255, 255, 0.93) !important;
}
html[data-theme="dark"] body.ibg .ibg-welcome--hero h1 {
  color: #fff !important;
}
html[data-theme="dark"] body.ibg .ibg-welcome--hero .ibg-tagline {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Secções com vidro leve (blur) */
.ibg-surface.ibg-surface--frost {
  position: relative;
  background: transparent !important;
  overflow: hidden;
}
.ibg-surface--frost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 252, 249, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ibg-surface--frost > .container {
  position: relative;
  z-index: 1;
}

.ibg-event-section.ibg-section--frost {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}
.ibg-section--frost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(239, 232, 223, 0.78);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}
.ibg-section--frost > .container {
  position: relative;
  z-index: 1;
}

/* Sem backdrop-filter: com o marquee animado, o blur do fundo força recomposição pesada a cada frame ao rolar. */
#ministerios.ibg-section--frost-light {
  position: relative;
  background: var(--ibg-paper) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Tipografia partilhada (secções) */
.ibg-tagline {
  color: var(--ibg-green);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0 0 1rem;
}

.ibg-welcome h1 {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ibg-ink);
  line-height: 1.12;
  margin: 0 auto 1.25rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
}
.ibg-welcome:not(.ibg-welcome--hero) h1 {
  max-width: 16ch;
}

.ibg-welcome .ibg-lead {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--ibg-ink-soft);
  line-height: 1.75;
  font-size: 1.05rem;
}

.ibg-section-head h2 {
  margin: 0;
  color: var(--ibg-ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.ibg-tac {
  text-align: center;
}

.ibg-mb-30 {
  margin-bottom: 1.25rem;
}
.ibg-mb-60 {
  margin-bottom: 2.5rem;
}
.ibg-py-section {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* Cartões — media */
.ibg-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: rgba(31, 30, 28, 0.06);
}
.ibg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ibg-card-text {
  margin: 0;
  padding: 1.35rem 1.35rem 0.5rem;
  color: var(--ibg-ink-soft);
  line-height: 1.65;
}

.ibg-card-meta {
  margin: 0;
  padding: 0 1.35rem 1.35rem;
  color: var(--ibg-mist);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Evento — texto */
.ibg-event-details .ibg-event-title {
  font-weight: 600;
  color: var(--ibg-ink);
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.ibg-event-details .ibg-event-title .ibg-accent {
  color: var(--ibg-gold);
}

.ibg-prose-deco {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--ibg-sage);
  color: var(--ibg-ink-soft);
  line-height: 1.7;
}

.ibg-min-intro {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--ibg-ink-soft);
  line-height: 1.7;
}
.ibg-min-intro code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(45, 106, 79, 0.1);
}

.ibg-gallery-item .ibg-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--ibg-radius-sm);
  box-shadow: var(--ibg-shadow);
  border: 1px solid rgba(31, 30, 28, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ibg-gallery-item .ibg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ibg-gallery-item:hover .ibg-thumb {
  transform: translateY(-3px);
  box-shadow: var(--ibg-shadow-hover);
}

/* Rodapé */
.ibg-footer {
  background: var(--ibg-cream-deep);
  padding: clamp(3rem, 8vw, 4.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}

.ibg-footer__motto {
  margin: 0 0 2.25rem;
  text-align: center;
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ibg-ink);
}
.ibg-footer__motto-accent {
  color: var(--ibg-green);
  font-weight: 700;
}

/* Rodapé: 3 blocos lado a lado (dízimo | contacto | redes/CTA) */
.ibg-footer__blocks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  align-items: stretch;
}

.ibg-footer__block {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: var(--ibg-radius);
  background: rgba(255, 252, 249, 0.65);
  border: 1px solid rgba(31, 30, 28, 0.08);
  box-shadow: 0 2px 16px rgba(31, 30, 28, 0.05);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

html[data-theme="dark"] .ibg-footer__block {
  background: rgba(30, 28, 26, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ibg-footer__block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 0 1rem;
  border-radius: 9px;
  background: rgba(45, 106, 79, 0.07);
  color: var(--ibg-green);
  flex-shrink: 0;
}

.ibg-footer__block-ico,
.ibg-footer__block-icon .ibg-lucide {
  width: 1.05rem !important;
  height: 1.05rem !important;
  stroke-width: 1.65;
}

.ibg-footer__block--connect .ibg-footer__cta-col {
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ibg-footer__block--connect .ibg-footer__block-icon {
  margin-bottom: 1rem;
}

.ibg-footer__contact-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ibg-mist);
}
.ibg-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ibg-footer__contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ibg-ink-soft);
}
.ibg-footer__contact-list .ibg-lucide {
  width: clamp(1rem, 2.8vw, 1.15rem);
  height: clamp(1rem, 2.8vw, 1.15rem);
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--ibg-green);
  stroke: currentColor;
  fill: none;
}
.ibg-footer__contact-list .ibg-lucide.ibg-footer__contact-li-ico {
  width: 0.92rem;
  height: 0.92rem;
  margin-top: 0.22rem;
  opacity: 0.7;
  stroke-width: 1.65;
}
.ibg-footer__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ibg-mist);
}
.ibg-footer__contact-list a {
  color: var(--ibg-ink);
  text-decoration: none;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ibg-footer__contact-list a:hover {
  color: var(--ibg-green);
}

.ibg-footer__cta-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ibg-footer__cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--ibg-radius);
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.15);
  text-decoration: none;
  color: var(--ibg-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ibg-footer__cta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ibg-shadow);
  border-color: rgba(45, 106, 79, 0.28);
}
.ibg-footer__cta-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}
.ibg-footer__social-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ibg-mist);
}
.ibg-footer__social--large {
  gap: 0.85rem;
}
.ibg-footer__social--large a {
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
}

.ibg-footer__cta {
  margin-bottom: 2rem;
}
.ibg-footer__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ibg-ink);
}
.ibg-footer__cta h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}
.ibg-footer__cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: rgba(45, 106, 79, 0.12);
  color: var(--ibg-green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ibg-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(31, 30, 28, 0.1);
  border-bottom: 1px solid rgba(31, 30, 28, 0.1);
}

.ibg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.ibg-footer__links a {
  text-decoration: none;
  color: var(--ibg-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.ibg-footer__links a:hover {
  color: var(--ibg-green);
}

.ibg-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.ibg-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(45, 106, 79, 0.08);
  color: var(--ibg-green);
  text-decoration: none;
}

.ibg-footer__legal {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ibg-mist);
  text-wrap: balance;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Refinos responsivos (header, hero, toolbar) */
@media (max-width: 575px) {
  .ibg-header__inner {
    gap: 0.5rem;
  }
  .ibg-header__actions {
    gap: 0.2rem;
  }
  .ibg-logo {
    font-size: clamp(0.78rem, 3.1vw, 0.9rem);
    gap: 0.35rem;
  }
  .ibg-logo img {
    height: 26px;
  }
  .ibg-hero {
    min-height: min(88vh, 680px);
    min-height: min(88svh, 680px);
  }
  .ibg-hero__inner {
    padding-top: clamp(5rem, 16vw, 6.75rem);
    padding-bottom: clamp(1.75rem, 7vw, 3.25rem);
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }
  .ibg-welcome--hero h1 {
    font-size: clamp(1.55rem, 8.2vw, 2.35rem);
    max-width: none;
  }
  .ibg-welcome--hero .ibg-lead {
    font-size: clamp(0.94rem, 3.6vw, 1.05rem);
    line-height: 1.65;
  }
  .ibg-welcome--hero .ibg-tagline {
    font-size: 10px !important;
    letter-spacing: 0.11em !important;
  }
}

@media (max-width: 399px) {
  .ibg-toolbar {
    gap: 0.15rem;
    margin-right: 0;
  }
  .ibg-ctrl-btn {
    width: 44px;
    height: 44px;
  }
  .ibg-lang button {
    padding: 0.32rem 0.42rem;
    font-size: 10px;
  }
}

/* Lucide (stack estático — equivalente ao Lucide-React) */
.ibg-lucide,
.ibg-nav .ibg-lucide,
.ibg-icon-btn .ibg-lucide,
.ibg-btn .ibg-lucide,
.ibg-footer__social .ibg-lucide,
.ibg-drawer-social .ibg-lucide,
svg.ibg-lucide {
  width: clamp(0.95rem, 2.75vw, 1.1rem);
  height: clamp(0.95rem, 2.75vw, 1.1rem);
  stroke-width: 2;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  color: inherit;
}
.ibg-icon-btn .ibg-lucide,
.ibg-icon-btn svg.ibg-lucide {
  width: clamp(1.05rem, 3vw, 1.2rem);
  height: clamp(1.05rem, 3vw, 1.2rem);
}
.ibg-footer__cta-pill .ibg-lucide {
  width: clamp(0.9rem, 2.5vw, 1rem);
  height: clamp(0.9rem, 2.5vw, 1rem);
}
.ibg-footer__social--large .ibg-lucide,
.ibg-footer__social--large svg {
  width: clamp(1.15rem, 3.5vw, 1.45rem);
  height: clamp(1.15rem, 3.5vw, 1.45rem);
}
.ibg-footer__contact-list svg:not([class]) {
  stroke: currentColor;
  fill: none;
}

/* Blog — título central tipo editorial */
.ibg-section-head--blog {
  max-width: 100%;
  margin-bottom: clamp(2.75rem, 6vw, 3.75rem);
}
.ibg-blog-heading {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--ibg-ink);
  max-width: 28rem;
}

/* Cartões minimalistas */
.ibg-card--minimal .ibg-card-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--ibg-radius-sm);
}
.ibg-card--minimal.ibg-blog-card.ibg-card {
  border-radius: var(--ibg-radius);
  border-color: rgba(31, 30, 28, 0.05);
  box-shadow: 0 4px 28px rgba(31, 30, 28, 0.06);
}
.ibg-card-title {
  margin: 0;
  padding: 1.25rem 1.35rem 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ibg-ink);
}
.ibg-card-summary {
  margin: 0;
  padding: 0 1.35rem 0.75rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ibg-mist);
  font-weight: 400;
}
.ibg-card--minimal .ibg-card-meta {
  padding-top: 0;
}

/* Evento — split MVP (tipografia + banner vertical rounded-2xl) */
.ibg-event-split--mvp {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}
@media (max-width: 991px) {
  .ibg-event-split--mvp {
    grid-template-columns: 1fr;
  }
}
.ibg-event-callout__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ibg-green);
  margin-bottom: 1rem;
}
.ibg-event-callout__display {
  margin: 0 0 1.25rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ibg-ink);
}
.ibg-event-callout__line1 {
  display: block;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
}
.ibg-event-callout__line2 {
  display: block;
  font-size: clamp(3.1rem, 11vw, 5.5rem);
  color: var(--ibg-green);
}
.ibg-event-callout__hint {
  margin: 0;
  max-width: 28rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ibg-ink-soft);
  font-weight: 400;
}
.ibg-featured-dates {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ibg-green);
}
.ibg-event-banner-vertical {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
@media (max-width: 991px) {
  .ibg-event-banner-vertical {
    justify-self: center;
    max-width: 320px;
  }
}
.ibg-event-banner-vertical__frame {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 520px);
  box-shadow: var(--ibg-shadow-hover);
  border: 1px solid rgba(31, 30, 28, 0.07);
  background: rgba(31, 30, 28, 0.04);
}
.ibg-event-banner-vertical__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ibg-event-banner-vertical .ibg-event-banner-hint {
  padding-left: 0;
  padding-right: 0;
  margin-top: 0.75rem;
}
.ibg-event-details--compact {
  border-top: 1px solid rgba(31, 30, 28, 0.08);
  padding-top: 1.75rem;
  max-width: 40rem;
}
.ibg-event-details--compact .ibg-prose-deco {
  margin-bottom: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ibg-drawer-panel,
  .ibg-drawer-backdrop,
  .ibg-burger span,
  .ibg-burger span::before,
  .ibg-burger span::after {
    transition: none;
  }
  .ibg-surface--frost::before,
  .ibg-section--frost::before,
  #ministerios.ibg-section--frost-light {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
