
/* SHIELDHOSTING ANNOUNCEMENTS V26 */

/* Struttura */

.sh-v26-news-page {
    max-width: 1050px;
    margin: 15px auto 40px;
    color: #dbe5f4;
}

.sh-v26-news-page .card {
    background: #142136 !important;
    border: 1px solid #2d4260 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
}

.sh-v26-news-page .card-body {
    padding: 32px !important;
}

.sh-v26-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #60a5fa !important;
    margin-bottom: 15px;
}

.sh-v26-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #f1f5f9 !important;
    margin-bottom: 8px;
}

.sh-v26-subtitle {
    color: #94a3b8 !important;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Ripristina la visibilita del titolo */

body .sh-v26-news-page .card h1,
body .sh-v26-news-page .announcement h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    color: #f1f5f9 !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 0 18px !important;
}

.sh-v26-news-page h1 a {
    color: #f1f5f9 !important;
}

.sh-v26-news-page h2,
.sh-v26-news-page h3,
.sh-v26-news-page h4 {
    color: #edf4ff !important;
    font-weight: 700 !important;
    line-height: 1.5;
}

.sh-v26-news-page .text-muted {
    color: #9fb0c9 !important;
}

.sh-v26-detail .list-inline {
    border-bottom: 1px solid #2c405d;
    padding-bottom: 20px;
    margin-bottom: 15px;
}

/* Corpo della comunicazione */

.sh-v26-detail .card-body .py-5 {
    padding-top: 20px !important;
    padding-bottom: 15px !important;
}

.sh-v26-news-page p,
.sh-v26-news-page article,
.sh-v26-detail .card-body .py-5 {
    color: #c8d5e8 !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    overflow-wrap: anywhere;
}

.sh-v26-news-page p {
    margin-bottom: 18px !important;
}

.sh-v26-news-page strong {
    color: #f1f5f9 !important;
    font-weight: 700;
}

.sh-v26-news-page img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Tabelle di tutti gli annunci */

.sh-v26-news-page table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #30445e !important;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 26px !important;
    background: #152136 !important;
    color: #dbe5f4 !important;
}

.sh-v26-news-page table th {
    background: #20344f !important;
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    text-align: left;
}

.sh-v26-news-page table th,
.sh-v26-news-page table td {
    padding: 13px 17px !important;
    border: 0 !important;
    border-bottom: 1px solid #293d59 !important;
    vertical-align: middle !important;
}

.sh-v26-news-page table tr:nth-child(even) td {
    background: #192940 !important;
}

.sh-v26-news-page table tr:last-child td {
    border-bottom: 0 !important;
}

.sh-v26-news-page table td.sh-v26-closed {
    color: #fca5a5 !important;
    font-weight: 600;
}

.sh-v26-news-page table td.sh-v26-hours {
    color: #fcd34d !important;
    font-weight: 600;
}

/* Elenco annunci */

.sh-v26-index > .card > .card-body > h3.card-title {
    display: none !important;
}

.sh-v26-index .announcement {
    padding: 24px !important;
    margin-bottom: 20px;
    background: #17273e !important;
    border: 1px solid #2e4566 !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 12px !important;
}

.sh-v26-index .announcement h1,
.sh-v26-index .announcement h1 a {
    font-size: 22px !important;
}

/* Pulsanti */

.sh-v26-news-page a.sh-v26-back {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #93c5fd !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
}

.sh-v26-news-page a.btn {
    background: #20344f !important;
    border: 1px solid #365478 !important;
    color: #dbeafe !important;
    border-radius: 8px !important;
    padding: 10px 17px !important;
}

.sh-v26-news-page a.btn:hover {
    background: #2563eb !important;
    color: #fff !important;
}

/* Smartphone */

@media (max-width: 767px) {
    .sh-v26-news-page {
        margin-top: 5px;
    }

    .sh-v26-news-page .card-body {
        padding: 18px !important;
    }

    .sh-v26-news-page .announcement {
        padding: 16px !important;
    }

    .sh-v26-news-page table th,
    .sh-v26-news-page table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    .sh-v26-page-title {
        font-size: 25px;
    }

    .sh-v26-news-page p {
        font-size: 14px !important;
    }
}


