/* SJB GLOBAL 1.3.5 - conteúdo institucional, escopo restrito */
:root{--sjb-olive:#596747;--sjb-dark:#34442e;--sjb-cream:#f7f3e9;--sjb-sand:#e9e1d0;--sjb-gold:#b59a65}
body .prose.entry.container--wide{width:min(calc(100% - 48px),1480px);max-width:1480px}
body .prose.entry .sjb-page{width:100%;max-width:1240px;margin:0 auto;padding:20px 0 56px;color:#303a30;font:16px/1.8 'Source Sans 3',Arial,sans-serif}
body .prose.entry .sjb-page,body .prose.entry .sjb-page *{box-sizing:border-box;min-width:0}
body .prose.entry .sjb-page>*,body .prose.entry .sjb-page section>*{max-width:none}
body .prose.entry .sjb-page h2,body .prose.entry .sjb-page h3{font-family:'Fraunces',Georgia,serif;color:var(--sjb-dark);font-weight:500;line-height:1.3;margin:0 0 18px}
body .prose.entry .sjb-page h2{font-size:clamp(28px,3vw,40px)}
body .prose.entry .sjb-page h3{font-size:clamp(20px,2vw,25px)}
body .prose.entry .sjb-page p{font-size:16px;line-height:1.8;margin:0 0 18px;text-align:justify;overflow-wrap:break-word}
body .prose.entry .sjb-page .sjb-page-lead{font-size:18px;text-align:center;max-width:850px;margin:0 auto 32px}
body .prose.entry .sjb-page .sjb-page-hero{display:block;margin:0 0 44px}
body .prose.entry .sjb-page .sjb-page-hero img{display:block;width:100%;max-width:100%;max-height:560px;object-fit:cover;border-radius:15px}
body .prose.entry .sjb-page .sjb-page-section{margin:0 0 54px}
body .prose.entry .sjb-page .sjb-page-gallery,body .prose.entry .sjb-page .wp-block-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%;margin:25px 0 50px;padding:0;align-items:stretch}
body .prose.entry .sjb-page .sjb-page-gallery>figure,body .prose.entry .sjb-page .wp-block-gallery>figure{width:auto;max-width:none;margin:0;padding:10px;background:#fff;border:1px solid var(--sjb-sand);border-radius:13px;box-shadow:0 8px 24px #1e281c12}
body .prose.entry .sjb-page .sjb-page-gallery img,body .prose.entry .sjb-page .wp-block-gallery img{display:block;width:100%;height:260px;max-width:100%;object-fit:cover;border-radius:8px}
body .prose.entry .sjb-page figcaption{text-align:center;font:italic 14px/1.5 Georgia,serif;color:#667260;margin-top:10px}
body .prose.entry .sjb-page .sjb-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 50px}
body .prose.entry .sjb-page .sjb-card-grid>article{background:#fff;padding:26px;border:1px solid var(--sjb-sand);border-radius:13px;box-shadow:0 5px 20px #1e281c0d}
body .prose.entry .sjb-page .sjb-highlight{background:var(--sjb-dark);color:#fff;border-radius:18px;padding:44px;margin:36px 0 55px}
body .prose.entry .sjb-page .sjb-highlight h2,body .prose.entry .sjb-page .sjb-highlight h3,body .prose.entry .sjb-page .sjb-highlight p,body .prose.entry .sjb-page .sjb-highlight strong{color:#fff!important;background:transparent!important}
body .prose.entry .sjb-page .sjb-form-area{background:#f1ecdf;padding:34px;border-radius:16px;margin:32px 0}
body .prose.entry .sjb-page .sjb-form-area .forminator-ui{max-width:100%}
body .prose.entry .sjb-page .sjb-two-col{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:38px;align-items:start;margin:40px 0 55px}
body .prose.entry .sjb-page .sjb-two-col>div:last-child{border-left:2px solid var(--sjb-sand);padding-left:24px}
body .prose.entry .sjb-page .sjb-eyebrow{display:block;font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:700;color:var(--sjb-olive);margin-bottom:12px}
body .prose.entry .sjb-page .sjb-donation-panel{display:grid;grid-template-columns:180px minmax(0,1fr);gap:36px;align-items:center;background:var(--sjb-dark);padding:45px;border-radius:18px;color:#fff;margin:45px 0}
body .prose.entry .sjb-page .sjb-donation-panel h2,body .prose.entry .sjb-page .sjb-donation-panel p,body .prose.entry .sjb-page .sjb-donation-panel strong{color:#fff!important;background:transparent!important}
body .prose.entry .sjb-page .sjb-donation-panel .sjb-percentage{text-align:center;border-right:1px solid #ffffff55;padding-right:24px}
body .prose.entry .sjb-page .sjb-donation-panel .sjb-percentage strong{display:block;font:normal 70px/1 Georgia,serif!important;color:#e1cda1!important}
body .prose.entry .sjb-page .sjb-donation-panel .sjb-percentage span{font-size:12px;text-transform:uppercase;letter-spacing:1px}
body .prose.entry .sjb-page .sjb-order-intro{background:#f1ecdf;padding:40px 28px;text-align:center;border-radius:18px;margin:40px 0 25px}
body .prose.entry .sjb-page .sjb-order-intro p{text-align:center;max-width:750px;margin-inline:auto}
body .prose.entry .sjb-page .sjb-missas-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px;margin:25px 0 40px}
body .prose.entry .sjb-page .sjb-missas-grid article{background:#fff;border:1px solid var(--sjb-sand);border-radius:12px;padding:20px}
body .prose.entry .sjb-page .sjb-missas-grid .sjb-hora{font:32px Georgia,serif;color:var(--sjb-olive)}
@media(max-width:850px){body .prose.entry .sjb-page .sjb-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .prose.entry .sjb-page .sjb-two-col{grid-template-columns:1fr}body .prose.entry .sjb-page .sjb-page-gallery,body .prose.entry .sjb-page .wp-block-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body .prose.entry.container--wide{width:min(calc(100% - 28px),1480px)}body .prose.entry .sjb-page{padding:12px 0 36px}body .prose.entry .sjb-page .sjb-card-grid{grid-template-columns:1fr}body .prose.entry .sjb-page .sjb-page-gallery img,body .prose.entry .sjb-page .wp-block-gallery img{height:170px}body .prose.entry .sjb-page .sjb-donation-panel{grid-template-columns:1fr;padding:28px 22px}body .prose.entry .sjb-page .sjb-donation-panel .sjb-percentage{border-right:0;border-bottom:1px solid #ffffff55;padding:0 0 20px}body .prose.entry .sjb-page .sjb-form-area{padding:20px}}

/* Miniatura: estilos anteriores transferidos do editor para o tema */

/* ==========================================
   SJB - MINIATURA OFICIAL | V5
   ========================================== */

#sjb-miniatura-v5 {
  --verde:#596747;
  --escuro:#34442e;
  --creme:#f7f3e9;
  --areia:#e9e1d0;
  --dourado:#b59a65;
  --texto:#303a30;
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:20px 16px 55px;
  box-sizing:border-box;
  color:var(--texto);
  font-family:Arial,sans-serif;
}

#sjb-miniatura-v5 *,
#sjb-miniatura-v5 *::before,
#sjb-miniatura-v5 *::after {
  box-sizing:border-box;
}

#sjb-miniatura-v5 .sjb-section {
  display:block;
  width:100%;
  max-width:none;
  margin:0 0 60px;
  padding:0;
  clear:both;
}

#sjb-miniatura-v5 h2,
#sjb-miniatura-v5 h3 {
  color:var(--escuro) !important;
  font-family:Georgia,serif !important;
  font-weight:400 !important;
  line-height:1.25 !important;
  margin:0 0 18px !important;
  background:none !important;
}

#sjb-miniatura-v5 h2 {
  font-size:clamp(29px,3vw,42px) !important;
}

#sjb-miniatura-v5 h3 {
  font-size:22px !important;
}

#sjb-miniatura-v5 p {
  color:var(--texto) !important;
  font-size:16px !important;
  line-height:1.8 !important;
  margin:0 0 16px !important;
  text-align:justify;
  overflow-wrap:break-word;
  background:none !important;
}

#sjb-miniatura-v5 .sjb-label {
  display:block;
  color:var(--verde) !important;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:13px;
  background:none !important;
}

/* INTRODUÇÃO */

#sjb-miniatura-v5 .sjb-intro {
  text-align:center;
  max-width:850px;
  margin:0 auto 36px;
}

#sjb-miniatura-v5 .sjb-intro h2,
#sjb-miniatura-v5 .sjb-intro p {
  text-align:center !important;
}

#sjb-miniatura-v5 .sjb-intro p {
  color:var(--verde) !important;
  font-size:18px !important;
}

#sjb-miniatura-v5 .sjb-rule {
  width:60px;
  height:2px;
  margin:0 auto 20px;
  background:var(--dourado);
}

/* GALERIA */

body #sjb-miniatura-v5 .sjb-gallery {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100% !important;
  max-width:none !important;
  margin:0 0 65px !important;
  padding:0 !important;
  align-items:stretch;
}

