/* ═══════════════════════════════════════════════
   parcheggio.css — stili per le viste Parcheggio
   Dipende da landing-turchi.css (variabili CSS)
   ═══════════════════════════════════════════════ */

/* ── Contenitore principale ── */
.parcheggio-main {
  min-height: 100vh;
  padding: 8rem 1.5rem 5rem;
  background: var(--panna);
}

/* ── Sezione con titolo hero ── */
.parch-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.parch-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--resina);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.parch-hero h1 em { color: var(--acqua); font-style: italic; }
.parch-hero p {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Card generica ── */
.p-card {
  background: var(--bianco);
  border: 1px solid rgba(28,43,26,0.1);
  border-radius: 2px;
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Griglia tariffe (Acquista) ── */
.tariffe-scelta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.tariffa-scelta-card {
  border: 1.5px solid rgba(28,43,26,0.14);
  border-radius: 2px;
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bianco);
}
.tariffa-scelta-card:hover { border-color: var(--acqua); box-shadow: 0 2px 12px rgba(74,155,184,0.12); }
.tariffa-scelta-card .t-nome {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.tariffa-scelta-card .t-prezzo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--resina);
}

/* ── Etichetta campo form ── */
.p-label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

/* ── Input / Select ── */
.p-input,
.p-select {
  width: 100%;
  background: var(--panna);
  border: 1.5px solid rgba(28,43,26,0.18);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--resina);
  outline: none;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.p-input:focus,
.p-select:focus { border-color: var(--acqua); }
.p-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5038' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ── Wrapper campo ── */
.p-field { margin-bottom: 1.5rem; }

/* ── Errore validazione ── */
.p-error {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.3rem;
}
.p-error-box {
  background: rgba(192,57,43,0.07);
  border-left: 3px solid #c0392b;
  padding: 0.75rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: #c0392b;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* ── Bottone primario ── */
.p-btn {
  display: inline-block;
  background: var(--resina);
  color: var(--panna);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  width: 100%;
  text-align: center;
}
.p-btn:hover { background: var(--acqua); color: var(--bianco); }

/* ── Bottone secondario ── */
.p-btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--resina);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1.5px solid var(--resina);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  text-align: center;
}
.p-btn-ghost:hover { background: var(--resina); color: var(--panna); }

/* ── Azioni form ── */
.p-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.p-actions .p-btn { flex: 1; }
.p-actions .p-btn-ghost { flex: 0 0 auto; }

/* ── Dl riepilogo ── */
.p-dl {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(28,43,26,0.07);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
}
.p-dl-row:last-child { border-bottom: none; }
.p-dl-dt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.p-dl-dd {
  font-weight: 500;
  color: var(--resina);
  text-align: right;
}
.p-dl-total .p-dl-dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--acqua);
}

/* ── Badge tipo abbonamento ── */
.tipo-badge {
  display: inline-block;
  background: var(--acqua);
  color: var(--bianco);
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

/* ── Card header ── */
.p-card-header {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(28,43,26,0.1);
}

/* ── Icona successo ── */
.p-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(74,155,184,0.1);
  border: 2px solid var(--acqua);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 2rem;
  color: var(--acqua);
}

/* ── Codice biglietto ── */
.p-ticket-id {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--resina);
  line-height: 1;
  text-align: center;
  margin-bottom: 0.5rem;
}
.p-ticket-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Tabella biglietti ── */
.p-table-wrap { overflow-x: auto; }
.p-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
}
.p-table th {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1.5px solid rgba(28,43,26,0.12);
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.p-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(28,43,26,0.07);
  color: var(--resina);
  vertical-align: middle;
}
.p-table tr:last-child td { border-bottom: none; }
.p-table tr.scaduto td { color: var(--muted); }

/* ── Badge stato ── */
.stato-badge {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}
.stato-attivo { background: rgba(74,155,184,0.12); color: var(--acqua); border: 1px solid var(--acqua); }
.stato-scaduto { background: rgba(28,43,26,0.06); color: var(--muted); border: 1px solid rgba(28,43,26,0.15); }

/* ── Nessun biglietto ── */
.p-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.p-empty p {
  font-family: 'Barlow', sans-serif;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.p-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .4;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .p-card { padding: 1.5rem; }
  .parcheggio-main { padding: 7rem 1rem 3rem; }
  .p-actions { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   Identity — Login / Register
   ═══════════════════════════════════════════════ */

/* ── Hero sezione auth ── */
.auth-hero {
  background: var(--resina);
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-hero-inner { position: relative; z-index: 1; }
.auth-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--acqua);
  margin-bottom: 0.75rem;
}
.auth-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--bianco);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.auth-hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(245,240,232,0.6);
  font-weight: 300;
}
.auth-hero-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  display: block;
}

/* ── Sezione form auth ── */
.auth-body {
  background: var(--panna);
  padding: 3.5rem 1.5rem 5rem;
}
.auth-card {
  max-width: 480px;
}

/* ── Checkbox Ricordami ── */
.auth-remember {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.8rem;
}
.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--acqua);
  cursor: pointer;
}
.auth-remember label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  margin: 0;
}

/* ── Link secondari sotto al form ── */
.auth-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28,43,26,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.auth-links a,
.auth-link-single a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
}
.auth-links a.auth-link-primary { color: var(--acqua); }
.auth-links a strong,
.auth-link-single a strong { color: var(--resina); }

/* ── Wrapper link singolo ── */
.auth-link-single {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28,43,26,0.1);
}

@media (max-width: 640px) {
  .auth-hero { padding: 6rem 1rem 4rem; }
  .auth-body  { padding: 2.5rem 1rem 3rem; }
}
