/* Lightbox */
.mms-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mms-lightbox-inner {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#mms-lightbox-close, #mms-edit-lightbox-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.mms-lightbox-content {
    margin-top: 10px;
}

/* Blocchi lezione */
.mms-lesson-block {
    margin-bottom: 15px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-left: 4px solid #fa8bfa;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.mms-lesson-block strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.mms-lesson-block em {
    color: #333;
    font-style: normal;
}

/* Bottone prenota */
.mms-prenota-btn {
    display: inline-block;
    margin-top: 8px;
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}

.mms-prenota-btn:hover {
    background: #005f8d;
}
.fc .fc-event-title {
    white-space: normal !important;
    overflow-wrap: break-word;
    line-height: 1.2;
}
.fc-event {
    padding: 4px !important;
    font-size: 0.85em;
}

/* Evidenziazione della cella giorno al passaggio */
.fc-daygrid-day:hover {
    outline: 2px solid #007bff;
    outline-offset: -2px;
    cursor: pointer;
}
.fc-event-time , .fc-daygrid-event-dot{ display:none!Important;}

/* Garantisce larghezza piena alla griglia */
#mms-frontend-calendar .fc {
    width: 100% !important;
}

/* Sistema la griglia dei giorni */
#mms-frontend-calendar .fc-daygrid-day {
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}

/* Forza dimensioni e allineamento uniforme */
#mms-frontend-calendar .fc-daygrid-day-frame {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* Riduce margine inferiore nelle celle */
#mms-frontend-calendar .fc-daygrid-day-events {
    margin-bottom: 0 !important;
}

/* Rimuove eventuali ombre/margini di layout tema */
#content #mms-frontend-calendar {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
table.fc-col-header , div.fc-scroller-harness, table.fc-scrollgrid-sync-table  {margin:0px!Important}

.giaprenotato {
    color: #888;
    font-style: italic;
    margin-top: 1em;
}
.gia-prenotato {
    background-color: #f0f0f0;
    color: #666;
    padding: 10px;
    margin-top: 10px;
    border-left: 4px solid #ccc;
    font-style: italic;
}

/* Titolo multilinea e layout evento */
.mms-evt-title { white-space: normal !important; overflow-wrap: anywhere; line-height: 1.2; font-weight:normal!Important;  }

/* Migliora resa su mobile */
@media (max-width: 768px) {
  .fc .fc-toolbar-title { font-size: 1.05rem; }
  .fc .fc-button { padding: 0.35rem 0.55rem; font-size: .85rem; }
  .fc .fc-daygrid-day-frame { min-height: 72px; }
  .fc-daygrid-event { padding: 3px 5px !important; }
}

.fc .fc-list-event-dot {
  border: calc(var(--fc-list-event-dot-width) / 2) solid #fa8bfa!Important;  /* se vuoi anche pieno */
} 


.fc-list-day-side-text{
float:left!Important;
margin-left:8px!Important;
}