/* ==========================================================================
   NOTIFICATION DETAIL — design system dedicato.
   Pagina privata "Analisi di impatto". Ridefinisce tutta la grafica della
   pagina di dettaglio: gerarchia per importanza, animazioni, navigazione.
   ========================================================================== */

:root {
    --nd-blue: #2563eb;
    --nd-blue-deep: #1d4ed8;
    --nd-blue-soft: #eff6ff;
    --nd-ink: #172033;
    --nd-slate: #5f6b7e;
    --nd-muted: #94a3b8;
    --nd-line: #e2e8f0;
    --nd-card: #ffffff;
    --nd-bg: #f6f8fc;
    --nd-green: #059669;
    --nd-green-soft: #ecfdf5;
    --nd-red: #dc2626;
    --nd-red-soft: #fef2f2;
    --nd-amber: #d97706;
    --nd-amber-soft: #fffbeb;
    --nd-radius: 18px;
    --nd-radius-sm: 12px;
    --nd-shadow: 0 10px 30px rgba(23, 32, 51, .07);
    --nd-shadow-hover: 0 18px 44px rgba(23, 32, 51, .12);
    --nd-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------------------------------
   Pagina + lettura
   ------------------------------------------------------------------------- */
.ndd-page {
    max-width: 1240px;
    margin: 1.6rem auto 3.5rem;
    padding: 0 20px;
}

.ndd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nd-slate);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 1.2rem;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.ndd-back:hover { color: var(--nd-blue); transform: translateX(-3px); }

/* Barra di avanzamento lettura: sempre visibile in alto, sopra la navbar */
.ndd-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 3px;
    background: transparent;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
}

.ndd-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--nd-blue), #38bdf8);
    transition: width .1s linear;
}

/* -------------------------------------------------------------------------
   HERO — "Cosa c'è da sapere" (sezione di massima importanza)
   ------------------------------------------------------------------------- */
.ndd-hero {
    position: relative;
    overflow: hidden;
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 22px;
    box-shadow: var(--nd-shadow);
    padding: 2rem 2.2rem 1.6rem;
    margin-bottom: 1.5rem;
}

.ndd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(760px 300px at 88% -40%, var(--nd-hero-glow, rgba(37,99,235,.14)), transparent 70%);
    pointer-events: none;
}

.ndd-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.ndd-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ndd-badge--sev-high { background: var(--nd-red-soft); color: var(--nd-red); border: 1px solid #fecaca; }
.ndd-badge--sev-med  { background: var(--nd-amber-soft); color: var(--nd-amber); border: 1px solid #fde68a; }
.ndd-badge--sev-low  { background: #f1f5f9; color: #64748b; border: 1px solid var(--nd-line); }

.ndd-badge--pro {
    background: linear-gradient(135deg, #fff3cd, #fde68a);
    color: #8a5a00;
    border: 1px solid #f3d37a;
    font-size: .72rem;
    padding: 6px 12px;
}

.ndd-badge--std {
    background: var(--nd-bg);
    color: var(--nd-slate);
    border: 1px solid var(--nd-line);
    font-size: .72rem;
    padding: 6px 12px;
}

.ndd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    color: var(--nd-slate);
    font-size: .86rem;
    font-weight: 500;
    margin-bottom: .8rem;
}

.ndd-meta i { color: var(--nd-blue); width: 15px; text-align: center; }

.ndd-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.1rem;
}

.ndd-tags-label { font-size: .82rem; color: var(--nd-slate); font-weight: 600; }

.ndd-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--nd-blue-soft);
    color: var(--nd-blue);
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .78rem;
    font-weight: 700;
}

.ndd-hero h1 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3.4vw, 2.15rem);
    letter-spacing: -0.02em;
    color: var(--nd-ink);
    line-height: 1.2;
    margin: 0 0 .9rem;
}

.ndd-hero-lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
    border-left: 3px solid var(--nd-blue);
    padding-left: 1rem;
    margin: 0 0 1.2rem;
    max-width: 760px;
}

.ndd-why {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--nd-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-top: 1.2rem;
}

.ndd-why-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--nd-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(5,150,105,.16);
}

.ndd-why strong {
    display: block;
    color: #065f46;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 3px;
}

.ndd-why p { margin: 0; font-size: .93rem; line-height: 1.6; color: #14532d; }

/* -------------------------------------------------------------------------
   KPI con contatori animati
   ------------------------------------------------------------------------- */
.ndd-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 1.6rem;
}

