/* ============ Studio Tecnico Tadè — estensioni v2 ============ */

/* ---------- Logo (mask: prende il colore del testo) ---------- */
.logo-img { width: 46px; height: 32px; flex: none; background: currentColor;
  -webkit-mask: url(tade-logo.png) center / contain no-repeat; mask: url(tade-logo.png) center / contain no-repeat; }
/* Logotipo a due righe: "STUDIO TECNICO" sopra, "TADÈ" grande a piena larghezza */
.lt { display: inline-flex; flex-direction: column; align-items: flex-start; width: max-content; line-height: 1; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; }
.lt-top { display: inline-block; width: max-content; font-size: var(--lt, 11px); font-stretch: 112%; letter-spacing: .14em; margin-right: -.14em; white-space: nowrap; }
.lt-big { display: inline-block; width: max-content; font-size: calc(var(--lt, 11px) * 1.9); font-weight: 900; font-stretch: 125%; white-space: nowrap; line-height: .82; margin-top: .08em; transform-origin: left top; }
.lt-big em { font-style: normal; color: var(--signal); }
.logo .lt { --lt: 10.5px; }
.logo-word em { font-style: normal; color: var(--signal); }
.logo-sub { letter-spacing: .12em; }

.skyline { width: 100%; aspect-ratio: 1132 / 240; background: currentColor;
  -webkit-mask: url(bergamo-skyline.png) bottom center / contain no-repeat; mask: url(bergamo-skyline.png) bottom center / contain no-repeat; }

/* ---------- HERO fix ---------- */
.hero { height: 170vh; }
.hero-content { justify-content: flex-end; padding-top: 88px; }
.hero h1 { margin: 14px 0 18px; font-size: min(9.2vw, 8.4vh, 7rem); font-stretch: 105%; line-height: .93; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: inline-block; white-space: nowrap; }
.hero .skyline { position: absolute; left: 0; right: 0; bottom: 0; color: rgba(242,241,237,.07); z-index: 1; pointer-events: none; }
@media (min-width: 768px) { .hero h1 { font-size: min(8vw, 10.5vh, 7rem); font-stretch: 115%; } }
@media (min-width: 1024px) {
  .hero-content { padding-bottom: 48px; }
  .hero .t-lead { max-width: 46ch; }
}

