/*
Theme Name: Parrocchia Ossanesga - Verde Comunità 2026.39
Author: Tema personalizzato
Description: Tema responsive per il sito della Parrocchia di Ossanesga, con testata fotografica originale.
Version: 2026.39
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ossanesga
*/
:root{--blue:#245579;--gold:#bd9552;--paper:#e8f4fb;--ink:#263541}*{box-sizing:border-box}body{margin:0;font-family:Georgia,'Times New Roman',serif;color:var(--ink);background:var(--paper);line-height:1.65}a{color:var(--blue)}.wrap{max-width:1120px;margin:auto;padding:0 22px}.site-header{background:white}.identity{padding:22px 0 15px;text-align:center}.identity a{text-decoration:none;color:var(--blue)}.identity h1,.identity .site-title{font-size:clamp(25px,3.4vw,39px);margin:0;font-weight:normal}.tagline{font:14px Arial,sans-serif;color:#697784;margin:3px 0}.hero{max-width:1120px;margin:auto}.hero img{display:block;width:100%;height:auto}.main-nav{background:var(--blue)}.main-nav ul{display:flex;flex-wrap:wrap;justify-content:center;list-style:none;margin:0;padding:0}.main-nav a{display:block;padding:14px 17px;color:#fff;text-decoration:none;font:600 14px Arial,sans-serif}.main-nav a:hover,.main-nav .current-menu-item a{background:#173d5b}.content{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:35px;padding-top:40px;padding-bottom:60px}.card,.widget{background:#fff;border:1px solid #e7e9e8;border-radius:5px;padding:26px;margin-bottom:24px;box-shadow:0 3px 15px #18364b08}.card h2,.widget h2{color:var(--blue);font-weight:normal;margin-top:0}.entry-meta{font:13px Arial,sans-serif;color:#697784}.button{display:inline-block;background:var(--blue);color:#fff;text-decoration:none;padding:9px 16px;border-radius:3px;font:14px Arial,sans-serif}.site-footer{background:#173d5b;color:#e9eef2;padding:28px 0;text-align:center;font:14px Arial,sans-serif}.site-footer a{color:white}.widget ul{padding-left:20px}.wp-block-image img,.entry-content img{max-width:100%;height:auto}@media(max-width:700px){.content{grid-template-columns:1fr;padding-top:22px}.main-nav a{padding:11px 10px;font-size:12px}.card,.widget{padding:19px}}

.notiziario-widget{border-top:4px solid var(--gold)}.notiziario-download{display:block;text-align:center;margin-top:16px}.notiziario-empty{font-style:italic;color:#697784}

.footer-admin-link{display:inline-block;margin-top:10px;font-size:13px;text-decoration:underline;text-underline-offset:3px}

.footer-admin-link.admin-login-open{background:none;border:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
.ossanesga-login-overlay[hidden]{display:none!important}
.ossanesga-login-overlay{position:fixed;inset:0;z-index:99999;background:rgba(16,29,42,.7);display:flex;justify-content:center;align-items:center;padding:20px}
.ossanesga-login-dialog{position:relative;background:#fff;color:#253442;border-radius:12px;box-shadow:0 18px 60px #0005;padding:30px;width:min(100%,420px);max-height:90vh;overflow:auto}
.ossanesga-login-dialog h2{margin:0 35px 24px 0;font-size:1.5rem}
.ossanesga-login-close{position:absolute;right:15px;top:10px;border:0;background:transparent;color:#333;font-size:30px;cursor:pointer}
.ossanesga-login-dialog label{display:block;margin:12px 0 5px;font-weight:600}
.ossanesga-login-dialog input[type=text],.ossanesga-login-dialog input[type=password]{width:100%;padding:11px;border:1px solid #adb6be;border-radius:6px;box-sizing:border-box}
.ossanesga-login-dialog input[type=submit]{background:#194d70;color:white;border:0;border-radius:6px;padding:11px 25px;cursor:pointer}
.ossanesga-login-help{margin-bottom:0}.ossanesga-modal-open{overflow:hidden}

.parish-banner{background:#fff;text-align:center;padding:18px 16px 17px;color:var(--blue);font-size:clamp(22px,3.2vw,38px);letter-spacing:.075em;font-weight:normal;line-height:1.25;border-bottom:3px solid var(--gold)}@media(max-width:700px){.parish-banner{padding:14px 10px;font-size:clamp(19px,5vw,27px);letter-spacing:.03em}}


/* Versione 2.2: rispetto dei blocchi Gutenberg e del contenuto originale */
.entry-content{min-width:0;overflow-wrap:break-word}
.entry-content .has-text-align-center{text-align:center}
.entry-content .has-text-align-right{text-align:right}
.entry-content .has-text-align-left{text-align:left}
.entry-content .has-small-font-size{font-size:.8125rem}
.entry-content .has-medium-font-size{font-size:1.25rem}
.entry-content .has-large-font-size{font-size:2.25rem}
.entry-content .has-x-large-font-size{font-size:2.625rem}
.entry-content .has-text-color{color:var(--wp--style--color--text,inherit)}
.entry-content .has-background{padding:1.25em}
.entry-content .wp-block-columns{display:flex;flex-wrap:wrap;gap:2em;align-items:initial}
.entry-content .wp-block-column{flex:1 1 0;min-width:0}
.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}
.entry-content .wp-block-group{box-sizing:border-box}
.entry-content .wp-block-image{margin:0 0 1em}
.entry-content .wp-block-image.aligncenter{text-align:center}
.entry-content .wp-block-image.alignright{float:right;margin-left:1.5em}
.entry-content .wp-block-image.alignleft{float:left;margin-right:1.5em}
.entry-content .wp-block-image img{max-width:100%;height:auto}
.entry-content .wp-block-image figcaption,.entry-content figcaption{text-align:center;font-size:.875em;color:#64717a}
.entry-content .wp-block-buttons{display:flex;gap:.5em;flex-wrap:wrap}
.entry-content .wp-block-button__link{display:inline-block;padding:.65em 1.3em;background:#245579;color:white;border-radius:999px;text-decoration:none}
.entry-content .wp-block-table{overflow-x:auto}
.entry-content .wp-block-table table{border-collapse:collapse;width:100%}
.entry-content .wp-block-table td,.entry-content .wp-block-table th{border:1px solid #c8cdd1;padding:.5em}
.entry-content .wp-block-separator{border:0;border-top:1px solid #ccd2d6}
.entry-content .alignwide{max-width:100%}
.entry-content iframe,.entry-content video{max-width:100%}
.entry-content::after{content:"";display:block;clear:both}
@media(max-width:700px){.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile){display:block}.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{margin-bottom:1.25em}}

/* Contenuti completi delle pagine nelle categorie */
.category .post-type-page .entry-content p{margin-bottom:1em;line-height:1.65}
.category .post-type-page .entry-content strong{font-weight:700}
.category .post-type-page .entry-content em{font-style:italic}

/* v2.4: contenuti prodotti dall'editor classico / TinyMCE */
.entry-content{font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.6;overflow-wrap:normal;word-break:normal}
.entry-content p{margin:0 0 1em}
.entry-content p[style],.entry-content div[style],.entry-content span[style],.entry-content td[style]{/* conserva gli stili inline di TinyMCE */}
.entry-content [style*="text-align: right"],.entry-content .has-text-align-right{text-align:right}
.entry-content [style*="text-align: center"],.entry-content .has-text-align-center{text-align:center}
.entry-content [style*="text-align: left"],.entry-content .has-text-align-left{text-align:left}
.entry-content .alignleft{float:left;margin:0 1.5em 1em 0}
.entry-content .alignright{float:right;margin:0 0 1em 1.5em}
.entry-content .aligncenter{display:block;margin-left:auto;margin-right:auto}
.entry-content table:not(.wp-block-table table){width:100%;max-width:100%;border-collapse:collapse;table-layout:auto;margin:0 0 1em}
.entry-content table:not(.wp-block-table table) td,.entry-content table:not(.wp-block-table table) th{vertical-align:top;padding:4px 8px;border:0}
.entry-content table[border]:not([border="0"]) td,.entry-content table[border]:not([border="0"]) th{border:1px solid #cbd2d8}
.entry-content table td[align="right"],.entry-content table th[align="right"]{text-align:right}
.entry-content table td[align="center"],.entry-content table th[align="center"]{text-align:center}
.entry-content table td[align="left"],.entry-content table th[align="left"]{text-align:left}
.entry-content strong,.entry-content b{font-weight:700}
.entry-content em,.entry-content i{font-style:italic}
.entry-content u{text-decoration:underline}
.entry-content img{max-width:100%;height:auto}
@media(max-width:700px){.entry-content table{display:block;overflow-x:auto}.entry-content table td{min-width:90px}}

/* Collegamenti informativi nel pie di pagina */
.site-footer .ossanesga-footer-policy-link{display:inline-block;color:inherit;text-decoration:underline;text-underline-offset:3px;margin:0 3px}.site-footer .ossanesga-footer-divider{opacity:.7}.site-footer .ossanesga-footer-policy-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* v2.9: icona per riaprire il consenso cookie, a destra nella striscia blu */
.site-footer{position:relative}
.site-footer .wrap{position:relative}
.ossanesga-cookie-reopen{position:absolute;right:22px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #ffffff75;border-radius:50%;background:transparent;color:#fff;cursor:pointer;padding:5px}
.ossanesga-cookie-reopen:hover,.ossanesga-cookie-reopen:focus-visible{background:#ffffff25;outline:2px solid #fff;outline-offset:2px}
@media(max-width:700px){.site-footer .wrap{padding-right:60px}.ossanesga-cookie-reopen{right:14px}}

/* Data sopra la testata fotografica */
.ossanesga-date-strip{padding-top:9px;padding-bottom:9px;text-align:left;font:15px Arial,sans-serif;color:#374454}
@media(max-width:700px){.ossanesga-date-strip{font-size:13px;padding-top:7px;padding-bottom:7px}}
\n.settimanale-widget{margin-top:22px;}\n
/* Immagine in evidenza dell’ultima notizia nella Home Page */
.home-news-image{display:block;margin:18px 0 20px;overflow:hidden;border-radius:5px}.home-news-thumbnail{display:block;width:100%;height:auto;max-height:440px;object-fit:contain}.home-news-image:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* v3.6: miniatura a sinistra del testo della notizia in home */
.home-news-preview{display:flow-root;margin:14px 0 18px}
.home-news-preview .home-news-image{float:left;width:165px;max-width:36%;margin:0 18px 10px 0;border-radius:5px;overflow:hidden}
.home-news-preview .home-news-thumbnail{display:block;width:100%;height:auto;max-height:none;object-fit:cover}
.home-news-preview .entry-summary{margin:0}
.home-news-preview .entry-summary p:first-child{margin-top:0}
@media(max-width:480px){.home-news-preview .home-news-image{width:115px;max-width:42%;margin-right:12px}}

/* v3.7: notizia principale a tutta larghezza; le altre categorie in due colonne */
.home-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.home-category-card{min-width:0;margin:0;padding:20px;display:flex;flex-direction:column}
.home-category-card h2{font-size:1.22rem;line-height:1.3;margin-bottom:10px;overflow-wrap:anywhere}
.home-category-label{font:700 12px Arial,sans-serif;text-transform:uppercase;letter-spacing:.06em;margin:0 0 12px}
.home-category-label a{text-decoration:none;color:#8b6d39}
.home-category-image{display:block;margin:5px 0 12px}
.home-category-image img{display:block;max-width:100%;width:115px;height:auto;border-radius:4px}
.home-category-card .entry-summary{font-size:15px;line-height:1.5;margin-bottom:16px;overflow-wrap:anywhere}
.home-category-card .button{align-self:flex-start;margin-top:auto}
@media(max-width:580px){.home-category-grid{grid-template-columns:1fr}}

/* Menu Sacramenti a discesa: mouse, tastiera e dispositivi mobili */
.main-nav li{position:relative}
.main-nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:1000;min-width:210px;flex-direction:column;background:#245579;box-shadow:0 8px 18px #0003;padding:4px 0}
.main-nav .sub-menu li{width:100%}
.main-nav .sub-menu a{white-space:nowrap;padding:12px 17px}
.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:flex}
@media(max-width:700px){.main-nav .sub-menu{position:static;box-shadow:none;min-width:0;width:100%;background:#194663}.main-nav .sub-menu a{padding-left:24px;white-space:normal}}

/* v4.2 – riquadri delle categorie più compatti nella Home Page */
.home-category-grid{gap:12px;align-items:start}
.home-category-card{padding:12px 14px;gap:0}
.home-category-card .home-category-label{font-size:11px;margin:0 0 5px;line-height:1.3}
.home-category-card h2{font-size:1.08rem;line-height:1.25;margin:0 0 5px}
.home-category-card .entry-meta{font-size:12px;margin:0 0 7px}
.home-category-card .home-category-image{float:none;margin:0 0 7px}
.home-category-card .home-category-image img{width:85px;max-width:100%;height:auto}
.home-category-card .entry-summary{font-size:13px;line-height:1.4;margin:0 0 9px}
.home-category-card .entry-summary p{margin:0}
.home-category-card .button{font-size:12px;padding:6px 11px;margin-top:0}
@media(max-width:580px){.home-category-grid{gap:10px}}

/* Collegamento Leggi tutto in linea con il riassunto, senza pulsante */
.home-news-preview .entry-summary p, .home-category-card .entry-summary p {margin-bottom:0;}
.home-read-more {display:inline; padding:0; border:0; background:transparent; font-weight:600; text-decoration:underline; white-space:nowrap;}

/* v4.6: titoli degli articoli in Home Page su barra blu come il menu. */
.home-category-card h2,
.posts > article.card:not(.home-category-card) > h2 {
  background:var(--blue);
  color:#fff;
  padding:10px 14px;
  margin:0 0 12px;
  border-radius:3px;
  font-family:Arial,sans-serif;
  font-weight:600;
  line-height:1.35;
}
.home-category-card h2 a,
.posts > article.card:not(.home-category-card) > h2 a {
  color:#fff;
  text-decoration:none;
}
.home-category-card h2 a:hover,
.posts > article.card:not(.home-category-card) > h2 a:hover {text-decoration:underline;}
.home-category-card h2 a:focus-visible,
.posts > article.card:not(.home-category-card) > h2 a:focus-visible {outline:2px solid #fff;outline-offset:3px;}
.home-category-card h2 {font-size:1.08rem;padding:8px 10px;margin-bottom:7px;}
@media(max-width:700px){
 .posts > article.card:not(.home-category-card) > h2 {padding:9px 11px;}
}

/* v4.7: angoli squadrati per tutte le barre dei titoli in Home Page */
.home-category-card h2,
.posts > article.card:not(.home-category-card) > h2 {border-radius:0;}

/* v4.8: angoli squadrati effettivi sulle barre titoli della Home Page. */
body.home .posts > article.card > h2,
body.home .posts .home-category-card > h2,
body.home .posts > article.card > h2 a,
body.home .posts .home-category-card > h2 a {
 border-radius:0 !important;
}
body.home .posts > article.card > h2,
body.home .posts .home-category-card > h2 {
 background:#245579 !important;
 color:#ffffff !important;
}
body.home .posts > article.card > h2 a,
body.home .posts .home-category-card > h2 a {color:#ffffff !important;}

/* v5.3: Home Page con lo sfondo originale del tema. */

/* v5.2 — menu elegante bianco con sottolineatura blu; conserva i sottomenu. */
.main-nav {background:#fff !important;border-bottom:1px solid #dbe6ee;box-shadow:0 3px 12px rgba(20,60,85,.07);}
.main-nav > ul {align-items:stretch;gap:0 3px;}
.main-nav > ul > li > a {position:relative;background:transparent !important;color:#245579 !important;padding:15px 13px 18px !important;border-radius:0 !important;font-weight:600;transition:color .2s ease;}
.main-nav > ul > li > a::after {content:"";position:absolute;left:13px;right:13px;bottom:7px;height:3px;background:#245579;transform:scaleX(0);transform-origin:center;transition:transform .2s ease;}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li:focus-within > a::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav > ul > li.current-menu-ancestor > a::after,
.main-nav > ul > li.current-menu-parent > a::after,
.main-nav > ul > li.current_page_item > a::after {transform:scaleX(1);}
.main-nav > ul > li > a:hover,.main-nav > ul > li > a:focus-visible {color:#173d5b !important;background:#f2f8fc !important;}
.main-nav .sub-menu {background:#fff !important;border:1px solid #dbe6ee;border-top:3px solid #245579;box-shadow:0 10px 24px rgba(20,60,85,.16);border-radius:0 0 5px 5px;}
.main-nav .sub-menu a {background:#fff !important;color:#245579 !important;}
.main-nav .sub-menu a:hover,.main-nav .sub-menu a:focus-visible,.main-nav .sub-menu .current-menu-item > a {background:#e8f4fb !important;color:#173d5b !important;}
@media(max-width:700px){.main-nav > ul > li > a {padding:11px 10px 14px !important;}.main-nav > ul > li > a::after{left:10px;right:10px;bottom:4px;}.main-nav .sub-menu{position:static;min-width:0;width:100%;box-shadow:none;border:0;border-left:3px solid #245579;border-radius:0;}}

/* v5.4: testata e menu con lo stesso sfondo della Home Page. */
.site-header, .parish-banner, .main-nav {background:var(--paper) !important;}
.main-nav .sub-menu {background:var(--paper) !important;}
.main-nav .sub-menu a {background:var(--paper) !important;}

/* v5.5: sfondo azzurro uniforme per sito, testata e menu, mantenendo la foto. */
html,body,.site-header,.identity,.parish-banner,.main-nav {background-color:#e8f4fb !important;}
.main-nav .sub-menu,.main-nav .sub-menu a {background-color:#e8f4fb !important;}
.main-nav > ul > li > a:hover,.main-nav > ul > li > a:focus-visible {background-color:#d7eaf6 !important;}
.main-nav .sub-menu a:hover,.main-nav .sub-menu a:focus-visible {background-color:#d7eaf6 !important;}

/* v6.1: elimina la fascia visiva sotto il menu e uniforma il colore. */
html, body, .site-header, .identity, .parish-banner, .main-nav,
.content, .content.wrap, main.content, .site-header + main {
  background-color:#e8f4fb !important;
}
.main-nav {
  border-bottom:0 !important;
  box-shadow:none !important;
  background-image:none !important;
}
.main-nav::after, .site-header::after {
  box-shadow:none !important;
}

/* v6.4: illustrazioni banner laterali */
.ossanesga-banner-image{display:block;width:100%;height:auto;max-height:120px;object-fit:cover;margin:8px 0 12px;border-radius:4px;}

/* Banner laterali illustrati moderni */
.ossanesga-banner-image{display:block;width:100%;height:150px;max-height:none;object-fit:cover;object-position:left center;margin:10px 0 14px;border-radius:12px;box-shadow:0 3px 12px rgba(19,58,95,.13);}


/* Classico 2026.03: un unico foglio bianco per articoli e sidebar.
   Il colore azzurro rimane visibile intorno alla pagina. */
body{background:#e8f4fb !important;}
main.content.wrap,
#oss-home-content.content.wrap,
.site-header + main.content.wrap{
  background:#fff !important;
  max-width:1120px;
  width:calc(100% - 48px);
  margin:28px auto 42px;
  padding:32px 28px 45px;
  border-radius:5px;
  box-shadow:0 8px 30px rgba(25,65,95,.10);
}
main.content.wrap .card,
main.content.wrap .widget{
  background:#fff;
}
@media(max-width:700px){
  main.content.wrap,
  #oss-home-content.content.wrap,
  .site-header + main.content.wrap{
    width:calc(100% - 20px);
    margin:12px auto 24px;
    padding:18px 12px 26px;
  }
}


/* Classico 2026.05 — il riepilogo scorre accanto e sotto l'immagine. */
#oss-home-content .home-news-preview{
    display:flow-root !important;
}
#oss-home-content .home-news-preview .home-news-image{
    display:block !important;
    float:left !important;
    width:165px !important;
    max-width:36% !important;
    margin:0 16px 9px 0 !important;
}
#oss-home-content .home-news-preview .entry-summary{
    display:block !important;
    width:auto !important;
    overflow:visible !important;
    flex:none !important;
    margin:0 !important;
}
#oss-home-content .home-news-preview .entry-summary p{
    display:block !important;
    margin:0 !important;
}
#oss-home-content .home-category-card{
    display:flow-root;
}
#oss-home-content .home-category-card .home-category-image{
    display:block !important;
    float:left !important;
    width:85px !important;
    max-width:40% !important;
    margin:0 12px 8px 0 !important;
}
#oss-home-content .home-category-card .entry-summary{
    display:block !important;
    width:auto !important;
    overflow:visible !important;
    margin:0 !important;
}
#oss-home-content .home-category-card .entry-summary p{
    display:block !important;
    margin:0 !important;
}
@media(max-width:480px){
    #oss-home-content .home-news-preview .home-news-image{
        width:115px !important;max-width:42% !important;margin-right:12px !important;
    }
}

/* Classico 2026.07: vero testo a contorno dell'immagine nei riepiloghi.
   Rimuove il flex dalle card delle categorie: il float può così funzionare. */
#oss-home-content .home-category-grid .home-category-card{
  display:flow-root !important;
  flex-direction:initial !important;
}
#oss-home-content .home-news-preview{display:flow-root !important;}
#oss-home-content .home-news-preview > a.home-news-image,
#oss-home-content .home-category-card > a.home-category-image{
  float:left !important;
  display:block !important;
  clear:none !important;
  margin:0 14px 8px 0 !important;
  padding:0 !important;
  width:165px !important;
  max-width:42% !important;
}
#oss-home-content .home-category-card > a.home-category-image{
  width:85px !important;max-width:43% !important;
  margin:0 11px 7px 0 !important;
}
#oss-home-content .home-news-preview > a.home-news-image img,
#oss-home-content .home-category-card > a.home-category-image img{
  display:block;width:100% !important;max-width:100% !important;height:auto !important;
}
#oss-home-content .home-news-preview > .entry-summary,
#oss-home-content .home-category-card > .entry-summary{
  display:block !important;float:none !important;clear:none !important;
  width:auto !important;max-width:none !important;
  overflow:visible !important;
  margin:0 !important;padding:0 !important;
}
#oss-home-content .home-news-preview > .entry-summary p,
#oss-home-content .home-category-card > .entry-summary p{
  display:block !important;clear:none !important;float:none !important;
  margin:0 !important;white-space:normal !important;
}
@media(max-width:480px){
  #oss-home-content .home-news-preview > a.home-news-image{width:115px !important;max-width:42% !important;}
}

/* Classico 2026.07: iniziative dinamiche nella barra laterale */
.iniziative-widget{border-top:4px solid #e8a53c}
.iniziative-banner-link{display:block}
.iniziative-banner-image{display:block;width:100%;height:auto;max-width:360px;margin:0 auto 14px;border-radius:8px}
.iniziative-latest-title{font-size:1.08rem;color:#245579;margin:14px 0 8px}
.iniziative-latest-list{list-style:none;padding:0!important;margin:0}
.iniziative-latest-list li{border-bottom:1px solid #e4e9ed;padding:9px 0}
.iniziative-latest-list li a{display:block;font-weight:600;line-height:1.4}
.iniziative-latest-list li small{display:block;font:12px Arial,sans-serif;color:#6c7d89;margin-top:4px}
\n/* Titolo del messaggio del parroco sotto la fascia del primo riquadro. */
#oss-home-content .ossanesga-parroco-post-title{font-size:1.22rem;line-height:1.4;margin:0 0 8px;color:#245579}
#oss-home-content .ossanesga-parroco-post-title a{color:inherit;text-decoration:none}
#oss-home-content .ossanesga-parroco-post-title a:hover{text-decoration:underline}


/* Home: l'ultimo articolo di Iniziative usa la foto in evidenza
   come immagine a tutta larghezza del proprio riquadro. */
#oss-home-content .home-category-card.home-iniziative-card > a.home-category-image{
    display:block !important;
    float:none !important;
    clear:both !important;
    width:100% !important;
    max-width:none !important;
    margin:0 0 12px !important;
    padding:0 !important;
    overflow:hidden;
    border-radius:4px;
}
#oss-home-content .home-category-card.home-iniziative-card > a.home-category-image img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    object-fit:cover;
    margin:0 !important;
}
#oss-home-content .home-category-card.home-iniziative-card > .entry-summary{
    display:block !important;
    width:100% !important;
    clear:both !important;
}

#oss-home-content .ossanesga-iniziative-post-title{font-size:1.1rem;margin:5px 0 9px;color:#245579}#oss-home-content .ossanesga-iniziative-post-title a{color:inherit;text-decoration:none}#oss-home-content .ossanesga-iniziative-post-title a:hover{text-decoration:underline}

/* 2026.12: il PRIMO riquadro è Iniziative, immagine a piena larghezza. */
#oss-home-content .ossanesga-featured-iniziative .home-news-preview{display:block !important; width:100% !important;}
#oss-home-content .ossanesga-featured-iniziative .home-news-preview > a.home-news-image{
 display:block !important;float:none !important;clear:both !important;
 width:100% !important;max-width:100% !important;margin:0 0 16px !important;
 padding:0 !important;overflow:hidden !important;
}
#oss-home-content .ossanesga-featured-iniziative .home-news-preview > a.home-news-image img{
 display:block !important;width:100% !important;max-width:100% !important;
 height:auto !important;float:none !important;margin:0 !important;
}
#oss-home-content .ossanesga-featured-iniziative .home-news-preview > .entry-summary{
 display:block !important;float:none !important;clear:both !important;
 width:100% !important;max-width:100% !important;margin:0 !important;
}

/* Archivi categorie: riepilogo con immagine in evidenza e testo a contorno. */
.ossanesga-category-archive .ossanesga-archive-heading h1 {
 background:#245579;color:#fff;padding:12px 16px;margin:0 0 10px;font-size:1.55rem;
}
.ossanesga-category-archive .ossanesga-archive-post-title{margin:0 0 8px;font-size:1.35rem;}
.ossanesga-category-archive .ossanesga-archive-post-title a{color:#245579;text-decoration:none;}
.ossanesga-category-archive .ossanesga-archive-post-title a:hover{text-decoration:underline;}
.ossanesga-category-archive .ossanesga-archive-excerpt{display:flow-root;}
.ossanesga-category-archive .ossanesga-archive-image{
 display:block;float:left;width:190px;max-width:42%;margin:0 17px 10px 0;
}
.ossanesga-category-archive .ossanesga-archive-image img{
 display:block;width:100%;height:auto;border-radius:4px;
}
.ossanesga-category-archive .ossanesga-archive-text{display:block;overflow:visible;}
.ossanesga-category-archive .ossanesga-archive-text p{margin-top:0;}
.ossanesga-category-archive .ossanesga-archive-more{font-weight:600;color:#245579;}
@media(max-width:520px){
 .ossanesga-category-archive .ossanesga-archive-image{width:125px;max-width:44%;margin-right:12px;}
}

/* Verde Comunità: impaginazione ispirata alla struttura del riferimento fornito. */
:root{--verde:#3e9554;--verde-dark:#286c3c;--verde-light:#4ba363}
body{background:#f1f3f1!important;color:#292d29!important;font-family:Georgia,'Times New Roman',serif!important}
.verde-header{background:white!important}
.verde-header .ossanesga-date-strip{background:linear-gradient(#378d50,#4ca05e)!important;color:#fff!important;max-width:none!important;display:flex;justify-content:center;gap:30px;padding:8px 16px!important;font-size:12px!important}
.verde-top-right{font-size:11px;letter-spacing:.09em}
.verde-brand{height:145px;display:flex;align-items:center;justify-content:center;gap:22px;background:#fff}
.verde-brand img{width:70px;height:70px;object-fit:contain}
.verde-brand strong{display:block;font:700 37px Georgia,serif;color:#243a29;text-align:center}
.verde-brand small{display:block;font:400 15px Georgia,serif;color:#9a927c;text-align:center;margin-top:6px}
.verde-header .hero{display:none!important}
.verde-header .main-nav{background:#3e9554!important;box-shadow:none!important}
.verde-header .main-nav ul{justify-content:center}
.verde-header .main-nav a{font:700 14px Georgia,serif!important;color:#fff!important;background:transparent!important;padding:15px 14px!important;border-radius:0!important}
.verde-header .main-nav a:hover,.verde-header .main-nav .current-menu-item>a{background:#286c3c!important;color:white!important}
.verde-header .main-nav .sub-menu{background:#3e9554!important;box-shadow:0 7px 20px #1a3e2440}
.verde-home-shell{max-width:1110px;margin:0 auto 45px;padding:0 15px;background:transparent}
.verde-welcome{background:#fff;text-align:center;padding:25px 16px 14px;margin:0 0 18px}
.verde-welcome h1{font:700 28px Georgia,serif;color:#252525;margin:0 0 12px}
.verde-welcome>p{font-size:15px;color:#555;line-height:1.6;margin:0 auto 22px}
.verde-quicklinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.verde-quicklink{display:flex;min-height:150px;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center;padding:22px 10px;background:#419758;color:#fff!important;text-decoration:none!important}
.verde-quick-1{background:#38884e}.verde-quick-2{background:#327b46}.verde-quick-3{background:#296d3e}
.verde-quicklink strong{font:700 17px Georgia,serif;text-transform:uppercase}
.verde-quicklink span{font:400 13px/1.5 Georgia,serif}
.verde-quicklink:hover{filter:brightness(1.1)}
.verde-photo-news{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}
.verde-photo-tile{height:205px;position:relative;display:block;overflow:hidden;background:#d4e2d7;color:#fff!important;text-decoration:none!important}
.verde-photo-tile>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.verde-photo-tile:hover>img{transform:scale(1.06)}
.verde-no-photo{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#b4d3bc,#448a57);font-size:65px}
.verde-photo-caption{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;gap:4px;text-align:center;background:linear-gradient(transparent,#267a41ed 25%);padding:28px 9px 12px}
.verde-photo-caption small{font-size:11px;text-transform:uppercase}
.verde-photo-caption strong{font:700 14px/1.35 Georgia,serif}
.verde-columns{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(240px,.83fr);gap:18px;align-items:start}
.verde-content{min-width:0}
.verde-section-title{background:#fff;border-left:5px solid #3e9554;padding:15px 20px;margin:0 0 13px}
.verde-section-title h2{font:700 23px Georgia,serif;margin:0;color:#252525}
.verde-feature-article{background:white;padding:23px;margin-bottom:18px;display:flow-root}
.verde-feature-article h2{font:700 29px/1.2 Georgia,serif;margin:0 0 10px}
.verde-feature-article h2 a,.verde-small-article h3 a{color:#262626;text-decoration:none}
.verde-feature-article h2 a:hover,.verde-small-article h3 a:hover{color:#328349}
.verde-meta{font:13px Georgia,serif;color:#999;margin-bottom:16px}
.verde-feature-photo{display:block;float:left;width:40%;margin:0 20px 10px 0}
.verde-feature-photo img{display:block;width:100%;height:auto;max-height:310px;object-fit:contain}
.verde-feature-article p{font-size:16px;line-height:1.7;margin:0 0 17px}
.verde-button{display:inline-block;background:#3e9554;color:white!important;text-decoration:none!important;padding:10px 17px;font:700 14px Georgia,serif}
.verde-button:hover{background:#286c3c}
.verde-article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.verde-small-article{background:#fff;padding:15px;min-width:0;display:flow-root}
.verde-small-article>a:first-child{float:left;width:40%;margin:0 12px 8px 0}
.verde-small-article>a:first-child img{width:100%;height:auto;display:block}
.verde-small-article small a{color:#328349;text-decoration:none}
.verde-small-article h3{font:700 18px/1.3 Georgia,serif;margin:7px 0}
.verde-small-article p{font-size:13px;line-height:1.5;margin:0 0 7px}
.verde-more{font-size:13px;color:#348a4c!important}
.verde-columns .sidebar{display:block!important;width:auto!important;min-width:0!important}
.verde-columns .widget{background:white!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0 0 16px!important;padding:16px!important}
.verde-columns .widget h2{font:700 20px Georgia,serif!important;border-bottom:2px solid #3e9554;padding:0 0 12px;margin:0 0 12px;color:#252525!important}
.verde-columns .widget img{width:100%;height:auto}
.verde-columns .widget p{font:14px/1.5 Georgia,serif}
.verde-columns .notiziario-download{background:#3e9554!important;border-radius:0!important;color:#fff!important;padding:10px 12px!important;font:700 13px Georgia,serif!important}
.ossanesga-category-archive .ossanesga-archive-heading h1{background:#3e9554!important;color:#fff!important}
.ossanesga-category-archive .ossanesga-archive-post-title a{color:#286c3c!important}
.site-footer{background:#286c3c!important;color:white!important;border-top:4px solid #3e9554!important}
.site-footer a{color:#fff!important}
@media(max-width:800px){.verde-columns{grid-template-columns:1fr}.verde-photo-news{grid-template-columns:repeat(2,minmax(0,1fr))}.verde-brand strong{font-size:29px}.verde-quicklink{min-height:125px}}
@media(max-width:520px){.verde-quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))}.verde-photo-news{gap:8px}.verde-photo-tile{height:160px}.verde-photo-caption strong{font-size:12px}.verde-article-grid{grid-template-columns:1fr}.verde-header .ossanesga-date-strip{display:block;text-align:center}.verde-top-right{display:none}.verde-brand{height:110px;gap:10px}.verde-brand img{width:45px;height:45px}.verde-brand strong{font-size:23px}.verde-brand small{font-size:12px}.verde-welcome h1{font-size:23px}.verde-feature-photo{float:none;width:100%;margin:0 0 14px}.verde-header .main-nav a{padding:10px!important}}

/* v2026.20: fotografia originale della chiesa nella testata e foto principale a piena larghezza. */
.verde-header .verde-brand.verde-brand-photo{height:245px!important;min-height:0!important;position:relative!important;display:block!important;overflow:hidden!important;padding:0!important;background:#e6eee8!important}
.verde-header .verde-brand.verde-brand-photo>img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center 46%!important;filter:brightness(.78)!important}
.verde-header .verde-brand.verde-brand-photo .verde-brand-caption{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;padding:18px!important;background:linear-gradient(90deg,#16371f66,#16371f11,#16371f66)!important;text-align:center!important}
.verde-header .verde-brand.verde-brand-photo strong{font:700 clamp(28px,4.3vw,56px)/1.15 Georgia,serif!important;color:#fff!important;text-shadow:0 2px 8px #14271cb3!important}
.verde-header .verde-brand.verde-brand-photo small{font:400 clamp(14px,1.6vw,20px) Georgia,serif!important;color:#fff!important;text-shadow:0 2px 6px #14271cb3!important;margin-top:9px!important}
.verde-feature-article .verde-feature-photo{display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:none!important;margin:0 0 20px!important;padding:0!important}
.verde-feature-article .verde-feature-photo img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
.verde-feature-article>p{clear:both!important}
@media(max-width:600px){.verde-header .verde-brand.verde-brand-photo{height:190px!important}.verde-header .verde-brand.verde-brand-photo strong{font-size:30px!important}}


/* 2026.21: mostra l'intera fotografia della chiesa senza ritagli o scritte sopra. */
.verde-header .verde-brand.verde-brand-photo {
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  padding:0!important;
  background:#fff!important;
}
.verde-header .verde-brand.verde-brand-photo>img {
  display:block!important;
  position:static!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
}
.verde-header .verde-brand.verde-brand-photo .verde-brand-caption {
  position:static!important;
  inset:auto!important;
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:13px 15px 17px!important;
  background:#fff!important;
  text-align:center!important;
}
.verde-header .verde-brand.verde-brand-photo strong {
  color:#286c3c!important;
  text-shadow:none!important;
  font-size:clamp(23px,3.2vw,36px)!important;
}
.verde-header .verde-brand.verde-brand-photo small {
  color:#7a806f!important;
  text-shadow:none!important;
  font-size:clamp(12px,1.5vw,16px)!important;
  margin-top:5px!important;
}
@media(max-width:600px){
 .verde-header .verde-brand.verde-brand-photo{height:auto!important}
 .verde-header .verde-brand.verde-brand-photo>img{height:auto!important}
}

/* v2026.22: immagine iniziative a tutta larghezza e sezioni aggregate. */
.verde-feature-article{padding:0!important;overflow:hidden!important}
.verde-feature-article .verde-feature-photo{display:block!important;width:100%!important;max-width:none!important;float:none!important;margin:0!important;padding:0!important}
.verde-feature-article .verde-feature-photo img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
.verde-feature-body{padding:23px!important}
.verde-feature-body h2{margin:0 0 10px!important}
.verde-feature-body p{margin:0 0 17px!important}
.verde-group-shell{padding-top:25px!important}
.verde-group-heading{background:white;padding:27px 28px;margin-bottom:16px}
.verde-group-heading>a{color:#31844a;text-decoration:none;font-size:14px}
.verde-group-heading h1{font:700 35px Georgia,serif;margin:14px 0 10px}
.verde-group-heading p{font-size:16px;margin:0}
.verde-group-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.verde-group-filter a{background:#3e9554;color:#fff!important;text-decoration:none;padding:10px 16px;font-weight:bold}
.verde-group-filter a:hover{background:#286c3c}
.verde-group-article{background:#fff;padding:22px;margin-bottom:16px;display:flow-root}
.verde-group-article h2{font:700 25px Georgia,serif;margin:0 0 10px}
.verde-group-article h2 a{color:#262626;text-decoration:none}
.verde-group-photo{display:block;float:left;width:38%;margin:0 20px 10px 0}
.verde-group-photo img{display:block;width:100%;height:auto}
.verde-group-article p{line-height:1.65}
.verde-group-pagination{margin:20px 0;display:flex;gap:9px;flex-wrap:wrap}
.verde-group-pagination a,.verde-group-pagination span{padding:8px 12px;background:#fff;color:#286c3c}
@media(max-width:520px){.verde-group-photo{float:none;width:100%;margin:0 0 12px}.verde-feature-body{padding:17px!important}}

/* 2026.23: nessuno spazio vuoto sopra i quattro collegamenti verdi. */
.verde-welcome{padding:0!important}
.verde-welcome .verde-quicklinks{margin:0!important}

/* 2026.24: quattro riquadri direttamente sotto il menu, senza sezione introduttiva */
.verde-home-shell>.verde-quicklinks-direct{margin:0 0 18px!important;padding:0!important;background:none!important}
.verde-home-shell{padding-top:0!important}

/* v2026.25: fotografia della chiesa senza testo sovrapposto o didascalia. */
.verde-header .verde-brand.verde-brand-photo{padding:0!important;margin:0!important;background:transparent!important}
.verde-header .verde-brand.verde-brand-photo .verde-brand-caption,.verde-header .verde-top-right{display:none!important}

/* 2026.26 - La foto della chiesa e il menu sono larghi quanto la pagina degli articoli. */
.site-header.verde-header{
  width:calc(100% - 30px)!important;
  max-width:1120px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow:visible!important;
}
.verde-header .ossanesga-date-strip.wrap{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.verde-header .verde-brand.verde-brand-photo{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}
.verde-header .verde-brand.verde-brand-photo>img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  object-fit:contain!important;
}
.verde-header .main-nav{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}
.verde-home-shell{max-width:1120px!important}
@media(max-width:600px){
 .site-header.verde-header{width:calc(100% - 20px)!important}
}

/* 2026.27: allineamento uniforme di testata, foto, menu e foglio. */
:root{--oss-page-width:1090px}
.site-header.verde-header{width:calc(100% - 30px)!important;max-width:var(--oss-page-width)!important;margin:0 auto!important;padding:0!important;box-sizing:border-box!important}
.verde-header .ossanesga-date-strip.wrap,.verde-header .verde-brand.verde-brand-photo,.verde-header .main-nav{width:100%!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
.verde-header .verde-brand.verde-brand-photo>img{width:100%!important;height:auto!important;max-width:100%!important;display:block!important;object-fit:contain!important}
.verde-home-shell{width:calc(100% - 30px)!important;max-width:var(--oss-page-width)!important;padding:0!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
/* Anche le pagine articolo e archivio seguono gli stessi bordi. */
main.content.wrap,.content.wrap,.ossanesga-category-archive,.site-footer>.wrap{max-width:var(--oss-page-width)!important;box-sizing:border-box!important}
.verde-header .main-nav{overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:thin}
.verde-header .main-nav ul.menu,.verde-header .main-nav>ul,.verde-header .main-nav .menu-primary-container>ul{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:0!important;width:max-content!important;min-width:100%!important;margin:0!important;padding:0!important;list-style:none!important}
.verde-header .main-nav ul.menu>li,.verde-header .main-nav>ul>li,.verde-header .main-nav .menu-primary-container>ul>li{flex:0 0 auto!important;white-space:nowrap!important}
.verde-header .main-nav ul.menu>li>a,.verde-header .main-nav>ul>li>a,.verde-header .main-nav .menu-primary-container>ul>li>a{font-size:clamp(10px,1.1vw,13px)!important;padding:15px clamp(6px,.85vw,11px)!important;white-space:nowrap!important}
@media(max-width:800px){.verde-header .main-nav ul.menu,.verde-header .main-nav>ul,.verde-header .main-nav .menu-primary-container>ul{justify-content:flex-start!important}.verde-header .main-nav ul.menu>li>a,.verde-header .main-nav>ul>li>a{font-size:12px!important;padding:12px 10px!important}}
@media(max-width:600px){.site-header.verde-header,.verde-home-shell{width:calc(100% - 20px)!important}}

/* 2026.28: menu a riga singola, sottomenù visibili al passaggio del mouse. */
@media (hover:hover) and (pointer:fine){
 .site-header.verde-header .main-nav{overflow:visible!important;position:relative!important;z-index:500!important}
 .site-header.verde-header .main-nav li{position:relative!important}
 .site-header.verde-header .main-nav li>.sub-menu{display:none!important;position:absolute!important;top:100%!important;left:0!important;min-width:215px!important;width:max-content!important;max-width:300px!important;margin:0!important;padding:4px 0!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;background:#3e9554!important;box-shadow:0 8px 20px #0003!important;z-index:9999!important;white-space:normal!important}
 .site-header.verde-header .main-nav li:hover>.sub-menu,.site-header.verde-header .main-nav li:focus-within>.sub-menu{display:flex!important}
 .site-header.verde-header .main-nav .sub-menu li{display:block!important;width:100%!important;white-space:normal!important}
 .site-header.verde-header .main-nav .sub-menu li>a{display:block!important;width:100%!important;padding:12px 16px!important;font-size:13px!important;white-space:normal!important;color:#fff!important;background:#3e9554!important;text-align:left!important}
 .site-header.verde-header .main-nav .sub-menu li>a:hover,.site-header.verde-header .main-nav .sub-menu li>a:focus-visible{background:#286c3c!important;color:#fff!important}
 .site-header.verde-header .main-nav .sub-menu .sub-menu{top:0!important;left:100%!important}
}
/* Il menu resta su una riga anche con i sottomenu. */
.site-header.verde-header .main-nav>ul,.site-header.verde-header .main-nav>div>ul{flex-wrap:nowrap!important}
@media (hover:none), (pointer:coarse){
 .site-header.verde-header .main-nav{overflow-x:auto!important;overflow-y:auto!important}
 .site-header.verde-header .main-nav li:focus-within>.sub-menu{display:flex!important;position:static!important}
}


/* Banner Contatti originale, nella barra laterale sopra il Notiziario. */
.verde-columns .contatti-widget{padding:0!important;overflow:hidden}
.ossanesga-contatti-banner{display:block;line-height:0;text-decoration:none}
.ossanesga-contatti-banner img{display:block;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important}
.ossanesga-contatti-banner:hover img{filter:brightness(1.05)}

/* 2026.35: titoli degli articoli bianchi nei riepiloghi di categoria. */
.ossanesga-category-archive .ossanesga-archive-card .ossanesga-archive-post-title{background:#286c3c!important;padding:12px 16px!important;margin:-1px -1px 13px!important;border-radius:3px 3px 0 0!important;color:#fff!important}
.ossanesga-category-archive .ossanesga-archive-card .ossanesga-archive-post-title a,.ossanesga-category-archive .ossanesga-archive-card .ossanesga-archive-post-title a:visited,.ossanesga-category-archive .ossanesga-archive-card .ossanesga-archive-post-title a:hover,.ossanesga-category-archive .ossanesga-archive-card .ossanesga-archive-post-title a:focus{color:#fff!important;text-decoration:none!important}
.ossanesga-category-archive .ossanesga-archive-card .ossanesga-archive-post-title a:hover{text-decoration:underline!important}

/* 2026.39: stesso sfondo verde della versione natalizia 2026.38. */
html,body{background:#d5e8d0!important}
body{background-color:#d5e8d0!important}
