:root {
  --wine: #730b2d;
  --wine-dark: #48051c;
  --ink: #211c1c;
  --muted: #746d68;
  --line: #ded8d1;
  --paper: #f7f4ef;
  --card: #fffdfa;
  --fabric: #e9dfcf;
  --fabric-texture: url("assets/giorno-notte/hd/dh07-1.webp");
  --fabric-repeat: 64px;
  --fabric-tone: #D4D4D6;
  --cassette-band-texture: url("assets/giorno-notte/hd/cassette/dh07-1.webp");
  --cassette-band-position: center;
  --cassette-band-size: 100% 100%;
  --room-background: url("assets/ambienti/ambiente-sabbia.webp");
  --system: #8b8f93;
  --drop: 100;
  --blind-left: 12%;
  --blind-top: 12.4%;
  --blind-width: 67.4%;
  --blind-height: 58.511%;
  --light-shift: 0px;
  --light-filter-shift: 32px;
  --vane-angle: 58deg;
  --product-width: 47%;
  --product-height: 74%;
  --product-top: 11%;
  --ambient-cassette-height: 24px;
  --product-cassette-height: 35px;
  --roman-fold-height: 14px;
  --roman-fold-middle-height: 11px;
  --roman-fold-lower-height: 7px;
  --roman-fold-step: 11px;
  --roman-fold-upper-offset: 22px;
  --roman-stack-height: 36px;
  --roman-open-bar-height: 3px;
  --roman-roll-shadow-height: 22px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, rgba(115, 11, 45, .045), transparent 27rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.topbar {
  height: 76px;
  padding: 0 clamp(22px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(70, 50, 44, .1);
  background: rgba(247, 244, 239, .88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  padding: 6px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 8px 22px rgba(115, 11, 45, .24);
}

.brand-mark i { width: 6px; display: block; background: #fff; border-radius: 5px; transform: rotate(26deg); }
.brand-mark i:nth-child(1) { height: 11px; opacity: .76; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 14px; opacity: .86; }
.brand strong { display: block; color: var(--wine); letter-spacing: .13em; font-size: 15px; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: #8e837c; font-size: 9px; letter-spacing: .36em; }

.demo-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #665e59;
  letter-spacing: .02em;
}
.demo-flag span { width: 7px; height: 7px; border-radius: 50%; background: #21a162; box-shadow: 0 0 0 5px rgba(33, 161, 98, .12); }

.quiet-button {
  justify-self: end;
  border: 1px solid #d7cec6;
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: .25s ease;
}
.quiet-button:hover { border-color: var(--wine); color: var(--wine); }

main { max-width: 1920px; margin: 0 auto; }

.hero-copy {
  padding: clamp(48px, 7vw, 102px) clamp(24px, 5.2vw, 100px) clamp(34px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 7vw;
  align-items: end;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--wine);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .17em;
  font-size: 11px;
}

.hero-copy .eyebrow { grid-column: 1 / -1; margin-bottom: -2vw; }

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.2vw, 106px);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.045em;
}

.lead {
  margin: 0 0 6px;
  max-width: 590px;
  color: #665f5a;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.65;
}

.configurator {
  margin: 0 clamp(15px, 2.1vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(410px, .87fr);
  background: var(--card);
  border: 1px solid rgba(73, 55, 47, .12);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(63, 43, 34, .12);
}

.visual-column { min-width: 0; background: #e9e2d9; }

.stage {
  position: relative;
  top: auto;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 590px;
  max-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
  background: var(--room-background) center / 100% 100% no-repeat;
  --scene-brightness: 1;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 10, 9, .08), transparent 28%, transparent 75%, rgba(17, 10, 9, .12));
  pointer-events: none;
}

.stage-shade {
  position: absolute;
  inset: 0;
  background: rgba(23, 15, 13, .44);
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  z-index: 4;
}

.stage-toolbar {
  position: absolute;
  z-index: 20;
  top: 22px;
  left: 22px;
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 8px 30px rgba(23, 18, 16, .12);
  backdrop-filter: blur(14px);
}

.view-button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.view-button.active { background: var(--wine); color: white; }
.view-button[hidden] { display: none; }

.product-label {
  position: absolute;
  z-index: 20;
  top: 26px;
  right: 24px;
  text-align: right;
  color: white;
  text-shadow: 0 2px 13px rgba(0, 0, 0, .45);
}
.product-label span, .product-label small { display: block; }
.product-kicker { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; opacity: .85; }
.product-label strong { display: block; margin: 3px 0 2px; font: 400 clamp(20px, 2vw, 30px)/1.1 Georgia, serif; }
.product-label small { font-size: 11px; opacity: .85; }

.wall-controller {
  position: absolute;
  z-index: 7;
  top: 49%;
  right: 12%;
  width: clamp(28px, 3.8%, 45px);
  height: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  filter: drop-shadow(0 3px 4px rgba(34, 28, 25, .24));
  transition: opacity .35s ease, filter .35s ease;
  pointer-events: none;
}
.stage[data-view="ambiente"] .wall-controller {
  opacity: 1;
  visibility: visible;
}

.blind-shell {
  position: absolute;
  z-index: 8;
  left: var(--blind-left);
  top: var(--blind-top);
  width: var(--blind-width);
  height: var(--blind-height);
  filter: drop-shadow(0 12px 11px rgba(26, 20, 18, .19));
  transform-origin: center top;
  transition: left .7s cubic-bezier(.2,.8,.2,1), top .7s cubic-bezier(.2,.8,.2,1), width .7s cubic-bezier(.2,.8,.2,1), height .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease;
}

.cassette {
  position: absolute;
  left: -1.2%;
  right: -1.2%;
  top: 0;
  height: 7%;
  min-height: 21px;
  border: 1px solid rgba(54,46,41,.18);
  border-radius: 3px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--system) 88%, white),
    var(--system) 46%,
    color-mix(in srgb, var(--system) 86%, #756c66));
  box-shadow:
    0 3px 5px rgba(48,39,34,.23),
    inset 0 3px 2px rgba(255,255,255,.34),
    inset 0 -3px 3px rgba(54,46,41,.14);
  overflow: hidden;
  z-index: 6;
}
.cassette::before, .cassette::after { display: none; }
.cassette-highlight {
  position: absolute;
  inset: 3px;
  z-index: 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(48,41,37,.18);
  border-radius: 2px;
  background-color: var(--fabric-tone);
  background-image: var(--cassette-band-texture);
  background-repeat: no-repeat;
  background-position: center var(--cassette-band-position);
  background-size: var(--cassette-band-size);
  box-shadow:
    inset 0 2px 3px rgba(36,30,27,.2),
    inset 0 -1px 1px rgba(255,255,255,.24),
    0 1px 0 rgba(255,255,255,.24);
}
.cassette-highlight::after,
.side-cassette-3d .side-cassette-insert::after,
.roman-tech-insert::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,.25),
    rgba(255,255,255,.06) 34%,
    transparent 53%,
    rgba(43,36,33,.12));
}
.stage[data-model="giorno-notte"] .cassette-highlight,
.stage[data-model="giorno-notte"] .side-cassette-3d .side-cassette-insert {
  background-color: transparent;
  filter: saturate(1.12) contrast(1.08);
  box-shadow: inset 0 0 0 1px rgba(48,41,37,.12);
}
.stage[data-model="giorno-notte"] .cassette-highlight::after,
.stage[data-model="giorno-notte"] .side-cassette-3d .side-cassette-insert::after {
  display: none;
}

.cassette-tech-measures {
  position: absolute;
  left: -1.2%;
  right: -1.2%;
  top: -49px;
  z-index: 12;
  display: grid;
  grid-template-columns: 1.45fr .72fr .9fr;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.cassette-tech-measures::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  border-top: 1px solid rgba(255,255,255,.82);
  box-shadow: -1px -3px 0 -1px rgba(255,255,255,.82), 1px -3px 0 -1px rgba(255,255,255,.82);
}
.cassette-tech-measures > span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 7px;
  color: #fff;
  background: rgba(39,31,28,.76);
  box-shadow: 0 5px 16px rgba(25,19,17,.16);
  backdrop-filter: blur(7px);
}
.cassette-tech-measures small,
.cassette-tech-measures strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cassette-tech-measures small { opacity: .72; font-size: 5.5px; text-transform: uppercase; letter-spacing: .07em; }
.cassette-tech-measures strong { margin-top: 2px; font-size: 8px; }

.blind-track {
  position: absolute;
  top: 6.5%;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  perspective: 900px;
}

.blind-drop {
  height: calc(var(--drop) * 1%);
  min-height: 12%;
  position: relative;
  overflow: hidden;
  transition: height 1.35s cubic-bezier(.65, 0, .15, 1);
  transform-origin: top;
}

.model-surface { position: absolute; inset: 0 0 7px; display: none; overflow: hidden; }
.model-surface.active { display: block; }

.daynight { background: rgba(250,248,243,.17); }
.daynight-back, .daynight-front {
  position: absolute;
  inset: -60px 0;
  overflow: hidden;
}
.daynight-strip {
  position: absolute;
  top: -220px;
  left: -1px;
  right: -1px;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.daynight-tile {
  flex: 0 0 calc(var(--fabric-repeat) + 2px);
  height: calc(var(--fabric-repeat) + 2px);
  margin-bottom: -2px;
  background-image: var(--fabric-texture);
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% + 2px) calc(100% + 4px);
}
.daynight-tile:nth-child(even) {
  transform: scaleY(-1);
}

/* R28: lo stesso numero di fasce nella scena 3:2 a ogni risoluzione.
   La miniatura trasforma già tutta la scena e non richiede un'altra scala. */
.stage[data-view="ambiente"] {
  --fabric-repeat: var(--scene-fabric-repeat, 64px);
  --light-filter-shift: var(--scene-filter-shift, 32px);
  --light-shift: 0px;
}
.stage[data-view="ambiente"].light-filtered {
  --light-shift: var(--scene-filter-shift, 32px);
}
.stage[data-view="ambiente"] .daynight-back,
.stage[data-view="ambiente"] .daynight-front {
  inset: var(--scene-pattern-inset, -60px) 0;
}
.stage[data-view="ambiente"] .daynight-strip {
  top: var(--scene-pattern-top, -220px);
}
.stage[data-view="ambiente"] .daynight-tile {
  flex-basis: calc(var(--fabric-repeat) + var(--scene-pattern-overlap, 2px));
  height: calc(var(--fabric-repeat) + var(--scene-pattern-overlap, 2px));
  margin-bottom: calc(-1 * var(--scene-pattern-overlap, 2px));
}
.daynight-back {
  opacity: .40;
  filter: saturate(.82) contrast(.98);
}
.daynight-front {
  mix-blend-mode: multiply;
  opacity: .90;
  filter: saturate(.98) contrast(1.03);
}
.daynight-front .daynight-strip {
  transform: translateY(var(--light-shift));
  transition: transform 1s ease;
}
.daynight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.24), transparent 13%, transparent 85%, rgba(56,47,42,.12)); }

.panel-blind {
  display: none;
  background-color: var(--fabric);
  isolation: isolate;
}
.panel-blind.active { display: block; }
.panel-fabric-plane {
  position: absolute;
  inset: 0;
  display: block;
  background-color: var(--fabric);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 15%, transparent 84%, rgba(45,38,34,.10)),
    var(--fabric-texture);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center top;
  background-size: 100% 100%, 100% auto;
  background-blend-mode: soft-light, normal;
  filter: saturate(.98) contrast(1.02);
}
.panel-blind::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 5px 0 8px rgba(255,255,255,.08), inset -6px 0 10px rgba(45,38,34,.09);
}

.roman { display: none; background-color: var(--fabric); }
.roman.active { display: block; }
.roman-fabric-plane {
  position: absolute;
  inset: 0;
  display: block;
  background-color: var(--fabric);
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0 calc(var(--roman-panel-step, 56px) - 2px),
      rgba(49,43,40,.24) calc(var(--roman-panel-step, 56px) - 2px) calc(var(--roman-panel-step, 56px) - 1px),
      rgba(255,255,255,.17) calc(var(--roman-panel-step, 56px) - 1px) var(--roman-panel-step, 56px)),
    linear-gradient(90deg, rgba(255,255,255,.22), transparent 14%, transparent 82%, rgba(50,43,40,.09)),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 18%, transparent 86%, rgba(52,44,40,.08)),
    var(--fabric-texture);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 100% 100%, 100% 100%, 420px 420px;
  background-blend-mode: normal, soft-light, multiply, soft-light;
  filter: saturate(.94) contrast(1.04);
  transition: bottom .9s cubic-bezier(.65, 0, .15, 1);
}
.roman::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 18%, transparent 84%, rgba(42,36,33,.05));
  mix-blend-mode: soft-light;
}
.roman::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 5px 0 8px rgba(255,255,255,.08), inset -6px 0 10px rgba(45,38,34,.09);
}
.roman-fold-stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: var(--roman-stack-height);
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scaleY(.62);
  transform-origin: center bottom;
  transition: opacity .38s ease, transform .8s cubic-bezier(.22,.74,.18,1);
}
.roman-fold-stack i {
  position: absolute;
  height: var(--roman-fold-height);
  display: block;
  border: 0;
  border-radius: 1px 1px 3px 3px;
  background-color: var(--fabric);
  background-image:
    url("assets/romana/piega-raccolta.svg"),
    var(--fabric-texture);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 360px 360px;
  background-blend-mode: normal, soft-light;
  box-shadow: 0 3px 6px rgba(26,22,27,.34), inset 0 1px rgba(255,255,255,.18);
}
.roman-fold-stack i:nth-child(1) { left: 0; right: 0; bottom: 0; height: var(--roman-fold-lower-height); z-index: 1; }
.roman-fold-stack i:nth-child(2) { left: 0; right: 0; bottom: var(--roman-fold-step); height: var(--roman-fold-middle-height); z-index: 2; }
.roman-fold-stack i:nth-child(3) { left: 0; right: 0; bottom: var(--roman-fold-upper-offset); z-index: 3; }
.stage.roman-open .roman-fabric-plane { bottom: var(--roman-stack-height); }
.stage.roman-open .roman-fold-stack {
  opacity: 1;
  transform: translateY(0) scaleY(1);
}
.roman.active ~ .bottom-bar {
  height: 8px;
  background-color: var(--fabric);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.24), transparent 44%, rgba(45,39,36,.14)),
    var(--fabric-texture);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 360px 360px;
  background-blend-mode: normal, soft-light;
  border-top: 1px solid rgba(48,42,39,.18);
  border-bottom: 1px solid rgba(43,37,34,.3);
  border-radius: 1px 1px 3px 3px;
  box-shadow: 0 2px 3px rgba(45,38,34,.2), inset 0 1px 1px rgba(255,255,255,.2);
}
.roman.active ~ .bottom-bar::before,
.roman.active ~ .bottom-bar::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--fabric) 70%, #39322f);
  opacity: .7;
}
.roman.active ~ .bottom-bar::before { left: 0; }
.roman.active ~ .bottom-bar::after { right: 0; }
.stage.roman-open .roman.active ~ .bottom-bar {
  height: 10px;
  transform: translateY(1px);
  border-radius: 2px 2px 5px 5px;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08) 32%, transparent 48%, rgba(42,36,33,.2) 100%),
    var(--fabric-texture);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 360px 360px;
  background-blend-mode: normal, soft-light;
  box-shadow: 0 4px 5px rgba(42,35,32,.28), inset 0 2px 2px rgba(255,255,255,.22), inset 0 -2px 2px rgba(42,36,33,.12);
}
.stage.roman-open .roman.active ~ .bottom-bar::before,
.stage.roman-open .roman.active ~ .bottom-bar::after {
  top: 2px;
  bottom: 2px;
  width: 4px;
}
.stage[data-model="romana"] .cassette-highlight {
  background-color: var(--fabric);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 48%, rgba(45,39,36,.08)),
    var(--fabric-texture);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 360px 360px;
  background-blend-mode: normal, soft-light;
}

