/* =====================================================================
   RIPARATO · Moduli di candidatura Riparato Mobility Hub
   Layout: elenco dei passi a sinistra (desktop) e pannello delle domande
   su fondo grigio brand; una sola colonna su smartphone.
   Tutte le regole sono racchiuse nella classe .rq per non interferire
   con lo stile del sito.
   ===================================================================== */

/* @font-face:inizio — Montserrat ospitato sul sito (rimuovere se il sito lo carica già) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
/* @font-face:fine */

.rq {
  /* Colori del brand RIPARATO (valori HEX ufficiali per il digitale) */
  --rq-blu: #002AFF;
  --rq-blu-scuro: #001FC2;
  --rq-magenta: #FF00DC;
  --rq-ciano: #00D0FF;
  --rq-fondo: #F2F2F2;
  --rq-carta: #FFFFFF;
  /* Neutri con leggera tinta verso il blu del marchio */
  --rq-ink: #0B1033;
  --rq-ink2: #474D6E;
  --rq-ink3: #767B96;
  --rq-linea: #DADDE9;
  --rq-linea-forte: #B9BED3;
  --rq-tinta: #EEF1FF;
  --rq-tinta-2: #E2E7FF;
  /* Stati */
  --rq-errore: #C0123A;
  --rq-errore-bg: #FFF0F4;
  --rq-ok: #077A53;
  --rq-ok-bg: #E8F7F0;
  --rq-grad: linear-gradient(90deg, #FF00DC 0%, #002AFF 54.6%, #00D0FF 97%);
  /* Tipografia */
  --rq-font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rq-r: 12px;

  font-family: var(--rq-font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rq-ink);
  background: var(--rq-fondo);
  -webkit-font-smoothing: antialiased;
}
.rq *, .rq *::before, .rq *::after { box-sizing: border-box; }
.rq h1, .rq h2, .rq h3, .rq p { margin: 0; }
.rq a { color: var(--rq-blu); }
.rq [hidden] { display: none !important; }
.rq .rq-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Testata */
.rq-top { background: var(--rq-carta); position: relative; }
.rq-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rq-grad); }
.rq-top__in { max-width: 1120px; margin: 0 auto; padding-block: 18px 21px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rq-top__logo { display: block; height: 38px; width: auto; }
.rq-top__tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rq-ink2); }

.rq-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Apertura pagina */
.rq-hero { padding-block: 36px 28px; display: grid; gap: 10px; }
.rq-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rq-blu); }
.rq-hero h1 { font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; max-width: 22ch; }
.rq-hero p { color: var(--rq-ink2); max-width: 64ch; }
.rq-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: 13.5px; color: var(--rq-ink2); }
.rq-meta span { display: inline-flex; align-items: center; gap: 7px; }
.rq-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rq-blu); }

/* ---------- Avvisi */
.rq-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: var(--rq-r); background: var(--rq-carta); border: 1px solid var(--rq-linea); font-size: 14px; color: var(--rq-ink2); margin-bottom: 20px; }
.rq-banner strong { color: var(--rq-ink); font-weight: 700; }
.rq-banner--info { background: var(--rq-tinta); border-color: var(--rq-tinta-2); }

/* ---------- Struttura a due colonne */
.rq-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 56px; }
.rq-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 14px; }
.rq-progress { display: grid; gap: 8px; }
.rq-progress__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--rq-ink2); font-variant-numeric: tabular-nums; }
.rq-progress__row strong { color: var(--rq-ink); font-weight: 700; }
.rq-bar { height: 6px; border-radius: 99px; background: var(--rq-linea); overflow: hidden; }
.rq-bar span { display: block; height: 100%; width: 0; background: var(--rq-grad); background-size: 250px 100%; border-radius: 99px; transition: width .35s ease; }
.rq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rq-steps button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--rq-ink2); }
.rq-steps button:hover { background: rgba(0, 42, 255, .05); color: var(--rq-ink); }
.rq-steps button:focus-visible { outline: 2px solid var(--rq-blu); outline-offset: 1px; }
.rq-steps .rq-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--rq-carta); border: 1.5px solid var(--rq-linea-forte); color: var(--rq-ink2); font-variant-numeric: tabular-nums; }
.rq-steps .is-current button { background: var(--rq-carta); color: var(--rq-ink); font-weight: 700; box-shadow: 0 1px 0 var(--rq-linea); }
.rq-steps .is-current .rq-dot { background: var(--rq-blu); border-color: var(--rq-blu); color: #FFFFFF; }
.rq-steps .is-done .rq-dot { background: var(--rq-tinta); border-color: var(--rq-tinta-2); color: var(--rq-blu); }
.rq-steps .is-todo .rq-dot { border-color: var(--rq-magenta); color: var(--rq-magenta); }
.rq-saved { font-size: 12.5px; color: var(--rq-ink3); display: flex; align-items: center; gap: 7px; min-height: 18px; }
.rq-saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rq-ok); opacity: .9; }
.rq-saved:empty::before { display: none; }

