/* ============================================================
   ASD Diamoci la Zampa — Design System (brand ufficiale)
   ============================================================ */

:root {
  /* ── Palette ufficiale brand ──────────────────────────────── */
  --color-primary:       #E8621A;   /* arancione ammorbidito */
  --color-primary-dark:  #CC5215;   /* hover bottoni */
  --color-primary-light: #F5A876;   /* accent leggero */

  --color-black:         #1C1C1E;   /* antracite iOS — testi principali */
  --color-white:         #FFFFFF;

  --color-navbar:        #1C1C1E;   /* navbar */
  --color-footer:        #2C2C2E;   /* footer */

  --color-text-primary:  #1C1C1E;
  --color-text-secondary:#48484A;
  --color-text-muted:    #8E8E93;

  --color-bg-page:       #F2F2F7;
  --color-bg-card:       #FFFFFF;
  --color-bg-section:    #E8E8ED;

  --color-border:        #D1D1D6;
  --color-border-light:  #E5E5EA;

  /* ── Gray aliases (compat) ─────────────────────────────────── */
  --color-gray-light:    #F2F2F7;
  --color-gray-mid:      #D1D1D6;
  --color-gray-text:     #8E8E93;

  /* ── Stati ─────────────────────────────────────────────────── */
  --color-success:       #34C759;   /* verde iOS */
  --color-error:         #FF3B30;   /* rosso iOS */
  --color-warning:       #FF9500;   /* arancione iOS */
  --color-info:          #007AFF;   /* blu iOS */

  /* ── Alias retrocompatibili (usati nei template esistenti) ── */
  --color-cream:         var(--color-bg-page);
  --color-cream-dark:    var(--color-bg-section);
  --color-cipria:        var(--color-border);
  --color-cipria-dark:   #C7C7C7;
  --color-terracotta:    var(--color-primary);
  --color-terra-dark:    var(--color-primary-dark);
  --color-choco:         var(--color-black);
  --color-muted:         var(--color-gray-text);
  --color-salvia:        var(--color-success);
  --color-salvia-dark:   #28a745;
  --color-error-bg:      rgba(255,59,48,0.08);
  --color-error-border:  rgba(255,59,48,0.30);

  --radius-card:  12px;
  --radius-btn:   10px;   /* NON pill-shaped — 10px fissi */
  --radius-input: 10px;
  --shadow-soft:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-card:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 22px rgba(0,0,0,0.14);
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-gray-light);
  color: var(--color-black);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  position: relative;
}

/* Texture ink-splash sottile su tutto il body */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ccircle cx='40' cy='30' r='2' fill='%23000000'/%3E%3Ccircle cx='120' cy='60' r='1.5' fill='%23000000'/%3E%3Ccircle cx='170' cy='20' r='1' fill='%23000000'/%3E%3Ccircle cx='90' cy='110' r='2.5' fill='%23000000'/%3E%3Ccircle cx='30' cy='150' r='1.5' fill='%23000000'/%3E%3Ccircle cx='150' cy='140' r='2' fill='%23000000'/%3E%3Ccircle cx='60' cy='180' r='1' fill='%23000000'/%3E%3Ccircle cx='190' cy='100' r='1.5' fill='%23000000'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
body > header { position: relative; z-index: 50; }
body > main   { position: relative; z-index: 2; }
body > footer { position: relative; z-index: 1; }

/* ── Typography ────────────────────────────────────────────── */
.display {
  font-family: 'Poppins', sans-serif;
  color: var(--color-black);
  line-height: 1.2;
}
.display-italic {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  color: var(--color-primary);
}
h1, h2, h3, .font-display {
  font-family: 'Poppins', sans-serif;
}
.text-muted { color: var(--color-gray-text); }
.text-terra { color: var(--color-primary); }
.text-choco { color: var(--color-black); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(232,98,26,0.35);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-btn);
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  min-height: 48px;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--color-gray-light);
}
.btn-secondary:active { transform: scale(0.97); }

.btn-danger {
  background: var(--color-error);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  min-height: 48px;
}
.btn-danger:hover { background: #B71C1C; }
.btn-danger:active { transform: scale(0.97); }

.btn-google {
  background: var(--color-white);
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-google:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-discipline {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
  cursor: pointer;
}
.card-discipline:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}
.card-discipline .disc-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.card-discipline h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--color-black);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.card-discipline p {
  color: var(--color-gray-text);
  font-size: 0.875rem;
  margin: 0 0 1.2rem;
  line-height: 1.5;
}

/* ── Form elements ─────────────────────────────────────────── */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 6px;
}
.form-label-opt {
  font-weight: 400;
  color: var(--color-gray-text);
  font-size: 13px;
}

