/* ==========================================================================
   Diocese de Caxias do Maranhão — Portal Institucional
   C2 Tecnologia Web
   ========================================================================== */

:root {
  /* Paleta institucional — azul #0b2952 com dourado do brasão diocesano.
     Os nomes --dc-marrom* são mantidos como aliases semânticos de "cor
     institucional primária" para não quebrar as classes já aplicadas. */
  --dc-azul: #0B2952;
  --dc-azul-escuro: #071B37;
  --dc-azul-claro: #1B4B8A;

  --dc-marrom: var(--dc-azul);
  --dc-marrom-escuro: var(--dc-azul-escuro);
  --dc-marrom-claro: var(--dc-azul-claro);

  --dc-dourado: #CBA249;
  --dc-dourado-claro: #E3C482;
  --dc-vermelho: #B01B1B;
  --dc-redevida: #014AAD;   /* azul da TV RedeVida, usado na seção da TV */
  --dc-verde: #2F7D32;

  --dc-texto: #23272E;
  --dc-texto-suave: #626B78;
  --dc-borda: #E1E7EF;
  --dc-fundo: #F7F9FC;
  --dc-branco: #FFFFFF;

  /* Tipografia unificada: títulos e texto na mesma família sem serifa.
     A variável mantém o nome --dc-serif para não quebrar os usos existentes. */
  --dc-serif: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --dc-sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;

  --dc-sombra: 0 2px 12px rgba(11, 41, 82, .10);
  --dc-sombra-forte: 0 8px 28px rgba(11, 41, 82, .16);
  --dc-radius: .5rem;
}

/* ---------- Base ---------- */
body {
  font-family: var(--dc-sans);
  color: var(--dc-texto);
  background: var(--dc-branco);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .font-serif {
  font-family: var(--dc-serif);
  font-weight: 700;
  color: var(--dc-marrom-escuro);
  line-height: 1.25;
}

a { color: var(--dc-marrom); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--dc-dourado); }

.text-dourado { color: var(--dc-dourado) !important; }
.text-marrom { color: var(--dc-marrom) !important; }
.bg-marrom { background-color: var(--dc-marrom) !important; }
.bg-marrom-escuro { background-color: var(--dc-marrom-escuro) !important; }
.bg-creme { background-color: var(--dc-fundo) !important; }

/* ---------- Botões ---------- */
.btn-diocese {
  background: var(--dc-marrom);
  border: 1px solid var(--dc-marrom);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--dc-radius);
  padding: .6rem 1.4rem;
  transition: all .25s ease;
}
.btn-diocese:hover { background: var(--dc-marrom-escuro); border-color: var(--dc-marrom-escuro); color: #fff; }

.btn-outline-diocese {
  border: 1px solid var(--dc-marrom);
  color: var(--dc-marrom);
  font-weight: 600;
  border-radius: var(--dc-radius);
  padding: .6rem 1.4rem;
  transition: all .25s ease;
}
.btn-outline-diocese:hover { background: var(--dc-marrom); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--dc-marrom-escuro);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--dc-dourado-claro); }
.topbar .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  margin-left: .3rem;
}
.topbar .social a:hover { background: var(--dc-dourado); color: var(--dc-marrom-escuro); }

/* ---------- Navbar ---------- */
.navbar-diocese {
  background: var(--dc-branco);
  box-shadow: var(--dc-sombra);
  padding: .35rem 0;
  border-bottom: 3px solid var(--dc-azul);
}
.navbar-diocese .navbar-brand img { height: 96px; width: auto; }
@media (max-width: 1199.98px) {
  .navbar-diocese .navbar-brand img { height: 78px; }
}
@media (max-width: 575.98px) {
  .navbar-diocese .navbar-brand img { height: 62px; }
}

.navbar-diocese .navbar-nav .nav-link {
  color: var(--dc-marrom-escuro);
  font-weight: 600;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .65rem .75rem;
  position: relative;
}
.navbar-diocese .navbar-nav .nav-link:hover,
.navbar-diocese .navbar-nav .nav-link.active { color: var(--dc-dourado); }

.navbar-diocese .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .75rem; right: .75rem; bottom: .3rem;
  height: 2px;
  background: var(--dc-dourado);
}

