/* Area utente /io/: accesso e registrazione, account, "Inserisci il tuo evento" a passi.
   Caricato solo lì, dopo style.css ed eventi.css (riusa .row, .status, .body2/.col/.side, .hero-c, .evc, .cfield).
   Motore: Open Events (login, registrazione, Google, salvataggio evento verso The Events Calendar). Origine: tela ../design/io. */

[hidden] { display: none !important; }

/* Testi e link verde acqua: nello scuro #2A8C85 sulla card #254A5E fa 2,3:1, qui un verde acqua chiaro (4,9:1 sulla card) */
:root { --io-link: var(--accent); }
:root[data-theme="dark"] { --io-link: #6CCBC3; }
/* Segnaposto: senza, quello grigio del browser (2:1 sulla card scura) */
.cfield input::placeholder, .cfield textarea::placeholder { color: var(--text-3); opacity: 1; }
/* Avvisi: testo del tema, il colore sul bordo (rosso su rosa 3,9:1, nello scuro 2:1) */
.notice.err, .notice.ok { color: var(--text); border-left: 4px solid var(--rosso); }
.notice.ok { border-left-color: var(--ok); }

/* ---------- ACCESSO (/io/accedi/) ---------- */
.io-auth { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 1024px) { .io-auth { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 16px; } }
.io-form { gap: 16px; padding: 20px; }
@media (min-width: 720px) { .io-form { padding: 28px; } }
.io-form h1 { font-size: clamp(26px, 2.6vw, 32px); }
.io-form .lead { font-size: 15px; color: var(--text-2); margin-top: -8px; }
.io-ctx { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); background: rgba(42,140,133,.12); border-radius: var(--radius-s); padding: 12px 14px; }
.io-ctx svg { width: 18px; height: 18px; flex: none; color: var(--smeraldo); margin-top: 1px; }

/* Accedi | Crea account: due schede a tutta larghezza */
.io-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface-2); }
.io-seg a { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text-2); transition: background-color var(--t), color var(--t); }
.io-seg a:hover { color: var(--text); }
.io-seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }

