@charset "UTF-8";
/* ===============================================================
   Status Page - Hetzner-inspired design
   =============================================================== */
:root {
    --sp-primary: #008710;
    --sp-black: #383838;
    --sp-red: #f00;
    --sp-red-soft: #FF0000;
    --sp-blue: #1979a2;
    --sp-cyan: #17a2b8;
    --sp-green: #59a219;
    --sp-orange: #ff8c00;
    --sp-yellow: #fdcb00;
    --sp-white: #fff;
    --sp-gray-100: #fbfbfb;
    --sp-gray-200: #f5f5f5;
    --sp-gray-300: #ededed;
    --sp-gray-400: #dbdbdb;
    --sp-gray-500: #bebebe;
    --sp-gray-600: #8a8a8a;
    --sp-gray-700: #747474;
    --sp-gray-800: #5a5a5a;
    --sp-text: #383838;
    --sp-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}
*,*::before,*::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--sp-text);
    background: var(--sp-gray-200);
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}
a { color: var(--sp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.sp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* -- Navbar ------------------------------------------------------ */
.sp-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--sp-white);
    box-shadow: var(--sp-shadow);
    display: flex;
    align-items: center;
    padding: 16px 0;
}

/* -- Top Bar (urgent notices) ---------------------------------- */
/* Sticky red banner mostrato in cima quando un'informazione ha top_bar=true.
   Specificita alta (body > #id) per vincere su default link/SVG. */
body > div.sp-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: #008710 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    animation: sp-topbar-pulse 2.4s ease-in-out infinite;
    width: 100%;
    box-sizing: border-box;
}
body > div.sp-topbar .sp-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    box-sizing: border-box;
}
body > div.sp-topbar .sp-topbar-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ffffff !important;
    animation: sp-topbar-shake 4s ease-in-out infinite;
}
body > div.sp-topbar .sp-topbar-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    flex-shrink: 0;
}
body > div.sp-topbar .sp-topbar-items {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
body > div.sp-topbar a.sp-topbar-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
    flex-wrap: wrap;
    text-align: center;
}
body > div.sp-topbar a.sp-topbar-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
body > div.sp-topbar a.sp-topbar-item:hover { text-decoration: none !important; color: #ffffff !important; }
body > div.sp-topbar a.sp-topbar-item:visited { color: #ffffff !important; }
body > div.sp-topbar .sp-topbar-title {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
    color: #ffffff !important;
}
body > div.sp-topbar .sp-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    color: #ffffff !important;
    transition: background .15s, border-color .15s, color .15s;
}
body > div.sp-topbar a.sp-topbar-item:hover .sp-topbar-cta {
    background: #ffffff;
    color: #008710 !important;
    border-color: #ffffff;
}
body > div.sp-topbar .sp-topbar-dots {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body > div.sp-topbar .sp-topbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
body > div.sp-topbar .sp-topbar-dot:hover { background: rgba(255,255,255,.75); transform: scale(1.2); }
body > div.sp-topbar .sp-topbar-dot.active { background: #ffffff; }

@keyframes sp-topbar-pulse {
    0%, 100% { background-color: #008710; }
    50%      { background-color: #006d0d; }
}
@keyframes sp-topbar-shake {
    0%, 8%, 100% { transform: rotate(0); }
    2%           { transform: rotate(-12deg); }
    4%           { transform: rotate(12deg); }
    6%           { transform: rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
    body > div.sp-topbar { animation: none; background-color: #008710 !important; }
    body > div.sp-topbar .sp-topbar-icon { animation: none; }
    body > div.sp-topbar a.sp-topbar-item { transition: none; }
}
@media (max-width: 600px) {
    body > div.sp-topbar .sp-topbar-inner { padding: 8px 14px; gap: 10px; }
    body > div.sp-topbar .sp-topbar-title { font-size: .85rem; }
    body > div.sp-topbar .sp-topbar-cta { padding: 2px 8px; font-size: .75rem; }
}

/* Navbar offset quando la top bar e' presente */
body.has-topbar .sp-navbar { top: 44px; }

/* Anchor scroll offset: i badge linkano a queste sezioni. scroll-margin-top
   evita che il titolo finisca nascosto sotto la navbar sticky (e topbar). */
#sp-active, #sp-information, #sp-maintenance { scroll-margin-top: 112px; }
body.has-topbar #sp-active,
body.has-topbar #sp-information,
body.has-topbar #sp-maintenance { scroll-margin-top: 156px; }
@media (max-width: 768px) {
    #sp-active, #sp-information, #sp-maintenance { scroll-margin-top: 84px; }
    body.has-topbar #sp-active,
    body.has-topbar #sp-information,
    body.has-topbar #sp-maintenance { scroll-margin-top: 128px; }
}
.sp-navbar .sp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.sp-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sp-text);
}
.sp-navbar-brand:hover { text-decoration: none; }
.sp-logo { height: 64px; width: auto; }
.sp-navbar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.sp-navbar-right {
    font-size: .85rem;
    color: var(--sp-gray-700);
}
.sp-lang-switch {
    position: relative;
    margin-left: auto;
    line-height: 1;
}
.sp-lang-switch > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}
.sp-lang-switch > summary::-webkit-details-marker { display: none; }
.sp-lang-switch > summary::marker { display: none; content: ''; }
.sp-lang-switch > summary:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }

.sp-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--sp-gray-300);
    border-radius: 6px;
    color: var(--sp-text);
    font-size: .85rem;
    line-height: 1;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.sp-lang-toggle:hover { border-color: var(--sp-gray-500); background: var(--sp-gray-100); }
.sp-lang-switch[open] .sp-lang-toggle { border-color: var(--sp-gray-500); background: var(--sp-gray-100); }
.sp-lang-toggle img {
    display: block;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    flex-shrink: 0;
}
.sp-lang-name {
    font-weight: 500;
    line-height: 1;
    color: var(--sp-text);
}
.sp-lang-chev {
    width: 12px;
    height: 12px;
    color: var(--sp-gray-600);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.sp-lang-switch[open] .sp-lang-chev { transform: rotate(180deg); }

.sp-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--sp-white);
    border: 1px solid var(--sp-gray-300);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 6px;
    z-index: 1030;
    animation: sp-fadein .15s ease;
}
@keyframes sp-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sp-lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--sp-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: .85rem;
    line-height: 1.2;
    transition: background .1s;
}
.sp-lang-menu a:hover { background: var(--sp-gray-100); text-decoration: none; color: var(--sp-text); }
.sp-lang-menu a.active { background: rgba(0,135,16,.08); color: var(--sp-primary); font-weight: 500; }
.sp-lang-menu a img {
    display: block;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    flex-shrink: 0;
}
.sp-lang-menu a span { flex: 1; }
.sp-lang-check { width: 14px; height: 14px; color: var(--sp-primary); flex-shrink: 0; }

