/* prenota/prenota.css — pagina pubblica di prenotazione e disdetta.
   Disposizione, misure e stati ricalcano il widget Amelia di
   avvocatopanzino.com (riferimento scelto dal committente): colonna scura
   300px coi passi, scheda bianca 520px, un solo carattere sans, misure in
   px come nell'originale. Cambiano solo i colori, che sono quelli dello
   studio (dichiarati qui perché questa pagina non carica il CSS del sito). */

:root {
  --blue: #3e5b87;
  --green: #bdc696;
  --ink: #263c58;
  --sky: #c5dffc;
  --muted: #f3f6f9;

  --line: #d7dee6;
  --text-soft: #5c6f86;
  --red: #b3261e;

  /* Toni derivati, tutti da --blue/--ink/--red: niente colori nuovi. */
  --blue-10: color-mix(in srgb, var(--blue) 10%, white);
  --blue-20: color-mix(in srgb, var(--blue) 20%, white);
  --blue-60: color-mix(in srgb, var(--blue) 60%, white);
  --blue-scuro: color-mix(in srgb, var(--blue) 84%, black);
  --red-10: color-mix(in srgb, var(--red) 10%, white);
  --shadow-edge: rgba(38, 60, 88, 0.15);
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--muted);
  color: var(--ink);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

/* Il fuoco spostato da JS sui titoli (cambio di passo) non deve mostrare
   un riquadro: è un annuncio programmatico, non un controllo. */
h1[tabindex="-1"] { outline: none; }

p { margin: 0 0 1em; }

a { color: var(--blue); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Cornice: colonna scura + scheda bianca, 820px centrati --- */

.app {
  display: flex;
  width: 100%;
  max-width: 880px;
  min-height: 560px;
  margin: 100px auto;
  border-radius: 10px;
  /* Un alone senza spostamento tiene l'ombra anche sopra: solo offset in giù
     e il bordo alto sparisce nello sfondo. */
  box-shadow: 0 0 0 1px rgba(38, 60, 88, 0.04), 0 0 22px rgba(38, 60, 88, 0.07), 0 8px 20px rgba(38, 60, 88, 0.09), 0 26px 54px rgba(38, 60, 88, 0.07);
  animation: mv-sale 0.5s var(--mv-easing) both;
}

.sidebar {
  flex: 0 0 300px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px 0 0 10px;
}

.sb__steps {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}

.sb__step {
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.25s ease;
}
.sb__step.is-active { background: rgba(255, 255, 255, 0.12); }

.sb__step-inner {
  display: flex;
  align-items: center;
}

.sb__step-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.sb__step-heading {
  flex: 1 1 auto;
  margin: 0 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* Il cerchietto a destra: vuoto, bordo spesso chiaro sul passo attivo,
   spunta verde sul passo fatto. */
.sb__step-checker {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink);
  transition: border 0.2s ease;
}
.sb__step.is-active .sb__step-checker { border: 4px solid var(--line); }
.sb__step.is-done .sb__step-checker::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green) url("/studio/assets/icone/spunta-passo.svg") center / 11px no-repeat;
}

.sb__step-selection {
  margin: 0;
  padding: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
}
.sb__step-selection[hidden] { display: none; }

.sb__support {
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}
.sb__support-heading {
  margin: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.sb__support a {
  display: block;
  margin-top: 4px;
  color: #fff;
  text-decoration: none;
}
.sb__support a:hover { text-decoration: underline; }

/* --- Scheda bianca: intestazione, contenuto, piè --- */

.main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0 10px 10px 0;
}

.step {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.step[hidden] { display: none; }

.main__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  box-shadow: 0 2px 3px var(--shadow-edge);
  position: relative;
  z-index: 1;
}
.main__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.btn-back {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--blue-10);
  color: var(--blue);
  cursor: pointer;
}
.btn-back { transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-back:hover { background: var(--blue-20); transform: translateX(-2px); }
.btn-back svg { width: 14px; height: 14px; }

.main__content {
  flex: 1 1 auto;
  padding: 16px 48px;
}

.main__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 32px;
  box-shadow: 0 -2px 3px var(--shadow-edge);
}
.main__footer--start { justify-content: flex-start; }

