/* =====================================================================
   FASE 5 — Immersive restyle
   Loaded last; everything is gated under .asg-shell-immersive so the whole
   restyle is reversible by removing one class. Accent / focus / surface
   colours derive from the per-tenant OKLCH brand tokens (with hex fallbacks)
   so the look is white-label. Motion is physical and respects reduced-motion.
   ===================================================================== */

#asg-configuratore-wrapper.asg-shell-immersive {
  /* --- brand-driven token layer (OKLCH scales -> convenient aliases) --- */
  --f5-accent:          var(--asg-primary-500-hex, var(--asg-primary, #00d4aa));
  --f5-accent-soft:     var(--asg-primary-300-hex, #87eccd);
  --f5-accent-strong:   var(--asg-primary-700-hex, #008a6e);
  --f5-accent-contrast: var(--asg-on-primary, #04121a);
  --f5-accent-2:        var(--asg-accent-500-hex, var(--asg-accent, #d4af37));
  --f5-focus:           var(--asg-focus-ring-hex, #38e0bd);
  --f5-danger:          var(--asg-danger-500-hex, #ef4444);

  /* neutral dark chrome for the stage + glass rail (suits any brand on a 3D stage) */
  --f5-stage-1: #0b1426;
  --f5-stage-2: #060d1a;
  --f5-stage-3: #03070f;
  --f5-glass:   rgba(12, 18, 32, 0.62);
  --f5-glass-2: rgba(10, 15, 28, 0.86);
  --f5-line:    rgba(255, 255, 255, 0.08);
  --f5-line-2:  rgba(255, 255, 255, 0.14);
  --f5-text:    #f2f6fc;
  --f5-muted:   #9bb0cf;

  /* motion */
  --f5-spring:  cubic-bezier(.22, 1, .36, 1);
  --f5-ease:    cubic-bezier(.2, 0, 0, 1);
  --f5-fast:    140ms;
  --f5-base:    220ms;
  --f5-slow:    380ms;

  --f5-radius:    16px;
  --f5-radius-lg: 22px;
}

/* ---------------------------------------------------------------------
   1. Stage — make the viewer the hero
   --------------------------------------------------------------------- */
.asg-shell-immersive .asg-grid { gap: 26px; }

.asg-shell-immersive .asg-viewer-col {
  min-height: min(880px, 84vh);
  background:
    radial-gradient(120% 90% at 50% 12%, var(--f5-stage-1) 0%, var(--f5-stage-2) 56%, var(--f5-stage-3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 -120px 160px -80px rgba(0, 0, 0, .8),
    0 40px 90px rgba(0, 0, 0, .55);
}
/* cinematic vignette over the canvas, never intercepting pointer */
.asg-shell-immersive .asg-viewer-col::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 5;
  background: radial-gradient(130% 100% at 50% 38%, transparent 58%, rgba(0, 0, 0, .34) 100%);
}

/* slim the control rail into a refined floating panel */
.asg-shell-immersive .asg-controls-col {
  flex: 0 0 clamp(420px, 34vw, 540px);
  background: var(--f5-glass-2);
  border-radius: var(--f5-radius-lg);
  box-shadow:
    inset 0 0 0 1px var(--f5-line),
    0 28px 70px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------------
   2. Scenic entry — branded loader + canvas fade-in
   --------------------------------------------------------------------- */
.asg-shell-immersive .asg-viewer-boot {
  position: absolute; inset: 0; z-index: 11;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--f5-slow) var(--f5-ease), visibility 0s linear var(--f5-slow);
  background: radial-gradient(80% 60% at 50% 45%, rgba(8, 16, 30, .7), rgba(3, 7, 15, .92));
  pointer-events: none;
}
.asg-shell-immersive .asg-viewer-col.asg-viewer-booting .asg-viewer-boot {
  opacity: 1; visibility: visible;
  transition: opacity var(--f5-base) var(--f5-ease);
}
.asg-shell-immersive .asg-viewer-col.asg-viewer-booting #asg-3d-canvas { opacity: 0; }
.asg-shell-immersive .asg-viewer-col.asg-viewer-booted #asg-3d-canvas {
  opacity: 1;
  animation: f5-canvas-in var(--f5-slow) var(--f5-ease) both;
}
@keyframes f5-canvas-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

.asg-viewer-boot-inner { display: grid; justify-items: center; gap: 14px; }
.asg-viewer-boot-ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  border-top-color: var(--f5-accent);
  animation: f5-spin .9s linear infinite;
}
.asg-viewer-boot-mark {
  position: absolute; width: 54px; height: 54px;
  display: grid; place-items: center; color: var(--f5-accent); font-size: 20px;
}
.asg-viewer-boot-figure { position: relative; display: grid; place-items: center; }
.asg-viewer-boot-text {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--f5-muted); font-weight: 700;
}
@keyframes f5-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   3. Scene presets (environment + time of day) over the stage
   --------------------------------------------------------------------- */
.asg-viewer-scene-presets {
  pointer-events: auto;
  align-self: flex-start;
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 100%;
}
.asg-scene-preset-group {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 50px;
  background: var(--f5-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--f5-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.asg-scene-preset-label {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; color: var(--f5-muted); font-size: 13px;
}
.asg-scene-pill {
  appearance: none; border: 0; cursor: pointer;
  padding: 7px 13px; border-radius: 40px;
  background: transparent; color: #c8d5e3;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  transition: background var(--f5-fast) var(--f5-ease), color var(--f5-fast) var(--f5-ease), transform var(--f5-fast) var(--f5-spring);
}
.asg-scene-pill:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.asg-scene-pill:active { transform: scale(.96); }
.asg-scene-pill.is-active {
  background: linear-gradient(135deg, var(--f5-accent), var(--f5-accent-strong));
  color: var(--f5-accent-contrast);
  box-shadow: 0 4px 16px -2px var(--f5-accent);
}

/* inspect / fullscreen button sits with the existing viewer controls */
.asg-shell-immersive #btn-viewer-inspect i { margin-right: 6px; }

/* ---------------------------------------------------------------------
   4. Inspect (fullscreen) mode
   --------------------------------------------------------------------- */
.asg-shell-immersive .asg-viewer-stack.asg-viewer-inspect {
  position: fixed; inset: 0; z-index: 99999;
  margin: 0; padding: clamp(10px, 2vw, 22px);
  background: rgba(2, 5, 11, .96);
  gap: 0;
}
.asg-shell-immersive .asg-viewer-stack.asg-viewer-inspect .asg-viewer-col {
  min-height: 0; height: 100%; border-radius: 18px;
}
.asg-shell-immersive .asg-viewer-stack.asg-viewer-inspect .asg-viewer-bottom-dock { display: none; }
.asg-shell-immersive[data-asg-inspect="1"] { overflow: hidden; }

/* ---------------------------------------------------------------------
   5. Measure sliders (snapping, live cm readout)
   --------------------------------------------------------------------- */
.asg-measure-slider {
  --f5-range-pct: 50%;
  display: grid; gap: 10px;
  padding: 16px 18px 14px;
  border-radius: var(--f5-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  border: 1px solid var(--f5-line);
}
.asg-measure-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.asg-measure-axis { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--f5-muted); text-transform: uppercase; }
.asg-measure-readout {
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.asg-measure-readout b { color: var(--f5-accent); font-weight: 800; }
.asg-measure-readout small { font-size: 13px; color: var(--f5-muted); font-weight: 600; margin-left: 3px; }
/* renderStepperValueMarkup() emits these spans inside the readout */
.asg-measure-readout .stepper-value-number { color: #fff; font-weight: 800; }
.asg-measure-readout .stepper-value-unit { font-size: 13px; color: var(--f5-muted); font-weight: 600; margin-left: 4px; }

.asg-measure-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer;
}
.asg-measure-range:focus { outline: none; }
/* track */
.asg-measure-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background:
    linear-gradient(90deg, var(--f5-accent) 0 var(--f5-range-pct), rgba(255, 255, 255, .12) var(--f5-range-pct) 100%);
}
.asg-measure-range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.asg-measure-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--f5-accent); }
/* thumb */
.asg-measure-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 5px solid var(--f5-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 6px transparent;
  transition: box-shadow var(--f5-fast) var(--f5-ease), transform var(--f5-fast) var(--f5-spring);
}
.asg-measure-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 5px solid var(--f5-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.asg-measure-range:hover::-webkit-slider-thumb { transform: scale(1.06); }
.asg-measure-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.asg-measure-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 6px var(--f5-focus); }
.asg-measure-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px var(--f5-focus); }

.asg-measure-ticks {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--f5-muted); font-variant-numeric: tabular-nums;
}
.asg-measure-slider.is-at-min .asg-measure-ticks span:first-child,
.asg-measure-slider.is-at-max .asg-measure-ticks span:last-child { color: var(--f5-accent); font-weight: 700; }
/* boundary feedback element is created by syncStepperBoundaryState() in the parent */
.asg-shell-immersive .asg-stepper-boundary-feedback {
  margin-top: 8px; font-size: 12px; line-height: 1.35; color: var(--f5-accent-soft);
}
.asg-shell-immersive .asg-stepper-boundary-feedback[hidden] { display: none; }

/* mobile measure slider (inside the bottom-sheet choice grids) */
.asg-shell-immersive .asg-mobile-choice-grid .asg-measure-slider-mobile {
  grid-column: 1 / -1; width: 100%; margin: 0; padding: 14px 14px 12px;
}
.asg-shell-immersive .asg-measure-slider-mobile .asg-measure-axis { display: none; } /* field already labels it */
.asg-shell-immersive .asg-measure-slider-mobile .asg-measure-head { justify-content: flex-end; }
.asg-shell-immersive .asg-measure-slider-mobile .asg-measure-range { height: 34px; } /* larger touch target */
.asg-shell-immersive .asg-measure-slider-mobile .asg-measure-range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; }
.asg-shell-immersive .asg-measure-slider-mobile .asg-measure-range::-moz-range-thumb { width: 28px; height: 28px; }

/* ---------------------------------------------------------------------
   6. Material-chip swatches
   --------------------------------------------------------------------- */
.asg-shell-immersive .asg-swatch { border-radius: 14px; }
.asg-shell-immersive .asg-swatch .swatch-color {
  position: relative; overflow: hidden;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .25),
    inset 0 -8px 14px -6px rgba(0, 0, 0, .55),
    0 2px 6px rgba(0, 0, 0, .3);
  transition: transform var(--f5-fast) var(--f5-spring), box-shadow var(--f5-base) var(--f5-ease);
}
/* tactile sheen — a soft top-left highlight that reads as a real finish, not flat hex */
.asg-shell-immersive .asg-swatch .swatch-color::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .06) 26%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(120% 80% at 30% 18%, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen; opacity: .9;
}
/* finish-specific grain (metallic / micaceo get a fine directional brush) */
.asg-shell-immersive .asg-swatch .swatch-color[data-finish="metal"]::after,
.asg-shell-immersive .asg-swatch .swatch-color[data-finish="micaceo"]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 1px, rgba(0, 0, 0, .05) 1px 2px);
  opacity: .5;
}
.asg-shell-immersive .asg-swatch:hover .swatch-color { transform: translateY(-2px) scale(1.04); }
/* unmistakable selected state, brand-coloured ring */
.asg-shell-immersive .asg-swatch input:checked + .swatch-color {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .3),
    inset 0 -8px 14px -6px rgba(0, 0, 0, .55),
    0 0 0 3px var(--f5-accent), 0 0 0 6px rgba(0, 0, 0, .35),
    0 6px 18px -4px var(--f5-accent);
}
.asg-shell-immersive .asg-swatch input:checked + .swatch-color::after {
  content: "\f00c"; /* fa check */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, .25), transparent 70%);
}
.asg-shell-immersive .asg-swatch input:focus-visible + .swatch-color {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 0 0 3px var(--f5-focus);
}