.navbar-diocese .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--dc-dourado);
  border-radius: 0 0 var(--dc-radius) var(--dc-radius);
  box-shadow: var(--dc-sombra-forte);
  padding: .4rem 0;
  font-size: .88rem;
  min-width: 16rem;
}
.navbar-diocese .dropdown-item {
  padding: .5rem 1.2rem;
  color: var(--dc-texto);
  font-weight: 500;
}
.navbar-diocese .dropdown-item:hover {
  background: var(--dc-fundo);
  color: var(--dc-marrom);
  padding-left: 1.45rem;
}

/* Entre 992 e 1399px a logo maior deixa o menu apertado: reduz um pouco
   o espaçamento e o corpo da fonte para tudo caber na mesma linha. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar-diocese .navbar-nav .nav-link {
    padding: .65rem .55rem;
    font-size: .8rem;
    letter-spacing: .02em;
  }
}

/* Dropdown por hover no desktop */
@media (min-width: 992px) {
  .navbar-diocese .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Banner principal ----------
   Artes prontas, exibidas inteiras (nunca cortadas), na largura do
   .container para acompanhar o alinhamento do resto da página.
   O palco é 2:1, a proporção das artes — se um banner futuro vier em
   outra proporção, ele é centralizado aqui sem cortar e sem alterar a
   altura, evitando que o carrossel "pule" ao trocar de slide. */
.banner-principal {
  background: var(--dc-fundo);
  border-bottom: 1px solid var(--dc-borda);
  padding: 1.25rem 0;
  position: relative;
  overflow: hidden;
}

/* Palmeiras alternadas (duas escalas) repetidas ao fundo, em baixa
   opacidade — decorativo, atrás da arte do banner. */
.banner-principal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%230B2952' stroke-width='2' stroke-linecap='round'><path d='M40 78V48'/><path d='M40 48c-8-10-19-13-27-10 6-6 19-5 27 10z'/><path d='M40 48c8-10 19-13 27-10-6-6-19-5-27 10z'/><path d='M40 48c-3-11-11-19-21-21 10-2 19 6 21 21z'/><path d='M40 48c3-11 11-19 21-21-10-2-19 6-21 21z'/><g transform='translate(78,64) scale(.62)'><path d='M40 78V48'/><path d='M40 48c-8-10-19-13-27-10 6-6 19-5 27 10z'/><path d='M40 48c8-10 19-13 27-10-6-6-19-5-27 10z'/><path d='M40 48c-3-11-11-19-21-21 10-2 19 6 21 21z'/><path d='M40 48c3-11 11-19 21-21-10-2-19 6-21 21z'/></g></g></svg>");
  background-repeat: repeat;
  background-size: 160px 160px;
  opacity: .10;
  pointer-events: none;
}

/* O conteúdo fica acima do padrão */
.banner-principal > .container { position: relative; z-index: 1; }
.banner-principal .carousel-item {
  aspect-ratio: 2 / 1;
  background: var(--dc-fundo);
}
.banner-principal .carousel-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.banner-principal img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-sombra);
}

.banner-principal .carousel-indicators { margin-bottom: .5rem; }
.banner-principal .carousel-indicators [data-bs-target] {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: var(--dc-azul);
  opacity: .3;
  border: 0;
}
.banner-principal .carousel-indicators .active { opacity: 1; background: var(--dc-dourado); }

.banner-principal .carousel-control-prev,
.banner-principal .carousel-control-next {
  width: 42px; height: 42px;
  top: 50%; transform: translateY(-50%);
  background: var(--dc-azul);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s ease, background .25s ease;
}
.banner-principal:hover .carousel-control-prev,
.banner-principal:hover .carousel-control-next { opacity: .85; }
.banner-principal .carousel-control-prev:hover,
.banner-principal .carousel-control-next:hover { background: var(--dc-dourado); opacity: 1; }
.banner-principal .carousel-control-prev { left: .5rem; }
.banner-principal .carousel-control-next { right: .5rem; }
.banner-principal .carousel-control-prev-icon,
.banner-principal .carousel-control-next-icon { width: 18px; height: 18px; }

/* Em telas pequenas as setas ficam sempre visíveis (não há hover) */
@media (max-width: 991.98px) {
  .banner-principal .carousel-control-prev,
  .banner-principal .carousel-control-next { opacity: .8; }
}

