/* Configuratore Model BL – Omega Professional */

.obl {
    --ink: #1c2731;
    --ink-2: #4a5866;
    --ink-3: #7b8894;
    --paper: #ffffff;
    --steel: #eef1f3;
    --steel-2: #e1e6ea;
    --line: #cfd6dc;
    --green: #1f8a4c;
    --green-hi: #27ae60;
    --green-soft: #e3f4ea;
    --hazard: #f2c12e;
    --red: #b8322a;
    --wa: #1da851;
    --radius-l: 14px;
    --radius-s: 8px;
    --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --body: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: 22px;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 0 24px;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    text-align: left;
}
.obl *, .obl *::before, .obl *::after { box-sizing: border-box; }
.obl [hidden] { display: none !important; }
.obl button { font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; }
.obl h2, .obl h3, .obl p, .obl dl, .obl ol { margin: 0; padding: 0; }
.obl .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.obl :focus-visible { outline: 3px solid var(--hazard); outline-offset: 2px; }

/* ---------------------------------------------------------------- stage 3D */
.obl-stage {
    position: sticky;
    top: 24px;
    height: min(80vh, 780px);
    min-height: 460px;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: linear-gradient(#cfd9e1, #b9c3c9);
    isolation: isolate;
}
.obl-canvas, .obl-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.obl-canvas canvas { cursor: grab; }
.obl-canvas canvas:active { cursor: grabbing; }

.obl-stage-head {
    position: absolute; left: 16px; top: 16px; right: 16px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    pointer-events: none;
}
.obl-stage-model {
    font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1;
    color: var(--ink); letter-spacing: .01em;
    padding: 6px 12px 7px; background: rgba(255,255,255,.82); border-radius: 6px;
    backdrop-filter: blur(6px);
}
.obl-stage-chip {
    font-weight: 600; font-size: 14px; color: #fff;
    padding: 7px 12px; border-radius: 6px; background: rgba(28,39,49,.86);
    font-variant-numeric: tabular-nums;
}

.obl-stage-tools {
    position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%);
    display: flex; gap: 6px; padding: 6px; border-radius: 12px;
    background: rgba(28,39,49,.88); backdrop-filter: blur(8px);
    max-width: calc(100% - 24px);
}
.obl .obl-tool {
    display: inline-flex; align-items: center; gap: 8px;
    border: 0; border-radius: 8px; padding: 10px 14px; margin: 0;
    background: transparent; color: #e9eef2; font-size: 14px; font-weight: 600; line-height: 1.1;
    white-space: nowrap; transition: background .15s;
}
.obl .obl-tool svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.obl .obl-tool:hover { background: rgba(255,255,255,.1); color: #fff; }
.obl .obl-tool--main { background: var(--green); color: #fff; }
.obl .obl-tool--main:hover { background: var(--green-hi); }
.obl .obl-tool[aria-pressed="true"] { background: var(--hazard); color: var(--ink); }
.obl .obl-tool--icon { padding: 10px; }

.obl-stage-hint {
    position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
    font-size: 12px; color: rgba(28,39,49,.7); pointer-events: none;
}
.obl-nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--ink-2); }

/* ---------------------------------------------------------------- pannello */
.obl-panel {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 26px 26px 0;
    min-width: 0;
}
.obl-title {
    font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.02;
    color: var(--ink); letter-spacing: 0;
}
.obl-title span { display: block; font-weight: 800; font-size: 52px; line-height: .95; }
.obl-lead { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 46ch; }

.obl-steps {
    list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 4px; margin: 22px 0 20px !important; padding: 4px !important;
    background: var(--steel); border-radius: 10px;
}
.obl-steps li { margin: 0; padding: 0; list-style: none; }
.obl .obl-steps button {
    width: 100%; border: 0; border-radius: 7px; padding: 9px 4px; margin: 0;
    background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.obl .obl-steps button b {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--steel-2); color: var(--ink-2); font-size: 11px;
}
.obl .obl-steps button.is-done { color: var(--ink-2); }
.obl .obl-steps button.is-done b { background: var(--green); color: #fff; }
.obl .obl-steps button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,39,49,.14); }
.obl .obl-steps button.is-active b { background: var(--ink); color: #fff; }
.obl .obl-steps button:disabled { cursor: not-allowed; opacity: .5; }

.obl-step h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--ink); }
.obl-sub { margin: 4px 0 18px !important; color: var(--ink-2); font-size: 14px; }