/* ---------------------------------------------------------------------
   7. Optional cards  (styles the existing markup: .asg-optional-card is added
   to the existing .asg-checkbox-label / .asg-advanced-optional-row wrappers,
   and stand-alone .asg-field-group optionals get a matching card surface.
   The .asg-dyn-chk checkbox is themed into a switch with no markup change.)
   --------------------------------------------------------------------- */
.asg-shell-immersive .asg-optional-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin: 0 0 10px;
  border-radius: var(--f5-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--f5-line);
  cursor: pointer;
  transition: border-color var(--f5-base) var(--f5-ease), background var(--f5-base) var(--f5-ease), transform var(--f5-fast) var(--f5-spring);
}
.asg-shell-immersive .asg-optional-card:hover { border-color: var(--f5-line-2); transform: translateY(-1px); }
.asg-shell-immersive .asg-optional-card.is-active,
.asg-shell-immersive .asg-optional-card:has(.asg-dyn-chk:checked) {
  border-color: var(--f5-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--f5-accent) 13%, transparent), rgba(255, 255, 255, .02));
}
/* simple checkbox text span (Label + <small> price) sits between switch and edge */
.asg-shell-immersive .asg-optional-card > span:not([class]) {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #eef4fb; font-size: 14px; font-weight: 700; line-height: 1.3;
}
.asg-shell-immersive .asg-optional-card .asg-advanced-optional-main {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px;
  color: #eef4fb; font-size: 14px; font-weight: 700;
}
.asg-shell-immersive .asg-optional-card small {
  color: var(--f5-accent); font-weight: 800; font-size: 12.5px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.asg-shell-immersive .asg-optional-card .asg-advanced-optional-hint {
  flex: 0 0 auto; color: var(--f5-muted); font-size: 12px; text-align: right;
}

/* .asg-dyn-chk themed as a switch (bare checkbox, no extra markup) */
.asg-shell-immersive .asg-optional-card .asg-dyn-chk {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: 0 0 auto;
  width: 46px; height: 27px; margin: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid var(--f5-line-2);
  transition: background var(--f5-base) var(--f5-ease);
}
.asg-shell-immersive .asg-optional-card .asg-dyn-chk::after {
  content: ""; position: absolute; top: 50%; left: 3px; width: 21px; height: 21px;
  transform: translateY(-50%); border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
  transition: transform var(--f5-base) var(--f5-spring);
}
.asg-shell-immersive .asg-optional-card .asg-dyn-chk:checked { background: var(--f5-accent); border-color: transparent; }
.asg-shell-immersive .asg-optional-card .asg-dyn-chk:checked::after { transform: translateY(-50%) translateX(19px); }
.asg-shell-immersive .asg-optional-card .asg-dyn-chk:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--f5-focus); }