/* Google: pulsante bianco con il logo a colori (linee guida Google), sempre per primo */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; border-radius: 999px; background: #fff; color: #1F1F1F; border: 1.5px solid #D5D9DC; font-size: 15px; font-weight: 700; transition: box-shadow var(--t), border-color var(--t); }
.btn-google:hover { border-color: #AEB6BB; box-shadow: var(--shadow-soft); }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.io-or { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.io-or::before, .io-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.io-fields { display: flex; flex-direction: column; gap: 14px; }
.io-fields .cfield input { background: var(--surface); }
.cfield .hint { font-size: 12px; color: var(--text-3); font-weight: 500; }
.cfield .opt { font-weight: 500; color: var(--text-3); }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 84px; }
.pw button { position: absolute; top: 1px; right: 1px; bottom: 1px; min-width: 76px; padding: 0 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 13px; font-weight: 700; color: var(--io-link); }
.io-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.io-line a { color: var(--io-link); font-size: 13px; font-weight: 600; padding: 12px 0; white-space: nowrap; }
.io-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.io-check input { width: 20px; height: 20px; accent-color: var(--smeraldo); flex: none; }
.io-form .cta.full { width: 100%; height: 48px; font-size: 15px; border: 0; cursor: pointer; }
.io-legal { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.io-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* Perché registrarsi (desktop a destra, mobile sotto il form) */
.io-why { gap: 14px; }
.io-why h2 { font-size: 22px; }
.io-why ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.io-why li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; font-size: 14px; color: rgba(244,241,234,.8); }
.io-why li b { display: block; color: #F4F1EA; font-size: 15px; margin-bottom: 2px; }
.io-why li i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.io-why li i svg { width: 20px; height: 20px; }
.io-why .soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #F4F1EA; vertical-align: 2px; }
.io-photo { display: none; }
@media (min-width: 1024px) {
  .io-auth { align-items: stretch; }
  .io-auth .side { width: auto; }
  .io-photo { display: block; position: relative; flex: 1; min-height: 240px; border-radius: var(--radius); overflow: hidden; }
  .io-photo img { position: absolute; inset: 0; }
  .io-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* ---------- ACCOUNT (/io/) ---------- */
.io-hello { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.io-av { width: 56px; height: 56px; border-radius: 50%; background: var(--smeraldo); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; flex: none; overflow: hidden; }
.io-av img { width: 100%; height: 100%; object-fit: cover; }
.io-hello h1 { font-size: clamp(26px, 2.8vw, 36px); }
.io-hello p { font-size: 14px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-hello > div:not(.io-av) { min-width: 0; flex: 1; }
.io-hello .cta { display: none; }
@media (min-width: 720px) { .io-hello .cta { display: inline-flex; } }
.io-add-m { width: 100%; }
@media (min-width: 720px) { .io-add-m { display: none; } }

/* Stati dell'evento inviato (Open Events: pending -> publish; bozza = rimandato indietro dalla redazione) */
.status.rev { background: rgba(201,138,43,.16); color: #8A5A12; }
.status.pub { background: rgba(62,138,90,.14); color: #2E6B45; }
.status.fix { background: rgba(217,56,58,.12); color: #B42B2D; }
/* testo da 11px: almeno 4,5:1 sul fondo tinto, in chiaro e in scuro */
:root[data-theme="dark"] .status.rev { color: #F0C27A; }
:root[data-theme="dark"] .status.pub { color: #8FD3A6; }
:root[data-theme="dark"] .status.fix { color: #F5ABAC; }
.row.io-ev { grid-template-columns: 56px minmax(0, 1fr) auto; }
.row.io-ev .ph { width: 56px; height: 56px; }
.row.io-ev .meta { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* telefono: lo stato va sotto il testo, cosi' il titolo ha tutta la riga */
@media (max-width: 519px) {
  .row.io-ev { grid-template-columns: 56px minmax(0, 1fr); row-gap: 6px; padding: 10px 8px; } /* 8px: .row ha margin 0 -8px */
  .row.io-ev .ph { grid-row: span 2; align-self: start; }
  .row.io-ev .status { grid-column: 2; justify-self: start; }
}
.io-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.io-kv { display: flex; flex-direction: column; }
.io-kv a, .io-kv div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.io-kv > :first-child { border-top: 0; }
.io-kv span { color: var(--text-3); }
.io-kv b { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.io-kv a b { color: var(--io-link); }
.io-org { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.io-org .lg { width: 48px; height: 48px; border-radius: var(--radius-s); background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--text-2); }
.io-org b { display: block; font-size: 16px; }
.io-org span { font-size: 13px; color: var(--text-3); }
.io-soon { opacity: .75; }
.io-soon .tile-head h3::after { content: "presto"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); vertical-align: 3px; }

/* ---------- INSERISCI EVENTO (/io/evento/) ---------- */
.wiz-head { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wiz-head h1 { font-size: clamp(26px, 2.8vw, 36px); }
.wiz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.wiz-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-3); min-width: 0; }
.wiz-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.wiz-steps li.done::before, .wiz-steps li.on::before { background: var(--smeraldo); }
.wiz-steps li.on { color: var(--text); }
.wiz-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-now { display: none; font-size: 14px; color: var(--text-3); }
.wiz-now b { color: var(--text); }
/* telefono: i nomi dei passi non ci stanno, resta la barra + "Passo 1 di 4 · Cosa" */
@media (max-width: 719px) { .wiz-steps li span { display: none; } .wiz-now { display: block; } }
/* l'anteprima dal vivo accanto al form c'e' solo su desktop; sul telefono e' il passo 4 */
@media (max-width: 1023px) { .wiz-side { display: none; } }
.wiz { gap: 18px; padding: 20px; }
@media (min-width: 720px) { .wiz { padding: 28px; } }
.wiz h2 { font-size: 22px; }
.wiz .cform { margin-top: 0; }
.wiz .cfield input, .wiz .cfield select, .wiz .cfield textarea { background: var(--surface); }
.wiz-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 4px; }
.wiz-bar .cta { border: 0; cursor: pointer; }
.wiz-bar .cta.ghost::after { content: none; }
.wiz-bar .cta.ghost::before { content: '\2190'; font-weight: 700; }
.wiz-bar .save { font-size: 13px; color: var(--text-3); }
.wiz-bar > span:empty { display: none; } /* segnaposto vuoto: col gap spostava a destra il pulsante a tutta riga */
.wiz-bar .cta:last-child { margin-left: auto; }
/* telefono: Indietro diventa un tondo con la freccia (il testo resta per i lettori di schermo), l'azione prende la riga */
@media (max-width: 519px) {
  .wiz-bar .cta:last-child { flex: 1; min-width: 0; height: auto; min-height: 48px; padding-block: 8px; line-height: 1.2; text-align: center; } /* va a capo se non ci sta (360px, EN/DE) */
  .wiz-bar .cta.ghost { flex: none; width: 48px; padding: 0; font-size: 0; gap: 0; }
  .wiz-bar .cta.ghost::before { font-size: 18px; }
}

/* Tipo di evento: chip con casella (piu' scelte) */
.io-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.io-chips label { position: relative; }
.io-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.io-chips span { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color var(--t), border-color var(--t), color var(--t); }
.io-chips span svg { width: 14px; height: 14px; display: none; }
.io-chips input:checked + span { background: var(--abisso); border-color: var(--abisso); color: #fff; }
.io-chips input:checked + span svg { display: block; }
.io-chips input:focus-visible + span { outline: 3px solid var(--smeraldo); outline-offset: 2px; }
:root[data-theme="dark"] .io-chips input:checked + span { background: var(--sabbia); border-color: var(--sabbia); color: var(--abisso); }

/* Foto: zona di caricamento (tocco = scegli dal telefono) e foto scelta */
.io-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; font-size: 14px; color: var(--text-2); cursor: pointer; }
.io-drop b { font-size: 15px; color: var(--text); }
.io-drop i { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--io-link); }
.io-drop i svg { width: 22px; height: 22px; }
.io-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.io-drop.has { padding: 0; border-style: solid; overflow: hidden; min-height: 0; }
.io-drop.has img { width: 100%; height: 200px; object-fit: cover; display: block; }
.io-drop.has .chg { position: absolute; right: 10px; bottom: 10px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(15,30,38,.72); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; }

/* Interruttore (tutto il giorno, piu' giorni, si ripete) */
.io-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; cursor: pointer; }
.io-switch small { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); }
.io-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color var(--t); opacity: .5; }
.io-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t); }
.io-switch input:checked { background: var(--smeraldo); opacity: 1; }
.io-switch input:checked::after { transform: translateX(20px); }
.io-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* due colonne solo se c'e' posto: gli input hanno una larghezza minima */
@media (min-width: 560px) { .io-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.io-grid3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 519px) { .io-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .io-grid3 > :first-child { grid-column: 1 / -1; } }
.io-sep { height: 1px; background: var(--line); margin: 2px 0; }

/* Prezzo: tre scelte a tutta larghezza */
.io-seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.io-seg3 label { position: relative; }
.io-seg3 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.io-seg3 span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 4px 8px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text-2); line-height: 1.2; }
.io-seg3 input:checked + span { border-color: var(--smeraldo); background: rgba(42,140,133,.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--smeraldo); }
.io-seg3 input:focus-visible + span { outline: 3px solid var(--smeraldo); outline-offset: 2px; }

/* Organizzatore gia' salvato nel profilo */
.io-orgbox { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-s); border: 1.5px solid var(--smeraldo); background: rgba(42,140,133,.08); }
.io-orgbox b { display: block; font-size: 15px; }
.io-orgbox span { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-orgbox a { font-size: 13px; font-weight: 700; color: var(--io-link); padding: 12px 4px; }
.io-orgbox .lg { width: 48px; height: 48px; border-radius: var(--radius-s); background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--text-2); }

