/* ── Palette WCAG 2.1 AA verified ──────────────────────────────────────
     #00325D on #fff   → 13.01:1 AAA  |  #fff on #00325D  → 13.01:1 AAA
     #004A8A on #fff   →  8.95:1 AAA  |  #fff on #004A8A  →  8.95:1 AAA
     #CA1114 on #fff   →  5.83:1 AA   |  #fff on #CA1114  →  5.83:1 AA
     #A3C5E9 on #00325D→  7.26:1 AA   |  NEVER sky on white→  1.79:1 FAIL
     #3C5A73 on #fff   →  7.24:1 AA   |  #1A3A52 on #fff  → 11.86:1 AAA
     NEVER: #CA1114 on #00325D → 2.23:1 FAIL
     ─────────────────────────────────────────────────────────────────────── */
:root {
    --unm-blue: #00325D;
    --unm-blue2: #004A8A;
    --unm-red: #CA1114;
    --unm-sky: #A3C5E9;
    --unm-cream: #EEF4FB;
    --unm-muted: #3C5A73;
    --unm-body: #1A3A52;
    --unm-border: rgba(0,50,93,.14);
    --ff-serif: 'Cormorant Garamond', serif;
    --ff-sans: 'DM Sans', sans-serif;
    --navbar-height: 72px; /* adatta al valore reale della tua navbar */
}
  body { font-family: var(--ff-sans); color: var(--unm-blue); background: var(--unm-cream); }
  .ff-serif  { font-family: var(--ff-serif) !important; }
  .display-serif { font-family: var(--ff-serif); font-weight: 300; line-height: 1.08; }
.eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}
  .section-tag      { color: var(--unm-red); }
  .section-tag-dark { color: var(--unm-sky); }
  .py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

.divNav {
    position: fixed;
    top:34px;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: .35rem 0;
}
  /* ── NAVBAR ── */
.unm-navbar {
    min-height: 72px;
    background: var(--unm-blue);
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: fixed;   /* <-- sticky */
    top: 0;             /* <-- sempre in cima */
    z-index: 1020;      /* sopra tutto */
}  .navbar-brand .logo-name { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff !important; line-height: 1; }
  .navbar-brand .logo-sub  { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 300; color: var(--unm-sky) !important; display: block; }
  .unm-nav-link { color: rgba(255,255,255,.6) !important; font-size: .83rem; letter-spacing: .04em; transition: color .2s; padding: .3rem 0 !important; }
  .unm-nav-link:hover, .unm-nav-link.active { color: #fff !important; }
  .unm-nav-link.active { border-bottom: 2px solid var(--unm-sky); }
  .btn-unm-cta { background: var(--unm-red) !important; color: #fff !important; padding: .4rem 1.1rem; border-radius: 3px; font-size: .8rem; font-weight: 500; transition: opacity .2s; }
  .btn-unm-cta:hover { opacity: .85; }
.navbar-brand img {
    height: 40px;
}

/* ─────────────────────────────────────────────
   NAVBAR
──────────────────────────────────────────── */
.unm-navbar {
    min-height: 72px;
    background: var(--unm-blue);
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: fixed;
}

/* ─────────────────────────────────────────────
   NAV LINK
──────────────────────────────────────────── */
.unm-nav-link {
    position: relative;
    color: rgba(255,255,255,.7) !important;
    font-size: .85rem;
    letter-spacing: .05em;
    padding: .6rem 0 !important;
    transition: color .2s ease;
}

    .unm-nav-link:hover,
    .unm-nav-link:focus-visible {
        color: #fff !important;
    }

    /* underline animata */
    .unm-nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: var(--unm-sky);
        transition: width .25s ease;
    }

    .unm-nav-link:hover::after,
    .unm-nav-link:focus-visible::after,
    .unm-nav-link.active::after {
        width: 100%;
    }

/* ─────────────────────────────────────────────
   DROPDOWN
──────────────────────────────────────────── */
.unm-dropdown {
    position: static;
}
@media (min-width: 992px) {
    .unm-dropdown {
        position: relative;
    }
}

    /* menu */
.unm-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    background: #0a1929;
    border: 1px solid rgba(255,255,255,.08);
    border-top: 2px solid var(--unm-sky);
    border-radius: 6px;
    padding: .5rem 0;
    /* larghezza adattiva al contenuto */
    width: max-content;
    min-width: 200px;
    max-width: min(320px, 90vw); /* non supera il 90% del viewport */

    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    transition: opacity .2s ease, transform .2s ease;
    /* allineamento intelligente: parte da destra del trigger */
    left: auto;
    right: 0;
}

    /* apertura accessibile */
.unm-dropdown:hover > .dropdown-menu,
.unm-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


    /* ─────────────────────────────────────────────
   ITEM DROPDOWN
──────────────────────────────────────────── */

.unm-dropdown .dropdown-item {
    position: relative;
    display: block;
    padding: .65rem 1.4rem;
    font-size: .83rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    white-space: normal; /* testo a capo se necessario */
    word-break: break-word;
    line-height: 1.45;
    transition: background .15s, color .15s;
}
    .unm-dropdown .dropdown-item:hover,
    .unm-dropdown .dropdown-item:focus-visible {
        background: rgba(163,197,233,.12);
        color: #fff;
    }

        /* barra laterale */
    .unm-dropdown .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: var(--unm-sky);
        opacity: 0;
        transition: opacity .15s;
    }
    .unm-dropdown .dropdown-item:hover::before,
    .unm-dropdown .dropdown-item:focus-visible::before {
        opacity: 1;
    }

    .unm-dropdown .dropdown-item.active {
        background: rgba(163,197,233,.15);
        color: #fff;
    }