/* Nella Romana il sistema superiore rimane dietro al telo: frontalmente il
   tessuto parte dal bordo alto e nasconde completamente il cassonetto. */
.stage[data-model="romana"][data-view="ambiente"] .cassette,
.stage[data-model="romana"][data-view="prodotto"] .cassette {
  opacity: 0;
  visibility: hidden;
}
.stage[data-model="romana"][data-view="ambiente"] .blind-track,
.stage[data-model="romana"][data-view="prodotto"] .blind-track {
  top: 0;
}
.stage[data-model="romana"][data-view="ambiente"] .blind-track::before,
.stage[data-model="romana"][data-view="prodotto"] .blind-track::before {
  content: "";
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  height: var(--roman-roll-shadow-height);
  pointer-events: none;
  background: url("assets/romana/ombra-rullo.svg") center top / 100% 100% no-repeat;
  box-shadow: inset 0 1px 2px rgba(26,20,25,.32);
}
.stage[data-model="romana"].roman-open .blind-track::before {
  height: min(9px, var(--roman-fold-height));
  opacity: .7;
}
.stage[data-model="romana"] .blind-drop {
  --roman-bottom-height: 8px;
  min-height: 0;
}
.stage[data-model="romana"].roman-open .blind-drop {
  --roman-bottom-height: var(--roman-open-bar-height);
}
.stage[data-model="romana"] .roman {
  bottom: var(--roman-bottom-height);
}
.stage[data-model="romana"] .roman,
.stage[data-model="romana"] .roman-fabric-plane {
  left: 0;
  right: 0;
  border-radius: 0;
  clip-path: none;
  transform: none;
}
.stage[data-model="romana"] .roman::after {
  box-shadow: inset 4px 0 7px rgba(255,255,255,.07), inset -2px 0 3px rgba(45,38,34,.06);
}
.stage[data-model="romana"] .roman.active ~ .bottom-bar {
  left: 0;
  right: 0;
  height: var(--roman-bottom-height);
  transform: none;
  border-radius: 0;
}
.stage[data-model="romana"] .roman.active ~ .bottom-bar::before,
.stage[data-model="romana"] .roman.active ~ .bottom-bar::after {
  display: none;
}
.stage[data-model="romana"] .cassette-tech-measures,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette-height,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette-depth {
  display: none;
}

.stage[data-model="farfalla"] .cassette-highlight {
  background-color: var(--fabric);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 48%, rgba(45,39,36,.08)),
    var(--fabric-texture);
  background-repeat: no-repeat, no-repeat;
  background-position: center;
  background-size: 100% 100%, cover;
  background-blend-mode: normal, normal;
}

.panel-blind.active ~ .bottom-bar {
  height: 8px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--system) 90%, white),
    var(--system) 48%,
    color-mix(in srgb, var(--system) 84%, #7c746e));
  border-color: rgba(44,37,34,.24);
}

.stage[data-model="romana"][data-roman-mode="trasparente"] .roman {
  background-color: rgba(255,255,255,.08);
}
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman-fabric-plane {
  opacity: .62;
  mix-blend-mode: multiply;
  filter: saturate(.9) contrast(1.02) brightness(1.06);
}
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman::before { opacity: .42; }
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman::after { opacity: .55; }
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman-fold-stack i { opacity: .8; }
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman.active ~ .bottom-bar { opacity: .86; }
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman-tech-fabric {
  opacity: .62;
  filter: saturate(.9) brightness(1.07);
}
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman-tech-fabric::after { opacity: .7; }
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman-tech-bottom { opacity: .86; }

/* R15: la sagoma, la trama e le ombre vengono dalle fotografie originali.
   Il ritaglio SVG conserva i pixel della foto e non include ambiente o testi. */
.roman-photo-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.roman-photo { position: absolute; left: 0; right: 0; pointer-events: none; overflow: hidden; }
.roman-photo-svg { display: block; width: 100%; height: 100%; }
.roman-photo-closed { top: 0; height: var(--roman-photo-closed-height); z-index: 3; }
.roman-photo-open { bottom: 0; height: var(--roman-photo-open-height); z-index: 4; display: none; }
.stage[data-model="romana"].roman-open .roman-photo-open { display: block; }
.stage[data-model="romana"] .roman { bottom: 0; background: transparent; }
.stage[data-model="romana"][data-roman-mode="oscurante"] .roman { opacity: 1; background: transparent; }
.stage[data-model="romana"][data-roman-mode="trasparente"] .roman { opacity: .62; background: transparent; }
.stage[data-model="romana"] .roman-fabric-plane,
.stage[data-model="romana"] .roman-fold-stack,
.stage[data-model="romana"] .roman::before,
.stage[data-model="romana"] .roman::after,
.stage[data-model="romana"] .roman.active ~ .bottom-bar,
.stage[data-model="romana"] .blind-track::before,
.stage[data-model="romana"][data-view="prodotto"] .blind-shell::after { display: none; }
.stage[data-model="romana"][data-view] .blind-shell { filter: none; }

.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--system);
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(54,46,41,.18);
  border-radius: 1px 1px 4px 4px;
  box-shadow: 0 3px 5px rgba(46,37,32,.24);
  z-index: 5;
}

/* Piano inferiore reale del vano: viene ridisegnato davanti alla tenda montata sul fondo. */
.recess-bottom-depth {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  clip-path: polygon(12% 71.55%, 79.4% 71.55%, 80.8% 76.4%, 10.6% 76.4%);
  background: var(--room-background) center / 100% 100% no-repeat;
  filter: drop-shadow(0 -2px 2px rgba(47,34,27,.2));
  transition: opacity .35s ease;
}

.stage[data-mount="interno"] .recess-bottom-depth {
  display: block;
  opacity: 1;
}

/* La sagoma fotografica del divano resta dietro alla tenda per evitare ritagli laterali. */
.foreground-sofa {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 1;
  background: var(--room-background) center / 100% 100% no-repeat;
  clip-path: polygon(
    0 68.3%,
    10.7% 68.3%,
    12.1% 69.2%,
    13.5% 71.5%,
    15.7% 74%,
    19% 75.8%,
    22.4% 77%,
    25.2% 78.8%,
    27.7% 82.2%,
    29.8% 88.5%,
    31.3% 100%,
    0 100%
  );
  transition: opacity .35s ease;
}

.stage[data-mount="soffitto"] .foreground-sofa { display: block; }
.wall-brackets, .ceiling-rail { display: none; position: absolute; inset: 0; pointer-events: none; }
.wall-brackets i, .ceiling-rail i { position: absolute; z-index: 2; background: var(--system); box-shadow: 0 2px 3px rgba(40,33,29,.22); transition: .35s ease; }
.wall-brackets i { width: 5%; height: 5%; top: -1%; border-radius: 2px; }
.wall-brackets i:first-child, .ceiling-rail i:first-child { left: 7%; }
.wall-brackets i:last-child, .ceiling-rail i:last-child { right: 7%; }
.ceiling-rail i { width: 5%; height: 9%; top: -8%; opacity: 0; }
.stage[data-mount="soffitto"] .wall-brackets i { opacity: 0; }
.stage[data-mount="soffitto"] .ceiling-rail i { opacity: 1; top: -4%; height: 5%; }

