:root{
  --text:#f1f1f1;
  --muted:#b9c2cc;
  --stroke:rgba(255,255,255,.12);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:22px;
  --max:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body::before{content:none !important}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  background:transparent !important;
  color:var(--text);
  overflow-x:hidden;
}

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

.bg-fixed{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(33,89,146,.38) 0%, rgba(17,55,97,.55) 45%, rgba(7,31,60,.72) 100%),
    url("assets/fundo/igreja.png") center center / cover no-repeat;
  filter:brightness(.90) contrast(1.03) saturate(.92) blur(.8px);
}

.bg-fixed::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 340px at 18% 18%, rgba(255,255,255,.04), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,.10) 100%);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(8,20,36,.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--stroke);
}

.topbar__row{
  max-width:var(--max);
  margin:0 auto;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

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

.topbar__center{
  flex:1;
  text-align:center;
  font-weight:900;
  letter-spacing:.3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topbar__sub{
  font-size:11px;
  opacity:.72;
}

.pilllink,
.pillbtn{
  height:34px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(18,44,76,.68);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.pillbtn{cursor:pointer}
.pilllink:hover,.pillbtn:hover{filter:brightness(1.07)}

.hero{
  position:relative;
  min-height:auto;
  padding:0;
  background:transparent;
}

.hero__content{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 16px 10px;
}

.hero h1{
  margin:0 0 6px;
  font-size:28px;
  text-shadow:0 10px 30px rgba(0,0,0,.45);
}

.hero p{
  margin:0;
  color:var(--muted);
  max-width:520px;
}

.hero__actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.controls{
  max-width:var(--max);
  margin:0 auto;
  padding:8px 16px 4px;
}

.searchbox{
  display:flex;
  align-items:center;
  background:rgba(20,20,20,.55);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:10px;
  gap:10px;
}

.searchbox input{
  flex:1;
  background:transparent;
  border:0;
  outline:0;
  color:var(--text);
  font-size:16px;
}

.xbtn{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}

.mobile-filter-wrap{display:none;margin:12px 0 8px;}

.mobile-filter{
  width:100%;
  height:42px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(18,44,76,.78);
  color:#fff;
  padding:0 12px;
  outline:0;
}

.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 8px;
}

.chip{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,#121212,#0a0a0a);
  padding:8px 12px;
  border-radius:999px;
  color:var(--muted);
  cursor:pointer;
  flex:0 0 auto;
  white-space:nowrap;
}

.chip.is-active{
  color:var(--text);
  border-color:rgba(139,92,246,.6);
  box-shadow:0 0 0 2px rgba(139,92,246,.18) inset;
}

.layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr) 240px;
  grid-template-areas:"left center right";
  gap:16px;
  align-items:start;
  width:min(1400px, calc(100% - 32px));
  margin:0 auto;
  padding:10px 0 26px;
}

#adsLeft{grid-area:left}
.layout__center{grid-area:center;min-width:0;width:100%}
#adsRight{grid-area:right}
.ads,.ads-col{display:flex;flex-direction:column;gap:10px}

.section{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 16px 0;
}

.section__head h2{margin:0;font-size:20px}
.section__head p{margin:6px 0 0;color:var(--muted);font-size:13px}
.section--hidden{display:none}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.grid--list{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.grid--featured{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.card{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  border-radius:var(--radius2);
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  position:relative;
  min-width:0;
}

.card__img{
  width:100%;
  height:118px;
  display:block;
  object-fit:cover;
  background:rgba(0,0,0,.20);
  border-bottom:1px solid var(--stroke);
}

.card__img--ph{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.4px;
  color:rgba(255,255,255,.55);
}

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

.card__logo{
  width:54px;
  height:54px;
  object-fit:contain;
  flex:0 0 54px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:6px;
}

.card__body{padding:10px 10px 12px}

.card__title{
  font-weight:800;
  margin:0 0 6px;
  font-size:15px;
  line-height:1.18;
  word-break:break-word;
}

.card__meta,
.card__desc,
.card__sub{
  font-size:12px;
  line-height:1.25;
  color:var(--muted);
  word-break:break-word;
}

.badge{
  font-size:11px;
  color:var(--muted);
  border:1px solid var(--stroke);
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.25);
}

.card--featured{outline:1px solid rgba(180,120,255,.25)}
.star{color:rgba(180,120,255,.95);font-size:14px;margin-left:6px}

.empty{
  padding:14px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.75);
}

.admini{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(231,237,245,.12);
  background:rgba(0,0,0,.22);
  text-decoration:none;
  color:#e7edf5;
}