body #sjb-miniatura-v5 .sjb-gallery > figure {
  display:block !important;
  float:none !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:12px 12px 18px !important;
  background:#fff !important;
  border:1px solid var(--areia);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(30,40,28,.08);
}

body #sjb-miniatura-v5 .sjb-gallery img {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:320px !important;
  object-fit:contain !important;
  margin:0 !important;
  background:var(--creme);
  border-radius:8px;
}

#sjb-miniatura-v5 .sjb-gallery figcaption {
  display:block;
  text-align:center;
  font:italic 15px/1.5 Georgia,serif;
  color:#697166;
  padding:14px 6px 2px;
}

/* APRESENTAÇÃO */

body #sjb-miniatura-v5 .sjb-about {
  display:grid !important;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) !important;
  gap:40px !important;
  align-items:start;
}

#sjb-miniatura-v5 .sjb-about-copy {
  min-width:0;
  border-left:2px solid var(--areia);
  padding-left:25px;
}

/* CARACTERÍSTICAS */

body #sjb-miniatura-v5 .sjb-product {
  display:block !important;
  background:#f1ecdf !important;
  border-radius:20px;
  padding:46px 34px !important;
}

#sjb-miniatura-v5 .sjb-product-head {
  max-width:820px;
  margin:0 auto 30px;
  text-align:center;
}