/* -- Hero -------------------------------------------------------- */
.sp-hero {
    background: #001a07;
    color: var(--sp-white);
    padding-top: 3rem;
    padding-bottom: 80px;
}
.sp-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 .625rem;
}
.sp-hero-desc {
    font-size: 22px;
    line-height: 1.5;
    color: rgba(255,255,255,.7);
    margin: 0 0 1.5rem;
}
.sp-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 600;
}
.sp-hero-pill-operational   { background: rgba(89,162,25,.18); }
.sp-hero-pill-degraded      { background: rgba(253,203,0,.18); }
.sp-hero-pill-partial        { background: rgba(226,65,0,.18); }
.sp-hero-pill-major          { background: rgba(255,0,0,.18); }
.sp-hero-pill-maintenance    { background: rgba(25,121,162,.18); }
.sp-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: sp-glow 2.5s ease-in-out infinite;
}
.sp-hdot-green  { background: #6cc644; box-shadow: 0 0 8px rgba(108,198,68,.6); }
.sp-hdot-yellow { background: #fdcb00; box-shadow: 0 0 8px rgba(253,203,0,.5); }
.sp-hdot-orange { background: #ff8c00; box-shadow: 0 0 8px rgba(255,140,0,.6); }
.sp-hdot-red    { background: #FF0000; box-shadow: 0 0 8px rgba(255,0,0,.6); }
.sp-hdot-blue   { background: #5bc0de; box-shadow: 0 0 8px rgba(91,192,222,.5); }
@keyframes sp-glow {
    0%,100% { opacity: 1; }
    50% { opacity: .45; }
}

/* -- Notification list (overlaps hero) --------------------------- */
.sp-notifications { margin-bottom: 1.5rem; }
.sp-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sp-notifications .sp-notification-list {
    margin-top: -30px;
}

/* -- Panels (grid: 60px strip + content) ------------------------- */
.sp-panel {
    display: grid;
    grid-template-columns: 60px 1fr;
    background: var(--sp-white);
    border-radius: .25rem;
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    margin-bottom: .5rem;
}
.sp-panel-strip {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-panel-strip svg { opacity: .85; }
.sp-strip-red    { background: var(--sp-red); }
.sp-strip-orange { background: var(--sp-orange); }
.sp-strip-yellow { background: var(--sp-yellow); }
.sp-strip-blue   { background: var(--sp-blue); }
.sp-strip-cyan   { background: var(--sp-cyan); }
.sp-strip-green  { background: var(--sp-green); }
.sp-strip-gray   { background: #9ca3af; }

.sp-panel-closed {
    opacity: .6;
    border-left: 2px solid #9ca3af;
}

.sp-panel-content { padding: .5rem 1rem; }
.sp-panel-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.sp-panel-info {
    flex: 1 1 0;
    min-width: 200px;
}
.sp-panel-info h6 {
    font-size: 1rem;
    margin: 0 0 .25rem;
}
.sp-panel-meta {
    font-size: 80%;
    color: var(--sp-gray-700);
    margin: 0;
    line-height: 1.6;
}
.sp-panel-meta strong { font-weight: 500; }
.sp-panel-desc {
    font-size: 87%;
    color: var(--sp-gray-600);
    margin-top: 6px;
    line-height: 1.5;
}
.sp-panel-affected {
    font-size: 80%;
    color: var(--sp-gray-700);
    margin-top: 2px;
}
.sp-panel-affected strong { font-weight: 500; }
.sp-panel-badges {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.sp-panel-action { flex-shrink: 0; }

/* -- Badge pair (Hetzner-style connected pills) ------------------ */
.sp-badge-pair { display: inline-flex; white-space: nowrap; }
.sp-badge-label {
    display: inline-block;
    padding: .25em .5em;
    font-size: 75%;
    font-weight: 500;
    line-height: 1;
    color: var(--sp-white);
    background: var(--sp-black);
    border: 2px solid var(--sp-black);
    border-radius: 10rem .25rem .25rem 10rem;
    vertical-align: middle;
}
.sp-badge-value {
    display: inline-block;
    padding: .25em .5em;
    font-size: 75%;
    font-weight: 500;
    line-height: 1;
    color: var(--sp-black);
    background: transparent;
    border: 2px solid var(--sp-black);
    border-radius: .25rem 10rem 10rem .25rem;
    vertical-align: middle;
}

/* -- Outline button ---------------------------------------------- */
.sp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .25rem .5rem;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--sp-black);
    background: transparent;
    border: 1px solid var(--sp-black);
    border-radius: .2rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sp-btn-outline:hover {
    color: var(--sp-white);
    background: var(--sp-black);
}
.sp-btn-outline svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}
.sp-btn-outline.open svg { transform: rotate(180deg); }

/* -- Section headers --------------------------------------------- */
.sp-section-title {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}
.sp-main { padding-bottom: 3rem; }

/* -- Bordered card (resolved incidents) -------------------------- */
.sp-resolved-card {
    border: 2px solid var(--sp-gray-300);
    border-radius: .25rem;
    background: var(--sp-white);
    overflow: hidden;
}
.sp-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--sp-gray-300);
}

/* -- Date rows --------------------------------------------------- */
.sp-day-empty {
    background: var(--sp-gray-100);
    padding: .5rem 1rem;
}
.sp-day-empty h6 {
    font-size: 1.15rem;
    color: var(--sp-gray-700);
    margin: 0 0 .15rem;
}
.sp-day-empty-text {
    font-size: 80%;
    font-weight: 500;
    color: var(--sp-gray-700);
    margin: 0;
}
.sp-day-header {
    background: var(--sp-white);
    padding: .5rem 1rem 0;
}
.sp-day-header h6 {
    font-size: 1.15rem;
    color: var(--sp-gray-700);
    margin: 0;
}

/* -- Day collapse (incidenti recenti, giorni passati) ----------- */
details.sp-day-collapse { display: block; }
details.sp-day-collapse > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}
details.sp-day-collapse > summary::-webkit-details-marker { display: none; }
details.sp-day-collapse > summary::marker { display: none; content: ''; }
.sp-day-header.sp-day-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    transition: background-color .15s;
}
.sp-day-header.sp-day-toggle:hover { background: var(--sp-gray-100); }
.sp-day-header.sp-day-toggle h6 { flex: 1 1 auto; }
.sp-day-count {
    font-size: .9rem;
    color: var(--sp-gray-600);
    font-weight: 400;
    margin-left: .25rem;
}
.sp-day-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: var(--sp-gray-700);
    flex-shrink: 0;
    transition: background-color .15s, color .15s;
}
.sp-day-header.sp-day-toggle:hover .sp-day-toggle-btn { background: var(--sp-gray-200); color: var(--sp-primary); }
.sp-day-chev {
    width: 18px;
    height: 18px;
    transition: transform .25s ease;
}
details.sp-day-collapse[open] .sp-day-chev { transform: rotate(180deg); }
details.sp-day-collapse[open] > summary { border-bottom: 1px solid var(--sp-gray-300); margin-bottom: .25rem; }
details.sp-day-collapse[open] .sp-day-toggle-btn { color: var(--sp-primary); }
details.sp-day-collapse summary:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: -2px; }