/* ─────────────────────────────────────────────
   FOCUS ACCESSIBILITÀ
──────────────────────────────────────────── */
.unm-nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--unm-sky);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ─────────────────────────────────────────────
   MOBILE
──────────────────────────────────────────── */
@media (max-width: 767px) {

    .unm-nav-link {
        padding: .7rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .unm-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,.15);
    }
}

@media (max-width: 991px) {
    .unm-dropdown .dropdown-menu {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        display: block;
    }
}

  /* ── BREADCRUMB ── */
  .unm-breadcrumb { background: #fff; border-bottom: 1px solid var(--unm-border); font-size: .78rem; }
  .unm-breadcrumb a { color: var(--unm-muted); text-decoration: none; }
  .unm-breadcrumb a:hover { color: var(--unm-red); }

  /* ── PAGE HERO ── */
  /*.page-hero { background: var(--unm-blue); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
  .page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(163,197,233,.1) 0%, transparent 65%); pointer-events: none; }
  .hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(163,197,233,.13); border: 1px solid rgba(163,197,233,.32); border-radius: 100px; padding: .3rem 1rem; font-size: .7rem; color: var(--unm-sky); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
  .page-hero h1 { font-family: var(--ff-serif); font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 300; color: #fff; line-height: 1.15; }*/
  .meta-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: .45rem 1rem; font-size: .82rem; color: rgba(255,255,255,.88); }
  .meta-chip .fa { color: var(--unm-sky); font-size: .8rem; }
  .stato-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(163,197,233,.16); border: 1px solid rgba(163,197,233,.4); border-radius: 100px; padding: .35rem 1rem; font-size: .78rem; color: var(--unm-sky); font-weight: 600; }


/*.page-hero {
    background: var(--unm-blue);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 160px;*/ /* regola questo valore a piacere */
