/* Parte pubblica: home, accesso, iscrizione. Blu notte e rosso ADMO su bianco freddo (dal mockup variante B). */
body.pubblico {
  --bg: #ffffff; --soft: #fbeeed; --surface: #ffffff; --ink: #2b1b1d; --muted: #6a5256; --line: #ecd9d7;
  --red: #ea0b00; --red-text: #bc0900; --on-red: #ffffff; --hero: #ea0b00; --on-hero: #ffffff; --hero-muted: #ffffff; --hero-line: rgba(255, 255, 255, .45); --hero-red: #ffffff;
  --btn-bg: #ffffff; --btn-ink: #2b1b1d;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* i colori del resto del sito seguono questi, cosi' i moduli di iscrizione hanno lo stesso aspetto */
  --rosso: #ea0b00; --rosso-scuro: #bc0900; --rosso-chiaro: #fbeeed; --inchiostro: #2b1b1d; --grigio: #6a5256; --bordo: #ecd9d7; --sfondo: #ffffff; --bianco: #ffffff;
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  body.pubblico {
    --bg: #1a1011; --soft: #251718; --surface: #2d1d1f; --ink: #f8eeed; --muted: #cdb7b5; --line: #4c3436;
    --red: #ff5a4d; --red-text: #ff8a80; --on-red: #2b0a07; --hero: #6d0a05; --hero-line: rgba(255, 255, 255, .3); color-scheme: dark;
    --rosso: #ff5a4d; --rosso-scuro: #ff8a80; --rosso-chiaro: #2a1512; --inchiostro: #f8eeed; --grigio: #cdb7b5; --bordo: #4c3436; --sfondo: #1a1011; --bianco: #2d1d1f;
  }
  body.pubblico .brand img { background: #fff; }
}
.pubblico *, .pubblico *::before, .pubblico *::after { box-sizing: border-box; }
.pubblico a { color: inherit; }
.pubblico :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.pubblico .hero :focus-visible, .pubblico footer :focus-visible, .pubblico .accesso :focus-visible { outline-color: #fff; }
.pubblico .scheda :focus-visible { outline-color: var(--red); }
.salta { position: absolute; left: -9999px; top: 0; background: #fff; color: #0e1d33; padding: .6rem 1rem; z-index: 2000; }
.salta:focus { left: 8px; top: 8px; }
.pubblico .wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.pubblico h1, .pubblico h2, .pubblico h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
.pubblico h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.pubblico section.blocco { padding-block: clamp(2.75rem, 6vw, 5rem); }

/* Intestazione */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1100; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { display: block; height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 3px 6px; }
.menu-pub { display: flex; gap: .35rem 1.4rem; flex-wrap: wrap; align-items: center; font-weight: 600; font-size: .98rem; }
.menu-pub a { text-decoration: none; padding: .4rem 0; border-bottom: 3px solid transparent; }
.menu-pub a:hover, .menu-pub a[aria-current="page"] { border-color: var(--red); }
.menu-pub a.accedi { border: 2px solid var(--ink); border-radius: 8px; padding: .4rem .9rem; }
.menu-pub a.accedi:hover { background: var(--ink); color: var(--bg); }
.menu-pub a.accedi[aria-current="page"] { background: var(--ink); color: var(--bg); }
.lang { font-size: .85rem; color: var(--muted); }
.lang b { color: var(--ink); }
.lang a { border: 0; padding: 0; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: 8px; border: 2px solid transparent; font: 700 1.05rem var(--font-body); text-decoration: none; cursor: pointer; }
.pubblico a.btn-primary, .pubblico button.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { filter: brightness(1.1); }
.pubblico a.btn-hero { background: var(--btn-bg); color: var(--btn-ink); }
.btn-hero:hover { filter: brightness(.94); }
.pubblico a.btn-line { background: transparent; color: var(--on-hero); border-color: rgba(255, 255, 255, .45); }
.btn-line:hover { border-color: #fff; }
.pubblico a.btn-ghost-scuro { background: transparent; color: var(--ink); border-color: var(--ink); }
.pubblico a.btn-ghost-scuro:hover { background: var(--ink); color: var(--bg); }
.btn.pieno { width: 100%; }

/* Primo schermo: testo e mappa */
.hero { background: var(--hero); color: var(--on-hero); }
.hero .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 3.75rem); }
.hero .eyebrow { color: var(--hero-red); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; margin-block: .7rem 1.1rem; }
.hero p.lead { font-size: 1.18rem; color: var(--hero-muted); margin: 0 0 1.6rem; max-width: 30rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .micro { margin: 1rem 0 0; font-size: .92rem; color: var(--hero-muted); }
.hero .micro a { color: #fff; }

.mappa-box { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--hero-line); background: #fff4f2; min-width: 0; }
#mappa { height: clamp(380px, 56vh, 520px); width: 100%; z-index: 0; }
.mappa-ui { position: absolute; z-index: 1000; top: 12px; left: 12px; right: 12px; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; pointer-events: none; }
.mappa-ui > * { pointer-events: auto; }
.mappa-ui select { min-height: 2.75rem; padding: .4rem .9rem; border-radius: 8px; border: 0; background: #fff; color: #2b1b1d; font: 600 .98rem var(--font-body); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); max-width: 100%; }
.mappa-ui .conta { background: #2b1b1d; color: #fff; border-radius: 8px; padding: .5rem .8rem; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mappa-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--hero-muted); }
.mappa-off[hidden] { display: none; }
.legenda { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: .8rem; font-size: .9rem; color: var(--hero-muted); }
.legenda span { display: inline-flex; align-items: center; gap: .5rem; }
.pin { display: block; width: 18px; height: 18px; background: #ea0b00; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.pin.centro { border-radius: 50%; }
.pin.polo { border-radius: 4px; transform: rotate(45deg) scale(.9); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { margin: 14px 16px; font-size: .95rem; line-height: 1.45; color: #2b1b1d; }
.leaflet-popup-content a.vai { display: inline-block; margin-top: .5rem; font-weight: 700; color: #bc0900; }
.leaflet-popup-content small { color: #6a5256; }
.pubblico .marker-cluster-small, .pubblico .marker-cluster-medium, .pubblico .marker-cluster-large { background: rgba(234, 11, 0, .3); }
.pubblico .marker-cluster-small div, .pubblico .marker-cluster-medium div, .pubblico .marker-cluster-large div { background: #ea0b00; color: #fff; font-weight: 700; font-family: var(--font-body); }

/* Fascia dei numeri e dei requisiti */
.fascia { background: var(--soft); border-bottom: 1px solid var(--line); }
.fascia .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; }
.fascia .dato { padding: 1.6rem 1.25rem; border-left: 1px solid var(--line); }
.fascia .dato:first-child { border-left: 0; padding-left: 0; }
.fascia .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; color: var(--red-text); letter-spacing: -.03em; }
.fascia .dato:first-child .big { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.fascia .cosa { font-weight: 700; margin-top: .4rem; }
.fascia .dett { color: var(--muted); font-size: .95rem; margin-top: .15rem; }

/* Come funziona e domande */
.duecol { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.duecol .sx p { color: var(--muted); margin: 1rem 0 0; max-width: 26rem; }
.tl { list-style: none; counter-reset: p; margin: 0 0 0 1.25rem; padding: 0; border-left: 2px solid var(--line); display: grid; gap: 1.9rem; }
.tl li { counter-increment: p; position: relative; padding-left: 2.4rem; }
.tl li::before { content: counter(p); position: absolute; left: -1.28rem; top: -.1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--on-red); font: 800 1.1rem var(--font-display); }
.tl h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .25rem; }
.tl p { margin: 0; color: var(--muted); }
.altri { background: var(--soft); }
.tessere { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.tessere a { display: block; text-decoration: none; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 1.6rem; }
.tessere a:hover { background: var(--ink); color: var(--bg); }
.tessere a:hover p { color: inherit; }
.tessere h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .35rem; }
.tessere p { margin: 0; color: var(--muted); }
.tessere span { display: inline-block; margin-top: .9rem; font-weight: 700; color: var(--red-text); }
.tessere a:hover span { color: inherit; text-decoration: underline; }
.faq details { border-top: 2px solid var(--ink); padding-block: 1rem; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--red-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); max-width: 40rem; }

/* Piede */
.pubblico footer { background: var(--hero); color: var(--on-hero); padding-block: 2.25rem; }
.pubblico footer .wrap { display: flex; gap: 1.5rem 3rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.otto { display: flex; gap: .9rem; align-items: center; max-width: 32rem; }
.otto .marchio { flex: none; font-family: var(--font-display); font-weight: 800; line-height: 1; border: 2px solid #fff; padding: .45rem .7rem; text-align: center; }
.otto .marchio small { display: block; font: 700 .55rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }
.otto p { margin: 0; font-size: .92rem; color: var(--hero-muted); }
.pubblico footer ul { list-style: none; display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; padding: 0; margin: 0; font-size: .95rem; }
.pubblico footer ul a { color: #fff; }

/* Barra fissa con "Iscriviti ora" sul telefono */
.sticky { display: none; }

/* Pagina di accesso */
.accesso { background: var(--hero); color: var(--on-hero); }
.accesso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.accesso .eyebrow { color: var(--hero-red); }
.accesso h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 800; margin-block: .7rem 1rem; }
.accesso .lead { font-size: 1.15rem; color: var(--hero-muted); margin: 0 0 1.5rem; max-width: 30rem; }
.vantaggi { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vantaggi li { padding-left: 1.6rem; position: relative; color: var(--hero-muted); }
.vantaggi li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .75rem; height: .75rem; border-radius: 2px; background: var(--hero-red); transform: rotate(45deg); }
.vantaggi b { color: #fff; }
.accesso .scheda { background: var(--surface); color: var(--ink); border-radius: 16px; border: 0; padding: clamp(1.4rem, 3.5vw, 2.25rem); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); min-width: 0; display: block; }
.scheda-titolo { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.25rem; }
.accesso .campo { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.accesso .campo label { font-weight: 700; font-size: .98rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.accesso .campo input, .pw input { width: 100%; min-height: 3.25rem; height: auto; padding: .6rem .9rem; border-radius: 8px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 500 1.05rem var(--font-body); }
.accesso .campo input:focus, .pw input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.accesso .campo input[aria-invalid="true"], .pw input[aria-invalid="true"] { border-color: var(--red); }
.pw { position: relative; }
.pw input { padding-right: 5.5rem; }
.pw button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); min-height: 2.5rem; padding: 0 .8rem; border: 0; border-radius: 6px; background: transparent; color: var(--red-text); font: 700 .95rem var(--font-body); cursor: pointer; }
.pw button:hover { background: var(--soft); }
.accesso .errore { color: var(--red-text); font-weight: 600; margin: 0; }
.riga { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; font-size: .96rem; }
.riga a { color: var(--red-text); font-weight: 600; }
.avviso-acc { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--red); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1.25rem; background: var(--soft); }
.avviso-acc p { margin: 0; font-weight: 600; }
.avviso-icona { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--red); color: var(--on-red); display: grid; place-items: center; font-weight: 800; }
.nuovo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.nuovo div { display: grid; }
.nuovo span { color: var(--muted); font-size: .92rem; }

/* Pagine con un modulo al centro (iscrizione, conferma, aiuta...) */
.modulo { padding: clamp(1.5rem, 4vw, 3rem) 16px clamp(2.5rem, 6vw, 4.5rem); background: var(--soft); }
.modulo .ospite-colonna { margin-inline: auto; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.modulo .ospite-colonna.larga { max-width: 860px; }
.modulo .scheda { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 16px; width: 100%; color: var(--ink); }
.modulo h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin: 0 0 4px; }
.modulo h2 { font-size: 1.15rem; margin: 14px 0 0; }
.modulo .righe { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.modulo .righe a { color: var(--red-text); font-weight: 600; }

@media (max-width: 900px) {
  .hero .wrap, .duecol, .accesso-grid { grid-template-columns: 1fr; }
  .fascia .wrap { grid-template-columns: 1fr 1fr; }
  .fascia .dato:nth-child(3) { border-left: 0; padding-left: 0; }
  .fascia .dato { border-top: 1px solid var(--line); }
  .fascia .dato:first-child, .fascia .dato:nth-child(2) { border-top: 0; }
  .fascia .dato:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .fascia .dato:nth-child(2) { border-left: 0; padding-left: 0; }
  .accesso .scheda { order: -1; }
}
@media (max-width: 640px) {
  .tessere { grid-template-columns: 1fr; }
  .menu-pub .nascondi-mobile { display: none; }
  .sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: var(--surface); border-top: 1px solid var(--line);
    padding: .65rem max(16px, env(safe-area-inset-right, 0px)) calc(.65rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .sticky .btn { width: 100%; }
  .pubblico footer { padding-bottom: 6rem; }
}

/* Gli elementi nascosti restano nascosti anche se un nostro stile ha un display (i passi dell'iscrizione) */
.pubblico [hidden] { display: none !important; }

/* Campi dei moduli: stessa altezza, bordo e carattere per testo, tendine, aree di testo */
.modulo .campo, .accesso .campo { display: grid; gap: .4rem; }
.modulo .campo label { font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.modulo .campo input:not([type="checkbox"]):not([type="radio"]), .modulo .campo select, .modulo .campo textarea {
  width: 100%; min-height: 3.25rem; height: auto; padding: .6rem .9rem; border-radius: 8px; border: 2px solid var(--line);
  background-color: var(--bg); color: var(--ink); font: 500 1.05rem var(--font-body);
}
.modulo .campo textarea { min-height: 7rem; resize: vertical; }
.modulo .campo select, .accesso .campo select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236a5256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.modulo .campo input:focus, .modulo .campo select:focus, .modulo .campo textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.modulo .campo .errore { color: var(--red-text); font-weight: 600; margin: 0; font-size: .9rem; }
.modulo .griglia-scheda { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1.25rem; width: 100%; }
.modulo .griglia-scheda .campo { margin-bottom: 1.1rem; }
.modulo .campo.casella { display: block; }
.modulo .riga-casella { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.modulo .riga-casella input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--red); flex: none; }
.modulo .passo h2 { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 800; }
.modulo .bottoni-passo { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.modulo .bottoni-passo .pulsante { min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: 8px; font: 700 1.05rem var(--font-body); border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.modulo .bottoni-passo .pulsante.primario { background: var(--red); border-color: var(--red); color: var(--on-red); }
.modulo .bottoni-passo .pulsante.largo { width: 100%; }
.modulo .bottoni-passo .pulsante:hover { filter: brightness(1.08); }
.modulo .errori-riepilogo { border: 2px solid var(--red); border-radius: 8px; padding: .8rem 1rem; background: var(--soft); font-weight: 600; }

/* Pagine interne (iscrizione, aiuta): fascia con titolo e passi, poi il contenuto stretto */
.testata-pagina { background: var(--soft); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 2.75rem) 0; }
.testata-pagina h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin-block: .5rem 1.4rem; }
.stepper { list-style: none; counter-reset: s; display: flex; gap: 0; margin: 0; padding: 0; }
.stepper[hidden] { display: none; }
.stepper li { flex: 1; counter-increment: s; position: relative; padding: .9rem .5rem .9rem 0; border-top: 4px solid var(--line); display: flex; align-items: center; gap: .65rem; color: var(--muted); font-weight: 600; font-size: .95rem; min-width: 0; }
.stepper li::before { content: counter(s); flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--muted); font: 700 .9rem var(--font-body); }
.stepper li.attivo { border-color: var(--red-text); color: var(--ink); }
.stepper li.attivo::before { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stepper li.fatto { border-color: var(--ink); color: var(--ink); }
.stepper li.fatto::before { content: "\2713"; background: var(--red); border-color: var(--red-text); color: var(--on-red); }
.stepper li span { overflow-wrap: anywhere; }
.contenuto-pagina { padding-block: clamp(1.75rem, 4vw, 3rem); }
.stretta { max-width: 880px; }
.contenuto-pagina h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-block: .5rem 1rem; }
.intro { color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; }
.intro b { color: var(--ink); }
.opzioni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.opzioni.due { grid-template-columns: 1fr 1fr; }
.opzione, .scelta { position: relative; display: flex; flex-direction: column; gap: .5rem; text-align: left; padding: 1.5rem 1.5rem 3.2rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; min-width: 0; }
.opzione b, .scelta b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.opzione span, .scelta span { color: var(--muted); }
.opzione:hover { background: var(--soft); }
.pubblico a.opzione.principale, .pubblico button.opzione.principale { background: var(--red); border-color: var(--red-text); color: var(--on-red); }
.opzione.principale span { color: inherit; opacity: .92; }
.opzione .freccia { position: absolute; left: 1.5rem; bottom: 1.1rem; font-style: normal; font-size: 1.5rem; font-weight: 800; }
.scelta input { position: absolute; opacity: 0; pointer-events: none; }
.scelta .segno { position: absolute; left: 1.5rem; bottom: 1.1rem; width: 1.7rem; height: 1.7rem; border: 2px solid var(--ink); border-radius: 6px; }
.scelta:has(input:checked) { border-color: var(--red-text); box-shadow: inset 0 0 0 2px var(--red); }
.scelta:has(input:checked) .segno { background: var(--red); border-color: var(--red-text); }
.scelta:has(input:checked) .segno::after { content: "\2713"; color: var(--on-red); display: grid; place-items: center; height: 100%; font-weight: 800; }
.scelta:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.gruppo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1.25rem; }
.gruppo h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1.25rem; }
.contenuto-pagina .campo { display: grid; gap: .4rem; margin-bottom: 1.1rem; align-content: start; }
.contenuto-pagina .campo label { font-weight: 700; font-size: .98rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.contenuto-pagina .campo input:not([type="checkbox"]):not([type="radio"]), .contenuto-pagina .campo select, .contenuto-pagina .campo textarea {
  width: 100%; min-height: 3.25rem; height: auto; padding: .6rem .9rem; border-radius: 8px; border: 2px solid var(--line); background-color: var(--bg); color: var(--ink); font: 500 1.05rem var(--font-body); }
.contenuto-pagina .campo textarea { min-height: 7rem; resize: vertical; }
.contenuto-pagina .campo select { -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236a5256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.contenuto-pagina .campo input:focus, .contenuto-pagina .campo select:focus, .contenuto-pagina .campo textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.contenuto-pagina .campo .errore, .contenuto-pagina .errore { color: var(--red-text); font-weight: 600; margin: 0; font-size: .92rem; }
.aiuto { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.avviso-info { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--ink); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1.25rem; background: var(--soft); }
.avviso-info p { margin: 0; font-weight: 600; }
.avviso-info .avviso-icona { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 800; }
.errori-riepilogo { border: 2px solid var(--red); border-radius: 8px; padding: .8rem 1rem; background: var(--soft); font-weight: 600; margin-bottom: 1.25rem; }
.errori-riepilogo p { margin: .2rem 0; }
.spunta-grande { display: flex; align-items: flex-start; gap: .8rem; line-height: 1.45; font-weight: 500; cursor: pointer; margin-bottom: .6rem; }
.spunta-grande input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .1rem; accent-color: var(--red); }
.gruppo.consenso { border: 2px solid var(--ink); }
.azioni { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.domande { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--soft); border-radius: 12px; display: grid; gap: .25rem; }
.domande span { color: var(--muted); }
.domande a, .domande button { color: var(--red-text); font-weight: 700; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: 700 1rem var(--font-body); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 600 .98rem var(--font-body); cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--red-text); background: var(--soft); }
.chip:has(input:checked)::before { content: "\2713\00a0"; color: var(--red-text); font-weight: 800; }
.chip:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.segmenti { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; margin-bottom: 1rem; }
.segmenti button { min-height: 2.9rem; padding: .4rem 1.1rem; border: 0; background: transparent; color: var(--ink); font: 700 .98rem var(--font-body); cursor: pointer; }
.segmenti button + button { border-left: 2px solid var(--ink); }
.segmenti button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.vuoto-mail { display: grid; justify-items: start; gap: .75rem; color: var(--ink); }
.vuoto-mail h2 { margin-block: 0; }
.mail-box { width: 100%; }
.mail-box .btn { margin-top: .75rem; }
.pubblico .contenuto-pagina .btn { text-decoration: none; }
@media (max-width: 760px) {
  .opzioni, .opzioni.due { grid-template-columns: 1fr; }
  .stepper li span { display: none; }
  .stepper li.attivo span { display: inline; }
  .stepper li.attivo { flex: 3; }
}
.elenco-criteri { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: .4rem; }
.elenco-criteri li::marker { color: var(--red-text); }