.form-input {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-black);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,98,26,0.15);
}
.form-input::placeholder { color: var(--color-gray-text); }

/* ── Navbar ────────────────────────────────────────────────── */
.main-nav {
  background: var(--color-navbar);
  border-bottom: none;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { height: 80px; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
}
.nav-logo-text em {
  font-style: italic;
  color: var(--color-primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-primary); background: rgba(255,255,255,0.08); }
.nav-link-accent {
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.nav-link-accent:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Hero logo ─────────────────────────────────────────────── */
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .hero-logo { justify-content: center; }
  .hero-logo img { height: 140px !important; }
}

/* ── Hero section ──────────────────────────────────────────── */
.hero-section {
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--color-black);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--color-gray-text);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 3rem 1.5rem;
}
.section-dark {
  background: var(--color-cream-dark);
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--color-black);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.section-subtitle {
  color: var(--color-gray-text);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}

/* ── Value cards ───────────────────────────────────────────── */
.value-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.value-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: var(--color-black);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.value-desc { color: var(--color-gray-text); font-size: 0.875rem; line-height: 1.6; }

/* ── Date chips ────────────────────────────────────────────── */
.date-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 62px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.date-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-cream-dark);
}
.date-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.date-chip.active .chip-day,
.date-chip.active .chip-num,
.date-chip.active .chip-mon { color: white; }
.chip-day { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-gray-text); }
.chip-num { font-size: 1.35rem; font-weight: 700; color: var(--color-black); line-height: 1.1; margin: 2px 0; }
.chip-mon { font-size: 10px; color: var(--color-gray-text); }

/* ── Slot buttons ──────────────────────────────────────────── */
.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 12px;
  padding: 10px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  transition: all 0.15s;
  min-height: 52px;
  box-sizing: border-box;
}
.slot-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-cream-dark);
  color: var(--color-primary-dark);
  transform: scale(1.02);
}
.slot-btn.slot-suggested {
  background: #E8F5E9;
  border: 2px solid #4CAF50;
  color: var(--color-black);
}
.slot-btn.slot-suggested:hover {
  background: #E0F2E1;
  border-color: #2E7D32;
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.slot-btn .slot-badge {
  font-size: 11px;
  font-weight: 600;
  color: #2E7D32;
  animation: pulse-text 1.5s ease-in-out infinite;
  display: block;
  text-align: center;
  margin-top: 2px;
}

/* ── Range picker ──────────────────────────────────────────── */
.date-range-picker {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 16px;
  padding: 1.25rem;
}
.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.date-input { flex: 1; min-width: 130px; }
.date-input label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-text);
  margin-bottom: 4px;
}
.date-input input[type="date"] {
  width: 100%;
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-black);
  box-sizing: border-box;
}
.date-input input[type="date"]:focus {
  outline: none;
  border-color: var(--color-primary);
}
.date-range-arrow {
  color: var(--color-gray-text);
  font-size: 18px;
  padding-top: 18px;
}
.quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.quick-select button {
  background: var(--color-cream-dark);
  border: 1px solid var(--color-gray-mid);
  border-radius: 10px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.15s;
}
.quick-select button:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.alert-error {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error);
}
.alert-success {
  background: rgba(76,175,80,0.12);
  border: 1px solid rgba(76,175,80,0.4);
  color: #2E7D32;
}
.alert-warning {
  background: rgba(245,124,0,0.10);
  border: 1px solid rgba(245,124,0,0.35);
  color: #B85C00;
}

/* ── Booking summary card ──────────────────────────────────── */
.summary-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-cream-dark);
}
.summary-row:last-child { border-bottom: none; }
.summary-label {
  font-size: 13px;
  color: var(--color-gray-text);
  font-weight: 500;
}
.summary-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  text-align: right;
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.badge-salvia  { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.badge-terra   { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.badge-muted   { background: var(--color-gray-light); color: var(--color-gray-text); border: 1px solid var(--color-gray-mid); }

/* Badge stato pacchetto (nomi ufficiali brand) */
.badge-active  { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.badge-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFCC02; }
.badge-blocked { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
  color: var(--color-gray-text);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-mid);
}

/* ── Page wrapper ──────────────────────────────────────────── */
.page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-wrapper-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Auth card ─────────────────────────────────────────────── */
.auth-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-soft);
}

