/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   Tipografia generale
   ========================================== */

/* Testi principali */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #263746;
}

/* Titoli */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

/* Testi dei paragrafi */
p {
    line-height: 1.65;
}

/* Collegamenti */
a {
    transition: color 0.2s ease;
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 2 - Titoli homepage
   ========================================== */

.home #tabs .section-title p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 3 - Titoli articoli homepage
   ========================================== */

.home #tabs .tab-container article h2,
.home #tabs .tab-container article h3,
.home #tabs .tab-container article .title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #123d53;
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 4 - Sidebar homepage
   ========================================== */

/* Riquadri sidebar */
.home .sidebar .widget {
    background: #ffffff;
    border: 1px solid #e2e8ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 45, 70, 0.06);
    margin-bottom: 22px;
}

/* Titoli dei riquadri */
.home .sidebar .widget .widget-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0b4058;
    background: #f7fafc;
    border-bottom: 2px solid #009dd6;
    padding: 14px 10px;
    text-align: center;
}

/* Contenuto dei widget */
.home .sidebar .widget .textwidget {
    padding: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

/* Link sidebar */
.home .sidebar .widget a {
    color: #0b4058;
    transition: color 0.2s ease;
}

.home .sidebar .widget a:hover {
    color: #009dd6;
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 5 - Caricamento pulito dello slider
   ========================================== */

/*
 * Nasconde lo slider prima che bxSlider
 * abbia creato il proprio contenitore.
 */

.home ul.slider {
    visibility: hidden;
}

/*
 * Quando bxSlider crea il contenitore
 * .bx-wrapper, lo slider diventa visibile.
 */

.home .bx-wrapper ul.slider {
    visibility: visible;
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 6 - Schede News e Rubriche
   ========================================== */

/* Singoli articoli */
.home #tabs article.hentry {
    padding: 16px 0 22px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e3e9ed;
}

/* Elimina il separatore dall'ultimo articolo */
.home #tabs article.hentry:last-child {
    border-bottom: none;
}

/* Titoli degli articoli */
.home #tabs article.hentry h2.entry-title {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Collegamenti ai titoli */
.home #tabs article.hentry h2.entry-title a {
    color: #123d53;
    text-decoration: none;
}

.home #tabs article.hentry h2.entry-title a:hover {
    color: #009ee0;
}

/* Descrizioni */
.home #tabs article.hentry .entry-content {
    line-height: 1.65;
}

/* Correzioni per smartphone */
@media (max-width: 767px) {
    .home #tabs article.hentry {
        padding: 14px 0 20px;
    }

    .home #tabs article.hentry h2.entry-title {
        font-size: 17px;
        line-height: 1.4;
    }
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 7 - Immagini News e Rubriche
   ========================================== */

/* Immagini News e Rubriche */
.home #tabs article.hentry figure img {
    display: block;
    width: 100%;
    max-width: 130px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.25s ease;
}

/* Contenitore delle immagini */
.home #tabs article.hentry figure {
    overflow: hidden;
    border-radius: 5px;
}

/* Effetto leggero al passaggio del mouse */
@media (hover: hover) {
    .home #tabs article.hentry figure a:hover img {
        transform: scale(1.03);
    }
}

/* Smartphone */
@media (max-width: 767px) {

    .home #tabs article.hentry figure img {
        max-width: 100%;
        height: auto;
    }

    .home #tabs article.hentry .entry-summary {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Accessibilità: elimina l'animazione
   per chi preferisce movimenti ridotti */
@media (prefers-reduced-motion: reduce) {
    .home #tabs article.hentry figure img {
        transition: none;
    }
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 8 - Articoli responsive smartphone
   ========================================== */

@media (max-width: 767px) {

    /* Articoli della homepage */
    .home #tabs article.hentry {
        padding: 18px 0;
        margin-bottom: 12px;
    }

    /* Titoli */
    .home #tabs article.hentry h2.entry-title {
        font-size: 17px;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    /* Contenitore delle immagini */
    .home #tabs article.hentry figure {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin: 0 0 12px;
    }

    /* Immagini */
    .home #tabs article.hentry figure img {
        display: block;
        width: auto;
        max-width: 130px;
        height: auto;
        border-radius: 5px;
    }

    /* Descrizioni */
    .home #tabs article.hentry .entry-summary {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.65;
        margin: 0;
    }

}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 8B - Correzione immagini duplicate
   ========================================== */

