/* =========================================================
   HOME
   CONTENUTI DEL MAIN
========================================================= */


/* =========================================================
   LAYOUT GENERALE HOME
========================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}


/* =========================================================
   TITOLI GENERALI
========================================================= */

.main-title {
    font-size: 2.2rem;
    color: #004080;

    margin-bottom: 40px;

    text-transform: uppercase;
    font-weight: 900;

    text-align: center;

    position: relative;
}

.main-title::after {
    content: "";

    display: block;

    width: 60px;
    height: 4px;

    background: rgba(0, 128, 12, 0.64);

    margin: 10px auto;
}


/* =========================================================
   IN EVIDENZA + SERVIZI
========================================================= */

.news-services-section {
    background: #f8f9fa;
}

.news-services-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    align-items: start;
}

.news-column,
.services-column {
    min-width: 0;
}


/* =========================================================
   IN EVIDENZA
========================================================= */

.news-column .main-title,
.services-column .main-title {
    margin-bottom: 30px;
}

.news-column .news-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 15px;
}

.news-column .news-item {
    background: #fff;

    padding: 20px 22px;

    border-radius: 12px;

    border-left: 4px solid #004080;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

    transition: all 0.25s ease;
}

.news-column .news-item:hover {
    transform: translateX(4px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    border-left-color: #d32f2f;
}

.news-column .news-date {
    font-size: 0.8rem;

    color: #999;

    margin-bottom: 5px;
}

.news-column .news-category {
    color: #d32f2f;

    font-size: 0.75rem;

    font-weight: 800;

    text-transform: uppercase;
}

.news-column .news-item h3 {
    margin: 8px 0;

    color: #333;

    font-size: 1.05rem;
}

.news-column .news-item p {
    color: #555;

    font-size: 0.85rem;

    line-height: 1.45;

    margin-bottom: 10px;
}

.read-more {
    color: #004080;

    text-decoration: none;

    font-weight: bold;

    font-size: 0.85rem;

    border-bottom: 1px solid transparent;

    transition: 0.3s;
}

.read-more:hover {
    border-bottom-color: #004080;
}


/* =========================================================
   SERVIZI
========================================================= */

.services-column .services-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.services-column .service-box {
    position: relative;

    min-height: 150px;

    padding: 20px 15px;

    background: #fff;

    border-radius: 14px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    text-align: center;

    text-decoration: none;

    color: var(--primary);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.services-column .service-box img {
    width: 65px;
    height: 65px;

    object-fit: contain;

    transition: transform 0.25s ease;
}

.services-column .service-box span {
    font-size: 0.9rem;

    font-weight: 600;
}

.services-column .service-box::before {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: #004080;

    transition: width 0.3s ease;
}

.services-column .service-box:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.18);
}

.services-column .service-box:hover::before {
    width: 100%;
}

.services-column .service-box:hover img {
    transform: scale(1.08);
}


/* =========================================================
   COMUNICATI STAMPA
========================================================= */

.comunicati-card {
    position: relative;

    overflow: visible;

    outline: none;
}

.comunicati-trigger {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border: none;
    outline: none;

    background: transparent;

    padding: 0;

    cursor: pointer;

    font-family: inherit;

    color: inherit;

    -webkit-appearance: none;
    appearance: none;
}

.comunicati-trigger:focus,
.comunicati-trigger:focus-visible,
.comunicati-card:focus,
.comunicati-card:focus-visible,
.comunicati-card *:focus,
.comunicati-card *:focus-visible {
    outline: none;
    box-shadow: none;
}


/* =========================================================
   MODAL COMUNICATI
========================================================= */

.comunicati-modal {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(10, 37, 64, 0.60);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 10000;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.comunicati-modal.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.comunicati-modal-content {
    width: 100%;

    max-width: 500px;
    max-height: 85vh;

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);

    transform: translateY(20px) scale(0.98);

    transition: transform 0.25s ease;
}

.comunicati-modal.active .comunicati-modal-content {
    transform: translateY(0) scale(1);
}

.comunicati-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    background: #004080;

    color: #fff;
}

.comunicati-close {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #fff;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    padding: 0;

    border-radius: 6px;
}

.comunicati-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.comunicati-close:focus,
.comunicati-close:focus-visible {
    outline: none;
}

.comunicati-list {
    display: flex;

    flex-direction: column;

    padding: 10px;

    max-height: calc(85vh - 65px);

    overflow-y: auto;
}

.comunicato-link {
    display: block;

    padding: 13px 10px;

    color: #004080;

    text-decoration: none;

    font-size: 0.85rem;

    font-weight: 600;

    border-bottom: 1px solid #eee;

    border-radius: 6px;

    transition: background 0.2s ease;
}

.comunicato-link:hover {
    background: #f5f8fc;
}

.comunicato-link:last-child {
    border-bottom: none;
}


/* =========================================================
   BANNER SOTTO I SERVIZI
========================================================= */

.services-banner {
    width: 100%;

    margin-top: 15px;

    overflow: hidden;
}

.services-banner a {
    display: block;

    width: 100%;

    line-height: 0;
}

.services-banner img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;

    transition: transform 0.3s ease;
}


/* =========================================================
   IN PRIMO PIANO - SLIDER PRINCIPALE
========================================================= */