/* --- Bottoni --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 8px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}
.btn--primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.btn--primary:hover:not(:disabled) {
  background: var(--blue-scuro);
  border-color: var(--blue-scuro);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--blue) 30%, transparent);
}
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn--ghost {
  color: var(--blue);
  background: #fff;
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--muted); }
.btn--primary:disabled {
  background: var(--muted);
  border-color: var(--line);
  color: var(--text-soft);
}
.btn:disabled { cursor: not-allowed; }
.btn--primary.is-loading:disabled {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mv-gira 0.7s linear infinite;
}

/* --- Calendario: tendine mese/anno + frecce --- */

.calendar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.combo { position: relative; flex: 1 1 0; min-width: 0; }

.combo__btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 8px 0 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 24px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: box-shadow 0.15s ease;
}
.combo__btn:hover { box-shadow: 0 0 0 1px var(--blue); }
.combo__btn::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-left: auto;
  background: url("/studio/assets/icone/freccia-giu.svg") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.combo__btn[aria-expanded="true"]::after { transform: scaleY(-1); }

.combo__listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(38, 60, 88, 0.16);
  scrollbar-width: thin;
  scrollbar-color: var(--text-soft) var(--muted);
}
.combo__listbox[hidden] { display: none; }
.combo__listbox:not([hidden]) {
  transform-origin: top center;
  animation: mv-tendina 0.18s var(--mv-easing) both;
}

.combo__option {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.combo__option[aria-disabled="true"] {
  color: var(--text-soft);
  opacity: 0.5;
  cursor: not-allowed;
}
.combo__option.is-active:not([aria-disabled="true"]) { background: var(--blue-10); }
.combo__option[aria-selected="true"]:not([aria-disabled="true"]) { font-weight: 600; }

/* Tiene il <select> nel form e funzionante, ma invisibile: non display:none. */
.native-select--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Le due frecce: un gruppo unico, unite al centro. Comandi secondari,
   quindi chiari: la sola tinta piena della scheda è il bottone del passo. */
.calendar__arrows { display: flex; flex: 0 0 auto; }
.calendar__arrows button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.calendar__arrows button:first-child { border-radius: 6px 0 0 6px; margin-right: -1px; }
.calendar__arrows button:last-child { border-radius: 0 6px 6px 0; }
.calendar__arrows button:hover:not(:disabled) {
  background: var(--blue-10);
  border-color: var(--blue-60);
  color: var(--blue);
  position: relative;
}
.calendar__arrows button:disabled { opacity: 0.4; cursor: not-allowed; }

.calendar__tz {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
}
.calendar__tz span {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 15px;
  color: var(--blue);
  background: var(--blue-10);
}

/* --- Calendario: griglia --- */

.calendar__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.calendar__grid th {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 15px;
  color: var(--ink);
  text-transform: lowercase;
}
.calendar__grid td { padding: 4px 6px; text-align: center; }
/* La cella dei giorni non prenotabili ha un velo grigio dietro il numero. */
.calendar__grid td:has(.day--pieno, .day--chiuso, .day--passato) { background: rgba(128, 128, 128, 0.07); }

.day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 17px;
  line-height: 17px;
  background: var(--red-10);
  color: var(--text-soft);
  cursor: not-allowed;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.day:focus-visible { outline-offset: 1px; }

/* .day.day--STATO: due classi, per battere in specificità .day qui sopra. */
.day.day--libero {
  background: var(--blue-10);
  border-color: var(--blue-60);
  color: var(--blue);
  cursor: pointer;
}
.day.day--libero:hover,
.day.day--libero:focus-visible {
  background: var(--blue-20);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(38, 60, 88, 0.14);
}
.day.day--libero:active { transform: translateY(0); box-shadow: none; }
.day.day--libero[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--blue) 35%, transparent);
  animation: mv-pop-lieve 0.3s var(--mv-easing) both;
}