/* ── Paw background pattern (login) ───────────────────────── */
.paw-bg {
  background-color: var(--color-gray-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cellipse cx='28' cy='16' rx='6' ry='7' fill='%23E0E0E0' opacity='0.5'/%3E%3Cellipse cx='40' cy='12' rx='6' ry='7' fill='%23E0E0E0' opacity='0.5'/%3E%3Cellipse cx='52' cy='16' rx='6' ry='7' fill='%23E0E0E0' opacity='0.5'/%3E%3Cellipse cx='60' cy='25' rx='5' ry='6' fill='%23E0E0E0' opacity='0.5'/%3E%3Cellipse cx='42' cy='42' rx='14' ry='16' fill='%23E0E0E0' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ── Footer ────────────────────────────────────────────────── */
.main-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--color-primary); }
.social-links { display: flex; gap: 10px; margin-top: 0.75rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--color-primary); color: white; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.5rem 0 1rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray-text);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-gray-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-cipria-dark); }
.breadcrumb-current { color: var(--color-black); font-weight: 600; }

/* ── Privacy page ──────────────────────────────────────────── */
.prose h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: var(--color-black);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.prose p, .prose li { font-size: 14px; color: var(--color-black); line-height: 1.75; }
.prose ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.prose li { margin-bottom: 0.25rem; }

/* ── HTMX loading indicator ────────────────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ===== DISPONIBILITÀ ===== */
.av-form-card {
  background: var(--color-white);
  border: 0.5px solid var(--color-gray-mid);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
}
.av-form-title {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  color: var(--color-black);
  margin-bottom: 14px;
}
.av-form-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.av-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}
.av-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Day toggle pills */
.day-toggle-group { display: flex; gap: 6px; flex-wrap: wrap; }
.day-toggle { position: relative; cursor: pointer; }
.day-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.day-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--color-gray-mid);
  background: var(--color-gray-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-text);
  transition: all 0.15s;
  user-select: none;
  cursor: pointer;
}
.day-toggle input:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.day-toggle:hover span { border-color: var(--color-primary); }

/* Section label */
.av-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.av-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--color-gray-mid);
}

/* Discipline card */
.av-disc-card {
  background: var(--color-white);
  border: 0.5px solid var(--color-gray-mid);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.av-disc-mine {
  border-left: 3px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
}
.av-disc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.av-disc-name { font-size: 14px; font-weight: 500; color: var(--color-black); }
.av-disc-instr { font-size: 12px; color: var(--color-gray-text); margin-top: 2px; }
.av-badge-mine {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  background: #FEF0E8;
  color: var(--color-primary);
  font-weight: 500;
  flex-shrink: 0;
}

/* Day rows */
.av-day-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.av-day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--color-gray-light);
  min-height: 44px;
}
.av-day-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-text);
  min-width: 32px;
  flex-shrink: 0;
}
.av-time-bar { flex: 1; display: flex; align-items: center; gap: 8px; }
.av-time { font-size: 13px; color: var(--color-black); font-weight: 500; min-width: 42px; }
.av-bar-line {
  flex: 1;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  opacity: 0.3;
}

/* Delete button */
.av-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 0.5px solid var(--color-gray-mid);
  background: none;
  color: var(--color-error);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  font-size: 16px;
}
.av-delete-btn:hover { background: #FCEBEB; border-color: var(--color-error); }

/* Add inline button */
.av-add-inline-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}
.av-add-inline-btn:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .av-form-row { flex-direction: column; }
  .av-form-group { min-width: auto; width: 100%; }
  .day-toggle span { min-width: 40px; }
}