/* ============ HERO v3 · Bergamo Alta, riga e squadra ============ */
.hero.sky-hero { height: 100vh; height: 100svh; min-height: 560px; }
.sky-hero .hero-stage { position: relative; height: 100%; }
.sky-hero .hero-frame { transform: none !important; clip-path: none !important; }
.sky-hero #topo { opacity: .55; }
.sky-hero .hero-content { justify-content: flex-start; padding-top: calc(64px + clamp(18px, 4vh, 48px)); padding-bottom: 0; height: auto; }
.sky-hero h1 { font-size: min(10vw, 6.4vh, 6rem); margin: 12px 0 14px; }
.sky-hero .t-lead { max-width: 40ch; font-size: clamp(.98rem, 1.5vw, 1.2rem); }
.sky-hero .hero-ctas { margin-top: 18px; gap: 8px; flex-wrap: nowrap; }
.sky-hero .hero-ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
.sky-hero .hero-meta { display: none; }
.sky-hero .coords { top: 88px; }
@media (max-width: 1100px) { .sky-hero .coords { display: none !important; } }
@media (max-width: 767px) { .sky-hero .coords { display: none; } .sky-hero .t-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
@media (min-width: 768px) {
  .sky-hero h1 { font-size: min(7.4vw, 8.4vh, 6.6rem); }
  .sky-hero .hero-ctas .btn { flex: 0 0 auto; min-width: 250px; }
  .sky-hero .hero-meta { display: flex; border: 0; margin-top: 18px; padding: 0; gap: 28px; justify-content: flex-start; }
}

.sky { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: calc(var(--skyH, 200px) + 46px); touch-action: pan-y; cursor: ew-resize; }
.sky-track { position: absolute; left: 0; bottom: 0; height: 100%; will-change: transform; transform-origin: 0 100%; }
.sky-svg { position: absolute; left: 0; bottom: 46px; display: block; overflow: visible; }
/* Profilo Città Alta: tratto che si disegna (hero + footer identici) */
.sky-svg .sky-line, .sky-svg .sky-win { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-width: var(--sw, 1.5); stroke-dasharray: 1; stroke-dashoffset: 1; }
.sky-svg .sky-line { stroke: rgba(242,241,237,.85); transition: stroke-dashoffset 3.4s cubic-bezier(.45,.05,.35,1); }
.sky-svg .sky-win { stroke: rgba(242,241,237,.6); transition: stroke-dashoffset .7s var(--ease-out); transition-delay: calc(2.9s + var(--i) * .16s); }
.sky-svg .sky-fill { opacity: 0; transition: opacity 1.2s 3.6s; }
.sky-svg .sky-pk { stroke: var(--survey); stroke-width: 1.2; opacity: 0; transform: translateY(6px); transform-box: fill-box; transition: opacity .5s, transform .5s var(--ease-out); transition-delay: calc(3.4s + var(--i) * .1s); }
.drawn .sky-svg .sky-line, .drawn .sky-svg .sky-win { stroke-dashoffset: 0; }
.drawn .sky-svg .sky-fill { opacity: 1; }
.drawn .sky-svg .sky-pk { opacity: 1; transform: none; }
/* riga (T-square blade) */
.riga { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; border-top: 1px solid rgba(242,241,237,.7);
  background:
    linear-gradient(90deg, rgba(242,241,237,.75) 1px, transparent 1px) 0 0 / calc(var(--u) * 100) 16px no-repeat repeat,
    linear-gradient(90deg, rgba(242,241,237,.45) 1px, transparent 1px) 0 0 / calc(var(--u) * 50) 11px,
    linear-gradient(90deg, rgba(242,241,237,.22) 1px, transparent 1px) 0 0 / calc(var(--u) * 10) 6px,
    rgba(13,17,22,.6);
  background-repeat: repeat-x; transform-origin: left; transform: scaleX(0); animation: rigaIn 1.2s var(--ease-out) forwards; }
@keyframes rigaIn { to { transform: none; } }
.riga span { position: absolute; top: 18px; transform: translateX(-50%); font-family: var(--f-mono); font-size: .58rem; letter-spacing: .06em; color: rgba(242,241,237,.55); }
.riga span:first-child { transform: none; padding-left: 4px; }
/* squadra */
.squadra { position: absolute; bottom: 46px; left: 0; z-index: 3; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .6s; }
.squadra.on { opacity: 1; }
.squadra svg { display: block; overflow: visible; }
.squadra .acr { fill: rgba(242,241,237,.07); stroke: rgba(242,241,237,.85); stroke-width: 1.2; }
.squadra .tk { stroke: rgba(242,241,237,.6); stroke-width: 1; }
.sq-dim { position: absolute; left: 0; bottom: 46px; width: 0; z-index: 3; pointer-events: none; border-left: 1px dashed var(--signal); will-change: transform, height; opacity: 0; transition: opacity .6s; }
.sq-dim.on { opacity: 1; }
.sq-dim::before { content: ""; position: absolute; left: -6px; top: 0; width: 11px; height: 1px; background: var(--signal); }
.sq-pt { position: absolute; left: -6px; top: -6px; width: 11px; height: 11px; border: 1px solid var(--signal); }
.sq-pt::after { content: ""; position: absolute; inset: 3px; background: var(--signal); }
.sq-read { position: absolute; left: 12px; top: -10px; white-space: nowrap; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; color: var(--paper); background: rgba(13,17,22,.82); border: 1px solid var(--line-d); padding: 5px 8px; line-height: 1.5; }
.sq-read b { color: var(--signal); font-weight: 600; }
.sq-read.flip { left: auto; right: 12px; }
.sky-hint { position: absolute; z-index: 4; right: var(--gutter); bottom: 12px; background: rgba(13,17,22,.9); padding: 4px 8px; display: flex; align-items: center; gap: 10px; color: var(--muted-d); opacity: 0; animation: fade .8s 3.4s forwards; pointer-events: none; }
.sky-hint i { width: 26px; height: 1px; background: var(--signal); position: relative; animation: nudge 1.6s infinite var(--ease-io); }
@keyframes nudge { 50% { transform: translateX(8px); } }
@media (max-width: 767px) { .sky-hint { font-size: .6rem; } }

.sky-cap { position: absolute; left: var(--gutter); top: calc(64px + 4vh); z-index: 3; opacity: 0; pointer-events: none; display: grid; gap: 12px; color: var(--paper); }
.sky-cap b { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 3rem); line-height: .95; }
@media (min-width: 1024px) { .sky-cap { left: calc(var(--gutter) + 40px); } }