/* Anteprima: come apparira' (scheda + riga della lista) */
.io-prev { display: flex; flex-direction: column; gap: 12px; }
.io-prev .hero-c { height: 260px; box-shadow: none; }
.io-prev .evc { width: 100%; pointer-events: none; }
.io-prev .tile { padding: 4px 14px; }
.io-prev .row { border-top: 0; }
.io-prev-lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.io-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.io-check-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; }
.io-check-list svg { width: 18px; height: 18px; color: var(--ok); }
.io-check-list a { font-size: 13px; font-weight: 700; color: var(--io-link); padding: 8px 0 8px 8px; }

/* Consigliati a pagamento (Open Events + Stripe): facoltativo, spento di default */
.io-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line); }
.io-promo b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.io-promo b svg { width: 14px; height: 14px; color: var(--rosso); }
.io-promo p { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* Inviato */
.io-done { align-items: flex-start; gap: 14px; padding: 24px; }
.io-done .ok { width: 56px; height: 56px; border-radius: 50%; background: rgba(62,138,90,.16); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.io-done .ok svg { width: 28px; height: 28px; }
.io-done h1 { font-size: clamp(26px, 2.8vw, 34px); }
.io-done p { font-size: 15px; color: var(--text-2); }
.io-flow { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 0; width: 100%; }
.io-flow li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; font-size: 14px; color: var(--text-3); }
.io-flow li::before { content: ""; width: 14px; height: 14px; margin: 3px 0 0 7px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); position: relative; z-index: 1; }
.io-flow li::after { content: ""; position: absolute; left: 13px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.io-flow li:last-child::after { content: none; }
.io-flow li.done::before { background: var(--ok); border-color: var(--ok); }
.io-flow li.on::before { border-color: var(--warn); background: var(--warn); }
.io-flow li b { display: block; color: var(--text); font-size: 15px; }
.io-done .ctas { width: 100%; }
@media (max-width: 519px) { .io-done .ctas { flex-direction: column; } .io-done .ctas .cta { width: 100%; } }
.wiz-head + .wiz { margin-top: 14px; }
@media (min-width: 1024px) { .wiz-side { position: sticky; top: 16px; } }

/* ---------- PEZZI DEL SITO VERO (oltre la tela) ---------- */
.io-fields .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cfield .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }
.io-ph, .row .io-ph { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-3); border-radius: var(--radius-s); }
.io-ph svg { width: 22px; height: 22px; }
.io-auth-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.io-form .lead { margin-top: 0; }
.io-form .notice, .io-sez .notice { margin: 0; }