#sjb-miniatura-v5 .sjb-product-head h2,
#sjb-miniatura-v5 .sjb-product-head p {
  text-align:center !important;
}

body #sjb-miniatura-v5 .sjb-features {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  width:100% !important;
}

body #sjb-miniatura-v5 .sjb-feature {
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  padding:26px !important;
  background:#fff !important;
  border:1px solid var(--areia);
  border-radius:13px;
}

#sjb-miniatura-v5 .sjb-feature-number {
  display:block;
  color:var(--dourado);
  font:30px Georgia,serif;
  margin-bottom:12px;
}

#sjb-miniatura-v5 .sjb-feature p {
  font-size:15px !important;
  color:#505c4b !important;
  margin-bottom:0 !important;
}

/* CONTRIBUIÇÃO */

body #sjb-miniatura-v5 .sjb-donation {
  display:grid !important;
  grid-template-columns:180px minmax(0,1fr) !important;
  gap:36px !important;
  align-items:center;
  width:100% !important;
  padding:45px !important;
  background:#34442e !important;
  background-image:none !important;
  border-radius:20px;
  color:#fff !important;
}

#sjb-miniatura-v5 .sjb-donation > div {
  min-width:0;
}

#sjb-miniatura-v5 .sjb-donation .sjb-percentage {
  text-align:center;
  padding-right:28px;
  border-right:1px solid rgba(255,255,255,.3);
}

#sjb-miniatura-v5 .sjb-donation .sjb-percentage strong {
  display:block;
  font:normal 76px/1 Georgia,serif !important;
  color:#e1cda1 !important;
  background:none !important;
}

#sjb-miniatura-v5 .sjb-donation .sjb-percentage span {
  display:block;
  margin-top:12px;
  color:#fff !important;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
}

#sjb-miniatura-v5 .sjb-donation .sjb-label {
  color:#e1cda1 !important;
}

#sjb-miniatura-v5 .sjb-donation h2,
#sjb-miniatura-v5 .sjb-donation p,
#sjb-miniatura-v5 .sjb-donation p strong {
  color:#fff !important;
  background:transparent !important;
  opacity:1 !important;
}

