/* Setup geometria sospensioni — RCup (layout compatto desk + mobile) */
.sg-page{padding:10px 0 40px;position:relative}
.sg-page.wrap{max-width:1240px}

.sg-hero{
  position:relative;margin:0 0 10px;padding:10px 12px 9px;
  border-radius:12px;overflow:hidden;
  border:1px solid rgba(99,164,238,.22);
  background:
    radial-gradient(900px 280px at 10% -20%, rgba(79,143,212,.18), transparent 55%),
    linear-gradient(165deg, #0e1624 0%, #0a1018 100%);
}
.sg-kicker{
  position:relative;margin:0 0 2px;font:700 .62rem/1 Barlow,system-ui,sans-serif;
  letter-spacing:.12em;text-transform:uppercase;color:#7BB3F0;
}
.sg-hero h1{
  position:relative;margin:0 0 3px;font:800 clamp(1.15rem,2.4vw,1.55rem)/1.15 Barlow,system-ui,sans-serif;
  color:#F4F7FB;letter-spacing:-.02em;
}
.sg-hero .blog-lead{
  position:relative;margin:0;max-width:72ch;color:#A9B3C2;font-size:.82rem;line-height:1.35;
}

/* Desk: disegni | regolazioni; mobile: stack */
.sg-layout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.95fr);
  gap:10px;
  align-items:start;
}
@media (max-width:980px){
  .sg-layout{grid-template-columns:1fr;gap:10px}
}

