/* ============================================================
   gods3dplan — pagina Aziende: testata, configuratore 3D,
   passaggi, richiesta con anteprima, domande. Classi az-*.
   ============================================================ */
.az {
  --az: #24364B;
  --az-deep: #142033;
  --az-gold: #C9A04A;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- testata ---------- */
.az-hero { width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad))); margin: clamp(18px, 2.4vw, 30px) auto 0; }
.az-hero-in {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(440px, 40vw, 580px);
  padding: clamp(24px, 4vw, 60px); border-radius: var(--r-xl); background: #DAD8D3;
}
.az-hero-in { padding-bottom: calc(clamp(24px, 4vw, 60px) + 46px); background: linear-gradient(100deg, #F4F2EE 0%, #E4E5E6 55%, #D3D6DA 100%); }
.az-hero-foto {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: 62%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.az-hero-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 0% 100%, rgba(201, 160, 74, .12), transparent 70%);
}
.az-hero-copy { max-width: 36rem; }
.az-hero .crumbs { margin-bottom: 26px; color: rgba(21, 20, 15, .62); }
.az-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .14);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--az);
}
.az-eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: var(--az-gold); box-shadow: 0 0 0 3px rgba(201, 160, 74, .2); }
.az-hero .page-title { margin-top: 18px; font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.az-hero .page-title em { color: var(--az); font-style: normal; }
.az-hero .page-lead { max-width: 31em; color: rgba(21, 20, 15, .76); }
.az-hero .page-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 28px; }
.az-btn-light { background: rgba(255, 255, 255, .6); border-color: rgba(21, 20, 15, .12); }

.az-stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  width: calc(100% - 2 * clamp(16px, 3vw, 44px)); margin: -46px auto 0; padding: 6px; list-style: none; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 30px 60px -34px rgba(20, 32, 51, .45);
}
.az-stats li { display: grid; gap: 4px; padding: 16px 20px; }
.az-stats li + li { border-left: 1px solid var(--line); }
.az-stats b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -.04em; color: var(--az); font-variant-numeric: tabular-nums; }
.az-stats span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }

/* ---------- configuratore ---------- */
.az-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px 48px; align-items: end; }
.az-head-lead { max-width: 30em; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.az-studio {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr); gap: clamp(14px, 1.8vw, 24px); align-items: stretch;
  margin-top: clamp(24px, 3vw, 40px);
}
.az-left { position: sticky; top: 92px; align-self: start; display: grid; gap: 12px; min-width: 0; }

