:root {
  color-scheme: light;
  --navy: #003B75; --accent: #FFD300; --ink: #1F2426; --text: #333333;
  --bg: #EDEDEA; --muted: #5C5C55; --line: #CFCFC7; --light: #FAFAF7;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r-shadow: 50 70 70;
  --cut: #324646;
}
[data-cut="blu"] { --cut: #003B75; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

.sphere { display: inline-block; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent), #fff 40%), var(--accent) 70%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .5), inset 0 -3px 5px color-mix(in srgb, var(--accent), #000 30%), 0 4px 10px -2px rgb(var(--r-shadow) / .35); }

.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 13px 26px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: var(--light);
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease); }
.pill .plus { color: var(--accent); }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(1px); transition-duration: .06s; }

.cut-host { position: relative; overflow: hidden; background: var(--cut); transition: background-color .5s ease; }
.cut { position: absolute; z-index: 0; left: -200vw; bottom: 0; width: 400vw; height: 400vw; border-radius: 50%; background: var(--bg); pointer-events: none; }
.cut-host > .container { position: relative; z-index: 1; }

.nav { position: fixed; z-index: 10; top: 0; left: 0; right: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
.nav.show { transform: none; visibility: visible; transition-delay: 0s; }
html:not(.js) .nav { transform: none; visibility: visible; }
.nav-in { display: flex; align-items: center; justify-content: flex-end; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--cut); color: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 20 35 / .5), rgb(10 20 35 / 0) 26%); pointer-events: none; }
.hero { --panel-w: clamp(380px, 32vw, 520px); --edge: clamp(20px, 3vw, 48px); --gap-v: clamp(14px, 2.6svh, 28px); --tip-x: 50%; }
.vela { position: absolute; z-index: 1; right: 0; bottom: 0; width: calc(100% - var(--tip-x)); height: clamp(260px, 58vh, 600px); pointer-events: none; }
.vela path { fill: var(--cut); }
.login { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--edge); margin-block: auto; height: calc(100svh - 2 * var(--gap-v)); width: var(--panel-w); display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; --band: clamp(60px, 10.8svh, 140px); --over: calc(var(--band) * .3); --yp: calc(var(--over) + 2px); padding: clamp(14px, 2.2svh, 26px) clamp(24px, 2.6vw, 44px) 0; background: #F7F9FB; border-radius: 22px; box-shadow: 0 34px 80px -22px rgb(10 20 35 / .6), 0 10px 28px -8px rgb(10 20 35 / .38); overflow: hidden; }
.login-top { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-evenly; padding-bottom: calc(clamp(18px, 3svh, 34px) + var(--yp) - clamp(14px, 2.2svh, 26px)); }
.login-mid { position: relative; z-index: 3; flex: none; height: var(--band); }
.login-head { position: relative; aspect-ratio: 668 / 439; width: min(62%, 210px); margin: 0 auto 14px; flex: none; }
/* Ogni logo prende l'altezza dell'area, centrato: i costruttori hanno proporzioni diverse dalla nostra. Il 161% (100 / 62) arriva alla larghezza utile della card. */
.login-head img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: auto; height: 100%; max-width: 161%; object-fit: contain; }
.login .field { margin-bottom: 10px; }
.login .field input { min-height: 48px; border-radius: 10px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.login-row a { font-size: 14px; color: var(--navy); text-decoration: none; }
.login-row a:hover { color: var(--ink); }
.login-row .pill { min-height: 44px; padding: 10px 22px; }
.vela-slot { position: absolute; z-index: 2; right: 0; bottom: 0; width: calc(100% - var(--tip-x)); height: clamp(260px, 58vh, 600px); pointer-events: none; }
.vela-st { position: absolute; inset: 0; pointer-events: none; }
.vs { position: absolute; width: clamp(56px, 5.2vw, 86px); height: auto; filter: drop-shadow(0 4px 8px rgb(0 10 30 / .35)); }
.vs1 { right: 2%; bottom: 5%; transform: rotate(22deg); }
.vs2 { right: 17%; bottom: 4%; transform: rotate(-12deg); }
.vs3 { right: 2%; bottom: 25%; transform: rotate(-28deg); }
.js:not(.reduce) .vs { animation: bubble-in .7s cubic-bezier(.3, 1.3, .5, 1) backwards; }
.js:not(.reduce) .vs1 { animation-delay: 1.5s; } .js:not(.reduce) .vs2 { animation-delay: 1.7s; } .js:not(.reduce) .vs3 { animation-delay: 1.9s; }
@media (max-width: 959px) { .vela-st { display: none; } }
.bubble { position: absolute; left: calc(59.3% + 14px); top: calc(64.4% - 23px); width: 34%; min-width: 170px; max-width: 270px; margin: 0; padding: 14px 18px 15px; translate: -22% 0; background: #F7F9FB; border: 2px solid var(--navy); border-radius: 20px 28px 22px 30px / 26px 20px 30px 22px; outline: 1.5px solid var(--navy); outline-offset: 4px; box-shadow: 7px 8px 0 var(--accent); transform: rotate(-2deg); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: -10px; top: 14px; width: 18px; height: 18px; background: #F7F9FB; border-left: 2px solid var(--navy); border-top: 2px solid var(--navy); transform: rotate(-45deg); border-radius: 6px 0 0 0; }
.bubble span { display: block; font: 800 clamp(17px, 1.6vw, 23px)/1.08 var(--display); letter-spacing: -.005em; text-transform: uppercase; color: var(--navy); }
.js:not(.reduce) .bubble { animation: bubble-in .7s cubic-bezier(.3, 1.3, .5, 1) 1.2s backwards; }
@keyframes bubble-in { from { opacity: 0; transform: rotate(-9deg) scale(.7); } }
@media (min-width: 1680px) {
  .bubble { left: calc(71% - clamp(150px, 10.5vw, 230px)); top: 52%; translate: -22% -50%; width: clamp(300px, 21vw, 460px); max-width: none; padding: 20px 26px 22px; }
  .bubble span { font-size: clamp(24px, 1.85vw, 34px); }
  .bubble::after { top: 22px; }
}
@media (max-width: 959px) { .bubble { left: auto; right: 3%; top: auto; bottom: 16px; width: min(44vw, 250px); min-width: 0; padding: 10px 14px 11px; translate: -18% 0; } .bubble span { font-size: clamp(14px, 2.5vw, 18px); } }
.bubble.bubble--righe { left: auto; right: clamp(16px, 2.4vw, 56px); width: max-content; max-width: calc(100vw - 32px); }
.bubble--righe span { white-space: pre-line; font-size: clamp(15px, 1.55vw, 30px); }
.login-art { display: block; position: absolute; left: 50%; top: 50%; width: auto; max-width: none; height: calc(var(--band) + 2 * var(--over)); transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 8px 12px rgb(10 20 35 / .28)); }
.login-bottom { margin-inline: calc(-1 * clamp(24px, 2.6vw, 44px)); padding: var(--yp) clamp(24px, 2.6vw, 44px) clamp(18px, 3svh, 34px); flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; text-align: center; gap: 10px; background: var(--accent); color: var(--navy); }
.login-bottom p { margin: 0; font-size: 13px; line-height: 1.4; }
.login-stores { display: flex; justify-content: center; gap: 10px; }
.login-stores a { display: block; line-height: 0; border-radius: 7px; }
.login-stores img { display: block; height: clamp(30px, 4.8svh, 42px); width: auto; }
.login-bottom .pill--ghost { width: 100%; justify-content: center; border-color: var(--navy); }
.field { display: block; margin-bottom: 14px; }
.field input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); background: rgb(255 255 255 / .92); font: 16px var(--body); color: var(--ink); }
.field input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.qr-slot { flex: none; width: clamp(96px, 17svh, 190px); aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.hero-foot { position: absolute; z-index: 2; left: var(--tip-x); bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.hero-logo { width: 56px; height: 56px; filter: drop-shadow(0 4px 12px rgb(10 20 35 / .35)); }
.scroll-word { font: 500 11px/1 var(--mono); letter-spacing: .28em; text-indent: .28em; text-transform: uppercase; color: var(--accent); text-shadow: 0 1px 6px rgb(10 20 35 / .7); }
.scroll-arrow { width: 38px; height: 38px; color: var(--accent); filter: drop-shadow(0 2px 4px rgb(10 20 35 / .5)); }
.js:not(.reduce) .scroll-arrow { animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-4px); opacity: .55; } 50% { transform: translateY(12px); opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.js:not(.reduce) .login { animation: slide-in .9s var(--ease) .1s backwards; }
.js:not(.reduce) .vela { animation: sweep 1.4s var(--ease) .15s backwards; }
.js:not(.reduce) .hero-foot { animation: fade .6s ease 1s backwards; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-32px); } }
@keyframes sweep { from { transform: translate(8vw, 8vh); } }
@keyframes fade { from { opacity: 0; } }

