/*
 * Aggiunte al CSS originale del prototipo (prototipo-DQTBKf3p.css, che resta identico e non si modifica).
 * Solo le poche regole necessarie agli elementi nuovi del sito vero, con i gettoni esistenti:
 * var(--sage), var(--ink), var(--muted), var(--line), var(--gold), var(--ivory).
 * Ogni area scrive solo nella sua sezione.
 */

/* ============================================================ sito (agente sito) */

/* piede: credito Marketipo nella riga di servizio (il link resta in linea, non come i pulsanti della riga) */
.well-footer-bottom > .well-footer-credit a {
  display: inline;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* dialogo «Privacy e condizioni» del piede: i tre link alle pagine legali si riconoscono come link
   (senza questa regola erano dello stesso colore del testo e senza sottolineatura) */
.well-info-dialog p a { color: #4f6a45; text-decoration: underline; text-underline-offset: 3px; }

/* riepilogo della prenotazione: pulsante finale, errore, riga «paghi in studio» */
.well-booking-review > .well-booking-confirm { margin-bottom: 18px; }
.well-booking-review > .well-booking-error,
.well-flow-card .well-gift-error { margin-bottom: 14px; }
.well-payments .well-payment-studio {
  border: 1px solid #8c9f80;
  background: #edf2e6;
  border-radius: 11px;
  padding: 13px;
  color: #45503c;
  font-size: 15px;
  line-height: 1.6;
}
.well-redeem-book { width: 100%; margin-top: 16px; }
.well-gift-outcome > .well-feedback { margin-bottom: 4px; }

/* pagine legali: /privacy, /cookie, /condizioni (guscio .studio-service della scheda trattamento) */
.studio-service.well-legal .well-legal-head { max-width: 880px; margin-bottom: 34px; }
.well-legal .well-legal-head > h1 { margin-bottom: 16px; }
.well-legal .well-legal-updated { color: var(--muted); font-size: 13px; margin-top: 14px; }
.well-legal-body { display: grid; gap: 34px; max-width: 880px; padding: 4px 0 36px; }
.well-legal-section { border-top: 1px solid var(--line); padding-top: 26px; }
.well-legal-section > h2 { color: #485c3e; font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
.well-legal-section p,
.well-legal-section li,
.well-legal-section dd { color: #4f5a46; font-size: 16px; line-height: 1.8; }
.well-legal-section p + p,
.well-legal-section p + ul,
.well-legal-section ul + p,
.well-legal-section dl + p { margin-top: 12px; }
.well-legal-section ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.well-legal-section li::marker { color: var(--ws, var(--sage)); }
.well-legal-section strong { color: var(--text, var(--ink)); font-weight: 600; }
.well-legal-section a { color: #4f6a45; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.well-legal-todo {
  background: #f6e7c4;
  color: #5e4a1c;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 600;
}
.well-legal-list { display: grid; gap: 12px; margin-top: 16px; }
.well-legal-list > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.well-legal-list dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 4px; }
.well-legal-list code { color: #485c3e; font: 600 14px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.well-legal-list dt span { color: var(--muted); font-size: 13px; }
.well-legal-list .well-legal-duration { color: var(--muted); font-size: 14px; }
.well-legal-nav { display: flex; flex-wrap: wrap; gap: 10px; max-width: 880px; margin: 0 0 14px; }
.well-legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text, var(--ink));
  font-size: 14px;
}
.well-legal-nav a[aria-current="page"] { background: var(--ws, var(--sage)); border-color: var(--ws, var(--sage)); color: #fff; }
@media (max-width: 760px) {
  .well-legal-body { gap: 26px; }
  .well-legal-section > h2 { font-size: 24px; }
  .well-legal-section p,
  .well-legal-section li,
  .well-legal-section dd { font-size: 15px; }
}

/* ============================================================ area clienti (agente cliente) */

/* ============================================================ crm (agenti crm-a e crm-b) */

/* voce attiva della sidebar (crm-shell-nav mette aria-current="page"): stesso colore dell'hover del CSS originale */
.sidebar nav a[aria-current="page"]{background:#e0e3d8}

/* anteprima del buono (dialog aperto con showModal): il preflight del CSS originale azzera il margine di ogni elemento e
 * il dialogo restava incollato in alto a sinistra; centrato come gli altri dialoghi del CSS originale */
.voucher-dialog{margin:auto}

/* ============================================================ login (fondamenta)
 * Il modulo di accesso usa solo classi gia' presenti nel CSS originale (.stack-form, .stack-form label, input,
 * .button, .form-error, .login-form-wrap .quiet-note): per ora nessuna regola nuova. */
