/* =========================================================================
   Tema Dottor Marc – Vulnerabilità Database
   Design system allineato a www.dottorbox.it (token, tipografia, superfici).
   Caricato per ultimo: sovrascrive gli stili legacy delle singole pagine.
   ========================================================================= */

:root {
    --bg-0: #fafbfc;
    --bg-1: #ffffff;
    --bg-2: #eff5f8;
    --line: #dce6ec;
    --text: #08202c;
    --text-dim: #4a6472;
    --accent: #00648f;
    --accent-2: #004a70;
    --accent-3: #00b2b2;
    --accent-glow: rgba(0, 100, 143, .22);
    --on-dark: #8fd0ea;
    --on-dark-2: #7fc4e3;
    --dark: #003c5c;
    --dark-2: #00293f;

    --sev-critical: #b42323;
    --sev-high: #c2410c;
    --sev-medium: #9a5b00;
    --sev-low: #0b7a54;
    --sev-none: #4a6472;

    --radius: 14px;
    --radius-sm: 10px;
    --max: 1200px;
    --shadow-sm: 0 1px 2px rgba(8, 32, 44, .06);
    --shadow-md: 0 6px 18px -6px rgba(8, 32, 44, .12);
    --shadow-lg: 0 24px 50px -18px rgba(8, 32, 44, .18);
    --ease-out: cubic-bezier(.215, .61, .355, 1);
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Montserrat", var(--font-body);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
html, body {
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
body { margin: 0; }
.body-pag, .body-pag > div, .body-pag .col-md-12 { padding: 0; margin: 0; width: 100%; }

h1, h2, h3, h4, h5,
.card-title, .main-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text);
    text-wrap: balance;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 22px); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 2px; border-radius: 4px; }

.dm-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.dm-section { padding-block: clamp(48px, 7vw, 88px); }
.dm-section--alt { background: var(--bg-2); }
.dm-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.dm-lead { font-size: 1.125rem; color: var(--text-dim); max-width: 62ch; }
.dm-mono { font-family: var(--font-mono); }