/* Form a passi: con JS un passo alla volta; senza JS tutto in fila e resta solo "Invia" */
.wiz-form { display: flex; flex-direction: column; gap: 16px; }
fieldset.wiz { margin: 0; min-width: 0; }
.io-js .wiz-step:not(.on) { display: none; }
html:not(.io-js) .wiz-next, html:not(.io-js) .wiz-prev, html:not(.io-js) [data-anteprima], html:not(.io-js) .io-check-list { display: none; }
.cfield.bad input, .cfield.bad select, .cfield.bad textarea { border-color: var(--live); }
.cfield .err { font-size: 12px; font-weight: 600; color: var(--live); }
.io-ripete { display: flex; flex-direction: column; gap: 12px; padding-left: 14px; border-left: 3px solid var(--line); }
.io-date { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.io-date input { font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; min-height: 46px; }
.io-piu { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--io-link); padding: 12px 0; gap: 6px; }
.io-piu svg { width: 16px; height: 16px; }
.io-check-list .more { font-size: 13px; font-weight: 700; color: var(--io-link); padding: 8px 0 8px 8px; }
.wiz-bar .cta[disabled] { opacity: .6; pointer-events: none; }

/* Profilo */
.io-head { gap: 4px; }
.io-head .more { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--io-link); padding: 12px 0; }
.io-head .more, .tile-head .more, .io-orgbox a, .io-check-list .more, .io-check-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--io-link); } /* link piccoli: almeno 44px da toccare */
.io-profilo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; max-width: 760px; }
.io-sez { gap: 14px; padding: 20px; }
@media (min-width: 720px) { .io-sez { padding: 24px 28px; } }
.io-sez h2 { font-size: 22px; }
.io-sez .sub { margin-top: -8px; font-size: 14px; color: var(--text-3); font-weight: 500; }
.io-sez .cfield input { background: var(--surface); }
.io-ro { min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 15px; color: var(--text-2); }

.io-vuoto { font-size: 14px; color: var(--text-2); }
.io-vuoto a { color: var(--io-link); font-weight: 600; }
.wiz h2:focus { outline: none; } /* fuoco messo dal cambio di passo, per i lettori di schermo */