/* ── Status pill (admin) ───────────────────────────────────── */
.status-confirmed { background: #E8F5E9; color: #2E7D32; }  /* verde — confermata */
.status-completed { background: #E3F2FD; color: #1565C0; }  /* blu — completata */
.status-absent    { background: #FFF3E0; color: #E65100; }  /* arancio — assente */
.status-cancelled { background: #FFEBEE; color: #C62828; }  /* rosso — cancellata */

/* ── Spinner ───────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--color-gray-mid);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Profile dropdown ──────────────────────────────────────── */
.profile-dropdown {
  position: relative;
  z-index: 1000;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.profile-avatar:hover { background: var(--color-primary-dark); transform: scale(1.05); }

.profile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: 14px;
  padding: 8px;
  min-width: 230px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  z-index: 1001;
  pointer-events: auto;
}

.profile-dropdown:hover .profile-menu,
.profile-dropdown:focus-within .profile-menu,
.profile-menu.open {
  display: block;
}

.profile-menu-header {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--color-cream-dark);
  margin-bottom: 4px;
}
.profile-menu-header strong {
  display: block;
  font-size: 14px;
  color: var(--color-black);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-menu-header span {
  font-size: 12px;
  color: var(--color-gray-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-black);
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}
.profile-menu a:hover { background: var(--color-gray-light); }
.profile-menu hr {
  border: none;
  border-top: 1px solid var(--color-gray-mid);
  margin: 4px 0;
}
.profile-menu .logout-link { color: var(--color-primary); font-weight: 600; }
.profile-menu .logout-link:hover { background: rgba(232,98,26,0.08); }

/* ── Profile pages ──────────────────────────────────────────── */
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.booking-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.2s;
}
.booking-card:hover { box-shadow: var(--shadow-soft); }
.booking-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-cream-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-card-body { flex: 1; min-width: 0; }
.booking-card-discipline {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--color-black);
  font-weight: 600;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.booking-card-instructor {
  font-size: 12px;
  color: var(--color-gray-text);
  margin: 0 0 3px;
}
.booking-card-meta {
  font-size: 13px;
  color: var(--color-gray-text);
  margin: 0;
  line-height: 1.4;
}
.booking-card-actions { flex-shrink: 0; }

.btn-cancel-sm {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 10px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
  min-height: 36px;
  white-space: nowrap;
}
.btn-cancel-sm:hover { background: rgba(232,98,26,0.1); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-text);
  margin-bottom: 0.85rem;
}

/* ── Admin: tabella prenotazioni a due righe per cella ────────── */
.admin-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.admin-cell-primary {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-black);
}
.admin-cell-secondary {
  font-size: 12px;
  color: var(--color-gray-text);
}
.admin-btn-save {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-btn-save:hover { background: var(--color-primary-dark); }

/* ── Login page (splash full-page + logo + card) ── */
.login-page {
  min-height: 100vh;
  background-image: url('/static/img/sfondo_splash.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-logo-wrapper {
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-logo {
  height: 160px;
  width: auto;
  display: block;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 12px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
  .login-card { padding: 2rem 1.5rem; }
  .login-logo { height: 120px; }
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 640px) {
  .main-nav { padding: 0 16px; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .hero-section { padding: 2.5rem 1rem 2rem; }
  .section { padding: 2rem 1rem; }
  .btn-primary, .btn-secondary, .btn-danger { padding: 14px 20px; font-size: 15px; }
  .summary-row { padding: 12px 16px; }
}

/* ============================================================
   ADMIN SHELL — sidebar + main layout
   ============================================================ */

/* Sopprimi texture ink-splash nel pannello admin */
body.admin-layout::before { display: none; }
body.admin-layout { background: var(--color-bg-page); }

.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-white);
  border-right: 0.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 14px;
  border-bottom: 0.5px solid var(--color-border);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px 4px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
}

.nav-item i { font-size: 16px; flex-shrink: 0; }

.nav-item:hover {
  background: var(--color-bg-section);
  color: var(--color-text-primary);
}

.nav-item.active {
  background: #FEF0E8;
  color: var(--color-primary);
  border: 0.5px solid rgba(232,98,26,0.20);
}

.nav-item.active i { color: var(--color-primary); }

.nav-item-danger { color: var(--color-error) !important; }
.nav-item-danger:hover { background: rgba(255,59,48,0.08) !important; }

.nav-divider {
  height: 0.5px;
  background: var(--color-border);
  margin: 8px 10px;
}

.sidebar-footer {
  padding: 10px 10px 14px;
  border-top: 0.5px solid var(--color-border);
}

/* ── Main content ────────────────────────────────────────── */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border-bottom: 0.5px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: 'Poppins', sans-serif;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
}

.admin-content {
  padding: 24px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
}

/* ── Mobile sidebar overlay ──────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    height: 100vh;
    transition: left 0.25s ease;
    z-index: 200;
  }
  .admin-sidebar.open { left: 0; }
  .sidebar-overlay.open { display: block; }
  .admin-topbar { display: flex; }
  .admin-content { padding: 16px; }
}

/* ── Admin responsive tables ──────────────────────────────── */
.admin-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 767px) {
  .admin-table thead { display: none; }
  .admin-table tbody tr {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
  }
  .admin-table tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border: none !important;
    border-bottom: 1px solid var(--color-bg-section) !important;
    font-size: 13px;
    text-align: right;
  }
  .admin-table tbody td:last-child {
    border-bottom: none !important;
    padding-top: 10px;
    justify-content: flex-end;
  }
  .admin-table tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
    padding-top: 2px;
    min-width: 80px;
  }
  /* Filter / add forms */
  .admin-filters,
  .availability-form { flex-direction: column !important; align-items: stretch !important; }
  .admin-filters > *,
  .availability-form > * { box-sizing: border-box; }
  .admin-filters select,
  .admin-filters input,
  .availability-form select,
  .availability-form input {
    width: 100% !important; height: 44px; font-size: 16px; box-sizing: border-box;
  }
  .admin-filters > button,
  .admin-filters > a,
  .availability-form > button {
    display: flex; align-items: center; justify-content: center;
    height: 44px; width: 100%; text-align: center;
  }
}