.featured-media {
    width: 100%;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #e2e7ed;
    box-sizing: border-box;
}

.featured-media > .main-title {
    margin: 0 0 22px;
    color: #12345a;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}


/* =========================================================
   TESTATA SLIDER
========================================================= */

.news-slider {
    width: 100%;
    position: relative;
}

.news-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.news-slider-label {
    color: #d71920;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-slider-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.news-counter {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 5px;
    font-variant-numeric: tabular-nums;
}

.news-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #12345a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.news-arrow:hover {
    background: #d71920;
}


/* =========================================================
   FINESTRA SCORRIMENTO NOTIZIE
   ALTEZZA DINAMICA
========================================================= */

.news-viewport {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    transition: height 0.35s ease;
}

/* Le slide non devono essere forzate
   all'altezza della notizia più lunga */

.news-track {
    display: flex;
    align-items: flex-start;
    width: 100%;
    transform: translateX(0);
    transition: transform 0.55s ease;
    will-change: transform;
}

/* Ogni notizia mantiene la propria altezza */

.news-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: auto;
    align-self: flex-start;
    padding: 22px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   INTESTAZIONE NOTIZIA
========================================================= */

.featured-media-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 3px;
}

.featured-media-label {
    color: #d71920;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.locandina-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid #12345a;
    border-radius: 4px;
    color: #12345a;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.locandina-button:hover {
    color: #fff;
    background: #12345a;
}


/* =========================================================
   TITOLO NOTIZIA
========================================================= */

.featured-media-title {
    position: relative;
    margin: 0 0 22px;
    padding: 0 0 17px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #12345a;
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-align: left;
}

.featured-media-title::before {
    content: none;
}

.featured-media-title::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 17px;
    background: #d71920;
    border-radius: 2px;
}


/* =========================================================
   VIDEO RETEBIELLA.TV
========================================================= */

.services-video {
    width: 100%;
    margin-top: 0;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    margin: 10px 0 0;
    color: #555;
    font-size: 0.85rem;
    font-style: italic;
    text-align: right;
}


/* =========================================================
   GALLERIA FOTOGRAFICA
========================================================= */