/* SHIELDHOSTING ANNOUNCEMENTS V26.1 */

/* Sfondo uniforme fino al fondo della pagina */

html:has(.sh-v26-news-page),
body:has(.sh-v26-news-page) {
    background: #0d1420 !important;
    min-height: 100vh;
}

body:has(.sh-v26-news-page) #main-body {
    background: #0d1420 !important;
}

body:has(.sh-v26-news-page) #footer,
body:has(.sh-v26-news-page) footer {
    background: #0b1626 !important;
    color: #b7c8de !important;
    border-color: #263a53 !important;
}

/* Menu secondari: voci sempre visibili */

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .collapse,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .collapsing {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
    transition: none !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card {
    background: #142136 !important;
    border: 1px solid #2d4260 !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 15px;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header {
    background: #192b44 !important;
    color: #93c5fd !important;
    padding: 14px 16px !important;
    cursor: default !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .list-group-item {
    background: transparent !important;
    border-color: #263951 !important;
    color: #dbe5f4 !important;
    padding: 11px 15px !important;
    font-size: 13px !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar a.list-group-item:hover {
    background: #203650 !important;
    color: #93c5fd !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header .fa-chevron-up,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header .fa-chevron-down,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header .fa-angle-up,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header .fa-angle-down,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header .fa-caret-up,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header .fa-caret-down {
    display: none !important;
}

.sh-v261-static-heading {
    cursor: default !important;
}

/* Mantiene il contenuto leggibile */

body:has(.sh-v26-news-page) .primary-content {
    min-width: 0;
}

.sh-v26-news-page {
    max-width: 100% !important;
}

.sh-v26-detail .card-body {
    padding-bottom: 25px !important;
}


/* SHIELDHOSTING SIDEBAR FIX V26.2 */

/* Ripristina il contenuto dei menu WHMCS */

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .collapsable-card-body,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card > .card-body,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card > .list-group,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .collapse,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .collapsing {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Tutte le voci sempre visibili */

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .list-group {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    overflow: visible !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .list-group-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    color: #dbe5f4 !important;
    background: transparent !important;
    padding: 11px 15px !important;
}

/* Elimina esclusivamente il comando di chiusura */

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-minimise,
body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .panel-minimise {
    display: none !important;
    pointer-events: none !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .card-header {
    pointer-events: none !important;
    cursor: default !important;
}

/* Mantiene cliccabili tutti i collegamenti */

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar .list-group-item {
    pointer-events: auto !important;
}

body:has(:is(.sh-v26-news-page, .sh-v27-network-page)) #main-body .sidebar a.list-group-item:hover {
    background: #203650 !important;
    color: #93c5fd !important;
}



/* SHIELDHOSTING NETWORK STATUS V27 */

html:has(.sh-v27-network-page),
body:has(.sh-v27-network-page),
body:has(.sh-v27-network-page) #main-body {
    background: #0d1420 !important;
}

.sh-v27-network-page {
    width: 100%;
    min-width: 0;
    color: #dbe5f4;
    margin-bottom: 35px;
}

.sh-v27-heading {
    margin-bottom: 25px;
}

.sh-v27-kicker {
    color: #60a5fa !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

body .sh-v27-network-page h1.sh-v27-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    color: #f1f5f9 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
}

.sh-v27-subtitle {
    color: #94a3b8 !important;
    font-size: 14px;
    line-height: 1.7;
}

/* Stato della rete */

.sh-v27-network-page .alert {
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.7;
}

.sh-v27-network-page .alert-success {
    background: #11271f !important;
    border: 1px solid #26583e !important;
    color: #86efac !important;
}

.sh-v27-network-page .alert-success * {
    color: #86efac !important;
}

.sh-v27-network-page .alert-warning {
    background: #2c2317 !important;
    border: 1px solid #785520 !important;
    color: #fcd34d !important;
}

.sh-v27-network-page .alert-warning * {
    color: #fcd34d !important;
}

.sh-v27-network-page .alert-danger {
    background: #301b23 !important;
    border: 1px solid #783344 !important;
    color: #fca5a5 !important;
}

.sh-v27-network-page .alert-danger * {
    color: #fca5a5 !important;
}

.sh-v27-network-page .alert-info {
    background: #142943 !important;
    border: 1px solid #31578a !important;
    color: #93c5fd !important;
}

.sh-v27-network-page .alert-info * {
    color: #93c5fd !important;
}

.sh-v27-network-page .alert i {
    margin-right: 8px;
    font-size: 18px;
}

/* Segnalazioni e manutenzioni */

body .sh-v27-network-page .card {
    background: #142136 !important;
    border: 1px solid #2d4260 !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
}

body .sh-v27-network-page .card-header {
    background: #192b44 !important;
    color: #edf4ff !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid #2d4260 !important;
    font-weight: 700;
}

body .sh-v27-network-page .card-body {
    padding: 24px !important;
    color: #c8d5e8 !important;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.sh-v27-network-page .card-body h2,
.sh-v27-network-page .card-body h3,
.sh-v27-network-page .card-body h4 {
    color: #f1f5f9 !important;
}

.sh-v27-network-page .text-muted {
    color: #9fb0c9 !important;
}

/* Sezione senza segnalazioni */

.sh-v27-empty {
    padding: 35px 20px !important;
    text-align: center;
    background: #142136 !important;
    border: 1px solid #2d4260 !important;
    border-radius: 14px;
    color: #c8d5e8 !important;
    margin-bottom: 20px;
}

.sh-v27-empty::before {
    content: "\f21e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: block;
    font-size: 30px;
    color: #60a5fa;
    margin-bottom: 14px;
}

/* Pulsanti e paginazione */

.sh-v27-network-page .btn,
.sh-v27-network-page .page-link {
    background: #20344f !important;
    color: #dbeafe !important;
    border-color: #365478 !important;
    border-radius: 7px;
}

.sh-v27-network-page a.btn:hover,
.sh-v27-network-page a.page-link:hover {
    background: #2563eb !important;
    color: #fff !important;
}

/* Mobile */

@media (max-width: 767px) {
    body .sh-v27-network-page h1.sh-v27-title {
        font-size: 25px !important;
    }

    .sh-v27-network-page .alert,
    body .sh-v27-network-page .card-body {
        padding: 16px !important;
    }

    .sh-v27-kicker {
        font-size: 10px;
    }
}


/* SHIELDHOSTING DASHBOARD FIX V27.1 */

html:has(body.sh-app #sh-v17-orders-data),
body.sh-app:has(#sh-v17-orders-data) {
    background-color: #0d1420 !important;
    min-height: 100vh !important;
}

body.sh-app:has(#sh-v17-orders-data) #main-body {
    background-color: #0d1420 !important;
}

body.sh-app:has(#sh-v17-orders-data) footer,
body.sh-app:has(#sh-v17-orders-data) #footer,
body.sh-app:has(#sh-v17-orders-data) .footer-bottom {
    background-color: #0b1626 !important;
    border-color: #263a53 !important;
}


/* SHIELDHOSTING PUBLIC PAGES V28 */

/* Riutilizza la navbar ShieldHosting esistente */

body.sh-public-info:not(.sh-app):not(.sh-v8-cart)
.sh-v8-storebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Nasconde esclusivamente la vecchia intestazione WHMCS */

body.sh-public-info:not(.sh-app) #header,
body.sh-public-info:not(.sh-app) .master-breadcrumb {
    display: none !important;
}

/* Mantiene lo sfondo dark uniforme */

html:has(body.sh-public-info),
body.sh-public-info,
body.sh-public-info #main-body {
    background-color: #0d1420 !important;
}

body.sh-public-info #footer,
body.sh-public-info .sh-v16-payments {
    background-color: #0b1626 !important;
}

/* Compatibilita della navbar originale */

body.sh-public-info .sh-v8-storebar-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.sh-public-info .sh-v8-nav {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
}

body.sh-public-info .sh-v8-brand img {
    display: block !important;
    visibility: visible !important;
    max-width: 100%;
    height: auto;
}

body.sh-public-info #main-body {
    padding-top: 30px !important;
}

@media (max-width: 767px) {
    body.sh-public-info .sh-v8-storebar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    body.sh-public-info .sh-v8-nav {
        justify-content: center;
        gap: 12px;
    }
}