#sjb-miniatura-v5 .sjb-donation h2 {
  font-size:clamp(28px,3vw,39px) !important;
}

#sjb-miniatura-v5 .sjb-donation p:last-child {
  margin-bottom:0 !important;
}

/* SOLICITAÇÃO */

body #sjb-miniatura-v5 .sjb-order {
  background:#f1ecdf !important;
  border-radius:20px;
  padding:42px 28px !important;
  text-align:center;
}

#sjb-miniatura-v5 .sjb-order h2,
#sjb-miniatura-v5 .sjb-order p {
  text-align:center !important;
}

#sjb-miniatura-v5 .sjb-order p {
  max-width:750px;
  margin:0 auto !important;
}

/* TABLET */

@media(max-width:900px) {
  body #sjb-miniatura-v5 .sjb-about {
    grid-template-columns:1fr !important;
    gap:20px !important;
  }

  body #sjb-miniatura-v5 .sjb-features {
    grid-template-columns:1fr !important;
  }
}

/* MOBILE */

@media(max-width:650px) {
  #sjb-miniatura-v5 {
    padding:12px 8px 40px;
  }

  #sjb-miniatura-v5 .sjb-section {
    margin-bottom:42px;
  }

  body #sjb-miniatura-v5 .sjb-gallery {
    gap:10px !important;
    margin-bottom:45px !important;
  }

  body #sjb-miniatura-v5 .sjb-gallery > figure {
    padding:6px 6px 12px !important;
  }

  body #sjb-miniatura-v5 .sjb-gallery img {
    height:170px !important;
  }

  #sjb-miniatura-v5 .sjb-gallery figcaption {
    font-size:12px;
  }

  #sjb-miniatura-v5 .sjb-about-copy {
    padding-left:16px;
  }

  body #sjb-miniatura-v5 .sjb-product {
    padding:30px 18px !important;
  }

  body #sjb-miniatura-v5 .sjb-donation {
    grid-template-columns:1fr !important;
    gap:22px !important;
    padding:32px 24px !important;
  }

  #sjb-miniatura-v5 .sjb-donation .sjb-percentage {
    padding:0 0 22px;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.3);
  }

  body #sjb-miniatura-v5 .sjb-order {
    padding:30px 18px !important;
  }
}


/* História: estilos transferidos do editor */