/* -- Resolved incident item -------------------------------------- */
.sp-resolved-item {
    padding: .5rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.sp-resolved-item:last-child { padding-bottom: .75rem; }
.sp-resolved-info { flex: 1 1 0; min-width: 200px; }
.sp-resolved-info h6 {
    font-size: 1rem;
    margin: 0 0 .25rem;
}
.sp-resolved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sp-green);
    font-weight: 500;
    font-size: 80%;
}
.sp-resolved-badge svg { width: 16px; height: 16px; }
.sp-resolved-desc {
    font-size: 80%;
    color: var(--sp-gray-700);
    margin-top: 2px;
}
.sp-resolved-action { flex-shrink: 0; align-self: center; }

/* -- Older incidents collapsible -------------------------------- */
.sp-older-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--sp-gray-700);
    background: none;
    border: none;
    border-top: 1px solid var(--sp-gray-300);
    width: 100%;
    text-align: left;
    transition: color .2s;
}
.sp-older-toggle:hover { color: var(--sp-primary); }
.sp-older-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; flex-shrink: 0; }
.sp-older-toggle.open svg { transform: rotate(90deg); }
.sp-older-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
}
.sp-older-wrap.open {
    max-height: 20000px;
    opacity: 1;
}

/* -- Calendar bar (maintenance detail + how-it-works demo) ----- */
.si-calendar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .75rem; padding: .75rem 1rem; background: rgba(25, 121, 162, .06); border-radius: 6px; border: 1px solid rgba(25, 121, 162, .25); }
.si-cal-label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500; color: #1979a2; margin-right: .25rem; }
.si-cal-label svg { width: 16px; height: 16px; }
.si-cal-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    font-size: .8rem; font-weight: 500;
    color: var(--sp-text);
    background: var(--sp-white);
    border: 1px solid var(--sp-gray-300);
    border-radius: 4px;
    text-decoration: none;
    transition: all .15s ease;
}
.si-cal-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.si-cal-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.1); text-decoration: none; color: var(--sp-text); }
.si-cal-google:hover  { border-color: #4285F4; }
.si-cal-outlook:hover { border-color: #0078D4; }
.si-cal-office:hover  { border-color: #D83B01; }
.si-cal-ics:hover     { border-color: var(--sp-primary); color: var(--sp-primary); }
@media (max-width: 600px) {
    .si-cal-label { width: 100%; margin-bottom: .25rem; }
    .si-cal-btn { flex: 1 1 calc(50% - .5rem); justify-content: center; }
}

/* -- Inline images in rendered bodies -------------------------- */
/* Le immagini caricate dall'admin via TinyMCE non devono mai
   sforare il contenitore: responsive di default. */
.si-tl-body img,
.si-postmortem-body img,
.sp-panel-desc img,
.sp-resolved-desc img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: .5rem 0;
    border-radius: 4px;
}

/* -- Push notifications subscribe card ------------------------- */
.sp-push-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--sp-white);
    border: 1px solid var(--sp-gray-300);
    border-radius: 8px;
    box-shadow: var(--sp-shadow);
}
.sp-push-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,135,16,.08);
    color: var(--sp-primary);
    border-radius: 50%;
}
.sp-push-content { flex: 1 1 auto; min-width: 0; }
.sp-push-content h4 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--sp-text);
}
.sp-push-intro {
    margin: 0 0 .75rem;
    font-size: .9rem;
    color: var(--sp-gray-700);
    line-height: 1.5;
}
.sp-push-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.sp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: #fff;
    background: var(--sp-primary);
    border: 1px solid var(--sp-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.sp-btn-primary:hover { background: #006d0d; border-color: #006d0d; }
.sp-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.sp-push-status {
    font-size: .85rem;
    color: var(--sp-gray-700);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sp-push-status.success { color: var(--sp-primary); font-weight: 500; }
.sp-push-status.error { color: var(--sp-red-soft); }
.sp-push-disclosure {
    margin: .25rem 0 0;
    font-size: .75rem;
    color: var(--sp-gray-600);
    line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
    .sp-push-card { background: #1e1e30; border-color: var(--sp-gray-700); }
}
@media (max-width: 600px) {
    .sp-push-card { flex-direction: column; gap: .75rem; padding: 1rem; }
    .sp-push-icon { width: 40px; height: 40px; }
}

/* -- Past maintenance collapsible (homepage) -------------------- */
.sp-past-maint-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 0;
    margin-top: .5rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--sp-gray-700);
    background: none;
    border: none;
    border-top: 1px solid var(--sp-gray-300);
    width: 100%;
    text-align: left;
    transition: color .2s;
}
.sp-past-maint-toggle:hover { color: var(--sp-blue); }
.sp-past-maint-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; flex-shrink: 0; }
.sp-past-maint-toggle.open svg { transform: rotate(90deg); }
.sp-past-maint-count { color: var(--sp-gray-600); font-weight: 400; }
.sp-past-maint-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
}
.sp-past-maint-wrap.open {
    max-height: 20000px;
    opacity: 1;
    margin-top: .75rem;
}

