﻿
/* NCN 2026 — Notifiche nuove news */
.ncn-news-notice[hidden],
.ncn-news-notice-overlay[hidden]{display:none!important}

.ncn-news-notice{
    position:fixed;
    z-index:99970;
    right:18px;
    top:18px;
    width:min(360px,calc(100vw - 24px));
    padding:12px 46px 12px 14px;
    border:1px solid rgba(255,255,255,.35);
    border-left:4px solid #21b4ec;
    border-radius:12px;
    color:#fff;
    background:
        radial-gradient(circle at 100% 0,rgba(74,206,255,.22),transparent 45%),
        linear-gradient(135deg,rgba(4,42,75,.97),rgba(13,92,143,.96));
    box-shadow:0 14px 40px rgba(0,24,49,.26);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    cursor:pointer;
    transform:translateY(-16px);
    opacity:0;
    animation:ncnNewsNoticeIn .28s ease forwards
}
.ncn-news-notice:hover{box-shadow:0 18px 50px rgba(0,45,83,.34)}
.ncn-news-notice__kicker{
    display:block;
    margin-bottom:3px;
    color:#87dcff;
    font-size:9px;
    font-weight:950;
    letter-spacing:.12em
}
.ncn-news-notice strong{
    display:block;
    font-size:14px;
    line-height:1.22
}
.ncn-news-notice small{
    display:block;
    margin-top:4px;
    color:#d7effa;
    font-size:10px;
    line-height:1.3
}
.ncn-news-notice__close{
    position:absolute;
    right:9px;
    top:9px;
    width:29px;
    height:29px;
    border:0;
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.12);
    font-size:19px;
    line-height:29px;
    cursor:pointer
}
.ncn-news-notice__close:hover{background:rgba(255,255,255,.22)}

