
/* FMR News - Only preview additions, no change to production CSS */
.news-menu-link{color:var(--blue)!important;font-weight:800!important}
.news-demo-ribbon{background:#eaf3fb;border-bottom:1px solid #cddfeb;font-size:12px;color:#1c4b78;font-weight:670}
.news-demo-ribbon .container{padding:9px 0}
.news-hero{padding:72px 0 60px;background:linear-gradient(125deg,#0c2745 0%,#123e69 62%,#225e92 100%);color:#fff;position:relative;isolation:isolate;overflow:hidden}
.news-hero:after{content:'';pointer-events:none;position:absolute;width:580px;height:580px;top:-350px;right:-80px;background:radial-gradient(circle,rgba(151,204,246,.23),transparent 66%);z-index:-1}
.news-hero-inner{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.65fr);align-items:center;gap:60px}
.news-kicker{font-weight:800;letter-spacing:.15em;text-transform:uppercase;font-size:11px;color:#a9d6ff}
.news-hero h1{font-size:clamp(34px,4.4vw,62px);max-width:800px;line-height:1.1;letter-spacing:-.035em;margin:15px 0 20px;color:#fff}
.news-hero p{color:#dce9f5;font-size:17px;max-width:710px;line-height:1.7;margin:0}
.news-hero-right{border:1px solid rgba(255,255,255,.21);background:rgba(255,255,255,.09);backdrop-filter:blur(12px);border-radius:21px;padding:26px;box-shadow:0 18px 45px rgba(0,0,0,.08)}
.news-hero-right strong{font-size:16px;display:block;color:#fff;margin-bottom:9px}
.news-hero-right p{font-size:14px;line-height:1.6}
.news-hero-right .mini-list{margin:17px 0 0;padding:0;list-style:none;display:grid;gap:9px;font-size:12px;color:#f3f7fd}
.news-hero-right .mini-list li:before{content:'✓';color:#ffd479;font-weight:900;margin-right:9px}
.news-content{padding:54px 0 95px;background:#f7f9fc}
.news-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.news-heading-row h2{margin:0;font-size:clamp(26px,2.8vw,36px);letter-spacing:-.03em;line-height:1.2;color:#12345a}
.news-subtitle{color:#637489;margin:8px 0 0;max-width:730px}
.news-input{height:44px;border:1px solid #d8e3ee;border-radius:11px;padding:0 14px;background:#fff;font-size:14px;width:260px;color:#24374d}
.news-filter-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:26px}
.news-chip{border:1px solid #d6e2ed;background:#fff;border-radius:999px;padding:10px 16px;color:#385471;font-size:12px;font-weight:780;cursor:pointer}
.news-chip:hover,.news-chip[aria-pressed=true]{background:#153f6c;border-color:#153f6c;color:#fff}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.news-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e0e8f0;border-radius:19px;overflow:hidden;box-shadow:0 10px 30px rgba(18,52,90,.045);transition:transform .18s,box-shadow .18s}
.news-card:hover{transform:translateY(-3px);box-shadow:0 20px 36px rgba(18,52,90,.10)}
.news-card-art{height:185px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.news-card-art.kind-terzo-settore{background:linear-gradient(130deg,#cee8fa,#edf8ff)}
.news-card-art.kind-computo{background:linear-gradient(130deg,#d0e1f5,#eff5fb)}
.news-card-art.kind-edilizia{background:linear-gradient(130deg,#d8e5f2,#f0f5fa)}
.news-card-art svg{width:100%;height:100%}
.news-card-art img{width:100%;height:100%;display:block;object-fit:cover}
.news-card-body{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}
.news-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:#687c90;font-size:11px;font-weight:750}
.news-topic{background:#eaf3fc;border-radius:999px;color:#1c598a;padding:5px 10px;white-space:nowrap}
.news-card h3{font-size:19px;line-height:1.34;letter-spacing:-.02em;color:#142f4f;margin:0}
.news-card p{color:#617286;font-size:13px;line-height:1.67;margin:0;flex:1}
.news-source{font-size:12px;color:#6f8293;border-top:1px solid #edf0f4;padding-top:13px;margin-top:8px}
.news-source strong{color:#243d59}
.news-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:7px}
.news-product{font-size:12px;font-weight:820;color:#174f80;background:#eaf4fa;padding:6px 11px;border-radius:999px}
.news-more{font-weight:800;font-size:13px;color:#2573b0!important}
.news-more:hover{text-decoration:underline}
.news-noitems{background:#fff;padding:34px;border-radius:16px;color:#49627e;border:1px solid #dae5ef}
.news-note{margin:35px 0 0;padding:17px 20px;background:#eaf3fc;border:1px solid #d1e3f0;border-radius:13px;color:#355979;font-size:13px}
.article-shell{background:#f7f9fc;padding:50px 0 90px}
.article-crumb{font-size:13px;margin-bottom:30px;color:#60768c}
.article-crumb a{color:#2a79b7;font-weight:800}
.article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
.article-body{padding:38px 44px;background:white;border:1px solid #e0e8f0;border-radius:20px;box-shadow:0 9px 32px rgba(18,52,90,.05)}
.article-body h1{font-size:clamp(30px,3.4vw,48px);line-height:1.18;letter-spacing:-.035em;color:#0d2948;margin:14px 0 18px}
.article-lead{color:#536b81;font-size:18px;line-height:1.72;border-bottom:1px solid #e5edf4;padding-bottom:26px;margin-bottom:25px}
.article-body h2{font-size:23px;line-height:1.33;margin:29px 0 12px;color:#153858}
.article-body p{font-size:15px;line-height:1.85;color:#344c65;margin:0 0 15px}
.article-side{background:white;border:1px solid #e1eaf2;border-radius:18px;padding:25px;position:sticky;top:125px}
.article-side h3{font-size:17px;color:#15385c;margin:0 0 15px}
.article-side p{font-size:13px;line-height:1.7;color:#5c7286;margin:8px 0 16px}
.article-side a.button-primary{display:block;background:#174f84;color:#fff;text-align:center;border-radius:10px;padding:12px 8px;font-weight:800;font-size:13px}
.article-source-card{border-top:1px solid #e5edf4;margin-top:22px;padding-top:18px;font-size:13px;color:#5b7185;overflow-wrap:anywhere}
.article-source-card a{color:#286ea8;font-weight:750;text-decoration:underline}
.article-banner{margin:25px 0 4px;height:245px;border-radius:15px;overflow:hidden}
.article-banner .news-card-art{height:100%}
.news-demo-back{display:inline-flex;gap:6px;align-items:center;color:#2672b3;font-size:13px;font-weight:800}
.preview-private-badge{color:#1f639a;font-size:12px;font-weight:800;background:#e5f1fb;border-radius:999px;padding:6px 11px}
/* Private editorial demo */
.editor-body{background:#f4f7fb;min-height:100vh}
.editor-header{height:82px;background:#fff;border-bottom:1px solid #e1e9f0}
.editor-head-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:22px}
.editor-head-inner img{width:150px;height:54px;object-fit:contain}
.editor-heading{display:flex;align-items:center;gap:21px}
.editor-sep{height:32px;width:1px;background:#dbe5ee}
.editor-heading strong{font-size:16px;color:#163758}
.editor-heading small{display:block;font-size:11px;color:#697d8f;font-weight:500}
.editor-page{padding:50px 0 90px}
.editor-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}
.editor-intro h1{font-size:clamp(30px,3.3vw,45px);letter-spacing:-.032em;margin:10px 0 9px;color:#113254}
.editor-intro p{max-width:700px;color:#5e7388;margin:0;font-size:14px}
.editor-pill{font-size:11px;font-weight:800;letter-spacing:.06em;color:#165e99;background:#e4f1fb;border-radius:999px;padding:7px 12px}
.editor-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:26px}
.editor-counter{background:white;border:1px solid #dde7ef;border-radius:16px;padding:22px 24px}
.editor-counter span{display:block;color:#6a8094;font-size:12px;font-weight:750}
.editor-counter strong{font-size:34px;color:#123a60;line-height:1.35}
.editor-list-wrap{background:white;border:1px solid #e1e9f0;border-radius:18px;padding:23px}
.editor-tabs{display:flex;gap:7px;border-bottom:1px solid #e6edf4;padding-bottom:18px;margin-bottom:20px;flex-wrap:wrap}
.editor-tab{border:0;padding:10px 15px;border-radius:9px;background:#f2f6fa;color:#50708f;font-size:13px;font-weight:800;cursor:pointer}
.editor-tab[aria-selected=true]{background:#174f80;color:white}
.editor-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;padding:24px 8px;border-bottom:1px solid #e7eef4;align-items:center}
.editor-item:last-child{border-bottom:0}
.editor-item h3{font-size:19px;line-height:1.4;color:#173756;margin:10px 0 7px}
.editor-item p{font-size:13px;color:#60768a;margin:0;line-height:1.6}
.editor-item-meta{font-size:11px;color:#748698;display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.editor-item-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.editor-btn{border:1px solid #d5e1eb;background:white;border-radius:10px;font-size:12px;font-weight:800;padding:10px 12px;color:#26557e;cursor:pointer}
.editor-btn.primary{background:#194f7d;border-color:#194f7d;color:white}
.editor-btn.danger{color:#9e3641;background:#fff9fa;border-color:#eed5da}
.editor-btn:hover{filter:brightness(.96)}
.editor-reminder{margin-top:23px;padding:17px 21px;border:1px solid #d5e4ef;background:#ecf5fb;color:#46637a;border-radius:13px;font-size:13px}
.editor-modal{position:fixed;inset:0;background:rgba(10,28,46,.57);z-index:200;display:grid;place-items:center;padding:18px}
.editor-modal[hidden]{display:none}
.editor-modal-box{background:white;border-radius:18px;padding:27px;max-width:690px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.23)}
.editor-modal-box h2{font-size:24px;margin:0 0 18px;color:#153858}
.editor-form-grid{display:grid;gap:12px}
.editor-form-grid label{font-size:12px;font-weight:800;color:#47627d;display:grid;gap:5px}
.editor-form-grid input,.editor-form-grid textarea{width:100%;border:1px solid #d5e2ee;padding:12px;border-radius:9px;font-size:14px;color:#1f3c59;font-family:inherit}
.editor-form-grid textarea{min-height:100px;resize:vertical}
.editor-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:17px}
.editor-toast{position:fixed;right:24px;bottom:24px;background:#173c61;color:white;padding:13px 18px;border-radius:12px;box-shadow:0 12px 25px rgba(0,0,0,.14);z-index:250;font-size:13px}
.editor-toast[hidden]{display:none}
.home-preview-intro{padding:19px 0;background:#e9f3fc;border-bottom:1px solid #cfe1f1}
.home-preview-intro .container{font-size:13px;color:#244f78}
.home-news{padding:75px 0 85px;background:#f7f9fc}
.home-news .news-heading-row{align-items:flex-end}
.home-news .news-heading-row a{font-size:13px;color:#1d639e;font-weight:800}
@media(max-width:940px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.news-hero-inner{grid-template-columns:1fr;gap:32px}.article-wrap{grid-template-columns:1fr}.article-side{position:static}.editor-item{grid-template-columns:1fr}.editor-item-actions{justify-content:flex-start}}
@media(max-width:620px){.news-content{padding:40px 0 65px}.news-hero{padding:52px 0}.news-grid{grid-template-columns:1fr}.news-hero h1{font-size:37px}.news-heading-row{align-items:stretch;flex-direction:column}.news-input{width:100%}.article-shell{padding:27px 0 60px}.article-body{padding:27px 22px}.article-body h1{font-size:31px}.article-banner{height:195px}.editor-intro{align-items:flex-start;flex-direction:column}.editor-counters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.editor-counter{padding:14px}.editor-counter strong{font-size:27px}.editor-counter span{font-size:10px}.editor-page{padding:30px 0}.editor-heading{gap:10px}.editor-head-inner img{width:102px}.editor-heading strong{font-size:12px}.editor-head-inner .editor-pill{display:none}.editor-list-wrap{padding:14px}.news-card-art{height:165px}}

/* Contrasto garantito anche con i fogli globali / bypass cache */
html body main .news-hero .news-hero-inner h1, html body main .news-hero h1.news-hero-title {color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;background:none!important;text-shadow:0 2px 12px rgba(0,0,0,.13)!important;opacity:1!important;}

/* FMR News: legibilità titolo hero garantita anche dai CSS condivisi */
html body main section.news-hero h1.news-hero-title,html body main section.news-hero h1.news-hero-title *{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;background:transparent!important;text-shadow:0 1px 2px rgba(0,0,0,.18)!important;}
.news-grid .news-card[hidden]{display:none!important}.news-noitems{padding:18px 0;color:#647c93}.news-source a{color:inherit;text-decoration:none}.news-footer-note{font-size:12px;color:#687c8c}.article-body section p{white-space:pre-line}
/* Archivio news: filtri lato server e paginazione accessibile. */
.news-filter-controls{display:grid;grid-template-columns:minmax(200px,2fr) minmax(160px,1.1fr) minmax(120px,.8fr) minmax(120px,.8fr);align-items:end;gap:10px 15px;margin:16px 0 22px;padding:22px;background:#fff;border:1px solid #dae6f0;border-radius:14px;box-shadow:0 6px 22px rgba(20,57,92,.06)}
.news-filter-controls>label{font-size:12px;font-weight:750;color:#486780;display:block;align-self:end;margin-bottom:-5px}
.news-filter-controls>.news-input{width:100%;min-width:0;margin:0;box-sizing:border-box;padding:12px 11px;font-family:inherit;min-height:45px}
.news-filter-controls>label:nth-of-type(1){grid-row:1;grid-column:1}.news-filter-controls>label:nth-of-type(2){grid-row:1;grid-column:2}.news-filter-controls>label:nth-of-type(3){grid-row:1;grid-column:3}.news-filter-controls>label:nth-of-type(4){grid-row:1;grid-column:4}
.news-filter-controls>input{grid-row:2;grid-column:1}.news-filter-controls>select:nth-of-type(1){grid-row:2;grid-column:2}.news-filter-controls>select:nth-of-type(2){grid-row:2;grid-column:3}.news-filter-controls>select:nth-of-type(3){grid-row:2;grid-column:4}
.news-filter-actions{display:flex;gap:14px;align-items:center;grid-column:1/-1;flex-wrap:wrap;margin-top:7px}.news-filter-actions .news-chip{cursor:pointer;background:#123f68;color:#fff;border:1px solid #123f68;padding:12px 19px}.news-reset-link{color:#236393;font-size:14px}.news-result-count{font-size:14px;color:#5e748b;margin:0 0 18px}.news-pager{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:34px 0 26px}.news-pager a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #cbdce9;border-radius:8px;padding:10px 13px;color:#174a75;background:white;min-width:42px}.news-pager a[aria-current=page]{background:#174a75;color:white;font-weight:750}.news-noitems{padding:28px 12px;text-align:center}
@media(max-width:860px){.news-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.news-filter-controls>label:nth-of-type(n),.news-filter-controls>input,.news-filter-controls>select:nth-of-type(n){grid-row:auto;grid-column:auto}.news-filter-controls>label{margin-bottom:0}.news-filter-controls>label:nth-of-type(1){grid-row:1;grid-column:1}.news-filter-controls>input{grid-row:2;grid-column:1}.news-filter-controls>label:nth-of-type(2){grid-row:1;grid-column:2}.news-filter-controls>select:nth-of-type(1){grid-row:2;grid-column:2}.news-filter-controls>label:nth-of-type(3){grid-row:3;grid-column:1}.news-filter-controls>select:nth-of-type(2){grid-row:4;grid-column:1}.news-filter-controls>label:nth-of-type(4){grid-row:3;grid-column:2}.news-filter-controls>select:nth-of-type(3){grid-row:4;grid-column:2}}
@media(max-width:540px){.news-filter-controls{grid-template-columns:1fr}.news-filter-controls>label:nth-of-type(n),.news-filter-controls>input,.news-filter-controls>select:nth-of-type(n){grid-column:1;grid-row:auto}.news-filter-controls>label:nth-of-type(1){grid-row:1}.news-filter-controls>input{grid-row:2}.news-filter-controls>label:nth-of-type(2){grid-row:3}.news-filter-controls>select:nth-of-type(1){grid-row:4}.news-filter-controls>label:nth-of-type(3){grid-row:5}.news-filter-controls>select:nth-of-type(2){grid-row:6}.news-filter-controls>label:nth-of-type(4){grid-row:7}.news-filter-controls>select:nth-of-type(3){grid-row:8}.news-filter-actions{grid-row:9}}

/* Condivisione notizie: azioni visibili su desktop e mobile. */
.news-bottom .news-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;width:100%;flex:1 1 100%}
.news-bottom .news-card-actions .news-share-button{margin-left:auto}
.news-share-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 11px;border:1px solid #cbddea;border-radius:9px;background:#f5f9fd;color:#235f90;font-family:inherit;font-weight:750;font-size:12px;line-height:1.2;cursor:pointer;white-space:nowrap;transition:background .18s,border-color .18s}
.news-share-button svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px}
.news-share-button:hover{background:#e9f3fb;border-color:#9dc5e3}
.news-share-button:focus-visible{outline:3px solid #64a4db;outline-offset:2px}
.news-share-button.is-copied{border-color:#9ccfbd;color:#1a6a53;background:#edf9f4}
.article-footer-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:30px}
.article-footer-actions .news-share-button{margin-left:auto}
@media(max-width:620px){.news-bottom .news-card-actions{align-items:center}.news-card-actions .news-more{min-width:0}}