/* -- Panel details (expandable timeline, animated) -------------- */
.sp-panel-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    border-top: 1px solid transparent;
    margin-top: 0;
    padding-top: 0;
    transition: max-height .3s ease, opacity .25s ease, margin-top .25s ease, padding-top .25s ease, border-color .25s ease;
}
.sp-panel-details.open {
    max-height: 2000px;
    opacity: 1;
    border-top-color: var(--sp-gray-300);
    margin-top: .75rem;
    padding-top: .75rem;
}
.sp-resolved-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 1rem;
    transition: max-height .3s ease, opacity .25s ease, padding .25s ease;
}
.sp-resolved-details.open {
    max-height: 2000px;
    opacity: 1;
    padding: 0 1rem .75rem;
}

/* -- Timeline ---------------------------------------------------- */
.sp-timeline { padding: 0; margin: 0; }
.sp-tl-item {
    position: relative;
    padding: 0 0 1rem 28px;
    border-left: 2px solid var(--sp-gray-300);
    margin-left: 5px;
}
.sp-tl-item:last-child { padding-bottom: 0; }
.sp-tl-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sp-gray-400);
}
.sp-tl-investigating::before { background: var(--sp-red-soft) !important; }
.sp-tl-identified::before { background: var(--sp-orange) !important; }
.sp-tl-monitoring::before { background: var(--sp-yellow) !important; }
.sp-tl-resolved::before, .sp-tl-completed::before, .sp-tl-closed::before { background: var(--sp-green) !important; }
.sp-tl-postmortem::before { background: var(--sp-blue) !important; }
.sp-tl-in_progress::before { background: var(--sp-cyan) !important; }
.sp-tl-scheduled::before, .sp-tl-published::before, .sp-tl-updated::before { background: var(--sp-cyan) !important; }
.sp-tl-status {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--sp-gray-700);
    margin-bottom: 1px;
}
.sp-tl-body {
    font-size: .9rem;
    line-height: 1.5;
    color: var(--sp-text);
}
.sp-tl-time {
    font-size: .75rem;
    color: var(--sp-gray-600);
    margin-top: 2px;
}