.az-stage {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 3.1; border-radius: var(--r-lg);
  background: #1A2436 url("../fal/img/az-studio.webp") 30% 40% / cover no-repeat;
  box-shadow: 0 40px 80px -46px rgba(20, 32, 51, .7);
}
.az-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 62%, rgba(255, 255, 255, .12), transparent 70%), linear-gradient(180deg, rgba(20, 32, 51, .3), rgba(20, 32, 51, 0) 40%);
}
.az-viewer { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.az-viewer:active { cursor: grabbing; }
.az-viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.az-stage-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.az-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: var(--sh-md);
}
.az-chip i { width: 7px; height: 7px; border-radius: 50%; background: #5BD48C; box-shadow: 0 0 0 3px rgba(91, 212, 140, .2); }
.az-chip.is-soft { background: rgba(20, 32, 51, .55); color: #fff; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.az-stage-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; }
.az-tool {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .3s, color .3s;
}
.az-tool:hover { background: rgba(255, 255, 255, .24); }
.az-tool[aria-pressed="true"] { background: #fff; color: var(--ink); }
.az-tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.az-hint { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .62); }
.az-stage-load, .az-stage-err { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.5; }
.az-stage-load[hidden], .az-stage-err[hidden] { display: none; }
.az-stage.is-nogl .az-stage-bar { display: none; }

/* controllo di stampa */
.az-check { padding: 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-sm); }
.az-check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.az-check-head p { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.az-check-head svg { color: #0E7A41; }
.az-check-head span { flex: none; white-space: nowrap; padding: 5px 11px; border-radius: var(--r-pill); background: #E3F4E9; color: #0E7A41; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.az-check.is-warn .az-check-head svg { color: #B5650F; }
.az-check.is-warn .az-check-head span { background: #FCEFD9; color: #9A540A; }
.az-check ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; }
.az-check li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.az-check li > i { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #0E7A41 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.az-check li.is-warn > i { background: #D9801C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 17.5v.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.az-check li.is-info > i { background: #7C8796 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 11v7M12 6.5v.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.az-check li b { display: block; color: var(--ink); font-size: 14px; font-weight: 650; }
.az-check li p { margin-top: 2px; font-size: 12.8px; line-height: 1.45; color: var(--muted); }
.az-check li img { display: block; max-width: 100%; max-height: 90px; margin-top: 8px; padding: 6px; border-radius: var(--r-sm); background: #F4F1EA; image-rendering: auto; }

/* pannello a schede */
.az-panel { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-md); }
.az-tabs { position: sticky; top: 84px; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 10px 10px 0; padding: 5px; border-radius: var(--r-md); background: #F3F0E9; }
.az-tab {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 6px 8px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.15; text-align: center; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s, transform .2s;
}
.az-tab b { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font-family: var(--font-mono); font-size: 11.5px; background: rgba(21, 20, 15, .07); transition: background .3s, color .3s; }
.az-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.az-tab:active { transform: scale(.97); }
.az-tab.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.az-tab.is-on b { background: var(--az); color: #fff; }
.az-tab:focus-visible { outline: 2px solid var(--az); outline-offset: 1px; }
.az-pane { padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) 10px; }
.az-pane[hidden] { display: none; }
.az-pane:not([hidden]) { animation: azPane .55s var(--ease) both; }
@keyframes azPane { from { opacity: 0; transform: translateY(10px); } }
.az-pane-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.65rem); letter-spacing: -.03em; line-height: 1.1; }
.az-pane-p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.az-basi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; margin-top: 18px; }
.az-base {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ic p" "t t"; align-content: start; align-items: start; gap: 14px 10px;
  width: 100%; padding: 12px 14px 15px 12px; border-radius: var(--r-md); text-align: left; background: #FBF9F5; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .35s var(--ease), background .35s, transform .5s var(--ease);
}
.az-base:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); transform: translateY(var(--lift, -4px)); }
.az-base:active { transform: scale(.99); transition-duration: .12s; }
.az-base.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--az), 0 16px 32px -20px rgba(20, 32, 51, .6); transform: none; }
.az-base:focus-visible { outline: 2px solid var(--az); outline-offset: 3px; }
.az-base-ic { grid-area: ic; position: relative; display: grid; place-items: center; width: 64px; height: 48px; border-radius: var(--r-sm); background: #EEF1F5; color: var(--az); transition: background .35s, color .35s; }
.az-base-ic svg { width: 46px; height: 30px; }
.az-base:hover .az-base-ic { background: #E4E9F0; }
.az-base.is-on .az-base-ic { background: var(--az); color: #fff; }
/* spunta sulla base scelta */
.az-base-ic::after {
  content: ""; position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; opacity: 0; transform: scale(.4);
  background: var(--az-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 2.5px #fff; transition: opacity .3s, transform .45s var(--ease);
}
.az-base.is-on .az-base-ic::after { opacity: 1; transform: none; }
.az-base-t { grid-area: t; min-width: 0; }
.az-base-t b { display: block; font-family: var(--font-display); font-weight: 650; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.az-base-t small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.az-base-p { grid-area: p; padding-top: 2px; font-size: 11.5px; line-height: 1.2; color: var(--muted); text-align: right; white-space: nowrap; }
.az-base-p b { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.az-drop {
  position: relative; display: grid; justify-items: center; gap: 4px; margin-top: 16px; padding: 22px 16px; border-radius: var(--r-md); text-align: center;
  border: 1.5px dashed rgba(36, 54, 75, .3); background: #F7F8FA; transition: border-color .3s, background .3s;
}
.az-drop:hover, .az-drop.is-over { border-color: var(--az); background: #EEF2F7; }
.az-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.az-drop.is-busy { opacity: .6; }
.az-drop.has-logo { padding: 14px 16px; }
.az-drop.has-logo .az-drop-ic, .az-drop.has-logo .az-drop-h { display: none; }
.az-file { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.az-drop-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: var(--r-sm); background: #fff; color: var(--az); box-shadow: var(--sh-sm); }
.az-drop-t { font-size: 15px; color: var(--ink-2); }
.az-drop-t strong { color: var(--ink); font-weight: 650; }
.az-drop-h { font-size: 12.5px; color: var(--muted); }
.az-logo-info { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-md); background: #EEF8F1; }
.az-logo-info[hidden] { display: none; }
.az-logo-ok { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #0E7A41; color: #fff; }
.az-logo-txt { flex: 1; min-width: 0; }
.az-logo-txt b { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.az-logo-txt small { font-size: 12.5px; color: var(--muted); }
.az-link { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21, 20, 15, .3); }
.az-link:hover { text-decoration-color: currentColor; }
.az-fine { margin-top: 10px; font-size: 12.8px; line-height: 1.45; color: var(--muted); }
.az-fine.is-err { color: #B3261E; font-weight: 600; }

.az-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; }
.az-row-col { flex-direction: column; align-items: stretch; }
.az-l { font-size: 13.5px; font-weight: 650; }
.az-l-out { display: flex; justify-content: space-between; }
.az-l-out output { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.az-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 4px; border-radius: var(--r-md); background: #F3F0E9; }
.az-seg-4 { display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.az-seg button { min-height: 36px; padding: 6px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; }
.az-seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.az-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.az-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.az-field { display: grid; gap: 7px; min-width: 0; }
.az-field label { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 650; }
.az-field label small { font-size: 12px; font-weight: 500; color: var(--muted); }
.az-field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #FBF9F5;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.az-field input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(36, 54, 75, .12); }
.az-fonts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.az-font {
  display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: var(--r-sm); background: #FBF9F5;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, background .3s;
}
.az-font b { font-family: var(--ff), var(--font-body); font-size: 22px; font-weight: 700; line-height: 1.1; }
.az-font small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.az-font:hover { background: #fff; }
.az-font.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--az); }
.az-font:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.az-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; --p: 78%; }
.az-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--az) var(--p), rgba(21, 20, 15, .14) var(--p)); }
.az-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--az); border: 3px solid #fff; box-shadow: var(--sh-sm); }
.az-range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--az) var(--p), rgba(21, 20, 15, .14) var(--p)); }
.az-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--az); border: 3px solid #fff; }

/* colori */
.az-metro { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: #F7F5F0; }
.az-metro-c { display: grid; grid-template-columns: repeat(4, 16px); gap: 4px; flex: none; }
.az-metro-c i { width: 16px; height: 26px; border-radius: 5px; background: repeating-linear-gradient(135deg, rgba(21, 20, 15, .08) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .1); }
.az-metro-c i.on { background: var(--f); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .15), inset 0 -6px 0 rgba(0, 0, 0, .12); }
.az-metro b { display: block; font-size: 14.5px; font-weight: 650; }
.az-metro small { display: block; font-size: 12.5px; color: var(--muted); }
.az-colmsg { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: #FCEFD9; color: #7A4306; font-size: 13px; line-height: 1.45; }
.az-colmsg[hidden] { display: none; }
.az-zone { display: grid; gap: 8px; margin-top: 14px; }
.az-zona { padding: 12px 14px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-2); }
.az-zona-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.az-zona-t b { font-size: 14px; font-weight: 650; }
.az-zona-t span { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.az-fili { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.az-filo {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 36px; border-radius: 50%; justify-self: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .35), transparent 45%), var(--f);
  box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .14), inset 0 -3px 5px rgba(0, 0, 0, .15); transition: transform .4s var(--ease), box-shadow .3s;
}
.az-filo.is-seta { background: conic-gradient(from 200deg, var(--f), #fff8 25%, var(--f) 45%, #0002 70%, var(--f)); }
.az-filo:hover { transform: scale(1.1); }
.az-filo.is-on { box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .14), 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.az-filo:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.az-toggles { display: grid; gap: 8px; }
.az-toggles:empty { display: none; }
.az-toggle { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #F7F5F0; cursor: pointer; }
.az-toggle input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--az); }
.az-toggle b { display: block; font-size: 14px; font-weight: 650; }
.az-toggle small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* quantità: riuso del listino di pages.css, nei colori della pagina */
.az-pane .tier.is-on { background: var(--az); border-color: var(--az); }
.az-pane .conto { margin-top: 16px; }

/* riepilogo fisso in fondo al pannello */
.az-sum {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: auto 10px 10px; padding: 12px 12px 12px 20px; border-radius: var(--r-lg); background: var(--az-deep); color: #fff;
  box-shadow: 0 24px 40px -24px rgba(20, 32, 51, .8);
}
.az-sum-p span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.az-sum-p b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.az-sum-p small { display: block; white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, .65); }
.az-sum-nav { display: flex; align-items: center; gap: 8px; }
.az-nav { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-size: 18px; transition: background .3s, opacity .3s; }
.az-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.az-nav:active:not(:disabled) { transform: scale(.94); }
.az-nav:disabled { opacity: .3; cursor: default; }
.az-nav:focus-visible, .az-sum .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.az-sum .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.az-sum .btn-primary .arr { background: var(--az); color: #fff; }
.az-sum .btn[hidden] { display: none; }

/* ---------- come lavoriamo ---------- */
.az-steps-sec header { max-width: 760px; }
.az-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; counter-reset: s; }
.az-steps li { position: relative; padding: 24px 22px 26px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-sm); }
.az-steps li::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--az), var(--az-gold)); opacity: .85; }
.az-step-n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--az); }
.az-steps h3 { margin-top: 26px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.1; }
.az-steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- richiesta ---------- */
.az-req-in {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(22px, 4vw, 64px); align-items: start;
  padding: clamp(22px, 4vw, 60px); border-radius: var(--r-xl); background: var(--az-deep); color: #fff;
  background-image: radial-gradient(60% 70% at 0% 0%, rgba(201, 160, 74, .16), transparent 60%), radial-gradient(50% 60% at 100% 100%, rgba(91, 130, 190, .2), transparent 70%);
}
.az-req .sec-kicker { color: rgba(255, 255, 255, .6); }
.az-req .sec-kicker::before { background: var(--az-gold); }
.az-req .sec-title em { color: rgba(255, 255, 255, .5); }
.az-req-lead { margin-top: 16px; max-width: 30em; color: rgba(255, 255, 255, .72); line-height: 1.55; }
.az-shot { margin: 24px 0 0; border-radius: var(--r-lg); overflow: hidden; background: #1A2436 url("../fal/img/az-studio.webp") 30% 40% / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.az-shot[hidden] { display: none; }
.az-shot-img { position: relative; display: block; aspect-ratio: 4 / 3; }
.az-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.az-shot img[src] { opacity: 1; }
.az-shot-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .72); background: rgba(10, 16, 26, .35); transition: opacity .4s; }
.az-shot.is-pronta .az-shot-wait { opacity: 0; pointer-events: none; }
.az-shot-act .az-link[aria-disabled] { opacity: .45; pointer-events: none; }
.az-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 12px 16px; background: rgba(10, 16, 26, .7); font-size: 13px; color: rgba(255, 255, 255, .8); }
.az-shot-act { display: flex; gap: 14px; }
.az-shot .az-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.az-req-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.az-req-points li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 12px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.3; color: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); }
.az-req-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--az-gold); box-shadow: 0 0 0 3px rgba(201, 160, 74, .18); }
.az-req-points a { color: #fff; text-decoration: underline; text-decoration-color: rgba(201, 160, 74, .7); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.az-req-points a:hover { text-decoration-color: #fff; }
/* area di tocco più alta senza spostare nulla */
.az-req-points a { padding-block: 10px; margin-block: -10px; }
.az-form { padding: clamp(20px, 2.6vw, 34px); border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: var(--sh-lg); }
.az-form .btn-block { width: 100%; justify-content: space-between; margin-top: 16px; }

/* ---------- domande ---------- */
.az-faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.az-faq-head { position: sticky; top: 110px; display: grid; gap: 16px; justify-items: start; }
.az-faq .acc.az-faq-list { max-width: none; display: grid; gap: 10px; border: 0; }
.az-faq-list details { border: 0; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-sm); }
.az-faq-list details[open] { box-shadow: inset 0 0 0 1.5px rgba(36, 54, 75, .4), var(--sh-sm); }
.az-faq-list summary { padding: 18px 22px; font-family: var(--font-body); font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.az-faq-list .acc-body { padding: 0 22px 20px; }
.az-faq-list .acc-body p { color: var(--ink-2); line-height: 1.55; }

/* ---------- adattamenti ---------- */
@media (max-width: 1080px) {
  .az-studio { grid-template-columns: minmax(0, 1fr); }
  .az-left { display: contents; }
  /* l'anteprima resta in vista mentre si scorrono le opzioni */
  .az-stage { order: 0; position: sticky; top: 78px; z-index: 4; aspect-ratio: auto; height: min(44svh, 440px); }
  .az-panel { order: 1; }
  .az-check { order: 2; }
  .az-tabs, .az-sum { position: static; }
  .az-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .az-hero-in { min-height: 0; padding-top: 220px; border-radius: var(--r-lg); }
  .az-hero-foto { left: 0; width: 100%; height: 300px; object-position: 60% 50%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .az-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; width: 100%; }
  .az-stats li:nth-child(3) { border-left: 0; }
  .az-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .az-head, .az-req-in, .az-faq { grid-template-columns: minmax(0, 1fr); }
  .az-faq-head { position: static; }
  .az-check ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .az-hero-in { padding: 232px 18px 22px; }
  .az-hero-foto { height: 260px; }
  .az-hero .page-actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .az-hero .page-actions .btn-ghost { justify-content: center; }
  .az-stats li { padding: 12px 14px; }
  .az-stage { height: min(40svh, 330px); border-radius: var(--r-lg); }
  .az-stage-top { top: 10px; left: 10px; }
  .az-stage-bar { left: 10px; bottom: 10px; }
  .az-tool { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .az-hint { display: none; }
  .az-panel { border-radius: var(--r-lg); }
  .az-tabs { margin: 6px 6px 0; gap: 2px; padding: 4px; }
  .az-tab { flex-direction: column; gap: 3px; font-size: 11.5px; padding: 6px 2px; }
  .az-pane { padding: 18px 14px 6px; }
  .az-two { grid-template-columns: minmax(0, 1fr); }
  .az-fonts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .az-seg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-fili { gap: 6px; }
  .az-sum { margin: 14px 6px 6px; padding: 10px 10px 10px 16px; }
  .az-sum-p b { font-size: 1.35rem; }
  .az-sum .az-next { height: 50px; padding-left: 18px; gap: 10px; }
  .az-sum .az-next .arr { width: 36px; height: 36px; }
  .az-nav { width: 44px; height: 44px; }
  .az-steps { grid-template-columns: minmax(0, 1fr); }
  .az-req-in { padding: 22px 14px 14px; border-radius: var(--r-lg); }
  .az-form { padding: 20px 16px; border-radius: var(--r-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .az-base, .az-filo { transition: none; }
}
.az-field-qr { margin-top: 14px; }
.az-field-qr input { font-family: var(--font-mono); font-size: 13px; }

/* ---------- rifinitura: stati di caricamento, Club, listino ---------- */
.az-spin {
  display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: azGira .9s linear infinite;
}
@keyframes azGira { to { transform: rotate(360deg); } }
.az-stage-load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.az-stage-load .az-spin { width: 26px; height: 26px; }
/* cambio di base: piccola etichetta in alto a destra mentre arriva il modello */
.az-stage-busy {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 9px;
  border-radius: var(--r-pill); background: rgba(20, 32, 51, .62); color: #fff; font-size: 12.5px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.az-stage-busy .az-spin { width: 14px; height: 14px; }
.az-stage.is-busy .az-stage-busy { opacity: 1; transform: none; }
.az-stage.is-busy .az-viewer { opacity: .55; transition: opacity .3s; }
.az-viewer { transition: opacity .45s var(--ease); }
.az-tool:active { transform: scale(.96); }
.az-tool { transition: background .3s, color .3s, transform .2s; }

/* listino nei colori della pagina */
.az-pane .ladder-range label { font-weight: 650; }
.az-pane .ladder-range output { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--az); }
.az-pane .ladder-range input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--az) var(--p), rgba(21, 20, 15, .12) var(--p)); }
.az-pane .ladder-range input[type="range"]::-webkit-slider-thumb { background: var(--az); }
.az-pane .ladder-range input[type="range"]::-moz-range-track { background: linear-gradient(90deg, var(--az) var(--p), rgba(21, 20, 15, .12) var(--p)); }
.az-pane .ladder-range input[type="range"]::-moz-range-thumb { background: var(--az); }
.az-pane .ladder-range input[type="range"]:focus-visible { outline: 2px solid var(--az); outline-offset: 4px; border-radius: var(--r-sm); }
.az-pane button.tier { transition: background .35s, color .35s, border-color .35s, transform .2s; }
.az-pane button.tier:hover:not(.is-on) { border-color: var(--az); background: #fff; }
.az-pane button.tier:active { transform: scale(.96); }
.az-pane button.tier:focus-visible { outline: 2px solid var(--az); outline-offset: 2px; }
/* il prezzo al pezzo e il totale stanno già nel riepilogo: qui resta solo il consiglio sullo scaglione */
.az-pane .ladder-out { display: block; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: #F3F5F8; color: var(--ink-2); }
.az-pane .ladder-out > div { display: none; }
.az-pane .ladder-out p { margin: 0; padding: 0; border: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* i buoni del Club valgono anche qui */
.az-club {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 11px 14px 11px 12px; border-radius: var(--r-md);
  background: #FBF6EA; box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .32); font-size: 13.5px; line-height: 1.4; color: var(--ink-2);
  transition: background .3s, box-shadow .3s;
}
.az-club b { font-weight: 650; color: var(--ink); }
.az-club-ic { display: inline-flex; flex-direction: column; gap: 2.5px; flex: none; padding: 7px 8px; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .3); }
.az-club-ic i { display: block; width: 16px; height: 3px; border-radius: 2px; background: var(--az-gold); }
.az-club-ic i:nth-child(2) { width: 13px; margin-inline: auto; opacity: .75; }
.az-club-ic i:nth-child(3) { width: 10px; margin-inline: auto; opacity: .5; }
.az-club-arr { margin-left: auto; padding-left: 4px; color: #9A7631; font-weight: 600; transition: transform .4s var(--ease); }
.az-club:hover { background: #F8EFD9; box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .55); }
.az-club:hover .az-club-arr { transform: translateX(3px); }
.az-club:focus-visible { outline: 2px solid var(--az); outline-offset: 2px; }

/* passaggi: numeri più presenti */
.az-steps li { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.az-steps li:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.az-step-n { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: var(--r-pill); background: #EEF1F5; }

/* modulo: stati dei campi e del pulsante */
.az-form .field input:focus-visible, .az-form .field textarea:focus-visible { outline: none; border-color: var(--az); box-shadow: 0 0 0 4px rgba(36, 54, 75, .12); }
.az-faq-list summary { transition: color .3s; }
.az-faq-list summary:hover { color: var(--az); }
.az-faq-list summary:focus-visible { outline: 2px solid var(--az); outline-offset: -2px; border-radius: var(--r-md); }

@media (max-width: 900px) {
  .az-hero-in { padding-bottom: clamp(24px, 4vw, 60px); }
}
@media (max-width: 560px) {
  .az-eyebrow { padding: 6px 12px 6px 9px; font-size: 11.5px; letter-spacing: .05em; white-space: nowrap; }
  .az-basi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .az-base { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ic" "t" "p"; gap: 10px; padding: 10px 11px 12px 10px; border-radius: var(--r-md); }
  .az-base-ic { width: 52px; height: 40px; border-radius: var(--r-sm); }
  .az-base-ic svg { width: 38px; height: 26px; }
  .az-base-t b { font-size: 14.5px; }
  .az-base-t small { font-size: 11.5px; }
  .az-base-p { padding-top: 0; text-align: left; }
  .az-base-p b { display: inline; margin-left: 3px; font-size: 15px; }
  .az-base:hover { transform: none; }
  .az-req-points { grid-template-columns: minmax(0, 1fr); }
  .az-club { font-size: 13px; }
  .az-stage-busy { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .az-pane:not([hidden]) { animation: none; }
  .az-spin { animation-duration: 2.4s; }
  .az-steps li, .az-base-ic::after { transition: none; }
}

/* riepilogo su tablet e telefono: resta in fondo allo schermo mentre si sceglie */
@media (max-width: 1080px) {
  .az-sum { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .az-sum { flex-wrap: wrap; row-gap: 10px; }
  .az-sum-p { flex: 1 1 90px; min-width: 0; }
  .az-sum-p small { white-space: normal; line-height: 1.35; }
  .az-sum-nav { flex: 0 1 auto; margin-left: auto; }
  .az-sum-nav:has(#azFine:not([hidden])) { flex: 1 1 100%; }
  .az-sum-nav .az-next:not([hidden]) { flex: 1 1 auto; justify-content: space-between; }
  .az-check-head p { font-size: 14px; }
  .az-check-head span { padding: 4px 9px; font-size: 11.5px; }
}

/* una sola tinta d'accento: ardesia (con il filo d'oro come dettaglio) */
.az-hero .crumbs > a:hover { background: #EEF1F5; box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .16); }
.az .sec-kicker::before { background: var(--az-gold); }
.az .sec-title em { color: var(--sub); }
.az-stats b, .az-hero .page-title em { color: var(--az); }
.az-check-head span, .az-step-n, .az-l-out output, .az-zona-t span, .az-sum-p small { font-family: var(--font-mono); }

/* ---------- telefono: anteprima compatta, una sola barra in basso con passaggio e prezzo ---------- */
.az-sum-p .az-sum-step { display: none; }
@media (max-width: 560px) {
  .az-stage { top: 72px; height: 190px; }
  .az-stage-top { top: 8px; left: 8px; right: 8px; }
  .az-chip { height: 28px; padding: 0 10px; font-size: 12px; }
  .az-stage-bar { left: 8px; bottom: 8px; }
  .az-tool { height: 32px; padding: 0 11px; }
  .az-stage-busy { top: 8px; right: 8px; height: 28px; }
  .az-tabs { position: relative; top: 0; z-index: 1; } /* niente scarto di 84px: la barra dei passaggi resta sopra il titolo, non sopra il testo */
  .az-sum { z-index: 5; }
  .az-sum-p .az-sum-l { display: none; }
  .az-sum-p .az-sum-step { display: block; overflow: hidden; margin-bottom: 2px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: #D9BE82; }
  .az-sum-p small { font-size: 11px; white-space: nowrap; }
}

/* testata con la scena 3D: una targa vera del configuratore che gira piano; la foto resta solo se il 3D non c'è */
.az-hero-3d { position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 56%; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
.az-hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.az-hero.has-3d .az-hero-3d { opacity: 1; }
.az-hero.has-3d .az-hero-foto { opacity: 0; transition: opacity .8s var(--ease); }
.az-hero.has-3d .az-hero-in { background: radial-gradient(70% 90% at 78% 55%, #FFFFFF 0%, #ECEAE5 45%, #DCDAD4 100%); }
@media (max-width: 900px) {
  .az-hero-3d { left: 0; width: 100%; height: 300px; bottom: auto; }
}
@media (max-width: 560px) {
  .az-hero-3d { height: 250px; }
}
.az-ft-b2b > .btn { margin-top: 18px; width: fit-content; }

/* rifiniture: domande numerate come nel Club; controllo di stampa senza buchi nella griglia */
.az-faq-list summary { justify-content: flex-start; gap: 14px; }
.az-faq-list summary::after { margin-left: auto; }
.az-faq-n { flex: 0 0 auto; font: 600 12px/1 var(--font-mono); color: var(--muted); }
.az-faq-list .acc-body { padding-left: 56px; }
.az-check li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .az-faq-list .acc-body { padding-left: 22px; }
}

/* telefono: visore un po' più basso sugli schermi corti e un velo sotto il bordo, così le basi non ci scorrono sotto a vista */
@media (max-width: 560px) {
  .az-stage { height: min(190px, 26svh); box-shadow: 0 12px 16px -10px rgba(20, 32, 51, .45), 0 18px 14px -4px var(--bg); }
}

/* mentre il modello si carica: la pillola della base resta in vista e il puntino pulsa (animazione ping del sito) */
.az-stage:has(#azLoad:not([hidden])) .az-stage-top { z-index: 2; }
.az-stage:has(#azLoad:not([hidden])) .az-chip i, .az-stage.is-busy .az-chip i { --cat: #5BD48C; animation: ping 2.4s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .az-stage .az-chip i { animation: none; } }

/* suggerimento del visore: col mouse Ctrl + rotella, al tocco il pizzico (scelto dal CSS, senza aspettare il JS) */
.az-hint-mouse { display: none; }
@media (hover: hover) {
  .az-hint-touch { display: none; }
  .az-hint-mouse { display: inline; }
}

/* (giro 9) comandi piccoli del configuratore e della richiesta: stessa grafica, area di tocco di 44 px */
.az-tool, .az-link, .az-recap-mod { position: relative; }
.az-tool::after { content: ""; position: absolute; inset: -6px -2px; border-radius: inherit; }
.az-link::after, .az-recap-mod::after { content: ""; position: absolute; inset: -12px -6px; }

/* (giro 9) telefoni stretti (320 px): l'etichetta in alto non allarga più la colonna e il testo resta dentro la scheda */
.az-hero-copy { min-width: 0; }
@media (max-width: 360px) {
  .az-eyebrow { max-width: 100%; font-size: 10.5px; letter-spacing: .03em; white-space: normal; line-height: 1.3; }
}

/* ============================================================
   (giro 11, 30/11) movimento sotto controllo, retro, quantità e riepilogo
   ============================================================ */

/* testata: la targa si trascina col mouse; il pulsante tondo la ferma o le fa fare un giro */
@media (hover: hover) and (pointer: fine) {
  .az-hero.has-3d .az-hero-3d { pointer-events: auto; cursor: grab; }
  .az-hero.has-3d .az-hero-3d:active { cursor: grabbing; }
}
.az-hero-play {
  position: absolute; right: clamp(16px, 2.2vw, 28px); bottom: calc(46px + clamp(16px, 2vw, 24px)); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .78); color: var(--az); box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .12), var(--sh-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; animation: azAppare .6s .4s var(--ease) forwards;
  transition: background .3s, color .3s, transform .2s;
}
.az-hero-play[hidden] { display: none; }
.az-hero-play:hover { background: #fff; }
.az-hero-play:active { transform: scale(.94); }
.az-hero-play:focus-visible { outline: 2px solid var(--az); outline-offset: 3px; }
.az-hero-play .az-ic-pausa, .az-hero-play.is-va .az-ic-gira { display: none; }
.az-hero-play.is-va .az-ic-pausa { display: block; }
@keyframes azAppare { to { opacity: 1; } }
@media (max-width: 900px) {
  .az-hero-play { top: calc(300px - 58px); bottom: auto; right: 14px; }
}
@media (max-width: 560px) {
  .az-hero-play { top: calc(250px - 56px); right: 12px; }
}

/* visore: «Guarda il retro» (portachiavi) */
.az-tool[hidden] { display: none; }
.az-tool span { white-space: nowrap; }

/* basi: la riga del QR sul retro */
.az-base-nota {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 8px 4px 6px; border-radius: 8px;
  background: #EEF1F5; color: var(--az); font-size: 11.5px; font-style: normal; font-weight: 600; line-height: 1.3;
}
.az-base-nota svg { flex: none; }
.az-base.is-on .az-base-nota { background: #E4E9F0; }

/* ---------- quantità ---------- */
.az-qty {
  margin-top: 16px; padding: 16px 16px 14px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #F7F8FA, #F1F3F6); box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .08);
}
.az-qty-top { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.az-step {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--az);
  box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .16), var(--sh-sm); transition: background .3s, color .3s, box-shadow .3s, transform .2s, opacity .3s;
}
.az-step:hover:not(:disabled) { background: var(--az); color: #fff; box-shadow: 0 10px 20px -10px rgba(20, 32, 51, .6); }
.az-step:active:not(:disabled) { transform: scale(.93); }
.az-step:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .12); }
.az-step:focus-visible { outline: 2px solid var(--az); outline-offset: 3px; }
.az-qty-val { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; }
.az-qty-val output { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.az-qty-val span { font-size: 14px; font-weight: 600; color: var(--muted); }
.az-pane .az-qty-range { margin-top: 12px; }
.az-pane .az-qty-range input[type="range"] { height: 32px; margin: 0; }
.az-pane .az-qty-range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; }
.az-pane .az-qty-range input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; border: 4px solid #fff; box-shadow: 0 0 0 1px rgba(36, 54, 75, .18), 0 6px 14px -4px rgba(20, 32, 51, .45); }
.az-pane .az-qty-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; }
.az-pane .az-qty-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid #fff; box-shadow: 0 0 0 1px rgba(36, 54, 75, .18), 0 6px 14px -4px rgba(20, 32, 51, .45); }
.az-qty-scala { position: relative; height: 22px; margin: 0 13px; }
.az-qty-scala i { position: absolute; top: 0; left: var(--x); display: grid; justify-items: center; gap: 3px; transform: translateX(-50%); font-style: normal; }
.az-qty-scala i::before { content: ""; width: 1.5px; height: 6px; border-radius: 1px; background: rgba(21, 20, 15, .2); transition: background .3s; }
.az-qty-scala span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; line-height: 1; color: var(--muted); transition: color .3s; }
.az-qty-scala i.is-on::before { background: var(--az); }
.az-qty-scala i.is-on span { color: var(--az); font-weight: 600; }
.az-qty-prezzo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(36, 54, 75, .1);
}
.az-qty-prezzo > div { min-width: 0; }
.az-qty-prezzo span { display: block; font-size: 12px; color: var(--muted); }
.az-qty-prezzo strong { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.az-qty-prezzo s { margin-left: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration-thickness: 1px; }
.az-qty-badge {
  align-self: center; padding: 6px 10px; border-radius: var(--r-pill); background: #EEF1F5; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .02em; white-space: nowrap; transition: background .3s, color .3s;
}
.az-qty-badge.is-on { background: #E3F4E9; color: #0E7A41; }
.az-qty-note { margin-top: 12px; padding: 11px 14px; border-radius: var(--r-md); background: #FBF6EA; box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .28); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.az-pane .tiers { margin-top: 12px; }
.az-pane button.tier { min-height: 64px; border-radius: var(--r-sm); background: #fff; }
.az-pane .tier.is-on { box-shadow: 0 10px 20px -12px rgba(20, 32, 51, .7); }
@media (max-width: 560px) {
  .az-qty { padding: 14px 12px 12px; }
  .az-qty-top { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .az-step { width: 44px; height: 44px; }
  .az-qty-scala i[data-q="50"] span { visibility: hidden; }
  .az-qty-prezzo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .az-qty-prezzo .az-qty-badge { display: none; } /* lo sconto resta scritto negli scaglioni e nel prezzo barrato */
  .az-qty-prezzo strong { font-size: 1.25rem; }
  .az-qty-prezzo s { display: block; margin: 2px 0 0; }
}

/* ---------- riepilogo nella richiesta ---------- */
.az-recap {
  display: block; margin-bottom: 20px; padding: 0; overflow: hidden; border-radius: var(--r-md); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .12), 0 18px 36px -26px rgba(20, 32, 51, .45);
}
.az-recap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #F3F5F8; border-bottom: 1px solid rgba(36, 54, 75, .08); }
.az-recap .az-recap-k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--az); }
.az-recap-k i { width: 7px; height: 7px; border-radius: 2px; background: var(--az-gold); box-shadow: 0 0 0 3px rgba(201, 160, 74, .2); }
.az-recap .az-recap-mod {
  grid-column: auto; grid-row: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1px rgba(36, 54, 75, .16); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .3s, color .3s, box-shadow .3s;
}
.az-recap .az-recap-mod:hover { background: var(--az); color: #fff; box-shadow: none; }
.az-recap .az-recap-mod:focus-visible { outline: 2px solid var(--az); outline-offset: 2px; }
.az-recap .az-recap-mod::after { inset: -6px -4px; }
.az-recap-main { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 16px 0; }
.az-recap-img {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm);
  background: #1A2436 url("../fal/img/az-studio.webp") 30% 40% / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.az-recap-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .5s var(--ease); }
.az-recap-img.is-pronta img { opacity: 1; }
.az-recap-t { min-width: 0; }
.az-recap-t strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.az-recap-t small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.az-recap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0 16px; list-style: none; }
.az-recap-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; max-width: 100%; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); background: #F7F5F0; font-size: 12.5px; line-height: 1.3; }
.az-recap-chips li:not(:has(i)) { padding-left: 10px; }
.az-recap-chips li.is-largo { border-radius: 10px; }
.az-recap-chips i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .18); }
.az-recap-chips span { flex: none; color: var(--muted); }
.az-recap-chips b { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.az-recap-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 16px 16px 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.az-recap-num div { min-width: 0; }
.az-recap-num div + div { padding-left: 14px; border-left: 1px solid var(--line-2); }
.az-recap-num dt { font-size: 12px; color: var(--muted); }
.az-recap-num dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.az-recap-num .is-tot dd { color: var(--az); }
.az-recap-fine { margin: 10px 16px 14px; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .az-recap-head { padding: 10px 12px; }
  .az-recap-main { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 12px 0; }
  .az-recap-t strong { font-size: 1.15rem; }
  .az-recap-chips { padding: 0 12px; }
  .az-recap-num { margin: 14px 12px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .az-recap-num .is-tot { grid-column: 1 / -1; padding: 10px 0 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-2); }
  .az-recap-num .is-tot dd { font-size: 1.3rem; }
  .az-recap-fine { margin: 10px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .az-hero-play { animation: none; opacity: 1; }
}
@media (max-width: 560px) {
  .az-nota-l { display: none; }
  .az-base-nota { font-size: 11px; }
  /* le misure sono già nella scheda della base: in alto resta solo il nome, così il pezzo alto non finisce sotto le pillole */
  .az-stage-top .az-chip.is-soft { display: none; }
  .az-hero-play { top: 180px; }
}
.az-recap .az-recap-k { min-width: 0; }
.az-recap .az-recap-mod { flex: none; }
@media (max-width: 360px) {
  .az-recap .az-recap-k { font-size: 10.5px; letter-spacing: .05em; }
  .az-recap-main { grid-template-columns: 64px minmax(0, 1fr); }
}
/* 320 px: «Richiedi il preventivo» resta dentro la barra in basso */
@media (max-width: 360px) {
  .az-sum-nav { min-width: 0; }
  .az-sum-nav .az-next { min-width: 0; padding-left: 14px; gap: 8px; font-size: 14.5px; white-space: nowrap; }
  .az-sum-nav .az-next .arr { width: 34px; height: 34px; }
}

/* ============================================================
   (giro 12, 30/11) QR e retro a scelta: Codice QR · Testo · Niente
   ============================================================ */
.az-retro { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.az-retro[hidden], .az-retro-scelta[hidden], .az-retro .az-field[hidden], .az-retro-nota[hidden] { display: none; }
.az-retro > .az-field-qr:first-child, .az-retro-scelta[hidden] + .az-field-qr { margin-top: 0; }
.az-retro-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.az-retro-head small { font-size: 12px; font-weight: 500; color: var(--muted); }
.az-seg-retro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 10px; }
.az-seg-retro button { min-height: 44px; padding: 6px 8px; white-space: nowrap; }
.az-field-retro { margin-top: 14px; }
.az-field-retro label small { white-space: nowrap; }
.az-field-retro output { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.az-retro-nota { margin-top: 8px; }
@media (max-width: 400px) {
  .az-retro-hint { display: none; }
}
/* «Guarda il retro» sul telefono diventa «Retro» / «Davanti»: i tre comandi stanno nella barra anche a 320 px */
.az-corto { display: none; }
@media (max-width: 480px) {
  .az-lungo { display: none; }
  .az-corto { display: inline; }
}
@media (max-width: 360px) {
  .az-stage-bar { right: 8px; gap: 5px; }
  .az-stage-bar .az-tool { padding: 0 8px; gap: 4px; }
}