.ndd-kpi {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 16px;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 6px 18px rgba(23,32,51,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ndd-kpi:hover {
    transform: translateY(-3px);
    box-shadow: var(--nd-shadow-hover);
    border-color: #bfdbfe;
}

.ndd-kpi-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--nd-slate);
    font-weight: 800;
    margin-bottom: 6px;
}

.ndd-kpi-label i { color: var(--nd-blue); }

.ndd-kpi-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--nd-ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ndd-kpi-note { font-size: .74rem; color: var(--nd-slate); margin-top: 4px; }

.ndd-kpi--alert .ndd-kpi-label i { color: var(--nd-red); }
.ndd-kpi--alert .ndd-kpi-value { color: var(--nd-red); }

/* -------------------------------------------------------------------------
   Navigazione interna (esplorazione) — sticky chips
   ------------------------------------------------------------------------- */
.ndd-navwrap {
    position: sticky;
    top: 12px;
    z-index: 110;
    display: flex;
    justify-content: center;
    margin: 0 0 1.6rem;
}

.ndd-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--nd-line);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(23,32,51,.08);
    max-width: 100%;
}

.ndd-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--nd-slate);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ndd-nav a i { font-size: .72rem; }

.ndd-nav a:hover { color: var(--nd-blue); background: var(--nd-blue-soft); }

.ndd-nav a.active {
    background: var(--nd-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

/* -------------------------------------------------------------------------
   Flusso unico (niente sidebar): tutte le sezioni in una colonna
   ------------------------------------------------------------------------- */
.ndd-flow {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Blocco a titolo esterno (A colpo d'occhio, Rischi): niente card dentro card */
.ndd-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-margin-top: 86px;
}

.ndd-block-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ndd-block-head h2 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--nd-ink);
    letter-spacing: -.01em;
    margin: 0;
}

.ndd-block-head p { margin: 3px 0 0; font-size: .82rem; color: var(--nd-slate); }

/* Divisore tra le zone della pagina */
.ndd-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: .2rem 0;
    color: var(--nd-muted);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.ndd-divider::before,
.ndd-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nd-line), transparent);
}

/* -------------------------------------------------------------------------
   Sezioni card
   ------------------------------------------------------------------------- */
.ndd-sec {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: var(--nd-radius);
    box-shadow: var(--nd-shadow);
    overflow: hidden;
    scroll-margin-top: 86px;
}

.ndd-sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.6rem .95rem;
    border-bottom: 1px solid var(--nd-line);
}

.ndd-sec-num {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nd-blue), #38bdf8);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.ndd-sec-num--warn { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 4px 12px rgba(245,158,11,.35); }
.ndd-sec-num--danger { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.ndd-sec-num--green { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 4px 12px rgba(5,150,105,.3); }

.ndd-sec-head h2 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--nd-ink);
    letter-spacing: -.01em;
    margin: 0;
}

.ndd-sec-head p { margin: 3px 0 0; font-size: .8rem; color: var(--nd-slate); }

.ndd-sec-body { padding: 1.1rem 1.6rem 1.4rem; }

/* -------------------------------------------------------------------------
   Azioni prioritarie
   ------------------------------------------------------------------------- */
.ndd-actions { display: flex; flex-direction: column; }

.ndd-action {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: .95rem 0;
    border-bottom: 1px solid var(--nd-line);
}

.ndd-action:last-child { border-bottom: 0; }

.ndd-action-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nd-blue-soft);
    color: var(--nd-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    border: 1px solid #dbeafe;
}

.ndd-action-title { font-size: .95rem; font-weight: 700; color: var(--nd-ink); line-height: 1.5; }
.ndd-action-ref { font-size: .76rem; color: var(--nd-slate); margin-top: 3px; font-weight: 500; }