/*}
    .page-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(163,197,233,.1) 0%, transparent 65%);
        pointer-events: none;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(163,197,233,.13);
    border: 1px solid rgba(163,197,233,.32);
    border-radius: 100px;
    padding: .3rem 1rem;
    font-size: .7rem;
    color: var(--unm-sky);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.page-hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 300;
    color: #fff;
    align-items: center;
    line-height: 2;
    margin-bottom: 0;
}*/
  /* ── PROGRESS BAR scadenza ── */
  .deadline-bar-wrap { background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; height: 6px; margin-top: .5rem; }
  .deadline-bar { background: var(--unm-sky); height: 100%; border-radius: 4px; width: 62%; }

  /* ── MAIN LAYOUT ── */
  .content-card { background: #fff; border: 1px solid var(--unm-border); padding: 2.2rem; margin-bottom: 1.5rem; }
  .content-card h2 { font-family: var(--ff-serif); font-size: 1.6rem; font-weight: 400; color: var(--unm-blue); border-bottom: 1px solid var(--unm-border); padding-bottom: .65rem; margin-bottom: 1.1rem; }
  .content-card h3 { font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 400; color: var(--unm-blue2); margin: 1.4rem 0 .5rem; }
  .content-card p  { font-size: .95rem; color: var(--unm-body); font-weight: 300; line-height: 1.8; margin-bottom: 1rem; }
  .content-card p:last-child { margin-bottom: 0; }

  /* Requisiti list */
  .req-list { list-style: none; padding: 0; margin: 0; }
  .req-list li { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--unm-border); font-size: .92rem; color: var(--unm-body); }
  .req-list li:last-child { border: none; }
  .req-list li .fa { color: var(--unm-red); margin-top: .15rem; font-size: .85rem; flex-shrink: 0; }
  .req-list li strong { color: var(--unm-blue); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .1rem; }

  /* Timeline domanda */
  .timeline { position: relative; padding-left: 2rem; }
  .timeline::before { content: ''; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--unm-border); }
  .tl-item { position: relative; padding-bottom: 1.8rem; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-dot { position: absolute; left: -1.9rem; top: .2rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--unm-border); display: flex; align-items: center; justify-content: center; }
  .tl-dot.done  { background: var(--unm-blue); border-color: var(--unm-blue); }
  .tl-dot.active{ background: var(--unm-red);  border-color: var(--unm-red);  }
  .tl-dot.future{ background: #fff; border-color: var(--unm-border); }
  .tl-dot .fa   { font-size: .5rem; color: #fff; }
  .tl-date  { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--unm-muted); margin-bottom: .15rem; }
  .tl-label { font-size: .92rem; font-weight: 500; color: var(--unm-blue); margin-bottom: .15rem; }
  .tl-desc  { font-size: .82rem; color: var(--unm-muted); }

  /* Commissione */
  .commissione-card { background: var(--unm-cream); border: 1px solid var(--unm-border); padding: 1.3rem; display: flex; align-items: center; gap: 1rem; }
  .comm-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--unm-blue); display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 1.1rem; color: var(--unm-sky); font-weight: 600; flex-shrink: 0; }
  .comm-name  { font-size: .9rem; font-weight: 500; color: var(--unm-blue); }
  .comm-role  { font-size: .75rem; color: var(--unm-muted); }

  /* Allegati */
  .allegato-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--unm-border); margin-bottom: .5rem; transition: background .2s; text-decoration: none; }
  .allegato-row:hover { background: var(--unm-cream); border-color: var(--unm-red); }
  .allegato-icon { width: 38px; height: 38px; background: var(--unm-red); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .allegato-icon .fa { color: #fff; font-size: .9rem; }
  .allegato-name { font-size: .88rem; font-weight: 500; color: var(--unm-blue); flex: 1; }
  .allegato-size { font-size: .75rem; color: var(--unm-muted); }
  .allegato-dl   { color: var(--unm-red); font-size: .8rem; }

  /* ── SIDEBAR ── */
  .sidebar-card { background: #fff; border: 1px solid var(--unm-border); overflow: hidden; margin-bottom: 1.2rem; }
  .sidebar-header { background: var(--unm-blue); padding: .9rem 1.4rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--unm-sky); }
  .sidebar-body { padding: 1.2rem 1.4rem; }
  .s-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .65rem 0; border-bottom: 1px solid var(--unm-border); font-size: .85rem; }
  .s-row:last-child { border: none; }
  .s-label { color: var(--unm-muted); font-size: .78rem; flex-shrink: 0; }
  .s-val   { color: var(--unm-blue); font-weight: 500; text-align: right; }
  .countdown { text-align: center; padding: .5rem 0 .3rem; }
  .countdown-num { font-family: var(--ff-serif); font-size: 3.2rem; font-weight: 600; color: var(--unm-red); line-height: 1; }
  .countdown-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--unm-muted); margin-top: .2rem; }

  /* Buttons */
  .btn-apply { display: block; width: 100%; background: var(--unm-red); color: #fff; text-align: center; padding: 1rem; font-size: .9rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; border: none; cursor: pointer; transition: opacity .2s; border-radius: 3px; }
  .btn-apply:hover { opacity: .85; color: #fff; }
  .btn-outline { display: block; width: 100%; background: transparent; color: var(--unm-blue); text-align: center; padding: .8rem; font-size: .85rem; border: 1px solid var(--unm-blue); text-decoration: none; margin-top: .6rem; transition: background .2s, color .2s; border-radius: 3px; }
  .btn-outline:hover { background: var(--unm-blue); color: #fff; }
  .btn-link-icon { display: inline-flex; align-items: center; gap: .5rem; font-size: .83rem; color: var(--unm-blue); text-decoration: none; font-weight: 500; }
  .btn-link-icon:hover { color: var(--unm-red); }

  /* FAQ accordion */
  .unm-accordion .accordion-button { font-family: var(--ff-sans); font-size: .92rem; font-weight: 500; color: var(--unm-blue); background: #fff; }
  .unm-accordion .accordion-button:not(.collapsed) { color: var(--unm-red); background: rgba(202,17,20,.04); box-shadow: none; }
  .unm-accordion .accordion-button::after { filter: none; }
  .unm-accordion .accordion-button:not(.collapsed)::after { filter: none; }
  .unm-accordion .accordion-item { border: 1px solid var(--unm-border); border-radius: 0 !important; margin-bottom: .4rem; overflow: hidden; }
  .unm-accordion .accordion-body { font-size: .9rem; color: var(--unm-body); font-weight: 300; line-height: 1.8; }

  /* Alert normativa */
  .norm-alert { background: rgba(0,50,93,.05); border: 1px solid rgba(0,50,93,.15); border-left: 4px solid var(--unm-blue); padding: 1.1rem 1.4rem; }
  .norm-alert p { font-size: .85rem; color: var(--unm-body); margin: 0; }

  /* Related bandi */
  .bando-mini { background: #fff; border: 1px solid var(--unm-border); padding: 1.4rem; text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
  .bando-mini:hover { border-color: var(--unm-red); transform: translateY(-3px); }
  .bando-mini::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--unm-red); opacity: 0; transition: opacity .2s; }
  .bando-mini:hover::before { opacity: 1; }
  .bando-mini-tipo  { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--unm-red); margin-bottom: .4rem; }
  .bando-mini-title { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 400; color: var(--unm-blue); line-height: 1.3; }
  .bando-mini-dead  { font-size: .78rem; color: var(--unm-muted); margin-top: .5rem; }

  /* ── FOOTER ── */
  .unm-footer { background: #0a1929; }
  .unm-footer .logo-name { font-family: var(--ff-serif); font-size: 1.1rem; color: rgba(255,255,255,.8); letter-spacing: .08em; text-transform: uppercase; }
  .unm-footer .logo-sub  { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 300; color: var(--unm-sky); }
  .unm-footer p { font-size: .78rem; color: rgba(255,255,255,.5); }

  /* ── LANGUAGE SWITCHER ── */
  .btn-lang {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .28rem .75rem;
    border: 1px solid rgba(163,197,233,.35);
    border-radius: 100px;
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
  }
  .btn-lang:hover {
    background: rgba(163,197,233,.15);
    color: #fff;
    border-color: var(--unm-sky);
  }
  .btn-lang:focus-visible {
    outline: 2px solid var(--unm-sky);
    outline-offset: 2px;
  }
  .btn-lang .fa {
    font-size: .8rem;
    color: var(--unm-sky);
  }
  .btn-lang .lang-label-active {
    color: #fff;
    font-weight: 600;
  }
  .btn-lang .lang-sep {
    color: rgba(255,255,255,.25);
    font-weight: 300;
    margin: 0 .05rem;
  }

  /* ── DROPDOWN MENU ── */
  /*.unm-dropdown .dropdown-menu {
    background: var(--unm-blue);
    border: 1px solid rgba(255,255,255,.1);
    border-top: 2px solid var(--unm-sky);
    border-radius: 0 0 4px 4px;
    padding: .4rem 0;
    min-width: 220px;
    margin-top: 2px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .unm-dropdown .dropdown-item {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    padding: .55rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    transition: color .15s, background .15s;
    text-decoration: none;
  }
  .unm-dropdown .dropdown-item .fa {
    color: var(--unm-sky);
    font-size: .78rem;
    width: 14px;
    flex-shrink: 0;
  }
  .unm-dropdown .dropdown-item:hover,
  .unm-dropdown .dropdown-item:focus {
    background: rgba(163,197,233,.1);
    color: #fff;
  }
  .unm-dropdown .dropdown-divider {
    border-color: rgba(255,255,255,.08);
    margin: .3rem 0;
  }
  .unm-dropdown > .nav-link.dropdown-toggle {
    color: rgba(255,255,255,.6) !important;
  }
  .unm-dropdown > .nav-link.dropdown-toggle::after {
    border: none;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f107';
    font-size: .65rem;
    vertical-align: middle;
    margin-left: .3rem;
    color: var(--unm-sky);
    transition: transform .2s;
  }
  .unm-dropdown.show > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }
  .unm-dropdown > .nav-link.dropdown-toggle:hover,
  .unm-dropdown.show > .nav-link.dropdown-toggle { color: #fff !important; }*/

  /* ── FOOTER ENHANCED ── */
  .unm-footer-main {
    background: #0a1929;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .footer-col-title {
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--unm-sky);
    font-weight: 500;
    margin-bottom: 1.1rem;
  }
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .82rem;
    color: #fff;
}
  .footer-links-list li { margin-bottom: .55rem; }
    .footer-links-list a {
        color: #fff;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        transition: color .2s;
    }
    .footer-links-list a .fa {
        font-size: .7rem;
        color: #fff;
        width: 12px;
    }
    .footer-links-list a:hover {
        color: #fff;
    }
  .footer-social-section .footer-col-title { margin-bottom: 1rem; }
  .footer-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    color:#fff;
  }
    .footer-social-grid a {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        padding: .45rem .9rem;
        border: 1px solid #fff;
        border-radius: 3px;
        color: #fff;
        font-size: .8rem;
        text-decoration: none;
        transition: color .2s, border-color .2s, background .2s;
        white-space: nowrap;
    }
  .footer-social-grid a .fa-brands {
    font-size: .95rem;
  }
  .footer-social-grid a:hover {
    color: #fff;
    border-color: var(--unm-sky);
    background: rgba(163,197,233,.08);
  }
  .footer-social-grid a:focus-visible {
    outline: 2px solid var(--unm-sky);
    outline-offset: 2px;
  }