/* righello di avanzamento (header) */
.prog-riga { position: absolute; left: 0; right: 0; bottom: -1px; height: 6px; pointer-events: none;
  background: linear-gradient(90deg, currentColor 1px, transparent 1px) 0 100% / 10px 4px repeat-x; opacity: .35; }
.prog-riga i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.hdr:not(.solid) .prog-riga { opacity: 0; }

/* skyline footer (SVG) */
.ftr-sky { margin: 56px 0 0; position: relative; }
.ftr-sky { --sw: 1.3; }
.ftr-sky .sky-svg { position: static; width: 100%; height: auto; aspect-ratio: 1132 / 240; }
.ftr-sky .sky-svg .sky-line { stroke: rgba(242,241,237,.55); }
.ftr-sky .sky-svg .sky-win { stroke: rgba(242,241,237,.4); }

/* ---------- Studio ---------- */
.studio-grid { display: grid; gap: 40px; margin-top: clamp(48px, 7vw, 96px); }
.studio-grid > * { min-width: 0; }
.studio-text { display: grid; gap: 18px; align-content: start; }
.studio-text p { color: var(--ink-2); max-width: 58ch; }
.studio-text p strong { font-weight: 600; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: 10px; }
.who div { padding: 14px 10px 4px 0; }
.who div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.who b { display: block; font-family: var(--f-display); font-stretch: 115%; font-size: 1.15rem; text-transform: uppercase; }
.who span { font-size: .8rem; color: var(--muted); }
.portrait { position: relative; }
.portrait image-slot { display: block; width: 100%; aspect-ratio: 4/5; background: var(--paper-2); }
.portrait figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.stat .n.sm { font-size: clamp(1.9rem, 5.4vw, 3.4rem); }
@media (min-width: 1024px) {
  .studio-grid { grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: start; }
}

/* ---------- Servizi: visual con image-slot ---------- */
.svc-visual .ph .layer image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-visual .ph .layer { pointer-events: none; }
.svc-visual .ph .layer.on { pointer-events: auto; }
.svc-list .svc-inner ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .9rem; }
.svc-list .svc-inner li { display: flex; gap: 10px; }
.svc-list .svc-inner li::before { content: ""; flex: none; width: 8px; height: 8px; border: 1px solid var(--signal); margin-top: .45em; }

/* ============ 03 · DAL RILIEVO ALLA REALTÀ (Three.js) ============ */
.b3d { height: 560vh; background: #14304a; color: var(--paper); }
.b3d-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; transition: color .6s; }
#b3dCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.b3d-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.b3d-lab { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #d8e8f5; transition: opacity .3s; text-align: center; line-height: 1.35; }
.b3d-lab b { display: block; font-weight: 600; color: #fff; }
.b3d-lab.dim { color: var(--signal); background: #14304a; padding: 2px 6px; font-weight: 600; }
.b3d-photo { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; will-change: clip-path, transform; background: var(--night-2); }
.b3d-photo.live { pointer-events: auto; }
.b3d-photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.b3d-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,22,.55), transparent 30%, transparent 55%, rgba(13,17,22,.75)); pointer-events: none; }

.b3d-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 84px var(--gutter) calc(72px + env(safe-area-inset-bottom)); }
.b3d-hud a, .b3d-hud button { pointer-events: auto; }
.b3d-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.b3d-phase { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.b3d-num { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3rem, 9vw, 6.5rem); line-height: .8; color: var(--signal); font-variant-numeric: tabular-nums; }
.b3d-phase h2 { font-size: clamp(1.6rem, 5vw, 3.6rem); text-transform: uppercase; font-stretch: 118%; line-height: .92; max-width: 9ch; }
.b3d-meta { display: none; text-align: right; line-height: 1.8; opacity: .75; }
.b3d-swap { transition: opacity .3s, transform .45s var(--ease-out); }
.b3d-swap.out { opacity: 0; transform: translateY(10px); }

