/* ===========================
   TEMAS POR CLASSE NO BODY
   (muda apenas as variáveis)
=========================== */

:root{--pascom-css-ready:1;}

/* AMARELO (padrão) */
body.tema-amarelo{
  --primary: #f59e0b;
  --primary-dark: #b45309;
  --accent-gold: #f5c26b;
  --bg-body-gradient: radial-gradient(circle at top, #fef3c7 0, #f0f2f5 40%, #e4e6eb 100%);
  --topbar-gradient: linear-gradient(90deg, #f59e0b, #fbbf24, #fef9c3, #ffffff);
  --bg-card: #ffffff;
  --text-main: #141414;
  --text-muted: #000000;
  --border-soft: #dadde1;
  --text-logo: #000;
  --bg-content: #f59e0b;
}
/* VERDE */
body.tema-verde{
  --primary: #16a34a;
  --primary-dark: #166534;
  --accent-gold: #22c55e;
  --bg-body-gradient: radial-gradient(circle at top, #dcfce7 0, #f0fdf4 40%, #e4f2eb 100%);
  --topbar-gradient: linear-gradient(90deg, #16a34a, #22c55e, #bbf7d0, #ffffff);
  --bg-card: #ffffff;
  --text-main: #041b10;
  --text-muted: #000000;
  --border-soft: #cbd5f5;
  --text-logo: #fff;
  --bg-content: #16a34a;
}

/* AZUL */
body.tema-azul{
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-gold: #60a5fa;
  --bg-body-gradient: radial-gradient(circle at top, #dbeafe 0, #eff6ff 40%, #e5e7eb 100%);
  --topbar-gradient: linear-gradient(90deg, #1d4ed8, #2563eb, #60a5fa, #bfdbfe);
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #7ba2ff;
  --border-soft: #cbd5e1;
  --text-logo: #fff;
  --bg-content: #2563eb;
}

/* VERMELHO */
body.tema-vermelho{
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --accent-gold: #f97373;
  --bg-body-gradient: radial-gradient(circle at top, #fee2e2 0, #fef2f2 40%, #f3e4e4 100%);
  --topbar-gradient: linear-gradient(90deg, #b91c1c, #dc2626, #fecaca, #fee2e2);
  --bg-card: #ffffff;
  --text-main: #2b1010;
  --text-muted: #000000;
  --border-soft: #fecaca;
  --text-logo: #000;
  --bg-content: #dc2626;
}
/* ROSÊ */
body.tema-roseo{
  --primary: #ec4899;
  --primary-dark: #be185d;
  --accent-gold: #f9a8d4;
  --bg-body-gradient: radial-gradient(circle at top, #fdf2f8 0, #fce7f3 40%, #f4e4ee 100%);
  --topbar-gradient: linear-gradient(90deg, #be185d, #ec4899, #f9a8d4, #fdf2f8);
  --bg-card: #ffffff;
  --text-main: #3b0f26;
  --text-muted: #000000;
  --border-soft: #fbcfe8;
  --text-logo: #000;
  --bg-content: #ec4899;
}
/* ROXO */
body.tema-roxo{
	--primary: #8226dc;
    --primary-dark: #641cb9;
    --accent-gold: #de73f9;
    --bg-body-gradient: radial-gradient(circle at top, #f4e2fe 0, #fbf2fe 40%, #f1e4f3 100%);
    --topbar-gradient: linear-gradient(90deg, #771cb9, #9b26dc, #eacafe, #f2e2fe);
    --bg-card: #ffffff;
    --text-main: #2b1010;
    --text-muted: #cf96df;
    --border-soft: #e8cafe;
    --text-logo: #000;
    --bg-content: #8026dc;
}

/* DARK */
body.tema-dark{
  --primary: #facc15;
  --primary-dark: #eab308;
  --accent-gold: #fbbf24;
  --bg-body-gradient: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  --topbar-gradient: linear-gradient(90deg, #0f172a, #020617, #111827);
  --bg-card: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: #1f2937;
  --text-logo: #fff;
  --bg-content: #facc15;
}
/* BRANCO */
body.tema-branco{
	--primary: #f9cdba;
    --primary-dark: #d3cac3;
    --accent-gold: #ede2d0;
    --bg-body-gradient: radial-gradient(circle at top, #f9f9f9 0, #ffffff 40%, #ffffff 100%);
    --topbar-gradient: linear-gradient(90deg, #f5f2ee, #ffffff, #edecdd, #ffffff);
    --bg-card: #ffffff;
    --text-main: #141414;
    --text-muted: #000000;
    --border-soft: #dadde1;
    --text-logo: #000;
    --bg-content: #d1cabd;
}

/* ===========================
   RESET BÁSICO
=========================== */

*{
  box-sizing: border-box;
}

/* Fonte escolhida em Configurações. Ícones Font Awesome mantêm sua própria fonte. */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, label, small, strong, b,
.cover-title, .logo-text-main, .logo-text-sub, .post-title, .news-title {
  font-family: var(--site-font-family, Arial, Helvetica, sans-serif) !important;
}

body{
  margin: 0;
  font-family: var(--site-font-family, Arial, Helvetica, sans-serif);
  background: var(--bg-body-gradient);
  color: var(--text-main);
  font-size: 16px; /* letras maiores */
}

a{
  color: inherit;
  text-decoration: none;
}

/* ÍCONES SVG GENÉRICOS */
.icon-svg{
  width: 18px;
  height: 18px;
  display: block;
}

.icon-svg-lg{
  width: 22px;
  height: 22px;
}

/* ===========================
   TOPO – ESTILO FACEBOOK
=========================== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-gradient);
  color: #1f2933;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 120px;          /* altura desejada */
}

.logo-area{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  /*box-shadow: 0 4px 10px rgba(0,0,0,.35);
  border: 2px solid rgb(225 165 37 / 0%);
  background: #ffffff54;*/
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text-main{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .03em;
  color: var(--text-logo);
}

.logo-text-sub{
  font-size: 13px;
  opacity: .95;
  color: var(--text-logo);
}

/* BUSCA TOPO */
.search-box{
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(148,163,184,.5);
}

.search-box span{
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box input{
  border: none;
  background: transparent;
  color: #374151;
  width: 100%;
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder{
  color: #6b7280;
}

/* BANNER PUBLICIDADE NO TOPO 750x92 */
.top-banner{
  width: 750px;
  height: 92px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.6);
  background: #fff;
}

.top-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   LAYOUT PRINCIPAL (DEFAULT 3 COLUNAS)
   Usado no index e páginas com sidebar direita
=========================== */
.layout{
  max-width: 1200px;
  margin: 12px auto 24px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px; /* ESQ / CENTRO / DIR */
  gap: 14px;
}

/* ===========================
   LAYOUT 2 COLUNAS
   (Página com sidebar esquerda + feed central)
=========================== */
.layout-2{
  max-width: 1200px;
  margin: 12px auto 24px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr); /* ESQ / CENTRO */
  gap: 14px;
}

/* COLUNA ESQUERDA – ATALHOS */
.sidebar-left{
  position: sticky;
  top: 140px; /* um pouco abaixo da barra alta */
  align-self: flex-start;
}

.shortcut-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  cursor: pointer;
}

.shortcut-item:hover{
  background: rgba(0,0,0,.05);
}

.shortcut-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shortcut-icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.shortcut-text{
  font-size: 15px;
  font-weight: 500;
}

.shortcut-muted{
  font-size: 13px;
  color: var(--text-muted);
}

/* BLOCO DÍZIMO + PUBLICIDADE NO SIDEBAR ESQUERDO */
.sidebar-card-simple{
  margin-top: 10px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-size: 14px;
}

.dizimo-img{
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dizimo-img img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sidebar-ad{
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.6);
  background: #fff;
  margin-top: 8px;
}

.sidebar-ad img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===========================
   FEED CENTRAL
=========================== */
.feed{
  min-width: 0;
}

.feed-inner{
  /*
	max-width: 680px;
  */
  max-width: 100%;
  margin: 0 auto;
}

/* CARD BASE */
.card-base{
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  border: 1px solid rgba(209,213,219,.8);
  margin-bottom: 14px;
  overflow: hidden;
}

/* COVER DO SANTUÁRIO – IMAGEM GRANDE */
.cover-santuario{
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.cover-santuario img{
  width: 100%;
  height: 360px; /* imagem grande */
  object-fit: cover;
  display: block;
}

.cover-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75), rgba(0,0,0,.1));
  display: flex;
  align-items: flex-end;
  padding: 18px 18px;
  color: #f9fafb;
}

.cover-title{
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  text-shadow: 0 4px 12px rgba(0,0,0,.7);
}

.cover-subtitle{
  font-size: 15px;
  margin-top: 4px;
  opacity: .95;
}

/* COMPOSER (PUBLICAR) */
.composer{
  padding: 12px 14px;
}

.composer-top{
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-main{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: url('img/avatar-default.png') center/cover no-repeat;
}

.composer-input{
  flex: 1;
}

.composer-input input{
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 9px 16px;
  font-size: 15px;
  background: var(--bg-content);
  outline: none;
}

.composer-input input:focus{
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(245,158,11,.5);
}

.composer-bottom{
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
  padding-top: 7px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-action{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}

.composer-action span.icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-action:hover{
  background: rgba(0,0,0,.05);
}

/* POST ESTILO FACEBOOK */
.post{
  padding: 12px 14px 10px;
}

.post-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.post-user{
  display: flex;
  gap: 10px;
}

.post-avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.post-meta{
  display: flex;
  flex-direction: column;
}

.post-name{
  font-size: 16px;
  font-weight: 600;
}

.post-sub{
  font-size: 13px;
  color: var(--text-muted);
}

.post-menu{
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.post-text{
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.post-tag{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-image{
  margin-left: -14px;
  margin-right: -14px;
  margin-bottom: 8px;
  overflow: hidden;
}

.post-image img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top; /* <-- MOSTRAR DO TOPO */
  display: block;
}

.post-stats{
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-soft);
}

.post-stats span{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-actions{
  display: flex;
  justify-content: space-around;
  padding-top: 5px;
  gap: 4px;
}

.post-btn{
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.post-btn:hover{
  background: rgba(0,0,0,.04);
}

.post-btn.like.active{
  color: #dc2626;
}

.like-count{
  font-weight: 500;
}

/* BLOCO GALERIA + VÍDEOS (THUMBS) */
.section-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.media-grid{
  padding: 0 14px 12px;
}

.thumb{
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

.thumb img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  opacity: .9;
  display: block;
}

.thumb-label{
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  color: #f9fafb;
}

.thumb-play{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fefce8;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

/* ===========================
   SIDEBAR DIREITA – LITÚRGIA / SANTO / EVANGELHO
=========================== */
.sidebar-right{
  position: sticky;
  top: 140px;
  align-self: flex-start;
}

.side-card{
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 3px 8px rgba(0,0,0,.1);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 15px; /* maior */
}

.side-title{
  font-weight: 700;
  font-size: 17px; /* maior */
  margin-bottom: 6px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.santo-avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fefce8;
  font-size: 26px;
  margin-right: 10px;
  overflow: hidden;
}

.santo-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.side-footer{
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-mini{
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ===========================
   MENU MOBILE – SANFONA
=========================== */
.mobile-accordion{
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 0 10px;
}

.mobile-menu-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.mobile-menu-item-icon{
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   PÁGINA NOTÍCIA (DETALHE)
   usar em noticia.html: <body class="page-noticia tema-amarelo">
=========================== */

/* Layout 2 colunas só nesta página */
xbody.page-noticia .layout{
  grid-template-columns: 260px minmax(0, 1fr); /* ESQ + CENTRO */
}

/* Esconde sidebar direita na página de notícia */
xbody.page-noticia .sidebar-right{
  display: none;
}

/* Conteúdo central notícia */
.content{
  min-width: 0;
}

.news-wrapper{
  padding: 18px 18px 20px;
}

.breadcrumb-mini{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.breadcrumb-mini a{
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-mini a:hover{
  text-decoration: underline;
}

.news-title{
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.news-meta{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.news-cover{
  margin: 0 -18px 14px;
  /*max-height: 420px;*/
  overflow: hidden;
}

.news-cover img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top; /* <-- MOSTRAR DO TOPO */
  display: block;
}

.news-lead{
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
}

.news-body p{
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 15px;
}

.news-highlight{
  border-left: 4px solid var(--primary);
  background: #fff7e6;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 15px;
}

.news-highlight strong{
  display: block;
  margin-bottom: 4px;
}

.news-share{
  border-top: 1px solid var(--border-soft);
  margin-top: 14px;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
}

.news-share-label{
  font-size: 14px;
  color: var(--text-muted);
}

.share-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn{
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.share-btn:hover{
  background: #eef2ff;
}

.news-footer-back{
  margin-top: 18px;
  font-size: 14px;
}

.news-footer-back a{
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.news-footer-back a:hover{
  text-decoration: underline;
}

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 991.98px){
  .layout{
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar-left{
    display: none;
  }
  .sidebar-right{
    display: none;
  }
  .feed-inner{
    max-width: 100%;
  }
  .topbar-inner{
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-banner{
    order: 3;
  }
}
/* Breakpoint tablet */
@media (max-width: 992px){
  .layout-2{
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
/* Breakpoint mobile */
@media (max-width: 768px){
  .layout-2{
    grid-template-columns: 1fr;
  }

  .layout-2 aside.sidebar-left{
    order: 2; /* sidebar vai para baixo */
  }

  .layout-2 .feed{
    order: 1; /* feed permanece acima */
  }
}

@media (max-width: 767.98px){
  .topbar-inner{
    padding-inline: 8px;
  }
  .logo-text-sub{
    display: none;
  }
  xbody.page-noticia .news-cover{
    margin: 0 -10px 14px;
  }
}


/* ===========================
   MENU SANFONA – USA VARIÁVEIS DO TEMA
=========================== */
.menu-sanfona{
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ITEM BASE */
.menu-sanfona .item{
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* CABEÇALHO (TÍTULO) */
.menu-sanfona .toggler{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;          /* títulos mais negritos */
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: background .25s, transform .1s, color .25s;
}

/* Item categoria ganha destaque com o primary */
.menu-sanfona .item-categoria .toggler{
  background: linear-gradient(360deg, var(--primary-dark), var(--primary));
  color: #fff;
}

/* HOVER */
.menu-sanfona .toggler:hover{
  background: rgba(0,0,0,.2);
  color: #111;
  transform: translateY(-1px);
}

.menu-sanfona .item-categoria .toggler:hover{
  filter: brightness(1.05);
}

/* SETINHA DA SANFONA */
.menu-sanfona .toggler::after{
  content: "▸";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  transition: transform .25s;
}

.menu-sanfona .item.open .toggler::after{
  transform: translateY(-50%) rotate(90deg);
}

/* ÍCONES REDONDOS (HERDA ESTILO GERAL DO SITE) */
.menu-sanfona .shortcut-icon{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-icone);
  border: 1px solid var(--border-soft);
}

.menu-sanfona .shortcut-icon.is-sub{
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-color: var(--border-soft);
}

.menu-sanfona .icon-svg{
  width: 16px;
  height: 16px;
}

/* TEXTO */
.menu-sanfona .shortcut-text{
  display: inline-block;
  font-size: 14px;
}

/* SUBMENU */
.menu-sanfona .submenu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--bg-content);
  border-top: 1px solid var(--border-soft);
}

.menu-sanfona .submenu li a{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
}

.menu-sanfona .submenu li:last-child a{
  border-bottom: none;
}

.menu-sanfona .submenu li a:hover{
  background: rgba(0,0,0,.03);
  color: var(--primary-dark);
}
/******************/
.viva_right_sidebar{
  width: 100%;
}

.viva_sidebar_widget{
  background: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
  box-shadow: 0 3px 8px rgba(0,0,0,.06);
  margin-bottom: 18px;
}

.viva_title{
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  color: #222;
  border-bottom: 2px solid #f0c200; /* dourado suave */
}

.viva_media_item{
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  transition: background .2s ease;
}

.viva_media_item:last-child{
  border-bottom: none;
}

.viva_media_item:hover{
  background: #fafafa;
}

.viva-thumb img{
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.viva-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.viva-post-title{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  margin: 0;
}

.viva-post-title:hover{
  color: #d79c0a; /* dourado */
}

.viva-date{
  font-size: 13px;
  margin-top: 4px;
  color: #777;
}
@media(max-width: 500px){
  .viva_media_item{
    gap: 8px;
  }
  .viva-thumb img{
    width: 70px;
    height: 52px;
  }
  .viva-post-title{
    font-size: 14px;
  }
}
/**********************/
/* COVER / FANPAGE – OCUPA AS 3 COLUNAS */
.cover-container{
  grid-column: 1 / -1;   /* pega da 1ª até a última coluna do .layout */
  margin-bottom: 16px;   /* espaço entre a capa e as colunas */
}

.cover-card{
  background: var(--bg-card, #ffffff);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  overflow: visible; /* NÃO cortar a logo */
}

/* Wrapper da imagem de capa */
.cover-image-wrapper{
  position: relative;
}

/* Imagem da capa (slide) */
.cover-image{
  width: 100%;
  height: 260px;       /* ajusta aqui o tamanho da capa */
  object-fit: cover;
  display: block;
}

/* Degradê escuro embaixo da capa para o texto ficar legível */
.cover-gradient{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
}

/* Texto sobre a capa – CENTRALIZADO */
.cover-text{
  position: absolute;
  left: 50%;
  bottom: 32px;              /* sobe um pouco pra não encostar na logo */
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  color: #ffffff;
  max-width: 80%;
}

.cover-text .covertitle{
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cover-text .coversubtitle{
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Logo estilo Facebook, aparecendo inteira */
.cover-logo{
  position: absolute;
  left: 24px;
  bottom: -52px;            /* mais pra baixo, “invadindo” a área abaixo */
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  background: #ffffff;
  z-index: 3;
}

.cover-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empurra as colunas pra baixo pra não bater na logo */
.sidebar-left,
.feed,
.sidebar-right{
  margin-top: 1px; /* pode ajustar pra + ou - até ficar perfeito */
}

/* Responsivo */
@media (max-width: 900px){
  .cover-image{
    height: 200px;
  }

  .cover-logo{
    bottom: -40px;
    width: 80px;
    height: 80px;
  }

  .cover-text{
    max-width: 90%;
    bottom: 20px;
  }
}

.topbar-actions{
  display:flex;
  gap:8px;
  align-items:center;
  margin-left:auto;
}
@media (max-width: 991.98px){
  .topbar-actions{ width:100%; justify-content:center; }
}

/* ==============================
   CONTAINER PADRÃO GLOBAL
============================== */
.container-wrapper{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Topbar não pode limitar largura */
.topbar-inner{
  max-width: 100% !important;
  margin: 0 !important;
  padding: 14px 0;
}

/* ==============================
   DASHBOARD MESMA LARGURA
============================== */
body.page-dashboard .dash-wrap{
  max-width: 1400px;
  margin: 18px auto 28px;
  padding: 0 18px;
}

/* telas muito grandes */
@media (min-width: 1600px){
  .container-wrapper,
  body.page-dashboard .dash-wrap{
    max-width: 1500px;
  }
}

/* mobile */
@media (max-width: 991.98px){
  .container-wrapper,
  body.page-dashboard .dash-wrap{
    max-width: 100%;
    padding: 0 12px;
  }
}

/* ===========================
   ÍCONES MODERNOS FONT AWESOME
=========================== */
.fa-gradient,
.menu-ico,
.quick-ico,
.dash-icon-circle{
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent-gold));
}
.menu-ico i,
.quick-ico i,
.dash-icon-circle i,
.fab-new-post i{ line-height:1; }
.menu-ico,
.quick-ico,
.dash-icon-circle{
  box-shadow: 0 10px 22px rgba(37,99,235,.20);
}
.icon-blue{ background:linear-gradient(135deg,#1d4ed8,#60a5fa)!important; }
.icon-green{ background:linear-gradient(135deg,#15803d,#22c55e)!important; }
.icon-gold{ background:linear-gradient(135deg,#d97706,#fbbf24)!important; }
.icon-rose{ background:linear-gradient(135deg,#be185d,#fb7185)!important; }
.icon-purple{ background:linear-gradient(135deg,#7c3aed,#c084fc)!important; }
.icon-red{ background:linear-gradient(135deg,#b91c1c,#f87171)!important; }
.icon-slate{ background:linear-gradient(135deg,#334155,#94a3b8)!important; }
.text-pix{ color:#16a34a!important; }
.btn i, .mini-link i, .badge i{ margin-right:5px; }
@media(max-width:575.98px){
  .btn i, .mini-link i{ margin-right:3px; }
}

/* =========================================================
   AJUSTE FINAL MOBILE PAROQUIANO + PWA
   ========================================================= */
.sidebar-qr-install{ text-align:center; }
.sidebar-qr-link{ display:inline-flex; justify-content:center; }
.sidebar-qr-link img{
  width:180px;
  height:180px;
  border-radius:16px;
  background:#fff;
  padding:8px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}
.sidebar-qr-url{
  margin-top:10px;
  font-size:12px;
  word-break:break-word;
  opacity:.85;
}
.pwa-sidebar-install{
  margin-top:12px;
  width:100%;
  border:0;
  border-radius:16px;
  padding:11px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  text-align:left;
  background:linear-gradient(135deg,#2563eb,#38bdf8,#f59e0b);
  box-shadow:0 12px 24px rgba(37,99,235,.22);
  font-weight:900;
}
.pwa-sidebar-install i{ font-size:22px; }
.pwa-sidebar-install strong{ display:block; line-height:1.1; }
.pwa-sidebar-install small{ display:block; font-size:11px; opacity:.92; font-weight:800; }

@media (max-width: 991.98px){
  .layout,
  body.page-home .layout{
    margin:8px auto 18px !important;
    padding:0 8px !important;
    display:block !important;
    max-width:100% !important;
  }
  .layout-news{
    display:block !important;
    margin:8px auto 18px !important;
    padding:0 8px !important;
    max-width:100% !important;
  }
  .layout-news .content,
  .layout-news .feed,
  .feed,
  .feed-inner{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .layout-news .sidebar-left,
  .layout-news .sidebar-right,
  body.page-home .sidebar-left,
  body.page-home .sidebar-right,
  .sidebar-left,
  .sidebar-right{
    display:none !important;
  }
}

@media (max-width: 768px){
  body{ overflow-x:hidden; }
  .card-base{
    border-radius:16px !important;
    box-shadow:0 8px 20px rgba(15,23,42,.08) !important;
  }
  .post{
    padding:0 !important;
  }
  .post-header{
    padding:10px 10px 6px !important;
  }
  .post-avatar{
    width:38px !important;
    height:38px !important;
  }
  .post-name{ font-size:14px !important; }
  .post-sub{ font-size:11px !important; }
  .post-image,
  .news-cover{
    margin-left:0 !important;
    margin-right:0 !important;
    border-radius:14px !important;
  }
  .post-image img,
  .news-cover img{
    width:100% !important;
    max-height:none !important;
    object-fit:cover;
  }
  .cover-santuario{
    min-height:180px !important;
    border-radius:16px !important;
  }
  .cover-santuario img{
    height:190px !important;
    object-fit:cover !important;
  }
  .cover-title{
    font-size:22px !important;
    line-height:1.1 !important;
  }
  .cover-subtitle{
    font-size:12px !important;
  }
  .news-wrapper{
    padding:10px !important;
  }
  .breadcrumb-mini{
    font-size:11px !important;
    margin-bottom:8px !important;
  }
  .news-title{
    font-size:22px !important;
    line-height:1.18 !important;
    margin:8px 0 10px !important;
  }
  .news-meta{
    gap:6px !important;
    font-size:11px !important;
    margin-bottom:10px !important;
  }
  .news-meta .chip,
  .chip{
    padding:6px 8px !important;
    font-size:11px !important;
  }
  .news-lead{
    font-size:15px !important;
    line-height:1.45 !important;
  }
  .news-body{
    font-size:16px !important;
    line-height:1.58 !important;
  }
  .share-buttons{
    gap:8px !important;
  }
  .share-buttons .share-btn{
    flex:1 1 calc(50% - 8px);
    padding:10px 8px !important;
    font-size:12px !important;
    border-radius:14px !important;
  }
  .gallery-grid{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  .gallery-card img{
    height:auto !important;
    max-height:70vh;
    object-fit:contain !important;
    background:#000;
  }
  .cat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  .cat-card{
    padding:9px 8px !important;
    border-radius:14px !important;
    font-size:12px !important;
    gap:7px !important;
  }
  .cat-ico{
    width:32px !important;
    height:32px !important;
    border-radius:11px !important;
    font-size:13px !important;
  }
  .grid-2{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .news-thumb{
    height:auto !important;
    max-height:260px;
  }
  .news-thumb img{
    height:auto !important;
    max-height:260px;
    object-fit:cover !important;
  }
  .news-body .news-title,
  .news-title a{
    font-size:15px !important;
  }
  .topbar-actions .mt-4{
    margin-top:0 !important;
  }
  .topbar-actions .btn-lg{
    font-size:12px !important;
    padding:8px 10px !important;
    border-radius:12px !important;
  }
}

@media (max-width: 420px){
  .mobile-menu-grid{ grid-template-columns:1fr 1fr; gap:7px; }
  .mobile-menu-link{ padding:9px 8px; font-size:12px; border-radius:13px; }
  .mobile-install-card{ padding:11px; }
  .mobile-qr-box img{ width:74px; height:74px; }
  .cat-card{ font-size:11px !important; }
  .share-buttons .share-btn{ flex:1 1 25%; }
}


/* =========================================================
   CARREGAMENTO CENTRAL — SITE, PAINEL E TEMPLATES
========================================================= */
.pascom-page-loader{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:grid;
  place-items:center;
  padding:20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.98) 0 110px, rgba(239,246,255,.94) 310px, rgba(15,23,42,.76) 100%);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  opacity:1;
  visibility:visible;
  transition:opacity .32s ease, visibility .32s ease;
}
.pascom-page-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.pascom-loader-card{
  min-width:230px;
  max-width:310px;
  text-align:center;
  padding:25px 28px 22px;
  border:1px solid rgba(255,255,255,.82);
  border-radius:28px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,250,252,.92));
  box-shadow:0 28px 80px rgba(15,23,42,.28), inset 0 1px 0 #fff;
}
.pascom-loader-orbit{
  width:76px;
  height:76px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  position:relative;
  border-radius:50%;
  background:linear-gradient(145deg,#ffffff,#e2e8f0);
  box-shadow:0 14px 30px rgba(37,99,235,.18), inset 0 0 0 1px rgba(148,163,184,.28);
}
.pascom-loader-orbit::before,
.pascom-loader-orbit::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:50%;
  border:4px solid transparent;
  border-top-color:var(--cor-primaria,#2563eb);
  border-right-color:var(--cor-secundaria,#f59e0b);
  animation:pascomLoaderSpin 1s linear infinite;
}
.pascom-loader-orbit::after{
  inset:5px;
  border-width:3px;
  border-top-color:transparent;
  border-right-color:var(--cor-primaria,#2563eb);
  border-bottom-color:rgba(245,158,11,.85);
  animation-direction:reverse;
  animation-duration:1.35s;
}
.pascom-loader-cross{
  position:relative;
  z-index:2;
  font-size:31px;
  line-height:1;
  color:var(--cor-primaria,#2563eb);
  text-shadow:0 5px 12px rgba(37,99,235,.22);
  animation:pascomLoaderPulse 1.1s ease-in-out infinite;
}
.pascom-loader-card strong{display:block;color:#0f172a;font-size:19px;font-weight:1000;letter-spacing:-.2px}
.pascom-loader-caption{display:block;margin-top:3px;color:#64748b;font-size:12px;font-weight:800}
.pascom-loader-dots{display:flex;justify-content:center;gap:6px;margin-top:13px}
.pascom-loader-dots i{width:7px;height:7px;border-radius:50%;background:var(--cor-primaria,#2563eb);animation:pascomLoaderDots 1s ease-in-out infinite}
.pascom-loader-dots i:nth-child(2){animation-delay:.14s;background:var(--cor-secundaria,#f59e0b)}
.pascom-loader-dots i:nth-child(3){animation-delay:.28s}
@keyframes pascomLoaderSpin{to{transform:rotate(360deg)}}
@keyframes pascomLoaderPulse{50%{transform:scale(1.12);opacity:.72}}
@keyframes pascomLoaderDots{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(-5px);opacity:1}}
@media(max-width:480px){
  .pascom-loader-card{min-width:210px;padding:22px 22px 19px;border-radius:24px}
  .pascom-loader-orbit{width:68px;height:68px}
}
@media(prefers-reduced-motion:reduce){
  .pascom-loader-orbit::before,.pascom-loader-orbit::after,.pascom-loader-cross,.pascom-loader-dots i{animation-duration:2.4s}
}

/* =========================================================
   TEMPLATE 1 — HOME EM GRADE 2x2 + DESTAQUE DE EVENTOS
========================================================= */
.template-one-home .home-post-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.template-one-home .home-post-grid > .home-news-card{
  min-width:0;
  height:100%;
  margin-bottom:0;
  border-radius:16px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.template-one-home .home-post-grid > .home-news-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(15,23,42,.15);
  border-color:var(--primary);
}
.template-one-home .home-news-card .post{
  height:100%;
  display:flex;
  flex-direction:column;
  padding:10px 11px 11px;
}
.template-one-home .home-news-card .post-header{
  gap:7px;
  min-height:40px;
}
.template-one-home .home-news-card .post-user{
  min-width:0;
  gap:7px;
}
.template-one-home .home-news-card .post-avatar{
  width:36px;
  height:36px;
  flex:0 0 36px;
}
.template-one-home .home-news-card .post-meta{
  min-width:0;
}
.template-one-home .home-news-card .post-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.template-one-home .home-news-card .post-sub{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
}
.template-one-home .home-news-card .post-menu{
  font-size:17px;
  line-height:1;
}
.template-one-home .home-news-card .post-image{
  margin:8px -11px 0;
  border-radius:0;
}
.template-one-home .home-news-card .post-image img{
  width:100%;
  height:auto;
  aspect-ratio:16 / 10;
  object-fit:cover;
  object-position:center top;
}
.template-one-home .home-news-card .post-text{
  margin:0;
}
.template-one-home .home-news-card .post-image + .post-text{
  padding-top:10px;
}
.template-one-home .home-news-title-link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.template-one-home .home-news-title{
  min-height:2.8em;
  font-size:14px;
  line-height:1.38;
  font-weight:850;
  letter-spacing:-.15px;
  word-break:break-word;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

/* Evento destacado como um fly/card dentro da notícia */
.template-one-home .home-news-card.is-event{
  border:2px solid var(--primary);
  box-shadow:0 10px 26px rgba(15,23,42,.16), 0 0 0 3px rgba(255,255,255,.72) inset;
}
.template-one-home .event-highlight{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  gap:7px;
  min-height:158px;
  padding:18px 14px 13px;
  overflow:hidden;
  border-radius:14px;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(145deg,var(--primary-dark),var(--primary) 58%,var(--accent-gold));
  box-shadow:0 10px 22px rgba(15,23,42,.20);
}
.template-one-home .event-highlight::before,
.template-one-home .event-highlight::after{
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:999px;
  background:rgba(255,255,255,.13);
}
.template-one-home .event-highlight::before{
  width:125px;
  height:125px;
  right:-54px;
  top:-62px;
}
.template-one-home .event-highlight::after{
  width:88px;
  height:88px;
  left:-48px;
  bottom:-45px;
}
.template-one-home .event-ribbon{
  position:absolute;
  top:9px;
  right:-31px;
  width:114px;
  padding:4px 5px;
  transform:rotate(36deg);
  text-align:center;
  font-size:9px;
  font-weight:950;
  letter-spacing:.7px;
  text-transform:uppercase;
  color:#172033;
  background:var(--accent-gold);
  box-shadow:0 4px 10px rgba(0,0,0,.18);
}
.template-one-home .event-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:78%;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.25px;
  text-transform:uppercase;
  background:rgba(0,0,0,.14);
}
.template-one-home .event-title{
  padding-right:17px;
  font-size:20px;
  line-height:1.14;
  font-weight:950;
  letter-spacing:-.35px;
  text-shadow:0 2px 8px rgba(0,0,0,.28);
  word-break:break-word;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.template-one-home .event-schedule{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.template-one-home .event-schedule span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:8px;
  font-size:12px;
  font-weight:900;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
}
.template-one-home .event-open{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.55px;
  opacity:.96;
}

@media (max-width:991.98px){
  body.page-home .template-one-home.layout{
    width:100%;
    max-width:100%;
    margin:4px 0 16px !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .template-one-home .feed,
  .template-one-home .feed-inner{
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
    padding-left:0;
    padding-right:0;
  }
  .template-one-home .feed-inner > .card-base:first-child{
    margin-left:4px;
    margin-right:4px;
  }
  .template-one-home .home-post-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:0 4px;
  }
}

@media (max-width:768px){
  .template-one-home .home-post-grid > .home-news-card{
    border-radius:11px !important;
    box-shadow:0 5px 14px rgba(15,23,42,.11) !important;
  }
  .template-one-home .home-news-card .post{
    padding:7px 7px 8px !important;
  }
  .template-one-home .home-news-card .post-header{
    min-height:31px;
    padding:0 0 5px !important;
    gap:4px;
  }
  .template-one-home .home-news-card .post-user{
    gap:5px;
  }
  .template-one-home .home-news-card .post-avatar{
    width:29px !important;
    height:29px !important;
    flex-basis:29px;
  }
  .template-one-home .home-news-card .post-name{
    font-size:10px !important;
    line-height:1.05;
  }
  .template-one-home .home-news-card .post-sub{
    font-size:8px !important;
    line-height:1.1;
  }
  .template-one-home .home-news-card .post-menu{
    display:none;
  }
  .template-one-home .home-news-card .post-image{
    margin:4px -7px 0 !important;
    border-radius:0 !important;
  }
  .template-one-home .home-news-card .post-image img{
    aspect-ratio:1 / .78;
    height:auto !important;
  }
  .template-one-home .home-news-card .post-image + .post-text{
    padding-top:7px;
  }
  .template-one-home .home-news-title{
    min-height:2.7em;
    font-size:12px;
    line-height:1.28;
    letter-spacing:-.08px;
    -webkit-line-clamp:3;
  }
  .template-one-home .home-news-card.is-event{
    border-width:1px;
  }
  .template-one-home .event-highlight{
    min-height:132px;
    gap:5px;
    padding:13px 8px 9px;
    border-radius:9px;
  }
  .template-one-home .event-ribbon{
    top:6px;
    right:-34px;
    width:108px;
    padding:3px 4px;
    font-size:7px;
  }
  .template-one-home .event-kicker{
    max-width:75%;
    padding:4px 5px;
    gap:4px;
    font-size:7px;
    letter-spacing:.1px;
  }
  .template-one-home .event-title{
    padding-right:6px;
    font-size:14px;
    line-height:1.13;
    letter-spacing:-.15px;
  }
  .template-one-home .event-schedule{
    gap:4px;
  }
  .template-one-home .event-schedule span{
    padding:4px 5px;
    gap:3px;
    border-radius:6px;
    font-size:9px;
  }
  .template-one-home .event-open{
    gap:4px;
    font-size:7px;
    letter-spacing:.3px;
  }
}

@media (max-width:360px){
  .template-one-home .home-post-grid{
    gap:5px;
    padding:0 2px;
  }
  .template-one-home .home-news-card .post-avatar{
    display:none;
  }
  .template-one-home .home-news-title{
    font-size:11px;
  }
  .template-one-home .event-title{
    font-size:13px;
  }
  .template-one-home .event-schedule span{
    font-size:8px;
  }
}

/* =========================================================
   TEMPLATE 1 — BOTÃO "MAIS NOTÍCIAS" (4 POR VEZ)
========================================================= */
.template-one-home .home-news-card.is-loadmore-hidden{
  display:none;
}

.template-one-home .home-news-card.is-loadmore-revealed{
  animation:templateOneNewsReveal .42s ease both;
}

@keyframes templateOneNewsReveal{
  from{
    opacity:0;
    transform:translateY(16px) scale(.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.template-one-home .home-load-more-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  padding:18px 4px 5px;
  transition:opacity .25s ease, transform .25s ease;
}

.template-one-home .home-load-more-wrap.is-finished{
  opacity:0;
  transform:translateY(-5px);
}

.template-one-home .home-load-more-btn{
  min-width:210px;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 22px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  box-shadow:0 9px 22px rgba(15,23,42,.20), inset 0 1px 0 rgba(255,255,255,.28);
  font-size:14px;
  font-weight:900;
  letter-spacing:.15px;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.template-one-home .home-load-more-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 13px 28px rgba(15,23,42,.25), inset 0 1px 0 rgba(255,255,255,.30);
  filter:brightness(1.05);
}

.template-one-home .home-load-more-btn:active{
  transform:translateY(0);
}

.template-one-home .home-load-more-btn:focus-visible{
  outline:3px solid color-mix(in srgb,var(--primary) 34%,transparent);
  outline-offset:3px;
}

.template-one-home .home-load-more-btn:disabled{
  cursor:wait;
  opacity:.82;
}

.template-one-home .home-load-more-icon{
  width:27px;
  height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.18);
}

.template-one-home .home-load-more-btn.is-loading .home-load-more-icon i{
  animation:homeLoadMoreSpin .65s linear infinite;
}

.template-one-home .home-load-more-btn.is-loading .home-load-more-icon i::before{
  content:"\f110";
}

@keyframes homeLoadMoreSpin{
  to{ transform:rotate(360deg); }
}

.template-one-home .home-load-more-status{
  min-height:17px;
  font-size:11px;
  font-weight:700;
  color:var(--text-muted);
}

@media (max-width:768px){
  .template-one-home .home-load-more-wrap{
    padding:13px 4px 3px;
  }

  .template-one-home .home-load-more-btn{
    width:min(92%,300px);
    min-width:0;
    min-height:44px;
    padding:9px 16px;
    font-size:13px;
  }

  .template-one-home .home-load-more-icon{
    width:24px;
    height:24px;
  }

  .template-one-home .home-load-more-status{
    font-size:10px;
  }
}

@media (prefers-reduced-motion:reduce){
  .template-one-home .home-news-card.is-loadmore-revealed,
  .template-one-home .home-load-more-btn.is-loading .home-load-more-icon i{
    animation:none;
  }
}


/* =========================================================
   CENTRAL "HOJE NA COMUNIDADE"
========================================================= */
.community-today{
  margin:0 0 14px;
  padding:15px;
  border:1px solid var(--border-soft);
  border-radius:18px;
  background:var(--bg-card);
  box-shadow:0 9px 26px rgba(15,23,42,.10);
  overflow:hidden;
}
.community-today-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.community-today-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(90deg,var(--primary-dark),var(--primary));
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.45px;
}
.community-today-head h2{
  margin:7px 0 2px;
  font-size:23px;
  line-height:1.1;
  font-weight:1000;
  letter-spacing:-.35px;
}
.community-today-head p{
  margin:0;
  color:var(--text-muted);
  font-size:12px;
  font-weight:750;
}
.community-today-participate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:9px 13px;
  border-radius:13px;
  color:#fff!important;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary),var(--accent-gold));
  box-shadow:0 8px 18px rgba(15,23,42,.16);
}
.community-today-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:10px;
}
.community-next-event{
  position:relative;
  isolation:isolate;
  min-height:205px;
  padding:16px;
  border-radius:16px;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(145deg,var(--primary-dark),var(--primary) 60%,var(--accent-gold));
  box-shadow:0 10px 22px rgba(15,23,42,.18);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.community-next-event:before{
  content:"";
  position:absolute;
  z-index:-1;
  width:190px;
  height:190px;
  border-radius:50%;
  right:-80px;
  top:-85px;
  background:rgba(255,255,255,.13);
}
.community-card-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(0,0,0,.13);
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.45px;
}
.community-next-event > strong{
  font-size:23px;
  line-height:1.12;
  font-weight:1000;
  text-shadow:0 2px 8px rgba(0,0,0,.22);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.community-next-event > p{font-size:12px;font-weight:750;opacity:.92;margin:0}
.community-event-meta{display:flex;flex-wrap:wrap;gap:6px}
.community-event-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 7px;
  border-radius:9px;
  background:rgba(255,255,255,.17);
  border:1px solid rgba(255,255,255,.2);
  font-size:10px;
  font-weight:900;
}
.community-event-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:auto;
}
.community-event-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:36px;
  padding:7px 10px;
  border-radius:10px;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.34);
  background:rgba(0,0,0,.16);
  text-decoration:none;
  font-size:10px;
  font-weight:950;
}
.community-event-actions a:first-child{background:#fff;color:var(--primary-dark)!important;border-color:#fff}
.community-quick-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.community-quick-actions > a,
.community-quick-actions > button{
  appearance:none;
  width:100%;
  min-width:0;
  min-height:62px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px;
  border-radius:13px;
  border:1px solid var(--border-soft);
  background:rgba(255,255,255,.58);
  color:var(--text-main);
  text-decoration:none;
  text-align:left;
  cursor:pointer;
}
body.tema-dark .community-quick-actions > a,
body.tema-dark .community-quick-actions > button{background:rgba(255,255,255,.06)}
.community-quick-actions > a > i,
.community-quick-actions > button > i{
  width:34px;
  height:34px;
  min-width:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  box-shadow:0 6px 12px rgba(15,23,42,.13);
}
.community-quick-actions span{min-width:0}
.community-quick-actions strong{
  display:block;
  font-size:11px;
  line-height:1.1;
  font-weight:950;
}
.community-quick-actions small{
  display:block;
  margin-top:2px;
  color:var(--text-muted);
  font-size:9px;
  line-height:1.15;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.community-upcoming-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin-top:9px;
}
.community-upcoming-strip a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px;
  border-radius:12px;
  border:1px solid var(--border-soft);
  color:var(--text-main);
  text-decoration:none;
  background:rgba(0,0,0,.025);
}
.community-upcoming-strip span{
  min-width:43px;
  padding:6px;
  border-radius:9px;
  text-align:center;
  color:#fff;
  background:var(--primary);
  font-size:10px;
  font-weight:950;
}
.community-upcoming-strip strong{
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
@media(max-width:768px){
  .community-today{margin:0 4px 9px;padding:10px;border-radius:14px}
  .community-today-head{margin-bottom:8px;align-items:center}
  .community-today-eyebrow{font-size:8px;padding:4px 7px}
  .community-today-head h2{font-size:16px;margin-top:5px}
  .community-today-head p{font-size:9px}
  .community-today-participate{min-height:35px;padding:7px 9px;font-size:9px;border-radius:10px}
  .community-today-grid{grid-template-columns:1fr;gap:7px}
  .community-next-event{min-height:165px;padding:12px;border-radius:13px;gap:6px}
  .community-next-event > strong{font-size:18px}
  .community-event-meta span{font-size:8px;padding:4px 5px}
  .community-event-actions a{min-height:32px;font-size:8px;padding:6px 8px}
  .community-quick-actions{gap:5px}
  .community-quick-actions > a,.community-quick-actions > button{min-height:53px;padding:7px;border-radius:11px;gap:6px}
  .community-quick-actions > a > i,.community-quick-actions > button > i{width:29px;height:29px;min-width:29px;font-size:13px;border-radius:9px}
  .community-quick-actions strong{font-size:9px}.community-quick-actions small{font-size:7px}
  .community-upcoming-strip{gap:5px}.community-upcoming-strip a{padding:6px}.community-upcoming-strip strong{font-size:8px}
}

/* =========================================================
   REAÇÕES DA COMUNIDADE + AVISOS
========================================================= */
.pascom-reactions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--border-soft);
}
.pascom-reaction-btn{
  appearance:none;
  min-width:0;
  min-height:43px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 8px;
  border:1px solid var(--border-soft);
  border-radius:12px;
  background:rgba(255,255,255,.62);
  color:var(--text-main);
  cursor:pointer;
  font-size:10px;
  font-weight:900;
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease;
}
body.tema-dark .pascom-reaction-btn{background:rgba(255,255,255,.06)}
.pascom-reaction-btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(15,23,42,.09);border-color:var(--primary)}
.pascom-reaction-btn i{font-size:15px;color:var(--primary)}
.pascom-reaction-btn .reaction-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pascom-reaction-btn .reaction-count{min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(15,23,42,.08);font-size:9px}
.pascom-reaction-btn.is-active{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--primary-dark),var(--primary),var(--accent-gold));box-shadow:0 8px 17px rgba(15,23,42,.16)}
.pascom-reaction-btn.is-active i{color:#fff}.pascom-reaction-btn.is-active .reaction-count{background:rgba(255,255,255,.22)}
.pascom-reactions.is-saving{opacity:.68;pointer-events:none}
.pascom-reactions.is-compact{gap:5px;margin-top:8px;padding-top:8px}
.pascom-reactions.is-compact .pascom-reaction-btn{min-height:36px;padding:5px 6px;font-size:8px;border-radius:10px}
.pascom-reactions.is-compact .pascom-reaction-btn i{font-size:12px}.pascom-reactions.is-compact .reaction-count{min-width:17px;height:17px;font-size:8px}
.news-reactions-box{margin:16px 0;padding:13px;border:1px solid var(--border-soft);border-radius:16px;background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(245,194,107,.10))}
.news-reactions-title{font-size:13px;font-weight:1000;display:flex;align-items:center;gap:7px}.news-reactions-title i{color:var(--primary)}
.js-enable-notifications.is-notification-enabled{border-color:rgba(34,197,94,.48)!important;background:rgba(34,197,94,.11)!important}
.js-enable-notifications.is-notification-enabled>i{background:linear-gradient(135deg,#15803d,#22c55e)!important}
@media(max-width:760px){
  .pascom-reactions{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:8px;padding-top:7px}
  .pascom-reaction-btn{min-height:35px;padding:5px;font-size:8px;border-radius:9px;gap:4px}
  .pascom-reaction-btn i{font-size:12px}.pascom-reaction-btn .reaction-count{min-width:17px;height:17px;font-size:8px}
  .pascom-reactions.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-reactions-box{margin:12px 0;padding:9px;border-radius:13px}.news-reactions-title{font-size:10px}
}

/* ===== PUBLICIDADE CONFIGURÁVEL ===== */
.pascom-ad{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.09);
  border-radius:16px;
  background:var(--bg-card, #fff);
  box-shadow:0 9px 24px rgba(15,23,42,.10);
}
.pascom-ad > a,
.pascom-ad > .pascom-ad-static{
  display:block;
  color:inherit;
  text-decoration:none;
}
.pascom-ad img{
  display:block;
  width:100%;
  height:auto;
  max-height:310px;
  object-fit:cover;
  background:#f1f5f9;
}
.pascom-ad strong{
  display:block;
  padding:10px 12px 12px;
  font-size:14px;
  line-height:1.25;
  color:var(--text-main, #111827);
}
.pascom-ad-label{
  position:absolute;
  z-index:2;
  top:8px;
  left:8px;
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.78);
  color:#fff;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(5px);
}
.pascom-ad a:hover img{ transform:scale(1.015); }
.pascom-ad img{ transition:transform .25s ease; }
.pascom-ad-sidebar{ margin-bottom:12px; }
.pascom-ad-sidebar img{ max-height:280px; }
.pascom-ad-between{
  grid-column:1 / -1;
  margin:2px 0;
}
.pascom-ad-between img{
  width:100%;
  max-height:260px;
  aspect-ratio:16 / 5;
  object-fit:cover;
}
@media (max-width:575.98px){
  .pascom-ad{ border-radius:12px; }
  .pascom-ad strong{ padding:7px 9px 9px; font-size:11px; }
  .pascom-ad-label{ top:5px; left:5px; padding:3px 6px; font-size:8px; }
  .pascom-ad-between img{ max-height:160px; aspect-ratio:16 / 6; }
}
