/* Configuratore: scena a sinistra, scelte a destra */
.cfg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.cfg-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 48%, #2b2116 0%, #15110c 55%, var(--ink) 100%); }
.cfg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; transition: opacity .6s var(--ease); }
.cfg-canvas:active { cursor: grabbing; }
.cfg-photos { position: absolute; inset: 0; pointer-events: none; }
.cfg-photo { position: absolute; left: 50%; top: 52%; height: 70%; width: auto; max-width: 80%; object-fit: contain; transform: translate(-50%, -50%) scale(.97); opacity: 0; transition: opacity .7s var(--ease), transform 1s var(--ease); filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); }
.cfg-photo.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cfg.is-photo .cfg-canvas { opacity: 0; pointer-events: none; }
.cfg-stage-top { position: absolute; left: var(--gutter); top: 96px; z-index: 2; }
.cfg-name { margin: 0; display: flex; flex-direction: column; }
.cfg-name .eyebrow { margin-bottom: .3em; }
.cfg-title { font-family: var(--serif); font-size: clamp(30px, 3vw, 48px); font-weight: 300; color: var(--cream); line-height: 1.05; }
.cfg-views { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,8,6,.5); backdrop-filter: blur(8px); z-index: 2; }
.cfg-views button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); transition: background-color .4s, color .4s; }
.cfg-views button[aria-pressed="true"] { background: rgba(214,176,98,.16); color: var(--gold-hi); }
.cfg-views button[hidden] { display: none; }
.cfg-zoom { position: absolute; right: var(--gutter); top: 100px; z-index: 2; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: rgba(10,8,6,.4); }
.cfg-zoom[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--gold); }
.cfg.is-photo .cfg-zoom, .cfg.is-photo .cfg-hint { display: none; }
.cfg-hint { position: absolute; left: var(--gutter); bottom: 44px; margin: 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); z-index: 2; }
.cfg-eyes-note { position: absolute; right: var(--gutter); bottom: 96px; margin: 0; max-width: 240px; text-align: right; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); z-index: 2; }

.cfg-panel { padding: 110px var(--gutter) 80px; border-left: 1px solid var(--line); background: linear-gradient(180deg, #100d0a, var(--ink)); }
.cfg-head { margin-bottom: 2.4em; }
.cfg-head .h2 { font-size: clamp(34px, 3.2vw, 52px); margin-bottom: .5em; }
.cfg-step { border: 0; margin: 0 0 30px; padding: 0; }
.cfg-step legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 24px; color: var(--cream); }
.cfg-step legend span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.cfg-step legend small { font-family: var(--sans); font-size: 12px; color: var(--faint); }
.cfg-models { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfg-model { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .4s, background-color .4s; }
.cfg-model img { width: 44px; height: 64px; object-fit: contain; }
.cfg-model b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--cream); }
.cfg-model small { font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.cfg-model:has(input:checked) { border-color: var(--gold); background: rgba(214,176,98,.07); }
.cfg input[type="radio"], .cfg input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; transition: border-color .4s, color .4s, background-color .4s; }
.chip[hidden] { display: none; }
.chip:has(input:checked) { border-color: var(--gold); color: var(--cream); background: rgba(214,176,98,.07); }
.chip:has(input:focus-visible), .cfg-model:has(input:focus-visible), .cfg-bronze:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 3px; }
.cfg-engrave:focus-within { border-bottom-color: var(--gold); }
.chip i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0, var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000) 100%); }
.chip i.gem { border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; transform: rotate(90deg) scaleX(.62); }
.cfg-engrave { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.cfg-engrave input { flex: 1; font: inherit; font-family: var(--serif); font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); background: transparent; border: 0; padding: 10px 0; outline: none; min-width: 0; }
.cfg-engrave input::placeholder { text-transform: none; letter-spacing: 0; color: var(--faint); font-style: italic; }
.cfg-engrave small { font-size: 12px; color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cfg-bronze { position: relative; display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin: 6px 0 28px; }
.cfg-bronze::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border: 1px solid var(--gold); border-radius: 4px; transition: background-color .3s; }
.cfg-bronze:has(input:checked)::before { background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='%231a1207' stroke-width='2'/></svg>") center / 12px no-repeat; }
.cfg-bronze span { font-size: 14px; color: var(--muted); }
.cfg-bronze b { display: block; font-weight: 400; color: var(--cream); font-size: 15px; margin-bottom: 2px; }
.cfg-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cfg-total .eyebrow { margin: 0 0 .2em; }
.cfg-price { margin: 0; font-family: var(--serif); font-size: 38px; color: var(--cream); line-height: 1.1; }
.cfg-small { font-size: 13px; margin: 18px 0 30px; }
.cfg-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.cfg-specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cfg-specs dt { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.cfg-specs dd { margin: 2px 0 0; font-family: var(--serif); font-size: 20px; color: var(--cream); }

.cfg-gallery { position: relative; z-index: 1; padding: 16vh 0; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-grid figure, .gal-wide figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.gal-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal-grid figure:hover img { transform: scale(1.05); }
figcaption { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); padding-top: 12px; }
.gal-wide { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.gal-wide img, .gal-wide video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 1080px) {
  .cfg { grid-template-columns: 1fr 1fr; }
  .cfg-panel { min-width: 0; }
}
@media (max-width: 760px) {
  .cfg { display: block; }
  .cfg-stage { position: sticky; top: 0; height: 56vh; height: 56svh; z-index: 3; box-shadow: 0 20px 30px rgba(11,9,7,.9); }
  .cfg-stage-top { top: 66px; }
  .cfg-title { font-size: 26px; }
  .cfg-zoom { top: 70px; height: 32px; padding: 0 12px; font-size: 10px; }
  .cfg-views { bottom: 14px; }
  .cfg-views button { height: 30px; padding: 0 10px; font-size: 9.5px; letter-spacing: .12em; }
  .cfg-hint { display: none; }
  .cfg-eyes-note { bottom: 56px; font-size: 14px; max-width: 60%; }
  .cfg-photo { height: 62%; top: 54%; }
  .cfg-panel { border-left: 0; padding: 36px var(--gutter) 60px; position: relative; z-index: 2; }
  .cfg-head .h2 { font-size: 32px; }
  .cfg-model { padding: 10px; gap: 8px; }
  .cfg-model b { font-size: 19px; }
  .chip { height: 40px; padding: 0 14px 0 10px; font-size: 13px; }
  .cfg-price { font-size: 32px; }
  .cfg-total .btn { width: 100%; justify-content: center; }
  .cfg-specs { grid-template-columns: repeat(2, 1fr); }
  .gal-grid, .gal-wide { grid-template-columns: 1fr 1fr; }
  .gal-wide figure:first-child { grid-column: 1 / -1; }
}