/* -- ETA tag ----------------------------------------------------- */
.sp-eta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 80%;
    color: var(--sp-gray-700);
    margin-bottom: .5rem;
    padding: 3px 8px;
    background: var(--sp-gray-100);
    border: 1px solid var(--sp-gray-300);
    border-radius: .2rem;
    font-weight: 500;
}

/* -- Issue dots (auto-detected) ---------------------------------- */
.sp-issue {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 80%;
    color: var(--sp-gray-700);
}
.sp-issue-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sp-idot-warning  { background: var(--sp-yellow); }
.sp-idot-critical { background: var(--sp-orange); }
.sp-idot-disaster { background: var(--sp-red); }
.sp-issue strong { color: var(--sp-text); font-weight: 500; }

/* -- Pin indicator ----------------------------------------------- */
.sp-pin { font-style: normal; margin-right: 2px; }

/* -- Uptime bar (90 days) --------------------------------------- */
.sp-uptime-row {
    background: var(--sp-white);
    border: 1px solid var(--sp-gray-300);
    border-radius: .25rem;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
}
.sp-uptime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}
.sp-uptime-name {
    font-weight: 500;
    font-size: .95rem;
}
.sp-uptime-pct {
    font-weight: 600;
    font-size: .95rem;
    color: var(--sp-green);
}
.sp-uptime-bar {
    display: flex;
    gap: 1px;
    height: 30px;
    border-radius: 3px;
    overflow: hidden;
}
.sp-uptime-day {
    flex: 1;
    min-width: 0;
    border-radius: 1px;
    cursor: pointer;
    transition: opacity .15s;
    position: relative;
}
.sp-uptime-day:hover { opacity: .75; }
.sp-uptime-tip {
    position: fixed;
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .75rem;
    line-height: 1.5;
    white-space: normal;
    pointer-events: auto;
    z-index: 100;
    min-width: 200px;
    max-width: 320px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.sp-uptime-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}