/* number + select controls (advanced rows + stand-alone field groups) */
.asg-shell-immersive #dynamic-optionals-wrapper .asg-dyn-num,
.asg-shell-immersive #dynamic-optionals-wrapper .asg-dyn-select {
  background: rgba(0, 0, 0, .25); border: 1px solid var(--f5-line-2); color: #fff;
  border-radius: 10px; padding: 8px 10px; font-size: 13px; min-height: 40px;
}
.asg-shell-immersive #dynamic-optionals-wrapper .asg-dyn-num { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.asg-shell-immersive #dynamic-optionals-wrapper .asg-dyn-num:focus-visible,
.asg-shell-immersive #dynamic-optionals-wrapper .asg-dyn-select:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--f5-focus); border-color: var(--f5-accent); }

/* stand-alone number/select optionals (.asg-field-group) get a card surface too */
.asg-shell-immersive #dynamic-optionals-wrapper .asg-field-group {
  padding: 14px 16px; margin: 0 0 10px; border-radius: var(--f5-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--f5-line); display: grid; gap: 8px;
}
.asg-shell-immersive #dynamic-optionals-wrapper .asg-field-group > label { font-size: 13px; font-weight: 700; color: #eef4fb; }

/* ---------------------------------------------------------------------
   8. Living price (count-up)
   --------------------------------------------------------------------- */