.ndd-prio {
    font-size: .68rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ndd-prio.high { background: var(--nd-red-soft); color: var(--nd-red); border: 1px solid #fecaca; animation: ndd-pulse 2s infinite; }
.ndd-prio.med { background: var(--nd-amber-soft); color: var(--nd-amber); border: 1px solid #fde68a; }
.ndd-prio.mon { background: #f1f5f9; color: #64748b; border: 1px solid var(--nd-line); }

@keyframes ndd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,.35); }
    70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* -------------------------------------------------------------------------
   Clienti
   ------------------------------------------------------------------------- */
.ndd-client {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 14px rgba(23,32,51,.05);
    margin-bottom: .85rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ndd-client:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: var(--nd-shadow-hover);
}

.ndd-client-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ndd-client-name { font-weight: 800; font-size: .98rem; color: var(--nd-ink); }
.ndd-client-type { font-size: .78rem; color: var(--nd-slate); margin-top: 1px; }
.ndd-client-reason { font-size: .86rem; color: #2a3346; line-height: 1.55; background: var(--nd-bg); border-radius: 10px; padding: .65rem .8rem; margin-top: .7rem; }
.ndd-client-reason strong { color: var(--nd-ink); }
.ndd-client-actions { color: var(--nd-blue); font-size: .8rem; font-weight: 700; margin-top: .6rem; }

/* Toolbar ricerca/filtro clienti */
.ndd-client-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.1rem;
}
.ndd-client-search-wrap {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 12px;
    padding: .55rem .9rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ndd-client-search-wrap:focus-within { border-color: #bfdbfe; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.ndd-client-search-wrap i { color: var(--nd-slate); font-size: .85rem; }
.ndd-client-search {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .88rem;
    color: var(--nd-ink);
    outline: none;
}
.ndd-client-search::placeholder { color: var(--nd-muted); }
.ndd-client-status {
    flex: none;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    color: var(--nd-ink);
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 12px;
    padding: .55rem .9rem;
    cursor: pointer;
    outline: none;
    transition: border-color .18s ease;
}
.ndd-client-status:hover { border-color: #bfdbfe; }
.ndd-client-count {
    font-size: .8rem;
    color: var(--nd-slate);
    background: var(--nd-blue-soft);
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: .5rem .85rem;
    margin-bottom: .9rem;
}
.ndd-client-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ndd-client-list .ndd-client { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Timeline scadenze
   ------------------------------------------------------------------------- */
.ndd-timeline { position: relative; padding-left: 8px; }

.ndd-date { display: flex; gap: 14px; position: relative; padding: 0 0 1.1rem; }
.ndd-date:last-child { padding-bottom: 0; }

.ndd-date::before {
    content: "";
    position: absolute;
    left: 47px;
    top: 54px;
    bottom: 0;
    width: 2px;
    background: var(--nd-line);
}

.ndd-date:last-child::before { display: none; }

.ndd-date-day {
    flex: none;
    width: 62px;
    height: 60px;
    border-radius: 12px;
    background: var(--nd-blue-soft);
    border: 1px solid #dbeafe;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nd-blue);
}

.ndd-date-day strong { font-size: 1rem; line-height: 1; }
.ndd-date-day span { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.ndd-date-day em { font-size: .54rem; font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: .02em; opacity: .85; margin-top: 2px; }

.ndd-date--next .ndd-date-day { background: var(--nd-red-soft); border-color: #fecaca; color: var(--nd-red); box-shadow: 0 4px 14px rgba(220,38,38,.16); }

.ndd-date-title { font-size: .9rem; font-weight: 700; color: var(--nd-ink); }
.ndd-date-text { font-size: .82rem; color: var(--nd-slate); margin-top: 2px; line-height: 1.5; }

/* Raggruppamento per data: una data, tutte le scadenze accanto */
.ndd-date-group { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ndd-date-item { padding: .55rem 0; }
.ndd-date-item + .ndd-date-item { border-top: 1px dashed var(--nd-line); }
.ndd-date-item .ndd-date-title { font-size: .88rem; }
.ndd-date-group-title {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--nd-slate);
    margin-bottom: .2rem;
}
.ndd-date-group-title + .ndd-date-item { padding-top: .4rem; }

.ndd-date-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--nd-slate);
    background: var(--nd-bg);
    border: 1px dashed var(--nd-line);
    border-radius: 12px;
    padding: .9rem 1.1rem;
}
.ndd-date-empty i { color: var(--nd-blue); font-size: 1rem; }

/* -------------------------------------------------------------------------
   Match profilo → norma
   ------------------------------------------------------------------------- */
.ndd-match { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 12px; }

.ndd-match-box { background: var(--nd-blue-soft); border: 1px solid #dbeafe; border-radius: 14px; padding: 1rem; }
.ndd-match-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nd-slate); font-weight: 800; margin-bottom: .6rem; }

.ndd-chip {
    display: inline-flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: var(--nd-blue);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: .78rem;
    font-weight: 700;
    margin: 0 5px 5px 0;
    transition: transform .15s ease, background .15s ease;
}

.ndd-tag:hover { transform: translateY(-1px); background: var(--nd-blue-soft); }

/* Tag espandibili "+N altre" */
.ndd-tag-more { position: relative; display: inline-block; }
.ndd-tag-more summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px dashed var(--nd-blue);
    color: var(--nd-blue);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .78rem;
    font-weight: 700;
}
.ndd-tag-more summary::-webkit-details-marker { display: none; }
.ndd-tag-more[open] summary { background: var(--nd-blue); color: #fff; }
.ndd-tag-more-inner {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 240px;
    max-width: 420px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--nd-shadow-hover);
}

/* -------------------------------------------------------------------------
   Albero matrioska "Perché + Come"
   ------------------------------------------------------------------------- */
.ndd-perche-lead { font-size: .92rem; color: var(--nd-slate); line-height: 1.6; margin: 0 0 1rem; }

.ndd-tree { display: flex; flex-direction: column; gap: 10px; }

.ndd-tree-area {
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    background: var(--nd-bg);
    overflow: hidden;
}
.ndd-tree-area > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .85rem 1.1rem;
    font-weight: 800;
    font-size: .92rem;
    color: var(--nd-ink);
}
.ndd-tree-area > summary::-webkit-details-marker { display: none; }
.ndd-tree-area > summary i { color: var(--nd-blue); }
.ndd-tree-area[open] > summary { background: var(--nd-blue-soft); }
.ndd-tree-count {
    margin-left: auto;
    font-size: .7rem;
    font-weight: 800;
    color: var(--nd-blue);
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.ndd-tree-area[open] > summary .ndd-tree-count { background: var(--nd-blue); color: #fff; border-color: var(--nd-blue); }

.ndd-tree-area-body { padding: .7rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 8px; }

.ndd-tree-client {
    background: #fff;
    border: 1px solid var(--nd-line);
    border-radius: 12px;
    overflow: hidden;
}
.ndd-tree-client > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .7rem 1rem;
    font-weight: 700;
    font-size: .88rem;
    color: var(--nd-ink);
}
.ndd-tree-client > summary::-webkit-details-marker { display: none; }
.ndd-tree-client[open] > summary { background: var(--nd-bg); }
.ndd-tree-type { font-size: .74rem; color: var(--nd-slate); font-weight: 500; }
.ndd-tree-client-body { padding: .2rem 1rem 1rem; }
.ndd-tree-reasons ul, .ndd-tree-acts ul { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.ndd-tree-reasons ul li, .ndd-tree-acts ul li { display: flex; gap: 8px; font-size: .84rem; line-height: 1.5; color: #2a3346; }
.ndd-tree-reasons ul li::before { content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--nd-blue); flex: 0 0 auto; margin-top: 3px; font-size: .72rem; }
.ndd-tree-acts { margin-top: .7rem; }
.ndd-tree-acts strong { font-size: .76rem; color: var(--nd-green); text-transform: uppercase; letter-spacing: .04em; }
.ndd-tree-acts ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--nd-green); flex: 0 0 auto; margin-top: 3px; font-size: .72rem; }

/* Metodo — card separata */
.ndd-method {
    background: var(--nd-bg);
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    padding: 1.15rem 1.3rem;
}
.ndd-method-lead {
    font-size: .9rem;
    color: var(--nd-slate);
    line-height: 1.6;
    margin: 0 0 1rem;
}
.ndd-method-label {
    font-size: .78rem;
    font-weight: 800;
    color: var(--nd-ink);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .7rem;
}
.ndd-method-label i { color: var(--nd-blue); margin-right: 6px; }

/* -------------------------------------------------------------------------
   Clienti — ragioni espandibili, chip riferimenti, bottone azioni
   ------------------------------------------------------------------------- */
.ndd-client-why { margin-top: .7rem; border: 1px solid var(--nd-line); border-radius: 10px; overflow: hidden; background: var(--nd-bg); }
.ndd-client-why summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: .55rem .8rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--nd-slate);
}
.ndd-client-why summary::-webkit-details-marker { display: none; }
.ndd-client-why summary i { color: var(--nd-blue); }
.ndd-client-why summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .68rem;
    margin-left: auto;
    color: var(--nd-slate);
    transition: transform .2s ease, color .2s ease;
}
.ndd-client-why[open] summary { color: var(--nd-blue); background: var(--nd-blue-soft); }
.ndd-client-why[open] summary::after { transform: rotate(180deg); color: var(--nd-blue); }
.ndd-client-why-body { padding: .5rem .8rem .8rem; display: flex; flex-direction: column; gap: 6px; }