/* Oggi: un punto in alto a destra, come nel riferimento. */
.day.day--oggi::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.day.day--libero[aria-selected="true"].day--oggi::after { background: #fff; }

/* --- Fasce orarie --- */

.fasce { margin-top: 24px; }
.fasce[hidden] { display: none; }
.fasce__heading {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}
.fasce__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -6px;
}
.fascia {
  flex: 0 0 calc(50% - 12px);
  height: 44px;
  margin: 0 6px 8px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid var(--blue-60);
  border-radius: 4px;
  background: var(--blue-10);
  color: var(--blue);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.fascia:hover {
  background: var(--blue-20);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 60, 88, 0.14);
}
.fascia:active { transform: translateY(0); box-shadow: none; }
.fascia[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--blue) 35%, transparent);
  animation: mv-pop-lieve 0.3s var(--mv-easing) both;
}

/* Segnaposto mentre gli orari arrivano dal server: stessa forma dei
   pulsanti, così la scheda non salta quando li sostituiscono. */
.fascia--skeleton {
  border-color: transparent;
  cursor: default;
  background: linear-gradient(90deg, var(--muted) 25%, #fff 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: mv-brillio 1.2s linear infinite;
}

/* --- Form --- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.field--full { grid-column: 1 / -1; }

.field { margin-bottom: 24px; }
.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 19.5px;
}
.field .req { color: var(--red); }
.field input,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 24px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
  background: #fff;
  color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--text-soft) 60%, white); }
.field input:hover,
.field textarea:hover { box-shadow: 0 0 0 1px var(--text-soft); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--blue);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { box-shadow: 0 0 0 1px var(--red); }
.field textarea {
  height: auto;
  min-height: 112px;
  max-height: 220px; /* oltre questa si scorre: il piè deve restare in vista */
  padding: 10px 12px;
  resize: none;
  overflow-y: auto;
  transition: box-shadow 0.15s ease, height 0.12s ease;
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.4;
  margin: 5px 0 0;
  animation: mv-sale 0.25s var(--mv-easing) both;
}
.field-error::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  background: url("/studio/assets/icone/campo-ok.svg") center / contain no-repeat;
}
.field-error:empty { display: none; }

/* Aiuto sotto al campo: dice la cosa in più senza gridare. */
.field-help {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}
.field-help--conta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.field-help .conta {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.field-help .conta.is-vicino { color: var(--red); }

/* Campo compilato bene: una spunta discreta dentro la casella. */
.field input[data-ok],
.field textarea[data-ok] {
  padding-right: 38px;
  background-image: url("/studio/assets/icone/errore-campo.svg");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
}
.field textarea[data-ok] { background-position: right 13px top 12px; }

/* La riga privacy accanto al bottone: il piè diventa a due blocchi. */
.main__footer--nota { justify-content: space-between; gap: 20px; }
.main__footer--nota .btn { flex: 0 0 auto; }
.nota-privacy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}
.nota-privacy a { color: var(--blue); text-decoration: underline; }

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--red);
  border-radius: 4px;
  background: var(--red-10);
  color: color-mix(in srgb, var(--red) 55%, var(--ink));
  font-size: 14px;
}
.form-alert[hidden] { display: none; }
.form-alert:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: mv-sale 0.3s var(--mv-easing) both;
}
.form-alert::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  background: url("/studio/assets/icone/errore-avviso.svg") center / contain no-repeat;
}

.disdici-summary {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--muted);
}
.disdici-summary p:last-child { margin-bottom: 0; }

/* --- Conferma finale: occupa tutta la scheda, centrata. È l'ultima cosa
   che la persona vede, e deve dire tre cose: è arrivata, quando, e che
   serve ancora la mia risposta. --- */

.main__content--esito {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
}

