/* KYROS · L'Arte Funzionale del Metallo
   Palette editoriale chiara (carta calda + inchiostro), scuro usato con parsimonia
   (ambienti, piè di pagina), ottone come unico accento funzionale, arancio del marchio
   solo nella "S" del logotipo. Tipografia: Bodoni Moda (titoli) + Jost (testo). */

:root {
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --paper-3: #e1dbd0;
  --ink: #1b1916;
  --ink-2: #57514a;
  --ink-3: #736b60;
  --line: rgba(27, 25, 22, .14);
  --line-2: rgba(27, 25, 22, .28);
  --brass: #b08a4a;
  --brass-ink: #7f5f2a;
  --brand: #e0661c;
  --night: #161513;
  --night-2: #201e1b;
  --night-ink: #ece6dc;
  --night-ink-2: #a59d91;
  --night-line: rgba(236, 230, 220, .14);
  --stage-bg: #dcd6cc;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --sans: 'Jost', 'Futura', system-ui, -apple-system, sans-serif;
  --header: 76px;
  --gutter: clamp(16px, 4vw, 56px);
  /* aree sicure (notch, isola dinamica, barra home): servono con viewport-fit=cover */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --pad-l: max(var(--gutter), var(--sal));
  --pad-r: max(var(--gutter), var(--sar));
  --head-h: calc(var(--header) + var(--sat)); /* altezza reale dell'intestazione fissa */
  --ov-gap: 16px; /* distanza dei comandi dal bordo del palco 3D */
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(42px, 4.6vw, 76px); }
h2 { font-size: clamp(34px, 3.6vw, 56px); }
h3 { font-size: 24px; letter-spacing: -.005em; }
em { font-style: italic; }
p { margin: 0 0 1em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: 12px; font-weight: 500; color: var(--brass-ink); margin: 0 0 18px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad-l); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.small { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--head-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: var(--sat) var(--pad-r) 0 var(--pad-l); background: rgba(244, 241, 236, .94); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 30px; }
.nav a, .head-tel { text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.nav a:hover, .head-tel:hover, .nav a.on { color: var(--ink); background-size: 100% 1px; }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wm { font-family: var(--serif); font-size: 29px; font-weight: 500; letter-spacing: .2em; margin-right: -.2em; font-optical-sizing: auto; }
.wm span { color: var(--brand); }
.logo-sub { font-size: 9px; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; }
.head-actions { display: flex; justify-content: flex-end; align-items: center; gap: 26px; }
.quote-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line-2); padding: 9px 10px 9px 18px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.quote-btn:hover { border-color: var(--ink); }
.qb-short { display: none; }
.badge { background: var(--ink); color: var(--paper); min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 500; padding: 0 6px; letter-spacing: 0; border-radius: 11px; transition: transform .3s var(--ease); }
.badge.bump { transform: scale(1.25); }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: -10px; background: none; border: 0; position: relative; }
.menu-ico, .menu-ico::before { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-ico { top: 18px; }
.menu-ico::before { content: ''; left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-ico { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::before { top: 0; transform: rotate(-90deg); }
.mobile-menu { position: fixed; z-index: 39; inset: var(--head-h) 0 0 0; background: var(--paper); padding: 28px var(--pad-r) calc(40px + var(--sab)) var(--pad-l); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: none; }
[hidden] { display: none !important; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--serif); font-size: 34px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mm-foot { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #34302a; }
.btn.line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn.line:hover { border-color: var(--ink); }
.btn.block { width: 100%; }
.btn .arr, .link .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid currentColor; background: none; border-top: 0; border-left: 0; border-right: 0; }
.icon-btn { flex: none; background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; position: relative; }
.x, .x::before { display: block; width: 20px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.x::before { content: ''; transform: rotate(90deg); }
.icon-btn:hover { background: rgba(27, 25, 22, .06); }

/* ------------------------------------------------------------------ 3D stage */
.stage { position: absolute; inset: 0; overflow: hidden; background: var(--stage-bg); }
.viewer-canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: grab; }
/* Dita: il trascinamento orizzontale ruota il pezzo, quello verticale scorre la pagina,
   il pizzico zooma il modello (non la pagina). È la stessa scelta di <model-viewer>
   (touch-action: pan-y): il palco non intrappola mai lo scorrimento, anche quando è fisso.
   !important perché OrbitControls scrive touch-action: none in linea sul canvas. */
@media (pointer: coarse) { .viewer-canvas { touch-action: pan-y !important; } }
.viewer-canvas:active { cursor: grabbing; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; pointer-events: none; transition: opacity .8s; z-index: 1; }
.stage-loading span::after { content: ''; display: block; height: 1px; margin-top: 10px; background: var(--ink-2); animation: load 1.4s var(--ease) infinite; transform-origin: left; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.stage.ready .stage-loading { opacity: 0; }

.ov { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.ov > * { pointer-events: auto; }
.ov.tl { top: var(--ov-gap); left: calc(var(--ov-gap) + var(--sal)); }
.ov.tr { top: var(--ov-gap); right: calc(var(--ov-gap) + var(--sar)); }
.ov.bl { bottom: var(--ov-gap); left: calc(var(--ov-gap) + var(--sal)); }
.ov.br { bottom: var(--ov-gap); right: calc(var(--ov-gap) + var(--sar)); }
/* barra strumenti della scheda: va a capo (a destra) quando lo spazio non basta */
.stage-tools { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 210px); }
.ov-hint { bottom: var(--ov-gap); }
.hero-stage .ov-hint { right: calc(var(--ov-gap) + var(--sar)); }
.product-stage .ov-hint { left: calc(var(--ov-gap) + var(--sal)); }
.glass { background: rgba(247, 245, 241, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(27, 25, 22, .08); }
.seg { display: inline-flex; padding: 3px; }
.seg button { background: none; border: 0; min-height: 34px; padding: 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip { min-height: 40px; padding: 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.chip:hover { background: #fff; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.ar { background: var(--ink); color: var(--paper); border: 0; padding: 0 18px; min-height: 44px; }
.chip.ar:hover { background: #34302a; }
.chip svg { width: 16px; height: 16px; flex: none; }
.hint { font-size: 12px; letter-spacing: .04em; color: var(--ink-2); padding: 8px 12px; pointer-events: none !important; animation: fade 1s 6s forwards; }
.hint-zoom .hint { animation: none; opacity: 1; visibility: visible; } /* rotella senza Ctrl: ricorda come si zooma */
.show-photo .ov-hint { visibility: hidden; }
/* touch: un'indicazione al centro del palco, che poi sparisce */
@media (pointer: coarse) {
  .ov-hint, .hero-stage .ov-hint, .product-stage .ov-hint { inset: 58% auto auto 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 48px); }
  .ov-hint .hint { text-align: center; padding: 10px 16px; animation-delay: 4s; }
}
@keyframes fade { to { opacity: 0; visibility: hidden; } }
.caption { padding: 14px 18px; min-width: 220px; }
.caption .cap-name { font-family: var(--serif); font-size: 24px; line-height: 1.1; display: block; }
.caption .cap-meta { font-size: 13px; color: var(--ink-2); display: block; margin-top: 4px; }

/* ------------------------------------------------------------------ hero (home) */
.hero { display: grid; grid-template-columns: minmax(400px, 34%) 1fr; min-height: max(640px, min(calc(100vh - var(--head-h)), 1000px)); min-height: max(640px, min(calc(100svh - var(--head-h)), 1000px)); border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(28px, 6vh, 64px) clamp(28px, 3.4vw, 56px) clamp(24px, 4vh, 44px) var(--pad-l); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 0; }
.hero h1 { font-size: clamp(42px, 4.3vw, 70px); margin-bottom: .35em; }
.hero h1 em { color: var(--brass-ink); }
.hero .lead { font-size: 17px; max-width: 400px; margin: 0; }
.feat { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: f; }
.feat li { border-bottom: 1px solid var(--line); }
.feat button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 6px; background: none; border: 0; text-align: left; padding: clamp(6px, 1.2vh, 11px) 0; color: var(--ink-3); transition: color .2s, padding .3s var(--ease); }
.feat button:hover { color: var(--ink); }
.feat .n { font-size: 11px; letter-spacing: .1em; }
.feat .t { font-family: var(--serif); font-size: 21px; color: inherit; }
.feat .c { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.feat button[aria-pressed="true"] { color: var(--ink); padding-left: 8px; }
.feat button[aria-pressed="true"] .n { color: var(--brass-ink); }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-stage { position: relative; min-height: 0; }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.sec-head > div { grid-column: 1 / span 7; }
.sec-head > p { grid-column: 9 / span 4; color: var(--ink-2); margin: 0; }
.sec-head h2 { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.facts div { padding: 28px var(--gutter) 30px; min-width: 0; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.facts span { color: var(--ink-2); font-size: 15px; }

.manifesto { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.manifesto .eyebrow { grid-column: 1 / span 3; }
.manifesto blockquote { grid-column: 4 / span 9; margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 52px); line-height: 1.14; letter-spacing: -.015em; }
.manifesto blockquote em { color: var(--brass-ink); }
.manifesto .cols { grid-column: 4 / span 9; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; color: var(--ink-2); }
.manifesto .sign { grid-column: 4 / span 9; margin-top: 16px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }

/* collections */
.collection { padding-top: 40px; border-top: 1px solid var(--ink); }
.collection + .collection { margin-top: clamp(80px, 9vw, 130px); }
.col-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 40px; align-items: baseline; }
.col-num { grid-column: 1 / span 1; font-family: var(--serif); font-size: 24px; color: var(--brass-ink); }
.col-head h3 { grid-column: 2 / span 5; font-size: clamp(30px, 2.8vw, 42px); margin: 0; }
.col-head h3 small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.col-head p { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 24px; }
.grid.lead-first > .card:first-child { grid-column: span 2; grid-row: span 2; }
.grid.lead-first > .card:first-child .card-img { aspect-ratio: auto; flex: 1; min-height: 0; }
.grid.lead-first > .card:first-child h4 { font-size: 34px; }

.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.card-img { position: relative; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-img img { transform: scale(1.035); }
.card-tag { position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 7px 10px; background: rgba(247, 245, 241, .92); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.card:hover .card-tag, .card:focus-visible .card-tag { opacity: 1; transform: none; }
.card-body { padding-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.card h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.card .price { font-size: 15px; color: var(--ink); white-space: nowrap; }
.card p { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { grid-column: 1 / -1; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

/* environments (dark) */
.dark { background: var(--night); color: var(--night-ink); }
.dark .eyebrow { color: var(--brass); }
.dark .lead, .dark p { color: var(--night-ink-2); }
.sec.dark + .sec { border-top: 0; }
.amb { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.amb-intro { grid-column: 1 / span 4; }
.amb-intro .lead { font-size: 17px; }
.amb-list { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.amb-list li { border-bottom: 1px solid var(--night-line); }
.amb-row { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 8px 20px; align-items: baseline; padding: 30px 0; background: none; border: 0; text-align: left; color: var(--night-ink); }
.amb-row .n { font-size: 12px; letter-spacing: .14em; color: var(--brass); }
.amb-row .name { min-width: 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 60px); line-height: 1; transition: transform .5s var(--ease); }
.amb-row .go { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--night-ink-2); transition: color .2s; white-space: nowrap; }
.amb-row .txt { grid-column: 2 / span 2; color: var(--night-ink-2); font-size: 16px; max-width: 560px; }
.amb-row:hover .name { transform: translateX(10px); }
.amb-row:hover .go { color: var(--night-ink); }
.amb-row:focus-visible { outline-offset: -2px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line-2); padding-top: 24px; padding-right: 24px; }
.steps li::before { content: counter(s, upper-roman); display: block; font-family: var(--serif); font-size: 40px; color: var(--brass-ink); line-height: 1; margin-bottom: 26px; }
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 8px; line-height: 1.15; }
.steps span { color: var(--ink-2); }

/* quality */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillars div { border-top: 1px solid var(--line-2); padding-top: 22px; padding-right: 24px; }
.pillars h3 { font-size: 28px; }
.pillars p { color: var(--ink-2); margin: 0; }
.finishes { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.finishes-head { grid-column: 1 / span 3; }
.finishes-head h3 { font-size: 34px; }
.finishes-head p { color: var(--ink-2); font-size: 15px; margin: 0; }
.fan { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.fan li { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.fan i { display: block; aspect-ratio: 2 / 3; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.fan small { color: var(--ink-3); font-size: 11px; letter-spacing: .06em; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact-main { grid-column: 1 / span 6; }
.contact-main h2 { margin-bottom: .4em; }
.phone-big { display: inline-block; font-family: var(--serif); font-size: clamp(40px, 4.6vw, 68px); text-decoration: none; line-height: 1; margin: 18px 0 30px; letter-spacing: -.01em; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.phone-big:hover { border-color: var(--ink); }
.contact-side { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 0; }
.contact-side div { border-top: 1px solid var(--line-2); padding: 22px 0 26px; }
.contact-side h3 { font-size: 24px; margin-bottom: 8px; }
.contact-side p { color: var(--ink-2); margin: 0 0 14px; }

/* footer */
.footer { background: var(--night); color: var(--night-ink-2); padding: 72px 0 calc(36px + var(--sab)); font-size: 15px; }
.foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot-brand { grid-column: 1 / span 5; }
.foot-brand .wm { color: var(--night-ink); font-size: 40px; }
.foot-brand p { margin-top: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.foot-col { grid-column: span 2; }
.foot-col:last-child { grid-column: span 3; }
.foot-col h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--night-ink); font-weight: 500; margin: 6px 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--night-ink); }
.foot-base { grid-column: 1 / -1; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.foot-base p { margin: 0; }

/* ------------------------------------------------------------------ product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 34vw, 520px); grid-template-rows: auto 1fr; border-bottom: 1px solid var(--line); }
.pconf { display: contents; }
.product-stage { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); min-height: 560px; z-index: 5; }
.pi-config { grid-column: 2; grid-row: 1; padding-bottom: 0 !important; }
.pi-details { grid-column: 2; grid-row: 2; padding-top: 12px !important; }
.real-photo { position: absolute; z-index: 2; inset: 0; margin: 0; display: none; background: rgba(244, 241, 236, .97); padding: 70px 24px 24px; }
.real-photo img { width: 100%; height: calc(100% - 30px); object-fit: contain; }
.real-photo figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-top: 10px; }
.show-photo .real-photo { display: block; }
.show-photo .ov.tl, .show-photo .ov.bl, .show-photo .ov.br { visibility: hidden; }
.product-info { padding: 36px max(clamp(24px, 3vw, 48px), var(--sar)) 64px clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); min-width: 0; }
.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 36px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { margin: 0 8px; }
.product-info h1 { font-size: clamp(46px, 4.4vw, 68px); margin-bottom: 10px; }
.tagline { font-size: 18px; line-height: 1.5; color: var(--ink-2); font-weight: 300; margin-bottom: 26px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.price-big { font-family: var(--serif); font-size: 34px; line-height: 1; }
.price-note { color: var(--ink-3); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.opt { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.opt-head span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.opt-head b { font-weight: 400; font-size: 15px; text-align: right; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; padding: 4px; border: 1px solid transparent; background: none; transition: border-color .2s; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch:hover { border-color: var(--line-2); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.opt .note { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); }
.choice button { min-height: 44px; background: none; border: 0; border-left: 1px solid var(--line-2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: background .2s, color .2s; }
.choice button:first-child { border-left: 0; }
.choice button:hover { color: var(--ink); background: rgba(27, 25, 22, .04); }
.choice button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.walls { display: flex; gap: 8px; flex-wrap: wrap; }
.wall-dot { width: 40px; height: 40px; padding: 4px; border: 1px solid transparent; background: none; border-radius: 50%; }
.wall-dot span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.wall-dot:hover { border-color: var(--line-2); }
.wall-dot[aria-pressed="true"] { border-color: var(--ink); }
.buy { display: grid; gap: 10px; padding: 6px 0 10px; }
.buy-note { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; text-align: center; }
.specs { margin: 34px 0 0; border-top: 1px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.specs dd { margin: 0; font-size: 15px; }
.block-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 40px 0 14px; font-weight: 500; font-family: var(--sans); }
.desc { color: var(--ink-2); }
.features { padding: 0; list-style: none; margin: 0; }
.features li { padding: 10px 0 10px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
.features li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 12px; height: 1px; background: var(--brass); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery.one { grid-template-columns: 1fr; }
.gallery.one button { aspect-ratio: 4 / 3; }
.gallery button { padding: 0; border: 0; background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button span { position: absolute; left: 10px; bottom: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(247, 245, 241, .92); padding: 6px 9px; }
.related .grid { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------------ quote drawer */
.drawer { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: rgba(22, 21, 19, .42); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); padding: calc(26px + var(--sat)) max(clamp(20px, 3vw, 36px), var(--sar)) calc(36px + var(--sab)) clamp(20px, 3vw, 36px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateX(40px); transition: transform .45s var(--ease); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.drawer-head .eyebrow { margin-bottom: 8px; }
.drawer-head h2 { font-size: 36px; margin: 0; }
.empty { color: var(--ink-2); padding: 12px 0 0; }
.empty .btn { margin-top: 18px; }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qlist img { width: 64px; height: 64px; object-fit: cover; background: var(--paper-2); }
.qlist b { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; line-height: 1.15; }
.qlist small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 16px; }
.qty button:hover { background: rgba(27, 25, 22, .06); }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.qtotal { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; }
.qtotal span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.qtotal b { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.qtotal-note { font-size: 13px; color: var(--ink-3); margin: 0 0 26px; }
.qform { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.qform h3 { font-size: 24px; margin: 0; }
.qform label { min-width: 0; display: grid; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.qform input, .qform select, .qform textarea { scroll-margin-block: 96px; width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 8px 0 10px; color: var(--ink); font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; transition: border-color .2s; }
.qform select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1916' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 4px center; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.qform textarea { resize: vertical; min-height: 76px; }
.qform .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.qdone { padding: 20px 0; }
.qdone h3 { font-size: 30px; }

/* ------------------------------------------------------------------ AR dialog */
.ar-dialog { border: 0; background: var(--paper); color: var(--ink); padding: 0; width: min(520px, calc(100% - 32px - var(--sal) - var(--sar))); max-height: calc(100% - 32px - var(--sat) - var(--sab)); overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.ar-dialog::backdrop { background: rgba(22, 21, 19, .5); }
.ar-inner { padding: 36px clamp(22px, 4vw, 40px) 32px; position: relative; }
.ar-close { position: absolute; right: 12px; top: 12px; }
.ar-inner .eyebrow { margin-bottom: 10px; }
.ar-inner h2 { font-size: 34px; padding-right: 40px; }
.ar-inner p { color: var(--ink-2); }
.qr { background: #fff; padding: 14px; width: 216px; margin: 22px auto; border: 1px solid var(--line); }
.qr svg { width: 100%; height: auto; display: block; }
.ar-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: a; border-top: 1px solid var(--line); }
.ar-steps li { counter-increment: a; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: 15px; }
.ar-steps li::before { content: counter(a); position: absolute; left: 0; top: 10px; font-family: var(--serif); color: var(--brass-ink); }
model-viewer { width: 100%; height: clamp(220px, 50vh, 380px); height: clamp(220px, 50svh, 380px); background: var(--paper-2); margin: 16px 0; }
/* model-viewer della AR: resta caricato ma invisibile; durante la sessione WebXR occupa tutto lo schermo */
model-viewer.ar-host { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; margin: 0; opacity: 0; pointer-events: none; z-index: -1; background: transparent; }
model-viewer.ar-host[ar-status="session-started"], model-viewer.ar-host[ar-status="object-placed"] { width: 100vw; height: 100vh; height: 100dvh; opacity: 1; pointer-events: auto; z-index: 9999; }
.ar-go { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 14px 22px; font-size: 14px; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .head-tel { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  /* 3 colonne: il primo pezzo largo due colonne, alto come i vicini (5 pezzi = 2 righe piene) */
  .grid.lead-first > .card:first-child { grid-row: span 1; }
  .grid.lead-first > .card:first-child .card-img { aspect-ratio: auto; flex: 1; min-height: 0; }
  .grid.lead-first > .card:first-child .card-img img { position: absolute; inset: 0; object-fit: contain; }
  .related .grid { grid-template-columns: repeat(3, 1fr); }
  .fan { grid-template-columns: repeat(5, 1fr); }
  .finishes-head { grid-column: 1 / -1; }
  .fan { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header: 64px; }
  body { font-size: 16px; }
  .site-header { grid-template-columns: 44px 1fr auto; gap: 12px; }
  .menu-btn { display: block; }
  .nav { display: none; }
  .wm { font-size: 24px; }
  .logo-sub { display: none; }
  .qb-long { display: none; }
  .qb-short { display: inline; }
  .quote-btn { padding: 7px 8px 7px 12px; font-size: 12px; gap: 8px; }


  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts div:nth-last-child(-n+2) { border-bottom: 0; }

  .sec-head, .manifesto, .col-head, .amb, .finishes, .contact, .foot { grid-template-columns: 1fr; gap: 16px; }
  .sec-head > *, .manifesto > *, .col-head > *, .amb > *, .finishes > *, .contact > *, .foot > * { grid-column: 1 / -1 !important; }
  .manifesto .cols { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .col-head { gap: 10px; margin-bottom: 28px; }
  .col-num { font-size: 18px; }
  .grid, .related .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .grid.lead-first > .card:first-child { grid-column: span 2; }
  .grid.lead-first > .card:first-child .card-img { aspect-ratio: 4 / 3; }
  .card h4 { font-size: 20px; }
  .grid.lead-first > .card:first-child h4 { font-size: 28px; }
  .card .price { font-size: 14px; }
  .card p { font-size: 13px; }
  .card .meta { display: none; }
  .card-tag { display: none; }
  .amb-list { margin-top: 24px; }
  .amb-row { grid-template-columns: 32px 1fr auto; padding: 22px 0; }
  .amb-row .txt { font-size: 15px; }
  .steps, .pillars { grid-template-columns: 1fr; gap: 36px; }
  .steps li::before { margin-bottom: 14px; }
  .fan { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .fan i { aspect-ratio: 3 / 2; }
  .contact-side { margin-top: 24px; }
  .foot-col, .foot-col:last-child { grid-column: 1 / -1; }
  .foot-base { margin-top: 24px; }

  .swatches { gap: 4px; }
  .swatch, .wall-dot { width: 36px; height: 36px; padding: 3px; }
  .seg button { padding: 0 11px; letter-spacing: .08em; }
  .chip { padding: 0 11px; letter-spacing: .08em; }
}
@media (max-width: 960px) and (pointer: fine) { .ov-hint { display: none; } }

/* Palco sopra, testo sotto: telefoni e tablet in verticale (anche iPad Pro 12,9" a 1024 px) */
@media (max-width: 960px), (max-width: 1199px) and (orientation: portrait) {
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; }
  .hero-stage { order: 0; height: 60vh; height: 60svh; min-height: 400px; max-height: 620px; --ov-gap: 12px; }
  .hero-copy { display: contents; }
  .hero-copy > div:first-child { order: 2; padding: 36px var(--pad-r) 0 var(--pad-l); }
  .hero-cta { order: 3; padding: 26px var(--pad-r) 48px var(--pad-l); }
  .feat { order: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-l); border-top: 0; border-bottom: 1px solid var(--line); padding: 0 var(--pad-r) 0 var(--pad-l); gap: 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .feat::-webkit-scrollbar { display: none; }
  .feat li { border: 0; flex: none; scroll-snap-align: start; }
  .feat button { display: flex; gap: 6px; align-items: baseline; min-height: 48px; padding: 14px 0 12px; border-bottom: 1.5px solid transparent; }
  .feat button[aria-pressed="true"] { padding-left: 0; border-bottom-color: var(--ink); }
  .feat .c { display: none; }
  .feat .t { font-size: 19px; }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .caption { min-width: 0; padding: 10px 14px; }
  .caption .cap-name { font-size: 20px; }
  .caption .cap-meta { font-size: 12px; }

  .product { display: block; }
  .pconf { display: block; }
  /* fisso solo mentre si configura (dentro .pconf), poi scorre via con il resto */
  .product-stage { position: sticky; top: var(--head-h); height: clamp(300px, 50vh, 560px); height: clamp(300px, 50svh, 560px); min-height: 0; border-bottom: 1px solid var(--line); --ov-gap: 12px; }
  .stage-tools { max-width: calc(100% - 190px); }
  .product-info { padding: 26px var(--pad-r) 48px var(--pad-l); border-left: 0; }
  .pi-config { padding-bottom: 36px !important; }
  .pi-details { padding-top: 0 !important; }
  .crumbs { margin-bottom: 18px; }
  .real-photo { padding: 60px 12px 12px; }
}

/* Tablet in verticale: palco ampio e configurazione su due colonne, tutta visibile sotto il palco */
@media (min-width: 700px) and (max-width: 1199px) and (orientation: portrait) {
  .hero-stage { height: clamp(460px, 58svh, 780px); max-height: none; }
  .hero h1 { font-size: clamp(48px, 7vw, 76px); }
  .hero-copy > div:first-child { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .hero-copy > div:first-child .eyebrow { grid-column: 1 / -1; }
  .hero-copy > div:first-child h1 { margin: 0; }
  .hero .lead { max-width: none; }
  .product-stage { height: clamp(420px, 50svh, 680px); max-height: none; }
  .pi-config, .pi-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); align-items: start; }
  .pc-opts > .opt:first-child { border-top: 0; padding-top: 0; }
  .pi-details .specs { margin-top: 0; }
  .pd-media .block-title { margin-top: 0; }
  .grid, .related .grid { grid-template-columns: repeat(3, 1fr); }
  .grid.lead-first > .card:first-child .card-img { aspect-ratio: auto; }
}

/* Telefono in orizzontale: palco a sinistra a tutta altezza, scheda a destra */
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1199px) {
  :root { --header: 56px; }
  .hero-stage { height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); min-height: 0; max-height: none; }
  .product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); }
  .pconf { display: contents; }
  .product-stage { grid-column: 1; grid-row: 1 / span 2; height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); min-height: 0; max-height: none; border-bottom: 0; }
  .product-stage .ov.tr, .product-stage .ov.br { right: var(--ov-gap); }
  .product-info { padding: 22px var(--pad-r) 40px 24px; border-left: 1px solid var(--line); }
  .pi-config { grid-column: 2; grid-row: 1; padding-bottom: 0 !important; }
  .pi-details { grid-column: 2; grid-row: 2; padding-top: 12px !important; }
  .product-info h1 { font-size: 40px; }
  .crumbs { margin-bottom: 14px; }
  .mobile-menu { padding-top: 12px; }
  .mobile-menu nav a { font-size: 24px; padding: 8px 0; }
  .ar-inner { padding-top: 22px; }
  .ar-inner h2 { font-size: 26px; }
}

@media (max-width: 400px) {
  .chip .lbl-long { display: none; }
  .seg button { padding: 0 9px; }
}
@media (min-width: 401px) { .chip .lbl-short { display: none; } }
@media (max-width: 400px) { .chip .lbl-short { display: inline; } }

@media (max-width: 480px) {
  .amb-row { grid-template-columns: 32px minmax(0, 1fr); row-gap: 10px; }
  .amb-row .go { grid-column: 2; }
  .amb-row .txt { grid-column: 2; }
  .qlist li { grid-template-columns: 56px minmax(0, 1fr); row-gap: 10px; }
  .qlist img { width: 56px; height: 56px; grid-row: span 2; align-self: start; }
  .qlist .qty { justify-self: start; }
}

/* Dita (telefono, tablet, iPad anche con tastiera): bersagli di almeno 44 px */
@media (pointer: coarse) {
  .seg { padding: 2px; }
  .seg button { min-height: 40px; }
  .chip { min-height: 44px; }
  .quote-btn { min-height: 44px; }
  .link { min-height: 44px; }
  .nav a, .head-tel { padding: 13px 0; }
  .logo { padding-block: 10px; }
  .swatches, .walls { gap: 2px; }
  .swatch, .wall-dot { width: 44px; height: 44px; padding: 5px; }
  .qty button { width: 44px; height: 44px; }
  .crumbs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .foot-col li { margin-bottom: 0; }
  .foot-col a { display: inline-block; padding-block: 11px; }
}
/* senza hover: l'etichetta "Vedi in 3D" delle schede resta visibile */
@media (hover: none) and (min-width: 961px) {
  .card-tag { opacity: 1; transform: none; }
}

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