.ndd-client-reason-row { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: #2a3346; line-height: 1.5; }
.ndd-client-reason-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ndd-client-reason-label { font-weight: 500; }
.ndd-client-reason-why { font-size: .8rem; color: var(--nd-slate); line-height: 1.5; }

.ndd-modal-reason { font-size: .78rem; color: var(--nd-slate); font-weight: 400; margin-top: 2px; line-height: 1.5; }
.ndd-modal-article { font-size: .82rem; color: #334155; line-height: 1.6; margin-top: 4px; }

.ndd-ref-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: var(--nd-blue);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: .72rem;
    font-weight: 700;
}

.ndd-actions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nd-blue-soft);
    border: 1px solid #dbeafe;
    color: var(--nd-blue);
    border-radius: 12px;
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ndd-actions-btn:hover { background: var(--nd-blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.3); transform: translateY(-1px); }
.ndd-actions-btn .fa-chevron-right { font-size: .62rem; }

/* -------------------------------------------------------------------------
   Modale azioni pertinenti per cliente
   ------------------------------------------------------------------------- */
.ndd-modal-client-head {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--nd-ink);
    margin-bottom: .9rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--nd-line);
}
.ndd-modal-block { margin-bottom: 1.1rem; }
.ndd-modal-block:last-child { margin-bottom: 0; }
.ndd-modal-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--nd-slate);
    margin-bottom: .5rem;
}
.ndd-modal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.ndd-modal-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.55; color: #2a3346; }
.ndd-modal-list li .ndd-action-num { flex: none; }
.ndd-ref-note { color: var(--nd-slate); font-size: .78rem; }