.footer-social-section p {
    font-size: .75rem;
    margin-top: 1.2rem;
    line-height: 1.6;
    color: #fff;
}
  /* brand colours on hover */
  .footer-social-grid a[data-brand="linkedin"]:hover  { border-color: #0077B5; background: rgba(0,119,181,.12); }
  .footer-social-grid a[data-brand="x"]:hover         { border-color: #fff; }
  .footer-social-grid a[data-brand="facebook"]:hover  { border-color: #1877F2; background: rgba(24,119,242,.12); }
  .footer-social-grid a[data-brand="instagram"]:hover { border-color: #E4405F; background: rgba(228,64,95,.12); }
  .footer-social-grid a[data-brand="youtube"]:hover   { border-color: #FF0000; background: rgba(255,0,0,.1); }
  .footer-social-grid a[data-brand="rg"]:hover        { border-color: #00CCBB; background: rgba(0,204,187,.1); }
  .unm-footer-bottom {
    background: #060f1a;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.05);
  }
  .unm-footer-bottom p { font-size: .75rem; color: #fff; margin: 0; }

  @media (max-width: 767px) {
    .unm-nav-link { border-bottom: 1px solid rgba(255,255,255,.07); padding: .5rem 0 !important; }
    .meta-chip    { font-size: .75rem; padding: .35rem .7rem; }
    .content-card { padding: 1.4rem; }
    .footer-social-grid { gap: .4rem; }
    .footer-social-grid a { font-size: .75rem; padding: .4rem .7rem; }
  }
.footer-policy-links a {
    color: #fff;
    text-decoration: none;
    font-size: .75rem;
    transition: color .2s ease, opacity .2s ease;
}

    .footer-policy-links a:hover,
    .footer-policy-links a:focus-visible {
        color: #fff;
        opacity: .75;
    }

    .footer-policy-links a:focus-visible {
        outline: 2px solid rgba(255,255,255,.35);
        outline-offset: 2px;
        border-radius: 2px;
    }
  /* ── Social bar ─────────────────────────────────────────────────────────
     All icons on dark bg (#00325D / #0a1929):
       #A3C5E9 on #00325D = 7.26:1 AA ✓  (default state)
       #FFFFFF on hover   = 13.01:1 AAA ✓
     ─────────────────────────────────────────────────────────────────────── */
.social-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #071522;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .35rem 0;
}
  .social-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .social-bar-text {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
  }
  .social-links {
    display: flex;
    align-items: center;
    gap: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--unm-sky);        /* 7.26:1 on dark ✓ */
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s, background .2s;
  }
  .social-links a:hover {
    color: #fff;                   /* 13.01:1 on dark ✓ */
    background: rgba(255,255,255,.08);
  }
  .social-links a:focus-visible {
    outline: 2px solid var(--unm-sky);
    outline-offset: 2px;
  }
.social-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* LEFT */
.social-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: start;
}

/* CENTER */
.social-center {
    justify-self: center;
}

/* RIGHT */
.social-right {
    justify-self: end;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

  /* Footer social */
  .footer-social-links {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);  /* meets 4.6:1 on #0a1929 ✓ */
    font-size: .9rem;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
  }
  .footer-social-links a:hover {
    color: #fff;
    border-color: var(--unm-sky);
    background: rgba(163,197,233,.1);
  }
  .footer-social-links a:focus-visible {
    outline: 2px solid var(--unm-sky);
    outline-offset: 2px;
  }

body {
    font-family: var(--ff-sans);
    color: var(--unm-blue);
}

.ff-serif {
    font-family: var(--ff-serif) !important;
}

.display-serif {
    font-family: var(--ff-serif);
    font-weight: 300;
    line-height: 1.08;
}

.eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.section-tag {
    color: var(--unm-red);
}

.section-tag-dark {
    color: var(--unm-sky);
} 

/*.hero {
    background: var(--unm-blue);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 80% at 80% 40%, rgba(163,197,233,.12) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-neural {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .3;
}

.hero-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    color: #fff;
}

    .hero-title em {
        font-style: italic;
        color: var(--unm-sky);
    }

.hero-eyebrow-txt {
    text-decoration: none;
    color: var(--unm-sky);
}
    .hero-eyebrow-txt a {
        color: inherit;
        text-decoration: none;
    }

        .hero-eyebrow-txt a:hover,
        .hero-eyebrow-txt a:visited,
        .hero-eyebrow-txt a:active {
            color: inherit;
            text-decoration: none;
        }
.hero-lead {
    color: rgba(255,255,255,.82);
    font-weight: 300;
    font-size: 1.03rem;
}

.hero-decree {
    background: rgba(163,197,233,.1);
    border: 1px solid rgba(163,197,233,.3);
    border-radius: 4px;
    padding: .85rem 1.3rem;
    font-size: .88rem;
    color: rgba(255,255,255,.88);
}

    .hero-decree strong {
        color: var(--unm-sky);
    }*/

/* Stats (corsi attivi, studenti attivi ecc) */
/*.hero-stats {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}*/

.stat-num {
    font-family: var(--ff-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.65);
    margin-top: .2rem;
}

.stat-sep {
    width: 1px;
    background: rgba(255,255,255,.12);
}

/* Integration */
.sec-integration {
    background: var(--unm-blue);
}

.int-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5px;
    background: rgba(255,255,255,.06);
}

.int-card {
    background: var(--unm-blue);
    padding: 2.2rem 1.8rem;
    transition: background .25s;
}

  /*  .int-card:hover {
        background: var(--unm-blue2);
    }*/

.int-icon {
    font-size: 1.5rem;
    color: var(--unm-sky);
    margin-bottom: 1rem;
    display: block;
}

.int-card h3 {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: .4rem;
}

.int-card p {
    font-size: .87rem;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
    margin: 0;
}

/* Courses */
.sec-courses {
    background: var(--unm-cream);
}

.course-card {
    border: 1px solid var(--unm-border);
    padding: 2.4rem;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}

    .course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,50,93,.1);
    }

    .course-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--unm-red);
    }