.sp-uptime-tip .sp-tip-date {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: .8rem;
}
.sp-tip-ok { color: #86efac; font-size: .8rem; }
.sp-tip-event {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
}
.sp-tip-event + .sp-tip-event { border-top: 1px solid rgba(255,255,255,.1); }
.sp-tip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.sp-tip-detail { flex: 1; min-width: 0; }
.sp-tip-title {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 500;
    font-size: .8rem;
    display: block;
}
.sp-tip-title:hover { text-decoration: underline; color: #fff; }
.sp-tip-meta {
    font-size: .7rem;
    color: #94a3b8;
    margin-top: 1px;
}
.sp-tip-sev { font-weight: 600; }
.sp-uday-operational { background: var(--sp-green); }
.sp-uday-minor       { background: var(--sp-yellow); }
.sp-uday-major       { background: var(--sp-orange); }
.sp-uday-critical    { background: var(--sp-red-soft); }
.sp-uday-maintenance { background: var(--sp-blue); }
.sp-uday-degradation { background: #ff8c00; }   /* arancione puro per incidenti che non sono downtime */
.sp-uptime-labels {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: var(--sp-gray-600);
    margin-top: 4px;
}

/* -- Refresh indicator ------------------------------------------- */
.sp-refresh {
    text-align: center;
    font-size: .8rem;
    color: var(--sp-gray-600);
    margin: 2rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sp-refresh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sp-green);
    display: inline-block;
    animation: sp-pulse 2s infinite;
}
@keyframes sp-pulse {
    0%,100% { opacity: 1; }
    50% { opacity: .3; }
}

/* -- Ribbon (Hetzner-style separator) --------------------------- */
.sp-ribbon-wrap { height: 0; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sp-ribbon {
    position: relative;
    top: -11px;
    z-index: 98;
    height: 22px;
    width: calc(100% - 44px);
    margin: 0 auto;
    background: var(--sp-gray-200);
}
.sp-ribbon::before,
.sp-ribbon::after {
    position: absolute;
    display: inline-block;
    width: 22px;
    height: 22px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    content: "";
}
.sp-ribbon::before { left: -22px; border-right: 11px solid var(--sp-gray-200); }
.sp-ribbon::after  { right: -22px; border-left: 11px solid var(--sp-gray-200); }

/* -- Footer ------------------------------------------------------ */
.sp-footer {
    background: #000000;
    color: #fff;
    padding: 2rem 0 1.5rem;
    text-align: center;
}
.sp-footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sp-footer-copy {
    font-size: .85rem;
    margin-bottom: .75rem;
    opacity: .8;
}
.sp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
    display: flex;
    justify-content: center;
    gap: .25rem 1rem;
    flex-wrap: wrap;
}
.sp-footer-links li { position: relative; }
.sp-footer-links li + li::before {
    content: "\00B7";
    position: absolute;
    left: -.65rem;
    color: rgba(255,255,255,.4);
}
.sp-footer-links a {
    font-size: .85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    opacity: .85;
    transition: opacity .15s;
}
.sp-footer-links a:hover { opacity: 1; text-decoration: underline; }
.sp-footer-legal {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    display: flex;
    justify-content: center;
    gap: .25rem 1rem;
    flex-wrap: wrap;
}
.sp-footer-legal li { position: relative; }
.sp-footer-legal li + li::before {
    content: "\00B7";
    position: absolute;
    left: -.65rem;
    color: rgba(255,255,255,.4);
}
.sp-footer-legal a {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .15s;
}
.sp-footer-legal a:hover { color: #fff; text-decoration: underline; }

/* -- Hero info/maintenance badges -------------------------------- */
.sp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.sp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: .95rem;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity .15s, transform .15s;
    line-height: 1.4;
}
.sp-hero-badge:hover { opacity: .85; transform: translateY(-1px); text-decoration: none !important; color: #fff !important; }
.sp-hero-badge svg { flex-shrink: 0; opacity: .9; width: 16px; height: 16px; }
.sp-hero-badge strong { font-weight: 700; }
.sp-hero-badge-incident { background: rgba(255, 140, 0, .28); border: 1px solid rgba(255, 140, 0, .55); }
.sp-hero-badge-info    { background: rgba(23, 162, 184, .25); border: 1px solid rgba(23, 162, 184, .5); }
.sp-hero-badge-maint   { background: rgba(25, 121, 162, .25); border: 1px solid rgba(25, 121, 162, .5); }
.sp-hero-badge-offline { background: rgba(255, 0, 0, .28); border: 1px solid rgba(255, 0, 0, .55); }
@media (max-width: 600px) {
    .sp-hero-pill { font-size: 1.05rem; padding: 10px 20px; }
    .sp-hero-badge { font-size: .85rem; padding: 6px 14px; }
}

/* -- Hero stats row --------------------------------------------- */
.sp-hero-stats {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: .75rem;
    gap: 1rem;
}
.sp-hero-count {
    font-size: .9rem;
    opacity: .75;
}

/* -- Incident anchor -------------------------------------------- */
.sp-anchor {
    color: var(--sp-gray-500);
    text-decoration: none;
    font-size: .8rem;
    margin-left: 4px;
    opacity: .3;
    transition: opacity .15s, color .15s;
    vertical-align: middle;
}
.sp-panel-info h6:hover .sp-anchor,
.sp-resolved-info h6:hover .sp-anchor { opacity: .6; }
.sp-anchor:hover { opacity: 1 !important; color: var(--sp-primary); text-decoration: none; }

/* -- Scroll to top ---------------------------------------------- */
.sp-scroll-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sp-gray-300);
    background: var(--sp-white);
    color: var(--sp-gray-700);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: opacity .2s, transform .2s;
    opacity: 0;
    transform: translateY(8px);
}
.sp-scroll-top.visible { display: flex; opacity: 1; transform: translateY(0); }
.sp-scroll-top:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }
.sp-scroll-top svg { width: 20px; height: 20px; }
@media (max-width: 768px) { .sp-scroll-top { display: none !important; } }

/* -- PWA install banner ----------------------------------------- */
.sp-pwa-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1050;
    background: #1a1a2e;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    max-width: 540px;
    margin: 0 auto;
    animation: sp-pwa-slide-up .3s ease;
}
@keyframes sp-pwa-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sp-pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.sp-pwa-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
}
.sp-pwa-banner-text { flex: 1 1 auto; min-width: 0; }
.sp-pwa-banner-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 2px;
    color: #ffffff;
}
.sp-pwa-banner-desc {
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    line-height: 1.35;
}
.sp-pwa-banner-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.sp-pwa-btn-install {
    padding: 6px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .15s;
}
.sp-pwa-btn-install:hover { opacity: .85; }
.sp-pwa-btn-dismiss {
    padding: 4px 10px;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sp-pwa-btn-dismiss:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 480px) {
    .sp-pwa-banner-inner { flex-wrap: wrap; gap: 10px; }
    .sp-pwa-banner-icon { width: 40px; height: 40px; }
    .sp-pwa-banner-actions { flex-direction: row; width: 100%; gap: 8px; }
    .sp-pwa-btn-install, .sp-pwa-btn-dismiss { flex: 1; padding: 8px 12px; }
}

