.calendar-wrapper { margin-bottom: 16px; }

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-nav-btn {
  width: 40px; height: 40px;
  border: none;
  background: var(--bg);
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.15s;
}
.calendar-nav-btn:hover { background: var(--border); }
.calendar-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-month-label { font-size: 18px; font-weight: 700; color: var(--text); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
  gap: 3px;
  min-height: 44px;
}
.calendar-day:hover:not(.day-unavailable):not(.day-empty) { background: var(--primary-light); }
.calendar-day.day-empty { cursor: default; }
.calendar-day.day-unavailable { color: #D1D5DB; cursor: not-allowed; background: transparent; }
.calendar-day.day-today:not(.day-selected):not(.day-unavailable) { outline: 2px dashed var(--primary); outline-offset: -2px; }

.calendar-day.day-available { background: #E8F5E9; color: #2E7D32; }
.calendar-day.day-limited { background: #FFF3E0; color: #E65100; }
.calendar-day.day-full { background: #FFEBEE; color: #C62828; cursor: not-allowed; }
.calendar-day.day-selected { background: var(--primary) !important; color: white !important; box-shadow: 0 2px 8px rgba(0,102,255,0.3); }

.day-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.day-available .day-dot { background: var(--success); }
.day-limited .day-dot { background: var(--warning); }
.day-full .day-dot { background: var(--danger); }
.day-selected .day-dot { background: rgba(255,255,255,0.7); }

/* Skeleton giorni */
.calendar-day.skeleton { border-radius: 12px; height: 48px; }

/* Legenda */
.calendar-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.available { background: var(--success); }
.legend-dot.limited { background: var(--warning); }
.legend-dot.full { background: var(--danger); }

.calendar-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

@media (min-width: 400px) {
  .calendar-day { font-size: 16px; }
}