.rq-mobilebar { display: none; }

/* ---------- Pannello */
.rq-panel { background: var(--rq-carta); border: 1px solid var(--rq-linea); border-radius: 16px; padding: 30px 32px 26px; min-width: 0; }
.rq-step-head { display: grid; gap: 6px; padding-bottom: 6px; }
.rq-step-head h2 { font-weight: 800; font-size: 25px; line-height: 1.2; text-wrap: balance; }
.rq-step-head p { color: var(--rq-ink2); max-width: 66ch; font-size: 14.5px; }

/* ---------- Domande */
.rq-q { padding-block: 22px; border-top: 1px solid var(--rq-linea); display: grid; gap: 14px; }
.rq-step-head + .rq-q, .rq-errsum + .rq-q { border-top: 0; }
.rq-qhead { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.rq-num { width: 32px; height: 28px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--rq-blu); background: var(--rq-tinta); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); font-variant-numeric: tabular-nums; margin-top: -2px; }
.rq-label { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--rq-ink); text-wrap: pretty; }
.rq-req { color: var(--rq-magenta); margin-left: 3px; font-weight: 800; }
.rq-hint { font-size: 13.5px; color: var(--rq-ink2); margin-top: 3px; max-width: 70ch; }
.rq-qbody { padding-left: 46px; display: grid; gap: 12px; min-width: 0; }
.rq-q--sub { border-top: 0; padding-top: 0; margin-top: -8px; }
.rq-q--sub .rq-qhead { grid-template-columns: 34px minmax(0, 1fr); }
.rq-q--sub .rq-num { background: transparent; clip-path: none; color: var(--rq-ink3); font-size: 16px; }
.rq-q--sub .rq-label { font-size: 15px; font-weight: 600; }