.course-code {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--unm-muted);
    margin-bottom: .6rem;
}

.course-card h3 {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--unm-blue);
    margin: 0;
}
.course-card a,
.course-card a:hover,
.course-card a:visited {
    text-decoration: none;
}


/* Science */
.sec-science {
    background: #0a1929;
}

.sci-col-title {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--unm-sky);
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(163,197,233,.22);
    margin-bottom: 1rem;
}

.sci-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sci-list li {
        font-size: .9rem;
        color: rgba(255,255,255,.82);
        padding: .5rem 0 .5rem 1.4rem;
        position: relative;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

        .sci-list li .fa-chevron-right {
            position: absolute;
            left: 0;
            top: .72rem;
            color: var(--unm-sky);
            font-size: .72rem;
        }

/* Campus */
.sec-campus {
    background: #fff;
}

.campus-card {
    background: var(--unm-cream);
    border: 1px solid var(--unm-border);
    padding: 1.8rem 1.4rem;
    height: 100%;
    transition: background .2s, border-color .2s;
}

    /*.campus-card:hover {
        background: var(--unm-blue);
        border-color: var(--unm-blue);
    }

        .campus-card:hover .campus-icon {
            color: var(--unm-sky);
        }

        .campus-card:hover .campus-label {
            color: #fff;
        }*/

.campus-icon {
    font-size: 1.4rem;
    color: var(--unm-red);
    margin-bottom: .7rem;
    display: block;
    transition: color .2s;
}

.campus-label {
    font-size: .9rem;
    color: var(--unm-body);
    transition: color .2s;
}

/* IRCCS */
.sec-irccs {
    background: var(--unm-blue2);
}

.irccs-num-val {
    font-family: var(--ff-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--unm-sky);
    line-height: 1;
}

.irccs-num-label {
    font-size: .8rem;
    color: rgba(255,255,255,.78);
    line-height: 1.4;
    max-width: 160px;
    margin-top: .3rem;
}

.pill {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    padding: .35rem 1rem;
    font-size: .78rem;
    color: rgba(255,255,255,.88);
    display: inline-block;
    margin: .2rem;
}
/* Didattica */
.sec-didattica {
    background: var(--unm-cream);
}

.didattica-card {
    background: #fff;
    border: 1px solid var(--unm-border);
    border-radius: 6px;
    padding: 1.4rem 1rem;
    text-align: center;
    font-size: .87rem;
    color: var(--unm-blue);
    transition: background .2s, color .2s, border-color .2s;
    height: 100%;
}

  /*  .didattica-card:hover {
        background: var(--unm-blue);
        color: #fff;
        border-color: var(--unm-blue);
    }*/

    .didattica-card .icon {
        font-size: 1.4rem;
        display: block;
        margin-bottom: .6rem;
        color: var(--unm-red);
        transition: color .2s;
    }

    /*.didattica-card:hover .icon {
        color: var(--unm-sky);
    }*/

/* Bandi reclutamento */
.sec-bandi {
    background: var(--unm-cream);
}

.bando-card {
    background: #fff;
    border: 1px solid var(--unm-border);
    padding: 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .bando-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(0,50,93,.1);
    }

.bando-card-header {
    background: var(--unm-blue);
    padding: .9rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bando-tipo {
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--unm-sky);
    font-weight: 500;
}

.bando-stato {
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .75rem;
    border-radius: 100px;
}

.stato-aperto {
    background: rgba(163,197,233,.18);
    color: var(--unm-sky);
    border: 1px solid rgba(163,197,233,.4);
}

.stato-scaduto {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.12);
}

