.vda-calendario {
    width: 100%;
    margin: 30px 0;
}

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

.vda-calendario-header h2 {
    margin: 0;
    text-align: center;
    text-transform: capitalize;
}

.vda-calendario-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
}

.vda-calendario-nav:hover {
    text-decoration: none;
}


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

.vda-calendario-desktop {
    display: block;
}

.vda-calendario-mobile {
    display: none;
}

.vda-calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vda-calendario-settimana {
    font-weight: 600;
    text-align: center;
    background: #f4f4f4;
}

.vda-calendario-settimana > div {
    padding: 10px 5px;
}

.vda-calendario-giorno {
    min-height: 130px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px;
    box-sizing: border-box;
}

.vda-calendario-giorno:nth-child(7n + 1) {
    border-left: 1px solid #e5e5e5;
}

.vda-calendario-numero {
    font-weight: 600;
    margin-bottom: 7px;
}

.vda-calendario-oggi .vda-calendario-numero {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #fff;
}

.vda-calendario-evento {
    display: block;
    padding: 6px 7px;
    margin-bottom: 5px;
    background: #f3f5f4;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.25;
    font-size: 13px;
}

.vda-calendario-evento:hover {
    background: #e8ece9;
    text-decoration: none;
}

.vda-calendario-evento-titolo {
    display: block;
    font-weight: 600;
}

.vda-calendario-evento-ora {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    opacity: .7;
}


/* =========================================================
 * PROSSIMI EVENTI
 * 4 COLONNE DESKTOP
 * ========================================================= */

.vda-eventi-prossimi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.vda-evento-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.vda-evento-card-image {
    display: block;
    overflow: hidden;
}

.vda-evento-card-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform .25s ease;
}

.vda-evento-card-image:hover img {
    transform: scale(1.03);
}

.vda-evento-card-content {
    padding: 14px;
}

.vda-evento-card-data {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.vda-evento-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
}

.vda-evento-card h3 a {
    text-decoration: none;
}

.vda-evento-card h3 a:hover {
    text-decoration: none;
}

.vda-evento-card-luogo {
    font-size: 13px;
    line-height: 1.4;
    opacity: .75;
}

.vda-eventi-nessuno {
    margin: 20px 0;
}


/* =========================================================
 * TABLET
 * 2 COLONNE
 * ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .vda-eventi-prossimi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .vda-evento-card-image img {
        height: 190px;
    }

}


/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {

    .vda-calendario {
        margin: 20px 0;
    }

    .vda-calendario-header {
        margin-bottom: 15px;
        gap: 12px;
    }

    .vda-calendario-header h2 {
        font-size: 22px;
        line-height: 1.2;
    }

    .vda-calendario-nav {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 20px;
    }


    /* Nasconde griglia calendario */

    .vda-calendario-desktop {
        display: none;
    }

    .vda-calendario-mobile {
        display: block;
    }


    /* Lista eventi calendario mobile */

    .vda-mobile-evento {
        display: block;
        padding: 17px 0;
        border-bottom: 1px solid #e5e5e5;
        text-decoration: none;
    }

    .vda-mobile-evento:first-child {
        border-top: 1px solid #e5e5e5;
    }

    .vda-mobile-evento:hover {
        text-decoration: none;
    }

    .vda-mobile-evento-data {
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .04em;
        line-height: 1.3;
    }

    .vda-mobile-evento-contenuto h3 {
        margin: 0 0 7px;
        font-size: 18px;
        line-height: 1.3;
    }

    .vda-mobile-evento-luogo {
        margin-top: 3px;
        font-size: 14px;
        line-height: 1.4;
        opacity: .8;
    }

    .vda-mobile-evento-orario {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.4;
        opacity: .75;
    }


    /* Prossimi eventi */

    .vda-eventi-prossimi {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vda-evento-card-image img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .vda-evento-card-content {
        padding: 15px;
    }

    .vda-evento-card-data {
        font-size: 12px;
    }

    .vda-evento-card h3 {
        font-size: 18px;
    }

    .vda-evento-card-luogo {
        font-size: 14px;
    }

}