/* misure */
.obl-dim {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--steel-2);
}
.obl-dim label { font-weight: 600; font-size: 15px; }
.obl-dim abbr { text-decoration: none; border: 0; color: var(--ink-3); margin-left: 2px; }
.obl-dim small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.obl-dim-input { display: flex; align-items: baseline; gap: 6px; }
.obl .obl-dim-input input {
    width: 4.2ch; min-width: 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
    padding: 0 2px; margin: 0; background: transparent; box-shadow: none;
    font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink);
    text-align: right; -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.obl .obl-dim-input input::-webkit-outer-spin-button,
.obl .obl-dim-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.obl .obl-dim-input input:focus { outline: none; border-bottom-color: var(--green); }
.obl .obl-dim-input input.is-out { color: var(--red); border-bottom-color: var(--red); }
.obl-dim-input span { font-weight: 600; color: var(--ink-3); }

.obl .obl-range {
    grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent;
    -webkit-appearance: none; appearance: none; border: 0;
}
.obl .obl-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) var(--p, 50%), var(--steel-2) var(--p, 50%)); }
.obl .obl-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--steel-2); }
.obl .obl-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--green); }
.obl .obl-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
    background: #fff; border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.obl .obl-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }

.obl-leaves { padding-top: 16px; border-top: 1px solid var(--steel-2); }
.obl-leaves-cap { font-size: 13px; color: var(--ink-3); margin-bottom: 10px !important; }
.obl-leaves-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.obl-leafcard {
    border: 1.5px solid var(--steel-2); border-radius: var(--radius-s); padding: 10px;
    display: flex; flex-direction: column; gap: 1px; color: var(--ink-3);
    transition: border-color .2s, background .2s, color .2s;
}
.obl-leafcard strong { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; }
.obl-leafcard span { font-size: 12px; }
.obl-leafpic {
    display: block; height: 30px; margin-bottom: 8px; border-radius: 2px;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 2px), #fff calc(100% / var(--n) - 2px) calc(100% / var(--n))),
        var(--steel-2);
    border-top: 4px solid #a9b2b9;
}
.obl-leafcard.is-active { border-color: var(--ink); background: var(--steel); color: var(--ink); }
.obl-leafcard.is-active .obl-leafpic { background-color: var(--ink); border-top-color: var(--ink); }
.obl-leafcard.is-active .obl-leafpic {
    background: repeating-linear-gradient(90deg, var(--ink-2) 0 calc(100% / var(--n) - 2px), #fff calc(100% / var(--n) - 2px) calc(100% / var(--n)));
}
.obl-area { margin-top: 10px !important; font-size: 13px; color: var(--ink-2); }

.obl-outbox {
    margin-top: 16px; padding: 14px; border-radius: var(--radius-s);
    background: #fdf3f2; border: 1px solid #f0c9c5; color: var(--red);
    display: grid; gap: 10px; font-weight: 600; font-size: 14px;
}

/* colori */
.obl-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.obl-swatch {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px;
    border: 1.5px solid var(--steel-2); border-radius: var(--radius-s); cursor: pointer;
    transition: border-color .15s, background .15s; margin: 0;
}
.obl-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.obl-swatch i {
    display: block; aspect-ratio: 4 / 3; border-radius: 4px; margin-bottom: 6px;
    background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.12)), var(--sw);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.obl-swatch i.is-wood {
    background:
        repeating-linear-gradient(90deg, rgba(70,35,10,.0) 0 5px, rgba(70,35,10,.22) 5px 6px, rgba(255,220,160,.10) 6px 9px, rgba(70,35,10,.14) 9px 10px),
        linear-gradient(90deg, #b5763a, #9a5d27 30%, #b97c3f 55%, #94592a 80%, #ae7036);
}
.obl-swatch i.is-metal { background: linear-gradient(115deg, #8f9496 0%, #d6d9da 38%, #9da2a4 55%, #c4c7c8 100%); }
.obl-swatch-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.obl-swatch-note { font-size: 11px; color: var(--ink-3); }
.obl-swatch:hover { border-color: var(--line); }
.obl-swatch:has(input:checked), .obl-swatch.is-checked { border-color: var(--ink); background: var(--steel); }
.obl-swatch:has(input:focus-visible) { outline: 3px solid var(--hazard); outline-offset: 2px; }
.obl-fan {
    background:
        conic-gradient(from 200deg at 50% 110%, #c93c20, #e5be01, #57a639, #2271b3, #6c4675, #c93c20) !important;
}
.obl-swatch--custom { grid-column: span 1; }

.obl-ral { margin-top: 16px; padding: 16px; background: var(--steel); border-radius: var(--radius-s); }
.obl-ral label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.obl-ral-row { display: flex; gap: 10px; align-items: stretch; }
.obl-ral-input { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.obl-ral-input span { padding: 0 10px; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-3); }
.obl .obl-ral-input input {
    width: 5ch; border: 0; padding: 8px 10px 8px 0; margin: 0; background: transparent; box-shadow: none;
    font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .04em; color: var(--ink);
}
.obl .obl-ral-input input:focus { outline: none; }
.obl-ral-preview { flex: 1; border-radius: var(--radius-s); min-height: 52px; background: repeating-linear-gradient(45deg, #fff 0 8px, var(--steel-2) 8px 16px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: background .3s; }
.obl-ral-cost { margin-top: 10px !important; font-size: 14px; font-weight: 600; }
.obl-ral-note { margin-top: 4px !important; font-size: 12px; color: var(--ink-3); }
.obl-warn { margin-top: 14px !important; padding: 10px 12px; font-size: 13px; border-left: 4px solid var(--hazard); background: #fffbea; }

/* accessori */
.obl-acc {
    display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
    padding: 16px 0; border-top: 1px solid var(--steel-2);
}
.obl-acc-text { display: flex; flex-direction: column; gap: 2px; }
.obl-acc-text strong { font-size: 16px; }
.obl-acc-text span { font-size: 13px; color: var(--ink-2); }
.obl-acc-text em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 21px; margin-top: 2px; }
.obl-acc-text em small { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.obl-acc-text .obl-acc-note { color: #8a6a00; }

.obl-switch { position: relative; display: inline-block; width: 54px; height: 32px; margin: 0; cursor: pointer; }
.obl-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.obl-switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--steel-2); transition: background .2s; }
.obl-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.obl-switch input:checked + span { background: var(--green); }
.obl-switch input:checked + span::after { transform: translateX(22px); }
.obl-switch input:focus-visible + span { outline: 3px solid var(--hazard); outline-offset: 2px; }

.obl-stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.obl .obl-stepper button { width: 40px; height: 40px; border: 0; margin: 0; padding: 0; background: var(--steel); color: var(--ink); font-size: 22px; line-height: 1; }
.obl .obl-stepper button:hover { background: var(--steel-2); }
.obl .obl-stepper button:disabled { color: var(--line); cursor: not-allowed; }
.obl-stepper output { min-width: 42px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 24px; }

/* posizione oblò */
.obl-pos { grid-column: 1 / -1; margin-top: -2px; }
.obl .obl-pos-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px;
    border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink);
    font-size: 14px; font-weight: 600; line-height: 1.2;
}
.obl .obl-pos-toggle:hover { border-color: var(--ink); }
.obl .obl-pos-toggle svg { width: 18px; height: 18px; fill: var(--ink-2); }
.obl .obl-pos-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.obl .obl-pos-toggle[aria-expanded="true"] svg { fill: var(--hazard); }
.obl-pos-toggle em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: var(--hazard); color: var(--ink); }
.obl-pos-panel { margin-top: 12px; padding: 14px; border-radius: var(--radius-s); background: var(--steel); }
.obl-pos-help { font-size: 13px; color: var(--ink-2); margin-bottom: 12px !important; }
.obl-pos-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 84px)); gap: 8px; }
.obl-pos-leaf { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
.obl-pos-leaf > b { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; white-space: nowrap; }
.obl-pos-panelbox {
    position: relative; display: grid; grid-template-rows: 1fr 1fr; gap: 8px; padding: 10px 8px;
    aspect-ratio: 1 / 2.1; border-radius: 3px; background: #fff;
    border: 2px solid #c6cdd3; border-top-width: 5px; border-top-color: #2a3036;
}
.obl-pos-panelbox.has-door::after {
    content: ""; position: absolute; left: 12%; right: 12%; bottom: 3px; height: 48%;
    border: 2px solid #2a3036; border-bottom: 0; pointer-events: none;
}
.obl .obl-slot {
    position: relative; z-index: 1; display: grid; place-items: center; margin: 0; padding: 0;
    border: 2px dashed #b3bcc4; border-radius: 9px; background: transparent; color: var(--ink-3);
    font-size: 20px; font-weight: 400; line-height: 1; transition: background .15s, border-color .15s, transform .1s;
}
.obl .obl-slot:hover { border-color: var(--ink-2); color: var(--ink); }
.obl .obl-slot:active { transform: scale(.95); }
.obl .obl-slot[aria-pressed="true"] {
    border: 3px solid #0d0e0f; color: transparent;
    background: linear-gradient(150deg, #5d7387 0%, #1f2c38 55%, #31475a 100%);
}
.obl .obl-slot:disabled { border-style: dotted; border-color: #dde2e6; color: transparent; cursor: not-allowed; }
.obl-pos-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.obl-pos-foot .obl-link { margin: 0; padding: 4px 0; }

/* raccolta ante */
.obl-split { padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--steel-2); }
.obl-split .obl-leaves-cap span { color: var(--ink-3); }
.obl-split-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.obl .obl-split-opt {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; padding: 9px 8px 8px;
    border: 1.5px solid var(--steel-2); border-radius: var(--radius-s); background: #fff; color: var(--ink-2);
    font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
}
.obl .obl-split-opt:hover { border-color: var(--line); }
.obl .obl-split-opt[aria-checked="true"] { border-color: var(--ink); background: var(--steel); color: var(--ink); }
.obl-sp-pic { position: relative; display: flex; height: 34px; border-top: 4px solid #a9b2b9; }
.obl-sp-pic i { flex: 1; margin: 0 1px; background: var(--steel-2); }
.obl-sp-pic i.l { background: #8fa0ad; }
.obl-sp-pic i.r { background: #8fa0ad; }
.obl-sp-pic i.l:first-child { box-shadow: inset 3px 0 0 #2a3036; }
.obl-sp-pic i.r:last-child { box-shadow: inset -3px 0 0 #2a3036; }
.obl-sp-pic b { width: 4px; margin: 0 1px; background: transparent; border-left: 2px dashed var(--hazard); }
.obl .obl-split-opt[aria-checked="true"] .obl-sp-pic { border-top-color: var(--ink); }
.obl .obl-split-opt[aria-checked="true"] .obl-sp-pic i.l, .obl .obl-split-opt[aria-checked="true"] .obl-sp-pic i.r { background: var(--ink-2); }
.obl-sp-arrows { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); height: 12px; line-height: 12px; }

/* video del portone */
.obl-video { margin-top: 16px; }
.obl-video-box { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(#cfd9e1, #b9c3c9); }
.obl-video-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.obl-video-wait { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 16px; color: var(--ink); font-size: 14px; }
.obl-video-bar { display: block; width: 220px; max-width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.7); overflow: hidden; }
.obl-video-bar i { display: block; width: 0; height: 100%; background: var(--green); transition: width .2s; }
.obl-video .obl-link { margin-top: 4px; }

/* riepilogo e dati */
.obl-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 22px !important; font-size: 14px; }
.obl-summary dt { color: var(--ink-3); }
.obl-summary dd { margin: 0; font-weight: 600; }
.obl-h-data { margin-bottom: 12px !important; }
.obl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.obl-field { display: flex; flex-direction: column; gap: 4px; }
.obl-field--wide { grid-column: 1 / -1; }
.obl-field-hint { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.obl-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.obl .obl-field input, .obl .obl-field textarea {
    width: 100%; margin: 0; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s); box-shadow: none;
}
.obl .obl-field input:focus, .obl .obl-field textarea:focus { outline: none; border-color: var(--ink); }
.obl .obl-field input.is-invalid { border-color: var(--red); }
.obl-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.obl-privacy input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.obl-privacy a { color: var(--green); }
.obl-error { margin-top: 10px !important; padding: 10px 12px; border-radius: var(--radius-s); background: #fdf3f2; color: var(--red); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- prezzo */
.obl-price {
    margin: 22px -26px 0; padding: 18px 26px 16px;
    background: var(--ink); color: #fff;
}
.obl .obl-price-toggle { display: none; }
.obl-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; color: #c9d3db; }
.obl-price-row b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.obl-price-row small, .obl-price-big small { color: #93a2ae; font-size: 12px; font-weight: 500; }
.obl-price-door { justify-content: flex-start; }
.obl-price-door .obl-price-label { flex: 1; }
.obl-price-door s { color: #93a2ae; text-decoration-thickness: 2px; text-decoration-color: #e2564c; font-variant-numeric: tabular-nums; }
.obl-tag {
    position: relative; display: inline-block;
    font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1;
    color: var(--ink); background: var(--hazard); padding: 6px 10px 6px 12px; border-radius: 4px;
    box-shadow: inset 6px 0 0 0 transparent;
}
.obl-tag::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 4px 0 0 4px;
    background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, var(--hazard) 3px 6px);
}
.obl-tag.is-pulse { animation: oblPulse .5s ease; }
@keyframes oblPulse { 40% { transform: scale(1.12) rotate(-3deg); } }
.obl-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #c9d3db; padding: 2px 0; }
.obl-line span:last-child { color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.obl-price-total {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14);
}
.obl-price-total .obl-price-label { font-family: var(--display); font-weight: 700; font-size: 20px; }
.obl-price-big b { font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.obl-save { margin-top: 6px !important; font-size: 13px; color: var(--hazard); font-weight: 600; text-align: right; }
.obl-price.is-out .obl-price-body, .obl-price.is-out .obl-save { opacity: .3; }
.obl-price.is-out .obl-price-big b { font-size: 24px; }

/* ---------------------------------------------------------------- nav e bottoni */
.obl-nav {
    display: flex; gap: 10px; justify-content: space-between;
    margin: 0 -26px; padding: 14px 26px 22px; background: var(--ink);
    border-radius: 0 0 var(--radius-l) var(--radius-l);
}
.obl .obl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 12px 22px; margin: 0; border-radius: 10px; border: 0;
    font-family: var(--body); font-size: 16px; font-weight: 700; text-decoration: none; line-height: 1.15;
    transition: background .15s, transform .1s;
}
.obl .obl-btn:active { transform: translateY(1px); }
.obl .obl-btn svg { width: 22px; height: 22px; fill: currentColor; }
.obl .obl-btn--go { background: var(--green); color: #fff; flex: 1; }
.obl .obl-btn--go:hover { background: var(--green-hi); color: #fff; }
.obl .obl-btn--go:disabled { background: #5c6a75; cursor: not-allowed; }
.obl .obl-btn--ghost { background: transparent; color: #dfe6ec; border: 1.5px solid rgba(255,255,255,.28); }
.obl .obl-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.obl .obl-btn--call { background: var(--red); color: #fff; }
.obl .obl-btn--call:hover { background: #d23b31; color: #fff; }
.obl .obl-btn--wa { background: var(--wa); color: #fff; flex: 1; }
.obl .obl-btn--wa:hover { background: #22c05e; color: #fff; }
.obl .obl-btn--xl { width: 100%; min-height: 62px; font-size: 21px; font-family: var(--display); letter-spacing: .02em; }
.obl .obl-btn.is-loading { pointer-events: none; opacity: .75; }
.obl .obl-link { background: none; border: 0; padding: 8px; margin: 8px auto 0; color: var(--ink-2); text-decoration: underline; font-size: 14px; display: block; }

/* ---------------------------------------------------------------- conferma */
.obl-done {
    position: absolute; inset: 0; z-index: 5; border-radius: var(--radius-l);
    background: rgba(255,255,255,.97); display: grid; place-items: center; padding: 28px;
}
.obl-done { overflow-y: auto; }
.obl-done-in { max-width: 420px; text-align: center; }
.obl-done svg { width: 64px; height: 64px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.obl-done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: oblDraw .6s .2s ease forwards; }
@keyframes oblDraw { to { stroke-dashoffset: 0; } }
.obl-done h3 { font-family: var(--display); font-size: 30px; line-height: 1.1; margin: 12px 0 8px; }
.obl-done p { color: var(--ink-2); font-size: 15px; }
.obl-done-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.obl-done-msg { margin-top: 12px !important; font-weight: 600; color: var(--ink) !important; min-height: 1.5em; }

/* ---------------------------------------------------------------- modale fuori misura */
.obl.obl-portal { display: block; position: static; max-width: none; margin: 0; padding: 0; }
.obl-modal {
    position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px;
    background: rgba(17,24,30,.62); backdrop-filter: blur(4px);
    animation: oblFade .2s ease;
}
@keyframes oblFade { from { opacity: 0; } }
.obl-modal-box {
    position: relative; width: 100%; max-width: 440px; overflow: hidden;
    background: #fff; border-radius: var(--radius-l); padding: 34px 28px 22px; text-align: center;
    animation: oblRise .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes oblRise { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.obl-modal-tape { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--hazard) 12px 24px); }
.obl-modal h3 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; margin-bottom: 10px; }
.obl-modal p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px !important; }
.obl-modal .obl-modal-small { font-size: 12px; color: var(--ink-3); margin: 8px 0 0 !important; }
.obl .obl-modal-x { position: absolute; right: 8px; top: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; color: var(--ink-3); padding: 0; }

/* ---------------------------------------------------------------- mini anteprima mobile */
.obl.obl-pipwrap { position: fixed; right: 12px; bottom: var(--obl-pip-bottom, 140px); z-index: 9990; display: block; max-width: none; margin: 0; padding: 0; }
.obl-pip {
    position: relative; width: min(46vw, 240px); aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    background: linear-gradient(#cfd9e1, #b9c3c9);
    box-shadow: 0 0 0 2px #fff, 0 12px 30px rgba(17,24,30,.38);
    animation: oblPipIn .28s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes oblPipIn { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.obl-pip-view { position: absolute; inset: 0; cursor: pointer; }
.obl-pip-view .obl-canvas canvas { cursor: pointer; }
.obl-pip-label {
    position: absolute; left: 7px; top: 7px; display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 7px; border-radius: 5px; background: rgba(28,39,49,.86); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1.2; pointer-events: none;
}
.obl-pip-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 0 0 rgba(39,174,96,.7); animation: oblLive 1.6s infinite; }
@keyframes oblLive { 70% { box-shadow: 0 0 0 6px rgba(39,174,96,0); } 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); } }
.obl .obl-pip-x, .obl .obl-pip-go {
    position: absolute; width: 30px; height: 30px; padding: 0; margin: 0; border: 0; border-radius: 50%;
    background: rgba(28,39,49,.86); color: #fff; display: grid; place-items: center; line-height: 1;
}
.obl .obl-pip-x { right: 6px; top: 6px; font-size: 20px; }
.obl .obl-pip-go { right: 6px; bottom: 6px; }
.obl .obl-pip-go svg { width: 16px; height: 16px; fill: currentColor; }
.obl .obl-pip-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin: 0; border: 0; border-radius: 22px;
    background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1;
    box-shadow: 0 0 0 2px #fff, 0 8px 22px rgba(17,24,30,.35);
}
.obl .obl-pip-pill svg { width: 18px; height: 18px; fill: var(--hazard); }

/* ---------------------------------------------------------------- responsive */
/* ---------------------------------------------------------------- invio automatico: stato di video, WhatsApp, email */
.obl .obl-sendlist { list-style: none; margin: 18px 0 0 !important; padding: 0 !important; text-align: left; display: grid; gap: 8px; }
.obl .obl-sendlist li {
    display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 12px;
    border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff;
    transition: border-color .25s, background-color .25s;
}
.obl-sendlist li > span { display: flex; flex-direction: column; min-width: 0; }
.obl-sendlist b { font-size: 15px; color: var(--ink); }
.obl-sendlist small { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.obl-send-ico {
    position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--steel); color: var(--ink-2);
}
.obl-send-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* in attesa: anello che gira */
.obl-sendlist li.is-wait .obl-send-ico::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: var(--hazard); animation: obl-spin 1s linear infinite;
}
@keyframes obl-spin { to { transform: rotate(360deg); } }
.obl .obl-sendlist li.is-ok { border-color: var(--green); background: #f1f8f3; }
.obl-sendlist li.is-ok .obl-send-ico { background: var(--green); color: #fff; }
.obl-sendlist li.is-ok b::after { content: " ✓"; color: var(--green); }
.obl .obl-sendlist li.is-err { border-color: var(--red); background: #fdf3f2; }
.obl-sendlist li.is-err .obl-send-ico { background: var(--red); color: #fff; }
.obl-sendlist li.is-skip .obl-send-ico { opacity: .6; }
.obl-send-extra { margin-top: 6px; }
.obl .obl-send-btn {
    display: inline-block; padding: 7px 12px; border-radius: 6px; background: #25d366; color: #fff !important;
    font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.obl .obl-done-warn { margin: 10px 0 0 !important; font-size: 13px; color: var(--ink-2) !important; }
@media (prefers-reduced-motion: reduce) { .obl-sendlist li.is-wait .obl-send-ico::after { animation-duration: 3s; } }

/* ---------------------------------------------------------------- più portoni nello stesso preventivo */
.obl-doorbar { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.obl .obl-doorpill {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0;
    padding: 6px 12px 7px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    background: #fff; color: var(--ink-2); line-height: 1.15; text-align: left;
}
.obl .obl-doorpill b { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.obl .obl-doorpill span { font-size: 12px; font-variant-numeric: tabular-nums; }
.obl .obl-doorpill:hover { border-color: var(--ink); }
.obl .obl-doorpill.is-current { background: var(--ink); border-color: var(--ink); color: #c9d3db; box-shadow: inset 0 -3px 0 var(--hazard); }
.obl .obl-doorpill.is-current b { color: #fff; }
.obl .obl-doorpill--add {
    align-items: center; justify-content: center; min-width: 46px;
    border-style: dashed; font-size: 24px; font-weight: 400; color: var(--ink-2);
}
.obl .obl-doornote {
    margin: -6px 0 16px !important; padding: 10px 12px; border-left: 4px solid var(--hazard);
    background: #fff8dc; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 13px; color: var(--ink);
}

.obl-doorcards { display: grid; gap: 10px; margin: 12px 0 14px; }
.obl-doorcard { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; background: #fff; }
.obl-doorcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.obl-doorcard h4 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); }
.obl-doorcard header b { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.obl-doorcard header small, .obl-grand small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--ink-3); }
.obl-doorcard dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0 !important; font-size: 13px; }
.obl-doorcard dt { color: var(--ink-3); }
.obl-doorcard dd { margin: 0; font-weight: 600; }
.obl-doorcard footer { display: flex; gap: 8px; margin-top: 10px; }
.obl .obl-doorcard-btn {
    margin: 0; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 6px;
    background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
}
.obl .obl-doorcard-btn:hover { border-color: var(--ink); }
.obl .obl-doorcard-btn.is-del { color: var(--red); }
.obl .obl-doorcard-btn.is-del:hover { border-color: var(--red); }
.obl-grand {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius-s); background: var(--ink); color: #fff;
}
.obl-grand span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.obl-grand span small { color: #c9d3db; margin-top: 2px; }
.obl-grand > b { font-family: var(--display); font-weight: 800; font-size: 28px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.obl-grand > b small { color: #c9d3db; }

.obl-adddoor { margin: 4px 0 24px; }
.obl .obl-adddoor-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0;
    padding: 13px 14px; border: 2px dashed var(--ink-3); border-radius: var(--radius-s);
    background: var(--steel); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.2;
}
.obl .obl-adddoor-btn svg { width: 20px; height: 20px; flex: none; fill: var(--green); }
.obl .obl-adddoor-btn:hover { border-color: var(--ink); background: #fff; }
.obl .obl-adddoor-btn:disabled { opacity: .5; cursor: not-allowed; }
.obl-adddoor small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

.obl .obl-p-current {
    display: inline-block; margin-bottom: 8px !important; padding: 2px 8px; border-radius: 4px;
    background: rgba(255,255,255,.1); color: var(--hazard); font-size: 12px; font-weight: 700;
}
.obl-p-sub { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.18); }

@media (max-width: 1100px) {
    .obl { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); }
    .obl-swatches { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .obl { grid-template-columns: 1fr; gap: 14px; padding: 0 0 16px; }
    .obl-stage { position: relative; top: 0; height: clamp(320px, 72vw, 520px); min-height: 0; }
    .obl-stage-model { font-size: 24px; }
    .obl-stage-tools { bottom: 36px; }
    .obl .obl-tool span { display: none; }
    .obl .obl-tool { padding: 11px; }
    .obl .obl-tool--main span { display: inline; }
    .obl-panel { padding: 20px 16px 0; }
    .obl-title { font-size: 28px; }
    .obl-title span { font-size: 42px; }
    .obl-price { position: sticky; bottom: 0; z-index: 4; margin: 18px -16px 0; padding: 12px 16px; box-shadow: 0 -8px 24px rgba(17,24,30,.18); }
    .obl .obl-price-toggle {
        display: block; position: absolute; right: 12px; top: -30px; height: 30px; padding: 0 12px; border: 0;
        border-radius: 8px 8px 0 0; background: var(--ink); color: #dfe6ec; font-size: 12px; font-weight: 600;
    }
    .obl-price-body { display: none; padding-bottom: 6px; }
    .obl-price.is-open .obl-price-body { display: block; }
    .obl-price-total { margin-top: 0; padding-top: 0; border-top: 0; }
    .obl-price-big b { font-size: 34px; }
    .obl-save { text-align: left; margin-top: 2px !important; }
    .obl-nav { margin: 0 -16px; padding: 12px 16px 18px; }
}
@media (max-width: 520px) {
    .obl-price-total .obl-price-label { white-space: nowrap; font-size: 16px; }
    .obl-doorcard dl { grid-template-columns: 1fr; gap: 0; }
    .obl-doorcard dd { margin-bottom: 4px; }
    .obl-grand > b { font-size: 22px; }
    .obl-swatches { grid-template-columns: repeat(2, 1fr); }
    .obl-fields { grid-template-columns: 1fr; }
    .obl .obl-steps button { font-size: 0; gap: 0; }
    .obl .obl-steps button b { font-size: 11px; }
    .obl .obl-steps button.is-active { font-size: 12px; gap: 5px; }
    .obl .obl-dim-input input { font-size: 38px; }
    .obl-leafcard { padding: 8px; }
    .obl-leafcard strong { font-size: 18px; }
    .obl-stage-hint { display: none; }
    .obl-stage-model { display: none; }
    .obl-stage-tools { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .obl *, .obl *::before, .obl *::after { animation: none !important; transition: none !important; }
}