.real-product-chip {
  position: absolute;
  z-index: 20;
  right: 20px;
  bottom: 47px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(35,27,24,.58);
  backdrop-filter: blur(10px);
  font-size: 8px;
  letter-spacing: .04em;
}
.real-product-chip span { width: 7px; height: 7px; border-radius: 1px; background: #fff; box-shadow: inset 0 -2px rgba(0,0,0,.18); }

.measure { position: absolute; color: rgba(255,255,255,.9); font-size: 9px; letter-spacing: .08em; opacity: 0; transition: opacity .35s; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.measure::before, .measure::after { content: ""; position: absolute; background: rgba(255,255,255,.8); }
.measure span { background: rgba(45,36,31,.72); padding: 3px 7px; border-radius: 99px; }
.measure-width { left: 0; right: 0; bottom: -23px; text-align: center; border-top: 1px solid rgba(255,255,255,.85); }
.measure-height { top: 8%; bottom: 0; right: -31px; border-left: 1px solid rgba(255,255,255,.85); display: flex; align-items: center; }
.measure-height span { transform: rotate(90deg); white-space: nowrap; }
.stage[data-view="prodotto"] {
  background: radial-gradient(circle at 50% 42%, #fff 0 36%, #f2f0ec 72%, #e5e1dc 100%);
}
.stage[data-view="prodotto"]::before {
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0 82%, rgba(91,77,68,.055) 82% 82.3%, transparent 82.3%),
    radial-gradient(ellipse at 50% 84%, rgba(81,66,57,.11), transparent 35%);
}
.stage[data-view="prodotto"] .stage-shade,
.stage[data-view="prodotto"] .recess-bottom-depth,
.stage[data-view="prodotto"] .foreground-sofa,
.stage[data-view="prodotto"] .stage-actions,
.stage[data-view="prodotto"] .real-product-chip { display: none; }
.stage[data-view="prodotto"] .product-label { color: #3a312d; text-shadow: none; }
.stage[data-view="prodotto"] .blind-shell {
  left: 50%;
  top: var(--product-top);
  width: var(--product-width);
  height: var(--product-height);
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 17px rgba(53,43,37,.2));
  z-index: 10;
}
.stage[data-view="prodotto"] .blind-shell::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -5%;
  height: 4%;
  border-radius: 50%;
  background: rgba(65,52,45,.2);
  filter: blur(8px);
  z-index: -1;
}
.stage[data-view="prodotto"] .cassette {
  left: -2.2%;
  right: -2.2%;
  height: 8%;
  box-shadow: 0 5px 9px rgba(55,45,39,.2), inset 0 1px rgba(255,255,255,.42);
}
.stage[data-view="prodotto"] .blind-track { top: 7.5%; }
.stage[data-view="prodotto"] .daynight-back { opacity: .28; }
.stage[data-view="prodotto"] .daynight-front { opacity: .96; }
.stage[data-view="prodotto"] .wall-brackets,
.stage[data-view="prodotto"] .ceiling-rail { display: none; }

.side-product, .panel-side-product, .roman-side-tech { display: none; }
.stage[data-view="laterale"] {
  background: radial-gradient(circle at 48% 42%, #fff 0 34%, #f2f0ec 70%, #e3dfda 100%);
}
.stage[data-view="laterale"]::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 86%, rgba(70,58,51,.14), transparent 31%),
    linear-gradient(180deg, transparent 0 84%, rgba(91,77,68,.06) 84% 84.3%, transparent 84.3%);
}
.stage[data-view="laterale"] .stage-shade,
.stage[data-view="laterale"] .blind-shell,
.stage[data-view="laterale"] .recess-bottom-depth,
.stage[data-view="laterale"] .foreground-sofa,
.stage[data-view="laterale"] .stage-actions,
.stage[data-view="laterale"] .real-product-chip { display: none; }
.stage[data-view="laterale"] .product-label { opacity: 0; }
.stage[data-view="laterale"] .visual-disclaimer { color: #726963; text-shadow: none; }
.stage[data-model="giorno-notte"][data-view="laterale"] .side-product,
.stage[data-model="farfalla"][data-view="laterale"] .panel-side-product {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  perspective: 1100px;
}
.side-product-inner {
  position: absolute;
  top: var(--product-top);
  left: 39%;
  width: min(34%, var(--product-width));
  height: var(--product-height);
  transform: translateX(-50%) rotateY(-8deg) rotateX(.35deg) rotateZ(-.15deg);
  transform-origin: center top;
  transform-style: preserve-3d;
  filter: drop-shadow(15px 19px 15px rgba(55,44,38,.18));
}
.side-fabric {
  position: absolute;
  top: 8.5%;
  bottom: 12px;
  left: 0;
  right: 0;
  overflow: hidden;
  background: rgba(250,248,243,.16);
  border-left: 1px solid rgba(74,64,58,.12);
  border-right: 1px solid rgba(74,64,58,.12);
  backface-visibility: visible;
}
.side-fabric::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.22), transparent 16%, transparent 83%, rgba(48,41,37,.11));
}
.side-fabric-back {
  transform: translate3d(-5px, 1px, -8px);
  opacity: .46;
  filter: saturate(.82) contrast(.98);
}
.side-fabric-front {
  transform: translateZ(8px);
  opacity: .94;
  mix-blend-mode: multiply;
  filter: saturate(.98) contrast(1.03);
}
.side-fabric-front .daynight-strip {
  transform: translateY(var(--light-shift));
  transition: transform 1s ease;
}
.panel-side-fabric {
  position: absolute;
  top: 8.5%;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  border-left: 1px solid rgba(74,64,58,.12);
  border-right: 1px solid rgba(74,64,58,.12);
  background-color: var(--fabric);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.15), transparent 18%, transparent 83%, rgba(47,40,36,.10)),
    var(--fabric-texture);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center top;
  background-size: 100% 100%, 100% auto;
  background-blend-mode: soft-light, normal;
  box-shadow: inset 5px 0 9px rgba(255,255,255,.08), inset -5px 0 9px rgba(45,38,34,.08);
  transform: translateZ(7px);
  opacity: 1;
}
.side-cassette-3d,
.side-bottom-3d {
  position: absolute;
  left: -2.5%;
  right: -2.5%;
  transform-style: preserve-3d;
}
.side-cassette-3d { top: 0; height: 8.5%; min-height: 25px; }
.side-bottom-3d { bottom: 0; height: 14px; }
.side-cassette-3d span,
.side-bottom-3d span {
  position: absolute;
  display: block;
  border: 1px solid rgba(54,46,41,.16);
  background: var(--system);
  box-shadow: inset 0 1px rgba(255,255,255,.38);
}
.side-box-front,
.side-box-back { inset: 0; border-radius: 2px; }
.side-box-front { transform: translateZ(13px); }
.side-box-back { transform: translateZ(-13px); filter: brightness(.92); }
.side-cassette-3d .side-box-front,
.side-cassette-3d .side-box-back { border-radius: 3px; }
.side-cassette-3d .side-box-front {
  border-radius: 3px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--system) 88%, white),
    var(--system) 46%,
    color-mix(in srgb, var(--system) 86%, #756c66)) !important;
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,.34),
    inset 0 -3px 3px rgba(54,46,41,.14),
    0 3px 5px rgba(48,39,34,.18);
}
.side-box-top {
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  transform-origin: center top;
  transform: translateZ(13px) rotateX(90deg);
  background: color-mix(in srgb, var(--system) 91%, white) !important;
}
.side-box-end {
  top: 0;
  right: 0;
  bottom: 0;
  width: 26px;
  transform-origin: right center;
  transform: translateZ(13px) rotateY(90deg);
  background: color-mix(in srgb, var(--system) 88%, #716862) !important;
}
.side-cassette-3d .side-cassette-insert {
  inset: 3px;
  z-index: 3;
  transform: translateZ(14px);
  border: 1px solid rgba(48,41,37,.18);
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--fabric-tone);
  background-image: var(--cassette-band-texture);
  background-repeat: no-repeat;
  background-position: center var(--cassette-band-position);
  background-size: var(--cassette-band-size);
  box-shadow:
    inset 0 2px 3px rgba(36,30,27,.2),
    inset 0 -1px 1px rgba(255,255,255,.24),
    0 1px 0 rgba(255,255,255,.24);
}
.stage[data-model="farfalla"] .side-cassette-3d .side-cassette-insert {
  background-color: var(--fabric);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 48%, rgba(45,39,36,.08)),
    var(--fabric-texture);
  background-repeat: no-repeat, no-repeat;
  background-position: center;
  background-size: 100% 100%, cover;
}
.side-cassette-3d .side-box-end { border-radius: 0 2px 2px 0; }
.side-bottom-3d .side-box-front,
.side-bottom-3d .side-box-back {
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--system) 90%, white), var(--system) 48%, color-mix(in srgb, var(--system) 84%, #7c746e)) !important;
}
.side-layer-note {
  position: absolute;
  top: 48%;
  right: 9%;
  display: none;
  align-items: center;
  gap: 9px;
  color: #6c625c;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}
.side-layer-note i {
  width: 55px;
  height: 18px;
  display: block;
  border-top: 1px solid rgba(115,11,45,.48);
  border-right: 1px solid rgba(115,11,45,.48);
  transform: skewY(-13deg);
}
.side-object-height,
.side-object-width,
.side-object-cassette-height,
.side-object-cassette-depth {
  position: absolute;
  z-index: 8;
  color: var(--wine);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .03em;
}
.side-object-height { top: 8.5%; bottom: 0; left: -31px; border-left: 1px solid rgba(115,11,45,.6); }
.side-object-height::before,
.side-object-height::after { content: ""; position: absolute; left: -4px; width: 8px; border-top: 1px solid rgba(115,11,45,.6); }
.side-object-height::before { top: 0; }
.side-object-height::after { bottom: 0; }
.side-object-height span { position: absolute; top: 50%; left: -5px; padding: 3px 6px; border-radius: 99px; background: rgba(255,255,255,.94); white-space: nowrap; transform: translate(-50%,-50%) rotate(-90deg); }
.side-object-width { left: 0; right: 0; bottom: -27px; border-top: 1px solid rgba(115,11,45,.6); text-align: center; }
.side-object-width::before,
.side-object-width::after { content: ""; position: absolute; top: -4px; height: 8px; border-left: 1px solid rgba(115,11,45,.6); }
.side-object-width::before { left: 0; }
.side-object-width::after { right: 0; }
.side-object-width span { position: relative; top: -8px; padding: 3px 7px; border-radius: 99px; background: rgba(255,255,255,.94); }
.side-object-cassette-height { top: 0; right: -40px; height: 8.5%; min-height: 25px; border-left: 1px solid rgba(115,11,45,.55); display: flex; align-items: center; }
.side-object-cassette-height span { margin-left: 6px; padding: 2px 5px; border-radius: 99px; background: rgba(255,255,255,.94); white-space: nowrap; }
.side-object-cassette-depth { top: -22px; right: -22px; width: 66px; border-top: 1px solid rgba(115,11,45,.55); transform: rotate(-20deg); text-align: center; }
.side-object-cassette-depth span { position: relative; top: -8px; padding: 2px 5px; border-radius: 99px; background: rgba(255,255,255,.94); white-space: nowrap; }

.side-tech-heading,
.side-tech-specs { display: none; }
.stage[data-view="laterale"] .side-tech-heading,
.stage[data-view="laterale"] .side-tech-specs { display: block; }
.side-tech-heading {
  position: absolute;
  z-index: 16;
  top: 91px;
  left: 28px;
  color: #3b322e;
}
.side-tech-heading span,
.side-tech-heading strong,
.side-tech-heading small { display: block; }
.side-tech-heading span { color: var(--wine); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.side-tech-heading strong { margin-top: 4px; font: 400 22px/1.1 Georgia, serif; }
.side-tech-heading small { margin-top: 5px; max-width: 205px; color: #81756f; font-size: 8px; line-height: 1.4; }
.side-tech-specs {
  position: absolute;
  z-index: 16;
  top: 25%;
  right: 5%;
  width: 220px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stage[data-view="laterale"] .side-tech-specs { display: grid; }
.side-tech-specs > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(91,76,68,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 22px rgba(48,38,34,.08);
  backdrop-filter: blur(9px);
}
.side-tech-specs small,
.side-tech-specs strong,
.side-tech-specs em { display: block; }
.side-tech-specs small { color: #847871; font-size: 6.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.side-tech-specs strong { margin-top: 4px; color: #342b28; font-size: 11px; }
.side-tech-specs em { margin-top: 3px; color: #91867f; font-size: 6.5px; font-style: normal; line-height: 1.35; }
.side-tech-specs .side-tech-spec-wide { grid-column: 1 / -1; border-color: rgba(115,11,45,.22); background: rgba(251,244,246,.92); }
.side-tech-specs .side-tech-spec-wide strong { color: var(--wine); font-size: 13px; }

.stage[data-model="romana"][data-view="laterale"] {
  background: radial-gradient(circle at 42% 43%, #fff 0 31%, #f2efeb 68%, #e3ded8 100%);
}
.stage[data-model="romana"][data-view="laterale"]::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 38% 87%, rgba(67,55,49,.13), transparent 30%),
    linear-gradient(180deg, transparent 0 84%, rgba(91,77,68,.055) 84% 84.3%, transparent 84.3%);
}
.stage[data-model="romana"][data-view="laterale"] .roman-side-tech {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: block;
  perspective: 1050px;
  perspective-origin: 43% 44%;
}
.roman-tech-assembly {
  position: absolute;
  top: 19%;
  left: 43%;
  width: 39%;
  height: 64%;
  perspective: 1000px;
  transform: translateX(-50%) rotateY(-43deg) rotateX(.8deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  filter: drop-shadow(22px 20px 16px rgba(51,41,36,.2));
}
.roman-tech-cassette {
  position: absolute;
  top: 0;
  left: -3%;
  right: -3%;
  height: 10%;
  min-height: 34px;
  z-index: 5;
  transform-style: preserve-3d;
}
.roman-tech-cassette > span {
  position: absolute;
  display: block;
  border: 1px solid rgba(54,46,41,.17);
}
.roman-tech-box-front {
  inset: 0;
  transform: translateZ(12px);
  border-radius: 3px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--system) 88%, white),
    var(--system) 46%,
    color-mix(in srgb, var(--system) 86%, #756c66));
  box-shadow: inset 0 3px 2px rgba(255,255,255,.34), inset 0 -3px 3px rgba(54,46,41,.14), 0 3px 5px rgba(48,39,34,.2);
}
.roman-tech-box-back {
  inset: 0;
  transform: translateZ(-12px);
  border-radius: 3px;
  background: color-mix(in srgb, var(--system) 88%, #756b65);
  box-shadow: inset 0 2px rgba(255,255,255,.18), 0 3px 5px rgba(48,39,34,.13);
}
.roman-tech-box-top {
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  transform-origin: center top;
  transform: translateZ(12px) rotateX(90deg);
  background: color-mix(in srgb, var(--system) 91%, white);
}
.roman-tech-box-end {
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  transform-origin: right center;
  transform: translateZ(12px) rotateY(90deg);
  border-radius: 0 2px 2px 0;
  background: color-mix(in srgb, var(--system) 86%, #746a64);
}
.roman-tech-insert {
  inset: 4px;
  z-index: 2;
  transform: translateZ(13px);
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--fabric);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.17), transparent 48%, rgba(45,39,36,.08)),
    var(--fabric-texture);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 360px 360px;
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 2px 3px rgba(36,30,27,.18), 0 1px rgba(255,255,255,.22);
}
.roman-tech-fabric {
  position: absolute;
  top: 10.5%;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  transform: translateZ(4px);
  background-color: var(--fabric);
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0 calc(20% - 2px),
      rgba(49,43,40,.24) calc(20% - 2px) calc(20% - 1px),
      rgba(255,255,255,.17) calc(20% - 1px) 20%),
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 15%, transparent 83%, rgba(48,41,37,.09)),
    var(--fabric-texture);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 100% 100%, 420px 420px;
  background-blend-mode: normal, soft-light, soft-light;
  border-left: 1px solid rgba(57,48,43,.1);
  border-right: 1px solid rgba(57,48,43,.1);
  box-shadow: inset 5px 0 8px rgba(255,255,255,.07), inset -6px 0 10px rgba(45,38,34,.08);
  transform-style: preserve-3d;
}
.roman-tech-fabric::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  bottom: 0;
  width: 12px;
  transform: rotateY(90deg);
  transform-origin: left center;
  border-right: 1px solid rgba(48,41,37,.16);
  background-color: color-mix(in srgb, var(--fabric) 86%, #675d57);
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0 calc(20% - 2px),
      rgba(45,39,36,.3) calc(20% - 2px) calc(20% - 1px),
      rgba(255,255,255,.12) calc(20% - 1px) 20%),
    linear-gradient(90deg, rgba(255,255,255,.12), rgba(45,38,34,.16));
  box-shadow: inset -3px 0 5px rgba(40,34,31,.12);
}
.roman-tech-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15px;
  z-index: 4;
  transform: translateZ(7px);
  border: 1px solid rgba(43,37,34,.24);
  border-radius: 3px 3px 7px 7px;
  background-color: var(--fabric);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 45%, rgba(43,37,34,.16)),
    var(--fabric-texture);
  background-repeat: no-repeat, repeat;
  background-position: center;
  background-size: 100% 100%, 360px 360px;
  background-blend-mode: normal, soft-light;
  box-shadow: 0 3px 4px rgba(45,38,34,.23), inset 0 1px rgba(255,255,255,.2);
  transform-style: preserve-3d;
}
.roman-tech-bottom::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -12px;
  width: 12px;
  height: 15px;
  transform: rotateY(90deg);
  transform-origin: left center;
  border: 1px solid rgba(43,37,34,.2);
  border-radius: 0 5px 5px 0;
  background: color-mix(in srgb, var(--fabric) 80%, #6f645e);
}
.roman-tech-height-line,
.roman-tech-width-line,
.roman-tech-cassette-height,
.roman-tech-cassette-depth {
  position: absolute;
  z-index: 8;
  color: var(--wine);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .03em;
}
.roman-tech-height-line { top: 10%; bottom: 0; left: -31px; border-left: 1px solid rgba(115,11,45,.6); }
.roman-tech-height-line::before,
.roman-tech-height-line::after { content: ""; position: absolute; left: -4px; width: 8px; border-top: 1px solid rgba(115,11,45,.6); }
.roman-tech-height-line::before { top: 0; }
.roman-tech-height-line::after { bottom: 0; }
.roman-tech-height-line span { position: absolute; top: 50%; left: -5px; padding: 3px 6px; border-radius: 99px; background: rgba(255,255,255,.92); white-space: nowrap; transform: translate(-50%,-50%) rotate(-90deg); }
.roman-tech-width-line { left: 0; right: 0; bottom: -27px; border-top: 1px solid rgba(115,11,45,.6); text-align: center; }
.roman-tech-width-line::before,
.roman-tech-width-line::after { content: ""; position: absolute; top: -4px; height: 8px; border-left: 1px solid rgba(115,11,45,.6); }
.roman-tech-width-line::before { left: 0; }
.roman-tech-width-line::after { right: 0; }
.roman-tech-width-line span { position: relative; top: -8px; padding: 3px 7px; border-radius: 99px; background: rgba(255,255,255,.94); }
.roman-tech-cassette-height { top: 0; right: -40px; height: 10%; min-height: 34px; border-left: 1px solid rgba(115,11,45,.55); display: flex; align-items: center; }
.roman-tech-cassette-height span { margin-left: 6px; padding: 2px 5px; border-radius: 99px; background: rgba(255,255,255,.94); white-space: nowrap; }
.roman-tech-cassette-depth { top: -22px; right: -22px; width: 66px; border-top: 1px solid rgba(115,11,45,.55); transform: rotate(-20deg); text-align: center; }
.roman-tech-cassette-depth span { position: relative; top: -8px; padding: 2px 5px; border-radius: 99px; background: rgba(255,255,255,.94); white-space: nowrap; }
.stage-actions {
  position: absolute;
  left: 22px;
  bottom: 45px;
  z-index: 20;
  display: flex;
  gap: 9px;
}