/* ---------- CALENDARIO E ORARI (come i selettori di VitaHub, nei colori del sito) ----------
   Senza JS restano <input type="date"> e <select> di mezz'ore; con io.js diventano un campo-pulsante con popover. */
.io-pick { position: relative; }
.io-pick-btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--t); }
.io-pick-btn svg { width: 18px; height: 18px; flex: none; color: var(--text-3); }
.io-pick-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-pick-btn .ph { color: var(--text-3); }
.io-pick-btn:hover { border-color: var(--line-strong); }
.io-pick-btn[aria-expanded="true"], .io-pick-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,140,133,.15); }
.cfield.bad .io-pick-btn { border-color: var(--live); }
.io-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; animation: io-pop .16s ease-out; }
.io-pop.dx { left: auto; right: 0; }
@keyframes io-pop { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .io-pop { animation: none; } }

.io-cal { width: 320px; max-width: calc(100vw - 32px); }
.io-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 6px; }
.io-cal-head button { min-width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.io-cal-head button:hover { background: var(--surface-2); color: var(--text); }
.io-cal-head button svg { width: 18px; height: 18px; }
.io-cal-head .tit { padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--text); text-transform: capitalize; }
.io-cal-dow, .io-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.io-cal-dow span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; color: var(--text-3); padding: 4px 0; }
.io-cal-grid button { height: 42px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.io-cal-grid button:hover { background: var(--surface-2); }
.io-cal-grid button.oggi { color: var(--smeraldo); box-shadow: inset 0 0 0 1.5px var(--smeraldo); }
.io-cal-grid button.fine { background: rgba(42,140,133,.12); }
.io-cal-grid button.sel, .io-cal-grid button.sel:hover { background: var(--smeraldo); color: #fff; box-shadow: none; }
.io-cal-grid button:disabled { color: var(--text-3); opacity: .4; background: none; cursor: default; }
.io-cal-mesi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.io-cal-mesi button { height: 44px; border-radius: var(--radius-s); font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: capitalize; }
.io-cal-mesi button:hover { background: var(--surface-2); color: var(--text); }
.io-cal-mesi button.sel { background: var(--smeraldo); color: #fff; }
.io-cal-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.io-cal-foot button { height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text-2); }
.io-cal-foot button:hover { border-color: var(--line-strong); color: var(--text); }
.io-cal-foot .via { margin-left: auto; border: 0; color: var(--text-3); }

.io-ore { width: 100%; min-width: 132px; padding: 6px; }
.io-ore .lista { max-height: 264px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.io-ore button { min-height: 44px; border-radius: var(--radius-s); font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; flex: none; }
.io-ore button:hover { background: var(--surface-2); }
.io-ore button.sel, .io-ore button.sel:hover { background: var(--smeraldo); color: #fff; }
.io-ore button.vuoto { color: var(--text-3); font-weight: 500; }
:root[data-theme="dark"] .io-cal-grid button.sel, :root[data-theme="dark"] .io-ore button.sel, :root[data-theme="dark"] .io-cal-mesi button.sel { color: #fff; }

/* Descrizione: spazio vero per scrivere (e cresce mentre scrivi) */
.wiz textarea[name="descrizione"] { min-height: 240px; line-height: 1.55; }
/* Locandina verticale: nella zona di caricamento si vede intera */
.io-drop.has img { height: auto; max-height: 440px; object-fit: contain; background: var(--surface-2); }
/* anteprima: la locandina non si apre, e' solo da guardare; niente altezza fissa del desktop (colonna stretta) */
.io-prev .poster { cursor: default; }
.io-prev .hero-c.vert { height: auto; display: flex; padding: 60px 16px 16px; }
.io-prev .hero-c.vert .body, .io-prev .hero-c.vert .top { right: 16px; }
.io-prev .hero-c.vert .body { position: relative; left: auto; bottom: auto; }
.io-prev .hero-c.vert .poster { position: relative; top: auto; bottom: auto; right: auto; max-width: none; width: min(68%, 280px); }
.io-prev .hero-c.vert .poster img { max-height: none; width: 100%; }
