/* ===========================================================
   Osservatorio PMI 2026 — Questionario zeroCO2
   Theming: [data-theme=dark|light]  ×  [data-dir=a|b]
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Palette tokens ---------- */
.app {
  /* Brand constants */
  --orange: #F2791D;
  --green:  #00B985;
  --berry:  #BBCCFF;
  --accent: var(--orange);

  --fs: 1;                 /* font scale (tweakable) */
  --maxw: 1080px;          /* content column width */

  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- DARK (Woodland Fern) ---------- */
.app[data-theme="dark"] {
  --bg:        #0E261B;
  --sidebar:   #0E261B;
  --panel:     #143524;
  --card:      rgba(255,255,255,.045);
  --card-hover:rgba(255,255,255,.075);
  --card-on:   rgba(0,185,133,.14);
  --ink:       #FDF4ED;
  --ink-dim:   rgba(253,244,237,.62);
  --ink-mute:  rgba(253,244,237,.34);
  --line:      rgba(253,244,237,.13);
  --line-soft: rgba(253,244,237,.07);
  --field:     rgba(0,0,0,.18);
  --track:     rgba(253,244,237,.12);
}

/* ---------- LIGHT (Lotus White) ---------- */
.app[data-theme="light"] {
  --bg:        #FDF4ED;
  --sidebar:   #F6E8DC;
  --panel:     #FFFFFF;
  --card:      #FFFFFF;
  --card-hover:#FBF1E8;
  --card-on:   rgba(0,185,133,.12);
  --ink:       #16382700;
  --ink:       #163827;
  --ink-dim:   rgba(22,56,39,.62);
  --ink-mute:  rgba(22,56,39,.40);
  --line:      rgba(22,56,39,.14);
  --line-soft: rgba(22,56,39,.08);
  --field:     #FBF2E9;
  --track:     rgba(22,56,39,.12);
}

/* ---------- Direction A: Editoriale ---------- */
.app[data-dir="a"] {
  --radius: 5px;
  --radius-lg: 6px;
  --card-bd: 1px solid var(--line);
  --card-pad: 22px 24px;
  --shadow: none;
  --shadow-on: none;
  --title-size: clamp(34px, 4.2vw, 56px);
  --title-weight: 700;
  --title-tracking: -0.018em;
  --nav-style: bar;
  --sel-color: var(--orange);   /* selected accent */
  --progress-h: 3px;
  --progress-round: 0;
}
/* Direction A: light theme cards get a faint inset to read as panels */
.app[data-dir="a"][data-theme="light"] {
  --card: #FFFFFF;
  --shadow: 0 1px 0 rgba(22,56,39,.04);
}

/* ---------- Direction B: Morbida ---------- */
.app[data-dir="b"] {
  --radius: 16px;
  --radius-lg: 22px;
  --card-bd: 1px solid var(--line-soft);
  --card-pad: 26px 26px;
  --shadow: none;
  --shadow-on: none;
  --title-size: clamp(36px, 4.6vw, 62px);
  --title-weight: 600;
  --title-tracking: -0.022em;
  --nav-style: chip;
  --sel-color: var(--green);
  --progress-h: 7px;
  --progress-round: 99px;
}
.app[data-dir="b"][data-theme="light"] {
  --card: #FFFFFF;
  --shadow: 0 6px 22px -14px rgba(22,56,39,.28);
  --shadow-on: 0 10px 30px -16px rgba(0,185,133,.5);
  --sidebar: #FBEFE4;
}
.app[data-dir="b"][data-theme="dark"] {
  --card: rgba(255,255,255,.05);
  --card-hover: rgba(255,255,255,.085);
}

/* ===========================================================
   LAYOUT
   =========================================================== */
.app {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ----- Header ----- */
.hdr {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 30px;
  height: 76px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--sidebar);
  z-index: 5;
}
.hdr-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.brand { display: flex; align-items: center; flex-shrink: 0; color: var(--ink); }
.brand svg { height: 34px; width: auto; display: block; }
.brand svg .cls-1 { fill: currentColor; }
.brand svg .cls-2 { fill: var(--green); }
.brand-div { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }
.brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(12px * var(--fs));
  letter-spacing: .18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

/* header progress */
.hdr-prog { display: flex; align-items: center; gap: 16px; }
.prog-track {
  flex: 1; height: var(--progress-h);
  background: var(--track);
  border-radius: var(--progress-round);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: var(--progress-round);
  background: linear-gradient(90deg, var(--green) 0%, #5fcf6e 45%, var(--orange) 100%);
  transition: width .5s cubic-bezier(.4,0,.1,1);
}
.prog-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(14px * var(--fs));
  color: var(--ink-dim);
  letter-spacing: .04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hdr-right { display: flex; align-items: center; gap: 22px; }
.saved {
  display: flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(11px * var(--fs));
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.saved-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,185,133,.5);
}
.saved.is-saving .saved-dot { animation: pulse 1.1s ease infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,185,133,.45)} 100%{box-shadow:0 0 0 7px rgba(0,185,133,0)} }
.btn-reset {
  background: none; border: none; color: var(--ink-mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(11px * var(--fs));
  letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 4px; transition: color .2s;
}
.btn-reset:hover { color: var(--accent); }

/* ----- Body ----- */
.body {
  display: grid;
  grid-template-columns: 332px 1fr;
  min-height: 0;
}
.side-scrim { display: none; }

/* ----- Sidebar ----- */
.side {
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  padding: 40px 28px;
  overflow-y: auto;
}
.side-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(11px * var(--fs));
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 24px 4px;
}
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  position: relative;
  display: block; width: 100%; text-align: left;
  background: none; border: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  color: var(--ink-dim);
  transition: background .2s, color .2s, opacity .25s;
}
.nav-item:hover:not(.is-locked) { background: var(--card); }
.nav-item.is-locked { opacity: .42; cursor: default; }
.nav-item.is-active { background: var(--card-hover); }
.nav-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(12px * var(--fs));
  letter-spacing: .1em;
  margin-right: 12px;
}
.nav-item.is-active .nav-num { color: var(--accent); }
.nav-item.is-done .nav-num { color: var(--green); }
.nav-top { display: flex; align-items: center; }
.nav-title {
  font-size: calc(17px * var(--fs));
  font-weight: 600;
  letter-spacing: -.01em;
  flex: 1;
}
.nav-item.is-active .nav-title, .nav-item.is-done .nav-title { color: var(--ink); }
.nav-sub {
  font-size: calc(13px * var(--fs));
  color: var(--ink-mute);
  margin: 3px 0 0 calc(12px + 1.4ch);
}
.nav-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #06281d;
  display: grid; place-items: center; flex-shrink: 0;
}
.nav-check svg { width: 13px; height: 13px; }
/* per-section progress underline (dir A) */
.nav-underline {
  position: absolute; left: 18px; right: 18px; bottom: 9px;
  height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.nav-underline i {
  display: block; height: 100%; background: var(--accent);
  transition: width .5s cubic-bezier(.4,0,.1,1);
}
.app[data-dir="b"] .nav-item { padding: 15px 18px; }
.app[data-dir="b"] .nav-item.is-active { background: var(--card-on); }
.app[data-dir="b"] .nav-underline { display: none; }
.app[data-dir="b"] .nav-item.is-active .nav-num { color: var(--green); }

/* ----- Content ----- */
.main {
  background: var(--panel);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.main-scroll {
  flex: 1;
  padding: 64px 64px 40px;
  display: flex; justify-content: center;
}
.qwrap { width: 100%; max-width: var(--maxw); }

.q-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(14px * var(--fs));
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.q-eyebrow .dot { color: var(--ink-mute); }
.q-counter {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(14px * var(--fs));
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-bottom: 30px;
}
.q-title {
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: 1.04;
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 17ch;
}
.q-hint {
  font-size: calc(19px * var(--fs));
  color: var(--ink-dim);
  line-height: 1.45;
  margin: 0 0 14px;
  max-width: 54ch;
}
.q-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(14px * var(--fs));
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin: 0 0 30px;
}
.q-meta b { color: var(--green); font-weight: 500; }
.q-meta.is-full b { color: var(--accent); }

/* ----- Option grid (multi / single) ----- */
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}
.opt {
  display: flex; align-items: flex-start; gap: 15px;
  text-align: left;
  background: var(--card);
  border: var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  color: var(--ink);
  transition: background .18s, border-color .18s, box-shadow .25s, transform .12s;
}
.opt:hover { background: var(--card-hover); }
.opt:active { transform: translateY(1px); }
.opt.is-on {
  background: var(--card-on);
  border-color: var(--sel-color);
  box-shadow: var(--shadow-on);
}
.opt.is-disabled { opacity: .42; cursor: not-allowed; }
.opt-box {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--ink-mute);
  display: grid; place-items: center;
  transition: background .18s, border-color .18s;
}
.opt[data-shape="check"] .opt-box { border-radius: 6px; }
.opt[data-shape="radio"] .opt-box { border-radius: 50%; }
.opt.is-on .opt-box { background: var(--sel-color); border-color: var(--sel-color); }
.opt-box svg { width: 14px; height: 14px; color: #06281d; opacity: 0; transform: scale(.5); transition: .18s; }
.opt.is-on .opt-box svg { opacity: 1; transform: scale(1); }
.opt[data-shape="radio"] .opt-dot { width: 9px; height: 9px; border-radius: 50%; background: #06281d; opacity: 0; transform: scale(.4); transition: .18s; }
.opt.is-on[data-shape="radio"] .opt-dot { opacity: 1; transform: scale(1); }
.app[data-theme="light"] .opt.is-on .opt-box svg,
.app[data-theme="light"] .opt[data-shape="radio"] .opt-dot { color: #fff; background: #fff; }
.opt-label {
  font-size: calc(18px * var(--fs));
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* ----- Scale (1–5) ----- */
.scale { max-width: 640px; }
.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.scale-btn {
  aspect-ratio: 1 / 1;
  background: var(--card);
  border: var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink-dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(30px * var(--fs));
  font-weight: 500;
  display: grid; place-items: center;
  transition: background .18s, border-color .18s, color .18s, transform .12s, box-shadow .25s;
}
.scale-btn:hover { background: var(--card-hover); color: var(--ink); }
.scale-btn:active { transform: translateY(1px); }
.scale-btn.is-on {
  background: var(--sel-color); border-color: var(--sel-color);
  color: var(--theme-on-ink, #06281d);
  box-shadow: var(--shadow-on);
}
.app[data-theme="light"] .scale-btn.is-on { color: #fff; }
.scale-ends {
  display: flex; justify-content: space-between;
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(13px * var(--fs));
  letter-spacing: .04em;
  color: var(--ink-mute);
}

/* ----- Text / Number field ----- */
.field-wrap { max-width: 640px; }
.field {
  width: 100%;
  background: var(--field);
  border: var(--card-bd);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: calc(24px * var(--fs));
  font-weight: 500;
  padding: 22px 24px;
  transition: border-color .18s, background .18s;
}
.field::placeholder { color: var(--ink-mute); }
.field:focus { outline: none; border-color: var(--sel-color); }
.field-num { display: flex; align-items: stretch; gap: 12px; }
.field-num .field { flex: 1; font-family: "IBM Plex Mono", monospace; }
.field-unit {
  display: grid; place-items: center;
  padding: 0 26px;
  background: var(--card);
  border: var(--card-bd);
  border-radius: var(--radius);
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(18px * var(--fs));
  color: var(--ink-dim);
  white-space: nowrap;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 64px 26px;
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}
.foot-l { justify-self: start; }
.foot-c { justify-self: center; }
.foot-r { justify-self: end; display: flex; align-items: center; gap: 18px; }
.foot-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(13px * var(--fs));
  color: var(--ink-mute);
  letter-spacing: .03em;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--radius);
  font-size: calc(16px * var(--fs));
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 13px 22px;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s, transform .12s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-primary { background: var(--ink); color: var(--panel); }
.app[data-dir="b"] .btn-primary { background: var(--green); color: #06281d; }
.app[data-dir="b"][data-theme="dark"] .btn-primary { color: #06281d; }
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .32; cursor: not-allowed; }
.btn-primary:disabled:hover { opacity: .32; }
.kbd {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(12px * var(--fs));
  color: var(--ink-mute);
  letter-spacing: .05em;
}
.kbd kbd {
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: calc(11px * var(--fs));
  color: var(--ink-dim);
}

/* ===========================================================
   INTRO + DONE screens
   =========================================================== */
.cover { max-width: 760px; }
.cover-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(14px * var(--fs));
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.cover h1 {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: var(--title-weight);
  letter-spacing: -.025em; line-height: .98;
  margin: 0 0 24px; text-wrap: balance;
}
.cover h1 em { font-style: normal; color: var(--green); }
.cover p {
  font-size: calc(21px * var(--fs));
  color: var(--ink-dim); line-height: 1.5;
  margin: 0 0 14px; max-width: 56ch;
}
.cover-facts {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px;
}
.fact {
  display: flex; align-items: center; gap: 12px;
  border: var(--card-bd); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  padding: 16px 20px;
}
.fact-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: calc(26px * var(--fs)); font-weight: 600;
  color: var(--green);
}
.fact-t { font-size: calc(14px * var(--fs)); color: var(--ink-dim); line-height: 1.25; max-width: 18ch; }
.cover-cta { display: flex; align-items: center; gap: 18px; }
.btn-lg { padding: 17px 30px; font-size: calc(18px * var(--fs)); }

.done-wrap { text-align: center; max-width: 620px; margin: auto; }
.done-badge {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--green); color: #06281d;
  display: grid; place-items: center; margin: 0 auto 30px;
}
.done-badge svg { width: 44px; height: 44px; }
.done-wrap h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: var(--title-weight);
  letter-spacing: -.025em; line-height: 1.02;
  margin: 0 0 18px;
}
.done-wrap p { font-size: calc(20px * var(--fs)); color: var(--ink-dim); line-height: 1.5; margin: 0 auto 30px; max-width: 46ch; }
.done-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 0 0 34px; text-align: left;
}
.sum {
  border: var(--card-bd); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  padding: 18px;
}
.sum-n { font-family: "IBM Plex Mono", monospace; font-size: calc(13px * var(--fs)); color: var(--accent); letter-spacing: .08em; }
.sum-t { font-size: calc(15px * var(--fs)); font-weight: 600; margin-top: 4px; }
.sum-s { font-size: calc(13px * var(--fs)); color: var(--ink-mute); margin-top: 2px; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .anim { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .anim-1 { animation-delay: .04s; }
  .anim-2 { animation-delay: .10s; }
  .anim-3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ===========================================================
   MOBILE  /  TABLET
   =========================================================== */
.menu-btn, .mobile-prog { display: none; }

@media (max-width: 980px) {
  .body { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 76px 0 0 0; z-index: 20;
    padding: 28px 22px;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4,0,.1,1);
    border-right: none;
  }
  .app.menu-open .side { transform: none; box-shadow: 30px 0 60px -20px rgba(0,0,0,.4); }
  .side-scrim {
    display: none; position: fixed; inset: 76px 0 0 0; z-index: 15;
    background: rgba(0,0,0,.45);
  }
  .app.menu-open .side-scrim { display: block; }

  .hdr { grid-template-columns: auto 1fr auto; gap: 14px; padding: 0 16px; height: 64px; }
  .brand svg { height: 28px; }
  .brand-div, .brand-tag { display: none; }
  .hdr-prog { display: none; }
  .saved span { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); color: var(--ink);
  }
  .menu-btn svg { width: 20px; height: 20px; }

  /* compact progress strip under header */
  .mobile-prog { display: block; background: var(--sidebar); padding: 0 16px 12px; border-bottom: 1px solid var(--line-soft); }
  .mobile-prog .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .mobile-prog .lbl { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .mobile-prog .cnt { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-dim); }

  .main-scroll { padding: 32px 20px 28px; }
  .q-title { max-width: none; }
  .opts { grid-template-columns: 1fr; }
  .foot { padding: 14px 20px 18px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .foot-c { display: none; }
  .foot-l { grid-column: 1; }
  .foot-r { grid-column: 2; }
  .foot-note { display: none; }
  .kbd { display: none; }
  .btn { padding: 14px 18px; }
  .done-summary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .scale-row { gap: 8px; }
  .scale-btn { font-size: calc(22px * var(--fs)); }
  .cover-facts { gap: 10px; }
  .fact { flex: 1 1 100%; }
}

/* ============================================================
   OVERRIDE PRODUZIONE — Poppins, logo grande, q-title leggibile,
   accento Berry Blush dove serve un secondo colore.
   ============================================================ */
body { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.app { --berry: #BBCCFF; --lotus: #FDF4ED; }

/* Logo del questionario: visibile e leggibile */
.brand { gap: 12px; }
.brand svg { height: 46px !important; }
.brand-div { display: none; }
.brand-tag { display: none; }

/* Titolo della domanda: Lotus White piena, leggibile */
.app[data-theme="dark"] .q-title { color: var(--lotus) !important; }
.app[data-theme="dark"] .q-hint  { color: rgba(253,244,237,.78) !important; }

/* Accento secondario Berry Blush: usato sui pallini "salvato" e mobile bar */
.saved .saved-dot { background: var(--berry); }

/* Microinterazione: feedback più chiaro quando l'opzione viene selezionata e parte l'avanzamento */
.opt.is-on { transition: transform .12s ease, background .12s ease, border-color .12s ease; }

/* Header logo + tagline su mobile: nessuna divisoria */
@media (max-width: 720px) {
  .brand svg { height: 38px !important; }
}

/* ============================================================
   OVERRIDE PRODUZIONE — fit 13" senza scroll, q-title più piccolo,
   sidebar compatta, logo header piccolo
   ============================================================ */

/* Logo header più piccolo (come in home) */
.brand svg, .brand img { height: 60px !important; }
@media (max-width: 720px) { .brand svg, .brand img { height: 48px !important; } }

/* Sidebar: rimuovi sottotitoli e compatta */
.nav-sub { display: none !important; }
.nav-item { padding: 14px 18px !important; margin-bottom: 4px !important; }
.app[data-dir="b"] .nav-item { padding: 14px 18px !important; margin-bottom: 4px !important; }
.nav-title { font-size: calc(16.5px * var(--fs)) !important; }
.nav-num { font-size: calc(11.5px * var(--fs)) !important; margin-right: 10px !important; }

/* Titolo della domanda più piccolo (qualche punto in meno) */
.app[data-dir="a"] { --title-size: clamp(28px, 3.2vw, 40px) !important; }
.app[data-dir="b"] { --title-size: clamp(28px, 3.4vw, 44px) !important; }
.q-title { max-width: 26ch !important; margin-bottom: 14px !important; }

/* Più spazio fra domanda e risposte */
.q-meta { margin: 0 0 36px !important; }
.q-hint { margin-bottom: 28px !important; }

/* Tessere risposta leggermente più piccole */
.opt { padding: 16px 18px !important; gap: 12px !important; }
.opt-text { font-size: calc(15px * var(--fs)) !important; line-height: 1.35 !important; }
.opt-box { width: 22px !important; height: 22px !important; }

/* Riduci leggermente verticalmente i blocchi principali */
.q-eyebrow { margin-bottom: 18px !important; }
.q-hint { font-size: calc(16px * var(--fs)) !important; }

/* Footer / azioni: lascia respiro ma più compatto */
.foot { padding-top: 14px !important; padding-bottom: 14px !important; }
