/* ============================================================
   Lista d'attesa — Sessione straordinaria Dicembre 2026/27
   Elementi AGGIUNTI dalle pagine MCB da assets/lista-attesa.js.
   Classi con prefisso la- per non interferire con il CSS del sito.
   ============================================================ */

.la-root, .la-root * { box-sizing: border-box; }
.la-root { font-family: inherit; line-height: 1.5; }

/* --- Barra avviso (sotto l'header o in cima alla pagina) --- */
.la-bar {
  background: #F59E0B;
  color: #3b2600;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
}
/* z-index -1: resta sopra la pagina (l'header ha z-60) ma sotto il menu mobile aperto */
.la-bar--header { position: absolute; top: 100%; left: 0; right: 0; z-index: -1; }
.la-bar--sticky { position: sticky; top: 0; z-index: 70; }
.la-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #3b2600;
  color: #fff;
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.la-bar__cta:hover { background: #01402e; }
@media (min-width: 768px) { .la-bar { font-size: 0.875rem; } }

/* testi brevi per gli schermi stretti */
.la-corto { display: none; }
@media (max-width: 639px) {
  .la-lungo { display: none; }
  .la-corto { display: inline; }
  .la-bar { flex-wrap: nowrap; font-size: 0.75rem; padding: 0.4rem 0.75rem; }
  .la-bar__cta { font-size: 0.6875rem; padding: 0.2rem 0.6rem; }
  .la-pill { font-size: 0.6875rem; padding: 0.4rem 0.8rem; gap: 0.4rem; }
}

/* --- Pillola nell'hero --- */
.la-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F59E0B;
  color: #3b2600;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.25);
  text-decoration: none;
  max-width: 100%;
}
.la-pill:hover { background: #fbbf24; }
.la-pill__dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #3b2600; flex-shrink: 0; }
.la-pill__arrow { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (min-width: 768px) { .la-pill { font-size: 0.875rem; } }
.la-pill-wrap { display: block; }

/* --- Avviso sopra i form esistenti --- */
.la-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  background: #FEF3C7;
  border: 1px solid rgba(245,158,11,.5);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
  text-align: left;
}
.la-note a { color: #92400e; text-decoration: underline; font-weight: 700; }
.la-note svg { width: 1rem; height: 1rem; color: #d97706; flex-shrink: 0; margin-top: 0.05rem; }

/* --- Striscia nelle sezioni che citano le sessioni di ottobre --- */
.la-strip {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.la-strip__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background: #FEF3C7;
  border: 1px solid rgba(245,158,11,.6);
  border-left: 4px solid #F59E0B;
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: #78350f;
  font-size: 0.875rem;
  text-align: left;
}
.la-strip__text { display: flex; align-items: flex-start; gap: 0.5rem; flex: 1 1 18rem; }
.la-strip__text svg { width: 1.125rem; height: 1.125rem; color: #d97706; flex-shrink: 0; margin-top: 0.1rem; }
.la-strip__text strong { color: #78350f; }

/* --- Bottoni --- */
.la-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: #74a651;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  transition: background-color .2s;
}
.la-btn:hover { background: #5e8c3e; color: #fff; }
.la-btn--sm { padding: 0.5rem 1.125rem; font-size: 0.75rem; white-space: nowrap; }

/* --- Sezione lista d'attesa --- */
.la-section {
  background: #fff;
  color: #1f2937;
  padding: 5rem 0;
  scroll-margin-top: 8rem;
  position: relative;
  z-index: 1;
}
.la-container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.la-head { text-align: center; margin-bottom: 3.5rem; }
.la-kicker {
  display: inline-block;
  background: rgba(116,166,81,.12);
  border: 1px solid #74a651;
  color: #3f6b23;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.la-h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
  color: #01402e;
  margin: 0 0 0.75rem;
}
.la-h2 span { color: #74a651; }
.la-lead { color: #4b5563; max-width: 42rem; margin: 0 auto; font-size: 1rem; }
@media (min-width: 768px) { .la-h2 { font-size: 2.25rem; } }

.la-steps { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; list-style: none; padding: 0; }
@media (min-width: 768px) { .la-steps { grid-template-columns: repeat(3, 1fr); } }
.la-step {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.la-step__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  background: rgba(116,166,81,.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: #74a651;
}
.la-step__icon svg { width: 1.75rem; height: 1.75rem; }
.la-step h3 { font-weight: 700; color: #01402e; font-size: 1.125rem; margin: 0 0 0.5rem; }
.la-step p { color: #6b7280; font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Scheda sessione */
.la-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid #74a651;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  background: #fff;
  max-width: 56rem;
  margin: 0 auto;
}
.la-card__head { background: #01402e; color: #fff; padding: 1.25rem 1.5rem; text-align: center; }
.la-card__head p { color: #b0f26d; font-weight: 700; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; margin: 0 0 0.25rem; }
.la-card__head h3 { font-size: 1.5rem; font-weight: 800; margin: 0; color: #fff; }
.la-dl { display: grid; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 640px) { .la-dl { grid-template-columns: 1fr 1fr; } }
.la-dl > div { padding: 1rem 1.5rem; border-bottom: 1px solid #f3f4f6; }
.la-dl dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; display: flex; align-items: center; gap: 0.375rem; }
.la-dl dd { color: #01402e; font-weight: 600; margin: 0.25rem 0 0; }
.la-dl .la-dl__hl { background: #FEF3C7; border-left: 4px solid #F59E0B; }
.la-dl .la-dl__hl dt { color: #92400e; }
.la-dl .la-dl__hl dt svg { width: 0.875rem; height: 0.875rem; color: #d97706; }
.la-dl .la-dl__hl dd { color: #78350f; font-weight: 700; }

.la-center { text-align: center; margin-top: 2.5rem; }

/* --- Tema scuro del sito (classe .dark su <html>) --- */
.dark .la-section { background: #011a14; color: #e5e7eb; }
.dark .la-h2, .dark .la-step h3, .dark .la-dl dd { color: #fff; }
.dark .la-lead { color: #d1d5db; }
.dark .la-kicker { color: #b0f26d; background: rgba(116,166,81,.2); }
.dark .la-step { background: rgba(1,64,46,.2); border-color: rgba(255,255,255,.1); }
.dark .la-step p, .dark .la-dl dt { color: #9ca3af; }
.dark .la-card { background: rgba(1,64,46,.3); }
.dark .la-dl > div { border-color: rgba(255,255,255,.1); }
.dark .la-dl .la-dl__hl dd { color: #78350f; }
.dark .la-dl .la-dl__hl dt { color: #92400e; }