/*.stato-urgente {
    background: rgba(202,17,20,.15);
    color: #ff8a8b;
    border: 1px solid rgba(202,17,20,.3);
}*/

.stato-urgente {
    background: #7a0d0e; /* rosso scuro opaco */
    color: #ffffff; /* bianco — contrasto >7:1 ✓ */
    border: 1px solid #a01213;
}

.bando-card-body {
    padding: 1.6rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bando-settore {
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--unm-muted);
    margin-bottom: .5rem;
}

.bando-titolo {
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--unm-blue);
    line-height: 1.3;
    margin-bottom: .8rem;
}

.bando-meta {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--unm-border);
}

.bando-meta-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    color: var(--unm-muted);
}

    .bando-meta-row .fa {
        color: var(--unm-red);
        font-size: .75rem;
        width: 14px;
        text-align: center;
    }

.bando-card-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--unm-border);
    background: var(--unm-cream);
}

.btn-bando {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--unm-blue);
    text-decoration: none;
    transition: color .2s;
}

    .btn-bando:hover {
        color: var(--unm-red);
    }

.btn-bando-primary {
    background: var(--unm-red);
    color: #fff !important;
    padding: .5rem 1.1rem;
    border-radius: 3px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: opacity .2s;
}

    .btn-bando-primary:hover {
        opacity: .85;
    }

.bandi-alert {
    background: rgba(202,17,20,.06);
    border: 1px solid rgba(202,17,20,.2);
    border-radius: 4px;
    padding: 1rem 1.4rem;
}

    .bandi-alert p {
        font-size: .88rem;
        color: var(--unm-body);
        margin: 0;
    }

    .bandi-alert strong {
        color: var(--unm-red);
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-1 {
    animation: fadeUp .6s ease both;
}

.anim-2 {
    animation: fadeUp .7s .1s ease both;
}

.anim-3 {
    animation: fadeUp .7s .2s ease both;
}

.anim-4 {
    animation: fadeUp .7s .3s ease both;
}

.anim-5 {
    animation: fadeUp .7s .4s ease both;
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
/* Gallery */
/*  .gallery-wrap { overflow: hidden; }
  .gallery-img  { object-fit: cover; width: 100%; height: 100%; min-height: 220px; display: block; transition: transform .5s; }
  .gallery-img:hover { transform: scale(1.04); }
  .gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: .9rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
  */

/* ── CORSO DETAIL LAYOUT ── */
.corso-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
    padding: 3rem 0;
}

.corso-main {
    min-width: 0;
}

.corso-aside {
    position: sticky;
    top: 84px;
}

/* Evade dal container Umbraco per il layout corso */
.section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

    .section .container > .row,
    .section .container > div[class*="col-"] {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }

.sidebar-card {
    background: #fff;
    border: 1px solid var(--unm-border);
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.sidebar-header {
    background: var(--unm-blue);
    padding: .9rem 1.4rem;
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--unm-sky);
}

.sidebar-body {
    padding: 1.2rem 1.4rem;
}

.sidebar-nav-item a {
    display: block;
    padding: .65rem 1.4rem;
    font-size: .86rem;
    color: var(--unm-body);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s;
}

    .sidebar-nav-item a:hover {
        color: var(--unm-blue);
        background: var(--unm-cream);
    }

    .sidebar-nav-item a.active {
        color: var(--unm-blue);
        border-left-color: var(--unm-red);
        background: rgba(202,17,20,.04);
        font-weight: 500;
    }

.sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .6rem 0;
    border-bottom: 1px solid var(--unm-border);
    font-size: .87rem;
}

    .sidebar-row:last-child {
        border: none;
    }

