/* Stili responsive per il calendario */

@media (max-width: 767px) {
  .fc {
    font-size: 0.85em;
  }
}

@media (max-width: 767px) {
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .fc .fc-toolbar-title {
    font-size: 1.2em;
  }
}

@media (max-width: 767px) {
  .fc .fc-button {
    padding: 0.4em 0.65em;
    font-size: 0.9em;
  }
}

@media (max-width: 767px) {
  .fc .fc-daygrid-day {
    min-height: 60px;
  }
}

@media (max-width: 767px) {
  .fc .fc-daygrid-day-number {
    font-size: 0.9em;
    padding: 2px 4px;
  }
}

/* Vista lista più leggibile */

@media (max-width: 767px) {
  .fc .fc-list-event-title {
    font-weight: 600;
  }
}

@media (max-width: 767px) {
  .fc .fc-list-event {
    cursor: pointer;
  }
}

/* Miglior tap target per eventi */

@media (max-width: 767px) {
  .fc .fc-daygrid-event {
    min-height: 24px;
    margin: 1px 0;
  }
}

/* Animazione swipe-friendly */

.fc-view-harness {
  transition: all 0.2s ease;
}

.fc .fc-list-sticky .fc-list-day > * {
  background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
}

/* Border radius sul calendario */

.fc {
  border-radius: 16px;
  overflow: hidden;
}

/* Se usi il tema standard con bordo */

.fc.fc-theme-standard {
  border-radius: 16px;
}

.fc.fc-theme-standard td, .fc.fc-theme-standard th {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Arrotonda gli angoli della vista lista */

.fc .fc-list {
  border-radius: 16px;
  overflow: hidden;
}

/* Header del calendario arrotondato in alto */

.fc .fc-toolbar {
  border-radius: 16px 16px 0 0;
}

/* Vista griglia arrotondata */

.fc .fc-scrollgrid {
  border-radius: 16px;
  overflow: hidden;
}

/* Fix per evitare che i bordi escano */

.fc .fc-scrollgrid-liquid {
  border-radius: 16px;
}

/* La tua regola per lo sticky header della lista */

.fc .fc-list-sticky .fc-list-day > * {
  background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
}

/* Arrotonda il primo e ultimo giorno sticky nella lista */

.fc .fc-list-day:first-child .fc-list-day-cushion {
  border-radius: 16px 16px 0 0;
}

.fc-theme-standard .fc-scrollgrid {
  border: none !important;
}

.fc .fc-scrollgrid-section-sticky > * {
  background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
}

.fc .fc-button-group {
  gap: 8px;
}

.fc .fc-button-group > .fc-button {
  border-radius: 16px !important;
}

.fc .fc-view-harness {
  /*box-shadow: var(--bs-box-shadow) !important;*/
  /*border-radius: 16px !important;*/
}

/* @media (max-width: 767px) {
  #calendar {
    padding: 4px;
    padding-bottom: 36px !important;
  }
}

@media (min-width: 768px) {
  #calendar {
    padding: 24px;
    padding-bottom: 36px !important;
  }
} */