.admini__logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#0a0f14;
  border:1px solid rgba(231,237,245,.10);
  object-fit:cover;
  flex:0 0 auto;
}

.admini__txt{min-width:0;flex:1}
.admini__ttl{font-weight:900;font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admini__sub{margin-top:2px;font-size:11px;color:#aeb8c6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admini__tag{font-size:12px;line-height:1;padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.10);color:rgba(255,255,255,.85)}

.footer{
  max-width:var(--max);
  margin:26px auto 0;
  padding:26px 16px 34px;
  color:var(--muted);
  border-top:1px solid var(--stroke);
}

.footer__small{font-size:12px;margin-top:6px;color:#7f7f7f}

.loadstatus{
  max-width:var(--max);
  margin:8px auto 0;
  padding:0 16px;
  font-size:13px;
  color:#cbd5e1;
  display:none;
}

.loadstatus.is-error{color:#fecaca}

.backtop{
  position:fixed;
  right:16px;
  bottom:16px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(15,15,15,.75);
  color:#fff;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .18s ease, transform .18s ease;
  z-index:9999;
}

.backtop.is-on{opacity:1;pointer-events:auto;transform:translateY(0)}

@media (min-width:720px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .grid--list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero h1{font-size:34px}
}

@media (min-width:1100px){
  .grid--featured{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width:980px){
  .layout{
    grid-template-columns:1fr;
    grid-template-areas:"center";
    width:calc(100% - 24px);
  }

  #adsLeft,#adsRight,.ads,.ads-col{display:none !important}

  .topbar__row{padding:10px 12px;gap:8px}
  .pilllink,.pillbtn{height:32px;padding:0 10px;font-size:12px}
  .topbar__center{font-size:13px}

  .chips{display:none}
  .mobile-filter-wrap{display:block}

  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .grid--list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }

  .grid--list .card__img,
  #grid-CLASSIFICADOS .card__img{
    height:120px;
    object-fit:cover;
  }

  .grid-page{
    flex:0 0 100%;
    min-width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto auto;
    gap:12px;
    scroll-snap-align:start;
  }

  .grid-page .card__img{
    height:108px;
  }
}

@media (max-width:560px){
  .hero__actions{
    gap:8px;
  }

  .hero__actions .pilllink,
  .hero__actions button.pilllink{
    font-size:12px;
  }

  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .grid-page .card__img{
    height:100px;
  }

  .grid--list .card__img,
  #grid-CLASSIFICADOS .card__img{height:110px}
}

@media (max-width:360px){
  .grid,
  .grid--featured,
  .grid--list{
    grid-template-columns:1fr !important;
  }
}

.section__titleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.swipe-hint{
  display:none;
  font-size:12px;
  color:rgba(255,255,255,.72);
  white-space:nowrap;
}

/* nav escondida */
.vb-nav{
  display:none !important;
}

/* carrossel com barra visível */
.vb-paged-host{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding-bottom:10px !important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin !important;
  scrollbar-color:#8a8f98 #d7dbe0 !important;
}

.vb-paged-host::-webkit-scrollbar{
  height:10px;
}

.vb-paged-host::-webkit-scrollbar-track{
  background:#d7dbe0;
  border-radius:999px;
}

.vb-paged-host::-webkit-scrollbar-thumb{
  background:#8a8f98;
  border-radius:999px;
  border:2px solid #d7dbe0;
}

.vb-paged-host::-webkit-scrollbar-thumb:hover{
  background:#6f7680;
}

/* Destaques com barra visível também */
#featuredGrid{
  margin-top:14px;
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding-bottom:10px;
  scrollbar-width:thin;
  scrollbar-color:#8a8f98 #d7dbe0;
}

#featuredGrid::-webkit-scrollbar{
  height:10px;
}

#featuredGrid::-webkit-scrollbar-track{
  background:#d7dbe0;
  border-radius:999px;
}

#featuredGrid::-webkit-scrollbar-thumb{
  background:#8a8f98;
  border-radius:999px;
  border:2px solid #d7dbe0;
}

#featuredGrid::-webkit-scrollbar-thumb:hover{
  background:#6f7680;
}

#featuredGrid .grid-page{
  flex:0 0 100%;
  min-width:100%;
  display:grid;
  gap:12px;
  scroll-snap-align:start;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:1fr;
}

@media (max-width:980px){
  #featuredGrid .grid-page{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #featuredGrid .card__img{
    height:108px;
  }
}

@media (max-width:560px){
  #featuredGrid .card__img{
    height:100px;
  }
}