.sidebar-row-label {
    color: var(--unm-muted);
    font-size: .78rem;
}

.sidebar-row-val {
    color: var(--unm-blue);
    font-weight: 500;
}

.btn-search-bar {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 1px solid rgba(163,197,233,.28);
    border-radius: 100px;
    padding: .22rem .85rem;
    color: var(--unm-sky); /* 7.26:1 on #071522 ✓ */
    font-size: .72rem;
    font-family: var(--ff-sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

    .btn-search-bar:hover {
        background: rgba(163,197,233,.12);
        color: #fff;
        border-color: rgba(163,197,233,.55);
    }

    .btn-search-bar:focus-visible {
        outline: 2px solid var(--unm-sky);
        outline-offset: 2px;
    }

    .btn-search-bar .fa {
        font-size: .8rem;
    }

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,10,20,.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

    .search-overlay.is-open {
        opacity: 1;
        pointer-events: all;
    }

.search-overlay-inner {
    width: min(740px, 90vw);
}

.search-overlay-label {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--unm-sky);
    margin-bottom: 1.4rem;
    display: block;
}

.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid rgba(163,197,233,.45);
    padding-bottom: .6rem;
    margin-bottom: 2.4rem;
}

.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 300;
    color: #fff;
    caret-color: var(--unm-sky);
    padding: 0;
}

    .search-overlay-input::placeholder {
        color: rgba(255,255,255,.28);
    }

.search-overlay-submit {
    background: transparent;
    border: none;
    color: var(--unm-sky);
    font-size: 1.4rem;
    cursor: pointer;
    padding: .2rem .4rem;
    flex-shrink: 0;
    transition: color .2s;
}

    .search-overlay-submit:hover {
        color: #fff;
    }

.search-close {
    position: absolute;
    top: 1.6rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 1.4rem;
    cursor: pointer;
    padding: .4rem;
    transition: color .2s;
    line-height: 1;
}

    .search-close:hover {
        color: #fff;
    }

    .search-close:focus-visible {
        outline: 2px solid var(--unm-sky);
        border-radius: 3px;
    }
/* Suggerimenti rapidi */
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
}

.search-suggestions-label {
    width: 100%;
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: .3rem;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(163,197,233,.08);
    border: 1px solid rgba(163,197,233,.2);
    border-radius: 100px;
    padding: .28rem .85rem;
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

    .search-tag:hover {
        background: rgba(163,197,233,.18);
        color: #fff;
        border-color: rgba(163,197,233,.5);
    }
/* Hint ESC */
.search-hint {
    font-size: .7rem;
    color: rgba(255,255,255,.25);
    letter-spacing: .08em;
    text-align: center;
}

    .search-hint kbd {
        font-family: var(--ff-sans);
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 3px;
        padding: .1rem .4rem;
        font-size: .68rem;
        color: rgba(255,255,255,.4);
    }

/*.page-hero {
    position: relative;
    overflow: hidden;*/ /* evita che esca fuori */
/*}*/

/*.hero-svg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;*/ /* oppure 300px se vuoi fisso */
    /*width: auto;
    transform: scaleX(-1);*/ /* 👈 ribalta */
    /*transform-origin: center;
    z-index: 1;*/ /* dietro al testo */
    /*pointer-events: none;*/ /* opzionale */
/*}*/

/*.hero-svg {
    position: absolute;
    top: 0;
    right: -5%;
    height: 100%;
    width: auto;*/
    /*pointer-events: none;*/
/*}

@media (max-width: 1199px) {
    .hero-svg {
        display: none;
    }
}

.header-svg {
    position: absolute;
    top: 50%;
    right: -20%;
    transform: translateY(-50%);
    height: 600%;
    width: auto;
    pointer-events: none;
}
@media (max-width: 445px) {
    .header-svg {
        display: none;
    }
}

body, html {
    overflow-x: hidden;

    body {
        padding-top: 38px;*/ /* regola il valore in base all'altezza reale della social bar */
    /*}
}*/

/*
body {
  overflow-x: clip;
}
*/
/*.hero {
    overflow: hidden;
    position: relative;
}*/


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Il contenuto principale si espande e occupa lo spazio vuoto */
main, .main-content, #main {
    flex: 1;
}

.footer-col-title-link {
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--unm-sky);
    font-weight: 500;
    margin-bottom: 1.1rem;
    text-decoration: none;
}

    .footer-col-title-link:hover {
        text-decoration: none; /* mantieni rimossa anche all'hover */
        color: var(--unm-sky); /* opzionale: evita cambio colore all'hover */
    }

.contenuto-pagina {
    flex: 1;
}