/* ---------- Títulos de seção ---------- */
.section-title { margin-bottom: 2rem; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--dc-dourado);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: .5rem; }
.section-title .rule {
  width: 64px; height: 3px;
  background: var(--dc-dourado);
  border-radius: 2px;
}
.section-title.text-center .rule { margin: 0 auto; }

.section { padding: 4rem 0; }
@media (max-width: 767.98px) { .section { padding: 2.75rem 0; } }

/* ---------- Cards de notícia ---------- */
.card-noticia {
  border: 1px solid var(--dc-borda);
  border-radius: var(--dc-radius);
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-noticia:hover { transform: translateY(-4px); box-shadow: var(--dc-sombra-forte); border-color: var(--dc-azul-claro); }
.card-noticia .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dc-fundo);
}
.card-noticia .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card-noticia:hover .thumb img { transform: scale(1.06); }
.card-noticia .card-body { padding: 1.1rem 1.15rem 1.35rem; }
.card-noticia .categoria {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dc-azul-claro);
}
.card-noticia h3 {
  font-size: 1.05rem;
  margin: .4rem 0 .5rem;
  line-height: 1.4;
}
.card-noticia h3 a { color: var(--dc-marrom-escuro); }
.card-noticia h3 a:hover { color: var(--dc-dourado); }
.card-noticia .resumo {
  font-size: .9rem;
  color: var(--dc-texto-suave);
  margin-bottom: .75rem;
}
.card-noticia .meta { font-size: .8rem; color: var(--dc-texto-suave); }

/* Destaque principal */
.noticia-destaque { position: relative; border-radius: var(--dc-radius); overflow: hidden; height: 100%; min-height: 420px; }
.noticia-destaque img { width: 100%; height: 100%; object-fit: cover; }
.noticia-destaque .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7, 27, 55, .93) 0%, rgba(7, 27, 55, .48) 45%, rgba(7, 27, 55, 0) 75%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
}
.noticia-destaque .overlay h3 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.05rem); margin: .6rem 0; line-height: 1.25; }
.noticia-destaque .overlay h3 a { color: #fff; }
.noticia-destaque .overlay h3 a:hover { color: var(--dc-dourado-claro); }
.noticia-destaque .overlay .meta { color: rgba(255,255,255,.8); font-size: .82rem; }

/* ---------- Bispo / Institucional ---------- */
.bispo-card {
  background: var(--dc-fundo);
  border-left: 4px solid var(--dc-azul);
  border-radius: var(--dc-radius);
  padding: 1.75rem;
}
.bispo-card .lema {
  font-family: var(--dc-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--dc-marrom);
}
/* Texto de apresentação do Bispo: maior que o corpo padrão, para
   equilibrar com a foto ao lado. A cor sobrescreve o .text-muted do
   Bootstrap, que nesse tamanho ficava com contraste abaixo do mínimo. */
.bispo-card p:not(.lema) {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dc-texto) !important;
}