.asg-shell-immersive #asg-total-price {
  font-variant-numeric: tabular-nums;
  transition: color var(--f5-fast) var(--f5-ease);
}
.asg-shell-immersive .asg-inline-price-panel.is-price-bumping #asg-total-price {
  animation: f5-price-pop var(--f5-base) var(--f5-spring);
}
@keyframes f5-price-pop { 0% { transform: translateY(2px); } 60% { transform: translateY(-2px); } 100% { transform: none; } }

/* ---------------------------------------------------------------------
   9. Scene / section nav active feedback (premium pills)
   --------------------------------------------------------------------- */
.asg-shell-immersive .asg-config-nav-pill.is-active,
.asg-shell-immersive .asg-ux-journey-step.is-active {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f5-accent) 60%, transparent);
}

/* ---------------------------------------------------------------------
   10. Accessibility — visible brand focus everywhere
   --------------------------------------------------------------------- */
.asg-shell-immersive :focus-visible {
  outline: 2px solid var(--f5-focus);
  outline-offset: 2px;
}
.asg-shell-immersive .asg-scene-pill:focus-visible,
.asg-shell-immersive .btn:focus-visible {
  outline: 2px solid var(--f5-focus); outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   11. Responsive — stage stays hero, rail flows under on tablet/mobile
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .asg-shell-immersive .asg-controls-col { flex: none; width: 100%; }
}
@media (max-width: 900px) {
  .asg-shell-immersive .asg-viewer-col { min-height: 64vh; }
  .asg-viewer-scene-presets { gap: 8px; }
  .asg-scene-pill { padding: 6px 11px; font-size: 11px; }
}
@media (max-width: 560px) {
  .asg-viewer-scene-presets { flex-direction: column; align-items: flex-start; }
  .asg-shell-immersive .asg-viewer-col { min-height: 56vh; }
}

/* ---------------------------------------------------------------------
   12. Reduced motion — honour the user; keep everything functional/static
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .asg-shell-immersive *,
  .asg-shell-immersive *::before,
  .asg-shell-immersive *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .asg-shell-immersive .asg-viewer-boot-ring { animation: none; border-top-color: var(--f5-accent); }
  .asg-shell-immersive .asg-viewer-col.asg-viewer-booted #asg-3d-canvas { animation: none; }
  /* sections appear instantly, no slide */
  #asg-configuratore-wrapper.asg-shell-immersive .asg-config-section.active { animation: none; }
  #asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body,
  #asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body { scroll-behavior: auto; }
}