.esito {
  max-width: 430px;
  text-align: center;
  animation: mv-sale 0.45s var(--mv-easing) both;
}

.esito__spunta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--green) 22%, white);
  animation: mv-pop 0.5s var(--mv-easing) both;
  animation-delay: 0.1s;
}
.esito__spunta svg { width: 36px; height: 36px; }

.esito__titolo {
  font-size: 27px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.esito__intro {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--text-soft);
}

.esito__riquadro {
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--blue-10);
  margin-bottom: 22px;
}
.esito__quando {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
}
.esito__dove {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.esito__nota {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}
.esito__email { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* --- Disdici: stessa cornice; il titolo sta nel contenuto perché cambia
   a seconda dell'esito. --- */
.main__content > h1 { margin-bottom: 12px; font-size: 18px; font-weight: 500; }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Stretto (telefono, o l'iframe nella home): colonna scura sopra,
   coi due passi affiancati; i contatti li ha già la pagina intorno. --- */
@media (max-width: 760px) {
  .app { flex-direction: column; margin: 0 auto; min-height: 0; }
  .sidebar { flex: 0 0 auto; padding: 12px; border-radius: 8px 8px 0 0; }
  .sb__steps { display: flex; gap: 8px; padding: 0; }
  .sb__step { flex: 1 1 0; min-width: 0; margin: 0; }
  .sb__step-heading { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb__step-selection { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb__support { display: none; }
  .main { border-radius: 0 0 8px 8px; }
  .main__heading { padding: 12px 20px; }
  .main__content { padding: 16px 20px; }
  .main__footer { padding: 8px 20px; }
  .calendar__nav { gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .sb__step-icon { display: none; }
  .sb__step-heading { margin-left: 0; font-size: 13px; }
  .fascia { flex-basis: calc(100% - 12px); }
}

/* --- Embed (?embed=1): dentro l'iframe della home. La cornice è la
   .booking-card che lo contiene: niente sfondo né margini. --- */
body.is-embed { background: transparent; min-height: 0; }
.is-embed .app { margin: 0; box-shadow: none; animation: none; }
.is-embed .back-home { display: none; }
/* Nell'iframe la colonna della home è ~700px, sotto la soglia di 760 che
   impila la colonna scura: qui invece resta di fianco. Si stringe solo la
   colonna (190px) e i margini interni: comandi e campi restano grandi come
   nella pagina intera. Sotto 520px si impila anche qui. */
@media (min-width: 521px) {
  .is-embed .app { flex-direction: row; }
  .is-embed .sidebar { flex: 0 0 190px; padding: 12px 8px; border-radius: 10px 0 0 10px; }
  .is-embed .sb__steps { display: block; padding: 0; }
  .is-embed .sb__step { margin: 0 0 8px; }
  .is-embed .sb__step-heading { font-size: 13px; }
  .is-embed .sb__support { display: block; font-size: 13px; }
  .is-embed .sb__step-heading,
  .is-embed .sb__step-selection { white-space: normal; }
  .is-embed .main { border-radius: 0 10px 10px 0; }
  .is-embed .main__heading { padding: 12px 22px; }
  .is-embed .main__content { padding: 16px 22px; }
  .is-embed .main__footer { padding: 8px 22px; }
  .is-embed .main__footer--nota { flex-wrap: wrap; justify-content: flex-end; }
  .is-embed .nota-privacy { flex: 1 1 100%; order: -1; padding-top: 4px; }
  .is-embed .calendar__grid td { padding: 3px 5px; }
  .is-embed .calendar__nav { gap: 14px; }
  .is-embed .form-grid { grid-template-columns: 1fr 1fr; }
  .is-embed .main__content--esito { padding: 28px 22px; }
}


/* ===========================================================================
   Movimento
   ---------------------------------------------------------------------------
   Come nel riferimento: l'elemento entra scivolando e supera di poco la
   posizione finale prima di assestarsi, con le voci sfalsate una dopo
   l'altra. Il sorpasso è tutto nell'easing.
   =========================================================================== */

:root {
  --mv-durata: 0.4s;
  --mv-easing: cubic-bezier(0.45, 1, 0.4, 1.2);
  --mv-sfalsa: 45ms;
}

@keyframes mv-sale {
  0%   { transform: translate3d(0, 16px, 0); opacity: 0; }
  75%  { transform: translate3d(0, -3px, 0); opacity: 0.7; }
  100% { transform: none; opacity: 1; }
}

@keyframes mv-entra-da-sinistra {
  0%   { transform: translate3d(-24px, 0, 0); opacity: 0; }
  75%  { transform: translate3d(3px, 0, 0); opacity: 0.7; }
  100% { transform: none; opacity: 1; }
}

@keyframes mv-pop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Il sorpasso in scala, per la cella scelta: piccolo, non un rimbalzo. */
@keyframes mv-pop-lieve {
  0%   { transform: scale(0.92); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes mv-tendina {
  0%   { transform: translate3d(0, -6px, 0) scaleY(0.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

@keyframes mv-gira {
  100% { transform: rotate(360deg); }
}

@keyframes mv-brillio {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Le fasce che compaiono dopo aver scelto un giorno; sfalsamento limitato
   a 10 posizioni (con molti orari l'ultimo arriverebbe troppo dopo). */
.fascia {
  animation: mv-sale var(--mv-durata) var(--mv-easing) both;
  animation-delay: calc(var(--i, 0) * var(--mv-sfalsa));
}

/* Il calendario al cambio mese: sfalsato per riga, non per giorno. */
.calendar__grid tbody tr {
  animation: mv-sale calc(var(--mv-durata) * 0.85) var(--mv-easing) both;
  animation-delay: calc(var(--riga, 0) * 35ms);
}

.step.is-active { animation: mv-sale var(--mv-durata) var(--mv-easing) both; }

.sb__step.is-done .sb__step-checker::before { animation: mv-pop 0.35s var(--mv-easing) both; }

.sb__step-selection:not([hidden]) { animation: mv-entra-da-sinistra var(--mv-durata) var(--mv-easing) both; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

:root{--blue:#191bdf;--ink:#09080d;--green:#fe6807;--sky:#e6e6fc;}

.booking-duration{margin-bottom:24px}.booking-duration label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}.booking-duration select{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit;color:var(--ink)}.booking-duration p{font-size:12px;line-height:1.5;color:var(--text-soft);margin:8px 0 0} #calendar-status:not(.sr-only){padding:18px;background:#fff3df;color:#6d3500}
.is-embed .app { max-width: none; }


/* Duration uses the same accessible listbox as the calendar, with ETS accents. */
.booking-duration__label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}
.duration-combo .combo__btn{height:48px;padding:0 16px;border-radius:10px;text-align:left;gap:12px}
.duration-combo .combo__btn[hidden]{display:none}
.duration-combo .combo__btn:focus-visible{outline:2px solid #191bdf;outline-offset:3px}
.duration-combo .combo__btn[aria-expanded="true"]{box-shadow:0 0 0 1px #191bdf}
.duration-combo .combo__listbox{width:100%;min-width:0;padding:6px;border-radius:12px;box-shadow:0 0 0 1px #dddde9,0 14px 32px #09080d1f}
.duration-combo .combo__option{position:relative;display:flex;align-items:center;min-height:46px;padding:10px 40px 10px 12px;border-radius:7px;white-space:normal;line-height:1.5}
.duration-combo .combo__option:hover,.duration-combo .combo__option.is-active{background:#e6e6fc;color:#191bdf}
.duration-combo .combo__option[aria-selected="true"]{color:#191bdf;font-weight:650}
.duration-combo .combo__option[aria-selected="true"]::after{content:"✓";position:absolute;right:14px;color:#fe6807;font-size:18px}
.booking-duration select.native-select--hidden{width:1px;height:1px;padding:0;border:0}
