/* Trofa 1.0.1: selectors scoped to "html body.trofa-scope" so the approved design wins over Elementor 4 container defaults and the theme, while per-element styles set in the Elementor editor (3+ classes) still apply. */
html body.trofa-scope.trofa-scope{background:#fff;color:#162844;font-family:"Bricolage Grotesque",sans-serif;}
html body.trofa-scope.trofa-scope .elementor-widget-heading .elementor-heading-title{font-family:"Bricolage Grotesque",sans-serif;color:inherit;line-height:1.15;font-weight:600;letter-spacing:-.035em;}
html body.trofa-scope.trofa-scope .trofa-h1 .elementor-heading-title{font-size:clamp(44px,5.4vw,78px);}
html body.trofa-scope.trofa-scope .trofa-h2 .elementor-heading-title{font-size:clamp(32px,3.2vw,47px);}
html body.trofa-scope.trofa-scope .trofa-h3 .elementor-heading-title{font-size:26px;}
html body.trofa-scope.trofa-scope .trofa-h4 .elementor-heading-title{font-size:20px;}
html body.trofa-scope.trofa-scope .trofa-h6 .elementor-heading-title{font-size:16px;line-height:1.7;font-weight:500;}
html body.trofa-scope.trofa-scope .elementor-widget-text-editor{font-family:"Bricolage Grotesque",sans-serif;color:inherit;font-size:inherit;line-height:inherit;}
html body.trofa-scope.trofa-scope .elementor-widget-image img{vertical-align:middle;}
html body.trofa-scope.trofa-scope .header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;}
html body.trofa-scope.trofa-scope .header-inner .brand{width:300px;flex:0 0 300px;}
html body.trofa-scope.trofa-scope .header-inner .brand img{width:100%;height:auto;max-height:92px;}
html body.trofa-scope.trofa-scope .trofa-menu{width:auto;flex:1;}
html body.trofa-scope.trofa-scope .trofa-search{display:flex;align-items:center;border:1px solid #e2e7ee;border-radius:9px;overflow:hidden;max-width:145px;}
html body.trofa-scope.trofa-scope .trofa-search input{min-width:0;width:100%;font-size:11px;padding:7px 9px;border:0;background:white;}
html body.trofa-scope.trofa-scope .trofa-search button{border:0;background:white;color:#162844;padding:4px 8px;font-size:23px;}
html body.trofa-scope.trofa-scope .diocese-art .elementor-widget-image img{width:100%;height:auto;object-fit:contain;}
html body.trofa-scope.trofa-scope .diocese-art>.elementor-widget-image{margin:0;}
html body.trofa-scope.trofa-scope .diocese-art .diocese-label,html body.trofa-scope.trofa-scope .diocese-art .diocese-period{width:auto;z-index:2;}
html body.trofa-scope.trofa-scope .quicklink{display:flex;align-items:center;gap:18px;}
html body.trofa-scope.trofa-scope .quicklink .elementor-widget-html{flex:0 0 auto;width:auto;}
html body.trofa-scope.trofa-scope .quicklink>.elementor-widget-text-editor{flex:1;}
html body.trofa-scope.trofa-scope .quicklink .icon{box-sizing:content-box;}
html body.trofa-scope.trofa-scope .section-head{display:flex;align-items:end;justify-content:space-between;}
html body.trofa-scope.trofa-scope .section-head .elementor-widget-text-editor{width:auto;}
html body.trofa-scope.trofa-scope .news-grid{display:grid;}
html body.trofa-scope.trofa-scope .news-lead .news-image{display:block;}
html body.trofa-scope.trofa-scope .news-small{display:grid;}
html body.trofa-scope.trofa-scope .schedule-layout,html body.trofa-scope.trofa-scope .schedule-content,html body.trofa-scope.trofa-scope .resource-grid,html body.trofa-scope.trofa-scope .history-grid,html body.trofa-scope.trofa-scope .history-pages,html body.trofa-scope.trofa-scope .community-grid,html body.trofa-scope.trofa-scope .sector-grid,html body.trofa-scope.trofa-scope .footer-grid,html body.trofa-scope.trofa-scope .interior-layout,html body.trofa-scope.trofa-scope .service-links{display:grid;}
html body.trofa-scope.trofa-scope .resource-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
html body.trofa-scope.trofa-scope .resource>.elementor-widget-image img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;border-radius:13px;}
html body.trofa-scope.trofa-scope .resource>.elementor-widget-image{margin-bottom:24px;}
html body.trofa-scope.trofa-scope .resource>.elementor-widget-text-editor strong{font-size:23px;}
html body.trofa-scope.trofa-scope .boletim,html body.trofa-scope.trofa-scope .footer-bottom{display:flex;}
html body.trofa-scope.trofa-scope .boletim>.pdf-tag,html body.trofa-scope.trofa-scope .boletim>.download{width:auto;}
html body.trofa-scope.trofa-scope .community-photo .elementor-widget-image,html body.trofa-scope.trofa-scope .community-photo img{width:100%;height:100%;}
html body.trofa-scope.trofa-scope .community-copy .elementor-heading-title{font-size:clamp(46px,5vw,66px);}
html body.trofa-scope.trofa-scope .history-image img{height:410px;width:100%;object-fit:cover;}
html body.trofa-scope.trofa-scope .inner-header .elementor-heading-title{font-size:clamp(40px,5vw,70px);}
html body.trofa-scope.trofa-scope .inner-header>.wrap{position:relative;z-index:1;}
html body.trofa-scope.trofa-scope .sidebar{width:auto;}
html body.trofa-scope.trofa-scope .legacy .service-links .service-icon img{display:block;width:64px;height:64px;max-height:none;margin:0;}
html body.trofa-scope.trofa-scope .legacy .service-links a{display:flex;}
html body.trofa-scope.trofa-scope .legacy .service-links a>.elementor-widget-text-editor{width:100%;}
html body.trofa-scope.trofa-scope .footer h4,html body.trofa-scope.trofa-scope .footer .trofa-h4 .elementor-heading-title{color:#ffdd00;font-size:18px;}
html body.trofa-scope.trofa-scope .footer-bottom>.elementor-widget-text-editor{width:auto;}
html body.trofa-scope.trofa-scope .footer-bottom>div:not(.elementor-widget){display:flex;flex-wrap:wrap;gap:16px;}
html body.trofa-scope.trofa-scope .legacy p{margin-bottom:1.3em;}
@media (max-width:1100px){html body.trofa-scope.trofa-scope .nav{gap:12px;font-size:12px;}
html body.trofa-scope.trofa-scope .header-inner .brand{width:250px;flex-basis:250px;}
html body.trofa-scope.trofa-scope .trofa-search{max-width:100px;}}
@media (max-width:950px){html body.trofa-scope.trofa-scope .trofa-menu{flex-basis:100%;}
html body.trofa-scope.trofa-scope .header-inner{flex-wrap:wrap;gap:0;}
html body.trofa-scope.trofa-scope .trofa-menu .menu-toggle{position:absolute;right:0;top:-66px;}
html body.trofa-scope.trofa-scope .trofa-search{max-width:none;}
html body.trofa-scope.trofa-scope .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
html body.trofa-scope.trofa-scope .history-image img{height:410px;}}
@media (max-width:650px){html body.trofa-scope.trofa-scope .resource-grid,html body.trofa-scope.trofa-scope .schedule-layout,html body.trofa-scope.trofa-scope .history-grid,html body.trofa-scope.trofa-scope .community-grid,html body.trofa-scope.trofa-scope .interior-layout,html body.trofa-scope.trofa-scope .footer-grid{grid-template-columns:1fr;}
html body.trofa-scope.trofa-scope .service-links{grid-template-columns:repeat(2,minmax(0,1fr));}
html body.trofa-scope.trofa-scope .schedule-content{grid-template-columns:1fr 1fr;}
html body.trofa-scope.trofa-scope .inner-header .elementor-heading-title{font-size:40px;}
html body.trofa-scope.trofa-scope .history-image img{height:330px;}
html body.trofa-scope.trofa-scope .community-copy .elementor-heading-title{font-size:47px;}
html body.trofa-scope.trofa-scope .legacy .service-links .service-icon img{width:52px;height:52px;}
html body.trofa-scope.trofa-scope .footer-bottom{flex-direction:column;}}

/* ---- Trofa 1.0.1 layout fixes for Elementor 4 ---- */
/* Text/HTML widgets whose wrapper repeats the class of the element inside (e.g. .eyebrow, .btn, .diocese-label, .icon) were styled twice (double pills, double buttons, doubled icon tiles). The wrapper box is removed so only the inner element is styled. */
html body.trofa-scope.trofa-scope .elementor-widget.elementor-widget-text-editor:is(.eyebrow,.active,.pdf-tag,.download,.text-link,.resource-caption,.diocese-label,.diocese-period,.photo-chip,.btn),
html body.trofa-scope.trofa-scope .elementor-widget.elementor-widget-html.icon{display:contents;}
html body.trofa-scope.trofa-scope .elementor-widget.elementor-widget-text-editor:is(.eyebrow,.active,.pdf-tag,.download,.text-link,.resource-caption,.diocese-label,.diocese-period,.photo-chip,.btn)::before,
html body.trofa-scope.trofa-scope .elementor-widget.elementor-widget-text-editor:is(.eyebrow,.active,.pdf-tag,.download,.text-link,.resource-caption,.diocese-label,.diocese-period,.photo-chip,.btn)::after{content:none;display:none;}
/* Section heads: eyebrow above the title on the left, action link on the right (original markup grouped eyebrow+h2 in one div). */
html body.trofa-scope.trofa-scope .section-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:25px;align-items:end;}
html body.trofa-scope.trofa-scope .section-head>.elementor-widget{grid-column:1;}
html body.trofa-scope.trofa-scope .section-head>.elementor-widget .eyebrow{display:block;}
html body.trofa-scope.trofa-scope .section-head>.elementor-widget-heading{text-align:left;}
html body.trofa-scope.trofa-scope .section-head>.elementor-widget.text-link{grid-column:2;grid-row:1/span 2;align-self:end;}
html body.trofa-scope.trofa-scope .section-head>.elementor-widget.text-link>.text-link{display:inline-flex;align-items:center;}
/* Quick links: icon on the left, title with its small caption stacked on the right. */
html body.trofa-scope.trofa-scope .quicklink{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:18px;row-gap:0;align-items:center;}
html body.trofa-scope.trofa-scope .quicklink>.elementor-widget-html,html body.trofa-scope.trofa-scope .quicklink>svg.icon{grid-column:1;grid-row:1/span 2;}
html body.trofa-scope.trofa-scope .quicklink>.elementor-widget-text-editor{grid-column:2;align-self:end;}
html body.trofa-scope.trofa-scope .quicklink>.elementor-widget-text-editor+.elementor-widget-text-editor{align-self:start;}
@media(max-width:650px){html body.trofa-scope.trofa-scope .section-head>.elementor-widget.text-link{display:none;}}
/* Celebrações: Elementor flattened the left column (eyebrow, title, schedule card, confessions); put them back in column 1 and the bulletins group in column 2. */
@media(min-width:951px){
html body.trofa-scope.trofa-scope .schedule-layout{row-gap:0;align-items:start;align-content:start;}
html body.trofa-scope.trofa-scope .schedule-layout>.elementor-widget,html body.trofa-scope.trofa-scope .schedule-layout>.schedule-card,html body.trofa-scope.trofa-scope .schedule-layout>.confession{grid-column:1;}
html body.trofa-scope.trofa-scope .schedule-layout>.e-con:not(.schedule-card):not(.confession){grid-column:2;grid-row:1/span 4;}
}
html body.trofa-scope.trofa-scope .schedule-layout>.trofa-h2{margin-bottom:28px;}
html body.trofa-scope.trofa-scope .schedule-layout>.e-con:not(.schedule-card):not(.confession)>.trofa-h2{margin-bottom:28px;}
html body.trofa-scope.trofa-scope .schedule-layout .eyebrow{display:block;}
/* History photo: the design height/radius/shadow sit on the image widget wrapper; make the image fill it. */
html body.trofa-scope.trofa-scope .elementor-widget-image.history-image{overflow:hidden;}
html body.trofa-scope.trofa-scope .elementor-widget-image.history-image a,html body.trofa-scope.trofa-scope .elementor-widget-image.history-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;}
/* News titles keep the navy design colour instead of plugin/theme greys. */
html body.trofa-scope.trofa-scope .news-grid h3,html body.trofa-scope.trofa-scope .news-grid h3 a{color:#162844;}
/* Footer has four blocks (Morada, Cartório, Telefones, E-mails): keep them on one row on desktop. */
@media(min-width:951px){html body.trofa-scope.trofa-scope .footer-grid{grid-template-columns:1fr 1.3fr 1.1fr 1.1fr;gap:40px;}}
/* Breadcrumbs: one widget per crumb, keep them on one line. */
html body.trofa-scope.trofa-scope .crumbs{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;}
html body.trofa-scope.trofa-scope .crumbs>.elementor-widget{width:auto;}
/* ---- Trofa 1.0.2 ---- */
/* "Outros Serviços do Cartório": the nine linked service tiles stacked as 650px images; show them as a compact grid. */
html body.trofa-scope.trofa-scope .legacy .e-con:has(>a.e-con>.elementor-widget-image){display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;align-items:start;}
html body.trofa-scope.trofa-scope .legacy .e-con:has(>a.e-con>.elementor-widget-image)>:not(a.e-con){grid-column:1/-1;}
html body.trofa-scope.trofa-scope .legacy .e-con:has(>a.e-con>.elementor-widget-image)>a.e-con{display:block;text-decoration:none;border-radius:14px;overflow:hidden;transition:transform .2s,box-shadow .2s;}
html body.trofa-scope.trofa-scope .legacy .e-con:has(>a.e-con>.elementor-widget-image)>a.e-con:hover{transform:translateY(-2px);box-shadow:0 6px 20px #16284414;}
html body.trofa-scope.trofa-scope .legacy .e-con:has(>a.e-con>.elementor-widget-image)>a.e-con img{display:block;width:100%;height:auto;max-height:none;margin:0;aspect-ratio:1/1;object-fit:cover;}
@media(max-width:650px){html body.trofa-scope.trofa-scope .legacy .e-con:has(>a.e-con>.elementor-widget-image){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}}