/* ---------- Bottoni ---------- */
.dm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 22px;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.dm-btn:hover { transform: translateY(-1px); }
.dm-btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px -8px var(--accent-glow); }
.dm-btn--primary:hover { color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 100, 143, .38); }
.dm-btn--light { color: var(--dark-2); background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.dm-btn--light:hover { color: var(--accent-2); }
.dm-btn--ghost { color: var(--text); background: transparent; border-color: var(--line); }
.dm-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.dm-btn--ghost-dark { color: #d8eef7; background: rgba(127, 196, 227, .14); border-color: rgba(127, 196, 227, .45); }
.dm-btn--ghost-dark:hover { color: #fff; background: rgba(127, 196, 227, .24); }

/* ---------- Navigazione ---------- */
.dm-nav {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
    background: rgba(0, 41, 63, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.dm-nav__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.dm-nav__brand img { height: 34px; width: auto; display: block; }
.dm-nav__menu { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.dm-nav__link {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px;
    color: rgba(255, 255, 255, .92); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.dm-nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
    background: var(--on-dark-2); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.dm-nav__link:hover, .dm-nav__link.is-active { color: #fff; }
.dm-nav__link:hover::after, .dm-nav__link.is-active::after { transform: scaleX(1); }

.dm-search { position: relative; display: flex; align-items: center; }
.dm-search input {
    width: 240px; min-height: 42px; padding: 9px 42px 9px 16px;
    border-radius: 99px; border: 1px solid rgba(127, 196, 227, .45);
    background: rgba(127, 196, 227, .12); color: #fff; font-size: 14px; font-family: inherit;
    transition: width .25s var(--ease-out), background .2s, border-color .2s;
}
.dm-search input::placeholder { color: rgba(216, 238, 247, .75); }
.dm-search input:focus { outline: none; width: 280px; background: rgba(127, 196, 227, .2); border-color: var(--on-dark); }
.dm-search button {
    position: absolute; right: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: transparent; color: #d8eef7; cursor: pointer;
}
.dm-search button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.dm-search__suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 6px; list-style: none; margin: 0;
}
.dm-search__suggest a {
    display: block; padding: 8px 12px; border-radius: 8px; color: var(--text);
    font-family: var(--font-mono); font-size: 14px; text-decoration: none;
}
.dm-search__suggest a:hover, .dm-search__suggest a:focus { background: var(--bg-2); color: var(--accent-2); }

.dm-nav__toggle {
    display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid rgba(127, 196, 227, .45); background: transparent; color: #fff; font-size: 18px;
}
@media (max-width: 860px) {
    .dm-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .dm-nav__panel {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--dark-2); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5);
    }
    .dm-nav.is-open .dm-nav__panel { display: block; }
    .dm-nav__menu { flex-direction: column; align-items: stretch; margin: 0 0 12px; }
    .dm-search input, .dm-search input:focus { width: 100%; }
}
@media (min-width: 861px) {
    .dm-nav__panel { display: flex; align-items: center; gap: 16px; flex: 1; }
}

/* ---------- Hero (scuro, come dottorbox.it) ---------- */
.dm-hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(0, 178, 178, .22), transparent 60%),
        linear-gradient(180deg, rgba(0, 41, 63, .88), rgba(0, 41, 63, .96)),
        url('/images/immagine_header.jpg') center / cover no-repeat,
        var(--dark-2);
    padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 104px);
}
.dm-hero--compact { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.dm-hero h1, .dm-hero .card-title, .dm-hero .main-title { color: #fff; }
.dm-hero h1 em { font-style: normal; color: var(--on-dark); }
.dm-hero .dm-eyebrow { color: var(--on-dark); }
.dm-hero .dm-lead { color: rgba(216, 238, 247, .9); }
.dm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dm-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.dm-breadcrumb a { color: var(--on-dark); text-decoration: none; }
.dm-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.dm-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(216, 238, 247, .5); }
.dm-breadcrumb li[aria-current] { color: rgba(216, 238, 247, .85); }

/* ---------- Card generiche ---------- */
.dm-card {
    background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 24px;
}
.dm-card h2, .dm-card h3 { color: var(--text); }
.dm-card--link { display: block; text-decoration: none; color: inherit; transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.dm-card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b9d3df; color: inherit; }

/* Griglia anni */
.dm-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.dm-year { text-align: left; padding: 20px 22px; }
.dm-year .card-title { font-size: 28px; margin: 0; color: var(--dark-2); }
.dm-year__count { color: var(--text-dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.dm-year__icon { color: var(--accent); font-size: 20px; margin-bottom: 10px; display: block; }
.dm-year:hover .card-title { color: var(--accent); }

/* ---------- Severità / CVSS ---------- */
.dm-sev {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 54px; padding: 4px 10px; border-radius: 99px;
    font-size: 13px; font-weight: 700; line-height: 1.3; color: #fff; background: var(--sev-none);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dm-sev--critical { background: var(--sev-critical); }
.dm-sev--high { background: var(--sev-high); }
.dm-sev--medium { background: var(--sev-medium); }
.dm-sev--low { background: var(--sev-low); }
.dm-sev--na { background: transparent; color: var(--text-dim); border: 1px dashed var(--line); }
.dm-sev--lg { font-size: 15px; padding: 7px 14px; }

/* ---------- Elenco CVE ---------- */
.dm-toolbar {
    display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px;
    padding: 16px 18px; margin-bottom: 20px;
    background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
}
.dm-toolbar label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.dm-toolbar select, .dm-toolbar input {
    min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--bg-0); color: var(--text); font: inherit; font-size: 15px;
}
.dm-toolbar__meta { margin-left: auto; color: var(--text-dim); font-size: 14px; align-self: center; }

.dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; align-items: center;
    padding: 16px 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.dm-item:hover { border-color: #b9d3df; box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--text); }
.dm-item__id { font-family: var(--font-mono); font-weight: 700; font-size: 15.5px; color: var(--dark-2); white-space: nowrap; }
.dm-item:hover .dm-item__id { color: var(--accent); }
.dm-item__summary {
    color: var(--text-dim); font-size: 14.5px; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-item__date { color: var(--text-dim); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dm-tag {
    display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
    background: var(--bg-2); color: var(--accent-2); border: 1px solid var(--line);
}
.dm-tag--team { background: rgba(0, 178, 178, .12); color: #006b6b; border-color: rgba(0, 178, 178, .35); }
.dm-tag--rejected { background: #fdecec; color: var(--sev-critical); border-color: #f5c2c2; }
@media (max-width: 640px) {
    .dm-item { grid-template-columns: 1fr auto; }
    .dm-item__summary { grid-column: 1 / -1; grid-row: 2; }
    .dm-item__side { flex-direction: row; align-items: center; }
}
.dm-empty { text-align: center; padding: 48px 20px; color: var(--text-dim); }

/* Paginazione (Bootstrap 5) */
.pagination { gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 0; }
.pagination .page-link {
    border-radius: var(--radius-sm) !important; border: 1px solid var(--line); color: var(--accent-2);
    min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-link:hover { background: var(--bg-2); color: var(--accent); }
.pagination .page-item.disabled .page-link { color: #9db0ba; background: var(--bg-0); }
nav[role="navigation"] p.small { text-align: center; color: var(--text-dim); }

/* ---------- Dettaglio CVE ---------- */
.dm-cve-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.dm-cve-head h1 { margin: 0; font-family: var(--font-mono); letter-spacing: -.01em; }
.dm-score {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-top: 24px; width: fit-content; max-width: 100%;
    border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.dm-score__value { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dm-score__label { font-size: 13px; color: rgba(216, 238, 247, .85); }
.dm-score__label strong { display: block; font-size: 15px; color: #fff; }
.dm-score__vector { font-family: var(--font-mono); font-size: 12.5px; color: var(--on-dark); word-break: break-all; }

.dm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .dm-detail { grid-template-columns: 1fr; } }
.dm-detail .dm-card + .dm-card { margin-top: 24px; }
.dm-detail h2 { font-size: 20px; margin-bottom: 14px; }
.dm-summary { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0; white-space: pre-line; }
.dm-facts { margin: 0; display: grid; gap: 14px; }
.dm-facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.dm-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dm-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.dm-links a:hover { border-color: var(--accent); background: var(--bg-2); }
.dm-team-credit { border-color: rgba(0, 178, 178, .4); background: linear-gradient(180deg, rgba(0, 178, 178, .08), #fff 70%); }
.dm-team-credit .dm-eyebrow { color: #006b6b; }

.dm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dm-table th { text-align: left; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); background: var(--bg-2); padding: 10px 14px; white-space: nowrap; }
.dm-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.dm-table td.dm-mono { font-size: 13.5px; }
.dm-note { color: var(--text-dim); font-size: 13.5px; margin: 10px 0 0; }
.dm-phase { padding: 14px 0; border-top: 1px solid var(--line); }
.dm-phase:first-child { border-top: 0; padding-top: 0; }
.dm-phase strong { display: block; color: var(--accent-2); margin-bottom: 4px; }

/* ---------- Home ---------- */
.dm-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.dm-feature--reverse .dm-feature__media { order: -1; }
.dm-feature__media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.dm-feature p { color: var(--text-dim); font-size: 1.05rem; }
@media (max-width: 860px) { .dm-feature { grid-template-columns: 1fr; } .dm-feature--reverse .dm-feature__media { order: 0; } }

.dm-team { background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 70%); color: #fff; }
.dm-team h2 { color: #fff; }
.dm-team .dm-eyebrow { color: var(--on-dark); }
.dm-team__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.dm-team__total { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.dm-team__number { font-family: var(--font-display); font-size: clamp(64px, 11vw, 112px); font-weight: 800; line-height: .9; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.dm-team__label { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: #d8eef7; max-width: 18ch; line-height: 1.3; }
.dm-team__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.dm-team__stat { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); min-width: 120px; }
.dm-team__stat b { display: block; font-family: var(--font-display); font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.dm-team__stat span { font-size: 13px; color: rgba(216, 238, 247, .85); }
.dm-researchers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dm-researcher { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 22px; }
.dm-researcher__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dm-researcher h3 { color: #fff; margin: 0; font-size: 19px; }
.dm-researcher__role { font-size: 13px; color: var(--on-dark); margin: 2px 0 0; }
.dm-researcher__count { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.dm-researcher ul { list-style: none; padding: 0; margin: 0; }
.dm-researcher li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.dm-researcher li a { color: #e6f4fa; font-family: var(--font-mono); font-size: 14px; text-decoration: none; }
.dm-researcher li a:hover { color: #fff; text-decoration: underline; }
.dm-researcher .dm-sev { font-size: 12px; min-width: 44px; padding: 2px 8px; }

/* ---------- Footer ---------- */
.dm-footer { background: var(--dark-2); color: rgba(216, 238, 247, .85); padding-block: 56px 28px; font-size: 14.5px; }
.dm-footer h2 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.dm-footer a { color: #e6f4fa; }
.dm-footer a:hover { color: #fff; }
.dm-footer p { margin: 0 0 6px; }
.dm-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .dm-footer__grid { grid-template-columns: 1fr; } }
.dm-footer__logo { height: 34px; width: auto; margin-bottom: 14px; }
.dm-footer__certs-row { margin-top: 40px; padding: 24px 0 4px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: center; }
.dm-footer__certs { display: block; width: 100%; max-width: 820px; height: auto; }
.dm-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.dm-footer__social { display: flex; gap: 10px; }
.dm-footer__social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 17px; text-decoration: none; }
.dm-footer__social a:hover { background: rgba(255, 255, 255, .14); }

/* Login e form legacy: leggibilità */
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem var(--accent-glow); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: var(--accent-2); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Altre CVE dello stesso prodotto */
.dm-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.dm-related__head h2 { margin: 0; }
.dm-related__count { color: var(--text-dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.dm-related { list-style: none; margin: 0; padding: 0; }
.dm-related li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.dm-related li:first-child { border-top: 0; }
.dm-related li a { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: var(--text); }
.dm-related li a:hover .dm-item__id { color: var(--accent); text-decoration: underline; }
.dm-related__summary { color: var(--text-dim); font-size: 14px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.dm-related__all { margin-top: 14px; }

/* Scoperta da Dottor Marc: badge nell'hero e fascia in evidenza */
.dm-team-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 99px;
    background: linear-gradient(135deg, #007a85, #005f6b);
    color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .01em;
    box-shadow: 0 0 0 3px rgba(0, 178, 178, .45), 0 10px 28px -8px rgba(0, 178, 178, .7);
}
.dm-team-badge:hover { color: #fff; filter: brightness(1.08); }
.dm-team-badge i { font-size: 17px; }

.dm-discovery {
    background: linear-gradient(120deg, #005f6b 0%, #00727d 55%, #007a85 100%);
    box-shadow: inset 0 4px 0 #00b2b2;
    color: #fff; padding-block: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.dm-discovery__inner { display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap; }
.dm-discovery__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 18px; font-size: 32px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.dm-discovery__text { flex: 1 1 320px; min-width: 0; }
.dm-discovery__eyebrow { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d9fbfb; }
.dm-discovery__title { margin: 2px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.25; color: #fff; }
.dm-discovery__people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dm-discovery__people li { padding: 4px 12px; border-radius: 99px; background: rgba(0, 41, 63, .35); font-weight: 600; font-size: 14px; }
.dm-discovery__cta { flex: none; }
.dm-tag--team i { margin-right: 2px; }

/* Box ricercatore: elenco completo scorrevole */
.dm-researcher { display: flex; flex-direction: column; }
.dm-researcher__list {
    max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
    margin: 0 -10px 0 0 !important; padding: 0 10px 0 0 !important;
    scrollbar-width: thin; scrollbar-color: rgba(143, 208, 234, .55) transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
    padding-bottom: 20px !important;
}
.dm-researcher__list:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 4px; border-radius: 6px; }
.dm-researcher__list::-webkit-scrollbar { width: 6px; }
.dm-researcher__list::-webkit-scrollbar-thumb { background: rgba(143, 208, 234, .55); border-radius: 99px; }
.dm-researcher__list li a { flex: 1; }
.dm-researcher__date { color: rgba(216, 238, 247, .7); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contiene gli elementi .visually-hidden (position:absolute) dentro badge ed elenchi scorrevoli:
   senza, quelli delle voci nascoste dallo scroll allungavano la pagina oltre il footer. */
.dm-sev, .dm-researcher__list, .dm-researcher__list li { position: relative; }

/* Selettore lingua a bandierina */
.dm-lang {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    min-height: 42px; padding: 6px 12px 6px 8px; border-radius: 99px;
    border: 1px solid rgba(127, 196, 227, .45); background: rgba(127, 196, 227, .12);
    color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
    transition: background .2s, border-color .2s;
}
.dm-lang:hover, .dm-lang:focus-visible { color: #fff; background: rgba(127, 196, 227, .24); border-color: var(--on-dark); }
.dm-flag { width: 24px; height: 16px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); overflow: hidden; }
@media (max-width: 860px) { .dm-lang { margin-top: 12px; } }

/* Elenchi puntati delle sezioni servizio in homepage */
.dm-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.dm-checks li { position: relative; padding-left: 30px; color: var(--text-dim); line-height: 1.55; }
.dm-checks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M13.5 4.5 6.5 11.5 3 8l1.1-1.1 2.4 2.4 5.9-5.9z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dm-checks strong { color: var(--text); }
.dm-checks em { font-style: normal; color: var(--text); font-weight: 600; }
.dm-feature__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Sezione ricercatori: testo introduttivo, prodotto per CVE, call to action */
.dm-team__intro { max-width: 78ch; margin: -12px 0 32px; color: #d8eef7; font-size: 1.05rem; line-height: 1.7; }
.dm-team__intro p { margin: 0 0 10px; }
.dm-team__intro strong { color: #fff; }
.dm-researcher li a { display: flex; flex-direction: column; min-width: 0; }
.dm-researcher__cve { font-family: var(--font-mono); font-size: 14px; color: #e6f4fa; }
.dm-researcher li a:hover .dm-researcher__cve { color: #fff; text-decoration: underline; }
.dm-researcher__product { font-family: var(--font-body); font-size: 12.5px; color: rgba(216, 238, 247, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-team__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 32px; padding: 20px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.dm-team__cta p { margin: 0; color: #d8eef7; max-width: 60ch; }
.dm-researcher__link { color: #fff; text-decoration: none; }
.dm-researcher__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.dm-researcher__link i { font-size: .65em; color: var(--on-dark); vertical-align: .15em; }
.dm-feature__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.dm-team__intro a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(143, 208, 234, .6); text-underline-offset: 3px; }
.dm-team__intro a:hover { text-decoration-color: #fff; }

/* Impatti delle vulnerabilità scoperte dal team */
.dm-impacts { margin: 0 0 36px; }
.dm-impacts__title { color: #fff; font-size: clamp(18px, 2vw, 21px); margin-bottom: 14px; }
.dm-impacts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.dm-impact {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
    border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-top: 3px solid var(--on-dark);
}
.dm-impact--no_auth { border-top-color: #ffd166; }
.dm-impact--full { border-top-color: #ff6b6b; background: rgba(255, 107, 107, .08); }
.dm-impact__n { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dm-impact__label { font-weight: 700; color: #fff; font-size: 15px; }
.dm-impact__text { color: rgba(216, 238, 247, .8); font-size: 13.5px; line-height: 1.45; }
.dm-impacts__note { margin: 10px 0 0; font-size: 12.5px; color: rgba(216, 238, 247, .65); }

/* Suggerimenti di ricerca ricchi */
.dm-search__suggest { width: min(560px, calc(100vw - 32px)); left: auto; right: 0; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; }
@media (max-width: 860px) { .dm-search__suggest { left: 0; width: 100%; } }
.dm-search__suggest li { list-style: none; }
.dm-suggest__group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.dm-search__suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-family: var(--font-body); text-decoration: none; }
.dm-search__suggest a:hover, .dm-search__suggest a.is-active { background: var(--bg-2); color: var(--text); }
.dm-search__suggest a.is-team { background: linear-gradient(90deg, rgba(0, 178, 178, .12), transparent 70%); box-shadow: inset 3px 0 0 #00869b; }
.dm-search__suggest a.is-team:hover, .dm-search__suggest a.is-team.is-active { background: linear-gradient(90deg, rgba(0, 178, 178, .2), var(--bg-2) 70%); }
.dm-suggest__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dm-suggest__name { font-weight: 700; font-size: 14.5px; color: var(--dark-2); }
.dm-suggest__name.dm-mono { font-family: var(--font-mono); }
.dm-suggest__meta { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-suggest__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.dm-suggest__date, .dm-suggest__count { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-suggest__product::before { content: "\F2EE"; font-family: "bootstrap-icons"; color: var(--accent); font-size: 16px; }
.dm-search__suggest .dm-sev { min-width: 46px; font-size: 12px; padding: 3px 8px; }
.dm-suggest__all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; font-weight: 600; color: var(--accent) !important; }
.dm-suggest__empty { padding: 14px 12px; color: var(--text-dim); font-size: 14px; }

/* Righe delle CVE scoperte da Dottor Marc negli elenchi */
.dm-item.is-team {
    border-color: rgba(0, 134, 155, .45);
    background: linear-gradient(90deg, rgba(0, 178, 178, .10), #fff 55%);
    box-shadow: inset 4px 0 0 #00869b;
}
.dm-item.is-team:hover { border-color: #00869b; box-shadow: inset 4px 0 0 #00869b, var(--shadow-md); }
.dm-item.is-team .dm-item__id { color: #005f6b; }
.dm-related li.is-team { margin: 0 -12px; padding-inline: 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(0, 178, 178, .10), transparent 70%); box-shadow: inset 3px 0 0 #00869b; }
.dm-related li.is-team + li { border-top-color: transparent; }

/* Hero a due colonne con grafico dell'andamento CVE */
.dm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .dm-hero__grid { grid-template-columns: 1fr; } }
.dm-trend { margin: 0; animation: dm-float 9s ease-in-out infinite; }
.dm-trend__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.dm-trend__title { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.dm-trend__value { color: rgba(216, 238, 247, .85); font-size: 14px; }
.dm-trend__value strong { font-family: var(--font-display); font-size: 28px; color: #fff; font-variant-numeric: tabular-nums; margin-right: 4px; }
.dm-trend__svg { display: block; width: 100%; height: auto; aspect-ratio: 560 / 300; overflow: visible; }
.dm-trend__grid line { stroke: rgba(143, 208, 234, .14); stroke-width: 1; stroke-dasharray: 3 6; }
.dm-trend__grid .dm-trend__base { stroke: rgba(143, 208, 234, .35); stroke-dasharray: none; }
.dm-trend__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dm-draw 2.4s var(--ease-out) .2s forwards; filter: drop-shadow(0 4px 10px rgba(0, 224, 208, .35)); }
.dm-trend__area { opacity: 0; animation: dm-fade 1.2s ease 1.4s forwards, dm-breathe 6s ease-in-out 2.6s infinite; transform-origin: 50% 100%; }
.dm-trend__dot { fill: #00e0d0; stroke: #00293f; stroke-width: 3; opacity: 0; animation: dm-fade .4s ease 2.4s forwards; }
.dm-trend__pulse { fill: #00e0d0; opacity: 0; transform-box: fill-box; transform-origin: center; animation: dm-pulse 2.4s ease-out 2.6s infinite; }
.dm-trend__axis text { fill: rgba(216, 238, 247, .7); font-size: 13px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
@keyframes dm-draw { to { stroke-dashoffset: 0; } }
@keyframes dm-fade { to { opacity: 1; } }
@keyframes dm-breathe { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .8; transform: scaleY(.97); } }
@keyframes dm-pulse { 0% { opacity: .55; transform: scale(.4); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes dm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
    .dm-trend, .dm-trend__area, .dm-trend__pulse { animation: none !important; }
    .dm-trend__line { stroke-dashoffset: 0; animation: none !important; }
    .dm-trend__area, .dm-trend__dot { opacity: 1; }
}

/* Classifica ricercatori CVE */
.dm-board__stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dm-board__updated { margin: 14px 0 0; font-size: 13px; color: rgba(216, 238, 247, .7); }
.dm-board__toolbar { align-items: flex-end; justify-content: space-between; }
.dm-board__search { flex: 1 1 360px; }
.dm-board__search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-board__search-row input { flex: 1 1 220px; }
.dm-board__unattributed { margin: 0; color: var(--text-dim); font-size: 14px; cursor: help; }
.dm-board { font-size: 15px; }
.dm-board td { vertical-align: middle; }
.dm-board__rank { width: 64px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 700; }
.dm-board__flag { width: 44px; text-align: center; }
.dm-board__flag img { display: inline-block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(8, 32, 44, .12); vertical-align: middle; }
.dm-board__name { font-weight: 600; }
.dm-board__forms { margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--accent-2); background: var(--bg-2); border: 1px solid var(--line); cursor: help; white-space: nowrap; }
.dm-board__cves { width: 90px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-board__note { margin: 14px 0 0; font-size: 14px; color: var(--text-dim); }
.dm-board__method { margin-top: 32px; }
.dm-board__method p { color: var(--text-dim); }
.dm-board__method strong { color: var(--text); }
.dm-board__contact { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.dm-board__contact h3 { font-size: 18px; }
.dm-board__phone { margin-left: 12px; color: var(--text-dim); font-size: 14px; }

/* Timeline degli anni (pagina Vulnerabilità) */
.dm-timeline__title { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.dm-timeline__hint { color: var(--text-dim); margin: 0 0 18px; font-size: 14.5px; }
.dm-timeline { position: relative; }
.dm-timeline__track {
    list-style: none; margin: 0; padding: 8px 4px 4px; display: flex; gap: 6px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    position: relative;
}
.dm-timeline__track::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 42px; height: 2px; min-width: 100%;
    background: linear-gradient(90deg, var(--line), var(--accent) 85%, var(--accent-3));
}
.dm-timeline__item { flex: 1 0 58px; scroll-snap-align: center; position: relative; }
.dm-timeline__link { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text); padding: 0 2px; border-radius: 10px; }
.dm-timeline__bar {
    position: relative; display: flex; align-items: flex-end; justify-content: center;
    width: 26px; height: 180px; margin-bottom: 10px;
}
.dm-timeline__bar::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h);
    border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #7fc4e3, var(--accent));
    opacity: .55; transition: opacity .2s, transform .2s var(--ease-out); transform-origin: bottom;
}
.dm-timeline__count {
    position: absolute; bottom: calc(var(--h) + 6px); left: 50%; transform: translateX(-50%) rotate(-60deg); transform-origin: left bottom;
    font-size: 11.5px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s;
}
.dm-timeline__node { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); position: relative; z-index: 1; transition: transform .2s var(--ease-out), background .2s; }
.dm-timeline__year { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--dark-2); font-variant-numeric: tabular-nums; }
.dm-timeline__link:hover .dm-timeline__bar::before, .dm-timeline__link:focus-visible .dm-timeline__bar::before { opacity: 1; transform: scaleY(1.03); }
.dm-timeline__link:hover .dm-timeline__count, .dm-timeline__link:focus-visible .dm-timeline__count { opacity: 1; }
.dm-timeline__link:hover .dm-timeline__node, .dm-timeline__link:focus-visible .dm-timeline__node { transform: scale(1.35); background: var(--accent); }
.dm-timeline__link:hover .dm-timeline__year { color: var(--accent); }
.dm-timeline__item.is-latest .dm-timeline__node { background: var(--accent-3); border-color: var(--accent-3); box-shadow: 0 0 0 6px rgba(0, 178, 178, .18); }
.dm-timeline__item.is-latest .dm-timeline__bar::before { opacity: .9; }
.dm-timeline__item.is-latest .dm-timeline__count { opacity: 1; }
@media (max-width: 640px) { .dm-timeline__bar { height: 130px; } .dm-timeline__item { flex-basis: 52px; } }

/* Classifica: i nostri ricercatori */
.dm-board__team {
    display: flex; gap: 16px; align-items: flex-start; margin: 0 0 20px; padding: 18px 20px;
    border-radius: var(--radius); border: 1px solid rgba(0, 134, 155, .4);
    background: linear-gradient(90deg, rgba(0, 178, 178, .12), #fff 70%); box-shadow: inset 4px 0 0 #00869b;
}
.dm-board__team-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #00727d; color: #fff; font-size: 22px; }
.dm-board__team h2 { font-size: 17px; margin: 2px 0 8px; }
.dm-board__team ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dm-board__team a { color: var(--text); text-decoration: none; font-weight: 600; }
.dm-board__team a:hover { color: #005f6b; text-decoration: underline; }
.dm-board__team strong { color: #005f6b; font-variant-numeric: tabular-nums; }
.dm-board__team span { color: var(--text-dim); font-weight: 500; }
.dm-board tr.is-team td { background: rgba(0, 178, 178, .10); }
.dm-board tr.is-team td:first-child { box-shadow: inset 4px 0 0 #00869b; }
.dm-board__link { color: var(--text); text-decoration: none; }
.dm-board__link:hover { color: var(--accent); text-decoration: underline; }
.dm-board .dm-tag--team { margin-left: 6px; font-size: 11.5px; }

/* Pagina del ricercatore */
.dm-rsearch__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dm-rsearch__head h1 { margin: 0; }
.dm-rsearch__flag { width: 36px; height: 27px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.dm-rsearch__forms { margin-top: 18px; }
.dm-rsearch__forms summary { cursor: pointer; color: var(--on-dark); font-weight: 600; }
.dm-rsearch__forms ul { margin: 10px 0 0; padding-left: 18px; color: #d8eef7; font-size: 14px; }

/* Àncore della classifica: margine per la barra fissa e evidenza della riga raggiunta */
.dm-board tr[id] { scroll-margin-top: 110px; }
.dm-board tr.is-target td { animation: dm-target 2.4s ease-out 1; }
@keyframes dm-target { 0%, 35% { background: rgba(0, 178, 178, .32); } 100% { background: rgba(0, 178, 178, .10); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.dm-trend__ticks line { stroke: rgba(143, 208, 234, .45); stroke-width: 1.5; }
.dm-trend__points circle { fill: #8fd0ea; stroke: #00293f; stroke-width: 2; opacity: 0; animation: dm-fade .4s ease 2.2s forwards; }
@media (prefers-reduced-motion: reduce) { .dm-trend__points circle { opacity: 1; animation: none; } }

/* "Cerca un ricercatore": campo a pillola come la ricerca CVE, su sfondo chiaro */
.dm-finder { position: relative; display: flex; align-items: center; }
.dm-finder__icon { position: absolute; left: 18px; color: var(--accent); font-size: 17px; pointer-events: none; }
.dm-finder input {
    width: 100%; min-height: 52px; padding: 12px 150px 12px 48px; border-radius: 99px;
    border: 1px solid var(--line); background: var(--bg-0); color: var(--text); font: inherit; font-size: 16px;
    box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, background .2s;
}
.dm-finder input::placeholder { color: #7d929d; }
.dm-finder input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md); }
.dm-finder input::-webkit-search-cancel-button { display: none; }
.dm-finder__submit {
    position: absolute; right: 5px; min-height: 42px; padding: 8px 20px; border: 0; border-radius: 99px; cursor: pointer;
    color: #fff; font: inherit; font-weight: 600; font-size: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 18px -8px var(--accent-glow);
}
.dm-finder__submit:hover { filter: brightness(1.08); }
.dm-finder__clear { position: absolute; right: 110px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); text-decoration: none; }
.dm-finder__clear:hover { background: var(--bg-2); color: var(--text); }
.dm-finder__suggest { left: 0; right: auto; width: 100%; top: calc(100% + 8px); }
.dm-suggest__flag { flex: none; width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(8, 32, 44, .12); font-size: 15px; line-height: 15px; text-align: center; }
.dm-board__search label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
@media (max-width: 520px) { .dm-finder input { padding-right: 110px; } .dm-finder__submit { padding: 8px 14px; } .dm-finder__clear { right: 84px; } }

/* Classifica per nazione */
.dm-board__toolbar { gap: 16px 20px; }
.dm-board__country { flex: 0 1 300px; }
.dm-board__country label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.dm-country { position: relative; display: flex; align-items: center; }
.dm-country__flag { position: absolute; left: 18px; width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(8, 32, 44, .12); pointer-events: none; }
.dm-country__globe { box-shadow: none; color: var(--accent); font-size: 17px; height: auto; top: 50%; transform: translateY(-50%); }
.dm-country select {
    width: 100%; min-height: 52px; padding: 12px 40px 12px 48px; border-radius: 99px; border: 1px solid var(--line);
    background: var(--bg-0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300648f'%3E%3Cpath d='M1.6 5.2 8 11.6l6.4-6.4-1.1-1.1L8 9.4 2.7 4.1z'/%3E%3C/svg%3E") no-repeat right 18px center / 14px;
    appearance: none; -webkit-appearance: none; color: var(--text); font: inherit; font-size: 15.5px; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.dm-country select:focus { outline: none; background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md); }
.dm-board__country-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.dm-board__country-summary img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(8, 32, 44, .12); }
.dm-board__country-summary p { margin: 0; flex: 1 1 260px; }
.dm-board__grank { display: block; font-size: 11px; font-weight: 600; color: #8aa0ab; white-space: nowrap; }
.dm-board__rank { width: 84px; }
.dm-country .dm-country__input {
    width: 100%; min-height: 52px; padding: 12px 18px 12px 48px; border-radius: 99px; border: 1px solid var(--line);
    background: var(--bg-0); color: var(--text); font: inherit; font-size: 15.5px; box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.dm-country .dm-country__input::placeholder { color: #7d929d; }
.dm-country .dm-country__input::-webkit-search-cancel-button { display: none; }
.dm-country .dm-country__input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md); }
.dm-search__suggest a.is-current { background: var(--bg-2); box-shadow: inset 3px 0 0 var(--accent); }
.dm-country noscript select { margin-top: 8px; }
.dm-board__country { flex: 0 1 320px; }

/* la bandierina resta centrata verticalmente nel campo nazione */
.dm-country .dm-country__flag { top: 50%; transform: translateY(-50%); z-index: 1; }
.dm-board__hint { display: block; margin-top: 4px; max-width: 26ch; font-size: 12px; line-height: 1.35; color: rgba(216, 238, 247, .7); }

/* Pagine di testo (privacy, security policy) */
.dm-prose { max-width: 820px; }
.dm-prose h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 32px 0 10px; }
.dm-prose h2:first-child { margin-top: 0; }
.dm-prose p, .dm-prose li { color: var(--text); line-height: 1.7; }
.dm-prose ul, .dm-prose ol { padding-left: 22px; margin: 0 0 14px; }
.dm-prose li { margin-bottom: 6px; }
.dm-prose code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; color: var(--accent-2); }
.dm-prose .dm-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Crediti della scheda CVE con link ai profili */
.dm-credits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.dm-credits li { font-weight: 500; line-height: 1.45; }
.dm-credits__link { font-weight: 700; color: var(--accent-2); text-decoration: none; }
.dm-credits__link:hover { color: var(--accent); text-decoration: underline; }
.dm-credits__rank { margin-left: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.dm-credits__sep { margin-right: 6px; }
.dm-credits__raw { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-dim); overflow-wrap: anywhere; }
.dm-credits__type { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--line); vertical-align: 1px; }
.dm-credits__plain { overflow-wrap: anywhere; }

/* Pagina ricercatore: spazio tra nome/badge e testo introduttivo */
.dm-rsearch__head { margin-bottom: 18px; row-gap: 10px; }
.dm-rsearch__head + .dm-lead { margin-top: 0; }

/* Pagina "La nostra ricerca" */
.dm-rs__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 28px; }
.dm-rs__kpi { padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.dm-rs__kpi b { display: block; font-family: var(--font-display); font-size: 30px; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dm-rs__kpi span { font-size: 13.5px; color: rgba(216, 238, 247, .85); }
.dm-rs__kpi--main { grid-column: span 2; background: linear-gradient(120deg, rgba(0, 178, 178, .28), rgba(255, 255, 255, .06)); border-color: rgba(0, 178, 178, .6); }
.dm-rs__kpi--main b { font-size: 46px; color: #fff; }
@media (max-width: 520px) { .dm-rs__kpi--main { grid-column: auto; } }
.dm-rs__flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; counter-reset: none; }
.dm-rs__step { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-1); box-shadow: var(--shadow-sm); }
.dm-rs__step-n { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--accent); font-size: 20px; }
.dm-rs__step:nth-child(3) .dm-rs__step-n, .dm-rs__step:nth-child(4) .dm-rs__step-n { background: #00727d; color: #fff; }
.dm-rs__step strong { display: block; color: var(--dark-2); margin-bottom: 2px; }
.dm-rs__step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.dm-rs__split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .dm-rs__split { grid-template-columns: 1fr; } }
.dm-rs__split p { color: var(--text-dim); }
.dm-rs__sev { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dm-rs__sevrow { display: grid; grid-template-columns: 74px 1fr 56px; align-items: center; gap: 12px; }
.dm-rs__sevname { font-weight: 700; font-size: 14px; }
.dm-rs__sevrow b { text-align: right; font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.dm-rs__sevbar { height: 14px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.dm-rs__sevbar span { display: block; height: 100%; border-radius: 99px; }
.dm-rs__sevrow--critical .dm-rs__sevbar span { background: var(--sev-critical); } .dm-rs__sevrow--critical .dm-rs__sevname { color: var(--sev-critical); }
.dm-rs__sevrow--high .dm-rs__sevbar span { background: var(--sev-high); } .dm-rs__sevrow--high .dm-rs__sevname { color: var(--sev-high); }
.dm-rs__sevrow--medium .dm-rs__sevbar span { background: var(--sev-medium); } .dm-rs__sevrow--medium .dm-rs__sevname { color: var(--sev-medium); }
.dm-rs__sevrow--low .dm-rs__sevbar span { background: var(--sev-low); } .dm-rs__sevrow--low .dm-rs__sevname { color: var(--sev-low); }
.dm-rs__chart { margin-top: 36px; padding: 22px; border-radius: var(--radius); background: var(--dark-2); }
.dm-rs__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.dm-rs__filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-1); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.dm-rs__filters button span { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--bg-2); color: var(--text-dim); }
.dm-rs__filters button.is-on { background: var(--dark-2); color: #fff; border-color: var(--dark-2); }
.dm-rs__filters button.is-on span { background: rgba(255, 255, 255, .15); color: #fff; }
.dm-rs__filter--critical.is-on { background: var(--sev-critical); border-color: var(--sev-critical); }
.dm-rs__filter--high.is-on { background: var(--sev-high); border-color: var(--sev-high); }
.dm-rs__filter--medium.is-on { background: var(--sev-medium); border-color: var(--sev-medium); }
.dm-rs__filter--low.is-on { background: var(--sev-low); border-color: var(--sev-low); }
.dm-rs__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.dm-rs__card { --sev: var(--sev-none); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 5px solid var(--sev); overflow: hidden; }
.dm-rs__card::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 120px; height: 120px; background: radial-gradient(circle at top right, var(--sev), transparent 70%); opacity: .08; pointer-events: none; }
.dm-rs__card--critical { --sev: var(--sev-critical); } .dm-rs__card--high { --sev: var(--sev-high); } .dm-rs__card--medium { --sev: var(--sev-medium); } .dm-rs__card--low { --sev: var(--sev-low); }
.dm-rs__card-top { display: flex; align-items: center; justify-content: space-between; }
.dm-rs__cvss { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--sev); line-height: 1; font-variant-numeric: tabular-nums; }
.dm-rs__sevtag { padding: 3px 10px; border-radius: 99px; background: var(--sev); color: #fff; font-size: 12px; font-weight: 700; }
.dm-rs__card h3 { margin: 4px 0 0; font-size: 17px; color: var(--dark-2); }
.dm-rs__card h3 small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: 0; }
.dm-rs__type { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dm-rs__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--text-dim); }
.dm-rs__meta a { font-weight: 700; }
.dm-rs__known { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: #005f6b; }
.dm-rs__known i { color: #00869b; }
.dm-rs__offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .dm-rs__offer { grid-template-columns: 1fr; } }
.dm-rs__offer > div > p { color: #d8eef7; font-size: 1.05rem; }
.dm-rs__checks li { color: #d8eef7; }
.dm-rs__cta { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dm-rs__cta h3 { color: #fff; margin: 0; }
.dm-rs__cta p { color: #d8eef7; margin: 0; }

/* Riquadri anonimi delle vulnerabilità sotto embargo */
.dm-rs__tiles-wrap { margin-top: 40px; }
.dm-rs__tiles-wrap h3 { font-size: clamp(19px, 2.2vw, 23px); margin-bottom: 4px; }
.dm-rs__legend { list-style: none; margin: 14px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-dim); }
.dm-rs__legend b { display: inline-block; min-width: 38px; padding: 1px 6px; margin-right: 4px; border-radius: 5px; background: var(--dark-2); color: #fff; font-size: 11px; text-align: center; }
.dm-rs__legend span { margin-left: 4px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dm-rs__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 4px; }
.dm-rs__tile {
    --sev: var(--sev-none); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    border-radius: 7px; background: var(--sev); color: #fff; cursor: default; transition: transform .15s var(--ease-out);
}
.dm-rs__tile:hover { transform: scale(1.12); position: relative; z-index: 1; box-shadow: var(--shadow-md); }
.dm-rs__tile span { font-size: 9.5px; font-weight: 700; letter-spacing: .03em; opacity: .9; line-height: 1; }
.dm-rs__tile b { font-family: var(--font-display); font-size: 15px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dm-rs__tile--critical { --sev: var(--sev-critical); } .dm-rs__tile--high { --sev: var(--sev-high); } .dm-rs__tile--medium { --sev: var(--sev-medium); } .dm-rs__tile--low { --sev: var(--sev-low); }
@media (max-width: 520px) { .dm-rs__tiles { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); } .dm-rs__tile b { font-size: 13px; } }

/* Timeline "Protezione prima della divulgazione" */
.dm-tl {
    --tl-y: 92px; position: relative; margin-top: 34px;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 14px; padding-top: 44px;
}
.dm-tl::before {   /* la linea del tempo */
    content: ""; position: absolute; left: 4%; right: 4%; top: var(--tl-y); height: 4px; border-radius: 99px;
    background: linear-gradient(90deg, #7fc4e3 0%, var(--accent) 22%, #00869b 35%, #00a3a8 70%, var(--sev-high) 92%);
}
.dm-tl__band { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 14px; pointer-events: none; }
.dm-tl__band-ours {
    grid-column: 2 / 6; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 4px 12px;
    border-radius: 99px; background: linear-gradient(90deg, #005f6b, #007a85); color: #fff; font-size: 13px; font-weight: 700; text-align: center;
    box-shadow: 0 8px 20px -10px rgba(0, 114, 125, .8);
}
.dm-tl__band-others {
    grid-column: 2 / 6; grid-row: 2; margin-top: 140px; display: none;
}
.dm-tl__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 0; }
.dm-tl__when { height: 20px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.dm-tl__node {
    position: relative; z-index: 1; width: 56px; height: 56px; margin: 6px 0 14px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
    background: #fff; color: var(--accent); border: 4px solid var(--accent); box-shadow: 0 0 0 6px var(--bg-0), var(--shadow-md);
    transition: transform .2s var(--ease-out);
}
.dm-tl__step:hover .dm-tl__node { transform: scale(1.08); }
.dm-tl__step.is-protected .dm-tl__node { background: #00727d; border-color: #00b2b2; color: #fff; box-shadow: 0 0 0 6px var(--bg-0), 0 0 0 10px rgba(0, 178, 178, .2), var(--shadow-md); }
.dm-tl__step.is-public .dm-tl__node { border-color: var(--sev-high); color: var(--sev-high); }
.dm-tl__step.is-public .dm-tl__when { color: var(--sev-high); }
.dm-tl__title { font-family: var(--font-display); font-size: 15.5px; color: var(--dark-2); line-height: 1.25; margin-bottom: 6px; }
.dm-tl__step.is-protected .dm-tl__title { color: #005f6b; }
.dm-tl__text { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

/* sotto i 960px: timeline verticale */
@media (max-width: 960px) {
    .dm-tl { --tl-x: 27px; grid-template-columns: 1fr; gap: 18px; padding-top: 0; }
    .dm-tl::before { left: calc(var(--tl-x) - 2px); right: auto; top: 10px; bottom: 10px; width: 4px; height: auto;
        background: linear-gradient(180deg, #7fc4e3 0%, var(--accent) 22%, #00869b 35%, #00a3a8 70%, var(--sev-high) 92%); }
    .dm-tl__band { position: static; display: block; margin-bottom: 4px; }
    .dm-tl__band-ours { margin-left: 70px; justify-content: flex-start; text-align: left; }
    .dm-tl__step { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; text-align: left; align-items: start; }
    .dm-tl__node { grid-column: 1; grid-row: 1 / 4; margin: 0; }
    .dm-tl__when { grid-column: 2; height: auto; }
    .dm-tl__title { grid-column: 2; }
    .dm-tl__text { grid-column: 2; }
}
.dm-rs__pending { display: flex; gap: 16px; align-items: center; margin: 18px 0 4px; padding: 16px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed #9bbccb; }
.dm-rs__pending-n { flex: none; font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.dm-rs__pending strong { display: block; color: var(--dark-2); }
.dm-rs__pending p { margin: 4px 0 0; color: var(--text-dim); font-size: 14.5px; }

/* Footer: Dottor Marc e Dottor Box con logo e descrizione */
.dm-footer__brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 36px; }
.dm-footer__brand {
    display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
.dm-footer__brand:hover { background: rgba(255, 255, 255, .09); border-color: rgba(143, 208, 234, .45); transform: translateY(-2px); }
.dm-footer__brand img { height: 32px; width: auto; align-self: flex-start; }
.dm-footer__brand p { margin: 0; color: rgba(216, 238, 247, .85); font-size: 14.5px; line-height: 1.6; }
.dm-footer__brand-cta { margin-top: auto; color: #fff; font-weight: 700; font-size: 14px; }
.dm-footer__brand:hover .dm-footer__brand-cta { color: var(--on-dark); }

/* Sfera 3D delle vulnerabilità sotto embargo */
.dm-orb { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; margin-top: 18px;
    padding: 24px; border-radius: 22px; background: radial-gradient(120% 90% at 30% 40%, #00435f 0%, var(--dark-2) 60%, #001a29 100%); box-shadow: var(--shadow-lg); }
@media (max-width: 960px) { .dm-orb { grid-template-columns: 1fr; } }
.dm-orb__stage { position: relative; }
.dm-orb__canvas { display: block; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; cursor: grab; touch-action: none; }
.dm-orb__canvas.is-drag { cursor: grabbing; }
.dm-orb__tip {
    position: absolute; z-index: 3; width: 236px; pointer-events: none; padding: 14px 16px 12px; border-radius: 14px;
    background: linear-gradient(160deg, rgba(0, 52, 76, .97), rgba(0, 20, 32, .97)); color: #e6f4fa;
    border: 1px solid rgba(255, 255, 255, .14); border-top: 3px solid var(--tip-c, #8fd0ea);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .2); backdrop-filter: blur(6px);
    animation: dm-tip-in .16s ease-out;
}
@keyframes dm-tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dm-orb__tip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg);
    background: rgba(0, 20, 32, .97); border-right: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.dm-orb__tip.is-below::after { bottom: auto; top: -8px; transform: rotate(225deg); background: var(--tip-c, #8fd0ea); border: 0; }
.dm-orb__tip--critical { --tip-c: #eb4040; } .dm-orb__tip--high { --tip-c: #ff8030; } .dm-orb__tip--medium { --tip-c: #f4be28; } .dm-orb__tip--low { --tip-c: #28be78; }
.dm-orb__tip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-orb__tip-sev { padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--tip-c, #8fd0ea); color: #fff; }
.dm-orb__tip-sev--medium { color: #2b2100; }
.dm-orb__tip-code { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--on-dark); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.dm-orb__tip-score { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; }
.dm-orb__tip-score b { font-family: var(--font-display); font-size: 34px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dm-orb__tip-score span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(216, 238, 247, .65); }
.dm-orb__tip-meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dm-orb__tip-fill { display: block; height: 100%; border-radius: 99px; background: var(--tip-c, #8fd0ea); }
.dm-orb__tip-label { margin: 12px 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(216, 238, 247, .55); }
.dm-orb__tip-fam { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; }
.dm-orb__tip-lock { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(216, 238, 247, .7); }
.dm-orb__tip-lock i { color: var(--accent-3); }
.dm-orb__hint { margin: 6px 0 0; text-align: center; font-size: 12.5px; color: rgba(216, 238, 247, .6); }
.dm-orb__side { color: #d8eef7; }
.dm-orb__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.dm-orb__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.dm-orb__chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 11px; border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #e6f4fa; font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s; }
.dm-orb__chips button:hover { background: rgba(255, 255, 255, .1); }
.dm-orb__chips button.is-on { background: #fff; color: var(--dark-2); border-color: #fff; }
.dm-orb__chips button span { font-size: 11.5px; opacity: .75; font-variant-numeric: tabular-nums; }
.dm-orb__chips button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dm-orb__chip--critical i { background: #eb4040; box-shadow: 0 0 8px #eb4040; } .dm-orb__chip--high i { background: #ff8030; } .dm-orb__chip--medium i { background: #f4be28; } .dm-orb__chip--low i { background: #28be78; }
.dm-orb__chips--fam button b { padding: 0 5px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-size: 10.5px; }
.dm-orb__chips--fam button.is-on b { background: var(--dark-2); color: #fff; }

/* Pagina ricerca: ritmo degli sfondi (hero scuro · timeline chiara · embargo scuro · servizi chiari · footer scuro) */
.dm-rs__dark { background: radial-gradient(90% 70% at 75% 0%, rgba(0, 178, 178, .16), transparent 60%), linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: #d8eef7; }
.dm-rs__dark h2, .dm-rs__dark h3 { color: #fff; }
.dm-rs__dark .dm-eyebrow { color: var(--on-dark); }
.dm-rs__dark p, .dm-rs__dark .dm-rs__split p { color: #d8eef7; }
.dm-rs__dark .dm-note { color: rgba(216, 238, 247, .72); }
.dm-rs__dark .dm-rs__sev { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.dm-rs__dark .dm-rs__sevbar { background: rgba(255, 255, 255, .1); }
.dm-rs__dark .dm-rs__sevrow b { color: #fff; }
.dm-rs__dark .dm-rs__sevrow--critical .dm-rs__sevname { color: #ff7a7a; } .dm-rs__dark .dm-rs__sevrow--critical .dm-rs__sevbar span { background: #eb4040; }
.dm-rs__dark .dm-rs__sevrow--high .dm-rs__sevname { color: #ffa066; } .dm-rs__dark .dm-rs__sevrow--high .dm-rs__sevbar span { background: #ff8030; }
.dm-rs__dark .dm-rs__sevrow--medium .dm-rs__sevname { color: #f8d061; } .dm-rs__dark .dm-rs__sevrow--medium .dm-rs__sevbar span { background: #f4be28; }
.dm-rs__dark .dm-rs__sevrow--low .dm-rs__sevname { color: #5fd9a0; } .dm-rs__dark .dm-rs__sevrow--low .dm-rs__sevbar span { background: #28be78; }
.dm-rs__dark .dm-orb { background: radial-gradient(70% 70% at 30% 45%, rgba(0, 120, 150, .35), transparent 70%); box-shadow: none; padding: 8px 0; }
.dm-rs__dark .dm-rs__chart { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.dm-rs__light .dm-rs__offer > div > p, .dm-rs__light .dm-rs__checks li { color: var(--text-dim); }
.dm-rs__light h2 { color: var(--text); }
.dm-rs__light .dm-rs__cta { background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%); border: 0; box-shadow: var(--shadow-lg); }
/* timeline: la tappa virtual patching porta alla sezione dei servizi */
.dm-tl__step.is-link { text-decoration: none; color: inherit; border-radius: var(--radius); padding: 0 6px 10px; transition: background .2s; }
.dm-tl__step.is-link:hover { background: rgba(0, 178, 178, .08); }
.dm-tl__step.is-link:hover .dm-tl__node { transform: scale(1.1); }
.dm-tl__more { margin-top: 8px; font-size: 13px; font-weight: 700; color: #00727d; }
.dm-tl__step.is-link:hover .dm-tl__more { text-decoration: underline; }
@media (max-width: 960px) { .dm-tl__more { grid-column: 2; } }

/* riquadro di contatto scuro nella sezione chiara: testo chiaro (prima ereditava il grigio dei paragrafi) */
.dm-rs__light .dm-rs__offer .dm-rs__cta p { color: #d8eef7; }
.dm-rs__light .dm-rs__cta h3 { color: #fff; }

/* Timeline a due rami: tronco comune → biforcazione → ramo Dottor Box e ramo pubblico */
.dm-tl2 { margin-top: 32px; }
.dm-tl2 ol { list-style: none; margin: 0; padding: 0; }
.dm-tl2__common { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto !important; position: relative; }
.dm-tl2__common::before { content: ""; position: absolute; left: 25%; right: 25%; top: 28px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, #7fc4e3, var(--accent)); }
.dm-tl2__common .dm-tl2__step { flex-direction: column; align-items: center; text-align: center; }
.dm-tl2__step { position: relative; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; }
.dm-tl2__node {
    position: relative; z-index: 1; flex: none; width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
    background: #fff; color: var(--accent); border: 4px solid var(--accent); box-shadow: 0 0 0 6px var(--bg-0), var(--shadow-md);
    transition: transform .2s var(--ease-out);
}
.dm-tl2__when { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.dm-tl2__step strong { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--dark-2); line-height: 1.25; margin-bottom: 4px; }
.dm-tl2__step p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.dm-tl2__fork { display: block; width: 100%; height: 70px; margin: 6px 0 0; overflow: visible; }
.dm-tl2__fork path { stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.dm-tl2__fork-ours { stroke: #00a3a8; }
.dm-tl2__fork-public { stroke: #9bb3c0; stroke-dasharray: 2 10; }
.dm-tl2__lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dm-tl2__lane { position: relative; padding: 18px 20px 20px; border-radius: 18px; }
.dm-tl2__lane header { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.dm-tl2__lane ol { position: relative; display: grid; gap: 14px; }
.dm-tl2__lane ol::before { content: ""; position: absolute; left: 26px; top: 20px; bottom: 20px; width: 4px; border-radius: 99px; }
.dm-tl2__lane--ours { background: linear-gradient(180deg, rgba(0, 178, 178, .14), rgba(0, 178, 178, .04)); border: 1px solid rgba(0, 134, 155, .35); }
.dm-tl2__lane--ours header { background: linear-gradient(90deg, #005f6b, #007a85); color: #fff; }
.dm-tl2__lane--ours ol::before { background: linear-gradient(180deg, #00a3a8, #00727d); }
.dm-tl2__lane--ours .dm-tl2__node { background: #00727d; border-color: #00b2b2; color: #fff; box-shadow: 0 0 0 6px #e3f4f5, 0 0 0 10px rgba(0, 178, 178, .18), var(--shadow-md); }
.dm-tl2__lane--ours .dm-tl2__step strong { color: #005f6b; }
.dm-tl2__lane--public { background: var(--bg-2); border: 1px dashed #b7cbd6; }
.dm-tl2__lane--public header { background: #fff; color: var(--text-dim); border: 1px solid var(--line); }
.dm-tl2__lane--public ol::before { background: repeating-linear-gradient(180deg, #9bb3c0 0 6px, transparent 6px 14px); }
.dm-tl2__lane--public .dm-tl2__node { color: #6b8796; border-color: #9bb3c0; box-shadow: 0 0 0 6px var(--bg-2), var(--shadow-sm); }
.dm-tl2__lane--public .is-public .dm-tl2__node { color: var(--sev-high); border-color: var(--sev-high); }
.dm-tl2__lane--public .is-public .dm-tl2__when { color: var(--sev-high); }
.dm-tl2__step.is-link { border-radius: 14px; padding: 6px; margin: -6px; transition: background .2s; }
.dm-tl2__step.is-link:hover { background: rgba(255, 255, 255, .7); }
.dm-tl2__step.is-link:hover .dm-tl2__node { transform: scale(1.08); }
.dm-tl2__more { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #00727d; }
.dm-tl2__step.is-link:hover .dm-tl2__more { text-decoration: underline; }
.dm-tl2__end { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.dm-tl2__end--ours { background: #00727d; color: #fff; }
.dm-tl2__end--public { background: #fff; color: var(--text-dim); border: 1px solid var(--line); }
.dm-tl2__end--public i { color: var(--sev-high); }
@media (max-width: 860px) {
    .dm-tl2__common { grid-template-columns: 1fr; }
    .dm-tl2__common::before { left: 26px; right: auto; top: 28px; bottom: 28px; width: 4px; height: auto; background: linear-gradient(180deg, #7fc4e3, var(--accent)); }
    .dm-tl2__common .dm-tl2__step { flex-direction: row; text-align: left; }
    .dm-tl2__fork { display: none; }
    .dm-tl2__lanes { grid-template-columns: 1fr; margin-top: 18px; }
}
/* tronco comune con un solo nodo e la scritta della biforcazione */
.dm-tl2__common { grid-template-columns: minmax(0, 420px); justify-content: center; }
.dm-tl2__common::before { display: none; }
.dm-tl2__split { width: fit-content; margin: 14px auto 0; padding: 5px 14px; border-radius: 99px; background: var(--dark-2); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; position: relative; z-index: 1; }
.dm-tl2__fork { margin-top: -2px; }
@media (max-width: 860px) {
    .dm-tl2__common { grid-template-columns: 1fr; }
    .dm-tl2__split { margin: 12px 0 0; }
}

/* Sezione ricercatori su sfondo chiaro (pagina "La nostra ricerca") */
.dm-team--light { background: var(--bg-1); color: var(--text); }
.dm-team--light h2, .dm-team--light h3 { color: var(--text); }
.dm-team--light .dm-eyebrow { color: var(--accent); }
.dm-team--light .dm-team__number { color: var(--dark-2); }
.dm-team--light .dm-team__label { color: var(--text-dim); }
.dm-team--light .dm-team__stat { background: var(--bg-2); border-color: var(--line); }
.dm-team--light .dm-team__stat b { color: var(--dark-2); }
.dm-team--light .dm-team__stat span { color: var(--text-dim); }
.dm-team--light .dm-team__intro { color: var(--text-dim); }
.dm-team--light .dm-team__intro strong { color: var(--text); }
.dm-team--light .dm-team__intro a { color: var(--accent-2); text-decoration-color: rgba(0, 100, 143, .4); }
.dm-team--light .dm-impacts__title { color: var(--text); }
.dm-team--light .dm-impact { background: var(--bg-0); border-color: var(--line); border-top-color: var(--accent); box-shadow: var(--shadow-sm); }
.dm-team--light .dm-impact--no_auth { border-top-color: var(--sev-medium); }
.dm-team--light .dm-impact--full { border-top-color: var(--sev-critical); background: #fdf3f3; }
.dm-team--light .dm-impact__n, .dm-team--light .dm-impact__label { color: var(--dark-2); }
.dm-team--light .dm-impact__text, .dm-team--light .dm-impacts__note { color: var(--text-dim); }
.dm-team--light .dm-researcher { background: var(--bg-0); border-color: var(--line); box-shadow: var(--shadow-sm); }
.dm-team--light .dm-researcher h3, .dm-team--light .dm-researcher__link { color: var(--dark-2); }
.dm-team--light .dm-researcher__link:hover { color: var(--accent); }
.dm-team--light .dm-researcher__link i { color: var(--accent); }
.dm-team--light .dm-researcher__role { color: var(--accent); }
.dm-team--light .dm-researcher__count { color: var(--dark-2); }
.dm-team--light .dm-researcher li { border-top-color: var(--line); }
.dm-team--light .dm-researcher__cve { color: var(--accent-2); }
.dm-team--light .dm-researcher li a:hover .dm-researcher__cve { color: var(--accent); }
.dm-team--light .dm-researcher__product, .dm-team--light .dm-researcher__date { color: var(--text-dim); }
.dm-team--light .dm-researcher__list { scrollbar-color: #b9d3df transparent; }
.dm-team--light .dm-researcher__list::-webkit-scrollbar-thumb { background: #b9d3df; }
.dm-team--light .dm-researcher__list:focus-visible { outline-color: var(--accent); }
.dm-team--light .dm-team__cta { background: var(--bg-2); border-color: var(--line); }
.dm-team--light .dm-team__cta p { color: var(--text-dim); }
.dm-team--light .dm-team__cta .dm-btn--light { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* Sezione ricercatori: fascia azzurro-ghiaccio (al posto del bianco) */
.dm-team--light {
    background:
        radial-gradient(circle, rgba(0, 100, 143, .10) 1px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(180deg, #d9eaf2 0%, #e9f3f7 55%, #dcecf3 100%);
}
.dm-team--light .dm-team__stat, .dm-team--light .dm-team__cta { background: rgba(255, 255, 255, .7); }
.dm-team--light .dm-researcher, .dm-team--light .dm-impact { background: #fff; }
.dm-rs__light { background: var(--bg-1); }   /* virtual patching: bianco, per alternare con la fascia azzurra */

/* Homepage */
.dm-home-search { position: relative; display: flex; align-items: center; margin-top: 26px; max-width: 620px; }
.dm-home-search > i { position: absolute; left: 20px; color: var(--accent); font-size: 18px; pointer-events: none; }
.dm-home-search input {
    width: 100%; min-height: 58px; padding: 14px 140px 14px 52px; border-radius: 99px; border: 0;
    background: #fff; color: var(--text); font: inherit; font-size: 16.5px; box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .6);
}
.dm-home-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(127, 196, 227, .55), 0 14px 36px -14px rgba(0, 0, 0, .6); }
.dm-home-search input::-webkit-search-cancel-button { display: none; }
.dm-home-search button {
    position: absolute; right: 6px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 99px; cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font: inherit; font-weight: 700;
}
.dm-home-search__try { margin: 12px 0 0; font-size: 13.5px; color: rgba(216, 238, 247, .75); }
.dm-home-search__try a { margin-left: 8px; color: #fff; font-family: var(--font-mono); font-size: 13px; text-decoration: none; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.dm-home-search__try a:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 520px) { .dm-home-search input { padding-right: 110px; } .dm-home-search button { padding: 10px 16px; } }
.dm-home-stats { background: var(--bg-1); border-bottom: 1px solid var(--line); }
.dm-home-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; padding-block: 22px; }
.dm-home-stats__grid > div { padding: 8px 18px; border-left: 1px solid var(--line); }
.dm-home-stats__grid > div:first-child { border-left: 0; }
.dm-home-stats__grid b { display: block; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); color: var(--dark-2); font-variant-numeric: tabular-nums; line-height: 1.15; }
.dm-home-stats__grid span { font-size: 13.5px; color: var(--text-dim); }
.dm-home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.dm-home-cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dm-home-card {
    display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--bg-1);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none;
    transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.dm-home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b9d3df; color: var(--text); }
.dm-home-card__icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--accent); font-size: 21px; }
.dm-home-card h3 { margin: 6px 0 0; font-size: 18px; color: var(--dark-2); }
.dm-home-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.dm-home-card__cta { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--accent); }
.dm-home-card:hover .dm-home-card__cta { text-decoration: underline; }
.dm-home-research__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .dm-home-research__grid { grid-template-columns: 1fr; } }
.dm-home-research__kpis { margin-top: 22px; }
.dm-home-research__latest { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.dm-home-research__latest ul { list-style: none; margin: 0; padding: 0; }
.dm-home-research__latest li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.dm-home-research__latest li:first-child { border-top: 0; }
.dm-home-research__latest a { display: flex; flex-direction: column; color: #e6f4fa; text-decoration: none; min-width: 0; }
.dm-home-research__latest a:hover .dm-mono { text-decoration: underline; color: #fff; }
.dm-home-research__latest small { color: rgba(216, 238, 247, .72); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-home-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.dm-home-method__item { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-1); }
.dm-home-method__item i { font-size: 24px; color: var(--accent); }
.dm-home-method__item h3 { font-size: 17px; margin: 10px 0 6px; color: var(--dark-2); }
.dm-home-method__item p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Footer: quattro colonne con link */
.dm-footer__grid { grid-template-columns: 1fr 1fr 1.2fr .9fr; }
@media (max-width: 960px) { .dm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dm-footer__grid { grid-template-columns: 1fr; } }
.dm-footer__links { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.dm-footer__links a { color: #e6f4fa; text-decoration: none; }
.dm-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dm-footer__small { font-size: 13px; color: rgba(216, 238, 247, .65); }
.dm-footer__small a { color: rgba(230, 244, 250, .85); }
.dm-home-search__try a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.dm-home-search__cvss { font-family: var(--font-body); font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 99px; color: #fff; background: var(--sev-high); }
.dm-home-search__cvss--critical { background: var(--sev-critical); }

/* Numeri dell'archivio: prosecuzione dell'hero scuro, non piu' fascia bianca */
.dm-home-stats--dark { background: var(--dark-2); margin-top: -1px; border-bottom: 0; padding-bottom: 8px; }
.dm-home-stats--dark .dm-home-stats__grid { gap: 12px; padding-block: 6px 34px; }
.dm-home-stats--dark .dm-home-stats__grid > div { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .05); padding: 16px 18px; backdrop-filter: blur(4px); }
.dm-home-stats--dark .dm-home-stats__grid > div:first-child { border-left: 1px solid rgba(255, 255, 255, .12); }
.dm-home-stats--dark b { color: #fff; }
.dm-home-stats--dark span { color: rgba(216, 238, 247, .75); }
.dm-home-search__try a { font-family: var(--font-body); }

/* Logo del sito: CVE + logo Dottor Box */
.dm-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; line-height: 1; }
.dm-logo__cve {
    font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: .07em;
    background: linear-gradient(135deg, #fff 30%, var(--on-dark)); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: 12px; border-right: 2px solid rgba(143, 208, 234, .45);
}
.dm-logo__db { height: 25px; width: auto; display: block; transition: opacity .2s; }
.dm-nav__brand:hover .dm-logo__db { opacity: .85; }
@media (max-width: 420px) { .dm-logo__cve { font-size: 23px; } .dm-logo__db { height: 21px; } }

/* Guida "Cosa sono le CVE" */
.dm-guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .dm-guide { grid-template-columns: 1fr; } }
.dm-guide__toc { position: sticky; top: 96px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); font-size: 14.5px; }
@media (max-width: 960px) { .dm-guide__toc { position: static; } }
.dm-guide__toc p { margin: 0 0 8px; font-weight: 700; color: var(--dark-2); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.dm-guide__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.dm-guide__toc a { color: var(--text-dim); text-decoration: none; }
.dm-guide__toc a:hover { color: var(--accent); text-decoration: underline; }
.dm-guide__body { max-width: 780px; }
.dm-guide__body h2 { scroll-margin-top: 96px; margin-top: 2.2em; }
.dm-guide__facts { padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #e3f1f7, #f2f9fc); border: 1px solid #c7e0eb; }
.dm-guide__facts-title { margin: 0 0 8px; font-weight: 800; color: var(--dark-2); }
.dm-guide__facts-title i { color: var(--accent-3); }
.dm-guide__facts ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.dm-guide__anatomy { margin: 18px 0; padding: 24px; border-radius: var(--radius); background: var(--dark-2); color: #e6f4fa; }
.dm-guide__code { font-family: var(--font-mono); font-size: clamp(30px, 6vw, 46px); font-weight: 700; letter-spacing: .02em; margin-bottom: 16px; }
.dm-guide__code .sep { color: rgba(230, 244, 250, .4); }
.dm-guide__anatomy .a { color: #8fd0ea; } .dm-guide__anatomy .b { color: #00d2c8; } .dm-guide__anatomy .c { color: #ffc46b; }
.dm-guide__anatomy dl { margin: 0; display: grid; gap: 8px; }
.dm-guide__anatomy dl div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.dm-guide__anatomy dt { font-family: var(--font-mono); font-weight: 700; }
.dm-guide__anatomy dd { margin: 0; color: rgba(230, 244, 250, .85); }
.dm-guide__steps { list-style: none; margin: 20px 0 10px; padding: 0; counter-reset: s; display: grid; gap: 0; }
.dm-guide__steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 18px; }
.dm-guide__steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.dm-guide__steps li.is-private:not(:last-child)::before { background: repeating-linear-gradient(180deg, var(--accent-3) 0 6px, transparent 6px 11px); }
.dm-guide__step-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: var(--bg-2); color: var(--accent); border: 2px solid var(--line); }
.dm-guide__steps li.is-private .dm-guide__step-icon { background: var(--dark-2); color: #8fd0ea; border-color: var(--accent-3); }
.dm-guide__steps h3 { margin: 10px 0 4px; font-size: 17px; color: var(--dark-2); }
.dm-guide__steps p { margin: 0; color: var(--text-dim); }
.dm-guide__note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: #e7f6f6; color: var(--dark-2); font-weight: 600; }
.dm-guide__note i { color: var(--accent-3); margin-top: 2px; }
.dm-guide__sev { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.dm-guide__sev-item { padding: 16px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); border-top: 5px solid var(--sev-low); }
.dm-guide__sev-item--critical { border-top-color: var(--sev-critical); } .dm-guide__sev-item--high { border-top-color: var(--sev-high); } .dm-guide__sev-item--medium { border-top-color: var(--sev-medium); }
.dm-guide__sev-item b { display: block; font-family: var(--font-mono); font-size: 15px; color: var(--dark-2); }
.dm-guide__sev-item strong { display: block; font-size: 17px; margin: 2px 0 6px; }
.dm-guide__sev-item p { margin: 0; font-size: 14px; color: var(--text-dim); }
.dm-guide__method { max-width: 1000px; }
.dm-guide__paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.dm-guide__paths > div { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.dm-guide__paths h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.dm-guide__paths h3 i { color: var(--accent-3); }
.dm-guide__paths p { margin: 0; color: rgba(216, 238, 247, .88); }
.dm-guide__method-note { margin-top: 18px; font-size: 14px; color: rgba(216, 238, 247, .75); }
.dm-glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 24px 0 0; }
.dm-glossary > div { padding: 18px 20px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); scroll-margin-top: 96px; }
.dm-glossary > div:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.dm-glossary dt { font-weight: 800; color: var(--dark-2); font-size: 16.5px; margin-bottom: 4px; }
.dm-glossary dd { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.dm-guide__faq { max-width: 860px; }
.dm-faq { border-bottom: 1px solid var(--line); }
.dm-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; color: var(--dark-2); font-size: 17px; }
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.dm-faq[open] summary::after { transform: rotate(45deg); }
.dm-faq p { margin: 0 0 18px; color: var(--text-dim); }
.dm-guide__press { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.dm-guide__press h3 { margin: 0 0 6px; color: var(--dark-2); font-size: 19px; }
.dm-guide__press h3 i { color: var(--accent); }
.dm-guide__press p { margin: 0; color: var(--text-dim); max-width: 560px; }

/* Logo: "CVE" si decifra come in Matrix (js/logo.js), poi il pacchetto corre sulla linea a battito
   cardiaco fino a Dottor Box, che lo riceve. Senza JS o con "riduci movimento" il logo e' fermo e completo. */
.dm-logo { flex-direction: row; align-items: center; gap: 4px; }
.dm-logo__cve { display: inline-flex; border-right: 0; padding-right: 0; background: none; color: #fff; transition: filter .3s; }
.dm-logo__l { display: inline-block; text-align: center; color: #fff; }
.dm-logo__l.is-scrambling { color: #00d2c8; font-family: var(--font-mono); font-weight: 700; text-shadow: 0 0 6px rgba(0, 210, 200, .85); opacity: .85; }

.dm-logo__wire { width: 50px; height: 22px; flex: none; overflow: visible; }
.dm-logo__line { fill: none; stroke: rgba(143, 208, 234, .3); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.dm-logo__trail { fill: none; stroke: #00d2c8; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.dm-logo__packet { fill: #fff; opacity: 0; filter: drop-shadow(0 0 2px #00d2c8) drop-shadow(0 0 5px rgba(0, 210, 200, .85)); offset-path: path("M2 12H17L20 12 22.5 5 26.5 20 30.5 2 34 15 36.5 12H58"); offset-rotate: 0deg; offset-distance: 0%; }
.dm-logo.is-sent .dm-logo__trail { animation: dm-trail 1.9s linear forwards; }
.dm-logo.is-sent .dm-logo__packet { animation: dm-packet 1.15s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes dm-trail { 0% { stroke-dashoffset: 100; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes dm-packet { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.dm-logo__db { transform-origin: 0 50%; }
.dm-logo.is-static .dm-logo__trail { stroke-dashoffset: 0; opacity: .6; }
@media (max-width: 420px) { .dm-logo__wire { width: 36px; } }

/* Guida: CTA finale verso Dottor Marc */
.dm-guide__cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
@media (max-width: 860px) { .dm-guide__cta-inner { grid-template-columns: 1fr; } }
.dm-guide__cta p { color: rgba(216, 238, 247, .88); max-width: 640px; }
.dm-guide__cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .dm-guide__cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* Guida: CVE per anno (una serie, un colore; anno in corso tratteggiato perche' parziale) */
.dm-yearbars { margin: 22px 0 26px; padding: 20px 20px 14px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.dm-yearbars figcaption { font-weight: 700; color: var(--dark-2); margin-bottom: 14px; }
.dm-yearbars__plot { list-style: none; margin: 0; padding: 22px 0 0; height: 220px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); }
.dm-yearbars__bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.dm-yearbars__col { position: relative; width: min(70%, 44px); min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; transition: background .15s; }
.dm-yearbars__bar.is-partial .dm-yearbars__col { background: repeating-linear-gradient(135deg, var(--accent) 0 5px, #4d97b8 5px 9px); }
.dm-yearbars__bar:hover .dm-yearbars__col, .dm-yearbars__bar:focus-visible .dm-yearbars__col { background: var(--accent-2); }
.dm-yearbars__val { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-yearbars__tip { position: absolute; bottom: calc(100% + 24px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--dark-2); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.dm-yearbars__bar:hover .dm-yearbars__tip, .dm-yearbars__bar:focus-visible .dm-yearbars__tip { opacity: 1; }
.dm-yearbars__year { position: absolute; top: 100%; margin-top: 6px; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.dm-yearbars__note { margin: 30px 0 6px; font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.dm-yearbars__swatch { width: 14px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--accent) 0 3px, #4d97b8 3px 6px); }
.dm-yearbars__table summary { cursor: pointer; font-size: 13.5px; color: var(--accent); }
.dm-yearbars__table table { margin-top: 8px; font-size: 14px; border-collapse: collapse; }
.dm-yearbars__table td, .dm-yearbars__table th { padding: 4px 18px 4px 0; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .dm-yearbars__year { font-size: 10.5px; } .dm-yearbars__val { font-size: 10.5px; } }
@media (forced-colors: active) { .dm-yearbars__col { background: CanvasText; } }
.dm-guide__body h3 { font-size: 18px; color: var(--dark-2); margin-top: 1.6em; }
.dm-guide__sources { font-size: 13px; color: var(--text-dim); }

/* Scheda CVE: tipo di vulnerabilita' (catalogo CWE) */
.dm-cwe__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.dm-cwe__name strong { color: var(--text); }
.dm-cwe__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--accent-2); text-decoration: none; white-space: nowrap; }
a.dm-cwe__code:hover { border-color: var(--accent); }
.dm-cwe__h { font-size: 17px; margin-top: 22px; }
.dm-phase__strategy { font-weight: 500; color: var(--text-dim); }
.dm-cwe__foot { font-size: 13px; margin: 14px 0 0; }

/* Pagine dei tipi di vulnerabilita' (CWE) */
.dm-cwe-page__parent { margin: 10px 0 0; font-size: 15px; color: var(--text-dim); }
.dm-cwe-page__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 980px) { .dm-cwe-page__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .dm-cwe-page__trend { position: sticky; top: 96px; margin: 0; } }
.dm-cwe-page__team { margin-bottom: 24px; border-left: 4px solid var(--accent-3); }
.dm-cwe-page__team p { margin: 12px 0; }
.dm-cwe-page__teamlist { list-style: none; margin: 0 0 18px; padding: 0; }
.dm-cwe-page__teamlist li + li { border-top: 1px solid var(--line); }
.dm-cwe-page__teamlist a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.dm-cwe-page__teamlist a:hover .dm-item__id { color: var(--accent); }
.dm-cwe-page__teamsum { flex-basis: 100%; font-size: 14px; color: var(--text-dim); }
.dm-cwe-page__listh { margin: 40px 0 16px; font-size: 24px; scroll-margin-top: 90px; }
.dm-cwe-search { display: flex; gap: 8px; margin-top: 20px; max-width: 560px; }
.dm-cwe-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-1); color: var(--text); font: inherit; }
.dm-cwe-list { list-style: none; margin: 0; padding: 0; counter-reset: cwe; }
.dm-cwe-list li + li { border-top: 1px solid var(--line); }
.dm-cwe-list__item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; gap: 6px 16px; align-items: center; padding: 14px 4px; color: var(--text); text-decoration: none; }
.dm-cwe-list__item:hover { background: var(--bg-2); }
.dm-cwe-list__item .dm-cwe__code { justify-self: start; }
.dm-cwe-list__name { font-weight: 600; line-height: 1.35; }
.dm-cwe-list__name .dm-tag { margin-left: 6px; vertical-align: 2px; }
.dm-cwe-list__num { font-size: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums; text-align: right; }
.dm-cwe-list__num b { color: var(--text); font-size: 16px; }
.dm-cwe-list__bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.dm-cwe-list__bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
@media (max-width: 640px) {
    .dm-cwe-list__item { grid-template-columns: minmax(0, 1fr) auto; }
    .dm-cwe-list__name { grid-column: 1 / -1; grid-row: 2; }
    .dm-cwe-list__num { grid-row: 1; grid-column: 2; }
    .dm-cwe-list__bar { display: none; }
}
.dm-cwe__more { margin: 18px 0 0; font-weight: 600; }
