@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-architetti { --k-bg: #efeee9; --k-ink: #141414; --k-muted: #6f6d66; --k-ac: #141414; --k-ac-ink: #efeee9; --k-surface: #fff; --k-line: rgba(20,20,20,.14);
  --k-display: "DM Serif Display", Georgia, serif; --k-body: "Inter Tight", system-ui, sans-serif; --k-dw: 400; --k-track: -.02em; --k-r: 0px; --orange: #ff4d00; --lime: #d9f36a; }
.sc-architetti em { font-family: "DM Serif Display", Georgia, serif; font-style: italic; color: var(--orange); }
.wm { font: 400 30px "DM Serif Display"; }
.nx-kick { margin: 0 0 22px; font: 600 12px "Inter Tight"; letter-spacing: .14em; text-transform: uppercase; }
.sc-architetti h2 { margin: 0; font: 500 clamp(40px, 4.8vw, 80px)/1 "Inter Tight"; letter-spacing: -.05em; }

/* Hero svizzero */
.nx-hero { position: relative; padding: 30px var(--k-pad) 0; }
.nx-grid-lines { position: absolute; inset: 0 var(--k-pad); display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.nx-grid-lines i { border-left: 1px solid var(--k-line); } .nx-grid-lines i:last-child { border-right: 1px solid var(--k-line); position: absolute; right: 0; top: 0; bottom: 0; }
.nx-word { position: relative; margin: 0; font: 400 clamp(120px, 33vw, 640px)/.74 "DM Serif Display"; letter-spacing: -.045em; margin-left: -.03em; }
.nx-meta { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 26px 0 30px; font-size: 15px; }
.nx-meta p { margin: 0; padding-left: 10px; } .nx-meta p:first-child { padding-left: 0; }
.nx-claim { grid-column: 3 / 5; font: 400 clamp(26px, 2.6vw, 40px)/1.05 "DM Serif Display"; }
.nx-hero-ph { position: relative; height: 78vh; min-height: 420px; }
.nx-hero-ph img { --fx-delay: 300ms; }

.nx-intro { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; padding: 160px var(--k-pad) 120px; }
.nx-intro h2 { grid-column: 2; max-width: 1050px; }
.nx-facts { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin: 70px 0 0; padding: 0; list-style: none; }
.nx-facts li { padding: 18px 0 0; border-top: 1px solid var(--k-ink); }
.nx-facts b { display: block; font: 500 clamp(60px, 7vw, 120px)/1 "Inter Tight"; letter-spacing: -.06em; }
.nx-facts span { color: var(--k-muted); }

/* Lavori in orizzontale con parallasse interna */
.nx-works { background: #141414; color: #efeee9; --fx-h-gap: 30px; }
.nx-w-head { flex: none; width: min(380px, 70vw); align-self: center; }
.nx-w-head h2 { font-size: clamp(56px, 6vw, 110px); } .nx-w-head p:last-child { color: #9a9890; }
.nx-w { flex: none; width: clamp(340px, 46vw, 760px); }
.nx-w .fx-ph { height: min(62vh, 560px); }
.nx-w .fx-ph img { width: 118%; max-width: none; transform: translateX(calc(var(--hp, 0) * -14%)); }
.nx-w > div { display: grid; grid-template-columns: 50px 1fr auto; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(239,238,233,.25); margin-top: 16px; }
.nx-w span { font-size: 13px; color: #9a9890; } .nx-w h3 { margin: 0; font: 400 32px "DM Serif Display"; } .nx-w p { margin: 0; color: #9a9890; font-size: 14px; }

/* Confronto */
.nx-compare, .nx-index, .nx-method { padding: 140px var(--k-pad) 60px; }
.nx-c-head { display: grid; grid-template-columns: 1fr 3fr; gap: 0 20px; margin-bottom: 50px; }
.nx-c-head .nx-kick { grid-row: span 2; } .nx-c-head > p:last-child { grid-column: 2; margin: 16px 0 0; color: var(--k-muted); }
.ba { position: relative; aspect-ratio: 16 / 8; overflow: hidden; --p: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); background: #f6f4ee; }
.ba-before img { filter: grayscale(1) contrast(2.4) brightness(1.5); mix-blend-mode: multiply; opacity: .55; }
.ba-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-grid path { fill: none; stroke: #2a5c8a; stroke-width: .3; stroke-dasharray: 2 1.4; }
.ba-label { position: absolute; top: 18px; padding: 6px 12px; background: #141414; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ba-label.l { left: 18px; } .ba-label.r { right: 18px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: var(--orange); transform: translateX(-50%); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-size: 22px; transform: translate(-50%, -50%); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within .ba-handle i { outline: 3px solid #141414; outline-offset: 3px; }

/* Indice */
.nx-filter { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 30px; border-top: 1px solid var(--k-ink); }
.nx-filter button { min-height: 50px; padding: 0 22px 0 0; border: 0; background: transparent; color: var(--k-muted); font: 500 18px "Inter Tight"; letter-spacing: -.02em; }
.nx-filter button[aria-pressed="true"] { color: var(--k-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--orange); }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; margin: 0; padding: 0; list-style: none; }
.pr figure { margin: 0 0 12px; aspect-ratio: 4 / 5; }
.pr img { filter: grayscale(1); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .6s; }
.pr:hover img { transform: scale(1.05); filter: none; }
.pr h3 { margin: 0; font: 400 26px "DM Serif Display"; } .pr p { margin: 2px 0 0; color: var(--k-muted); font-size: 14px; }

.nx-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.nx-steps li { padding: 20px 20px 40px 0; border-top: 1px solid var(--k-ink); }
.nx-steps b { display: block; margin-bottom: 60px; color: var(--orange); font: 400 64px/1 "DM Serif Display"; }
.nx-steps h3 { margin: 0 0 8px; font: 500 28px "Inter Tight"; letter-spacing: -.04em; } .nx-steps p { margin: 0; color: var(--k-muted); }

.sc-architetti .k-form { border-radius: 0; }
.sc-architetti .k-btn { border-radius: 0; }
.sc-architetti .k-foot-big { font-family: "Inter Tight"; font-weight: 600; letter-spacing: -.07em; }

@media (max-width: 1000px) {
  .pr-grid, .nx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-intro, .nx-c-head { grid-template-columns: 1fr; } .nx-intro h2, .nx-facts, .nx-c-head > p:last-child { grid-column: 1; }
  .nx-meta { grid-template-columns: 1fr 1fr; gap: 10px 0; } .nx-claim { grid-column: 1 / -1; padding-left: 0 !important; }
  .nx-hero-ph { height: 60vh; }
}
@media (max-width: 560px) { .ba { aspect-ratio: 4 / 5; } .nx-facts { grid-template-columns: 1fr; gap: 20px; } .nx-w { width: 82vw; } }