.rq-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 14px; }
.rq-f { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rq-flabel { font-size: 13.5px; font-weight: 600; color: var(--rq-ink2); }

/* Campi di testo */
.rq-inwrap { position: relative; display: flex; align-items: center; }
.rq-input, .rq-textarea { width: 100%; font: inherit; font-weight: 500; font-size: 15px; color: var(--rq-ink); background: var(--rq-carta); border: 1.5px solid var(--rq-linea-forte); border-radius: 10px; padding: 0 12px; height: 46px; transition: border-color .15s, box-shadow .15s; }
.rq-textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.rq-input::placeholder, .rq-textarea::placeholder { color: var(--rq-ink3); font-weight: 500; }
.rq-input:hover, .rq-textarea:hover { border-color: var(--rq-ink3); }
.rq-input:focus, .rq-textarea:focus { outline: none; border-color: var(--rq-blu); box-shadow: 0 0 0 3px rgba(0, 208, 255, .35); }
.rq-input--num { font-variant-numeric: tabular-nums; }
.rq-input--suf { padding-right: 64px; }
.rq-suffix { position: absolute; right: 12px; font-size: 13px; color: var(--rq-ink3); pointer-events: none; }
.rq-input--short { max-width: 220px; }
.rq-upper { text-transform: uppercase; }

/* Opzioni a scelta */
.rq-opts { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.rq-opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--rq-linea); border-radius: 10px; background: var(--rq-carta); cursor: pointer; font-size: 14.5px; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.rq-opt:hover { border-color: var(--rq-linea-forte); }
.rq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rq-box { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid var(--rq-linea-forte); border-radius: 5px; background: var(--rq-carta); display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.rq-opt--radio .rq-box { border-radius: 50%; }
.rq-box::after { content: ""; width: 9px; height: 5px; border: solid #FFFFFF; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.rq-opt--radio .rq-box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #FFFFFF; transform: none; }
.rq-opt.is-on { border-color: var(--rq-blu); background: var(--rq-tinta); }
.rq-opt.is-on .rq-box { background: var(--rq-blu); border-color: var(--rq-blu); }
.rq-opt.is-on .rq-box::after { opacity: 1; }
.rq-opt input:focus-visible + .rq-box { outline: 2px solid var(--rq-blu); outline-offset: 2px; }
.rq-opt--excl { border-style: dashed; }
.rq-altro { max-width: 520px; }

/* Sì / No */
.rq-sino { display: flex; gap: 8px; flex-wrap: wrap; }
.rq-sino .rq-opt { min-width: 104px; }

/* Tabelle numeriche */
.rq-table { display: grid; border: 1px solid var(--rq-linea); border-radius: var(--rq-r); overflow: hidden; max-width: 620px; }
.rq-trow { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border-top: 1px solid var(--rq-linea); }
.rq-trow:first-child { border-top: 0; }
.rq-trow:nth-child(even) { background: #FAFAFC; }
.rq-trow label { font-size: 14.5px; }
.rq-trow .rq-input { height: 40px; text-align: right; }
.rq-trow--head { background: var(--rq-fondo) !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rq-ink2); padding-block: 9px; }
.rq-trow--head span:last-child { text-align: right; padding-right: 12px; }
.rq-trow--tot { background: var(--rq-fondo) !important; font-weight: 700; }
.rq-tot { text-align: right; padding-right: 12px; font-variant-numeric: tabular-nums; }
.rq-tot.is-ok { color: var(--rq-ok); }
.rq-tot.is-ko { color: var(--rq-errore); }
.rq-sumhint { font-size: 13px; color: var(--rq-ink2); font-variant-numeric: tabular-nums; }

/* Griglia attività */
.rq-gridtab { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--rq-linea); border-radius: var(--rq-r); overflow: hidden; }
.rq-gridtab th, .rq-gridtab td { padding: 9px 12px; border-top: 1px solid var(--rq-linea); text-align: left; font-size: 14.5px; }
.rq-gridtab thead th { border-top: 0; background: var(--rq-fondo); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rq-ink2); }
.rq-gridtab thead th:not(:first-child), .rq-gridtab td { text-align: center; width: 30%; }
.rq-gridtab tbody th { font-weight: 600; }
.rq-gridtab tbody tr:nth-child(even) { background: #FAFAFC; }
.rq-cell { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 4px; border-radius: 8px; }
.rq-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rq-cell .rq-box { width: 22px; height: 22px; }
.rq-cell.is-on .rq-box { background: var(--rq-blu); border-color: var(--rq-blu); }
.rq-cell.is-on .rq-box::after { opacity: 1; }
.rq-cell input:focus-visible + .rq-box { outline: 2px solid var(--rq-blu); outline-offset: 2px; }
.rq-cell__lab { display: none; font-size: 13px; color: var(--rq-ink2); }

/* Righe Sì / No */
.rq-rows { display: grid; border: 1px solid var(--rq-linea); border-radius: var(--rq-r); overflow: hidden; }
.rq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--rq-linea); }
.rq-row:first-child { border-top: 0; }
.rq-row:nth-child(even) { background: #FAFAFC; }
.rq-row__t { font-size: 14.5px; }
.rq-row .rq-opt { min-height: 40px; min-width: 84px; }
.rq-row.is-err { background: var(--rq-errore-bg); }

/* Nota e consensi */
.rq-note { padding: 14px 16px; border-radius: var(--rq-r); background: var(--rq-tinta); font-size: 14px; color: var(--rq-ink); }
.rq-consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--rq-linea); border-radius: var(--rq-r); cursor: pointer; font-size: 14.5px; position: relative; }
.rq-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rq-consent .rq-box { width: 20px; height: 20px; margin-top: 1px; }
.rq-consent.is-on { border-color: var(--rq-blu); background: var(--rq-tinta); }
.rq-consent.is-on .rq-box { background: var(--rq-blu); border-color: var(--rq-blu); }
.rq-consent.is-on .rq-box::after { opacity: 1; }
.rq-consent input:focus-visible + .rq-box { outline: 2px solid var(--rq-blu); outline-offset: 2px; }