.motor-button, .light-button, .wall-button {
  min-width: 175px;
  border: 0;
  padding: 11px 15px 11px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(35,27,24,.17);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.light-button[hidden] { display: none; }
.motor-button:hover, .light-button:hover, .wall-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(35,27,24,.22); }
.motor-icon, .light-button > span:first-child, .wall-color-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: white; font-size: 17px; }
.motor-button small, .light-button small, .wall-button small { display: block; color: #8a817b; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.motor-button strong, .light-button strong, .wall-button strong { display: block; margin-top: 3px; color: #382e2c; font-size: 12px; }
.room-color-control { position: relative; min-width: 175px; }
.wall-button { width: 100%; }
.wall-color-icon {
  position: relative;
  overflow: hidden;
  background: var(--wall-swatch);
  box-shadow: inset 0 0 0 1px rgba(39,31,28,.18), inset 0 -8px 12px rgba(39,31,28,.1);
}
.wall-color-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(255,255,255,.9);
  border-left: 2px solid rgba(255,255,255,.9);
  box-shadow: -3px -3px 8px rgba(39,31,28,.13);
}
.room-color-palette {
  position: absolute;
  left: auto;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(370px, calc(100vw - 32px));
  max-height: var(--room-palette-max-height, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid rgba(76,58,50,.16);
  border-radius: 16px;
  background: rgba(255,253,250,.97);
  box-shadow: 0 18px 45px rgba(35,27,24,.24);
  backdrop-filter: blur(18px);
}
.room-color-palette[hidden] { display: none; }
.room-color-status { display: block; margin-top: 10px; color: var(--wine); font-size: 11px; line-height: 1.4; }
.room-color-status[hidden] { display: none; }
.room-color-palette-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.room-color-palette-head strong { color: #382e2c; font-size: 12px; }
.room-color-palette-head small { color: #8a817b; font-size: 8px; }
.room-swatches { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.room-swatch {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid #ded7d0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.room-swatch:hover { transform: translateY(-1px); }
.room-swatch.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.08); }
.room-swatch i { width: 100%; height: 25px; display: block; border-radius: 6px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(50,41,37,.13), inset 0 -7px 10px rgba(50,41,37,.08); }
.room-swatch span { display: block; margin-top: 5px; overflow: hidden; color: #625954; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.room-color-note { display: block; margin-top: 10px; color: #918781; font-size: 7.5px; line-height: 1.4; }

.visual-disclaimer { position: absolute; right: 17px; bottom: 12px; z-index: 20; margin: 0; color: rgba(255,255,255,.8); text-shadow: 0 1px 4px rgba(0,0,0,.65); font-size: 8px; }

.included-strip {
  padding: 25px clamp(22px, 3vw, 42px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #f5f0e9;
  border-top: 1px solid rgba(65,49,42,.12);
}

.model-gallery {
  padding: 24px clamp(24px, 3vw, 40px) 30px;
  background: #fffdfa;
  border-top: 12px solid #e9e2d9;
}
.model-gallery[hidden] { display: none; }
.model-gallery-head { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.model-gallery-head span, .model-gallery-head strong { display: block; }
.model-gallery-head span { color: var(--wine); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.model-gallery-head strong { margin-top: 3px; font: 400 20px/1.05 Georgia, serif; }
.model-gallery-head small { color: #968d87; font-size: 8px; }
.model-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.model-gallery[data-model="romana"] .model-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.model-photo {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ddd5ce;
  border-radius: 13px;
  background: #fff;
  text-align: left;
  cursor: zoom-in;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.model-photo[hidden] { display: none; }
.model-photo:hover { transform: translateY(-2px); border-color: #bfa7af; box-shadow: 0 9px 22px rgba(52,40,35,.1); }
.model-photo-media { display: block; height: 92px; overflow: hidden; background: #eee9e3; }
.model-photo-media img { width: 100%; height: 100%; display: block; object-fit: var(--photo-fit, cover); object-position: var(--photo-focus, center); transition: transform .5s ease; }
.model-gallery[data-model="giorno-notte"] .model-photo-media { height: 190px; }
.model-gallery[data-model="romana"] .model-photo-media { height: 148px; }
.model-photo:hover .model-photo-media img { transform: scale(1.035); }
.model-photo > span:last-child { display: block; padding: 9px 10px 10px; }
.model-photo strong, .model-photo small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.model-photo strong { font-size: 9px; }
.model-photo small { margin-top: 3px; color: #998f88; font-size: 7px; text-transform: uppercase; letter-spacing: .04em; }
.included-strip > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.included-strip p { margin: 0; min-width: 0; }
.included-strip strong, .included-strip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.included-strip strong { font-size: 11px; }
.included-strip small { margin-top: 3px; color: #837a73; font-size: 9px; }
.included-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; color: var(--wine); border: 1px solid #d6c9c0; border-radius: 50%; }

.measure-guide-inline {
  padding: 30px clamp(24px, 3vw, 42px) 28px;
  border-top: 1px solid rgba(65,49,42,.12);
  background: #fffdfa;
}
.measure-guide-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.measure-guide-head span, .measure-guide-head h3 { display: block; }
.measure-guide-head > div > span { color: var(--wine); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.measure-guide-head h3 { margin: 4px 0 0; font: 400 24px/1.05 Georgia, serif; }
.measure-tool-pill { padding: 7px 10px; border: 1px solid #ded4cc; border-radius: 99px; color: #756b65; background: #f7f2ec; font-size: 8px; font-weight: 750; white-space: nowrap; }
.measure-guide-intro { max-width: 720px; margin: 11px 0 16px; color: #776e68; font-size: 9px; line-height: 1.55; }
.measure-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.measure-mode-card { min-width: 0; padding: 14px; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: center; border: 1px solid #ddd4cd; border-radius: 14px; background: #f8f4ef; }
.measure-card-sketch { width: 78px; height: 76px; position: relative; display: grid; place-items: center; border-radius: 10px; background: #eee7df; overflow: hidden; }
.measure-card-sketch > span { width: 48px; height: 54px; position: relative; display: block; border: 6px solid #bdb0a5; background: linear-gradient(145deg, #dcecef, #fafafa); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.measure-card-sketch > span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid white; }
.measure-card-sketch > span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid white; }
.measure-sketch-outside > span { width: 56px; height: 58px; border-color: #c7bbb1; box-shadow: 0 0 0 4px rgba(115,11,45,.13), inset 0 0 0 2px white; }
.measure-arrow-width, .measure-arrow-height { position: absolute; z-index: 2; color: var(--wine); font-style: normal; font-weight: 850; line-height: 1; }
.measure-arrow-width { left: 9px; right: 9px; bottom: 3px; text-align: center; font-size: 16px; letter-spacing: 25px; }
.measure-arrow-height { top: 8px; bottom: 8px; right: 3px; display: flex; align-items: center; font-size: 16px; }
.measure-mode-label { color: var(--wine); font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.measure-mode-copy h4 { margin: 4px 0 7px; font-size: 11px; }
.measure-mode-copy ul { margin: 0; padding: 0; list-style: none; }
.measure-mode-copy li { position: relative; margin-top: 4px; padding-left: 9px; color: #746a64; font-size: 8px; line-height: 1.4; }
.measure-mode-copy li::before { content: ""; position: absolute; width: 3px; height: 3px; left: 0; top: .48em; border-radius: 50%; background: var(--wine); }
.measure-mode-copy li strong { color: #3a312e; }
.measure-guide-footer { margin-top: 13px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #e5ddd7; }
.measure-guide-footer p { margin: 0; max-width: 590px; color: #786e68; font-size: 8px; line-height: 1.5; }
.measure-guide-footer p strong { color: #382f2c; }
.measure-guide-footer button { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #cdbdc3; border-radius: 9px; color: var(--wine); background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.measure-guide-footer button span { margin-left: 5px; }

.faq-section { padding: 28px 25px 32px; background: #fffdfa; border-top: 1px solid #ded8d1; }
.faq-head > span { display: block; color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.faq-head h3 { margin: 8px 0 0; color: var(--ink); font: 400 clamp(23px, 2vw, 29px)/1.2 Georgia, serif; }
.faq-head p { margin: 10px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.faq-item { border-top: 1px solid #e6ded7; }
.faq-item:last-child { border-bottom: 1px solid #e6ded7; }
.faq-item summary { position: relative; padding: 17px 35px 17px 0; color: #382e2c; font-size: 14px; font-weight: 750; line-height: 1.45; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary > span { position: absolute; top: 17px; right: 2px; width: 21px; height: 21px; display: grid; place-items: center; color: var(--wine); font-size: 23px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary > span { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--wine); }
.faq-item summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
.faq-item > p { margin: 0; padding: 0 30px 18px 0; color: #746b65; font-size: 13px; line-height: 1.75; }
.faq-item > p strong { color: #382e2c; }

.wireless-controller-option { margin-top: 18px; padding: 14px; display: grid; grid-template-columns: 18px 54px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; cursor: pointer; }
.wireless-controller-option.selected { border-color: var(--wine); background: #faf4f6; }
.wireless-controller-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--wine); }
.wireless-controller-option input:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.wireless-controller-option img { width: 54px; height: 64px; object-fit: contain; }
.wireless-controller-copy { min-width: 0; }
.wireless-controller-copy small, .wireless-controller-copy strong, .wireless-controller-copy > span { display: block; }
.wireless-controller-copy small { color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.wireless-controller-copy strong { margin-top: 5px; font-size: 13px; line-height: 1.4; }
.wireless-controller-copy > span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.wireless-controller-price { grid-column: 3; color: var(--wine); font-size: 14px; font-weight: 800; }
.wireless-controller-detail { margin-top: 24px; padding: clamp(22px, 3vw, 38px); display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: #fffdfa; }
.wireless-controller-detail figure { margin: 0; }
.wireless-controller-detail img { display: block; width: 100%; max-height: 230px; object-fit: contain; }
.wireless-controller-badge { display: inline-block; padding: 7px 11px; color: var(--wine); background: #f4e8ed; border-radius: 20px; font-size: 12px; font-weight: 800; }
.wireless-controller-detail h3 { margin: 14px 0 0; color: var(--ink); font: 400 clamp(24px, 2.5vw, 31px)/1.2 Georgia, serif; }
.wireless-controller-detail p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.wireless-controller-detail p strong { color: var(--ink); }

.panel {
  padding: clamp(28px, 3vw, 48px);
  background: var(--card);
  border-left: 1px solid rgba(63,48,42,.11);
}

.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.panel-head > div { min-width: 0; }
.panel-head span { color: var(--wine); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.panel-head h2 { margin: 7px 0 0; font: 400 clamp(25px, 2vw, 34px)/1.1 Georgia, serif; }
.custom-order-note {
  max-width: 560px;
  margin: 10px 0 0;
  color: #746a64;
  font-size: 10.5px;
  line-height: 1.55;
}
.step-count { padding: 7px 10px; border-radius: 99px; background: #f5e7ec; }

.progress { display: flex; gap: 6px; margin: 24px 0 7px; }
.progress i { flex: 1; height: 3px; background: #e6e0da; border-radius: 3px; }
.progress i:first-child { background: var(--wine); }

.option-group { margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid #e4ded8; }
.option-group legend { width: 100%; padding: 0; font-size: 13px; font-weight: 800; }
.option-group legend > span { margin-right: 9px; color: var(--wine); font-size: 10px; letter-spacing: .05em; }
.option-group legend em { float: right; color: #988f89; font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }

.model-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.model-card {
  min-width: 0;
  border: 1px solid #ddd6cf;
  border-radius: 13px;
  background: #fff;
  padding: 8px 8px 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color .24s, box-shadow .24s, transform .24s;
}
.model-card:hover { transform: translateY(-2px); }
.model-card.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.08); }
.model-card strong, .model-card small { display: block; }
.model-card strong { margin-top: 8px; font-size: 9px; white-space: nowrap; }
.model-card small { margin-top: 3px; color: #958b85; font-size: 7px; }
.model-mini { height: 58px; display: block; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(60,46,40,.1); overflow: hidden; }
.mini-daynight { background: repeating-linear-gradient(to bottom, #d9d4cb 0 8px, rgba(255,255,255,.45) 8px 14px); }
.mini-panel {
  position: relative;
  background-color: #151515;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 20%, transparent 82%, rgba(0,0,0,.18)),
    url("assets/pannello/hd/dhj-01-1.webp");
  background-position: center;
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 105px 105px;
}
.mini-panel::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 8px rgba(255,255,255,.1), inset -5px 0 6px rgba(0,0,0,.18); }
.mini-roman {
  background-color: #9d9ca8;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 20%, transparent 82%, rgba(45,39,36,.08)),
    repeating-linear-gradient(11deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(101deg, rgba(42,36,33,.07) 0 1px, transparent 1px 5px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.measure-inputs { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.measure-inputs label > span:first-child { display: block; margin: 0 0 7px; color: #756c66; font-size: 9px; }
.number-wrap { display: flex; align-items: center; border: 1px solid #ddd5ce; border-radius: 10px; background: white; overflow: hidden; transition: border-color .2s; }
.number-wrap:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(115,11,45,.06); }
.number-wrap input { width: 100%; padding: 12px 4px 12px 13px; border: 0; outline: 0; background: transparent; font-weight: 750; }
.number-wrap b { padding-right: 12px; color: #9b918b; font-size: 9px; }
.dimension-limit-hint {
  display: block;
  margin-top: 8px;
  color: #8d837c;
  font-size: 10px;
  line-height: 1.45;
}
.size-limit-banner {
  margin-top: 10px;
  padding: 10px 10px 10px 11px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  border: 1px solid #dfb79a;
  border-radius: 11px;
  color: #5b3524;
  background: linear-gradient(135deg, #fff8f1, #fffdf9);
  box-shadow: 0 7px 20px rgba(91,53,36,.08);
}
.size-limit-banner[hidden] { display: none; }
.size-limit-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a84f29;
  font-size: 13px;
  font-weight: 900;
}
.size-limit-banner p, .size-limit-banner strong, .size-limit-banner p span { display: block; }
.size-limit-banner p { margin: 0; font-size: 10px; line-height: 1.4; }
.size-limit-banner strong { margin-bottom: 2px; color: #733c24; font-size: 10.5px; }
.size-limit-banner button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #82533d;
  background: rgba(168,79,41,.09);
  font: 700 16px/1 Arial, sans-serif;
  cursor: pointer;
}
.size-limit-banner button:hover { background: rgba(168,79,41,.16); }
.measure-help { width: 100%; margin-top: 11px; padding: 0; border: 0; background: transparent; color: var(--wine); display: flex; justify-content: space-between; font-size: 9px; font-weight: 750; cursor: pointer; }
.cassette-size-card { margin-top: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #ded6cf; border-radius: 10px; background: linear-gradient(135deg,#f6f1eb,#fff); }
.cassette-size-card span, .cassette-size-card small, .cassette-size-card strong { display: block; }
.cassette-size-card small { color: var(--wine); font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.cassette-size-card strong { margin-top: 3px; color: #332b28; font-size: 11px; }
.cassette-size-card em { color: #8d837c; font-size: 7px; font-style: normal; line-height: 1.35; text-align: right; }

.sub-label { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 9px; color: #766c67; }
.sub-label strong { color: #332b28; font-size: 9px; }
.system-label { margin-top: 23px; }
.daynight-catalog[hidden], .panel-catalog[hidden], .roman-catalog[hidden] { display: none; }
.roman-mode-label { margin-top: 18px; }
.roman-mode-buttons {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.roman-mode-button {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid #ded7d0;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.roman-mode-button:hover { transform: translateY(-1px); }
.roman-mode-button.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.08); }
.roman-mode-button > span:last-child,
.roman-mode-button strong,
.roman-mode-button small { display: block; min-width: 0; }
.roman-mode-button strong { font-size: 8px; }
.roman-mode-button small { margin-top: 3px; overflow: hidden; color: #948a84; font-size: 6.5px; text-overflow: ellipsis; white-space: nowrap; }
.roman-mode-preview {
  height: 36px;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #b8d0d4, #f5e7d7 54%, #7e9b83);
  box-shadow: inset 0 0 0 1px rgba(54,44,39,.1);
}
.roman-mode-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--fabric);
  background-image: var(--fabric-texture);
  background-position: center;
  background-size: 82px 82px;
  background-blend-mode: soft-light;
}
.roman-mode-button[data-roman-mode="oscurante"] .roman-mode-preview::after { opacity: .96; }
.roman-mode-button[data-roman-mode="trasparente"] .roman-mode-preview::after { opacity: .48; }
.series-selector {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.series-button {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid #ddd5ce;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.series-button:hover { transform: translateY(-1px); }
.series-button.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.07); }
.series-button strong, .series-button small { display: block; overflow: hidden; text-overflow: ellipsis; }
.series-button strong { font-size: 8px; white-space: nowrap; }
.series-button small { margin-top: 3px; color: #948a84; font-size: 6.5px; white-space: nowrap; }
.fabric-code-label { margin-top: 16px; }
.fabric-code-label strong {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--wine);
  background: #f5e7ec;
  font-weight: 850;
  letter-spacing: .03em;
}
.daynight-variants {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.panel-variants {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.panel-series-selector { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.panel-variant-sample {
  height: 46px;
  background-repeat: no-repeat;
  background-size: cover;
}
.fabric-variant {
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #ded7d0;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fabric-variant:hover { transform: translateY(-1px); }
.fabric-variant.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.08); }
.fabric-variant-sample {
  height: 38px;
  display: block;
  border-radius: 5px;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(54,44,39,.08);
}
.fabric-variant strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #514743;
  font-size: 6.8px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roman-variants {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.roman-variant {
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #ded7d0;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.roman-variant:hover { transform: translateY(-1px); }
.roman-variant.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.08); }
.roman-variant-sample {
  height: 46px;
  display: block;
  border-radius: 5px;
  background-position: center;
  background-repeat: repeat;
  background-size: 86px 86px;
  background-blend-mode: soft-light;
  filter: saturate(.94) contrast(1.06);
  box-shadow: inset 0 0 0 1px rgba(54,44,39,.08);
}
.roman-variant strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #514743;
  font-size: 7.2px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.fabric-palette[hidden] { display: none; }
.swatch { width: 29px; height: 29px; padding: 0; border: 2px solid var(--card); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #d0c7c0; cursor: pointer; transition: .2s; }
.swatch.active { box-shadow: 0 0 0 2px var(--wine); transform: scale(.9); }
.palette-note { display: block; margin-top: 9px; color: #9a9089; font-size: 7px; line-height: 1.4; }

.finish-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.system-palette[hidden] { display: none; }
.finish { min-width: 0; padding: 9px 6px; border: 1px solid #ded7d0; border-radius: 9px; background: #fff; font-size: 8px; cursor: pointer; }
.finish i { width: 9px; height: 9px; display: inline-block; margin-right: 4px; vertical-align: -1px; border-radius: 50%; background: var(--finish); box-shadow: 0 0 0 1px rgba(45,38,33,.2); }
.finish.active { border-color: var(--wine); color: var(--wine); font-weight: 750; }

.mount-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.mount { padding: 13px; border: 1px solid #ded7d0; border-radius: 11px; background: white; display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; text-align: left; cursor: pointer; }
.mount.active { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(115,11,45,.06); }
.mount-icon { grid-row: 1 / 3; width: 30px; height: 30px; position: relative; border: 1px solid #d4cbc3; border-radius: 7px; }
.mount-icon::before, .mount-icon::after { content: ""; position: absolute; background: var(--wine); }
.wall-icon::before { width: 3px; height: 20px; left: 6px; top: 5px; }
.wall-icon::after { width: 14px; height: 4px; left: 9px; top: 8px; }
.ceiling-icon::before { width: 20px; height: 3px; left: 5px; top: 6px; }
.ceiling-icon::after { width: 4px; height: 15px; left: 13px; top: 9px; }
.mount strong { font-size: 9px; align-self: end; }
.mount small { color: #958b85; font-size: 7px; align-self: start; }

.control-card {
  margin: 26px 0 0;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3ede6, #fbf9f5);
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 13px;
  align-items: center;
}
.remote-art { width: 36px; height: 54px; justify-self: center; border-radius: 11px; background: linear-gradient(140deg, #fff, #cfc8c0); box-shadow: 4px 6px 12px rgba(48,37,32,.2), inset 0 0 0 1px rgba(70,55,47,.12); display: flex; flex-direction: column; align-items: center; padding-top: 8px; gap: 5px; transform: rotate(-6deg); }
.remote-art span { width: 8px; height: 8px; background: var(--wine); border-radius: 50%; }
.remote-art i { width: 13px; height: 3px; background: #99928b; border-radius: 5px; }
.control-card small { color: var(--wine); font-size: 7px; font-weight: 850; letter-spacing: .11em; }
.control-card strong { display: block; margin-top: 3px; font-size: 10px; }
.control-card p { margin: 4px 0 0; color: #7e756f; font-size: 8px; }
.included-pill { padding: 6px 8px; border-radius: 99px; color: #246b49; background: #ddf3e7; font-size: 7px; font-weight: 850; }

.price-box { margin-top: 18px; padding: 20px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--wine), var(--wine-dark)); box-shadow: 0 15px 30px rgba(103,9,40,.18); }
.price-box small, .price-box span { display: block; }
.price-box small { opacity: .72; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.price-box strong { display: block; margin: 7px 0 4px; font: 400 23px/1 Georgia, serif; }
.price-box > div > span { opacity: .68; font-size: 8px; }
.price-rate-rule { margin: 10px 0 0; font-size: 11px; line-height: 1.5; opacity: .85; }
.price-box button { width: 100%; margin-top: 16px; padding: 12px 13px; border: 0; border-radius: 9px; color: var(--wine); background: white; display: flex; justify-content: space-between; font-size: 9px; font-weight: 850; cursor: pointer; }

.install-help { margin-top: 13px; }

.real-system {
  margin: clamp(70px, 9vw, 145px) clamp(24px, 5vw, 100px) 0;
}

.real-system-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .65fr);
  gap: 8vw;
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 70px);
}
.real-system-head h2 {
  margin: 0;
  font: 400 clamp(38px, 5vw, 76px)/.98 Georgia, serif;
  letter-spacing: -.035em;
}
.real-system-head > p {
  margin: 0 0 5px;
  color: #756c66;
  font-size: 13px;
  line-height: 1.75;
}

.real-products-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr;
  grid-auto-flow: dense;
  gap: 18px;
}

.real-card {
  min-height: 470px;
  display: grid;
  grid-template-rows: 55% 45%;
  overflow: hidden;
  border: 1px solid rgba(72,54,47,.13);
  border-radius: 22px;
  background: #fffdfa;
  box-shadow: 0 20px 55px rgba(64,46,38,.07);
}
.real-card-tall { grid-row: span 2; min-height: 958px; grid-template-rows: 64% 36%; }
.real-card-wide { grid-column: span 2; min-height: 440px; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr; }
.real-card figure { margin: 0; min-height: 0; overflow: hidden; background: #f0ebe5; }
.real-card figure img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.real-card:hover figure img { transform: scale(1.025); }
.real-card-tall figure img { object-position: center 58%; }
.real-card:nth-child(2) figure img { object-fit: contain; padding: 12px; }
.real-card:nth-child(3) figure img { object-position: center 22%; }
.real-card-wide figure img { object-fit: contain; padding: 18px; }

.real-card-copy { position: relative; padding: clamp(23px, 2.2vw, 38px); }
.real-number { position: absolute; right: 27px; top: 28px; color: #b4aaa3; font-size: 10px; }
.real-card h3 { margin: 0; padding-right: 35px; font: 400 clamp(23px, 2vw, 31px)/1.08 Georgia, serif; }
.real-card p { margin: 14px 0 0; color: #766c66; font-size: 11px; line-height: 1.65; }
.real-card ul { margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.real-card li, .feature-tags span { padding: 7px 9px; border-radius: 999px; color: #625852; background: #f0ebe5; font-size: 8px; }
.feature-tags { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.included-proof, .future-pill { display: inline-flex; margin-top: 18px; padding: 8px 11px; border-radius: 999px; color: #246b49; background: #ddf3e7; font-size: 8px; font-weight: 800; }
.future-pill { color: #76591d; background: #f8ebc9; }
.text-link { margin-top: 18px; padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; color: var(--wine); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }

.smart-card {
  min-height: 440px;
  grid-template-rows: 50% 50%;
  color: white;
  background: linear-gradient(145deg, #7c0b31, #3f0519);
}
.smart-card .real-card-copy p { color: rgba(255,255,255,.72); }
.smart-card .real-number { color: rgba(255,255,255,.55); }
.smart-visual { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 35px; position: relative; overflow: hidden; }
.smart-visual::before { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; top: -90px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.018); }
.smart-visual span, .smart-visual i, .smart-visual b { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 17px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.smart-visual span { grid-row: span 2; font: 400 32px Georgia, serif; }
.smart-visual i { font-style: normal; font-size: 13px; }
.smart-visual b { font-size: 28px; }

.supplier-note { margin-top: 18px; padding: 18px 22px; display: flex; gap: 30px; justify-content: space-between; border: 1px solid #ddd5ce; border-radius: 15px; background: #f3eee8; }
.supplier-note strong { flex: 0 0 auto; color: var(--wine); font-size: 10px; }
.supplier-note span { color: #746a64; font-size: 10px; line-height: 1.5; text-align: right; }

.promise-row { margin: clamp(54px, 8vw, 120px) clamp(25px, 5vw, 100px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(25px, 4vw, 75px); }
.promise-row article { position: relative; padding-top: 20px; border-top: 1px solid #cfc5bc; }
.promise-row article > span { position: absolute; right: 0; top: 19px; color: #aaa099; font-size: 10px; }
.promise-row h3 { margin: 0; font: 400 clamp(23px, 2vw, 33px)/1.15 Georgia, serif; }
.promise-row p { margin: 13px 0 0; color: #776e68; font-size: 12px; line-height: 1.7; }

dialog { border: 0; padding: 0; border-radius: 22px; color: var(--ink); background: var(--card); box-shadow: 0 28px 90px rgba(32,21,19,.35); }
dialog::backdrop { background: rgba(31,22,20,.58); backdrop-filter: blur(7px); }
.summary-dialog, .measure-dialog { width: min(540px, calc(100vw - 30px)); padding: 36px; }
.photo-dialog { width: min(880px, calc(100vw - 30px)); overflow: hidden; background: #171412; color: white; }
.photo-dialog .dialog-close { z-index: 3; border-color: rgba(255,255,255,.36); color: white; background: rgba(20,16,14,.42); backdrop-filter: blur(8px); }
.photo-dialog figure { height: min(68vh, 680px); margin: 0; display: grid; place-items: center; background: #0f0d0c; }
.photo-dialog figure img { width: 100%; height: 100%; display: block; object-fit: contain; }
.photo-dialog-copy { padding: 22px 28px 25px; }
.photo-dialog-copy h2 { margin-bottom: 7px; font-size: 29px; }
.photo-dialog-copy > p:last-child { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.55; }
.install-dialog { width: min(780px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 36px; overflow: auto; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border: 1px solid #ddd4cd; border-radius: 50%; background: transparent; font-size: 20px; cursor: pointer; }
dialog h2 { margin: 0 0 21px; font: 400 35px/1.05 Georgia, serif; }
.summary-preview { height: 115px; border-radius: 13px; overflow: hidden; background: url("assets/ambiente-tuttoled.jpg") center 42% / cover; position: relative; }
.summary-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2)); }
.summary-preview > div { width: 47%; height: 78%; margin: 9px auto 0; background: repeating-linear-gradient(to bottom, var(--fabric) 0 13px, rgba(255,255,255,.35) 13px 21px); border-top: 7px solid var(--system); box-shadow: 0 9px 12px rgba(24,18,16,.22); }
.summary-preview > div.roman-transparent-preview { opacity: .64; filter: saturate(.9) brightness(1.05); }
.summary-dialog dl { margin: 20px 0; }
.summary-dialog dl > div { padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #e8e1db; font-size: 11px; }
.summary-dialog dt { color: #857b75; }
.summary-dialog dd { margin: 0; font-weight: 750; }
.summary-dialog dl > .summary-price-row { padding-top: 14px; border-bottom: 0; color: var(--wine); font-size: 14px; }
.summary-dialog .summary-price-row dt { color: var(--wine); font-weight: 800; }
.summary-dialog .summary-price-row dd { font: 400 21px/1 Georgia, serif; }
.summary-pricing-note { margin: -8px 0 16px; color: #857b75; font-size: 9px; line-height: 1.5; }
.summary-included { padding: 13px; border-radius: 10px; background: #f2ece6; }
.summary-included strong, .summary-included span { display: block; }
.summary-included strong { color: var(--wine); font-size: 9px; }
.summary-included span { margin-top: 4px; color: #756b65; font-size: 9px; }
.dialog-primary { width: 100%; margin-top: 17px; padding: 14px; border: 0; border-radius: 10px; color: #fff; background: var(--wine); font-size: 10px; font-weight: 800; cursor: pointer; }
.dialog-note { display: block; margin-top: 10px; color: #968c85; text-align: center; font-size: 8px; }

.measurement-diagram { height: 190px; border-radius: 14px; background: #eee8e1; display: grid; place-items: center; }
.diagram-window { width: 52%; height: 72%; border: 10px solid #c6b9ad; position: relative; background: linear-gradient(150deg, #d9ebef, #fafafa); box-shadow: inset 0 0 0 3px white; }
.diagram-window i:first-child { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 4px solid white; }
.diagram-window i:nth-child(2) { position: absolute; left: 0; right: 0; top: 50%; border-top: 4px solid white; }
.diagram-window b { position: absolute; left: -8px; right: -8px; top: 43%; color: var(--wine); text-align: center; font-size: 28px; }
.diagram-window em { position: absolute; top: -7px; bottom: -7px; right: -32px; color: var(--wine); display: flex; align-items: center; font-size: 28px; font-style: normal; }
.measure-dialog > p:not(.eyebrow) { color: #746b65; font-size: 11px; line-height: 1.65; }
.warning-card { padding: 12px; border-left: 3px solid #c18a1b; background: #fff6df; font-size: 9px; }
.warning-card strong, .warning-card span { display: block; }
.warning-card span { margin-top: 3px; color: #796b4d; }

.supplier-guide-image, .supplier-kit-image { width: 100%; display: block; border-radius: 14px; border: 1px solid #e2dad3; background: #f2eee9; }
.supplier-kit-image { max-height: 330px; object-fit: contain; }
.italian-guide-list { margin: 14px 0; display: grid; gap: 7px; }
.italian-guide-list > div { padding: 11px; display: flex; gap: 11px; align-items: start; border-radius: 10px; background: #f3eee8; }
.italian-guide-list b { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--wine); font-size: 8px; }
.italian-guide-list p { margin: 0; }
.italian-guide-list strong, .italian-guide-list span { display: block; }
.italian-guide-list strong { font-size: 9px; }
.italian-guide-list span { margin-top: 3px; color: #7d736d; font-size: 8px; line-height: 1.45; }

.install-variants { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.install-variants > div { padding: 14px; display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: center; border: 1px solid #e0d8d1; border-radius: 12px; }
.install-variants p { margin: 0; }
.install-variants strong, .install-variants small { display: block; }
.install-variants strong { font-size: 10px; }
.install-variants small { margin-top: 4px; color: #7c726c; font-size: 8px; line-height: 1.45; }
.install-sketch { width: 66px; height: 62px; display: block; position: relative; border: 5px solid #c7bbb0; background: #e4edf0; }
.install-sketch::before { content: ""; position: absolute; left: -2px; right: -2px; height: 8px; background: var(--wine); box-shadow: 0 2px 4px rgba(44,33,29,.18); }
.install-sketch::after { content: ""; position: absolute; left: 3px; right: 3px; background: repeating-linear-gradient(to bottom, #ddd2c1 0 6px, rgba(255,255,255,.5) 6px 10px); }
.inside-sketch::before { top: 0; }
.inside-sketch::after { top: 8px; bottom: 2px; }
.above-sketch::before { top: -13px; left: -8px; right: -8px; }
.above-sketch::after { top: 0; bottom: 0; left: -3px; right: -3px; }

.install-steps { margin: 18px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.install-steps li { padding: 12px; display: flex; gap: 10px; border-radius: 10px; background: #f4efe9; }
.install-steps li > span { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; color: white; background: var(--wine); border-radius: 50%; font-size: 8px; font-weight: 800; }
.install-steps p { margin: 0; }
.install-steps strong, .install-steps small { display: block; }
.install-steps strong { font-size: 9px; }
.install-steps small { margin-top: 3px; color: #7d736d; font-size: 8px; line-height: 1.4; }

/* Passaggio leggibilità v0.8.9: testi più grandi senza alterare il configuratore. */
.brand small { font-size: 11px; }
.demo-flag { font-size: 13px; }
.quiet-button { font-size: 13px; }
.eyebrow { font-size: 12px; }
.hero-copy { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); }
.hero-copy h1 { font-size: clamp(48px, 5.7vw, 96px); line-height: .96; }
.lead { max-width: 680px; font-size: clamp(17px, 1.28vw, 20px); line-height: 1.68; }
.view-button { font-size: 12px; }
.product-kicker { font-size: 12px; }
.product-label small { font-size: 12px; }
.cassette-tech-measures small { font-size: 9px; line-height: 1.15; }
.cassette-tech-measures strong { font-size: 12px; }
.real-product-chip { font-size: 11px; }
.measure { font-size: 12px; }
.side-layer-note { font-size: 12px; }
.side-object-height,
.side-object-width,
.side-object-cassette-height,
.side-object-cassette-depth,
.roman-tech-height-line,
.roman-tech-width-line,
.roman-tech-cassette-height,
.roman-tech-cassette-depth { font-size: 11px; }
.side-tech-heading span { font-size: 11px; }
.side-tech-heading small { font-size: 11px; }
.side-tech-specs small { font-size: 9.5px; }
.side-tech-specs strong { font-size: 13px; }
.side-tech-specs em { font-size: 9.5px; }
.side-tech-specs .side-tech-spec-wide strong { font-size: 15px; }
.motor-button small, .light-button small, .wall-button small { font-size: 11px; }
.motor-button strong, .light-button strong, .wall-button strong { font-size: 14px; }
.room-color-palette-head strong { font-size: 13px; }
.room-color-palette-head small, .room-color-note { font-size: 10px; }
.room-swatch span { font-size: 9.5px; }
.visual-disclaimer { font-size: 10.5px; }
.model-gallery-head span, .model-gallery-head small { font-size: 11px; }
.model-photo strong { font-size: 12px; }
.model-photo small { font-size: 10px; }
.included-strip strong { font-size: 13px; }
.included-strip small { font-size: 11px; }
.measure-guide-head > div > span { font-size: 11px; }
.measure-tool-pill { font-size: 11px; }
.measure-guide-intro { font-size: 12px; }
.measure-mode-label { font-size: 10px; }
.measure-mode-copy h4 { font-size: 14px; }
.measure-mode-copy li { font-size: 11px; line-height: 1.55; }
.measure-guide-footer p { font-size: 11px; }
.measure-guide-footer button { font-size: 11px; }
.panel-head span { font-size: 12px; }
.option-group legend { font-size: 15px; }
.option-group legend em { font-size: 11px; }
.model-card strong { font-size: 12px; }
.model-card small { font-size: 10px; line-height: 1.35; }
.measure-inputs label > span:first-child,
.number-wrap b,
.measure-help { font-size: 11.5px; }
.cassette-size-card small { font-size: 10px; }
.cassette-size-card strong { font-size: 13px; }
.cassette-size-card em { font-size: 10px; }
.sub-label, .sub-label strong { font-size: 11.5px; }
.roman-mode-button strong { font-size: 11px; }
.roman-mode-button small { font-size: 9.5px; }
.series-button strong { font-size: 11px; }
.series-button small { font-size: 9.5px; }
.fabric-variant strong, .roman-variant strong { font-size: 10.5px; }
.palette-note { font-size: 10.5px; }
.finish { font-size: 11px; }
.mount strong { font-size: 12px; }
.mount small { font-size: 10px; }
.control-card small { font-size: 10px; }
.control-card strong { font-size: 13px; }
.control-card p { font-size: 11px; line-height: 1.5; }
.included-pill { font-size: 10px; }
.price-box small, .price-box > div > span { font-size: 11px; }
.price-box button { font-size: 12px; }
.real-system-head > p { font-size: 15px; }
.real-number { font-size: 12px; }
.real-card p { font-size: 14px; line-height: 1.7; }
.real-card li, .feature-tags span { font-size: 11px; }
.included-proof, .future-pill { font-size: 11px; }
.text-link { font-size: 12px; }
.supplier-note strong, .supplier-note span { font-size: 12px; }
.promise-row p { font-size: 14px; }
.photo-dialog-copy > p:last-child { font-size: 13px; }
.summary-dialog dl > div { font-size: 14px; }
.summary-pricing-note { font-size: 12px; }
.summary-included strong, .summary-included span { font-size: 12px; }
.dialog-primary { font-size: 13px; }
.dialog-note { font-size: 11px; }
.measure-dialog > p:not(.eyebrow) { font-size: 13px; }
.warning-card { font-size: 12px; }
.italian-guide-list b { font-size: 10px; }
.italian-guide-list strong { font-size: 12px; }
.italian-guide-list span { font-size: 11px; }
.install-variants strong { font-size: 13px; }
.install-variants small { font-size: 11px; }
.install-steps li > span { font-size: 10px; }
.install-steps strong { font-size: 12px; }
.install-steps small { font-size: 11px; }

@media (max-width: 1180px) {
  .configurator { grid-template-columns: 1fr; }
  .stage { position: relative; top: auto; min-height: 0; max-height: none; }
  .panel { border-left: 0; border-top: 1px solid #ded7d0; }
  .panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 35px; }
  .panel-head, .progress, .wireless-controller-option, .price-box { grid-column: 1 / -1; }
  .control-card { align-self: end; }
  .real-products-grid { grid-template-columns: 1fr 1fr; }
  .real-card-tall { grid-row: span 1; min-height: 560px; }
  .real-card-wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .topbar { height: 64px; padding: 0 16px; grid-template-columns: 1fr auto; }
  .demo-flag { display: none; }
  .quiet-button { padding: 8px 12px; font-size: 12px; }
  .hero-copy { display: block; padding: 42px 20px 30px; }
  .hero-copy .eyebrow { margin-bottom: 15px; }
  h1 { font-size: clamp(43px, 13vw, 66px); }
  .lead { margin-top: 22px; }
  .configurator { margin: 0 8px; border-radius: 17px; }
  .stage { aspect-ratio: 1 / 1.05; background-size: cover; background-position: 43% center; }
  .recess-bottom-depth, .foreground-sofa { background-size: cover; background-position: 43% center; }
  .recess-bottom-depth { clip-path: polygon(0 71.5%, 100% 71.5%, 100% 76.4%, 0 76.4%); }
  .foreground-sofa { clip-path: polygon(0 72%, 9% 73%, 17% 79%, 25% 100%, 0 100%); }
  .stage-toolbar { top: 12px; left: 12px; }
  .stage-toolbar { max-width: calc(100% - 24px); flex-wrap: wrap; border-radius: 17px; }
  .view-button { padding: 8px 9px; font-size: 11px; }
  .product-label { top: 58px; right: 13px; }
  .stage-actions { left: 12px; right: 12px; bottom: 37px; }
  .motor-button, .light-button, .wall-button { min-width: 0; flex: 1; padding: 8px; }
  .room-color-control { min-width: 0; flex: 1; }
  .wall-button { height: 100%; }
  .motor-icon, .light-button > span:first-child, .wall-color-icon { width: 29px; height: 29px; flex: 0 0 29px; }
  .room-color-palette { left: auto; right: 0; width: min(360px, calc(100vw - 32px)); }
  .room-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-disclaimer { left: 13px; right: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .included-strip { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
  .panel { display: block; padding: 28px 18px; }
  .model-card { padding: 6px; }
  .model-mini { height: 48px; }
  .model-card strong { white-space: normal; min-height: 21px; }
  .model-card small { display: none; }
  .promise-row { grid-template-columns: 1fr; margin: 60px 24px; }
  .real-product-chip { display: none; }
  .real-system { margin: 64px 15px 0; }
  .real-system-head { display: block; }
  .real-system-head > p { margin-top: 20px; }
  .real-products-grid { grid-template-columns: 1fr; }
  .real-card, .real-card-tall, .real-card-wide { grid-column: auto; min-height: 520px; grid-template-columns: 1fr; grid-template-rows: 58% 42%; }
  .supplier-note { display: block; }
  .supplier-note span { display: block; margin-top: 8px; text-align: left; }
  .summary-dialog, .measure-dialog, .install-dialog { padding: 32px 22px 24px; }
  .model-gallery { padding: 19px 16px 22px; border-top-width: 8px; }
  .model-gallery-head { margin-bottom: 14px; align-items: start; }
  .model-gallery-head small { max-width: 120px; text-align: right; line-height: 1.35; }
  .model-gallery-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; padding-bottom: 5px; overflow-x: auto; scroll-snap-type: x proximity; }
  .model-gallery[data-model="romana"] .model-gallery-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .model-gallery[data-model="giorno-notte"] .model-gallery-grid { grid-template-columns: repeat(9, minmax(160px, 1fr)); }
  .model-gallery[data-model="farfalla"] .model-gallery-grid { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
  .model-photo { scroll-snap-align: start; }
  .model-photo-media { height: 88px; }
  .model-gallery[data-model="giorno-notte"] .model-photo-media { height: 148px; }
  .model-gallery[data-model="romana"] .model-photo-media { height: 112px; }
  .model-photo > span:last-child { padding: 8px; }
  .measure-guide-inline { padding: 24px 18px; }
  .faq-section { padding: 26px 18px 28px; }
  .wireless-controller-detail { grid-template-columns: 1fr; gap: 20px; }
  .wireless-controller-detail img { max-height: 180px; }
  .faq-item > p { padding-right: 0; }
  .measure-guide-head { display: block; }
  .measure-tool-pill { width: max-content; margin-top: 10px; }
  .measure-guide-grid { grid-template-columns: 1fr; }
  .measure-guide-footer { display: block; }
  .measure-guide-footer button { width: 100%; margin-top: 12px; }
  .photo-dialog figure { height: 62vh; }
  .photo-dialog-copy { padding: 19px 22px 22px; }
  .install-variants, .install-steps { grid-template-columns: 1fr; }
  .series-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daynight-variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roman-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cassette-tech-measures { top: -43px; gap: 3px; }
  .cassette-tech-measures > span { padding: 5px 4px; }
  .cassette-tech-measures small { font-size: 7.5px; }
  .cassette-tech-measures strong { font-size: 10px; }
  .cassette-size-card { align-items: flex-start; }
  .finish-buttons { grid-template-columns: repeat(2, 1fr); }
  .stage[data-view="prodotto"] .product-label { top: 58px; }
  .stage[data-view="laterale"] .product-label { top: 76px; }
  .side-product-inner { left: 27%; width: min(34%, var(--product-width)); }
  .side-layer-note { display: none; }
  .side-object-height { left: -20px; }
  .side-object-height span { font-size: 8.5px; }
  .side-object-width { bottom: -22px; font-size: 8.5px; }
  .side-object-cassette-height { right: -31px; font-size: 8.5px; }
  .side-object-cassette-depth { top: -17px; right: -19px; width: 52px; font-size: 8.5px; }
  .side-tech-heading { top: 82px; left: 14px; }
  .side-tech-heading strong { font-size: 16px; }
  .side-tech-heading small { max-width: 165px; font-size: 9.5px; }
  .side-tech-specs { top: 27%; right: 10px; width: 43%; grid-template-columns: 1fr; gap: 5px; }
  .side-tech-specs > div { padding: 7px 8px; border-radius: 8px; }
  .side-tech-specs .side-tech-spec-wide { grid-column: auto; }
  .side-tech-specs small { font-size: 8.5px; }
  .side-tech-specs strong { margin-top: 2px; font-size: 11px; }
  .side-tech-specs .side-tech-spec-wide strong { font-size: 12px; }
  .side-tech-specs em { display: none; }
  .roman-tech-assembly { top: 25%; left: 31%; width: 42%; height: 56%; transform: translateX(-50%) rotateY(-36deg) rotateX(.5deg); }
  .roman-tech-height-line { left: -20px; }
  .roman-tech-height-line span { font-size: 8.5px; }
  .roman-tech-width-line { bottom: -22px; font-size: 8.5px; }
  .roman-tech-cassette-height { right: -31px; font-size: 8.5px; }
  .roman-tech-cassette-depth { top: -17px; right: -19px; width: 52px; font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Laterale + misure: usa direttamente la miniatura reale della serie selezionata. */
.stage[data-view="laterale"] .side-product-inner,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-assembly {
  top: var(--product-top);
  left: 40%;
  width: min(36%, var(--product-width));
  height: var(--product-height);
  transform: translateX(-50%);
  transform-style: flat;
  filter: none;
}
.stage[data-view="laterale"] .side-cassette-3d,
.stage[data-view="laterale"] .side-fabric,
.stage[data-view="laterale"] .side-bottom-3d,
.stage[data-view="laterale"] .panel-side-fabric,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-fabric,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-bottom {
  display: none;
}
.side-reference-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(83,71,64,.12);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 19px 36px rgba(48,39,34,.17);
  pointer-events: none;
}
.stage[data-model="farfalla"][data-view="laterale"] .side-reference-panel {
  object-position: left center;
}
.stage[data-view="laterale"] .side-object-height,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-height-line,
.stage[data-view="laterale"] .side-object-width,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-width-line,
.stage[data-view="laterale"] .side-object-cassette-height,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette-height,
.stage[data-view="laterale"] .side-object-cassette-depth,
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette-depth {
  z-index: 8;
}
.stage[data-model="giorno-notte"][data-view="laterale"] .side-object-height {
  top: 7%;
  bottom: 7%;
  left: 17%;
}
.stage[data-model="giorno-notte"][data-view="laterale"] .side-object-width {
  left: 20%;
  right: 16%;
  bottom: 4%;
}
.stage[data-model="giorno-notte"][data-view="laterale"] .side-object-cassette-height {
  top: 7%;
  right: 13%;
  height: 10%;
  min-height: 28px;
}
.stage[data-model="giorno-notte"][data-view="laterale"] .side-object-cassette-depth {
  top: 4%;
  right: 12%;
  transform: rotate(-13deg);
}
.stage[data-model="farfalla"][data-view="laterale"] .side-object-height {
  top: 7%;
  bottom: 6%;
  left: 7%;
}
.stage[data-model="farfalla"][data-view="laterale"] .side-object-width {
  left: 9%;
  right: 9%;
  bottom: 5%;
}
.stage[data-model="farfalla"][data-view="laterale"] .side-object-cassette-height {
  top: 7%;
  right: 7%;
  height: 11%;
  min-height: 28px;
}
.stage[data-model="farfalla"][data-view="laterale"] .side-object-cassette-depth {
  top: 4%;
  right: 6%;
  transform: rotate(-13deg);
}
.stage[data-model="romana"][data-view="laterale"] .roman-tech-height-line {
  top: 2%;
  bottom: 3%;
}
.stage[data-model="romana"][data-view="laterale"] .roman-tech-width-line {
  bottom: -20px;
}
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette-height {
  top: 0;
  height: 10%;
  min-height: 28px;
}
.stage[data-model="romana"][data-view="laterale"] .roman-tech-cassette-depth {
  top: -13px;
  right: -20px;
  transform: rotate(-13deg);
}

/* 0.8.15 — La fascia frontale termina a filo sotto il cassonetto.
   Nessuna cornice, labbro o sporgenza inferiore, su qualsiasi modello. */
.cassette {
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  box-shadow:
    0 3px 5px rgba(48,39,34,.23),
    inset 0 3px 2px rgba(255,255,255,.34);
}
.cassette-highlight {
  inset: 3px 3px 0;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset 0 2px 3px rgba(36,30,27,.2),
    0 -1px 0 rgba(255,255,255,.2);
}
.cassette-highlight::after,
.side-cassette-3d .side-cassette-insert::after,
.roman-tech-insert::after {
  background: linear-gradient(180deg,
    rgba(255,255,255,.25),
    rgba(255,255,255,.06) 34%,
    transparent 62%,
    rgba(43,36,33,.06));
}
.side-cassette-3d .side-box-front,
.roman-tech-box-front {
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,.34),
    0 3px 5px rgba(48,39,34,.18);
}
.side-cassette-3d .side-cassette-insert {
  inset: 3px 3px 0;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset 0 2px 3px rgba(36,30,27,.2),
    0 -1px 0 rgba(255,255,255,.2);
}
.side-cassette-3d .side-box-end,
.roman-tech-box-end {
  border-bottom: 0;
  border-radius: 0 2px 0 0;
}
.roman-tech-insert {
  inset: 4px 4px 0;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset 0 2px 3px rgba(36,30,27,.18),
    0 -1px rgba(255,255,255,.18);
}

@media (max-width: 720px) {
  .stage[data-view="laterale"] .side-product-inner,
  .stage[data-model="romana"][data-view="laterale"] .roman-tech-assembly {
    top: 25%;
    left: 28%;
    width: 42%;
    height: 56%;
  }
}

/* 0.8.19-R1 — Fasce più trasparenti, nitide e uniformi esclusivamente
   nella grande anteprima Ambiente di Giorno e Notte. */
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight {
  isolation: auto;
  background: rgba(250,248,243,.025);
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight-tile {
  background-size: 100% 100%;
  image-rendering: auto;
  backface-visibility: hidden;
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight-back {
  mix-blend-mode: multiply;
  opacity: .12;
  filter: saturate(1.16) contrast(1.1);
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight-front {
  mix-blend-mode: multiply;
  opacity: .98;
  filter: saturate(1.3) contrast(1.16) brightness(.985);
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight::after {
  background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 13%, transparent 85%, rgba(56,47,42,.07));
}

/* 0.8.19-R3 — Campioni Ambiente dedicati: l'alfa è applicata soltanto alla
   fascia bianca a rete. La fascia colorata resta piena, uniforme e nitida. */
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight {
  isolation: isolate;
  background: transparent;
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight-tile {
  background-image: var(--ambient-daynight-texture);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight-back {
  mix-blend-mode: normal;
  opacity: 1;
  filter: none;
  transition: opacity .7s ease, filter .7s ease;
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight-front {
  mix-blend-mode: normal;
  opacity: 1;
  filter: none;
  transition: filter .7s ease;
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .daynight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: rgba(29, 31, 32, .13);
  box-shadow: inset 0 0 28px rgba(25, 24, 23, .12);
  transition: opacity .7s ease;
}
.stage[data-model="giorno-notte"][data-view="ambiente"].light-filtered .daynight::before {
  opacity: 1;
}
.stage[data-model="giorno-notte"][data-view="ambiente"].light-filtered .daynight-back {
  filter: saturate(1.05) contrast(1.08) brightness(.84);
}
.stage[data-model="giorno-notte"][data-view="ambiente"].light-filtered .daynight-front {
  filter: saturate(1.04) contrast(1.06) brightness(.91);
}
.stage[data-model="giorno-notte"][data-view="ambiente"].light-filtered .blind-shell {
  filter: drop-shadow(0 17px 17px rgba(24, 20, 18, .34));
}
.stage[data-model="giorno-notte"][data-view="ambiente"] .cassette-highlight {
  background-image: var(--ambient-cassette-band-texture);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  filter: none;
}

/* Il cassonetto mantiene sempre lo stesso spessore visivo quando cambia
   la lunghezza della tenda. La larghezza continua invece a seguire la misura. */
.stage[data-view="ambiente"] .cassette {
  height: var(--ambient-cassette-height);
  min-height: var(--ambient-cassette-height);
}
.stage[data-view="ambiente"] .blind-track {
  top: calc(var(--ambient-cassette-height) - 1px);
}
.stage[data-view="prodotto"] .cassette {
  height: var(--product-cassette-height);
  min-height: var(--product-cassette-height);
}
.stage[data-view="prodotto"] .blind-track {
  top: calc(var(--product-cassette-height) - 1px);
}

/* R18 — Anteprima visibile durante la configurazione. */
:root { --preview-header-height: 76px; --preview-compact-height: 240px; --preview-scene-ratio: 1.5; }
.configurator { overflow: visible; }
.visual-column { border-radius: 25px 0 0 0; }
.panel { border-radius: 0 25px 0 0; }
.preview-shell { position: sticky; top: calc(var(--preview-header-height) + 12px); z-index: 10; overflow: hidden; background: #e9e2d9; border-radius: 25px 0 0 0; }
.preview-shell .stage { min-height: 0; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); }
.compact-preview-toolbar { display: none; }
.configurator-extras { grid-column: 1 / -1; min-width: 0; overflow: hidden; border-radius: 0 0 25px 25px; background: #e9e2d9; }
.configurator-extras .measure-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-config-bar { display: none; }
.live-preview-open { overflow: hidden; }
.live-preview-dialog { width: min(1120px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; background: #e9e2d9; }
.live-preview-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; background: var(--card); }
.live-preview-header h2 { margin: 0; font: 400 23px/1.2 Georgia, serif; }
.live-preview-header button, .compact-preview-toolbar button { border: 1px solid #dbcbd1; border-radius: 9px; background: #fff; color: var(--wine); font-size: 12px; font-weight: 800; cursor: pointer; }
.live-preview-header button { padding: 11px 13px; }
.live-preview-body { display: flex; justify-content: center; overscroll-behavior: contain; }
.live-preview-dialog .stage { flex: none; width: min(100%, calc((100vh - 110px) * var(--preview-scene-ratio))); width: min(100%, calc((100dvh - 110px) * var(--preview-scene-ratio))); min-height: 0; max-height: none; aspect-ratio: var(--preview-scene-ratio); }
.compact-preview-toolbar button:focus-visible, .live-preview-header button:focus-visible, .mobile-config-bar button:focus-visible { outline: 3px solid #a44464; outline-offset: 3px; }

@media (max-width: 1180px) {
  .visual-column, .panel { border-radius: 0; }
  .preview-shell { position: relative; top: auto; border-radius: 25px 25px 0 0; }
  .preview-shell .stage { max-height: none; }
  .compact-preview-toolbar { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; background: var(--card); color: var(--ink); }
  .compact-preview-toolbar > span { min-width: 0; font-size: 11px; line-height: 1.4; }
  .compact-preview-toolbar button { flex: none; padding: 8px 10px; font-size: 11px; }
  .preview-shell.preview-docked { position: fixed; top: var(--preview-header-height); left: 0; right: 0; height: var(--preview-compact-height); z-index: 40; border-radius: 0; border-bottom: 1px solid #d5c9c1; box-shadow: 0 8px 24px rgba(35,25,21,.14); }
  .preview-docked .compact-preview-toolbar { height: 40px; min-height: 40px; padding: 4px 12px; }
  .preview-docked .compact-preview-toolbar > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .preview-docked .compact-preview-toolbar button { padding: 7px 9px; }
  .preview-shell.preview-docked .stage { position: absolute; top: 40px; left: 50%; margin: 0; width: var(--preview-natural-width); height: var(--preview-natural-height); max-width: none; aspect-ratio: auto; transform: translateX(-50%) scale(var(--preview-scene-scale)); transform-origin: top center; pointer-events: none; }
  .preview-docked .stage-toolbar, .preview-docked .product-label, .preview-docked .stage-actions, .preview-docked .visual-disclaimer, .preview-docked .side-tech-heading, .preview-docked .side-tech-specs { display: none; }
  .mobile-config-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); color: white; background: var(--wine); box-shadow: 0 -5px 20px rgba(35,25,21,.16); }
  .mobile-config-bar[hidden] { display: none; }
  .mobile-config-bar small { display: block; font-size: 10px; opacity: .8; }
  .mobile-config-bar strong { display: block; margin-top: 3px; font: 400 24px/1.1 Georgia, serif; }
  .mobile-config-bar button { flex: none; padding: 13px 16px; border: 0; border-radius: 10px; background: #fff; color: var(--wine); font-size: 12px; font-weight: 800; cursor: pointer; }
  .panel { padding-bottom: 110px; }
  .has-preview-dock { scroll-padding-top: calc(var(--preview-header-height) + var(--preview-compact-height) + 16px); scroll-padding-bottom: 96px; }
  .panel input, .panel button { scroll-margin-block: 16px; }
}

@media (max-width: 720px) {
  :root { --preview-header-height: 64px; --preview-scene-ratio: 1.5; }
  .preview-shell { border-radius: 16px 16px 0 0; }
  .configurator-extras { border-radius: 0 0 16px 16px; }
  .configurator-extras .measure-guide-grid { grid-template-columns: 1fr; }
  .compact-preview-toolbar { padding: 8px 10px; }
  .compact-preview-toolbar > span { font-size: 10px; }
  .compact-preview-toolbar button { max-width: 154px; font-size: 10px; }
  .live-preview-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 15px; }
  .live-preview-header { padding: 10px 12px; }
  .live-preview-header h2 { font-size: 21px; }
  .live-preview-header button { padding: 10px; font-size: 11px; }
}

/* R19 — Scena intera, senza ritaglio laterale sul telefono. */
.scene-frame { position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate; background: var(--room-background) center / 100% 100% no-repeat; }
.stage::before { display: none; }
.scene-frame::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(17,10,9,.08), transparent 28%, transparent 75%, rgba(17,10,9,.12)); }
.stage[data-view="prodotto"] .scene-frame { background: radial-gradient(circle at 50% 42%, #fff 0 36%, #f2f0ec 72%, #e5e1dc 100%); }
.stage[data-view="prodotto"] .scene-frame::before { background: linear-gradient(180deg, transparent 0 82%, rgba(91,77,68,.055) 82% 82.3%, transparent 82.3%), radial-gradient(ellipse at 50% 84%, rgba(81,66,57,.11), transparent 35%); }
.stage[data-view="laterale"] .scene-frame { background: radial-gradient(circle at 48% 42%, #fff 0 34%, #f2f0ec 70%, #e3dfda 100%); }
.stage[data-view="laterale"] .scene-frame::before { background: radial-gradient(ellipse at 50% 86%, rgba(70,58,51,.14), transparent 31%), linear-gradient(180deg, transparent 0 84%, rgba(91,77,68,.06) 84% 84.3%, transparent 84.3%); }
.live-preview-header { position: sticky; top: 0; z-index: 30; }

@media (max-width: 720px) {
  .stage, .preview-shell .stage, .live-preview-dialog .stage { aspect-ratio: auto; min-height: 0; max-height: none; background: var(--card); }
  .live-preview-dialog .stage { width: 100%; }
  .scene-frame { position: relative; inset: auto; width: 100%; aspect-ratio: 3 / 2; }
  .stage .stage-toolbar { position: relative; top: auto; left: auto; width: calc(100% - 20px); max-width: none; margin: 10px; justify-content: center; flex-wrap: wrap; border-radius: 12px; background: #fff; }
  .stage .product-label { position: relative; top: auto; right: auto; margin: 0 12px 12px; color: var(--ink); text-shadow: none; text-align: center; }
  .stage .product-kicker { display: none; }
  .stage .product-label strong { font-size: 22px; }
  .stage .product-label small { font-size: 10px; }
  .stage[data-view="laterale"] .product-label { display: none; }
  .stage .stage-actions { position: relative; left: auto; right: auto; bottom: auto; margin: 12px 10px; }
  .stage .visual-disclaimer { position: relative; left: auto; right: auto; bottom: auto; margin: 0 12px 12px; color: var(--muted); text-shadow: none; white-space: normal; overflow: visible; font-size: 10px; line-height: 1.4; }
  .recess-bottom-depth, .foreground-sofa { background-size: 100% 100%; background-position: center; }
  .recess-bottom-depth { clip-path: polygon(12% 71.55%, 79.4% 71.55%, 80.8% 76.4%, 10.6% 76.4%); }
  .foreground-sofa { clip-path: polygon(0 68.3%, 10.7% 68.3%, 12.1% 69.2%, 13.5% 71.5%, 15.7% 74%, 19% 75.8%, 22.4% 77%, 25.2% 78.8%, 27.7% 82.2%, 29.8% 88.5%, 31.3% 100%, 0 100%); }
  .preview-docked .stage-toolbar, .preview-docked .product-label, .preview-docked .stage-actions, .preview-docked .visual-disclaimer { display: none; }
}

/* R20 — Titolo e misure della vista laterale più in alto sul telefono. */
@media (max-width: 720px) {
  .stage[data-view="laterale"] .scene-frame { min-height: 240px; }
  .stage[data-view="laterale"] .side-tech-heading { top: 12px; left: 12px; width: calc(52% - 24px); }
  .stage[data-view="laterale"] .side-tech-heading span { font-size: 9px; line-height: 1.2; letter-spacing: .06em; }
  .stage[data-view="laterale"] .side-tech-heading strong { margin-top: 3px; font-size: 16px; line-height: 1.15; }
  .stage[data-view="laterale"] .side-tech-heading small { max-width: 100%; margin-top: 3px; font-size: 9px; line-height: 1.3; }
  .stage[data-view="laterale"] .side-tech-specs { top: 12px; right: 10px; max-height: calc(100% - 24px); gap: 4px; overflow-y: auto; }
  .stage[data-view="laterale"] .side-tech-specs > div { padding: 5px 6px; }
  .stage[data-view="laterale"] .side-tech-specs small { line-height: 1.2; letter-spacing: .02em; }
  .stage[data-view="laterale"] .side-tech-specs strong { margin-top: 1px; line-height: 1.2; }
  .stage[data-view="laterale"] .side-product-inner,
  .stage[data-model="romana"][data-view="laterale"] .roman-tech-assembly { top: max(34%, 104px); height: min(50%, calc(100% - 128px)); }
  .preview-docked .stage[data-view="laterale"] .scene-frame { min-height: 0; }
}

/* R22 — Novità subito riconoscibile: tenda elettrica senza cavi. */
.hero-copy.hero-smart { position: relative; margin: 20px clamp(15px, 2.1vw, 40px) 22px; padding: 28px clamp(24px, 3.2vw, 54px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); align-items: center; gap: clamp(24px, 4vw, 66px); overflow: hidden; border: 1px solid rgba(91,8,34,.18); border-radius: 24px; background: radial-gradient(ellipse at 87% 36%, rgba(225,132,144,.23), transparent 45%), linear-gradient(115deg, #40071c, #730b2d 66%, #621329); color: #fff9f1; box-shadow: 0 18px 44px rgba(81,8,31,.14); }
.hero-content { position: relative; z-index: 1; min-width: 0; }
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #efd9d7; }
.hero-novelty { padding: 6px 11px; border: 1px solid #f3d2b2; border-radius: 999px; background: #f3d2b2; color: #4f0b20; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.hero-smart h1 { margin: 0; color: #fffaf3; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 3.4vw, 60px); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.hero-smart h1 span { color: #f3cfae; }
.hero-intro { max-width: 590px; margin: 14px 0 0; color: #efd8dc; font-size: 14px; line-height: 1.55; }
.hero-intro strong { color: #fff9f3; font-weight: 650; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-configure { min-height: 43px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 17px; border-radius: 9px; background: #fff5e9; color: #571025; font-size: 13px; font-weight: 850; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.hero-configure > span { font-size: 20px; line-height: .8; }
.hero-configure:hover { background: #f5d2af; transform: translateY(-2px); }
.hero-demo { min-height: 43px; padding: 9px 3px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #fff9f3; font-size: 12px; font-weight: 700; cursor: pointer; }
.hero-demo svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.hero-demo svg path { fill: currentColor; stroke: none; }
.hero-demo-short { display: none; }
.hero-configure:focus-visible, .hero-demo:focus-visible { outline: 3px solid #f3d2b2; outline-offset: 5px; }
.hero-benefits { margin: 15px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; font-size: 10px; line-height: 1.4; color: #e7c6ce; }
.hero-benefits li { display: flex; align-items: center; gap: 6px; }
.hero-benefits li > span { color: #f3d2b2; font-size: 12px; }
.hero-visual { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px 18px; padding-left: 28px; border-left: 1px solid rgba(255,245,235,.2); }
.hero-wifi-label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 9px; color: #e7c8d0; font-size: 10px; letter-spacing: .03em; }
.hero-wifi-label strong { color: #fff8ef; font-size: 13px; }
.hero-wifi-label svg { width: 27px; height: 27px; fill: none; stroke: #f3d2b2; stroke-width: 1.5; stroke-linecap: round; }
.hero-wifi-label svg circle { fill: #f3d2b2; stroke: none; }
.hero-device { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.hero-device img { position: relative; z-index: 1; width: 128px; height: 128px; object-fit: contain; clip-path: inset(2% round 8%); filter: drop-shadow(0 14px 12px rgba(30,0,11,.3)); }
.hero-device-ring { position: absolute; border: 1px solid rgba(243,207,174,.3); border-radius: 50%; pointer-events: none; }
.hero-device-ring-one { inset: 2px; }
.hero-device-ring-two { inset: -14px; border-color: rgba(243,207,174,.13); }
.hero-device-copy { position: relative; min-width: 0; }
.hero-device-copy strong { display: block; font: 400 22px/1.16 Georgia, serif; color: #fff9f1; }
.hero-device-copy > span { display: block; margin-top: 8px; color: #e8c9d0; font-size: 11px; line-height: 1.5; }
.hero-device-copy small { display: inline-block; margin-top: 9px; padding: 4px 7px; border: 1px solid rgba(243,207,174,.32); border-radius: 5px; color: #f3d2b2; font-size: 10px; }
#configuratore { scroll-margin-top: calc(var(--preview-header-height) + 12px); }

@media (max-width: 1180px) and (min-width: 721px) {
  .hero-copy.hero-smart { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; padding: 24px; }
  .hero-visual { grid-template-columns: 110px minmax(0, 1fr); padding-left: 18px; gap: 14px 12px; }
  .hero-device { width: 110px; height: 120px; }
  .hero-device img { width: 98px; height: 98px; }
  .hero-device-copy strong { font-size: 19px; }
}

@media (max-width: 720px) {
  .hero-copy.hero-smart { margin: 12px 8px 14px; padding: 20px 18px; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; border-radius: 17px; }
  .hero-content { display: contents; }
  .hero-kicker { grid-column: 1 / -1; margin: 0; gap: 8px; font-size: 8px; letter-spacing: .08em; }
  .hero-novelty { padding: 5px 8px; font-size: 9px; }
  .hero-smart h1 { grid-column: 1; grid-row: 2; font-size: clamp(32px, 8.8vw, 42px); line-height: 1; }
  .hero-intro { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 12px; line-height: 1.55; }
  .hero-actions { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 0; }
  .hero-configure { min-height: 42px; padding: 12px 14px; gap: 12px; font-size: 12px; }
  .hero-demo { min-height: 42px; font-size: 11px; }
  .hero-demo-full { display: none; }
  .hero-demo-short { display: inline; }
  .hero-demo svg { width: 18px; height: 18px; }
  .hero-benefits { grid-column: 1 / -1; grid-row: 5; margin: 0; gap: 5px 13px; font-size: 9px; }
  .hero-visual { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; }
  .hero-wifi-label { gap: 4px; font-size: 0; white-space: nowrap; }
  .hero-wifi-label strong { font-size: 9px; }
  .hero-wifi-label svg { width: 15px; height: 15px; }
  .hero-device { width: 82px; height: 74px; }
  .hero-device img { width: 69px; height: 69px; }
  .hero-device-ring-one { inset: 2px 7px; }
  .hero-device-ring-two { inset: -4px 1px; }
  .hero-device-copy { text-align: center; }
  .hero-device-copy strong, .hero-device-copy > span { display: none; }
  .hero-device-copy small { margin-top: 2px; padding: 2px 4px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-configure:hover { transform: none; }
}

/* R23 — Testi completi e caratteristiche Tuttoled. */
.hero-smart h1 { font-size: clamp(32px, 2.6vw, 46px); line-height: 1.06; }
.hero-smart h1 span { display: block; margin-top: 10px; font-family: Inter, ui-sans-serif, sans-serif; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.supplier-note.tuttoled-features { display: block; padding: 25px 28px; }
.tuttoled-features h3 { margin: 0 0 18px; color: var(--wine); font-size: 17px; line-height: 1.35; font-weight: 800; }
.supplier-feature-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; list-style: none; }
.supplier-feature-list li { position: relative; padding-left: 20px; color: #655b55; font-size: 13px; line-height: 1.65; }
.supplier-feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wine); font-weight: 800; }
.supplier-feature-list li strong { color: var(--ink); font-size: inherit; font-weight: 700; }

@media (max-width: 720px) {
  .hero-smart h1 { grid-column: 1 / -1; font-size: clamp(26px, 6.8vw, 32px); line-height: 1.08; }
  .hero-smart h1 span { margin-top: 8px; font-size: 16px; line-height: 1.35; }
  .hero-intro { grid-column: 1; }
  .hero-visual { grid-row: 3; }
  .hero-device { height: 56px; }
  .hero-device img { width: 54px; height: 54px; }
  .supplier-note.tuttoled-features { padding: 22px 18px; }
  .tuttoled-features h3 { font-size: 16px; }
  .supplier-feature-list { grid-template-columns: 1fr; gap: 12px; }
}

/* R24 — Comando senza fili interattivo e luce coordinata alla tenda. */
button.wall-controller { z-index: 14; right: 4%; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.wall-controller[hidden] { display: none; }
.wall-controller img { display: block; width: clamp(28px, 3.8vw, 36px); height: auto; pointer-events: none; }
.wall-controller:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; background: rgba(255,255,255,.65); }
.wall-controller:hover img { filter: brightness(1.07); }
.wall-controller-hint { position: absolute; top: calc(100% + 5px); right: 0; width: max-content; max-width: 112px; padding: 5px 7px; border-radius: 6px; color: #fffaf3; background: rgba(115,11,45,.9); font-size: 9px; font-weight: 700; line-height: 1.3; text-align: center; pointer-events: none; }
.wall-controller::after { content: ""; position: absolute; inset: 3px; border: 2px solid rgba(115,11,45,.7); border-radius: 50%; opacity: 0; pointer-events: none; }
.wireless-signal { position: absolute; inset: 0; z-index: 13; width: 100%; height: 100%; overflow: hidden; opacity: 0; pointer-events: none; }
.wireless-signal path { fill: none; stroke: rgba(115,11,45,.7); stroke-width: 1.5px; stroke-dasharray: 3 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wireless-signal circle { fill: #f3d2b2; stroke: #730b2d; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.wireless-feedback .wireless-signal { animation: wirelessVisibility 1.1s ease-out; }
.wireless-feedback .wireless-signal path { animation: wirelessTravel .8s linear; }
.wireless-feedback .wall-controller::after { animation: wirelessPulse .8s ease-out; }
.stage[data-view="ambiente"] .stage-shade { z-index: 8; opacity: .315; background: linear-gradient(to bottom, rgba(23,15,13,.44) 0 12.4%, transparent 12.4% 71.55%, rgba(23,15,13,.44) 71.55% 100%) center / 100% 100% no-repeat, linear-gradient(to bottom, transparent 0 12.4%, rgba(23,15,13,.44) 12.4% 71.55%, transparent 71.55% 100%) left / 12% 100% no-repeat, linear-gradient(to bottom, transparent 0 12.4%, rgba(23,15,13,.44) 12.4% 71.55%, transparent 71.55% 100%) right / 20.6% 100% no-repeat; transition: opacity 1.35s cubic-bezier(.65, 0, .15, 1); }
.stage[data-view="prodotto"] .wireless-signal, .stage[data-view="laterale"] .wireless-signal { display: none; }
.preview-docked .wall-controller { pointer-events: none; }
.preview-docked .wall-controller-hint, .preview-docked .wireless-signal { display: none; }
@keyframes wirelessVisibility { 0% { opacity: 0; } 15%, 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wirelessTravel { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes wirelessPulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) {
  .wireless-signal { display: none; }
  .stage[data-view="ambiente"] .stage-shade { transition: none; }
}
.price-box .shipping-note {
  margin: 14px 0 0;
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,.22);
}
.shipping-note svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.price-box .shipping-note strong { margin: 0; font-family: inherit; font-size: 13px; font-weight: 750; line-height: 1.4; }
.price-box .shipping-note small { margin-top: 4px; font-size: 11px; line-height: 1.45; text-transform: none; letter-spacing: 0; opacity: .85; }
.summary-delivery-note { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #ead9df; border-radius: 10px; background: #faf5f7; color: #5c3946; font-size: 13px; line-height: 1.55; }
.summary-delivery-note strong { color: #730b2d; }

/* Collegamento al carrello LiteCart. */
.live-tax-note{font-size:12px;color:#716871;line-height:1.5;margin:12px 0}.cart-integration-status{min-height:22px;font-size:13px;line-height:1.5}.cart-status-error{color:#a32332}.dialog-primary:disabled{opacity:.6;cursor:wait}

.store-footer{display:flex;justify-content:center;padding:24px 16px 40px}.store-footer a{text-decoration:none}

/* R31: ritorno al negozio visibile anche sul telefono. */
.store-return-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 17px;border:1px solid var(--wine);border-radius:999px;background:var(--wine);color:#fff;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap;justify-self:center;transition:background .2s ease}
.store-return-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.store-return-button:hover{background:#520822;color:#fff}
.store-return-button:focus-visible{outline:3px solid #bb8c56;outline-offset:3px}
@media(max-width:720px){
  .topbar{height:auto;min-height:108px;padding:10px 16px;grid-template-columns:1fr auto;row-gap:8px}
  .topbar .brand{grid-column:1;grid-row:1}
  .topbar>.quiet-button{grid-column:2;grid-row:1}
  .topbar .store-return-button{grid-column:1/-1;grid-row:2;width:100%;min-height:44px;padding:10px 14px;font-size:13px}
}