/* ===== AGENDA ===== */
.instr-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--color-white);
  border-radius: 10px;
  border: 0.5px solid var(--color-border);
  margin-bottom: 16px;
}
.instr-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--color-border);
  background: var(--color-bg-page);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.instr-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.instr-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.instr-btn:not(.active) .instr-av {
  background: var(--color-border);
  color: var(--color-text-secondary);
}
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.btn-nav {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-nav:hover {
  background: var(--color-bg-section);
  color: var(--color-text-primary);
}
.current-date {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.today-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--color-primary);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.agenda-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.period-section { margin-bottom: 1rem; }
.period-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.period-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--color-border);
}
.agenda-slot-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 6px;
}
.slot-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 90px;
  padding-top: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.slot-card {
  flex: 1;
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0.5px solid var(--color-border);
}
.slot-occupied { background: var(--color-white); }
.slot-free {
  background: var(--color-bg-section);
  border-style: dashed;
}
.slot-warn {
  background: var(--color-white);
  border-color: var(--color-warning);
}
.slot-danger {
  background: var(--color-white);
  border-color: var(--color-error);
}
.slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.slot-info { flex: 1; min-width: 0; }
.slot-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.slot-disc { font-size: 11px; color: var(--color-text-secondary); }
.slot-pkg {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 20px;
}
.pkg-ok     { background: #EAF3DE; color: #3B6D11; }
.pkg-warn   { background: #FAEEDA; color: #854F0B; }
.pkg-danger { background: #FCEBEB; color: #A32D2D; }
.slot-free-text {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}
.badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}
.badge-confirmed { background: #EAF3DE; color: #3B6D11; }
.badge-completed { background: #E6F1FB; color: #185FA5; }
.badge-absent    { background: #FAEEDA; color: #854F0B; }
.badge-cancelled { background: #FCEBEB; color: #A32D2D; }
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

/* Mobile agenda */
@media (max-width: 768px) {
  .agenda-slot-row { flex-direction: column; gap: 4px; }
  .slot-time { padding-top: 0; font-size: 11px; min-width: auto; }
  .instr-btn { font-size: 12px; padding: 5px 10px; }
  .date-nav { gap: 6px; }
  .btn-nav { padding: 5px 8px; font-size: 12px; }
}

/* ===== SEZIONE REGOLE HOMEPAGE ===== */
.rules-section {
  background: var(--color-black);
  padding: 56px 0;
  margin-top: 0;
}
.rules-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.rules-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.rules-header i {
  font-size: 22px;
  color: var(--color-primary);
}
.rules-header h2 {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: white;
  margin: 0;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rule-card {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232,98,26,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rule-icon i {
  font-size: 18px;
  color: var(--color-primary);
}
.rule-body { flex: 1; }
.rule-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}
.rule-text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.rule-text strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
@media (max-width: 768px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rules-section { padding: 40px 0; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== BOX REGOLE CONFERMA PRENOTAZIONE ===== */
.confirm-rules-box {
  background: var(--color-bg-section);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 1rem;
}
.confirm-rules-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}
.confirm-rules-title i { color: var(--color-primary); }
.confirm-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.confirm-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.confirm-rules-list li i {
  font-size: 15px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.confirm-rules-list strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ===== MODALE LEZIONE NON CANCELLABILE ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFF3E0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.modal-icon i {
  font-size: 24px;
  color: var(--color-warning);
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.modal-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.modal-text strong { color: var(--color-text-primary); }
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.modal-actions .btn-primary,
.modal-actions .btn-secondary { flex: 1; }

/* ===== SLOT BLOCCATO AGENDA ===== */
.slot-blocked {
  background: #F5F5F5;
  border: 1.5px dashed var(--color-gray-mid);
  opacity: 0.85;
}
.slot-dot-blocked {
  background: var(--color-gray-mid);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Slot libero cliccabile per blocco */
.slot-blockable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.slot-blockable:hover {
  border-color: var(--color-warning);
  background: #FFFBF0;
}
.slot-blockable:active { background: #FFF3E0; }

/* Bottone sblocca */
.slot-unblock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0.5px solid var(--color-border);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  transition: all 0.15s;
}
.slot-unblock-btn:hover {
  background: #EAF3DE;
  color: var(--color-success);
  border-color: var(--color-success);
}