/* ---------- TV Diocese ---------- */
.tv-diocese {
  background: linear-gradient(135deg, var(--dc-redevida) 0%, #013A89 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tv-diocese h2, .tv-diocese h3 { color: #fff; }
.tv-diocese .eyebrow { color: var(--dc-dourado-claro) !important; }
.tv-diocese .rule { background: var(--dc-dourado-claro) !important; }
.ratio-video {
  border-radius: var(--dc-radius);
  overflow: hidden;
  box-shadow: var(--dc-sombra-forte);
}
.tv-playlist { max-height: 420px; overflow-y: auto; padding-right: .4rem; }
.tv-playlist .item {
  display: flex;
  gap: .85rem;
  padding: .7rem;
  border-radius: var(--dc-radius);
  background: rgba(255, 255, 255, .06);
  margin-bottom: .6rem;
  cursor: pointer;
  transition: background .2s ease;
}
.tv-playlist .item:hover, .tv-playlist .item.ativo { background: rgba(232, 197, 106, .18); }
.tv-playlist .item img { width: 104px; height: 62px; object-fit: cover; border-radius: .25rem; flex-shrink: 0; }
.tv-playlist .item .t { font-size: .85rem; font-weight: 600; color: #fff; line-height: 1.35; }
.tv-playlist .item .d { font-size: .75rem; color: rgba(255,255,255,.6); }

 50% { opacity: .25; } }

/* ---------- Player ao vivo (HLS) ---------- */
/* O <ul> também carrega a classe .nav do Bootstrap, que zera a margem.
   Por isso o seletor combina as duas classes: ganha em especificidade e
   a separação até o .tab-content passa a valer. */
.nav.tv-abas {
  border: 0;
  gap: .9rem;             /* respiro entre "Ao Vivo" e "Vídeos" */
  margin-top: 2rem;       /* separa do texto da seção acima */
  margin-bottom: 2.25rem; /* afasta do player abaixo */
}
.tv-abas .nav-link {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2rem;
  color: rgba(255, 255, 255, .8);
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .4rem 1.1rem;
  background: transparent;
}
.tv-abas .nav-link:hover { color: #fff; border-color: var(--dc-dourado); }
.tv-abas .nav-link.active {
  background: var(--dc-dourado);
  border-color: var(--dc-dourado);
  color: var(--dc-azul-escuro);
}

#playerAoVivo {
  width: 100%; height: 100%; display: block;
  background: var(--dc-azul-escuro);
}
/* O poster é quadrado (logo da emissora); 'contain' o centraliza no 16:9
   sem esticar, e o fundo azul completa a moldura. */
#playerAoVivo { object-fit: contain; }

.tv-status {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: rgba(255, 255, 255, .7);
}
.tv-erro {
  background: rgba(176, 27, 27, .18);
  border: 1px solid rgba(176, 27, 27, .5);
  border-radius: var(--dc-radius);
  padding: 1rem 1.15rem;
  color: #fff; font-size: .9rem;
}

/* ---------- Selo "Ao vivo" ---------- */
.badge-ao-vivo {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--dc-vermelho);
  color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 2rem;
  vertical-align: middle;
}
.badge-ao-vivo::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulseLive 1.4s infinite;
}
@keyframes pulseLive { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Logo da emissora no lugar do título ---------- */
.titulo-emissora {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.titulo-emissora .logo-tv {
  height: 118px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .titulo-emissora .logo-tv { height: 92px; }
}
@media (max-width: 575.98px) {
  .titulo-emissora .logo-tv { height: 66px; }
}

/* ---------- Grade de programação ao vivo ----------
   Cada item traz a miniatura do programa, o nome e o horário. A classe
   .agora é aplicada pelo JS ao programa que está no ar neste momento. */
.grade-prog { list-style: none; padding: 0; margin: 0; }
.grade-prog li {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.grade-prog li:last-child { border-bottom: 0; }

/* A miniatura vem pronta em 208x118 (2x de 104x59) — gerada no tamanho de
   exibição para não depender do downscale do navegador, que serrilha. A
   proporção do arquivo já é 16:9, então 'contain' não corta nada. */
.grade-prog img {
  width: 104px; height: 59px;
  object-fit: contain;
  border-radius: .4rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
}

.grade-prog .info { display: flex; flex-direction: column; min-width: 0; }
.grade-prog .prog {
  font-size: .88rem;
  color: rgba(255, 255, 255, .88);
  line-height: 1.3;
  font-weight: 600;
}
.grade-prog .hora {
  font-size: .78rem;
  color: var(--dc-dourado-claro);
  font-weight: 700;
}

.grade-prog li.agora .prog { color: #fff; }
.grade-prog li.agora .hora { color: #fff; }
.grade-prog li.agora img { outline: 2px solid var(--dc-dourado); outline-offset: 1px; }

.grade-prog .tag-agora {
  display: inline-block; margin-left: .4rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--dc-vermelho); color: #fff;
  padding: .1rem .4rem; border-radius: 2rem;
  vertical-align: middle;
}

.nota-grade {
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
  margin-top: .9rem;
}

/* ---------- Paróquias ---------- */
.card-paroquia {
  border: 1px solid var(--dc-borda);
  border-radius: var(--dc-radius);
  background: #fff;
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-paroquia:hover { transform: translateY(-4px); box-shadow: var(--dc-sombra-forte); }
.card-paroquia .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--dc-fundo); }
.card-paroquia .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-paroquia .card-body { padding: 1.1rem; }
.card-paroquia h3 { font-size: 1rem; margin-bottom: .35rem; }
.card-paroquia .cidade { font-size: .85rem; color: var(--dc-texto-suave); }
.card-paroquia .forania {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dc-azul-claro);
}

/* ---------- Carrossel de igrejas ---------- */
.carrossel-igrejas .card-paroquia { margin: .25rem; }
.carrossel-igrejas .card-paroquia .card-body { display: flex; flex-direction: column; }
/* Títulos de 1 e de 2 linhas convivem no mesmo slide: reservar 2 linhas
   mantém todos os botões "Ver detalhes" alinhados na mesma altura. */
.carrossel-igrejas .card-paroquia h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em;
}
.carrossel-igrejas .card-paroquia .btn { margin-top: auto; }

/* Setas fora dos cards, sobre o fundo claro da seção */
.carrossel-igrejas .carousel-control-prev,
.carrossel-igrejas .carousel-control-next {
  width: 42px; height: 42px;
  top: 50%; transform: translateY(-50%);
  background: var(--dc-azul);
  border-radius: 50%;
  opacity: .9;
}
.carrossel-igrejas .carousel-control-prev { left: -21px; }
.carrossel-igrejas .carousel-control-next { right: -21px; }
.carrossel-igrejas .carousel-control-prev:hover,
.carrossel-igrejas .carousel-control-next:hover { background: var(--dc-dourado); opacity: 1; }
.carrossel-igrejas .carousel-control-prev-icon,
.carrossel-igrejas .carousel-control-next-icon { width: 18px; height: 18px; }

@media (max-width: 1199.98px) {
  .carrossel-igrejas .carousel-control-prev { left: 2px; }
  .carrossel-igrejas .carousel-control-next { right: 2px; }
}

/* ---------- Placeholder para igreja sem foto ----------
   Melhor um ícone honesto do que a foto de outra comunidade. */
.thumb.sem-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--dc-fundo) 0%, #E7EDF6 100%);
  border-bottom: 1px solid var(--dc-borda);
}
.thumb.sem-foto i {
  font-size: 2.6rem;
  color: var(--dc-azul);
  opacity: .3;
}
.card-paroquia:hover .thumb.sem-foto i { opacity: .45; }