.hero-stage { margin-top: -1px; background: var(--cut); }
.claim { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); align-items: end; gap: 20px clamp(32px, 5vw, 80px); padding-block: clamp(56px, 8vw, 120px) clamp(32px, 4vw, 64px); color: var(--light); }
.claim-title { margin: 0; font: 800 clamp(44px, 6.6vw, 108px)/.92 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.claim-title span { display: block; white-space: nowrap; }
.claim-sub { margin: 0; font-size: clamp(17px, 1.3vw, 20px); color: rgb(250 250 247 / .86); }
.hero-media { position: relative; margin: 0; overflow: hidden; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1920 / 940; object-fit: cover; object-position: 50% 100%; }

.chapter { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.chapter .sphere { width: 12px; height: 12px; }
.chapter .sep { color: var(--muted); }
.js:not(.reduce) .chapter { opacity: 0; transform: translateX(-20px); transition: opacity .6s ease, transform .8s var(--ease); }
.js:not(.reduce) .chapter.is-in { opacity: 1; transform: none; }
.js.reduce .chapter { opacity: 0; transition: opacity .6s ease; }
.js.reduce .chapter.is-in { opacity: 1; }
.h2 { font: 800 clamp(30px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--navy); margin: 0; text-wrap: balance; }
.section { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }

.scene { position: relative; height: 500dvh; }
.sent { position: absolute; left: 0; width: 1px; height: 20%; pointer-events: none; }
.sent-first { position: absolute; left: 0; top: calc(50dvh + 80px); width: 1px; height: 1px; pointer-events: none; }
.sent[data-step="0"] { top: 0; } .sent[data-step="1"] { top: 20%; } .sent[data-step="2"] { top: 40%; } .sent[data-step="3"] { top: 60%; } .sent[data-step="4"] { top: 80%; }
.pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.pin-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--h, 560px) * 0.39714); grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 6vw, 96px); padding-block: calc(64px + clamp(16px, 4dvh, 40px)) clamp(48px, 8dvh, 80px); }
.pin-head { grid-column: 1 / -1; }
.texts { position: relative; align-self: center; min-height: clamp(240px, 38dvh, 340px); }
.tx { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity .45s ease, transform .7s var(--ease); }
.tx.on { opacity: 1; transform: none; }
.tx.past { transform: translateY(-30px); }
.tx h3 { font: 800 clamp(40px, 6.4vw, 96px)/.92 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--navy); margin: 0 0 14px; }
.tx p { margin: 0; max-width: 36ch; font-size: clamp(17px, 1.4vw, 20px); }
.tx[data-tx="0"] p, .tx[data-tx="2"] p, .tx[data-tx="4"] p { max-width: none; }
.pin-grid { --h: clamp(320px, calc(100dvh - 135px), 800px); }
.pin-foot { grid-column: 1; grid-row: 3; }
.rig { position: absolute; right: clamp(20px, 5.5vw, 90px); top: calc(50% + 14px); translate: 0 -50%; height: var(--h); aspect-ratio: 556 / 1400; }
.stage { position: absolute; left: 0; top: 0; width: 556px; height: 1400px; transform-origin: 0 0; transform: scale(var(--k, .45)); transition: opacity .8s ease; }
.rig { transform: perspective(1800px) rotateY(8deg); transition: transform 1.2s var(--ease); }
.js:not(.reduce) .scene[data-active="1"] .rig, .js:not(.reduce) .scene[data-active="3"] .rig { transform: perspective(1800px) rotateY(20deg); }
.scr { position: absolute; inset: 0; -webkit-mask: url(img/iphone-l-mask.png) 0 0 / 100% 100% no-repeat; mask: url(img/iphone-l-mask.png) 0 0 / 100% 100% no-repeat; }
.s3d { position: absolute; left: 0; top: 0; width: 600px; height: 1300px; transform-origin: 0 0; overflow: hidden; background: #F4F5F7; }
.stage-l .s3d { transform: matrix3d(0.71592588,-0.1274278,0,-0.00017499863,5.6078917e-05,0.94631303,0,3.3914393e-06,0,0,1,0,16.535433,90.551181,0,1); }
.isl { position: absolute; z-index: 2; top: 1.5%; left: 50%; width: 31%; height: 3.7%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.fr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tx h3 mark { color: inherit; background: linear-gradient(transparent 56%, var(--accent) 56%) no-repeat 0 0 / 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em; margin-inline: -.06em; transition: background-size .7s var(--ease) .3s; }
.tx.on h3 mark, html:not(.js) .tx h3 mark, .reduce .tx h3 mark { background-size: 100% 100%; }
.ph3d { position: absolute; left: 50%; top: 50%; width: 260%; height: 116%; translate: -50% -50%; pointer-events: none; display: none; }
.rig.is3d .ph3d { display: block; }
.rig.is3d .stage { visibility: hidden; }
.js:not(.reduce) .scene[data-active] .rig.is3d { transform: none; transition: none; }
.film { display: flex; flex-direction: column; height: 300%; transition: transform .8s var(--ease); }
.film img { width: 100%; height: 33.3334%; flex: none; object-fit: cover; }
.progress { position: relative; align-self: end; height: 3px; background: var(--line); max-width: 460px; margin-top: 24px; }
.progress .sphere { position: absolute; top: -10px; left: -11px; width: 23px; height: 23px; transition: transform .8s var(--ease); }

.stickers { --tl: max(clamp(20px, 5vw, 72px), calc((100% - 1240px) / 2 + clamp(20px, 5vw, 72px))); position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pin-grid { position: relative; z-index: 1; }
.st { --d: 0ms; --ox: calc((var(--x) - 50) * .25vw); --oy: calc((var(--y) - 50) * .25vh); position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(56px, calc(var(--w) * 1vw), 230px); height: auto; opacity: 0; z-index: var(--z, 1);
  transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg)) scale(.3); transition: opacity .25s ease, transform .25s ease; }
.st.on { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg)); }
.js:not(.reduce) .st.on { animation: pop .8s cubic-bezier(.3, 1.3, .5, 1) var(--d) backwards; }
@keyframes pop {
  0% { opacity: 0; transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy))) rotate(calc(var(--r) * 1deg + 28deg)) scale(.15); }
  55% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg - 7deg)) scale(1.16); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg)) scale(1); }
}
html:not(.js) .st { opacity: 1; }
.st[data-side] { width: clamp(40px, min(calc(var(--w) * 1vw), calc(var(--tl) * .62)), 230px); }
@media (max-width: 1699px), (max-height: 899px) { .stickers .st:not([data-side]) { display: none; } }
.st[data-side="l"] { left: calc(var(--tl) * var(--lx)); }
.st[data-side="r"] { left: calc(100% - var(--tl) * var(--lx)); }
.source { font: 13px var(--mono); color: var(--muted); margin: 14px 0 0; max-width: 34ch; }