/* Smartphone: utilizza soltanto l'immagine mobile */
@media (max-width: 767px) {

    .home #tabs article.hentry figure.desktop {
        display: none !important;
    }

    .home #tabs article.hentry figure.mobile {
        display: block !important;
    }

}

/* Desktop: utilizza soltanto l'immagine desktop */
@media (min-width: 768px) {

    .home #tabs article.hentry figure.mobile {
        display: none !important;
    }

}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 8C - Allineamento articoli mobile
   ========================================== */

@media (max-width: 767px) {

    /* Immagini allineate con il titolo */
    .home #tabs article.hentry figure {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 12px;
    }

    /* Descrizioni allineate */
    .home #tabs article.hentry .entry-summary {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 9 - Pulsanti News, Rubriche e Didattica
   ========================================== */

/* Contenitore pulsanti */
.home #tabs .btn.yellow.small.inverse {
    display: table;
    margin: 18px auto 22px;
    padding: 0;
    background: #103b4d !important;
    border: 1px solid #103b4d !important;
    border-radius: 5px;
    overflow: hidden;
    transition: background-color 0.25s ease,
                border-color 0.25s ease;
}

/* Testo e area cliccabile */
.home #tabs .btn.yellow.small.inverse a {
    display: block;
    padding: 11px 22px;
    color: #ffffff !important;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
}

/* Passaggio del mouse */
@media (hover: hover) {
    .home #tabs .btn.yellow.small.inverse:hover {
        background: #0879a3 !important;
        border-color: #0879a3 !important;
    }
}

/* Navigazione da tastiera */
.home #tabs .btn.yellow.small.inverse:focus-within {
    outline: 2px solid #0879a3;
    outline-offset: 3px;
}

/* Smartphone */
@media (max-width: 767px) {
    .home #tabs .btn.yellow.small.inverse {
        max-width: 100%;
        margin: 20px auto;
    }

    .home #tabs .btn.yellow.small.inverse a {
        padding: 12px 18px;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    .home #tabs .btn.yellow.small.inverse {
        transition: none;
    }
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 9B - Dimensioni e centratura pulsanti
   ========================================== */

/* Contenitore */
.home #tabs .btn.yellow.small.inverse {
    display: table !important;
    width: auto !important;
    min-width: 210px;
    max-width: 100%;
    margin: 22px auto 28px !important;
    padding: 0 !important;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Collegamento interno */
.home #tabs .btn.yellow.small.inverse a {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;
    padding: 11px 22px !important;

    box-sizing: border-box;
    text-align: center !important;
    line-height: 1.4;

    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

/* Smartphone */
@media (max-width: 767px) {
    .home #tabs .btn.yellow.small.inverse {
        min-width: 190px;
    }

    .home #tabs .btn.yellow.small.inverse a {
        min-height: 44px;
        padding: 12px 16px !important;
        font-size: 12px !important;
    }
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 10B - Pubblicazioni di rilievo
   Titoli e pulsanti
   ========================================== */

/* Singola pubblicazione */
.home li.pubblicazione {
    box-sizing: border-box;
    padding: 10px 12px;
    text-align: center;
}

/* Contenitore titolo e pulsante */
.home li.pubblicazione .title-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Titolo della pubblicazione */
.home li.pubblicazione .title-btn .title {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #103b4d;

    margin: 10px 0;
    padding: 0;

    min-height: 76px;
}

/* Numero della pubblicazione */
.home li.pubblicazione .title-btn .numero {
    font-size: 12px;
    color: #667680;
    margin: 0 0 12px;
}

/* Pulsante */
.home li.pubblicazione .btn.light-blue.inverse.small {
    display: table;
    margin: 12px auto;
    padding: 0;
    background: #103b4d !important;
    border: 1px solid #103b4d !important;
    border-radius: 5px;
    overflow: hidden;
}

/* Testo pulsante */
.home li.pubblicazione .btn.light-blue.inverse.small a {
    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 125px;
    min-height: 38px;
    padding: 8px 14px !important;

    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* Hover */
@media (hover: hover) {
    .home li.pubblicazione .btn.light-blue.inverse.small:hover {
        background: #0879a3 !important;
        border-color: #0879a3 !important;
    }
}

/* ==========================================
   MEDICAL SYSTEMS - RESTYLING 2026
   FASE 10C - Altezza carosello pubblicazioni
   ========================================== */

/* Aumenta lo spazio disponibile per le pubblicazioni */
@media (min-width: 768px) {

    .home .row.pubblicazioni .bx-viewport {
        height: 440px !important;
    }

}