.calendar-container {
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bs-primary);
    color: white;
}
.calendar-header {
    background-color: #0d6efd;
    color: white;
    padding: 15px 0;
    text-align: center;
}
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pager li:nth-child(2) {
    font-size: 2em;
    padding: 5px 25px;
    border-radius: 10px;
    border: 0;
    box-shadow:
        1px 1px 1px rgba(255,255,255,0.2),
        -1px -1px 3px rgba(0,0,0,0.3),
        inset 1px 1px 2px rgba(255,255,255,0.3),
        inset -1px -1px 4px rgba(0,0,0,0.4);
}
.pager a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.pager a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}
.table th,
.table td {
    width: 14.28%;
    text-align: center;
    background-color: #f5f5f5;
}
.table th {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}
.table td {
    height: 120px;
    min-height: 120px;
    position: relative;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    padding: 5px;
    transition: all 0.2s;
    font-size: 2em;
}
.table td:hover {
    background-color: #f1f8ff;
}
.othermonth {
    background-color: #f8f9fa;
    color: #adb5bd;
}
.hasevents {
    background-color: #fff8e1;
}
.hasevents a {
    color: #d32f2f;
    text-decoration: none;
}
.table td.today {
    border: 2px solid var(--bs-primary);
}
.event {
    position: relative;
    top: 20px;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 3px 0;
    padding: 2px;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
    max-height: 3.2em;

    background-color: #ffff88;
    box-shadow:
        1px 1px 2px rgba(0,0,0,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.25),
        inset 0 0 5px rgba(255,255,255,0.5);
}

.eventListItem {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eventListItem-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.eventListItem-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.eventListItem-datetime {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.eventListItem-details {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.eventListItem-detail {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.eventListItem-detail small {
    color: #999;
    font-size: 0.8rem;
}

/* Responsive: stack titolo e data su mobile */
@media (max-width: 576px) {
    .eventListItem-header {
        flex-direction: column;
    }
    .eventListItem-datetime {
        margin-top: 4px;
    }
}