/* =====================================================================
   13. LAYOUT COHESION — one uniform visual language + smooth scroll/flow.
   ID+class prefix so these win over the legacy #asg-configuratore-wrapper rules.
   ===================================================================== */
#asg-configuratore-wrapper.asg-shell-immersive {
  --asg-radius-lg: var(--f5-radius-lg);
  --asg-radius-xl: var(--f5-radius-lg);
}

/* uniform section headers across dimensions / finiture / optional / riepilogo */
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section > h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.01em; margin: 0 0 6px;
}
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section > h3 i { color: var(--f5-accent); font-size: 15px; }
#asg-configuratore-wrapper.asg-shell-immersive .asg-section-microcopy {
  color: var(--f5-muted); font-size: 12.5px; line-height: 1.5; margin: 0 0 16px;
}

/* uniform field labels above the new controls */
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section .form-row-full > label,
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section .form-col > label,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-field > span {
  display: block; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--f5-muted);
}

/* consistent vertical rhythm + a calm gap between every config block */
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section { margin-bottom: 18px; }
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section .form-row-full + .form-row-full { margin-top: 18px; }
#asg-configuratore-wrapper.asg-shell-immersive .asg-swatch-group { gap: 12px; }

/* uniform radii on every major panel */
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-col,
#asg-configuratore-wrapper.asg-shell-immersive .asg-final-summary-card,
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-live-bar,
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-status-note,
#asg-configuratore-wrapper.asg-shell-immersive .asg-viewer-bottom-dock .asg-inline-price-panel {
  border-radius: var(--f5-radius-lg);
}

/* uniform section-nav + journey pills, brand-tinted active state */
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-nav-pill {
  border-radius: 12px;
  transition: background var(--f5-fast) var(--f5-ease), color var(--f5-fast) var(--f5-ease), border-color var(--f5-fast) var(--f5-ease);
}
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-nav-pill.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--f5-accent) 20%, transparent), transparent);
  color: #fff; border-color: color-mix(in srgb, var(--f5-accent) 45%, transparent);
}

/* smooth, uniform reveal when a section becomes active */
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-section.active {
  animation: f5-section-in var(--f5-base) var(--f5-ease) both;
}
@keyframes f5-section-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* SCORREVOLE — smooth scrolling + branded thin scrollbars on every scroll surface */
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-tabs {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--f5-accent) 55%, transparent) transparent;
}
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body::-webkit-scrollbar,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body::-webkit-scrollbar { width: 9px; height: 9px; }
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body::-webkit-scrollbar-track,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body::-webkit-scrollbar-track { background: transparent; }
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body::-webkit-scrollbar-thumb,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body::-webkit-scrollbar-thumb {
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
  background-color: color-mix(in srgb, var(--f5-accent) 45%, rgba(255, 255, 255, .14));
}
#asg-configuratore-wrapper.asg-shell-immersive .asg-controls-body::-webkit-scrollbar-thumb:hover,
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel-body::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--f5-accent) 70%, rgba(255, 255, 255, .14));
}

/* uniform primary CTAs (brand gradient + lift) */
#asg-configuratore-wrapper.asg-shell-immersive .btn.btn-primary,
#asg-configuratore-wrapper.asg-shell-immersive .asg-primary-quote-cta,
#asg-configuratore-wrapper.asg-shell-immersive .asg-config-step-btn-next {
  background: linear-gradient(135deg, var(--f5-accent), var(--f5-accent-strong));
  color: var(--f5-accent-contrast); border-color: transparent;
  transition: transform var(--f5-fast) var(--f5-spring), box-shadow var(--f5-base) var(--f5-ease), filter var(--f5-fast) var(--f5-ease);
}
#asg-configuratore-wrapper.asg-shell-immersive .btn.btn-primary:hover,
#asg-configuratore-wrapper.asg-shell-immersive .asg-primary-quote-cta:hover {
  transform: translateY(-1px); box-shadow: 0 10px 26px -8px var(--f5-accent);
}

/* mobile bottom-sheet cohesion: rounded sheet, smooth flowing sections */
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-panel { border-radius: 22px 22px 0 0; }
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-section.is-active {
  animation: f5-section-in var(--f5-base) var(--f5-ease) both;
}
#asg-configuratore-wrapper.asg-shell-immersive .asg-mobile-config-field { margin-bottom: 16px; }