.how { border-top: 0; }

.q-scene { background: #15181b; color: #E9EDF2; }
.q-stage { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 96px 0 56px; background: radial-gradient(90% 80% at 28% 38%, #2A3035 0%, #1A1E22 45%, #0B0D0F 100%); }
.q-scene .chapter, .js .q-scene .chapter { color: #C9CED4; margin: 0 24px; opacity: 1; transform: none; }
.q-scene .chapter .sep { color: #7C838B; }
.q-scene .chapter .sphere { filter: grayscale(1) brightness(.9); }
.q-who { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin: 0 24px; }
.q-man, .q-woman { width: auto; height: clamp(130px, 38vw, 190px); }
.q-man { filter: grayscale(1) drop-shadow(0 10px 18px rgb(0 0 0 / .45)); }
.q-woman { transform: scaleX(-1); filter: drop-shadow(0 10px 18px rgb(0 0 0 / .45)); }
.q-pair { display: flex; flex-direction: column; gap: 44px; }
.q-q, .q-a { position: relative; padding: 16px 20px 18px; border-radius: 20px 28px 22px 30px / 26px 20px 30px 22px; font: 800 clamp(22px, 6vw, 32px)/1.02 var(--display); letter-spacing: -.005em; text-transform: uppercase; }
.q-q { margin: 0 40px 0 24px; background: #C9CED4; border: 2px solid #5A6068; outline: 1.5px solid #C9CED4; outline-offset: 4px; box-shadow: 7px 8px 0 #3A4047; color: #2A2F34; transform: rotate(-1deg); }
.q-a { margin: 0 24px 0 40px; background: #F7F9FB; border: 2px solid var(--navy); outline: 1.5px solid #F7F9FB; outline-offset: 4px; box-shadow: 7px 8px 0 var(--accent); color: var(--navy); transform: rotate(1deg); }
.q-t { margin: 0; }
.q-a .q-t mark { color: var(--navy); text-shadow: none; }
.q-st { position: absolute; bottom: calc(100% - 2px); right: 24px; width: 50px; height: auto; transform: rotate(calc(var(--r) * 1deg)); filter: drop-shadow(0 5px 8px rgb(0 0 0 / .3)); }
.q-mark { display: none; }
@media (min-width: 768px) and (min-height: 561px) {
  .js .q-track { position: relative; height: 400dvh; }
  .js .q-stage { position: sticky; top: 0; height: 100dvh; display: block; padding: 0; background: linear-gradient(90deg, transparent 36%, #063261 64%), radial-gradient(45% 80% at 25% 38%, #2A3035 0%, #1A1E22 60%, #0B0D0F 100%); background-color: #0B0D0F; overflow: hidden; }
  .js .q-scene .chapter { position: absolute; z-index: 2; top: clamp(72px, 11dvh, 120px); left: clamp(24px, 5vw, 88px); margin: 0; }
  .js .q-who { display: contents; }
  .js .q-man, .js .q-woman { position: absolute; bottom: 0; height: 48dvh; transform: translateX(-50%); }
  .js .q-man { left: 25%; }
  .js .q-woman { left: 75%; transform: translateX(-50%) scaleX(-1); }
  .js .q-pair { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .5s ease; }
  .js .q-pair.on { opacity: 1; }
  .js .q-q, .js .q-a { position: absolute; z-index: 2; width: 42%; margin: 0; padding: 20px 26px 22px; font-size: clamp(22px, 2.4vw, 38px); }
  .js .q-q { left: 5%; top: clamp(160px, 22dvh, 220px); }
  .js .q-a { left: 53%; top: clamp(190px, 26dvh, 250px); opacity: 0; transform: translateY(14px) rotate(1deg); }
  .js .q-pair.on .q-a { opacity: 1; transform: rotate(1deg); transition: opacity .6s ease .55s, transform .7s var(--ease) .55s; }
  .js .q-pair--lunga .q-a { left: 49%; width: 46%; font-size: clamp(20px, min(2vw, 3.6dvh), 52px); }
  .js .q-q::after, .js .q-a::after { content: ""; position: absolute; bottom: -11px; width: 18px; height: 18px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); border-radius: 0 0 6px 0; }
  .js .q-q::after { left: 46%; background: #C9CED4; border-color: #5A6068; }
  .js .q-a::after { left: 50%; background: #F7F9FB; border-color: var(--navy); }
  .js .q-st { right: 28px; width: clamp(60px, 5.8vw, 92px); }
  .js:not(.reduce) .q-pair.on .q-st { animation: duo-stick .95s ease 1.1s backwards; }
  .js .q-mark { display: block; position: absolute; left: 0; right: 0; height: 100dvh; pointer-events: none; }
  .js .q-mark:nth-child(2) { top: 0; }
  .js .q-mark:nth-child(3) { top: 100dvh; }
  .js .q-mark:nth-child(4) { top: 200dvh; }
  .js .q-mark:nth-child(5) { top: 300dvh; }
  .js .dz::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 100%; height: clamp(120px, 20dvh, 220px); background: linear-gradient(180deg, transparent, var(--black)); pointer-events: none; }
}

@media (max-width: 767px) and (min-height: 561px) {
  .js .q-track { position: relative; height: 400dvh; }
  .js .q-stage { position: sticky; top: 0; height: 100dvh; display: block; padding: 0; background: linear-gradient(180deg, transparent 46%, #063261 70%), radial-gradient(90% 50% at 30% 30%, #2A3035 0%, #1A1E22 60%, #0B0D0F 100%); background-color: #0B0D0F; overflow: hidden; }
  .js .q-scene .chapter { position: absolute; z-index: 2; top: 72px; left: 24px; margin: 0; }
  .js .q-who { display: contents; }
  .js .q-man, .js .q-woman { position: absolute; bottom: 0; height: min(30dvh, 230px); }
  .js .q-man { left: 24%; transform: translateX(-50%); }
  .js .q-woman { left: 76%; transform: translateX(-50%) scaleX(-1); }
  .js .q-pair { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .5s ease; }
  .js .q-pair.on { opacity: 1; }
  .js .q-q, .js .q-a { position: absolute; z-index: 2; padding: 14px 20px 16px; font-size: clamp(20px, 5.6vw, 24px); }
  .js .q-q { left: 24px; right: 64px; top: max(116px, 15dvh); margin: 0; }
  .js .q-a { left: 56px; right: 24px; top: max(236px, 33dvh); margin: 0; opacity: 0; transform: translateY(14px) rotate(1deg); }
  .js .q-pair.on .q-a { opacity: 1; transform: rotate(1deg); transition: opacity .6s ease .55s, transform .7s var(--ease) .55s; }
  .js .q-q::after, .js .q-a::after { content: ""; position: absolute; bottom: -11px; width: 18px; height: 18px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); border-radius: 0 0 6px 0; }
  .js .q-q::after { left: 14%; background: #C9CED4; border-color: #5A6068; }
  .js .q-a::after { right: 14%; background: #F7F9FB; border-color: var(--navy); }
  .js .q-st { right: 20px; width: 56px; }
  .js:not(.reduce) .q-pair.on .q-st { animation: duo-stick .95s ease 1.1s backwards; }
  .js .q-mark { display: block; position: absolute; left: 0; right: 0; height: 100dvh; pointer-events: none; }
  .js .q-mark:nth-child(2) { top: 0; }
  .js .q-mark:nth-child(3) { top: 100dvh; }
  .js .q-mark:nth-child(4) { top: 200dvh; }
  .js .q-mark:nth-child(5) { top: 300dvh; }
}

.need { position: relative; display: flow-root; background: #121518; }
.spl { position: sticky; top: 0; height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: 0 -34px 70px -22px rgb(0 0 0 / .55); }
.spl-was { position: relative; overflow: hidden; background: #15181b; color: #D5D9DE; }
.spl-was img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.95) brightness(.42); }
.spl-now { position: relative; background: #063261; color: #E9EDF2; }
.spl-in { position: relative; z-index: 1; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3dvh, 32px); padding: clamp(72px, 11dvh, 120px) clamp(24px, 5vw, 88px) clamp(32px, 6dvh, 72px); }
.spl-was .spl-in { justify-content: space-between; padding-right: clamp(24px, 4vw, 64px); }
.spl-was .chapter, .js .spl-was .chapter { color: #C9CED4; margin: 0; opacity: 1; transform: none; }
.spl-was .chapter .sep { color: #7C838B; }
.spl-was .chapter .sphere { filter: grayscale(1) brightness(.9); }
.spl-copy { display: grid; gap: 12px; max-width: 36ch; }
.spl-role { margin: 0; font: 800 clamp(24px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: #F2F4F6; white-space: nowrap; }
.spl-lab { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.spl-was .spl-lab { color: #8E959D; }
.spl-now .spl-lab { color: var(--accent); }
.spl-now .spl-lab .sphere { width: 14px; height: 14px; }
.spl-was-t { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: #AEB4BB; }
.spl-now-t { margin: 0; max-width: 17ch; font: 800 clamp(30px, 4vw, 62px)/.98 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: #EAEEF3; }
.spl-now-t mark, .q-t mark { background: linear-gradient(transparent 56%, rgb(255 211 0 / .92) 56%); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .6), 0 2px 12px rgb(0 0 0 / .4); padding-inline: .06em; margin-inline: -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.spl-intro .spl-in { justify-content: flex-end; }
.spl-intro, .spl-intro .spl-was, .spl-intro .spl-now { background: var(--bg); color: var(--ink); }
.spl-intro { box-shadow: none; }
.spl-intro .spl-was .spl-lab, .spl-intro .spl-now .spl-lab { color: var(--navy); }
.spl-intro-c { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; pointer-events: none; }
.spl-intro .chapter, .js .spl-intro .chapter { color: var(--navy); margin: 0; opacity: 1; transform: none; }
.spl-intro .chapter .sep { color: var(--muted); }
.spl-intro-t { margin: 0; font: 800 clamp(44px, 7.4vw, 124px)/.9 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--navy); }
.spl-intro-s { margin: 0; font: 500 clamp(16px, 1.7vw, 26px)/1.3 var(--body); color: var(--navy); }
.spl-st-sponge { z-index: 3; }
.spl-intro-t mark { color: inherit; background: linear-gradient(transparent 52%, var(--accent) 52%); display: inline-block; line-height: .85; padding-inline: .06em; margin-inline: -.06em; }
.spl-st { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1vw); max-width: 200px; transform: rotate(calc(var(--r) * 1deg)); filter: drop-shadow(0 6px 10px rgb(10 20 35 / .22)); }
.spl-st.old { filter: grayscale(1) drop-shadow(0 6px 10px rgb(10 20 35 / .22)); }
@media (max-height: 560px) {
  .spl-intro { min-height: 70dvh; grid-template-rows: 1fr 1fr; }
  .spl-intro .spl-in { display: none; }
  .spl-st { display: none; }
}
.spl-now-bg { overflow: hidden; }
.spl-now-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.spl-now-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(6 50 97 / .78) 0%, rgb(6 50 97 / .1) 28%, rgb(6 50 97 / .05) 52%, rgb(6 50 97 / .55) 100%); }
.spl-now-bg .spl-in { justify-content: space-between; }
.spl-now-bg .spl-now-t { align-self: flex-start; max-width: 25ch; padding: 16px 22px 18px; background: #F7F9FB; color: var(--navy); border: 2px solid var(--navy); border-radius: 20px 28px 22px 30px / 26px 20px 30px 22px; box-shadow: 7px 8px 0 var(--accent); font-size: clamp(26px, 3.2vw, 50px); }
.spl-now-bg .spl-now-t mark { color: var(--navy); text-shadow: none; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 1; }
.spl-sponge { display: none; }
.spl-gap { height: 0; }
@media (min-height: 561px) {
  .spl-wipe .spl-was, .spl-wipe .spl-now { grid-column: 1 / -1; grid-row: 1; }
  .spl-wipe .spl-now { position: relative; z-index: 2; }
  .spl-wipe .spl-was img { filter: grayscale(1) contrast(.95) brightness(.42) blur(calc(var(--p) * 3px)); }
  .spl-wipe .spl-now-bg > img { object-position: 50% 40%; }
  .spl-wipe .spl-now .spl-in { padding-left: calc(var(--textl, 50%) + clamp(24px, 3vw, 56px)); }
  @media (min-width: 1200px) { .spl-wipe.spl-tablet .spl-now .spl-in { padding-left: calc(34% + clamp(24px, 3vw, 56px)); } }
  .spl-wipe .spl-sponge { display: block; position: absolute; z-index: 4; width: auto; pointer-events: none; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .35)); }
  .spl-wipe.spl-local .spl-now { clip-path: none; -webkit-mask-image: radial-gradient(circle at var(--mx, 75%) var(--my, 30%), #000 calc(var(--rad, 0px) - 70px), transparent var(--rad, 0px)); mask-image: radial-gradient(circle at var(--mx, 75%) var(--my, 30%), #000 calc(var(--rad, 0px) - 70px), transparent var(--rad, 0px)); }
  .spl-wipe.spl-local .spl-sponge { left: calc(var(--sx, 75) * 1px); top: calc(var(--sy, 30) * 1px); height: 28%; opacity: var(--so, 0); transform: translate(-50%, -50%) rotate(calc(var(--rot, 0) * 1deg)); }

  .spl-gap { height: var(--gap, 90dvh); }
}
@media (max-width: 767px) and (min-height: 561px) {
  .spl-wipe .spl-now .spl-in { padding-left: 24px; }
  .spl-wipe .spl-now-bg .spl-in { justify-content: flex-end; gap: 14px; }
  .spl-wipe .spl-now .spl-in { opacity: clamp(0, calc((var(--p) - .66) * 4), 1); }
  .js:not(.reduce) .spl-wipe.spl-local .spl-now { opacity: var(--on, 0); }
  .reduce .spl-wipe.spl-local .spl-now { -webkit-mask-image: none; mask-image: none; }
  .spl-wipe::after { content: ""; position: absolute; inset: 0; z-index: 6; background: #15181b; opacity: var(--out, 0); pointer-events: none; }
  .spl-wipe .spl-was img, .spl-wipe .spl-now-bg > img { object-position: var(--ox, 50%) 50% !important; }
  .spl-wipe.spl-local .spl-sponge { height: 20%; }
  .spl-intro .spl-in { display: none; }
  .spl-intro .spl-st { display: none; }
  .spl-intro .spl-st[style*="--mx"] { display: block; left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); width: calc(var(--mw) * 1vw); }
}
@media (max-height: 560px) {
  .spl { position: relative; height: auto; min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: auto auto; box-shadow: none; }
  .spl-in { height: auto; padding: 40px 24px; }
  .spl-was .spl-in { gap: 36px; }
  .spl-now-t { max-width: none; font-size: clamp(28px, 8vw, 44px); }
  .spl-now-bg { min-height: 80dvh; }
}

.how { position: relative; overflow: hidden; isolation: isolate; }
.duo-row { position: relative; }
.duo-txt { display: flex; flex-direction: column; }
.duo-solo { margin: 0 0 clamp(18px, 2.2vw, 28px); padding-bottom: clamp(16px, 2vw, 24px); border-bottom: 1px dashed #8B9099; }
.duo-solo .duo-lab { color: #6B7078; }
.duo-solo .duo-lab::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: #8B9099; }
.duo-small { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: var(--ink); }
.duo-small .dt { background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 100% 1.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.duo-big mark { background: linear-gradient(transparent 56%, var(--accent) 56%) no-repeat 0 0 / 100% 100%; color: inherit; padding-inline: .06em; margin-inline: -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js:not(.reduce) .duo-solo .duo-small { transition: color .7s ease .2s; }
.js:not(.reduce) .duo-small .dt { background-size: 0% 1.5px; transition: background-size .7s var(--ease) .25s; }
.js:not(.reduce) .duo-row.go .duo-small { color: #8B9099; }
.js:not(.reduce) .duo-row.go .duo-small .dt { background-size: 100% 1.5px; }
.js:not(.reduce) .duo-dz { opacity: 0; transform: translateY(20px); transition: opacity .7s ease .55s, transform .8s var(--ease) .55s; }
.js:not(.reduce) .duo-row.go .duo-dz { opacity: 1; transform: none; }
.js:not(.reduce) .duo-big mark { background-size: 0% 100%; transition: background-size .7s var(--ease) 1.1s; }
.js:not(.reduce) .duo-row.go .duo-big mark { background-size: 100% 100%; }
.how-head .h2 { max-width: none; }
.duo { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 36px); }
.duo-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 40px) 0; border-top: 1px solid var(--line); }
.duo-row.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.duo-row.rev .duo-fig { order: 2; }
.duo-fig { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--light); }
.duo-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo-txt { position: relative; }
.duo-n { display: block; margin: 0 0 clamp(10px, 1.4vw, 18px); font: 800 clamp(56px, 6.4vw, 96px)/.85 var(--display); letter-spacing: -.01em; color: var(--navy); }
.duo-st { position: absolute; top: -6px; right: 0; width: clamp(64px, 6.5vw, 104px); height: auto; pointer-events: none; transform: rotate(calc(var(--r) * 1deg)); filter: drop-shadow(0 5px 8px rgb(10 20 35 / .22)); }
.duo-fig { border: 2px solid var(--navy); border-radius: 20px 28px 22px 30px / 26px 20px 30px 22px; outline: 1.5px solid var(--navy); outline-offset: 4px; box-shadow: 7px 8px 0 var(--accent); transform: rotate(-1deg); }
.duo-row.rev .duo-fig { transform: rotate(1deg); }
.js:not(.reduce) .duo-row .duo-fig { transform: rotate(-4deg) translateY(16px); box-shadow: 0 0 0 var(--accent); transition: transform 1s var(--ease), box-shadow .8s ease .35s; }
.js:not(.reduce) .duo-row.rev .duo-fig { transform: rotate(4deg) translateY(16px); }
.js:not(.reduce) .duo-row.go .duo-fig { transform: rotate(-1deg); box-shadow: 7px 8px 0 var(--accent); }
.js:not(.reduce) .duo-row.rev.go .duo-fig { transform: rotate(1deg); }
.js:not(.reduce) .duo-n { opacity: 0; transform: scale(1.5) rotate(-8deg); transform-origin: 0 100%; transition: opacity .25s ease .2s, transform .6s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.js:not(.reduce) .duo-row.go .duo-n { opacity: 1; transform: none; }
.js:not(.reduce) .duo-st { opacity: 0; }
.js:not(.reduce) .duo-row.go .duo-st { opacity: 1; animation: duo-stick .95s ease .9s backwards; }
@keyframes duo-stick {
  from { opacity: 0; transform: translateY(-44px) rotate(calc(var(--r) * 1deg + 28deg)) scale(1.15); filter: drop-shadow(0 20px 14px rgb(10 20 35 / .1)); }
  55% { opacity: 1; transform: translateY(5px) rotate(calc(var(--r) * 1deg - 7deg)) scale(.97); filter: drop-shadow(0 3px 5px rgb(10 20 35 / .28)); }
  78% { transform: translateY(-2px) rotate(calc(var(--r) * 1deg + 3deg)); }
}
.js:not(.reduce) .duo-solo .duo-small { transform-origin: 0 50%; transition: color .7s ease .2s, transform .7s var(--ease) .5s; }
.js:not(.reduce) .duo-row.go .duo-solo .duo-small { transform: translateY(5px) rotate(-.6deg); }
.duo-lab { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.duo-dz .duo-lab { color: var(--navy); }
.duo-dz .duo-lab .sphere { width: 14px; height: 14px; }
.duo-big { margin: 0; font: 800 clamp(26px, 3.2vw, 46px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 767px) {
  .duo-row, .duo-row.rev { grid-template-columns: 1fr; }
  .duo-row.rev .duo-fig { order: 0; }
}

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges a { display: block; line-height: 0; border-radius: 8px; }
.badges img { display: block; height: 44px; width: auto; }
.badges a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.closing h2 { font: 800 clamp(36px, 5vw, 72px)/.94 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); margin: 0 0 clamp(24px, 3vw, 40px); max-width: 16ch; }
.closing { border-top: 0; padding-bottom: clamp(150px, 19vw, 280px); }
.foot { background: var(--cut); color: rgb(250 250 247 / .74); font-size: 14px; transition: background-color .5s ease; }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 20px 28px; border-top: 1px solid rgb(250 250 247 / .2); }

@media (max-height: 860px) { .login-head { width: min(56%, 190px); } .login .field input { min-height: 44px; } .qr-slot { width: 118px; } }
@media (max-height: 740px) { .login { --band: 70px; --over: 14px; } .login-top { padding-bottom: 12px; } .qr-slot { width: 92px; } .login-head { width: min(52%, 165px); margin-bottom: 8px; } }
@media (max-height: 680px) and (min-width: 768px) { .login { --band: 0px; --over: 0px; --yp: 20px; } .login-mid { display: none; } }
@media (min-width: 1400px) { .claim { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .claim { grid-template-columns: 1fr; } .claim-title { font-size: clamp(34px, 10.4vw, 56px); } }
@media (max-width: 959px) {
  .hero { --panel-w: 0px; --edge: 0px; }
  .login { position: relative; inset: auto; width: min(calc(100% - 40px), 440px); max-height: none; height: auto; margin: 24px auto clamp(150px, 24svh, 210px); padding-top: 20px; }
  .login-top, .login-bottom { flex: none; }
  .vela, .vela-slot { height: clamp(160px, 28vh, 280px); }
}
@media (max-width: 767px) {
  .bubble, .login-bottom p { display: none; }
  .login { width: min(calc(100% - 72px), 320px); min-height: calc(100svh - 174px); margin-bottom: 150px; }
  .hero-foot { bottom: 16px; }
  .login-top, .login-bottom { flex: 1 1 auto; }
  .login-row { gap: 8px; }
  .login-row a { font-size: 13px; }
  .login-row .pill { padding-inline: 16px; }
  .nav-links .sec { display: none; }
  .nav-links { font-size: 14px; }
  .nav-in { height: 56px; }
  .login { --band: 48px; --over: 24px; }
  @media (max-height: 700px) { .login { --band: 40px; --over: 16px; } }
  .qr-slot { display: none; }
  .pin-grid { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .st { --ox: calc((var(--mx, 50) - 50) * .25vw); --oy: calc((var(--my, 50) - 50) * .25vh); left: calc(var(--mx, 50) * 1%); top: calc(var(--my, 50) * 1%); width: calc(var(--mw, 0) * 1vw); }
  .st[data-side] { left: calc(var(--mx, 50) * 1%); width: calc(var(--mw, 0) * 1vw); }
  .st:not([style*="--mw"]) { display: none; }
  .pin-head { margin-bottom: clamp(20px, 4dvh, 36px); }
  .tx h3 { font-size: clamp(34px, 10vw, 44px); margin-bottom: 10px; }
  .texts { min-height: 190px; }
  .pin-grid { --h: clamp(200px, calc(100dvh - 440px), 340px); padding-block: 72px 16px; }
  .progress { margin-top: 12px; }
  .pin-foot { grid-row: 4; }
  .rig { position: relative; right: auto; top: auto; translate: none; grid-row: 3; grid-column: 1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  /* Non "none": le dissolvenze restano, spariscono solo gli spostamenti. */
  *, *::before, *::after { transition-property: opacity !important; }
}

:root { --black: #0A0A0A; --ink: #141412; --red: #E2231A; }
.h2, .tx h3 { color: var(--ink); }
.scene .tx h3 { color: var(--navy); }
.dz { position: relative; background: var(--black); color: rgb(250 250 247 / .9); border-top: 0; padding-block: clamp(120px, 16vw, 220px) clamp(72px, 8vw, 120px); text-align: center; }
.dz .chapter { color: rgb(250 250 247 / .86); }
.dz .chapter .sep { color: rgb(250 250 247 / .5); }
.dz .chapter .sphere { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--red), #fff 35%), var(--red) 70%); box-shadow: none; }
.dz-text { margin: 0 auto; max-width: 36ch; font: 500 clamp(22px, 2.4vw, 32px)/1.25 var(--body); color: var(--light); }
.dz-name { display: block; margin-bottom: .18em; font: 800 clamp(56px, 9vw, 132px)/.9 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.dz-link { display: inline-block; margin-top: 24px; padding-bottom: 4px; border-bottom: 2px solid var(--red); font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--light); text-decoration: none; }
.dz :focus-visible { outline-color: var(--light); }

.pill--ghost { min-height: 44px; padding: 11px 22px; background: transparent; color: var(--navy); }
.pill--ghost:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.closing .chapter + .path { margin-top: clamp(22px, 2.6vw, 34px); }
.contact { position: relative; margin-top: 24px; max-width: 560px; padding: clamp(24px, 3vw, 40px); background: #F7F9FB; border-radius: 22px; box-shadow: 0 34px 80px -22px rgb(10 20 35 / .45), 0 10px 28px -8px rgb(10 20 35 / .25); }
.contact[hidden] { display: none; }
.contact .field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / .92); font: 16px/1.4 var(--body); color: var(--ink); resize: vertical; min-height: 190px; }
.contact .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.contact .field input { min-height: 56px; border-radius: 10px; }
.contact .path-q { margin-bottom: 20px; padding-right: 36px; font-size: 14px; }
.contact .field { margin-bottom: 14px; }
.contact .pill { min-height: 54px; padding-inline: 32px; }
.contact-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.contact-x:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.contact-note { margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.contact-note a { color: var(--navy); text-underline-offset: 3px; }
.contact-err { margin: 0 0 12px; font-size: 14px; color: #A12A2A; }
.contact-done { margin: 0; font: 800 clamp(22px, 2.2vw, 28px)/1.15 var(--display); color: var(--ink); }
@media (min-width: 1100px) {
  .contact { position: absolute; right: 0; top: clamp(50px, 5vw, 80px); width: clamp(400px, 42%, 560px); margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact:not([hidden]) { animation: contact-in .45s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes contact-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
}
.path-q { margin: 0 0 12px; font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.closing .path h2 { margin-bottom: 28px; max-width: none; }
.path--in { margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); max-width: 640px; }
.path-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.path .path-q--app { margin-top: 26px; }
.dz-link .arr { color: var(--red); }
.dz-link { border-bottom: 0; padding-bottom: 0; }

/* =================================================================================
   Integrazione con Default.aspx. Tutto cio' che segue non e' nel progetto statico: serve
   a far convivere il disegno con il form ASP.NET e con i terzi livelli dei costruttori.
   ================================================================================= */

/* Il form ASP.NET e' uno solo e deve contenere tutta la card (campi, DEMO, Richiedi
   accesso, QR). "contents" lo toglie dal disegno: login-top, login-mid e login-bottom
   restano figli diretti della flexbox .login come nel progetto statico. */
.login-form { display: contents; }
.aspNetHidden { display: none; }

/* I pulsanti sono LinkButton, quindi <a> e non <button>: senza queste regole .login-row a
   vince su .pill e il testo di ACCEDI diventa blu su blu. */
.login-row a.pill, .login-row a.pill:hover { color: var(--light); font-size: 13px; }

/* L'errore di accesso prende il posto del link: la regola e' nel CSS, cosi' basta che
   il server valorizzi lblEsito (e che il JS lo svuoti per farlo tornare). */
.login-esito { font-size: 13px; line-height: 1.3; }
.login-esito:empty { display: none; }
.login-esito:not(:empty) + a { display: none; }

/* "Please sign in to open the page you requested", sopra le caselle. */
.login-avviso { margin: 0 0 8px; font-size: 12px; line-height: 1.35; text-align: center; color: var(--muted); }
.login-avviso:empty { display: none; }

/* Appoggiata al bordo del pannello: piu' in alto finisce sopra lo sticker. Lo scostamento segue
   --over, cosi' non arriva mai a toccare RICHIEDI ACCESSO, che il pannello tiene distante di --yp. */
.login-mid .pill--demo { position: absolute; z-index: 4; right: 0; bottom: calc(-.5 * var(--over)); min-height: 38px; padding: 8px 18px; background: #808080; border-color: #808080; color: var(--light); }
.login-mid .pill--demo .plus { color: var(--accent); }
/* Sul telefono la fascia e' piu' bassa e lo sticker le occupa quasi tutta. */
@media (max-width: 767px) { .login-mid .pill--demo { bottom: -18px; } }
/* Sugli schermi bassi il progetto toglie la fascia con l'illustrazione: la DEMO deve
   restare, quindi sparisce la sola immagine. */
@media (max-height: 680px) and (min-width: 768px) {
  .login-mid { display: flex; justify-content: flex-end; height: auto; }
  .login-art { display: none; }
  .login-mid .pill--demo { position: static; min-height: 30px; margin-bottom: 8px; padding: 5px 14px; }
}

.qr-slot img { display: block; width: 100%; height: 100%; padding: 6px; image-rendering: pixelated; }
.login-bottom p a { color: inherit; text-decoration: underline; }

#loading { position: fixed; z-index: 3099; inset: 0; display: block; background: #fff; opacity: .7; }
#loading-image { position: absolute; inset: 0; margin: auto; }

/* --- Terzi livelli: la card sta al centro e la pagina finisce con la prima schermata --- */
[data-dominio="costruttore"] .login { left: 0; right: 0; margin-inline: auto; }
[data-dominio="costruttore"] .hero-bg { object-position: 50% 50%; }
[data-dominio="costruttore"] .hero-shade { display: none; }
/* Gli sfondi dei costruttori possono essere chiari o scuri: il fondo tiene leggibili i link. */
.hero-legale { position: absolute; z-index: 2; right: 14px; bottom: 10px; display: flex; gap: 12px; padding: 4px 12px; border-radius: 999px; background: rgb(10 20 35 / .6); font-size: 12px; }
.hero-legale a { color: #fff; text-underline-offset: 3px; }
@media (max-width: 959px) {
  [data-dominio="costruttore"] .login { margin-bottom: 44px; }
}
@media (max-width: 767px) {
  [data-dominio="costruttore"] .login { min-height: 0; margin-bottom: 44px; }
}

/* --- Banner cookie --- */
.cookie-box { position: fixed; z-index: 3000; right: 16px; bottom: 16px; width: min(calc(100vw - 32px), 400px); padding: 18px 20px; background: #F7F9FB; color: #333; border-radius: 16px; box-shadow: 0 18px 50px -14px rgb(10 20 35 / .55), 0 6px 18px -6px rgb(10 20 35 / .3); font: 14px/1.45 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.cookie-box[hidden] { display: none; }
.cookie-box p { margin: 0 0 12px; }
.cookie-box a { color: #003B75; text-underline-offset: 3px; }
.cookie-azioni { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-azioni button { min-height: 38px; padding: 8px 16px; border: 1px solid #003B75; border-radius: 999px; background: transparent; color: #003B75; font: 500 12px/1 'IBM Plex Mono', ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.cookie-azioni button.si { background: #003B75; color: #FAFAF7; }
.link-cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hero-legale .link-cookie { color: #fff; }

/* =================================================================================
   Versione ridotta, per chi ha attivo "Riduci movimento" sul dispositivo. Niente voli,
   rimbalzi, rotazioni e zoom, ma il racconto resta: quello che si muoveva compare in
   dissolvenza. E' tutto sotto .reduce, quindi agli altri non cambia nulla.
   ================================================================================= */
.js.reduce .vs, .js.reduce .bubble { animation: fade .8s ease 1.2s backwards; }

/* Cap. 1: i testi restano al loro posto e cambiano solo in dissolvenza. Senza questa regola
   lo spostamento di 30px, non piu' animato, scatterebbe di colpo mentre il titolo sfuma. */
.js.reduce .tx, .js.reduce .tx.past { transform: none; }
.js.reduce .st { transition-duration: .6s; }

/* Cap. 2: il colore sfuma sul bianco e nero mentre si scorre, senza spugna ne' sfocatura. */
@media (min-height: 561px) {
  .reduce .spl-wipe .spl-now, .reduce .spl-wipe.spl-local .spl-now { -webkit-mask-image: none; mask-image: none; opacity: var(--p, 1); }
  .reduce .spl-wipe .spl-sponge { display: none; }
  .reduce .spl-wipe .spl-was img { filter: grayscale(1) contrast(.95) brightness(.42); }
}

/* Cap. 3 */
.js.reduce .duo-row .duo-fig, .js.reduce .duo-n, .js.reduce .duo-dz, .js.reduce .duo-st { opacity: 0; transition: opacity .7s ease; }
.js.reduce .duo-dz { transition-delay: .3s; }
.js.reduce .duo-row.go .duo-fig, .js.reduce .duo-row.go .duo-n, .js.reduce .duo-row.go .duo-dz, .js.reduce .duo-row.go .duo-st { opacity: 1; }
.js.reduce .duo-small { transition: color .7s ease .2s !important; }
.js.reduce .duo-small .dt { background-size: 0% 1.5px; }
.js.reduce .duo-row.go .duo-small { color: #8B9099; }
.js.reduce .duo-row.go .duo-small .dt { background-size: 100% 1.5px; }

/* --- Grafica stagionale della card: vedi RicorrenzeLogin.cs --- */
/* La card ha overflow: hidden, quindi gli sticker che ne escono stanno in un livello
   accanto con la stessa geometria. Oltre la finestra verrebbero tagliati: da qui il limite
   di sporgenza legato a --gap-v e --edge. La condizione e' quella di MediaRicorrenza. */
.ricorrenza { display: none; }
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .ricorrenza { display: block; position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--edge); margin-block: auto; height: calc(100svh - 2 * var(--gap-v)); width: var(--panel-w); pointer-events: none; }
  [data-dominio="costruttore"] .ricorrenza { left: 0; right: 0; margin-inline: auto; }
  .ricorrenza-st { position: absolute; top: calc(-.6 * var(--gap-v)); width: calc(var(--panel-w) * .25); height: auto; filter: drop-shadow(0 6px 9px rgb(10 20 35 / .3)); animation: ricorrenza-entra .55s cubic-bezier(.2, 1.5, .4, 1) .35s backwards; }
  .ricorrenza-sx { left: calc(-.6 * var(--edge)); rotate: -8deg; }
  /* Poggia sul fondo dell'area del logo, appena sopra Email. Quel fondo segue l'altezza della
     finestra, ma sotto i 740px la card lo ferma: da qui i due calcoli, misurati sulla pagina. */
  .ricorrenza-dx { top: calc(13.3svh + 33px - var(--panel-w) * .25); right: calc(-.6 * var(--edge)); rotate: 7deg; animation-delay: .5s; }
  @media (max-height: 740px) { .ricorrenza-dx { top: calc(117px - var(--panel-w) * .25); } }
  .reduce .ricorrenza-st { animation: fade .8s ease .3s backwards; }
}
@keyframes ricorrenza-entra { from { opacity: 0; scale: .6; } }