.ncn-news-notice-overlay{
    position:fixed;
    z-index:99980;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
    background:rgba(2,16,30,.70);
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
    animation:ncnNewsFade .18s ease
}
.ncn-news-notice-panel{
    position:relative;
    width:min(760px,96vw);
    max-height:min(760px,88vh);
    overflow:hidden;
    border:1px solid rgba(255,255,255,.28);
    border-radius:18px;
    background:#fff;
    box-shadow:0 28px 90px rgba(0,0,0,.38);
    animation:ncnNewsPanelIn .24s cubic-bezier(.2,.8,.2,1)
}
.ncn-news-notice-panel__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:20px 22px;
    color:#fff;
    background:
        radial-gradient(circle at 82% 0,rgba(68,206,255,.28),transparent 42%),
        linear-gradient(120deg,#032c50,#097dbb 70%,#3f5baa)
}
.ncn-news-notice-panel__head span{
    display:block;
    margin-bottom:4px;
    color:#8bdcff;
    font-size:9px;
    font-weight:950;
    letter-spacing:.12em
}
.ncn-news-notice-panel__head h2{
    margin:0;
    font-size:25px;
    line-height:1;
    font-weight:950
}
.ncn-news-notice-panel__close{
    flex:0 0 auto;
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    color:#fff;
    background:rgba(0,0,0,.10);
    font-size:24px;
    cursor:pointer
}
.ncn-news-notice-list{
    max-height:58vh;
    overflow:auto;
    padding:8px 16px 4px
}
.ncn-news-notice-item{
    display:grid;
    grid-template-columns:11px minmax(0,1fr) 24px;
    gap:11px;
    align-items:center;
    padding:14px 8px;
    color:#143c59;
    border-bottom:1px solid #e2edf3;
    text-decoration:none;
    transition:background .15s ease,transform .15s ease
}
.ncn-news-notice-item:last-child{border-bottom:0}
.ncn-news-notice-item:hover{
    background:#f0f9fe;
    transform:translateX(2px)
}
.ncn-news-notice-item__dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#0aa9e5;
    box-shadow:0 0 0 4px rgba(10,169,229,.10)
}
.ncn-news-notice-item strong{
    display:block;
    font-size:14px;
    line-height:1.25
}
.ncn-news-notice-item small{
    display:block;
    margin-top:4px;
    color:#738998;
    font-size:10px;
    line-height:1.35
}
.ncn-news-notice-item__arrow{
    color:#94a9b7;
    font-size:26px
}
.ncn-news-notice-panel__foot{
    display:flex;
    justify-content:flex-end;
    padding:12px 18px 16px;
    border-top:1px solid #e2edf3;
    background:#f8fbfd
}
.ncn-news-notice-readall{
    min-height:36px;
    padding:0 13px;
    border:1px solid #bcd7e7;
    border-radius:7px;
    color:#0a5e91;
    background:#fff;
    font-size:10px;
    font-weight:950;
    letter-spacing:.04em;
    cursor:pointer
}
.ncn-news-notice-readall:hover{background:#eaf7fd}

@keyframes ncnNewsNoticeIn{to{transform:translateY(0);opacity:1}}
@keyframes ncnNewsFade{from{opacity:0}to{opacity:1}}
@keyframes ncnNewsPanelIn{from{opacity:0;transform:scale(.96) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}

@media(max-width:620px){
    .ncn-news-notice{top:10px;right:10px;width:calc(100vw - 20px)}
    .ncn-news-notice-overlay{padding:10px}
    .ncn-news-notice-panel{width:100%;max-height:92vh;border-radius:14px}
    .ncn-news-notice-panel__head{padding:17px}
    .ncn-news-notice-panel__head h2{font-size:21px}
    .ncn-news-notice-list{max-height:66vh;padding:5px 10px}
}


/* ============================================================
   NCN 2026 · NOTIFICA NEWS V2
   Rettangolare, più grande, più leggibile, stile NCN.
   ============================================================ */

.ncn-news-notice{
    right:20px!important;
    top:18px!important;
    width:min(470px,calc(100vw - 28px))!important;
    min-height:94px!important;
    padding:18px 60px 17px 20px!important;
    box-sizing:border-box!important;
    border:2px solid rgba(255,255,255,.48)!important;
    border-top:5px solid #0B9FC5!important;
    border-left:2px solid rgba(255,255,255,.48)!important;
    border-radius:6px!important;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(56,198,242,.26),
            transparent 44%
        ),
        linear-gradient(
            135deg,
            rgba(4,38,68,.985),
            rgba(9,91,139,.98)
        )!important;
    box-shadow:
        0 14px 34px rgba(0,27,51,.28),
        0 0 0 1px rgba(11,159,197,.16)!important;
}

.ncn-news-notice__kicker{
    margin-bottom:7px!important;
    color:#84ddfa!important;
    font:900 10px/1 Arial,Helvetica,sans-serif!important;
    letter-spacing:.12em!important;
}

.ncn-news-notice strong{
    color:#fff!important;
    font:900 18px/1.18 Arial,Helvetica,sans-serif!important;
    letter-spacing:-.01em!important;
}

.ncn-news-notice small{
    margin-top:7px!important;
    color:#d9f1fa!important;
    font:700 12px/1.35 Arial,Helvetica,sans-serif!important;
}

.ncn-news-notice__close{
    right:12px!important;
    top:12px!important;
    width:35px!important;
    height:35px!important;
    border:1px solid rgba(255,255,255,.28)!important;
    border-radius:4px!important;
    background:rgba(255,255,255,.10)!important;
    font:400 23px/32px Arial,Helvetica,sans-serif!important;
}

.ncn-news-notice:hover{
    box-shadow:
        0 18px 44px rgba(0,36,67,.34),
        0 0 0 1px rgba(11,159,197,.22)!important;
}

@media(max-width:620px){
    .ncn-news-notice{
        top:10px!important;
        right:10px!important;
        width:calc(100vw - 20px)!important;
        min-height:88px!important;
        padding:16px 54px 15px 17px!important;
    }

    .ncn-news-notice strong{
        font-size:16px!important;
    }

    .ncn-news-notice small{
        font-size:11px!important;
    }
}