.b3d-bottom { display: grid; gap: 14px; }
.b3d-card { background: rgba(13,17,22,.78); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-d); padding: 16px 18px; display: grid; gap: 14px; max-width: 460px; }
.b3d-card p { font-size: .92rem; color: rgba(242,241,237,.82); min-height: 4.5em; }
.b3d-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.b3d-card .btn { flex: 1 1 auto; }
.b3d-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.b3d-steps button { width: 100%; background: none; border: 0; color: inherit; text-align: left; padding: 10px 0 0; cursor: pointer; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; transition: opacity .3s; position: relative; min-height: 44px; }
.b3d-steps button b { display: block; font-size: .78rem; }
.b3d-steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: currentColor; opacity: .25; }
.b3d-steps button i { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.b3d-steps button.on { opacity: 1; }
.b3d-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #d8e8f5; pointer-events: none; transition: opacity .4s; text-align: center; }
.b3d-hint i { width: 1px; height: 40px; background: linear-gradient(var(--signal), transparent); animation: drip 1.8s infinite var(--ease-io); transform-origin: top; }
.b3d-note { position: absolute; z-index: 3; right: var(--gutter); bottom: 12px; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; opacity: .5; display: none; }
.b3d-stage.light { color: var(--ink); }
.b3d-stage.light .b3d-hint { color: var(--ink); }
.b3d-stage.photo { color: var(--paper); }
.b3d-fallback .b3d-photo { opacity: 1 !important; clip-path: none !important; }

@media (min-width: 768px) {
  .b3d-meta { display: block; }
  .b3d-bottom { grid-template-columns: minmax(0, 420px) 1fr; align-items: end; gap: 32px; }
  .b3d-steps { max-width: 620px; justify-self: end; width: 100%; }
  .b3d-steps button { font-size: .68rem; }
  .b3d-note { display: block; }
}
@media (min-width: 1024px) { .b3d-hud { padding-bottom: 36px; padding-left: calc(var(--gutter) + 40px); } }

/* ---------- Metodo (3 fasi) ---------- */
.method-media image-slot { display: block; width: 100%; aspect-ratio: 1; }
.method-media .mm-cap { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }

/* ---------- Realizzazioni ---------- */
.work .ph, .work image-slot { aspect-ratio: 4/3; }
.work image-slot { display: block; width: 100%; background: var(--paper-2); }
.work .zwrap { position: relative; overflow: hidden; }
.work-meta p { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.work-scroll.two { grid-auto-columns: 86%; }
@media (min-width: 768px) { .work-scroll.two { grid-auto-columns: 60%; } }
@media (min-width: 1024px) { .work-scroll.two { grid-auto-columns: calc((100% - 16px) / 2); } }

.ba-wrap { margin-top: clamp(56px, 8vw, 110px); display: grid; gap: 28px; }
.ba-head { display: grid; gap: 14px; }
.ba-head p { color: var(--muted); max-width: 52ch; }
.ba { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); user-select: none; -webkit-user-select: none; --x: 50%; touch-action: pan-y; }
.ba image-slot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ba-before { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(18,22,28,.06) 10px 11px), var(--paper-3); }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(18,22,28,.05) 10px 11px), var(--paper-2); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--signal); z-index: 3; cursor: ew-resize; touch-action: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); background: var(--signal); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; }
.ba-handle:focus-visible span { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -22px; right: -22px; }
.ba-tag { position: absolute; top: 14px; z-index: 2; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 10px; pointer-events: none; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; background: var(--signal); }
.ba-note { color: var(--muted); font-size: .8rem; }
@media (min-width: 768px) { .ba { aspect-ratio: 16/9; } }
@media (min-width: 1024px) { .ba-wrap { grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: center; } }

/* ---------- Contatti ---------- */
.c-item .v small, .c-item small { display: block; font-family: var(--f-body); font-size: .78rem; font-weight: 400; color: var(--muted); margin-top: 4px; font-stretch: 100%; }
.q-mailto { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; justify-self: start; padding: 6px 0; }

/* ---------- Footer ---------- */
.ftr .skyline { color: rgba(242,241,237,.1); margin: 56px 0 -1px; }
.ftr-big { font-size: clamp(2.6rem, 11vw, 10rem); }

/* ---------- Mobile bar 2 voci ---------- */
.mbar { grid-template-columns: 1fr 1.5fr; }

/* ---------- Footer logo (stesso logotipo della navbar, in grande) ---------- */
.ftr-logo { display: inline-flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); text-decoration: none; color: var(--paper); margin: 64px 0 52px; transform-origin: left center; }
.ftr-logo .logo-img { width: clamp(72px, 13vw, 170px); height: auto; aspect-ratio: 448 / 316; background: var(--paper); transition: background var(--dur-2); }
.ftr-logo:hover .logo-img { background: var(--signal); }
.ftr-logo .lt { --lt: clamp(13px, 2.3vw, 30px); }
.ftr-logo .logo-sub { display: block; margin-top: clamp(10px, 1.2vw, 16px); font-size: clamp(.58rem, .9vw, .76rem); }