/* Accordion dentro la modale: Azioni in cima espanso, le altre collassate */
.ndd-modal-acc {
    border: 1px solid var(--nd-line);
    border-radius: 12px;
    margin-bottom: .7rem;
    overflow: hidden;
    background: #fff;
}
.ndd-modal-acc:last-child { margin-bottom: 0; }
.ndd-accordion.ndd-modal-acc button { padding: .75rem 1.1rem; background: var(--nd-bg); font-weight: 800; font-size: .82rem; }
.ndd-accordion.ndd-modal-acc button:hover { color: var(--nd-ink); }
.ndd-accordion.ndd-modal-acc.open button { background: var(--nd-blue-soft); color: var(--nd-blue); }
.ndd-modal-acc .ndd-acc-inner { padding: .9rem 1.1rem 1.1rem; }

.ndd-arrow { text-align: center; color: var(--nd-blue); font-size: 1.3rem; animation: ndd-arrow-x 1.6s infinite; }

@keyframes ndd-arrow-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.ndd-confidence {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: .8rem 1rem;
    background: var(--nd-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.ndd-confidence strong { color: #047857; font-size: .85rem; }
.ndd-confidence span { font-size: .76rem; color: #166534; }

/* -------------------------------------------------------------------------
   Checklist
   ------------------------------------------------------------------------- */
.ndd-check { display: flex; gap: 11px; padding: .72rem 0; border-bottom: 1px solid var(--nd-line); font-size: .93rem; color: #2a3346; line-height: 1.55; }
.ndd-check:last-child { border-bottom: 0; }

.ndd-check::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--nd-green);
    flex: 0 0 auto;
    margin-top: 3px;
    font-size: .82rem;
    background: var(--nd-green-soft);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndd-check-note { display: block; font-size: .76rem; color: var(--nd-slate); font-weight: 400; }

/* -------------------------------------------------------------------------
   Key facts
   ------------------------------------------------------------------------- */
.ndd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.ndd-fact {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-left: 4px solid var(--nd-blue);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 14px rgba(23,32,51,.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ndd-fact:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-hover); }

.ndd-fact h3 { display: flex; align-items: center; gap: 8px; font-size: .98rem; font-weight: 800; color: var(--nd-ink); margin: 0 0 .5rem; }
.ndd-fact h3 i { color: var(--nd-blue); width: 18px; text-align: center; }
.ndd-fact p { font-size: .9rem; line-height: 1.6; color: #2a3346; margin: 0 0 .5rem; }
.ndd-fact ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.ndd-fact ul li { display: flex; gap: 8px; font-size: .88rem; line-height: 1.5; color: #2a3346; }
.ndd-fact ul li::before { content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--nd-blue); flex: 0 0 auto; margin-top: 3px; font-size: .76rem; }

.ndd-fact--quando { border-left-color: #0891b2; }
.ndd-fact--quando h3 i { color: #0891b2; }
.ndd-fact--quando ul li::before { color: #0891b2; }

.ndd-fact--chi_riguarda { border-left-color: #7c3aed; }
.ndd-fact--chi_riguarda h3 i { color: #7c3aed; }
.ndd-fact--chi_riguarda ul li::before { color: #7c3aed; }

.ndd-fact--quanto_incide { border-left-color: #059669; }
.ndd-fact--quanto_incide h3 i { color: #059669; }
.ndd-fact--quanto_incide ul li::before { color: #059669; }

.ndd-fact--cosa_fare { border-left-color: #16a34a; }
.ndd-fact--cosa_fare h3 i { color: #16a34a; }
.ndd-fact--cosa_fare ul li::before { color: #16a34a; }

.ndd-fact--attenzione { border-left-color: #d97706; background: var(--nd-amber-soft); }
.ndd-fact--attenzione h3 i { color: #d97706; }
.ndd-fact--attenzione ul li::before { color: #d97706; }

.ndd-fact--per_professionisti { border-left-color: #4f46e5; }
.ndd-fact--per_professionisti h3 i { color: #4f46e5; }
.ndd-fact--per_professionisti ul li::before { color: #4f46e5; }

/* -------------------------------------------------------------------------
   Cifre / money
   ------------------------------------------------------------------------- */
.ndd-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

.ndd-money-box {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ndd-money-box:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: var(--nd-shadow-hover); }
.ndd-money-value { font-size: 1.25rem; font-weight: 800; color: var(--nd-ink); font-variant-numeric: tabular-nums; }
.ndd-money-label { font-size: .78rem; color: var(--nd-slate); margin-top: 3px; }

/* -------------------------------------------------------------------------
   Rischi (griglia card, non più sidebar)
   ------------------------------------------------------------------------- */
.ndd-risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.ndd-risk {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-left: 4px solid var(--nd-red);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 14px rgba(23,32,51,.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ndd-risk:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-hover); }
.ndd-risk-value { color: var(--nd-red); font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.ndd-risk-value i { font-size: .82rem; }
.ndd-risk-addressee {
    display: inline-block;
    margin-top: 8px;
    font-size: .72rem;
    font-weight: 800;
    color: #7f1d1d;
    background: var(--nd-red-soft);
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 2px 9px;
}
.ndd-risk-text { color: var(--nd-slate); font-size: .78rem; margin-top: 6px; line-height: 1.5; }

/* Link "Vai alla fonte ufficiale" (CTA al posto della vecchia card Fonte) */
.ndd-source-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    background: var(--nd-blue);
    color: #fff;
    border-radius: 14px;
    padding: .8rem 1.25rem;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37,99,235,.28);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ndd-source-link:hover {
    background: var(--nd-blue-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37,99,235,.36);
}

.ndd-source-link--big {
    font-size: .98rem;
    padding: .95rem 1.4rem;
    justify-content: center;
    align-self: stretch;
}

.ndd-verify-note {
    margin-top: .9rem;
    font-size: .74rem;
    color: var(--nd-muted, #94a3b8);
    line-height: 1.5;
    border-top: 1px solid var(--nd-line);
    padding-top: .8rem;
}

/* -------------------------------------------------------------------------
   Fonte + sidebar generica
   ------------------------------------------------------------------------- */
.ndd-card { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(23,32,51,.05); overflow: hidden; }
.ndd-card .ndd-card-body { padding: 1.25rem 1.35rem; }
.ndd-card h3 { font-size: .95rem; font-weight: 800; color: var(--nd-ink); margin: 0 0 .9rem; display: flex; align-items: center; gap: 9px; }
.ndd-card h3 i { color: var(--nd-blue); }

.ndd-source { padding: 1rem; background: var(--nd-bg); border-radius: 12px; font-size: .82rem; }
.ndd-source strong { display: block; margin-bottom: 4px; color: var(--nd-ink); }
.ndd-source a { color: var(--nd-blue); font-weight: 700; }
.ndd-source a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Accordion dettaglio
   ------------------------------------------------------------------------- */
.ndd-accordion { border-top: 1px solid var(--nd-line); }
.ndd-accordion:first-child { border-top: 0; }

.ndd-accordion button {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    color: var(--nd-ink);
    text-align: left;
    transition: color .18s ease;
}

.ndd-accordion button:hover { color: var(--nd-blue); }

.ndd-accordion .ndd-chev {
    color: var(--nd-slate);
    transition: transform .25s ease;
    font-size: .85rem;
    flex: none;
}

.ndd-accordion.open .ndd-chev { transform: rotate(180deg); color: var(--nd-blue); }

.ndd-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.ndd-accordion.open .ndd-accordion-content { grid-template-rows: 1fr; }

.ndd-accordion-content > div { overflow: hidden; }

.ndd-acc-inner { padding: 0 0 1rem; }

.ndd-acc-inner ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.ndd-acc-inner ul li { display: flex; gap: 10px; font-size: .92rem; line-height: 1.55; color: #2a3346; }
.ndd-acc-inner ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--nd-green); flex: 0 0 auto; margin-top: 3px; font-size: .78rem; }
.ndd-acc-inner p { font-size: .92rem; line-height: 1.6; color: #2a3346; margin: 0; }

/* -------------------------------------------------------------------------
   La norma completa — sottotitoli, articoli, definizioni, testo integrale
   ------------------------------------------------------------------------- */
.ndd-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--nd-slate);
    margin: 1.2rem 0 .7rem;
}
.ndd-subtitle i { color: var(--nd-blue); }

.ndd-articles { display: flex; flex-direction: column; gap: 8px; }

.ndd-article {
    border: 1px solid var(--nd-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.ndd-article button {
    width: 100%;
    border: 0;
    background: #fff;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background .15s ease;
}
.ndd-article button:hover { background: var(--nd-bg); }
.ndd-article.open button { background: var(--nd-blue-soft); }
.ndd-article-num {
    flex: none;
    font-size: .72rem;
    font-weight: 800;
    color: var(--nd-blue);
    background: var(--nd-blue-soft);
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 3px 9px;
    white-space: nowrap;
}
.ndd-article.open .ndd-article-num { background: var(--nd-blue); color: #fff; border-color: var(--nd-blue); }
.ndd-article-title { flex: 1; font-weight: 700; font-size: .9rem; color: var(--nd-ink); }
.ndd-article .ndd-chev {
    flex: none;
    color: var(--nd-slate);
    font-size: .85rem;
    transition: transform .25s ease, color .25s ease;
}
.ndd-article.open .ndd-chev { transform: rotate(180deg); color: var(--nd-blue); }
.ndd-article.open .ndd-accordion-content { grid-template-rows: 1fr; }

.ndd-def-list { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ndd-def {
    background: var(--nd-bg);
    border: 1px solid var(--nd-line);
    border-left: 4px solid var(--nd-blue);
    border-radius: 12px;
    padding: .85rem 1.05rem;
}
.ndd-def dt { font-weight: 800; color: var(--nd-ink); font-size: .9rem; }
.ndd-def dd { margin: 4px 0 0; font-size: .88rem; line-height: 1.6; color: #2a3346; }

.ndd-fulltext-link {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--nd-line);
    border-left: 4px solid var(--nd-blue);
    border-radius: 14px;
    background: var(--nd-bg);
    padding: 1rem 1.15rem;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ndd-fulltext-link:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-hover); border-color: #bfdbfe; }
.ndd-fulltext-link > i { flex: none; font-size: 1.25rem; color: var(--nd-blue); }
.ndd-fulltext-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ndd-fulltext-link-text strong { font-size: .92rem; font-weight: 800; color: var(--nd-ink); }
.ndd-fulltext-link-text span { font-size: .78rem; color: var(--nd-slate); }
.ndd-fulltext-link-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nd-blue);
    color: #fff;
    border-radius: 10px;
    padding: .6rem .95rem;
    font-size: .8rem;
    font-weight: 800;
}
.ndd-fulltext-link:hover .ndd-fulltext-link-cta { background: var(--nd-blue-deep); }

.ndd-detail-source {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--nd-line);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ndd-detail-source-note { font-size: .76rem; color: var(--nd-muted); text-align: center; }

/* -------------------------------------------------------------------------
   Collapse tecnico "Perché NormaGuard ha rilevato" (chiuso di default)
   ------------------------------------------------------------------------- */
.ndd-tech { display: block; }
.ndd-tech > summary { list-style: none; cursor: pointer; display: block; }
.ndd-tech > summary::-webkit-details-marker { display: none; }
.ndd-tech-head-text { flex: 1; min-width: 0; }
.ndd-tech-chev {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nd-bg);
    border: 1px solid var(--nd-line);
    color: var(--nd-slate);
    font-size: .8rem;
    transition: transform .25s ease, color .25s ease, background .25s ease;
}
.ndd-tech[open] .ndd-tech-chev { transform: rotate(180deg); color: var(--nd-blue); background: var(--nd-blue-soft); }
.ndd-tech[open] .ndd-tech-head { background: var(--nd-blue-soft); }

/* -------------------------------------------------------------------------
   Card "Cosa cambia" dentro A colpo d'occhio (STANDARD)
   ------------------------------------------------------------------------- */
.ndd-fact--cambia { border-left-color: #16a34a; }
.ndd-fact--cambia h3 i { color: #16a34a; }
.ndd-fact--cambia ul li::before { color: #16a34a; }
.ndd-fact--cambia .ndd-check::before { color: var(--nd-green); background: var(--nd-green-soft); }

/* Modale "Azioni pertinenti" più larga */
.ndd-modal-lg { max-width: 780px; }

/* -------------------------------------------------------------------------
   Trasparenza / metodo
   ------------------------------------------------------------------------- */
.ndd-method ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.ndd-method ul li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.55; color: #2a3346; }
.ndd-method ul li strong { color: var(--nd-ink); }

.ndd-method-num {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--nd-blue-soft);
    color: var(--nd-blue);
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    font-weight: 800;
    margin-top: 1px;
}

/* -------------------------------------------------------------------------
   Reveal on scroll — attivo solo quando JS è disponibile (.ndd-js)
   ------------------------------------------------------------------------- */
.ndd-js .ndd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
}

.ndd-js .ndd-reveal.is-in {
    opacity: 1;
    transform: none;
}

.ndd-js .ndd-reveal .ndd-sec-num { transition: transform .3s ease; }
.ndd-js .ndd-reveal:hover .ndd-sec-num { transform: none; }

/* -------------------------------------------------------------------------
   Loading / error
   ------------------------------------------------------------------------- */
.ndd-loading, .ndd-error {
    text-align: center;
    padding: 3.2rem 1rem;
    color: var(--nd-slate);
    background: var(--nd-card);
    border: 1px dashed var(--nd-line);
    border-radius: 22px;
    box-shadow: var(--nd-shadow);
}

.ndd-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 4px solid var(--nd-blue-soft);
    border-top-color: var(--nd-blue);
    animation: ndd-spin 0.9s linear infinite;
}

@keyframes ndd-spin { to { transform: rotate(360deg); } }

.ndd-error h4 { color: var(--nd-red); font-weight: 800; margin-bottom: .4rem; }
.ndd-error p { margin-bottom: 1rem; }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .ndd-kpis { grid-template-columns: repeat(2, 1fr); }
    .ndd-nav { border-radius: 20px; justify-content: flex-start; }
    .ndd-modal-lg { max-width: calc(100% - .5rem); }
}

@media (max-width: 620px) {
    .ndd-page { padding: 0 12px; }
    .ndd-hero { padding: 1.4rem 1.2rem 1.3rem; }
    .ndd-sec-body { padding: 1rem 1.1rem 1.2rem; }
    .ndd-sec-head { padding: 1rem 1.1rem .85rem; }
    .ndd-kpis { grid-template-columns: 1fr 1fr; }
    .ndd-action { grid-template-columns: 30px 1fr; }
    .ndd-action .ndd-prio { grid-column: 2; justify-self: start; }
    .ndd-match { grid-template-columns: 1fr; }
    .ndd-arrow { transform: rotate(90deg); }
    .ndd-client-top { flex-direction: column; }
    .ndd-block-head { align-items: flex-start; }
    .ndd-block-head .ndd-sec-num { width: 34px; height: 34px; font-size: .9rem; }
    .ndd-source-link { align-self: stretch; justify-content: center; }
    .ndd-fulltext-body pre { max-height: 380px; }
}

/* Riduzione movimento */
@media (prefers-reduced-motion: reduce) {
    .ndd-prio.high { animation: none; }
    .ndd-arrow { animation: none; }
    .ndd-spinner { animation-duration: 1.6s; }
    .ndd-js .ndd-reveal { transition: none; opacity: 1; transform: none; }
    * { scroll-behavior: auto !important; }
}