/* Notícia sem imagem: mesmo tratamento das igrejas sem foto */
.card-noticia .thumb.sem-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
}

/* ---------- Agenda ---------- */
.agenda-item {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dc-borda);
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-item .data {
  flex-shrink: 0;
  width: 66px; text-align: center;
  background: var(--dc-marrom);
  color: #fff;
  border-radius: var(--dc-radius);
  padding: .5rem .25rem;
  line-height: 1.1;
}
.agenda-item .data .dia { font-size: 1.5rem; font-weight: 700; font-family: var(--dc-serif); }
.agenda-item .data .mes { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.agenda-item h4 { font-size: .98rem; margin-bottom: .2rem; }
.agenda-item .local { font-size: .84rem; color: var(--dc-texto-suave); }

/* ---------- Banner de faixa (CTA) ---------- */
.faixa-cta {
  background: var(--dc-fundo);
  color: var(--dc-texto);
  padding: 2.5rem 0;
  border-top: 1px solid var(--dc-borda);
  border-bottom: 1px solid var(--dc-borda);
}
.faixa-cta h3 { color: var(--dc-azul); margin-bottom: .35rem; }

/* ---------- Links institucionais ---------- */
.link-inst {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  height: 84px;
  border: 1px solid var(--dc-borda);
  border-radius: var(--dc-radius);
  background: #fff;
  padding: 1rem;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  color: var(--dc-marrom-escuro);
  transition: all .25s ease;
}
.link-inst:hover {
  border-color: var(--dc-azul);
  color: var(--dc-azul);
  transform: translateY(-3px);
  box-shadow: var(--dc-sombra);
}

/* Cartões com logotipo de instituição parceira */
.link-inst.com-logo { height: 108px; }
.link-inst.com-logo img {
  max-height: 46px; max-width: 84%;
  width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .68;
  transition: filter .25s ease, opacity .25s ease;
}
.link-inst.com-logo:hover img { filter: grayscale(0); opacity: 1; }
.link-inst.com-logo span { font-size: .78rem; line-height: 1.2; }

/* ---------- Ícone de igreja ----------
   O Bootstrap Icons não traz um ícone de igreja; este é desenhado no mesmo
   padrão (viewBox 16, currentColor) para conviver com os .bi do conjunto. */
.icone-igreja {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  fill: currentColor;
}

/* Nos atalhos os ícones .bi são fonte: ocupam a altura da linha (46px com
   .fs-3) e a largura toda do bloco, centrando sozinhos. Um SVG não herda
   nada disso — sem estas regras ele fica menor, mais baixo e deslocado à
   esquerda em relação ao rótulo. */
.link-inst .icone-igreja {
  display: block;
  width: 100%;            /* ocupa o bloco, como o .bi faz */
  height: 46px;           /* idêntico à caixa dos .bi ao lado */
  margin-inline: auto;
}

/* ---------- Cartaz vertical (ex.: Seminário, ao lado do Bispo) ---------- */
.cartaz-vertical { display: block; }
.cartaz-vertical img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;              /* cantos bem arredondados */
  box-shadow: var(--dc-sombra);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cartaz-vertical:hover img {
  transform: translateY(-4px);
  box-shadow: var(--dc-sombra-forte);
}

/* ---------- Banner de destaque no meio da página ----------
   Arte pronta, largura do container, sem overlay nem texto sobreposto. */
.banner-destaque {
  padding: 2.25rem 0;
  background: #fff;
}
.banner-destaque a { display: block; }
.banner-destaque img {
  display: block;
  width: 100%;
  max-width: 900px;      /* menor que a largura do container */
  height: auto;
  margin: 0 auto;        /* centralizado no espaço restante */
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-sombra);
  transition: transform .25s ease, box-shadow .25s ease;
}
.banner-destaque a:hover img { transform: translateY(-3px); box-shadow: var(--dc-sombra-forte); }