/* ---------- Fase 04: foto realizzato ---------- */
.b3d-photo image-slot { background: var(--night-2); }
.b3d-photo-cap { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 8px; white-space: nowrap; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,241,237,.75); background: rgba(13,17,22,.55); padding: 4px 8px; pointer-events: none; opacity: 0; transition: opacity .6s; }
.b3d-photo.live .b3d-photo-cap { opacity: 1; }
@media (max-width: 767px) { .b3d-photo-cap { font-size: .5rem; bottom: 4px; } }

/* ============ Micro-interazioni e transizioni globali ============ */
a, button, .chip, .tag, .svc-btn, .c-item a, .ftr-grid a, .mnav a { transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), opacity var(--dur-2), transform var(--dur-3) var(--ease-out); }
.btn { transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(13,17,22,.55); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn .arr { transition: transform var(--dur-3) var(--ease-out); }
.btn:hover .arr { transform: translateX(6px); }
.btn-sm:hover { transform: translateY(-1px); }
.chip { transition: all var(--dur-2) var(--ease-out); }
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: scale(.97); }
.tag { transition: border-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.tag:hover { border-color: currentColor; color: var(--ink); transform: translateY(-1px); }
.on-dark .tag:hover, .creds .tag:hover { color: var(--paper); }
.svc-link { position: relative; border-bottom-color: transparent !important; }
.svc-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: right; transition: transform var(--dur-3) var(--ease-out); }
.svc-link:hover::after { transform: scaleX(.3); }
.svc-link:hover { letter-spacing: .12em; }
.c-item a, .ftr-grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-3) var(--ease-out), color var(--dur-2); }
.c-item a:hover, .ftr-grid a:hover { background-size: 100% 1px; }
.logo { transition: opacity var(--dur-2); }
.logo .logo-img { transition: transform var(--dur-3) var(--ease-out), background var(--dur-2); }
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.06); background: var(--signal); }
.pillar { transition: background var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.pillar .ico { transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2); }
.pillar:hover .ico { transform: rotate(90deg); border-color: var(--signal); }
.pillar .bgnum { transition: transform 1s var(--ease-out), color var(--dur-3); }
.pillar:hover .bgnum { transform: translate(-10px, -10px); color: rgba(242,241,237,.07); }
.stat { transition: background var(--dur-3); }
.stat:hover { background: rgba(18,22,28,.03); }
.work .zwrap image-slot, .portrait image-slot { transition: transform 1.2s var(--ease-out), filter .6s; }
.work:hover .zwrap image-slot { transform: scale(1.05); }
.work-meta .t-h3 { transition: color var(--dur-2); }
.work:hover .work-meta .t-h3 { color: var(--signal); }
.svc-btn:hover .num { color: var(--signal); }
.svc-btn .num { transition: color var(--dur-2); }
.svc-btn:hover .pm { border-color: var(--ink); transform: rotate(90deg); }
.svc-btn .pm { transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-3) var(--ease-out); }
.b3d-steps button:hover { opacity: .9; }
.burger:hover { background: rgba(255,255,255,.08); }
.work-nav button { transition: background var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.work-nav button:hover { transform: translateY(-2px); }
.ba-handle span { transition: transform var(--dur-3) var(--ease-out); }
.ba-handle:hover span, .ba-handle:active span { transform: translate(-50%, -50%) scale(1.12); }
.q-progress button { transition: color var(--dur-2); }
.q-progress button:hover { color: var(--ink); }
.field input, .field select, .field textarea { transition: border-color var(--dur-2), border-width var(--dur-2), padding var(--dur-2); }
.check input { transition: background var(--dur-2); }

/* ============ Comparsa allo scroll ============ */
.rv { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.2s var(--ease-io), filter 1s var(--ease-out); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.rv-up { transform: translateY(40px); }
.rv-left { transform: translateX(-40px); }
.rv-right { transform: translateX(40px); }
.rv-scale { transform: scale(.94); }
.rv-blur { filter: blur(8px); transform: translateY(20px); }
.rv-mask { opacity: 1; clip-path: inset(100% 0 0 0); transform: translateY(24px); }
.rv-wipe { opacity: 1; clip-path: inset(0 100% 0 0); }
.rv-line { opacity: 1; transform: scaleX(0); transform-origin: left; }
.rv.in { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }
.sec-idx.rv-line.in { transform: none; }
/* titoli: righe che salgono */
.split-ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--rd, 0s) + var(--li, 0) * .09s); }
.split.in .split-ln > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .split-ln > span { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; } }