/* Errori */
.rq-err { color: var(--rq-errore); font-size: 13.5px; font-weight: 600; }
.rq-err:empty { display: none; }
.rq-f.is-err .rq-input, .rq-f.is-err .rq-textarea, .rq-q.is-err > .rq-qbody .rq-input:invalid { border-color: var(--rq-errore); }
.rq-q.is-err .rq-num { background: var(--rq-errore-bg); color: var(--rq-errore); }
.rq-q.is-err .rq-opt:not(.is-on) { border-color: #F2B6C4; }
.rq-errsum { padding: 12px 16px; border-radius: var(--rq-r); background: var(--rq-errore-bg); color: var(--rq-errore); font-size: 14px; font-weight: 600; margin-top: 14px; }
.rq-errsum ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.rq-errsum button { all: unset; cursor: pointer; text-decoration: underline; }

/* Pulsanti */
.rq-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; margin-top: 4px; border-top: 1px solid var(--rq-linea); }
.rq-actions__r { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.rq-btn { appearance: none; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 15px; height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.rq-btn--primary { background: var(--rq-blu); color: #FFFFFF; }
.rq-btn--primary:hover { background: var(--rq-blu-scuro); }
.rq-btn--ghost { background: var(--rq-carta); color: var(--rq-ink); border-color: var(--rq-linea-forte); }
.rq-btn--ghost:hover { border-color: var(--rq-ink2); }
.rq-btn--link { background: none; border: 0; color: var(--rq-blu); padding: 0 6px; height: auto; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rq-btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.rq-btn:focus-visible { outline: 3px solid rgba(0, 208, 255, .6); outline-offset: 2px; }
.rq-btn[disabled] { opacity: .55; cursor: progress; }

/* Riepilogo */
.rq-rev { display: grid; gap: 18px; }
.rq-rev-sec { border: 1px solid var(--rq-linea); border-radius: var(--rq-r); overflow: hidden; }
.rq-rev-sec__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--rq-fondo); }
.rq-rev-sec__h h3 { font-size: 15px; font-weight: 800; }
.rq-rev dl { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.rq-rev dt, .rq-rev dd { margin: 0; padding: 9px 16px; border-top: 1px solid var(--rq-linea); font-size: 14px; }
.rq-rev dt { color: var(--rq-ink2); }
.rq-rev dd { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.rq-rev dd.is-empty { color: var(--rq-ink3); font-weight: 500; }
.rq-rev dl > :nth-child(1), .rq-rev dl > :nth-child(2) { border-top: 0; }

/* Esito invio */
.rq-done { display: grid; gap: 14px; padding-block: 10px; }
.rq-done h2 { font-size: 24px; font-weight: 800; }
.rq-done ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.rq-copyrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rq-copyrow code { font-family: var(--rq-font); font-weight: 700; background: var(--rq-fondo); padding: 6px 10px; border-radius: 8px; user-select: all; }
.rq-ok-msg { padding: 14px 16px; border-radius: var(--rq-r); background: var(--rq-ok-bg); color: var(--rq-ok); font-weight: 600; }

/* Pagina pre-candidatura */
.rq-single { max-width: 860px; margin: 0 auto; padding-bottom: 56px; }
.rq-flow { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: rqflow; }
.rq-flow li { background: var(--rq-carta); border: 1px solid var(--rq-linea); border-radius: var(--rq-r); padding: 14px 16px; display: grid; gap: 4px; counter-increment: rqflow; }
.rq-flow li::before { content: counter(rqflow); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #FFFFFF; background: var(--rq-blu); margin-bottom: 4px; }
.rq-flow strong { font-size: 14.5px; font-weight: 700; }
.rq-flow span { font-size: 13.5px; color: var(--rq-ink2); }
.rq-flow li.is-here { border-color: var(--rq-blu); box-shadow: inset 0 0 0 1px var(--rq-blu); }

/* Strumento interno */
.rq-tool { display: grid; gap: 18px; }
.rq-out { display: grid; gap: 8px; }
.rq-out .rq-textarea { min-height: 220px; font-size: 14px; }

/* Piè di pagina */
.rq-foot { padding-block: 22px 30px; font-size: 12.5px; color: var(--rq-ink3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--rq-linea); }

/* Documento stampabile del riepilogo (solo in stampa) */
.rq-printdoc { display: none; }

/* ---------- Tablet e smartphone */
@media (max-width: 960px) {
  .rq-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rq-nav { display: none; }
  .rq-mobilebar { display: grid; gap: 8px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--rq-fondo); padding-block: 10px 12px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--rq-linea); }
  .rq-mobilebar__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
  .rq-mobilebar select { font: inherit; font-weight: 700; font-size: 14px; color: var(--rq-ink); background: var(--rq-carta); border: 1.5px solid var(--rq-linea-forte); border-radius: 10px; height: 38px; padding: 0 10px; max-width: 70%; }
  .rq-panel { padding: 22px 18px 20px; }
}
@media (max-width: 680px) {
  .rq-qbody { padding-left: 0; }
  .rq-opts { grid-template-columns: minmax(0, 1fr); }
  .rq-opts.rq-opts--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-g12 > .rq-f { grid-column: 1 / -1 !important; }
  .rq-g12 > .rq-f.rq-f--pair { grid-column: span 6 !important; }
  .rq-rev dl { grid-template-columns: minmax(0, 1fr); }
  .rq-rev dd { border-top: 0; padding-top: 0; }
  .rq-rev dl > :nth-child(2) { padding-top: 0; }
  .rq-row { grid-template-columns: minmax(0, 1fr); }
  .rq-flow { grid-template-columns: minmax(0, 1fr); }
  .rq-gridtab thead { display: none; }
  .rq-gridtab, .rq-gridtab tbody, .rq-gridtab tr, .rq-gridtab th, .rq-gridtab td { display: block; width: 100%; }
  .rq-gridtab tr { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 12px; border-top: 1px solid var(--rq-linea); }
  .rq-gridtab tr:first-child { border-top: 0; }
  .rq-gridtab tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 6px; }
  .rq-gridtab td { border: 0; padding: 0; text-align: left; }
  .rq-cell { justify-content: flex-start; }
  .rq-cell__lab { display: inline; }
  .rq-actions .rq-btn { flex: 1 1 auto; }
  .rq-actions__r { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rq *, .rq *::before, .rq *::after { transition: none !important; }
}

/* ---------- Stampa A4 del riepilogo */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body * { visibility: hidden; }
  .rq-printdoc, .rq-printdoc * { visibility: visible; }
  .rq-printdoc { display: block; position: absolute; left: 0; top: 0; width: 100%; color: #0B1033; font-family: var(--rq-font); font-size: 10pt; }
  .rq-printdoc__head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 8px; border-bottom: 2px solid #002AFF; margin-bottom: 12px; }
  .rq-printdoc__head img { height: 30px; }
  .rq-printdoc h1 { font-size: 16pt; font-weight: 800; margin: 0 0 2px; }
  .rq-printdoc .rq-rev-sec { break-inside: auto; border-color: #C9CEDD; }
  .rq-printdoc .rq-rev-sec__h { background: #EEF1FF !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rq-printdoc .rq-rev dt, .rq-printdoc .rq-rev dd { font-size: 9.5pt; padding: 5px 10px; break-inside: avoid; }
  .rq-printdoc .rq-rev-sec__h .rq-btn { display: none; }
}

/* ---------- Pagina autonoma (quando il modulo non è dentro il layout del sito) */
body.rq-body { margin: 0; background: #F2F2F2; }
.rq-pdflink { font-size: 14px; color: var(--rq-ink2); }
.rq-pdflink a { font-weight: 700; }
.rq-wrap--narrow { max-width: 892px; }
.rq-single { max-width: none; }
.rq a.rq-btn { text-decoration: none; }
.rq a.rq-btn--ghost { color: var(--rq-ink); }
.rq a.rq-btn--primary { color: #FFFFFF; }
.rq-step-head h2:focus { outline: none; }
@media (max-width: 560px) {
  .rq-top__tag { display: none; }
  .rq-top__logo { height: 32px; }
  .rq-hero { padding-block: 24px 20px; }
}

/* ---------- Integrazione nella pagina "Entra nella rete" del sito */
.rq--nel-sito { margin-top: 28px; padding: 28px clamp(16px, 3vw, 36px) 4px; border-radius: 16px; }
.rq--nel-sito .rq-single { padding-bottom: 24px; }
.rq--nel-sito h2 { font-size: 20px; line-height: 1.25; }
@media (max-width: 640px) { .rq--nel-sito { padding: 18px 12px 0; margin-inline: -4px; } }
