/* ============================================================
   HEADER COMPLETO HOME SSS 2.0
   Struttura e sottomenu recuperati dalla Home SSS 2.0.
   Il logo esteso allegato Ã¨ mantenuto nel rapporto originale.
   ============================================================ */
body.bel-sss-shell #masthead,
body.bel-sss-shell header.site-header,
body.bel-sss-shell .site-header:not(.bel-s6-header),
body.bel-sss-shell .main-header-bar,
body.bel-sss-shell .ast-primary-header-bar,
body.bel-sss-shell .elementor-location-header{display:none!important}
body.bel-sss-shell{margin-top:0!important}
body.bel-sss-shell .site-content{padding-top:0!important}

.bel-s6-topbar,.bel-s6-header{--s6-blue:#0798cc;--s6-blue-dark:#0577a2;--s6-red:#e41f2b;--s6-ink:#15202a;--s6-muted:#66717d;--s6-soft:#f4f7f9;--s6-line:#dce4e9;--s6-shadow:0 14px 38px rgba(17,40,57,.11);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}
.bel-s6-topbar *,.bel-s6-header *{box-sizing:border-box}
.bel-s6-wrap{width:min(1420px,calc(100% - 40px));margin:auto}
.bel-s6-topbar{background:#0f1720;color:#dbe5eb;font-size:13px;padding:8px 0}
.bel-s6-topbar-inner{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.bel-s6-topbar strong{color:#fff}
.bel-s6-header{position:sticky;top:0;z-index:9999;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid rgba(220,228,233,.9)}
.bel-s6-header-inner{min-height:86px;display:flex;align-items:center;gap:18px}
.bel-s6-brand{display:flex;align-items:center;flex:0 0 auto;width:238px;max-width:22%;text-decoration:none!important}
.bel-s6-logo{display:block;width:100%!important;height:auto!important;aspect-ratio:auto 1351/412;max-height:72px;object-fit:contain;object-position:left center}
.bel-s6-nav{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex:1;min-width:0}
.bel-s6-nav-item{position:relative}
.bel-s6-nav-link{display:flex;align-items:center;gap:7px;padding:14px 8px;border-radius:11px;font-size:13.2px;font-weight:750;white-space:nowrap;color:var(--s6-ink)!important;text-decoration:none!important}
.bel-s6-nav-link:hover,.bel-s6-nav-item.open>.bel-s6-nav-link{background:var(--s6-soft);color:var(--s6-blue-dark)!important}
.bel-s6-caret{font-size:10px;opacity:.65}
.bel-s6-submenu{position:absolute;left:0;top:calc(100% + 5px);min-width:235px;padding:9px;background:#fff;border:1px solid var(--s6-line);border-radius:15px;box-shadow:var(--s6-shadow);display:none}
.bel-s6-nav-item:hover .bel-s6-submenu,.bel-s6-nav-item.open .bel-s6-submenu{display:block}
.bel-s6-submenu a{display:block;padding:10px 12px;border-radius:10px;font-size:14px;color:var(--s6-ink)!important;text-decoration:none!important;white-space:nowrap}
.bel-s6-submenu a:hover{background:var(--s6-soft);color:var(--s6-blue-dark)!important}
.bel-s6-mobile-toggle{display:none;border:0;width:42px;height:42px;border-radius:11px;background:var(--s6-soft);font-size:20px;cursor:pointer;color:var(--s6-ink)}

@media(max-width:1180px){
  .bel-s6-header-inner{position:relative}
  .bel-s6-brand{width:220px;max-width:70%}
  .bel-s6-logo{max-height:67px}
  .bel-s6-nav{position:absolute;top:86px;left:-20px;right:-20px;background:#fff;border-bottom:1px solid var(--s6-line);display:none;flex-direction:column;align-items:stretch;padding:12px 20px;box-shadow:var(--s6-shadow);max-height:calc(100vh - 100px);overflow:auto}
  .bel-s6-nav.open{display:flex}
  .bel-s6-nav-link{justify-content:space-between}
  .bel-s6-submenu{position:static;box-shadow:none;border:0;border-left:2px solid #d8e7ed;border-radius:0;margin:0 0 4px 13px;padding:4px 0 4px 8px}
  .bel-s6-nav-item:hover .bel-s6-submenu{display:none}
  .bel-s6-nav-item.open .bel-s6-submenu{display:block}
  .bel-s6-mobile-toggle{display:block;margin-left:auto;flex:0 0 42px}
}
@media(max-width:620px){
  .bel-s6-wrap{width:min(100% - 24px,1180px)}
  .bel-s6-topbar{display:none}
  .bel-s6-header-inner{min-height:72px;gap:12px}
  .bel-s6-brand{width:190px;max-width:72%}
  .bel-s6-logo{max-height:58px}
  .bel-s6-nav{top:72px;left:-12px;right:-12px}
}

/* Il contenuto del plugin si allinea alla stessa larghezza della Home SSS. */
.bel-app{max-width:1240px;margin:0 auto;padding:24px 18px 55px}
.bel-bando-standalone{margin:0;background:#fff}
.bel-bando-standalone .bel-single-wrap{margin-top:36px}

@media(max-width:820px){
  .bel-sss-header-inner{min-height:68px;padding:7px 14px}
  .bel-sss-logo-img{height:48px!important;max-width:170px!important}
  .bel-sss-nav{display:none}
  .bel-sss-mobile-menu{display:block}
}

.bel-app,.bel-single-wrap{--bel:#174d79;--bel2:#0d3557;--line:#d9e2ea;--muted:#637381;--soft:#f5f8fa;--green:#e0f3e5;--red:#ffe2e2;--new:#d71920;--new-dark:#a80f15;font-family:inherit;color:#17212b}

/* Barra filtri: una sola riga sui desktop, compatta e ordinata. */
.bel-filters{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 5px 22px rgba(25,50,70,.06);overflow-x:auto;scrollbar-width:thin}
.bel-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.bel-field label{font-size:10px;line-height:1.15;font-weight:800;color:#415466;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.bel-field input,.bel-field select{width:100%;min-width:0;min-height:40px;height:40px;border:1px solid #cbd6df;border-radius:7px;padding:6px 8px;background:#fff;color:#17212b;font-size:12px}
.bel-search{flex:1.55 1 165px;min-width:145px}
.bel-region-field{flex:1.05 1 128px;min-width:112px}
.bel-date-field{flex:.82 1 116px;min-width:106px}
.bel-within-field{flex:.70 1 100px;min-width:92px}
.bel-sort-field{flex:1.15 1 155px;min-width:142px}
.bel-dir-field{flex:.72 1 108px;min-width:100px}
.bel-checkbox{flex:0 0 112px;justify-content:flex-end;padding-bottom:9px}
.bel-checkbox label{font-size:11px;text-transform:none;letter-spacing:0;display:flex;gap:6px;align-items:center;white-space:nowrap}
.bel-checkbox input{width:auto;min-height:0;height:auto;margin:0}
.bel-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding-bottom:0;white-space:nowrap}
.bel-button{display:inline-block;border:0;border-radius:7px;background:var(--bel);color:#fff!important;text-decoration:none;padding:10px 14px;min-height:40px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.bel-button:hover{background:var(--bel2)}
.bel-reset{color:var(--bel);font-size:11px;font-weight:700;white-space:nowrap}

.bel-results-head{display:flex;justify-content:space-between;gap:15px;margin:22px 2px 12px;color:var(--muted)}
.bel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.bel-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:20px;display:flex;flex-direction:column;min-height:300px;box-shadow:0 4px 16px rgba(25,50,70,.05);transition:.18s}
.bel-card:hover{transform:translateY(-2px);box-shadow:0 9px 28px rgba(25,50,70,.1)}
.bel-card.is-expired{opacity:.7}
.bel-card-meta{display:flex;gap:7px;flex-wrap:nowrap;align-items:center;white-space:nowrap;min-width:0}
.bel-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;line-height:1.1;font-weight:800;background:#e9f1f7;color:#174d79}
.bel-source{background:#f1edf8;color:#5c3b87}
/* NEW: rosso, compatto, sempre sulla stessa riga delle altre etichette. */
.bel-new{background:var(--new)!important;color:#fff!important;border:1px solid var(--new-dark);box-shadow:0 2px 7px rgba(215,25,32,.22);white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;flex:0 0 auto;text-transform:uppercase;letter-spacing:.04em;padding:5px 8px;font-size:10px}
.bel-new:before{content:none}
.bel-card h3{font-size:20px;line-height:1.25;margin:14px 0 9px}
.bel-card h3 a{color:#17212b;text-decoration:none}
.bel-summary{color:#526575;line-height:1.55;margin:0 0 14px}
.bel-issuer{margin:0 0 14px;padding:10px 12px;background:#f7f9fb;border-radius:8px;border:1px solid #edf1f4}
.bel-issuer span{display:block;font-size:10px;line-height:1.2;text-transform:uppercase;letter-spacing:.05em;color:#728391;font-weight:800;margin-bottom:3px}
.bel-issuer strong{display:block;font-size:13px;line-height:1.35;color:#2d4150}
.bel-issuer strong+span{margin-top:8px}
.bel-project-maker{margin-top:28px;padding:22px;border:2px solid #dce7ef;border-radius:14px;background:#f8fbfd}.bel-project-maker h2{margin:0 0 8px;color:#063f6f}.bel-project-maker p{margin:0 0 16px}.bel-project-controls{display:flex;gap:12px;align-items:center}.bel-project-controls select{flex:1;min-width:0;height:46px;border:1px solid #aebfca;border-radius:7px;background:#fff;padding:0 12px;font-size:15px}.bel-project-controls .bel-button{height:46px;white-space:nowrap}.bel-project-status{margin-top:10px;font-size:13px;color:#526b7b}.bel-project-status.is-error{color:#b42318;font-weight:700}.bel-project-modal[hidden]{display:none}.bel-project-modal{position:fixed;z-index:999999;inset:0;background:rgba(5,20,31,.72);display:flex;align-items:center;justify-content:center;padding:24px}.bel-project-dialog{position:relative;width:min(900px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.35)}.bel-project-dialog h2{margin:0 42px 15px 0;color:#063f6f}.bel-project-profile{padding:14px;background:#f4f7f9;border-left:4px solid #1687bd}.bel-project-dialog ol{padding-left:25px}.bel-project-dialog li{margin:0 0 8px;line-height:1.45}.bel-project-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:32px;cursor:pointer}.bel-project-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.bel-modal-open{overflow:hidden}
@media(max-width:700px){.bel-project-controls{align-items:stretch;flex-direction:column}.bel-project-controls select,.bel-project-controls .bel-button{width:100%}.bel-project-dialog{padding:20px}.bel-project-actions{flex-direction:column}.bel-project-actions .bel-button{width:100%;text-align:center}}
.bel-project-profile h3,.bel-project-section h3{margin:0 0 9px;color:#063f6f}.bel-project-profile p,.bel-project-section p{line-height:1.58}.bel-project-section{padding:18px 0;border-bottom:1px solid #dce5eb}.bel-project-section:last-child{border-bottom:0}.bel-project-section ul{padding-left:24px}.bel-project-section li{margin-bottom:7px}
.bel-project-status.is-loading{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:8px;background:#eef7fc;color:#063f6f}.bel-project-spinner{width:22px;height:22px;flex:0 0 22px;border:3px solid #b9dceb;border-top-color:#0879ad;border-radius:50%;animation:belProjectSpin .8s linear infinite}@keyframes belProjectSpin{to{transform:rotate(360deg)}}
.bel-deadline{margin-top:auto;border-top:1px solid #edf1f4;padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.bel-days{padding:4px 8px;background:#eef3f6;border-radius:7px;font-size:12px;font-weight:800}
.bel-days.urgent{background:var(--red);color:#a32323}
.bel-card-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:13px;font-size:12px;color:var(--muted)}
.bel-detail-link{font-size:13px;font-weight:800;color:var(--bel);white-space:nowrap}
.bel-empty{padding:35px;border:1px dashed #bccbd6;border-radius:12px;text-align:center;color:var(--muted)}
.bel-pagination ul{display:flex;list-style:none;gap:7px;padding:0;margin:25px 0}
.bel-pagination a,.bel-pagination span{display:block;padding:7px 11px;border:1px solid var(--line);border-radius:6px;text-decoration:none}
.bel-pagination .current{background:var(--bel);color:#fff}

.bel-single-wrap{max-width:1100px;margin:45px auto;padding:0 20px}
.bel-single{background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 8px 30px rgba(25,50,70,.07)}
.bel-single-top{display:flex;justify-content:space-between;gap:20px;align-items:center}
.bel-back{font-weight:700;color:var(--bel)}
.bel-single h1{font-size:clamp(30px,4vw,48px);line-height:1.08;margin:24px 0 15px}
.bel-lead{font-size:18px;line-height:1.65;color:#435667;max-width:900px}
.bel-deadline-hero{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;margin:28px 0;padding:18px 22px;border-radius:12px;background:#edf5fa}
.bel-deadline-hero span{text-transform:uppercase;font-weight:800;font-size:12px;color:#536a79}
.bel-deadline-hero strong{font-size:22px;color:var(--bel2)}
.bel-deadline-hero em{font-style:normal;font-weight:800}
.bel-deadline-hero.urgent{background:var(--red)}
.bel-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.bel-detail-item{padding:16px 18px;background:#fff}
.bel-detail-item span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#697d8c;font-weight:800;margin-bottom:6px}
.bel-detail-item strong{display:block;font-size:15px;line-height:1.45}
.bel-info-box{margin-top:25px;padding:22px;border-left:4px solid var(--bel);background:var(--soft);border-radius:8px}
.bel-info-box h2{font-size:19px;margin:0 0 8px}
.bel-info-box p{margin:0;line-height:1.6}
.bel-official{margin-top:30px;border-top:1px solid var(--line);padding-top:25px}
.bel-button-large{font-size:16px;padding:14px 22px}
.bel-official p{color:var(--muted);font-size:13px;margin-top:10px}

@media(max-width:950px){
  .bel-filters{overflow-x:auto;padding-bottom:16px}
  .bel-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .bel-filters{display:grid;grid-template-columns:1fr 1fr;overflow:visible;align-items:end;gap:10px}
  .bel-field,.bel-search,.bel-region-field,.bel-date-field,.bel-within-field,.bel-sort-field,.bel-dir-field{min-width:0;width:auto;flex:none}
  .bel-search,.bel-region-field,.bel-sort-field{grid-column:1/-1}
  .bel-checkbox{grid-column:1/2;padding-bottom:8px;width:auto;flex:none}
  .bel-actions{grid-column:2/3;justify-content:flex-end}
  .bel-grid,.bel-detail-grid{grid-template-columns:1fr}
  .bel-results-head,.bel-single-top,.bel-deadline-hero{display:flex;flex-direction:column;align-items:flex-start}
  .bel-single{padding:22px}
  .bel-card-footer{align-items:flex-start;flex-direction:column}
}
/* Mantiene le tre etichette sulla stessa riga anche con territori lunghi. */
.bel-card-meta{max-width:100%;overflow:hidden}
.bel-card-meta .bel-region,.bel-card-meta .bel-source{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
.bel-card-meta .bel-new{flex:0 0 auto}
\n\n/* ============================================================\n   MASTER SSS - FORM INLINE (NO IFRAME)\n   La pagina masteriscrizioni viene renderizzata come frammento nativo.\n   ============================================================ */\n.bel-master-inline{width:100%;max-width:100%;min-height:0;overflow:visible;position:relative}\n.bel-master-inline iframe[src*=\"masteriscrizioni\"]{display:none!important}\n.bel-master-inline #wpadminbar,.bel-master-inline .ab-top-menu,.bel-master-inline .ab-sub-wrapper{display:none!important}\n.bel-master-inline .elementor,.bel-master-inline .elementor-page,.bel-master-inline .elementor-section-wrap{width:100%;max-width:100%}\n.bel-master-inline form{max-width:100%}\n@media(max-width:767px){.bel-master-inline{overflow-x:hidden}}\n

/* v5.2.1 â€“ data di pubblicazione ufficiale nella scheda sintetica */
.bel-publication{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;margin-bottom:4px;font-size:13px;color:#5b6675}
.bel-publication strong{color:#162436;font-weight:800}

/* v0.2.4 — layout ampio, due schede per riga e controlli più leggibili. */
body.bel-sss-shell .site-content .ast-container,
body.bel-sss-shell .site-content .site-main,
body.bel-sss-shell .entry-content{width:100%!important;max-width:none!important;padding-left:0!important;padding-right:0!important}
.bel-app{width:100%;max-width:1780px;padding:26px clamp(18px,3vw,54px) 60px}
.bel-filters{display:flex;flex-wrap:wrap;overflow:visible;gap:12px 10px;padding:16px 18px}
.bel-search{flex:2 1 280px;min-width:250px}
.bel-region-field{flex:1.25 1 190px;min-width:170px}
.bel-date-field{flex:1 1 145px;min-width:135px}
.bel-within-field{flex:1 1 135px;min-width:125px}
.bel-sort-field{flex:1.25 1 190px;min-width:170px}
.bel-dir-field{flex:1 1 135px;min-width:125px}
.bel-checkbox{flex:0 0 130px}
.bel-field input,.bel-field select{font-size:13px;padding:7px 10px}
.bel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.bel-card{min-height:0;padding:22px 24px;border:2px solid #b8cbd9;box-shadow:0 7px 22px rgba(25,50,70,.09)}
.bel-card:hover{border-color:#174d79;box-shadow:0 12px 32px rgba(23,77,121,.16)}
.bel-card h3{font-size:19px;line-height:1.23;margin:13px 0 7px}
.bel-summary{font-size:14px;line-height:1.45;margin-bottom:10px}
.bel-card-meta{overflow:visible;gap:9px;flex-wrap:wrap;white-space:normal}
.bel-card-meta .bel-region,.bel-card-meta .bel-source{flex:0 1 auto;max-width:100%;overflow:visible;text-overflow:clip;white-space:normal}
.bel-badge{padding:7px 12px;font-size:12px;text-decoration:none!important;border:1px solid #bdd2e0;box-shadow:0 2px 6px rgba(25,50,70,.08);cursor:pointer}
.bel-badge:hover,.bel-badge:focus{filter:brightness(.96);transform:translateY(-1px);box-shadow:0 4px 10px rgba(25,50,70,.15)}
.bel-source{border-color:#d6c8e8}
.bel-new{padding:7px 11px;font-size:11px}
.bel-issuer{margin:0 0 7px;padding:7px 10px}
.bel-issuer span{font-size:9px;margin-bottom:1px}
.bel-issuer strong{font-size:12px}
.bel-publication{margin:3px 0;font-size:12px;line-height:1.25}
.bel-deadline{margin-top:4px;padding-top:8px;font-size:13px}
.bel-days{padding:4px 7px;font-size:11px}
.bel-card-footer{margin-top:7px;font-size:11px}
.bel-detail-link{font-size:12px}
@media(max-width:820px){
  .bel-app{padding-left:16px;padding-right:16px}
  .bel-grid{grid-template-columns:1fr;gap:18px}
}
@media(max-width:640px){
  .bel-filters{display:grid;grid-template-columns:1fr 1fr}
  .bel-search,.bel-region-field,.bel-sort-field{grid-column:1/-1}
  .bel-card{padding:18px;border-width:2px}
}

/* v0.2.5 — testata armonizzata con il sito: niente fascia scura o titolo duplicato. */
body.bel-sss-shell .bel-s6-topbar{display:none!important}
body.bel-sss-shell .entry-header,
body.bel-sss-shell .page-header,
body.bel-sss-shell .entry-title{display:none!important}
body.bel-sss-shell .site-content,
body.bel-sss-shell .site-main,
body.bel-sss-shell article.page,
body.bel-sss-shell .entry-content{margin-top:0!important;padding-top:0!important}
body.bel-sss-shell .bel-s6-header{margin-top:0;border-top:0}

/* v0.2.6 — misure rilevate dalla testata effettiva della home page. */
body.bel-sss-shell #primary{margin-top:0!important;margin-bottom:0!important}
body.bel-sss-shell article.page{padding:0!important;margin:0!important}
body.bel-sss-shell .entry-content{width:100%!important;margin:0!important}
body.bel-sss-shell .bel-s6-header{width:100%;min-height:111px}
body.bel-sss-shell .bel-s6-wrap{width:calc(100% - 36px);max-width:none;margin:0 18px}
body.bel-sss-shell .bel-s6-header-inner{height:111px;min-height:111px;gap:18px}
body.bel-sss-shell .bel-s6-brand{width:215px;max-width:none;height:111px;padding:0;justify-content:flex-start}
body.bel-sss-shell .bel-s6-logo{width:205px!important;height:111px!important;max-width:205px!important;max-height:111px!important;object-fit:contain;object-position:left center}
@media(max-width:1180px){
  body.bel-sss-shell .bel-s6-header,
  body.bel-sss-shell .bel-s6-header-inner{height:86px;min-height:86px}
  body.bel-sss-shell .bel-s6-brand{width:160px;height:86px}
  body.bel-sss-shell .bel-s6-logo{width:150px!important;height:81px!important;max-width:150px!important;max-height:81px!important}
}
@media(max-width:620px){
  body.bel-sss-shell .bel-s6-wrap{width:calc(100% - 24px);margin:0 12px}
  body.bel-sss-shell .bel-s6-header,
  body.bel-sss-shell .bel-s6-header-inner{height:76px;min-height:76px}
  body.bel-sss-shell .bel-s6-brand{width:138px;height:76px}
  body.bel-sss-shell .bel-s6-logo{width:132px!important;height:71px!important;max-width:132px!important;max-height:71px!important}
}

/* v0.2.7 — tre bandi per riga sui desktop. */
.bel-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:1180px){.bel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.bel-grid{grid-template-columns:1fr}}