/* -- Offline banner --------------------------------------------- */
.sp-offline {
    display: none;
    background: var(--sp-yellow);
    color: var(--sp-black);
    text-align: center;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 500;
}
.sp-offline.visible { display: block; }

/* -- Refresh states --------------------------------------------- */
.sp-refresh-spin {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--sp-gray-400);
    border-top-color: var(--sp-primary);
    border-radius: 50%;
    animation: sp-spin .6s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-refresh-error { color: var(--sp-red-soft); }

/* -- Severity badge colors -------------------------------------- */
.sp-sev-critical .sp-badge-label { background: var(--sp-red-soft); border-color: var(--sp-red-soft); }
.sp-sev-critical .sp-badge-value { color: var(--sp-red-soft); border-color: var(--sp-red-soft); }
.sp-sev-major .sp-badge-label { background: var(--sp-orange); border-color: var(--sp-orange); }
.sp-sev-major .sp-badge-value { color: var(--sp-orange); border-color: var(--sp-orange); }
.sp-sev-minor .sp-badge-label { background: var(--sp-yellow); border-color: var(--sp-yellow); color: var(--sp-black); }
.sp-sev-minor .sp-badge-value { color: var(--sp-yellow); border-color: var(--sp-yellow); }

/* -- Responsive -------------------------------------------------- */
@media (max-width: 991px) {
    .sp-panel-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .sp-panel-info { min-width: 0; width: 100%; }
    .sp-resolved-item { flex-direction: column; gap: .5rem; }
    .sp-hero-stats { display: block; margin-top: .5rem; }
    .sp-hero-count { display: block; margin-bottom: .25rem; }
    .sp-hero-sla { display: flex; margin-left: 0 !important; justify-content: flex-start; align-items: baseline; gap: .5rem; }
}
@media (max-width: 768px) {
    .sp-hero h1 { font-size: 1.75rem; }
    .sp-hero-desc { font-size: 18px; }
    .sp-hero { padding-top: 2rem; padding-bottom: 60px; }
    .sp-notifications .sp-notification-list { margin-top: -20px; }
    .sp-section-title { font-size: 1.35rem; }
    .sp-container { padding-left: 16px; padding-right: 16px; }
    .sp-ribbon-wrap { padding: 0 16px; }
    .sp-footer-inner { padding: 0 16px; }
    .sp-navbar { padding: 10px 0; }
    .sp-logo { height: 44px; width: auto; max-width: 220px; }
    .sp-navbar-title { display: none; } /* logo gia contiene il brand */
    .sp-navbar-brand { gap: 0; min-width: 0; flex-shrink: 1; overflow: hidden; }
    .sp-lang-switch { flex-shrink: 0; }
    .sp-panel { grid-template-columns: 48px 1fr; }
    .sp-panel-strip svg { width: 16px; height: 16px; }
    .sp-anchor { display: none; }
}
@media (max-width: 480px) {
    .sp-logo { height: 36px; max-width: 180px; }
    .sp-hero h1 { font-size: 1.4rem; }
    .sp-hero-desc { font-size: 16px; }
    .sp-lang-name { display: none; }
    .sp-lang-toggle { padding: 6px 8px; gap: 6px; }
    .sp-lang-menu { right: 0; left: auto; min-width: 160px; }
}

/* -- Past incidents filter bar ---------------------------------- */
.sp-past-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 1rem;
}
.sp-past-header .sp-section-title { margin: 0; }
.sp-filter-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.sp-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sp-search-wrap svg {
    position: absolute;
    left: 10px;
    color: var(--sp-gray-600);
    pointer-events: none;
}
.sp-search {
    padding: 6px 10px 6px 32px;
    font-size: .85rem;
    background: var(--sp-white);
    border: 1px solid var(--sp-gray-400);
    border-radius: 4px;
    color: var(--sp-text);
    width: 240px;
    transition: border-color .15s, box-shadow .15s;
}
.sp-search:focus, .sp-filter-sel:focus {
    outline: none;
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(0,135,16,.15);
}
.sp-filter-sel {
    padding: 6px 28px 6px 10px;
    font-size: .85rem;
    background: var(--sp-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23747474' stroke-width='2' stroke-linecap='round'><path d='M4 6l4 4 4-4'/></svg>") no-repeat right 8px center;
    background-size: 12px;
    border: 1px solid var(--sp-gray-400);
    border-radius: 4px;
    color: var(--sp-text);
    appearance: none;
    cursor: pointer;
}
.sp-filter-clear {
    padding: 4px 10px;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--sp-gray-600);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
}
.sp-filter-clear:hover { color: var(--sp-red-soft); background: rgba(255, 0, 0, .08); border-color: rgba(255, 0, 0, .2); }
.sp-filter-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--sp-gray-100);
    border: 1px dashed var(--sp-gray-400);
    border-radius: 4px;
    color: var(--sp-gray-700);
    font-size: .9rem;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .sp-past-header { flex-direction: column; align-items: stretch; }
    .sp-filter-bar { width: 100%; }
    .sp-search { width: 100%; flex: 1 1 100%; }
    .sp-search-wrap { flex: 1 1 100%; }
    .sp-filter-sel { flex: 1 1 auto; min-width: 0; }
}