/* ---------- Página da TV RedeVida ---------- */
.card-programa {
  display: flex;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--dc-borda);
  border-radius: var(--dc-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-programa:hover { transform: translateY(-3px); box-shadow: var(--dc-sombra-forte); }
.card-programa .thumb { flex-shrink: 0; width: 148px; }
.card-programa .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-programa .corpo { padding: 1.1rem 1.2rem 1.1rem 0; }
.card-programa .horario {
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--dc-azul-claro);
}
.card-programa .horario .prov {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--dc-texto-suave);
}
.card-programa h3 { font-size: 1.05rem; margin: .3rem 0 .45rem; }
.card-programa p { font-size: .87rem; color: var(--dc-texto-suave); margin: 0; line-height: 1.55; }

@media (max-width: 575.98px) {
  .card-programa { flex-direction: column; gap: 0; }
  .card-programa .thumb { width: 100%; aspect-ratio: 16 / 9; }
  .card-programa .corpo { padding: 1rem 1.1rem 1.2rem; }
}

/* Números de destaque da emissora */
.numero-tv {
  background: var(--dc-fundo);
  border: 1px solid var(--dc-borda);
  border-left: 4px solid var(--dc-dourado);
  border-radius: var(--dc-radius);
  padding: 1.1rem 1rem;
  text-align: center;
  height: 100%;
}
.numero-tv .n {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dc-azul);
  line-height: 1.1;
}
.numero-tv .t {
  display: block;
  font-size: .78rem;
  color: var(--dc-texto-suave);
  margin-top: .25rem;
}

/* ---------- Seção da Cúria Diocesana ---------- */
.sec-curia { background: var(--dc-fundo); }

.lista-curia { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.lista-curia li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--dc-borda);
}
.lista-curia li:last-child { border-bottom: 0; }
.lista-curia i {
  color: var(--dc-dourado);
  font-size: 1.15rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.foto-curia { position: relative; }
.foto-curia img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--dc-sombra-forte);
}
.foto-curia figcaption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(7, 27, 55, .82);
  color: #fff;
  font-size: .82rem;
  padding: .5rem .9rem;
  border-radius: .5rem;
  backdrop-filter: blur(2px);
}

/* ---------- Seção do Instagram ----------
   Por enquanto uma imagem estática da grade do perfil; quando o feed
   dinâmico entrar, basta trocar o conteúdo de .instagram-grade. */