#sjb-historia{--olive:#596747;--dark:#34442e;--cream:#f7f3e9;--sand:#e9e1d0;--gold:#b59a65;--ink:#303a30;color:var(--ink);font:16px/1.8 'Segoe UI',Arial,sans-serif;width:100%;max-width:1480px;margin:0 auto;padding:28px clamp(16px,3vw,48px) 64px;box-sizing:border-box}
#sjb-historia *,#sjb-historia *::before,#sjb-historia *::after{box-sizing:border-box}
#sjb-historia h2,#sjb-historia p{margin:0}#sjb-historia p+p{margin-top:18px}#sjb-historia h2{font:normal clamp(30px,4vw,44px)/1.2 Georgia,serif;color:var(--dark);margin-bottom:24px}
#sjb-historia .eyebrow{display:block;color:var(--olive);font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin-bottom:14px}
#sjb-historia .hero{text-align:center;background:var(--cream);padding:65px 25px;border-radius:22px;border-top:4px solid var(--gold)}#sjb-historia .hero h2{font-size:clamp(34px,5vw,62px);margin-bottom:12px}#sjb-historia .hero p{text-align:center!important}
#sjb-historia .intro{max-width:1000px;margin:48px auto}#sjb-historia .intro p:first-child{font-size:19px}
#sjb-historia .section{margin-top:85px}
/* Gallery uses flex and explicit basis to resist WordPress theme grid/figure overrides. */
body #sjb-historia .gallery{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:18px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;list-style:none!important}
body #sjb-historia .gallery>figure{display:block!important;position:relative!important;float:none!important;clear:none!important;flex:0 0 calc((100% - 36px)/3)!important;width:calc((100% - 36px)/3)!important;min-width:0!important;max-width:calc((100% - 36px)/3)!important;margin:0!important;padding:0!important;aspect-ratio:4/5;overflow:hidden;border-radius:15px;background:var(--sand)}
body #sjb-historia .gallery>figure>img{display:block!important;width:100%!important;max-width:none!important;height:100%!important;object-fit:cover!important;margin:0!important;padding:0!important;border:0!important;transition:transform .4s ease}
@media(hover:hover){body #sjb-historia .gallery>figure:hover>img{transform:scale(1.04)}}
#sjb-historia .heritage{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);gap:45px}#sjb-historia .heritage .body{border-left:2px solid var(--sand);padding-left:25px}
#sjb-historia .timeline-box{background:var(--cream);padding:55px clamp(22px,5vw,60px);border-radius:22px}#sjb-historia .timeline-heading{text-align:center;margin-bottom:35px}#sjb-historia .timeline-heading p{text-align:center!important}
#sjb-historia .timeline{list-style:none!important;max-width:850px;margin:0 auto!important;padding:0 0 0 28px!important;border-left:2px solid #c9cfbd}#sjb-historia .timeline li{list-style:none!important;position:relative;padding:0 0 30px 30px;margin:0}#sjb-historia .timeline li:last-child{padding-bottom:0}#sjb-historia .timeline li:before{content:'';position:absolute;top:10px;left:-36px;width:14px;height:14px;border-radius:50%;background:var(--olive);border:3px solid var(--cream);box-shadow:0 0 0 2px var(--olive)}#sjb-historia .year{display:block;font:bold 26px/1.4 Georgia,serif;color:var(--olive);margin-bottom:7px}
#sjb-historia .art{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:45px;align-items:center}#sjb-historia .art-aside{padding:50px 35px;background:var(--cream);border-radius:22px;text-align:center}#sjb-historia .art-aside .cross{display:block;font-size:58px;line-height:1;color:var(--gold);margin-bottom:20px}#sjb-historia .art-aside p{font:italic 24px/1.5 Georgia,serif;text-align:center!important;color:var(--dark)}
#sjb-historia .closing{margin-top:85px;padding:70px clamp(25px,6vw,80px);border-radius:22px;background:var(--dark);color:white;text-align:center}#sjb-historia .closing h2{color:white}#sjb-historia .closing .eyebrow{color:#d5c59e}#sjb-historia .closing p{max-width:800px;margin-left:auto;margin-right:auto;color:#f1f0e9}
/* Justified body copy; headings and decorative quotations retain their alignment. */
#sjb-historia .intro p,#sjb-historia .heritage .body p,#sjb-historia .timeline li p,#sjb-historia .art>div:first-child p,#sjb-historia .closing p{text-align:justify!important;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
@media(min-width:601px) and (max-width:900px){body #sjb-historia .gallery{flex-wrap:wrap!important;gap:15px!important}body #sjb-historia .gallery>figure{flex:0 0 calc((100% - 15px)/2)!important;width:calc((100% - 15px)/2)!important;max-width:calc((100% - 15px)/2)!important}#sjb-historia .heritage,#sjb-historia .art{gap:25px}}
@media(max-width:600px){#sjb-historia{padding:15px 12px 45px}#sjb-historia .hero{padding:45px 20px}#sjb-historia .section{margin-top:60px}body #sjb-historia .gallery{flex-flow:row wrap!important;gap:12px!important}body #sjb-historia .gallery>figure{flex:0 0 calc((100% - 12px)/2)!important;width:calc((100% - 12px)/2)!important;max-width:calc((100% - 12px)/2)!important;aspect-ratio:4/5}body #sjb-historia .gallery>figure:last-child{flex-basis:100%!important;width:100%!important;max-width:100%!important;aspect-ratio:16/9}#sjb-historia .heritage,#sjb-historia .art{grid-template-columns:1fr;gap:24px}#sjb-historia .heritage .body{padding-left:18px}#sjb-historia .timeline-box{padding:38px 20px}#sjb-historia .timeline{padding-left:18px!important}#sjb-historia .timeline li{padding-left:22px}#sjb-historia .timeline li:before{left:-26px}#sjb-historia .closing{margin-top:60px;padding:50px 24px}}
@media(prefers-reduced-motion:reduce){body #sjb-historia .gallery img{transition:none!important}}