/* -- SLA indicator ---------------------------------------------- */
.sp-hero-sla {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-left: auto;
}
.sp-sla-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #6cc644;
}
.sp-sla-label {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

/* -- Post-mortem badge ----------------------------------------- */
.sp-pm-badge {
    display: inline-block;
    margin-top: 4px;
}
.sp-pm-badge a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--sp-blue);
    background: rgba(25, 121, 162, .1);
    border: 1px solid rgba(25, 121, 162, .3);
    border-radius: 3px;
    text-decoration: none;
}
.sp-pm-badge a:hover {
    background: rgba(25, 121, 162, .2);
    text-decoration: none;
}

/* -- Dark mode --------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --sp-gray-100: #1a1a2e;
        --sp-gray-200: #12121f;
        --sp-gray-300: #2a2a3d;
        --sp-gray-400: #3a3a4d;
        --sp-gray-500: #5a5a6d;
        --sp-gray-600: #8a8a9d;
        --sp-gray-700: #acacbd;
        --sp-gray-800: #d0d0dd;
        --sp-black: #e0e0e8;
        --sp-white: #1e1e30;
        --sp-text: #e0e0e8;
    }
    body { background: var(--sp-gray-200); color: var(--sp-text); }
    .sp-navbar { background: #1e1e30; border-bottom: 1px solid var(--sp-gray-300); }
    .sp-navbar-brand { color: var(--sp-text); }
    .sp-logo { filter: brightness(0) invert(1); }
    .sp-hero { background: #001a07; }
    .sp-panel { background: #1e1e30; }
    .sp-resolved-card { background: #1e1e30; border-color: var(--sp-gray-300); }
    .sp-day-empty { background: #16162a; }
    .sp-day-header { background: #1e1e30; }
    .sp-older-toggle { border-top-color: var(--sp-gray-700); color: var(--sp-gray-400); }
    .sp-badge-label { background: var(--sp-gray-700); border-color: var(--sp-gray-700); color: #16162a; }
    .sp-badge-value { color: var(--sp-text); border-color: var(--sp-gray-700); }
    .sp-btn-outline { color: var(--sp-text); border-color: var(--sp-gray-500); }
    .sp-btn-outline:hover { background: var(--sp-gray-500); color: #16162a; }
    .sp-footer { background: #000000; color: #e0e0e8; }
    .sp-footer-links a { color: #e0e0e8; }
    .sp-footer-legal a { color: rgba(224,224,232,.5); }
    .sp-footer-legal a:hover { color: #e0e0e8; }
    .sp-footer-links li + li::before,
    .sp-footer-legal li + li::before { color: rgba(224,224,232,.3); }
    .sp-ribbon { background: var(--sp-gray-200); }
    .sp-ribbon::before { border-right-color: var(--sp-gray-200); }
    .sp-ribbon::after  { border-left-color: var(--sp-gray-200); }
    .sp-offline { background: #3d3520; color: #fdcb00; }
    .sp-anchor { color: var(--sp-gray-600); }
    .sp-uptime-row { background: #1e1e30; border-color: var(--sp-gray-300); }
    .sp-scroll-top { background: #1e1e30; border-color: var(--sp-gray-700); color: var(--sp-gray-400); }
    .sp-scroll-top:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }
    .sp-pm-badge a { background: rgba(25, 121, 162, .15); border-color: rgba(25, 121, 162, .4); }
    .sp-search, .sp-filter-sel { background-color: #1e1e30; border-color: var(--sp-gray-700); color: var(--sp-text); }
    .sp-filter-empty { background: #1e1e30; border-color: var(--sp-gray-700); color: var(--sp-gray-400); }
    .sp-lang-toggle { border-color: var(--sp-gray-700); color: var(--sp-text); }
    .sp-lang-menu { background: #1e1e30; border-color: var(--sp-gray-700); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
    .sp-lang-menu a { color: var(--sp-text); }
    .sp-lang-menu a:hover { background: #2a2a3d; color: var(--sp-text); }
    .sp-lang-menu a.active { background: rgba(0,135,16,.15); }
    .si-calendar { background: rgba(25, 121, 162, .12); border-color: rgba(25, 121, 162, .35); }
    .si-cal-btn { background: #1e1e30; border-color: var(--sp-gray-700); color: var(--sp-text); }
}

/* -- Print: nascondi il widget Sienna Accessibility ovunque ---- */
/* Sienna inietta elementi con prefisso asw-; non vanno mai in stampa. */
@media print {
    .asw-menu-btn,
    .asw-menu,
    .asw-widget,
    .asw-footer,
    [class^="asw-"],
    [class*=" asw-"] { display: none !important; }
}
