/**
 * Lidomatic — Shortcode [selettore_data_ombrelloni]
 * Calendario griglia mensile — glassmorphism style.
 * Prefisso lidomatic-cal- per evitare conflitti col tema.
 */

.lidomatic-calendar-wrapper {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ── Header mese ── */

.lidomatic-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 16px;
}

.lidomatic-cal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.lidomatic-cal-nav {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: #475569;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lidomatic-cal-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(96, 165, 250, 0.5);
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.lidomatic-cal-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Griglia ── */

.lidomatic-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* Nomi giorni */

.lidomatic-cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Celle giorno ── */

.lidomatic-cal-day {
  text-align: center;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  color: #1e293b;
  transition: all 0.18s ease;
}

.lidomatic-cal-day:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* Oggi */
.lidomatic-cal-day.lidomatic-cal-today {
  font-weight: 800;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 0 0 2px #3b82f6;
  color: #1d4ed8;
}

.lidomatic-cal-day.lidomatic-cal-today:hover {
  background: rgba(59, 130, 246, 0.18);
}

/* Disabilitato */
.lidomatic-cal-day.lidomatic-cal-disabled {
  color: #d1d5db;
  cursor: not-allowed;
  background: none;
  box-shadow: none;
  font-weight: 400;
}

.lidomatic-cal-day.lidomatic-cal-disabled:hover {
  background: none;
  color: #d1d5db;
  box-shadow: none;
}

/* Celle vuote (padding inizio/fine mese) */
.lidomatic-cal-empty {
  padding: 10px 0;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .lidomatic-calendar-wrapper {
    max-width: 100%;
    margin: 0 12px;
    padding: 18px;
    border-radius: 16px;
  }

  .lidomatic-cal-day {
    padding: 8px 0;
    font-size: 0.82rem;
  }

  .lidomatic-cal-title {
    font-size: 1.05rem;
  }
}