.sec-instagram { background: #fff; }
.instagram-perfil {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: var(--dc-azul);
  font-size: 1.05rem;
}
.instagram-perfil i {
  font-size: 1.35rem;
  background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.instagram-perfil:hover { color: var(--dc-dourado); }

.instagram-grade {
  display: block;
  border-radius: var(--dc-radius);
  overflow: hidden;
  box-shadow: var(--dc-sombra);
  transition: transform .25s ease, box-shadow .25s ease;
}
.instagram-grade:hover { transform: translateY(-3px); box-shadow: var(--dc-sombra-forte); }
.instagram-grade img { display: block; width: 100%; height: auto; }

.btn-instagram {
  background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: var(--dc-radius);
  padding: .6rem 1.5rem;
  transition: filter .25s ease, transform .25s ease;
}
.btn-instagram:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Faixa de links institucionais (fundo azul) ---------- */
.sec-institucional { background: #fff; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--dc-marrom-escuro);
  color: rgba(255, 255, 255, .75);
  padding: 3.25rem 0 0;
  font-size: .9rem;
}
.footer h5 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--dc-dourado);
  display: inline-block;
}
.footer a { color: rgba(255, 255, 255, .75); }
.footer a:hover { color: var(--dc-dourado-claro); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .5rem; }
.footer .logo-footer { height: 92px; width: auto; margin-bottom: 1rem; }
.footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  margin-right: .45rem;
  font-size: 1.05rem;
}
.footer .social a:hover { background: var(--dc-dourado); color: var(--dc-marrom-escuro); }
.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 0;
  font-size: .82rem;
}

/* ---------- Assinatura da ASCOM no rodapé ---------- */
.ascom-rodape {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.ascom-rodape img {
  height: 46px;
  width: auto;
  opacity: .9;
  transition: opacity .25s ease;
}
.ascom-rodape a:hover img { opacity: 1; }
.ascom-rodape .txt {
  font-size: .78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Page header (páginas internas) ---------- */
.page-header {
  background: linear-gradient(rgba(7, 27, 55, .82), rgba(7, 27, 55, .82)), var(--ph-img, var(--dc-marrom)) center/cover no-repeat;
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-header h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .5rem; }
.page-header .breadcrumb { margin: 0; --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-header .breadcrumb a { color: var(--dc-dourado-claro); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.8); }

/* ---------- Conteúdo de artigo ---------- */
.artigo-conteudo { font-size: 1.05rem; line-height: 1.8; }
.artigo-conteudo p { margin-bottom: 1.2rem; }
.artigo-conteudo h2 { font-size: 1.5rem; margin: 2rem 0 .9rem; }
.artigo-conteudo h3 { font-size: 1.22rem; margin: 1.6rem 0 .7rem; }
.artigo-conteudo img { max-width: 100%; height: auto; border-radius: var(--dc-radius); margin: 1rem 0; }
.artigo-conteudo blockquote {
  border-left: 4px solid var(--dc-dourado);
  background: var(--dc-fundo);
  padding: 1rem 1.35rem;
  font-family: var(--dc-serif);
  font-style: italic;
  color: var(--dc-marrom);
  border-radius: 0 var(--dc-radius) var(--dc-radius) 0;
}

/* ---------- Sidebar ---------- */
.sidebar-box {
  border: 1px solid var(--dc-borda);
  border-radius: var(--dc-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
}
.sidebar-box h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--dc-azul);
  margin-bottom: 1rem;
}
.lista-lateral { list-style: none; padding: 0; margin: 0; }
.lista-lateral li { border-bottom: 1px dashed var(--dc-borda); padding: .6rem 0; }
.lista-lateral li:last-child { border-bottom: 0; }
.lista-lateral a { font-size: .92rem; font-weight: 600; color: var(--dc-marrom-escuro); }
.lista-lateral a:hover { color: var(--dc-dourado); }
.lista-lateral .meta { display: block; font-size: .78rem; color: var(--dc-texto-suave); }

/* ---------- Utilidades ---------- */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--dc-sombra-forte); }

.btn-whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1040;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.btn-whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* Scrollbar discreta da playlist */
.tv-playlist::-webkit-scrollbar { width: 6px; }
.tv-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 3px; }