.sg-visuals{
  border-radius:14px;border:1px solid #243044;
  background:linear-gradient(180deg,#101826,#0b121c);
  padding:8px;
  box-shadow:0 10px 28px rgba(0,0,0,.2);
  min-width:0;
}

.sg-axle-bar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:6px;margin:0 0 6px;
}
.sg-axle-badge{
  font:800 .64rem/1 Barlow,system-ui,sans-serif;letter-spacing:.1em;
  color:#FBBF24;border:1px solid rgba(251,191,36,.35);
  background:#121821;padding:5px 8px;border-radius:999px;
}
.sg-axle-switch{display:inline-flex;gap:3px;padding:2px;border-radius:9px;background:#0B1220;border:1px solid #2A3547}
.sg-axle-btn{
  appearance:none;border:0;cursor:pointer;border-radius:7px;
  padding:6px 10px;font:750 .74rem/1 Barlow,system-ui,sans-serif;
  color:#A9B3C2;background:transparent;
}
.sg-axle-btn.on{background:#1a2740;color:#F4F7FB;box-shadow:inset 0 0 0 1px #3A5478}

/* Frontale + viste laterali: niente stretch → niente buco tra toe e caster */
.sg-viz-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(168px,.72fr);
  gap:8px;align-items:start;
}
@media (max-width:980px){
  /* Su tablet/mobile a colonna unica: frontale full, sotto toe|caster affiancati */
  .sg-viz-grid{grid-template-columns:1fr}
}
.sg-side-views{
  display:grid;gap:8px;min-width:0;
  grid-template-columns:1fr;
}
@media (max-width:980px){
  .sg-side-views{grid-template-columns:1fr 1fr}
}
@media (max-width:420px){
  .sg-side-views{grid-template-columns:1fr}
}

.sg-stage{
  border-radius:10px;border:1px solid #243044;background:#0a1018;padding:4px;overflow:hidden;
  min-width:0;
}
.sg-stage > svg{display:block;width:100%;height:auto}

.sg-legend{
  display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 0;
}
.sg-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 7px;border-radius:999px;font:650 .64rem/1 Barlow,system-ui,sans-serif;
  border:1px solid #2A3547;background:#121821;color:#D7DEE8;
}
.sg-dot{width:7px;height:7px;border-radius:50%;flex:none}
.sg-dot--up{background:#F472B6}
.sg-dot--lo{background:#38BDF8}
.sg-dot--ic{background:#34D399}
.sg-dot--rc{background:#FBBF24}

.sg-toe-box{
  border-radius:10px;border:1px solid #243044;background:#0a1018;padding:6px;
  display:flex;flex-direction:column;min-height:0;min-width:0;
}
.sg-toe-title{
  margin:0 0 3px;font:650 .62rem/1.15 Barlow,system-ui,sans-serif;
  letter-spacing:.05em;text-transform:uppercase;color:#A9B3C2;
}
.sg-toe-box svg{display:block;width:100%;height:auto}

/* Metriche dense, senza riga spezzata incongruente */
.sg-read{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(104px,1fr));
  gap:5px;margin:8px 0 0;
}
.sg-metric{
  border-radius:8px;border:1px solid #2A3547;background:#121821;padding:5px 6px;min-width:0;
}
.sg-metric span{
  display:block;font:650 .54rem/1 Barlow,system-ui,sans-serif;
  letter-spacing:.05em;text-transform:uppercase;color:#8490A0;margin-bottom:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sg-metric strong{
  font:800 .86rem/1.1 Barlow,system-ui,sans-serif;color:#F4F7FB;font-variant-numeric:tabular-nums;
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.sg-tips{margin-top:6px}
.sg-tips-label{
  margin:0 0 4px;font:650 .62rem/1 Barlow,system-ui,sans-serif;
  letter-spacing:.07em;text-transform:uppercase;color:#8490A0;
}
.sg-note{margin:0;display:grid;gap:4px}
.sg-tip-line{
  display:block;padding:6px 8px;border-radius:8px;
  background:#0B1220;border:1px solid #2A3547;
  color:#D7DEE8;font-size:.76rem;line-height:1.35;font-weight:550;
}

/* Pannello regolazioni */
.sg-panel{
  border-radius:14px;border:1px solid #243044;background:#0f1622;
  padding:10px;min-width:0;
  position:sticky;top:8px;
}
@media (max-width:980px){
  .sg-panel{position:static}
}
.sg-panel-head{margin:0 0 8px}
.sg-panel h2{
  margin:0 0 2px;font:750 .95rem/1.2 Barlow,system-ui,sans-serif;color:#F1F4F8;
}
.sg-panel .muted{margin:0;color:#8490A0;font-size:.74rem;line-height:1.35}

/* Nel pannello laterale: sezioni una sotto l’altra (riempie senza buco) */
.sg-ctrl-sections{
  display:grid;grid-template-columns:1fr;gap:8px;
}
@media (max-width:980px){
  .sg-ctrl-sections{grid-template-columns:1fr 1fr;gap:8px}
}
@media (max-width:640px){
  .sg-ctrl-sections{grid-template-columns:1fr}
}
.sg-block{
  border:1px solid #2A3547;border-radius:10px;background:#121821;padding:8px;
}
.sg-subh{
  margin:0 0 6px;font:750 .66rem/1.15 Barlow,system-ui,sans-serif;
  letter-spacing:.07em;text-transform:uppercase;color:#9EC4EE;
}

.sg-controls{display:grid;gap:6px}
.sg-controls--2{grid-template-columns:1fr 1fr;gap:6px 8px}
@media (max-width:420px){
  .sg-controls--2{grid-template-columns:1fr}
}
.sg-ctrl--span2{grid-column:1 / -1}
.sg-ctrl{display:grid;gap:1px;min-width:0}
.sg-ctrl-head{
  display:flex;justify-content:space-between;align-items:baseline;gap:6px;
  font:650 .7rem/1.2 Barlow,system-ui,sans-serif;color:#E8EEF7;
}
.sg-ctrl-ref{
  display:block;margin:-1px 0 0;
  font:600 .58rem/1.2 Barlow,system-ui,sans-serif;
  letter-spacing:.02em;color:#7A8799;
}
.sg-ctrl-head em{
  font-style:normal;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.68rem;color:#7BB3F0;flex:none;
}
/* Hit-area touch ampia; su pointer fine più compatta */
.sg-ctrl input[type=range]{
  width:100%;height:40px;margin:0;padding:0;
  appearance:none;-webkit-appearance:none;
  background:transparent;outline:none;cursor:pointer;
  touch-action:none;-webkit-tap-highlight-color:transparent;
}
@media (pointer:fine){
  .sg-ctrl input[type=range]{height:28px}
}
.sg-ctrl input[type=range]::-webkit-slider-runnable-track{
  height:6px;border-radius:999px;background:#1c2636;
}
.sg-ctrl input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:26px;height:26px;margin-top:-10px;border-radius:50%;
  background:#fff;border:2px solid currentColor;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.4);
}
@media (pointer:fine){
  .sg-ctrl input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-6px}
}
.sg-ctrl input[type=range]::-moz-range-track{
  height:6px;border-radius:999px;background:#1c2636;border:none;
}
.sg-ctrl input[type=range]::-moz-range-thumb{
  width:26px;height:26px;border-radius:50%;
  background:#fff;border:2px solid currentColor;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.4);
}
@media (pointer:fine){
  .sg-ctrl input[type=range]::-moz-range-thumb{width:18px;height:18px}
}
.sg-ends{
  display:flex;justify-content:space-between;font-size:.6rem;font-weight:650;color:#6B7788;
  margin-top:-2px;
}
.sg-ctrl--up{color:#F472B6}
.sg-ctrl--up input[type=range]{accent-color:#F472B6}
.sg-ctrl--lo{color:#38BDF8}
.sg-ctrl--lo input[type=range]{accent-color:#38BDF8}
.sg-ctrl--rh{color:#FBBF24}
.sg-ctrl--rh input[type=range]{accent-color:#FBBF24}
.sg-ctrl--rh .sg-ctrl-head em{color:#FBBF24}
.sg-ctrl--cam{color:#34D399}
.sg-ctrl--cam input[type=range]{accent-color:#34D399}
.sg-ctrl--cam .sg-ctrl-head em{color:#34D399}
.sg-ctrl--toe{color:#A78BFA}
.sg-ctrl--toe input[type=range]{accent-color:#A78BFA}
.sg-ctrl--toe .sg-ctrl-head em{color:#A78BFA}
.sg-ctrl--down{color:#FB923C}
.sg-ctrl--down input[type=range]{accent-color:#FB923C}
.sg-ctrl--down .sg-ctrl-head em{color:#FB923C}
.sg-ctrl--caster{color:#67E8F9}
.sg-ctrl--caster input[type=range]{accent-color:#67E8F9}
.sg-ctrl--caster .sg-ctrl-head em{color:#67E8F9}
.sg-ctrl--track{color:#F9A8D4}
.sg-ctrl--track input[type=range]{accent-color:#F9A8D4}
.sg-ctrl--track .sg-ctrl-head em{color:#F9A8D4}
.sg-ctrl--tire{color:#FDE68A}
.sg-ctrl--tire input[type=range]{accent-color:#FDE68A}
.sg-ctrl--tire .sg-ctrl-head em{color:#FDE68A}

.sg-toggles{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px;
}
@media (max-width:420px){.sg-toggles{grid-template-columns:1fr}}
.sg-tog{
  border:1px solid #2A3547;border-radius:8px;background:#0B1220;padding:6px 7px;
}
.sg-tog > span{
  display:block;font:650 .66rem/1.15 Barlow,system-ui,sans-serif;color:#D7DEE8;margin-bottom:4px;
}
.sg-switch-row{
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  font-size:.66rem;font-weight:650;color:#8490A0;
}
.sg-switch{
  position:relative;display:inline-block;width:40px;height:22px;flex:0 0 40px;margin:0;
}
.sg-switch input{opacity:0;width:0;height:0;margin:0}
.sg-slider{
  position:absolute;inset:0;cursor:pointer;background:#2A3547;border-radius:26px;transition:.2s;
}
.sg-slider:before{
  content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;
  background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.35);
}
.sg-switch input:checked + .sg-slider:before{transform:translateX(18px)}
.sg-switch--up input:checked + .sg-slider{background:#DB2777}
.sg-switch--lo input:checked + .sg-slider{background:#0284C7}

.sg-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sg-actions .btn-ghost{text-decoration:none;display:inline-flex;align-items:center}

.sg-guide{
  margin-top:10px;border-radius:12px;border:1px solid #243044;
  background:linear-gradient(180deg,#101826,#0c131d);padding:12px 12px 6px;
}
.sg-guide h2{margin:0 0 4px;font:750 .95rem/1.2 Barlow,system-ui,sans-serif;color:#F1F4F8}
.sg-guide > p{margin:0 0 8px;color:#A9B3C2;font-size:.8rem;line-height:1.4}
.sg-guide-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px;margin:0 0 6px;
}
.sg-card{
  border:1px solid #2A3547;border-radius:8px;background:#121821;padding:8px 9px;
}
.sg-card h3{
  margin:0 0 3px;font:750 .76rem/1.2 Barlow,system-ui,sans-serif;color:#E8EEF7;
}
.sg-card p{margin:0;color:#8490A0;font-size:.72rem;line-height:1.35}
.sg-disclaimer{
  margin:4px 0 8px;font-size:.68rem;line-height:1.35;color:#6B7788;
}

/* Riduci aria vuota tipica delle pagine setup (tabs / back) solo qui */
.setup-body .setup-page.sg-page .setup-back{margin:0 0 6px}
.setup-body .setup-page.sg-page .setup-tabs{margin:0 0 8px}