/* ── BREADCRUMB offset per navbar fixed ── */
.unm-breadcrumb {
    margin-top: 75px; /* social bar (~38px) + navbar (~72px) */
}
/*.unm-dropdown .dropdown-menu {
    min-width: 280px;*/ /* aumenta la larghezza minima */
    /*white-space: normal;*/ /* permette al testo di andare a capo */
    /*width: max-content;*/ /* si allarga quanto serve al testo */
    /*max-width: 320px;*/ /* ma non troppo */
/*}*/

/*.unm-dropdown .dropdown-item {
    white-space: normal;*/ /* testo a capo se necessario */
    /*word-break: break-word;
    line-height: 1.4;
}*/
/*
.unm-dropdown .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
}*/

/*.unm-dropdown:hover > .dropdown-menu,
.unm-dropdown:focus-within > .dropdown-menu {
    transform: translateX(-50%) translateY(0);
}

.unm-dropdown .dropdown-menu {
    left: 0;
    right: auto;
    width: max-content;
    max-width: 350px;
    white-space: normal;
}*/
.didattica-card {
    background: var(--unm-blue);
    padding: 2.2rem 1.8rem;
    transition: background .25s;
    height: 100%;
    text-align: center;
    font-size: .87rem;
    color: #fff; /* da rgba(.78) a #fff per contrasto WCAG AA */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* per quando è usato come <a> */
    border-radius: 0;
}
/*
    .didattica-card:hover {
        background: var(--unm-blue2);
        color: #fff;
    }
*/
    /* Focus visibile per navigazione da tastiera */
    .didattica-card:focus,
    .didattica-card:focus-visible {
        outline: 2px solid var(--unm-sky);
        outline-offset: 2px;
        color: #fff;
    }

    .didattica-card .icon {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 1rem;
        color: var(--unm-sky); /* celestino mantenuto */
        transition: color .2s;
    }

    .didattica-card span {
        line-height: 1.65;
    }

.page-hero {
    background: var(--unm-blue);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 160px;
}

    .page-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(163,197,233,.1) 0%, transparent 65%);
        pointer-events: none;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(163,197,233,.13);
    border: 1px solid rgba(163,197,233,.32);
    border-radius: 100px;
    padding: .3rem 1rem;
    font-size: .7rem;
    color: var(--unm-sky);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.page-hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 300;
    color: #fff;
    align-items: center;
    line-height: 2;
    margin-bottom: 0;
}

.hero {
    background: var(--unm-blue);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 80% at 80% 40%, rgba(163,197,233,.12) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-neural {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .3;
}

.hero-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: calc(var(--navbar-height) + 3rem) 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    color: #fff;
}

    .hero-title em {
        font-style: italic;
        color: var(--unm-sky);
    }

.hero-eyebrow-txt {
    text-decoration: none;
    color: var(--unm-sky);
}

    .hero-eyebrow-txt a {
        color: inherit;
        text-decoration: none;
    }

        .hero-eyebrow-txt a:hover,
        .hero-eyebrow-txt a:visited,
        .hero-eyebrow-txt a:active {
            color: inherit;
            text-decoration: none;
        }

.hero-lead {
    color: rgba(255,255,255,.82);
    font-weight: 300;
    font-size: 1.03rem;
}

.hero-decree {
    background: rgba(163,197,233,.1);
    border: 1px solid rgba(163,197,233,.3);
    border-radius: 4px;
    padding: .85rem 1.3rem;
    font-size: .88rem;
    color: rgba(255,255,255,.88);
}

    .hero-decree strong {
        color: var(--unm-sky);
    }

/* Stats (corsi attivi, studenti attivi ecc) */
.hero-stats {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.hero-svg {
    position: absolute;
    top: 8%;
    right: -5%;
    height: 95%;
    width: auto;
}

@media (max-width: 1199px) {
    .hero-svg {
        display: none;
    }
}

.header-svg {
    position: absolute;
    top: 50%;
    right: -20%;
    transform: translateY(-50%);
    height: 600%;
    width: auto;
    pointer-events: none;
}

@media (max-width: 445px) {
    .header-svg {
        display: none;
    }
}

/* ✅ Fix: separati e corretti */
body, html {
    overflow-x: hidden;
}

body {
    padding-top: 38px; /* compensa la social bar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ✅ Fix: padding-top su mobile per compensare navbar + social bar */
@media (max-width: 991px) {
    .hero-body {
        padding: 6rem 0 2rem;
    }
}

@media (max-width: 575px) {
    .hero-body {
        padding: 7rem 0 2rem;
    }
}

.sidebar-aside {
    position: sticky;
    top: 84px;
}

@media (max-width: 991px) {
    .sidebar-aside {
        position: static;
        order: 999;
        margin-top: 2rem;
    }
}

.sidebar-nav-item.active a {
    color: var(--unm-blue);
    border-left-color: var(--unm-red);
    background: rgba(202,17,20,.04);
    font-weight: 500;
}
/*
.btn-domanda-unm {
    display: block;
    width: 100%;
    background: #00325D;
    color: white;
    text-align: center;
    padding: .72rem;
    font-size: .85rem;
    border: 1px solid #00325D;
    text-decoration: none;
    margin-top: .6rem;
    border-radius: 3px;
    transition: background .2s, color .2s;
}
    .btn-domanda-unm:hover {
        background: white;
        color: #00325D;
    }*/