.photo-gallery {
    width: 100%;
    margin-top: 22px;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-header h3 {
    margin: 0;
    color: #004080;
    font-size: 1.05rem;
    font-weight: 700;
}

.gallery-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gallery-arrow {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #004080;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.gallery-arrow:hover {
    background: #d32f2f;
}

.gallery-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gallery-viewport {
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    --gallery-gap: 12px;
    display: flex;
    gap: var(--gallery-gap);
    transform: translateX(0);
    transition: transform 0.35s ease;
    will-change: transform;
}

.gallery-item {
    display: block;
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: #e9edf2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* =========================================================
   ALTRE NOTIZIE - IMMAGINI E TESTI
========================================================= */

.news-video {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Video verticale Facebook */

.news-video iframe {
    display: block;
    width: 220px;
    height: auto;
    aspect-ratio: 267 / 476;
    max-width: 100%;
    border: none;
}

/* Immagini delle notizie */

.news-image {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.news-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

/* Descrizione */

.news-description {
    margin: 18px 0 0;
    color: #596579;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================================
   INDICATORI E PAUSA
========================================================= */

.news-slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 17px;
}

.news-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.news-dot.active {
    width: 25px;
    border-radius: 10px;
    background: #d71920;
}

.news-pause {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #dce3eb;
    border-radius: 5px;
    background: #fff;
    color: #12345a;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.news-pause:hover {
    background: #f1f5f9;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 768px) {

    .news-slide {
        padding: 17px;
    }

    .featured-media-title {
        font-size: 1.4rem;
    }

}


/* =========================================================
   RESPONSIVE - SMARTPHONE
========================================================= */

@media (max-width: 600px) {

    .featured-media {
        margin-top: 30px;
        padding-top: 20px;
    }

    .featured-media > .main-title {
        margin-bottom: 17px;
        font-size: 1.3rem;
    }

    .news-slider-label {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .news-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .news-counter {
        font-size: 0.7rem;
    }

    .news-slide {
        padding: 13px;
        border-radius: 9px;
    }

    .featured-media-label {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .locandina-button {
        padding: 5px 9px;
        font-size: 0.68rem;
    }

    .featured-media-title {
        margin-bottom: 18px;
        padding-bottom: 14px;
        font-size: 1.3rem;
        line-height: 1.4;
        letter-spacing: -0.3px;
    }

    .featured-media-title::after {
        width: 60px;
        height: 3px;
        margin-top: 13px;
    }

    .gallery-item {
        flex-basis: calc((100% - 12px) / 2);
    }

    .gallery-header h3 {
        font-size: 0.95rem;
    }

    .news-slider-footer {
        margin-top: 13px;
    }

}


/* =========================================================
   ACCESSIBILITÀ
========================================================= */

.news-arrow:focus-visible,
.news-dot:focus-visible,
.news-pause:focus-visible,
.gallery-arrow:focus-visible,
.locandina-button:focus-visible {
    outline: 3px solid #d71920;
    outline-offset: 3px;
}


/* =========================================================
   RIDUZIONE ANIMAZIONI
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .news-track,
    .news-viewport,
    .gallery-track,
    .gallery-item img,
    .news-arrow,
    .news-dot,
    .gallery-arrow {
        transition: none !important;
    }

}

/* =========================================================
   NAVIGAZIONE EVENTI
========================================================= */

.future-events-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
}

.future-events-controls button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 50%;
    border: 1px solid #d6dce4;

    background: #fff;
    color: #004080;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.future-events-controls button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   NUMERI EVENTI
========================================================= */

.future-event-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.future-event-dot {
    width: 30px !important;
    height: 30px !important;

    min-width: 30px;
    min-height: 30px;

    padding: 0 !important;
    margin: 0;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border: none !important;
    border-radius: 50%;

    background: #c5ccd6;

    color: #ffffff !important;

    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem !important;
    font-weight: 700;

    line-height: 1;

    text-align: center;

    cursor: pointer;

    opacity: 1;
    visibility: visible;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.future-event-dot:hover {
    background: #004080;
    transform: scale(1.08);
}

.future-event-dot.active {
    width: 30px !important;
    height: 30px !important;

    border-radius: 50%;

    background: #004080;

    color: #ffffff !important;
}


/* =========================================================
   NESSUN EVENTO
========================================================= */

.future-events-empty {
    padding: 40px;

    text-align: center;

    background: #fff;

    border-radius: 15px;

    color: #667085;

    border: 1px solid #e6eaf0;
}


/* =========================================================
   PROPONI UN'INIZIATIVA
========================================================= */

.initiative-section {
    padding: 45px 0 70px;

    background: #f7f9fc;
}

.initiative-box {
    display: grid;

    grid-template-columns: 90px 1fr auto;

    align-items: center;

    gap: 28px;

    max-width: 1050px;

    margin: 0 auto;

    padding: 32px 36px;

    background: #fff;

    border: 1px solid #e1e7ef;

    border-radius: 18px;

    box-shadow: 0 7px 25px rgba(15, 23, 42, 0.06);
}

.initiative-icon {
    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #eaf2fa;

    color: #004080;

    font-size: 30px;
}

.initiative-kicker {
    display: block;

    margin-bottom: 5px;

    color: #004080;

    font-size: 0.68rem;

    font-weight: 600;

    letter-spacing: 1.5px;
}

.initiative-content h2 {
    margin: 0 0 9px;

    font-size: 1.45rem;

    color: #102a43;
}

.initiative-content h2 span {
    color: #004080;
}

.initiative-content p {
    max-width: 680px;

    margin: 0;

    color: #667085;

    font-size: 0.87rem;

    line-height: 1.6;
}

.initiative-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 14px;
}

.initiative-tags span {
    padding: 4px 9px;

    border-radius: 20px;

    background: #f1f4f8;

    color: #596579;

    font-size: 0.68rem;
}

.initiative-action {
    white-space: nowrap;
}

.initiative-button {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 18px;

    border-radius: 9px;

    background: #004080;

    color: #fff;

    text-decoration: none;

    font-size: 0.78rem;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.initiative-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 15px rgba(0, 64, 128, 0.2);
}


/* =========================================================
   AREA SEGRETERIA
========================================================= */

.dashboard-grid-innovative {
    display: grid;

    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto;

    gap: 25px;

    padding-bottom: 50px;

    align-items: start;
}


/* =========================================================
   CALENDARIO
========================================================= */

.calendar-paper-style {
    grid-row: span 2;

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    display: flex;

    flex-direction: column;

    width: 100%;
}

.cal-photo-top {
    height: 180px;

    background: #fff;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

    border-radius: 20px 20px 0 0;

    padding: 10px 10px 0;
}

.cal-photo-top img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 15px 15px 5px 5px;

    transition: transform 0.3s ease;
}

.cal-content-bottom {
    padding: 20px;
}

.cal-header-clean {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.cal-title-group {
    text-align: center;
}

.cal-month-name {
    display: block;

    font-size: 1.2rem;

    font-weight: 800;

    color: #004080;

    text-transform: uppercase;

    line-height: 1;
}

.cal-year-name {
    font-size: 0.8rem;

    color: #d32f2f;

    font-weight: 600;
}

.cal-btn-prev,
.cal-btn-next {
    background: #f0f4f8;

    border: none;

    width: 32px;
    height: 32px;

    border-radius: 8px;

    cursor: pointer;

    color: #004080;

    transition: 0.2s;
}

.cal-btn-prev:hover,
.cal-btn-next:hover {
    background: #004080;
    color: #fff;
}

.cal-weekdays-modern {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    font-size: 0.65rem;

    font-weight: 700;

    color: #bbb;

    text-transform: uppercase;

    margin-bottom: 10px;

    text-align: center;
}

.cal-days-mini {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 4px;
}

.cal-days-mini span {
    aspect-ratio: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 0.85rem;

    font-weight: 500;

    color: #444;

    border-radius: 6px;

    transition: all 0.2s ease;
}

.cal-days-mini span.today {
    background: #d32f2f !important;

    color: #fff !important;

    font-weight: 700;
}


/* =========================================================
   EVENTI + MODULISTICA
========================================================= */

.info-box-top {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/* =========================================================
   CARD GENERICHE
========================================================= */

.mini-card {
    background: #fff;

    padding: 25px;

    border-radius: 20px;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    border-bottom: 4px solid #004080;

    transition: 0.3s;

    /* Mantiene le due card della stessa altezza */
    min-width: 0;
}

.mini-card:hover {
    transform: translateY(-5px);

    border-bottom-color: #d32f2f;
}


/* =========================================================
   ICONA CARD
========================================================= */

.card-icon {
    font-size: 2rem;

    margin-bottom: 10px;
}


/* =========================================================
   TITOLO CARD
========================================================= */

.mini-card h3 {
    color: #004080;

    font-size: 1.1rem;

    margin-bottom: 15px;
}


/* =========================================================
   CONTENITORE EVENTI
========================================================= */

/*
   IMPORTANTE:

   La card rimane piccola.

   I primi 2 eventi vengono mostrati normalmente.
   Dal 3° evento in poi compare la scrollbar
   SOLO all'interno di questa zona.
*/

.event-wrapper {
    max-height: 135px;

    overflow-y: auto;

    overflow-x: hidden;

    padding-right: 6px;
}


/* =========================================================
   SCROLLBAR EVENTI
========================================================= */

.event-wrapper::-webkit-scrollbar {
    width: 5px;
}

.event-wrapper::-webkit-scrollbar-track {
    background: #f1f3f6;

    border-radius: 10px;
}

.event-wrapper::-webkit-scrollbar-thumb {
    background: #c7d0da;

    border-radius: 10px;
}

.event-wrapper::-webkit-scrollbar-thumb:hover {
    background: #004080;
}


/* Firefox */

.event-wrapper {
    scrollbar-width: thin;

    scrollbar-color: #c7d0da #f1f3f6;
}


/* =========================================================
   SINGOLO EVENTO
========================================================= */

.event-entry {
    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom: 1px dashed #eee;
}


/* Ultimo evento */

.event-entry:last-child {
    border: none;

    margin-bottom: 0;
}


/* =========================================================
   TITOLO EVENTO
========================================================= */

.event-entry p {
    font-size: 0.9rem;

    color: #444;

    font-weight: 500;

    margin-bottom: 5px;

    line-height: 1.4;
}


/* =========================================================
   DATA EVENTO
========================================================= */

.event-tag {
    display: inline-block;

    background: #fdeaea;

    padding: 4px 10px;

    border-radius: 5px;

    font-size: 0.75rem;

    font-weight: bold;

    color: #d32f2f;
}


/* =========================================================
   MODULISTICA
========================================================= */

.docs-list {
    list-style: none;

    padding: 0;

    margin: 0 0 15px;
}

.docs-list li {
    margin-bottom: 10px;
}

.docs-list li a {
    color: #666;

    text-decoration: none;

    font-size: 0.9rem;

    transition: 0.2s;
}

.docs-list li a:hover {
    color: #004080;

    padding-left: 5px;
}


/* =========================================================
   VEDI TUTTI I FILE
========================================================= */

.btn-text-all {
    font-size: 0.8rem;

    color: #004080;

    font-weight: bold;

    text-decoration: none;
}


/* =========================================================
   COMUNICAZIONI FLASH
========================================================= */

.slide-box-bottom {
    background: linear-gradient(
        135deg,
        #004080 0%,
        #00264d 100%
    );

    border-radius: 20px;

    padding: 40px;

    color: #fff;

    position: relative;

    overflow: hidden;

    min-height: 180px;

    display: flex;

    align-items: center;
}

.slide-box-bottom::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    background: rgba(211, 47, 47, 0.15);

    border-radius: 50%;

    top: -80px;
    right: -80px;
}

.slide-inner {
    width: 100%;

    transition: opacity 0.4s ease;
}

.slide-inner h3 {
    font-size: 1.5rem;

    margin-bottom: 10px;

    color: #fff;
}

.slide-inner p {
    opacity: 0.9;

    font-size: 1rem;

    line-height: 1.6;

    max-width: 85%;
}

.slide-nav-dots {
    position: absolute;

    bottom: 25px;
    right: 40px;

    display: flex;

    gap: 8px;
}

.s-dot {
    width: 8px;
    height: 8px;

    background: rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    cursor: pointer;

    transition: all 0.3s ease;
}

.s-dot.active {
    background: #d32f2f;

    width: 22px;

    border-radius: 10px;
}


/* =========================================================
   PRIMA ASSEGNAZIONE
========================================================= */

.assignment-box-half {
    grid-column: 1 / -1;

    width: 70%;

    margin: 0 auto;

    background: #fff;

    border-radius: 14px;

    padding: 22px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border: 1px solid rgba(0, 64, 128, 0.05);

    transition: all 0.3s ease;
}

.assignment-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}

.header-text h3 {
    color: #004080;

    font-size: 1.15rem;

    font-weight: 700;

    margin: 0;
}

.sub-city {
    font-size: 0.85rem;

    color: #666;
}

.assignment-header i {
    color: #25D366;

    font-size: 1.5rem;
}

.assignment-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-bottom: 15px;
}

.assign-link {
    text-decoration: none;

    background: #fcfdfe;

    border: 1px solid #edf2f7;

    border-radius: 12px;

    padding: 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    transition: all 0.25s ease;
}

.assign-link img {
    width: 55px;
    height: 55px;

    object-fit: contain;
}

.assign-link span {
    font-size: 0.85rem;

    font-weight: 600;

    color: #0a2540;
}

.assign-link:hover {
    background: #fff;

    border-color: #004080;

    transform: translateY(-4px);

    box-shadow: 0 6px 15px rgba(0, 64, 128, 0.1);
}

.assignment-footer {
    margin-top: auto;

    padding-top: 12px;

    border-top: 1px solid #f0f0f0;
}

.assignment-footer p {
    font-size: 0.75rem;

    color: #7a7a7a;

    margin: 0;

    display: flex;

    align-items: center;

    gap: 8px;
}

/* =========================================================
   AREA UTILITY
========================================================= */

.utility-area {
    padding: 60px 0;

    background: #f8fafc;
}

.utility-intro {
    max-width: 700px;

    margin: -25px auto 35px;

    text-align: center;

    color: #666;

    font-size: 0.9rem;

    line-height: 1.6;
}

.utility-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 18px;
}

.utility-grid .utility-card:nth-child(-n+6) {
    grid-column: span 2;
}

.utility-grid .utility-card:nth-child(7) {
    grid-column: 2 / span 2;
}

.utility-grid .utility-card:nth-child(8) {
    grid-column: 4 / span 2;
}

.utility-card {
    position: relative;

    min-height: 145px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 20px;

    background: #fff;

    border-radius: 16px;

    border: 1px solid #edf1f5;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.utility-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: #004080;

    transform: scaleY(0);

    transform-origin: center;

    transition: transform 0.25s ease;
}

.utility-card:hover {
    transform: translateY(-5px);

    border-color: rgba(0, 64, 128, 0.15);

    box-shadow: 0 14px 32px rgba(0, 64, 128, 0.12);
}

.utility-card:hover::before {
    transform: scaleY(1);
}

.utility-logo {
    flex: 0 0 72px;

    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f7f9fb;

    border-radius: 12px;

    overflow: hidden;
}

.utility-logo img {
    width: 85%;
    height: 85%;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.utility-card:hover .utility-logo img {
    transform: scale(1.08);
}

.utility-logo-youtube {
    background: #fff0f0;

    color: #d32f2f;

    font-size: 2.6rem;
}

.utility-logo-facebook {
    background: #eef4ff;

    color: #1877f2;

    font-size: 2.6rem;
}

.utility-logo-instagram {
    background: #fff1f7;

    color: #e1306c;

    font-size: 2.6rem;
}

.utility-info {
    min-width: 0;

    padding-right: 20px;
}

.utility-info h3 {
    margin: 0 0 6px;

    color: #004080;

    font-size: 1rem;

    font-weight: 800;
}

.utility-info p {
    margin: 0;

    color: #666;

    font-size: 0.78rem;

    line-height: 1.45;
}

.utility-arrow {
    position: absolute;

    right: 15px;
    top: 15px;

    color: #b8c1ca;

    font-size: 0.7rem;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.utility-card:hover .utility-arrow {
    color: #004080;

    transform: translate(2px, -2px);
}


/* =========================================================
   CALENDARI SIULP
========================================================= */

.utility-calendar-section {
    margin-top: 35px;

    padding: 30px 0;

    background: transparent !important;

    border: none !important;

    border-radius: 0 !important;

    box-shadow: none !important;
}

.utility-calendar-header {
    text-align: center;

    margin-bottom: 25px;
}

.utility-label {
    display: inline-block;

    margin-bottom: 7px;

    padding: 4px 10px;

    background: #fdeaea;

    color: #d32f2f;

    border-radius: 5px;

    font-size: 0.65rem;

    font-weight: 800;

    letter-spacing: 0.5px;
}

.utility-calendar-header h3 {
    margin: 0 0 7px;

    color: #004080;

    font-size: 1.4rem;

    font-weight: 800;
}

.utility-calendar-header p {
    margin: 0;

    color: #777;

    font-size: 0.85rem;
}

.calendar-mosaic {
    position: relative;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    grid-template-rows: repeat(3, 150px);

    gap: 7px;

    width: 100%;

    max-width: 850px;

    margin: 0 auto;

    padding: 7px;

    background: #0a2540;

    border-radius: 18px;

    overflow: hidden;

    text-decoration: none;
}

.calendar-tile {
    position: relative;

    overflow: hidden;

    background: #ddd;

    border-radius: 8px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);

    transition:
        filter 0.35s ease,
        box-shadow 0.35s ease;
}

.calendar-tile img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: filter 0.4s ease;
}

.calendar-tile span {
    position: absolute;

    left: 8px;
    bottom: 7px;

    padding: 4px 7px;

    background: rgba(0, 64, 128, 0.9);

    color: #fff;

    border-radius: 4px;

    font-size: 0.6rem;

    font-weight: 800;

    letter-spacing: 0.5px;

    opacity: 0;

    transform: translateY(5px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.tile-1 { transform: rotate(-1deg); }
.tile-2 { transform: rotate(1.2deg); }
.tile-3 { transform: rotate(-0.7deg); }
.tile-4 { transform: rotate(0.8deg); }
.tile-5 { transform: rotate(0.6deg); }
.tile-6 { transform: rotate(-1deg); }
.tile-7 { transform: rotate(1deg); }
.tile-8 { transform: rotate(-0.5deg); }
.tile-9 { transform: rotate(-0.8deg); }
.tile-10 { transform: rotate(1deg); }
.tile-11 { transform: rotate(-0.5deg); }
.tile-12 { transform: rotate(0.8deg); }

.calendar-mosaic:hover .calendar-tile img {
    filter: blur(2.5px);
}

.calendar-mosaic .calendar-tile:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.calendar-mosaic:hover .calendar-tile span {
    opacity: 0;

    transform: translateY(5px);
}

.calendar-overlay {
    position: absolute;

    inset: 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 38, 77, 0.55);

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;

    z-index: 20;
}

.calendar-mosaic:hover .calendar-overlay {
    opacity: 1;
}

.calendar-overlay-content {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: #fff;

    gap: 7px;

    padding: 20px;
}

.calendar-overlay-content i {
    font-size: 2.3rem;

    margin-bottom: 5px;
}

.calendar-overlay-content strong {
    font-size: 1.1rem;

    font-weight: 800;
}

.calendar-overlay-content span {
    font-size: 0.75rem;

    opacity: 0.85;
}


/* =========================================================
   RISORSE NAZIONALI
========================================================= */

.national-hub-area {
    padding: 50px 0;

    background: #fff;
}

.hub-grid {
    display: grid;

    grid-template-columns: 280px 1fr 300px;

    grid-template-rows: auto auto;

    gap: 20px;

    align-items: stretch;
}

.hub-card {
    background: #fff;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    padding: 25px;

    position: relative;

    overflow: hidden;

    transition: all 0.3s ease;

    border: 1px solid #f0f0f0;

    display: flex;

    flex-direction: column;
}

.site-national {
    background: linear-gradient(
        135deg,
        #004080 0%,
        #00264d 100%
    );

    color: #fff;

    grid-row: span 1;

    text-decoration: none;
}

.site-national h3 {
    color: #fff;

    font-size: 1.3rem;

    margin-bottom: 8px;

    font-weight: 800;
}

.site-national p {
    opacity: 0.85;

    font-size: 0.85rem;

    line-height: 1.4;

    margin-bottom: 15px;
}

.hub-badge {
    background: #d32f2f;

    color: #fff;

    font-size: 0.65rem;

    padding: 3px 10px;

    border-radius: 4px;

    display: inline-block;

    margin-bottom: 10px;

    font-weight: 700;
}


/* FLASH SIULP */

.flash-periodico {
    grid-column: 2 / 3;

    border-top: 4px solid #d32f2f;

    display: flex;

    flex-direction: column;
}

.flash-body {
    display: flex;

    gap: 20px;

    align-items: stretch;

    flex: 1;
}

.flash-preview {
    flex: 0 0 47%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.flash-preview img {
    width: 100%;

    height: 76%;

    max-height: 160px;

    object-fit: contain;

    object-position: center;

    filter: drop-shadow(
        3px 3px 8px rgba(0, 0, 0, 0.15)
    );

    transition: transform 0.3s ease;
}

.flash-info {
    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 10px 0;
}

.flash-info p {
    margin-bottom: 15px;

    font-size: 0.9rem;

    line-height: 1.4;
}


/* AREA DOCUMENTALE */

.links-quick {
    grid-column: 3 / 4;

    grid-row: span 2;
}

.links-quick h3 {
    color: #004080;

    font-size: 1.1rem;

    margin-bottom: 15px;

    border-bottom: 2px solid #f0f0f0;

    padding-bottom: 10px;
}

.hub-links-list {
    list-style: none;

    padding: 0;
}

.hub-links-list li {
    margin-bottom: 8px;
}

.hub-links-list li a {
    text-decoration: none;

    color: #444;

    font-weight: 600;

    font-size: 0.85rem;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    background: #f8fafc;

    border-radius: 8px;

    transition: 0.2s;
}

.hub-links-list li a i {
    color: #d32f2f;

    font-size: 0.9rem;
}

.hub-links-list li a:hover {
    background: #004080;

    color: #fff;
}

.hub-links-list li a:hover i {
    color: #fff;
}


/* APP SIULP */

.app-promo {
    grid-column: 1 / 3;

    background: #fdfdfd;

    display: flex;

    flex-direction: row;

    align-items: center;

    padding: 20px 30px;
}

.app-flex {
    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;
}

.app-text h3 {
    color: #004080;

    font-size: 1.4rem;

    margin-bottom: 5px;
}

.app-text p {
    font-size: 0.85rem;

    color: #555;
}

.tag-promo {
    font-size: 0.7rem;

    color: #d32f2f;

    font-weight: 700;

    text-transform: uppercase;
}

.app-buttons {
    display: flex;

    gap: 8px;

    margin-top: 12px;

    justify-content: flex-start;
}

.store-btn {
    background: #222;

    color: #fff;

    padding: 6px 12px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 0.75rem;

    display: flex;

    align-items: center;

    gap: 6px;
}

.app-image img {
    height: 140px;

    filter: drop-shadow(
        0 5px 15px rgba(0, 0, 0, 0.1)
    );
}


/* =========================================================
   RESPONSIVE HOME - TABLET
========================================================= */

@media (max-width: 1024px) {

    .news-services-grid {
        gap: 20px;
    }

    .news-column .news-item {
        padding: 17px 18px;
    }

    .services-column .services-row {
        gap: 10px;
    }

    .services-column .service-box {
        min-height: 135px;

        padding: 15px 10px;
    }

    .services-column .service-box img {
        width: 55px;
        height: 55px;
    }

    .dashboard-grid-innovative {
        grid-template-columns: 260px 1fr;

        gap: 15px;

        padding: 0 10px 40px;
    }

    .cal-photo-top {
        height: 130px;

        padding: 8px 8px 0;
    }

    .cal-month-name {
        font-size: 1rem;
    }

    .cal-days-mini span {
        font-size: 0.75rem;
    }

    .info-box-top {
        gap: 12px;
    }

    .mini-card {
        padding: 15px;
    }

    .card-icon {
        font-size: 1.5rem;

        margin-bottom: 5px;
    }

    .mini-card h3 {
        font-size: 0.95rem;

        margin-bottom: 10px;
    }

    .event-entry p,
    .docs-list li a {
        font-size: 0.8rem;
    }

    .slide-box-bottom {
        padding: 25px;

        min-height: 140px;
    }

    .slide-inner h3 {
        font-size: 1.1rem;
    }

    .slide-inner p {
        font-size: 0.85rem;

        max-width: 90%;
    }

    .hub-grid {
        grid-template-columns: 240px 1fr 240px;

        gap: 15px;
    }

    .app-text h3 {
        font-size: 1.1rem;
    }

    .flash-preview img {
        height: 100px;
    }

    .site-national h3 {
        font-size: 1.1rem;
    }

    .flash-preview {
        flex: 0 0 50%;
    }

    .flash-body {
        gap: 15px;
    }
}


/* =========================================================
   RESPONSIVE - 900 PX
========================================================= */

@media (max-width: 900px) {

    .future-event-card {
        grid-template-columns: 1fr;
    }

    .future-poster {
        min-height: 320px;

        max-height: 430px;
    }

    .future-event-info {
        padding: 30px;
    }

    .initiative-box {
        grid-template-columns: 72px 1fr;
    }

    .initiative-action {
        grid-column: 2;
    }
}


/* =========================================================
   RESPONSIVE - 850 PX
========================================================= */

@media (max-width: 850px) {

    .dashboard-grid-innovative {
        grid-template-columns: 220px 1fr;

        gap: 10px;
    }

    .cal-content-bottom {
        padding: 10px;
    }

    .cal-weekdays-modern {
        font-size: 0.55rem;
    }

    .flash-preview img {
        height: 87px;
    }

    .flash-info h3 {
        font-size: 1.1rem;
    }

    .services-banner {
        margin-top: 10px;
    }
}


/* =========================================================
   RESPONSIVE - 768 PX
========================================================= */

@media (max-width: 768px) {

    .utility-area {
        padding: 45px 0;
    }

    .utility-grid {
        grid-template-columns: repeat(6, 1fr);

        gap: 12px;
    }

    .utility-grid .utility-card:nth-child(-n+6) {
        grid-column: span 2;
    }

    .utility-grid .utility-card:nth-child(7) {
        grid-column: 2 / span 2;
    }

    .utility-grid .utility-card:nth-child(8) {
        grid-column: 4 / span 2;
    }

    .utility-calendar-section {
        padding: 20px;
    }

    .calendar-mosaic {
        grid-template-columns: repeat(3, 1fr);

        grid-template-rows: repeat(4, 110px);

        gap: 5px;

        padding: 5px;
    }

    .calendar-overlay {
        inset: 5px;
    }


    /*
       SOCIAL
       Manteniamo solo le regole già presenti
       nel CSS originale.
    */

    .social-grid-innovative {
        grid-template-columns: 1fr 1.3fr;

        max-width: 81%;

        gap: 10px;

        margin: 0 auto;
    }

    .facebook-card {
        height: 650px;

        width: 341px;
    }

    .instagram-card {
        height: 280px;
    }

    .media-slide-card {
        height: 201px;
    }

    .social-header {
        padding: 8px 12px;

        font-size: 0.7rem;
    }

    .ig-grid-3x3 {
        gap: 4px;

        padding: 8px;
    }


    /* RISORSE */

    .hub-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-national,
    .flash-periodico {
        grid-column: span 1;
    }

    .flash-periodico {
        border-top: 4px solid #d32f2f;
    }

    .links-quick {
        grid-column: span 2;

        grid-row: auto;
    }

    .app-promo {
        grid-column: span 2;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   FINO A 600 PX
========================================================= */

@media (max-width: 600px) {

    .container {
        padding: 40px 15px;
    }


    /* IN EVIDENZA + SERVIZI */

    .news-services-section {
        padding: 40px 0;
    }

    .news-services-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .news-column .main-title,
    .services-column .main-title {
        margin-bottom: 25px;
    }

    .services-column .services-row {
        grid-template-columns: repeat(2, 1fr);
    }


    /* PROSSIMI EVENTI */

    .future-events-section {
        padding: 50px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .future-event-card {
        border-radius: 14px;
    }

    .future-poster {
        min-height: 250px;

        max-height: 350px;
    }

    .future-event-info {
        padding: 24px 20px;
    }

    .future-event-title {
        font-size: 1.25rem;
    }

    .future-event-description {
        font-size: 0.86rem;
    }

    .future-event-actions {
        padding-top: 22px;
    }

    .future-event-button {
        flex: 1 1 auto;
    }


    /* INIZIATIVA */

    .initiative-section {
        padding: 30px 0 50px;
    }

    .initiative-box {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 25px 21px;

        border-radius: 14px;
    }

    .initiative-icon {
        width: 58px;
        height: 58px;

        font-size: 24px;
    }

    .initiative-content h2 {
        font-size: 1.25rem;
    }

    .initiative-content p {
        font-size: 0.84rem;
    }

    .initiative-action {
        grid-column: auto;
    }

    .initiative-button {
        width: 100%;

        justify-content: center;
    }


    /* AREA SEGRETERIA */

    .dashboard-grid-innovative {
        grid-template-columns: 1fr;
    }

    .calendar-paper-style {
        max-width: 100%;

        margin: 0 auto 10px;
    }

    .assignment-box-half {
        width: 100%;

        padding: 15px;
    }

    .assignment-actions {
        grid-template-columns: 1fr;
    }


    /* UTILITY */

    .utility-area {
        padding: 40px 0;
    }

    .utility-intro {
        margin-top: -15px;

        padding: 0 10px;

        font-size: 0.82rem;
    }

    .utility-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .utility-grid .utility-card:nth-child(1),
    .utility-grid .utility-card:nth-child(2),
    .utility-grid .utility-card:nth-child(3),
    .utility-grid .utility-card:nth-child(4),
    .utility-grid .utility-card:nth-child(5),
    .utility-grid .utility-card:nth-child(6),
    .utility-grid .utility-card:nth-child(7),
    .utility-grid .utility-card:nth-child(8) {
        grid-column: auto;
    }

    .utility-card {
        min-height: 125px;

        flex-direction: column;

        justify-content: center;

        text-align: center;

        gap: 8px;

        padding: 15px 10px;
    }

    .utility-card::before {
        top: auto;
        bottom: 0;

        width: 100%;
        height: 3px;

        transform: scaleX(0);

        transform-origin: center;
    }

    .utility-card:hover::before {
        transform: scaleX(1);
    }

    .utility-logo {
        flex: none;

        width: 58px;
        height: 58px;
    }

    .utility-logo-youtube,
    .utility-logo-facebook,
    .utility-logo-instagram {
        font-size: 2.1rem;
    }

    .utility-info {
        padding-right: 0;
    }

    .utility-info h3 {
        font-size: 0.85rem;

        margin-bottom: 3px;
    }

    .utility-info p {
        font-size: 0.68rem;

        line-height: 1.35;
    }

    .utility-arrow {
        display: none;
    }

    .utility-calendar-section {
        margin-top: 25px;

        padding: 15px;

        border-radius: 16px;
    }

    .utility-calendar-header h3 {
        font-size: 1.2rem;
    }

    .utility-calendar-header p {
        font-size: 0.75rem;
    }

    .calendar-mosaic {
        grid-template-columns: repeat(3, 1fr);

        grid-template-rows: repeat(4, 105px);

        gap: 5px;
    }

    .calendar-overlay-content i {
        font-size: 1.8rem;
    }

    .calendar-overlay-content strong {
        font-size: 0.85rem;
    }

    .calendar-overlay-content span {
        font-size: 0.65rem;
    }


    /* SOCIAL */

    .social-grid-innovative {
        grid-template-columns: 1fr;

        max-width: 100%;

        padding: 0 15px;
    }

    .facebook-card {
        grid-row: span 1;

        height: 899px;

        width: 100%;
    }

    .instagram-card {
        height: 390px;
    }


    /* RISORSE */

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .site-national,
    .flash-periodico,
    .links-quick,
    .app-promo {
        grid-column: span 1;
    }

    .flash-body {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .flash-preview {
        flex: none;

        width: 60%;

        margin-top: 20px;
    }

    .flash-preview img {
        height: auto;

        max-height: 150px;
    }

    .app-flex {
        flex-direction: column;

        text-align: center;
    }

    .app-image {
        margin-top: 15px;
    }

    .app-buttons {
        justify-content: center;

        width: 100%;
    }

    .app-text {
        text-align: center;
    }

    .store-btn {
        padding: 8px 12px;

        font-size: 0.75rem;
    }


    /* BANNER */

    .services-banner {
        margin-top: 10px;
    }

    .services-banner img {
        width: 100%;
        height: auto;
    }


    /* MODAL */

    .comunicati-modal {
        padding: 15px;
    }

    .comunicati-modal-content {
        max-width: 100%;

        border-radius: 15px;
    }

    .comunicati-modal-header {
        padding: 14px 15px;
    }

    .comunicato-link {
        font-size: 0.8rem;

        padding: 12px 8px;
    }
}


/* =========================================================
   MOBILE PICCOLO
   MAX 500 PX
========================================================= */

@media (max-width: 500px) {

    .services-column .services-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .flash-preview img {
        height: 130px;
    }

    .utility-grid {
        gap: 8px;
    }

    .utility-card {
        min-height: 115px;

        padding: 12px 7px;
    }

    .utility-logo {
        width: 52px;
        height: 52px;
    }

    .utility-logo-youtube,
    .utility-logo-facebook,
    .utility-logo-instagram {
        font-size: 1.9rem;
    }

    .utility-info h3 {
        font-size: 0.78rem;
    }

    .utility-info p {
        font-size: 0.63rem;
    }

    .calendar-mosaic {
        grid-template-rows: repeat(4, 90px);
    }
}