/* ==========================================================================
   HERO: la città con la sede di Solar CMA (HTML in build.py: city_html(); vita in city.js).
   Palcoscenico logico 760x720 px, ridimensionato con zoom (--z, calcolato da city.js).
   Riposo: una skyline alla New York nello stile del sito (carta, navy, azzurro, verde, giallo).
   Sopra la sede (hover, focus o tap): il palazzo "spunta", si accende, il vetro diventa trasparente e
   si vedono gli uffici piano per piano: Matteo (AI e tech), Onairda (musica), Cocoawant (scarpe 3D),
   il team, e Riccardo alla reception. Ogni piano è un link. Solo transform/opacity animati.
   ========================================================================== */
.hx-city{--ink:#071b3a;--sun:#ffd426;--azure:#19b4ec;--blue:#1646c9;--green:#22b36b;--mist:#eaf8fd;--leaf:#dcf5e8;
  --spring:linear(0,.0201,.0733,.15,.2419,.3419,.4444,.5448,.6398,.7269,.8047,.8721,.9291,.9757,1.0126,1.0406,1.0606,1.0737,1.081,1.0835,1.0822,1.0781,1.0718,1.0643,1.056,1.0474,1.039,1.031,1.0236,1.017,1.0113,1.0064,1.0024,.9993,.9968,.9951,.9939,.9933,.993,.9931,.9934,.9939,.9946,.9952,.996,.9967,.9973,.998,1);
  --out:cubic-bezier(.16,1,.3,1);
  position:absolute;right:var(--gutter,40px);bottom:0;width:760px;height:720px;zoom:var(--z,.8);z-index:1;
  font-family:Manrope,system-ui,sans-serif;color:var(--ink)}
.hx-city *{box-sizing:border-box}
.hx-city b,.hx-city i,.hx-city s{display:block;position:absolute;font-style:normal;text-decoration:none}

/* ---------- cielo ---------- */
.hx-city .sky{position:absolute;inset:0;z-index:1;pointer-events:none}
.hx-city .cloud{height:26px;border-radius:999px;background:#fff;border:1.5px solid rgba(7,27,58,.35);animation:cty-drift 60s linear infinite}
.hx-city .cloud::before{content:"";position:absolute;left:22%;bottom:40%;width:46%;height:150%;border-radius:999px;background:#fff;border:1.5px solid rgba(7,27,58,.35);border-bottom:0}
.hx-city .cloud.c1{left:40px;top:70px;width:110px}
.hx-city .cloud.c2{left:430px;top:30px;width:80px;animation-duration:80s;animation-delay:-30s}
.hx-city .cloud.c3{left:650px;top:120px;width:70px;animation-duration:70s;animation-delay:-50s}
@keyframes cty-drift{0%{translate:-40px 0}50%{translate:40px 0}100%{translate:-40px 0}}
.hx-city .blimp{left:-90px;top:150px;width:84px;height:30px;border-radius:50%;background:var(--mist);border:2px solid var(--ink);display:grid;place-items:center;animation:cty-blimp 46s linear infinite}
.hx-city .blimp::after{content:"";position:absolute;left:30px;bottom:-9px;width:22px;height:8px;border-radius:3px;background:#fff;border:2px solid var(--ink)}
.hx-city .blimp::before{content:"";position:absolute;left:-10px;top:6px;width:12px;height:14px;background:var(--sun);border:2px solid var(--ink);clip-path:polygon(0 0,100% 30%,100% 70%,0 100%)}
.hx-city .blimp img{width:16px;height:16px}
@keyframes cty-blimp{0%{transform:translateX(0)}100%{transform:translateX(960px)}}
.hx-city .birds{left:250px;top:90px;width:60px;height:20px;animation:cty-birds 22s linear infinite}
.hx-city .birds s{width:10px;height:6px;border:2px solid var(--ink);border-color:var(--ink) transparent transparent transparent;border-radius:50% 50% 0 0;animation:cty-flap .5s ease-in-out infinite alternate}
.hx-city .birds s:nth-child(1){left:0;top:6px}.hx-city .birds s:nth-child(2){left:14px;top:0;animation-delay:.15s}.hx-city .birds s:nth-child(3){left:28px;top:8px;animation-delay:.3s}
@keyframes cty-flap{to{scale:1 .4}}
@keyframes cty-birds{0%{translate:-260px 30px}100%{translate:600px -40px}}

/* ---------- skyline ---------- */
.hx-city .skyline{position:absolute;inset:0;z-index:2;pointer-events:none}
.hx-city .bld{position:absolute;bottom:0;--wall:#d6eef9;--win:rgba(25,180,236,.32);background:var(--wall);border:1.5px solid rgba(7,27,58,.4);border-bottom:0;border-radius:6px 6px 0 0}
.hx-city .bld.m{--wall:#fff;--win:rgba(25,180,236,.28);border:2px solid var(--ink);border-bottom:0}
.hx-city .bld.f{--wall:var(--leaf);--win:rgba(34,179,107,.3);border:2px solid var(--ink);border-bottom:0}
.hx-city .bld:nth-child(3n).b{--wall:#e3f4ec}
.hx-city .wins{position:absolute;inset:0}
.hx-city .wins::before{content:"";position:absolute;inset:14px 8px 10px;
  background:repeating-linear-gradient(90deg,var(--wall) 0 6px,transparent 6px 22px),repeating-linear-gradient(0deg,var(--wall) 0 10px,var(--win) 10px 22px,var(--wall) 22px 26px)}
.hx-city .wins i{height:12px;background:var(--sun);border-radius:1px;opacity:0;animation:cty-twinkle 9s steps(1) infinite;animation-delay:var(--d,0s)}
.hx-city .wins i.on{opacity:1;animation:none}
@keyframes cty-twinkle{0%,62%{opacity:0}63%,100%{opacity:1}}
/* tetti */
.hx-city .ant{left:50%;bottom:100%;width:2px;height:34px;margin-left:-1px;background:var(--ink)}
.hx-city .ant::after{content:"";position:absolute;left:-3px;top:-4px;width:8px;height:8px;border-radius:50%;background:var(--sun);border:1.5px solid var(--ink);animation:cty-blink 1.6s steps(1) infinite}
@keyframes cty-blink{50%{background:#fff}}
.hx-city .spire{left:50%;bottom:100%;width:34px;height:60px;margin-left:-17px;background:var(--wall);border:1.5px solid rgba(7,27,58,.4);clip-path:polygon(50% 0,100% 100%,0 100%)}
.hx-city .empire{left:50%;bottom:100%;width:48px;height:44px;margin-left:-24px;background:var(--wall);border:1.5px solid rgba(7,27,58,.4);border-bottom:0;border-radius:4px 4px 0 0}
.hx-city .empire::before{content:"";position:absolute;left:50%;bottom:100%;width:22px;height:30px;margin-left:-11px;background:var(--wall);border:1.5px solid rgba(7,27,58,.4);border-bottom:0}
.hx-city .bld .empire+.ant{bottom:calc(100% + 74px)}
.hx-city .tank{right:16px;bottom:100%;width:30px;height:30px;border:2px solid var(--ink);border-radius:4px 4px 2px 2px;background:#f2c992;
  background-image:repeating-linear-gradient(90deg,transparent 0 5px,rgba(7,27,58,.35) 5px 6px)}
.hx-city .tank::before{content:"";position:absolute;left:-4px;right:-4px;top:-10px;height:10px;background:#f2c992;border:2px solid var(--ink);clip-path:polygon(50% 0,100% 100%,0 100%)}
.hx-city .tank::after{content:"";position:absolute;left:3px;right:3px;top:100%;height:9px;border-left:2px solid var(--ink);border-right:2px solid var(--ink)}
.hx-city .crown{left:50%;bottom:100%;width:62px;height:70px;margin-left:-31px;background:var(--wall);border:2px solid var(--ink);border-bottom:0;
  border-radius:50% 50% 0 0/80% 80% 0 0;background-image:repeating-radial-gradient(circle at 50% 100%,transparent 0 9px,rgba(7,27,58,.5) 9px 11px)}
.hx-city .board{left:6px;right:6px;bottom:calc(100% + 10px);height:40px;background:#fff;border:2px solid var(--ink);border-radius:4px;display:flex;align-items:center;gap:5px;padding:0 6px;
  font:600 9.5px/1.05 Antonio,"Arial Narrow",sans-serif;text-transform:uppercase;letter-spacing:.02em;color:var(--ink)}
.hx-city .board::after{content:"";position:absolute;left:20%;right:20%;top:100%;height:10px;border-left:2px solid var(--ink);border-right:2px solid var(--ink)}
.hx-city .board span{position:static}
.hx-city .trees{left:-10px;right:-10px;bottom:0;height:34px}
.hx-city .trees s{bottom:0;width:38px;height:38px;border-radius:50%;background:var(--green);border:2px solid var(--ink)}
.hx-city .trees s:nth-child(1){left:0}.hx-city .trees s:nth-child(2){left:34%;width:44px;height:44px;background:#3cc47f}.hx-city .trees s:nth-child(3){right:0}

/* la città si spegne un poco quando accendi la sede */
.hx-city .dim{display:none}

/* ---------- la sede ---------- */
.hx-city .hq{position:absolute;left:250px;bottom:0;width:270px;height:560px;z-index:4;
  background:#fff;border:2px solid var(--ink);border-bottom:0;border-radius:10px 10px 0 0;
  box-shadow:6px 0 0 var(--ink);translate:0 0;transition:translate .8s var(--spring),box-shadow .5s var(--out)}
/* lesene laterali azzurre */
.hx-city .hq::before,.hx-city .hq::after{content:"";position:absolute;top:70px;bottom:0;width:12px;background:var(--azure);border-left:2px solid var(--ink);border-right:2px solid var(--ink)}
.hx-city .hq::before{left:-1px;border-left:0}.hx-city .hq::after{right:-1px;border-right:0}
.hx-city .roof{position:absolute;left:0;right:0;top:0;height:70px}
.hx-city .sign{position:absolute;left:50%;top:-26px;translate:-50% 0;display:flex;align-items:center;gap:6px;padding:6px 12px;background:#fff;border:2px solid var(--ink);border-radius:10px;box-shadow:3px 3px 0 var(--ink);
  font:600 17px/1 Antonio,"Arial Narrow",sans-serif;letter-spacing:-.01em;text-transform:uppercase;white-space:nowrap;transition:background-color .35s,box-shadow .5s var(--spring)}
.hx-city .sign img{width:22px;height:22px}
.hx-city .roof .ant{left:auto;right:28px;height:40px;bottom:auto;top:-40px}
.hx-city .garden{left:14px;right:14px;top:22px;height:40px}
.hx-city .garden s{bottom:0;width:30px;height:30px;border-radius:50%;background:var(--green);border:2px solid var(--ink)}
.hx-city .garden s:nth-child(1){left:0}.hx-city .garden s:nth-child(2){left:26px;width:22px;height:22px;background:#3cc47f}.hx-city .garden s:nth-child(3){right:30px;width:26px;height:26px}.hx-city .garden s:nth-child(4){right:0;width:34px;height:34px;background:#3cc47f}
.hx-city .panels{left:76px;right:76px;top:38px;height:20px;border:2px solid var(--ink);background:repeating-linear-gradient(90deg,var(--azure) 0 16px,var(--ink) 16px 18px);transform:skewX(-18deg)}
/* ascensore di vetro */
.hx-city .lift{position:absolute;right:-30px;top:70px;bottom:0;width:22px;background:rgba(25,180,236,.18);border:2px solid var(--ink);border-left:0}
.hx-city .lift i{left:1px;right:1px;bottom:8px;height:30px;background:var(--sun);border:2px solid var(--ink);border-radius:3px;animation:cty-lift 16s var(--out) infinite}
@keyframes cty-lift{0%,12%{translate:0 0}22%,36%{translate:0 -120px}46%,60%{translate:0 -300px}70%,84%{translate:0 -400px}94%,100%{translate:0 0}}

/* piani */
.hx-city .floors{position:absolute;left:12px;right:12px;bottom:0;top:70px;display:flex;flex-direction:column}
.hx-city .floor{position:relative;display:block;flex:0 0 94px;border-top:2px solid var(--ink);color:inherit;text-decoration:none;outline:none}
.hx-city .floor.f-lobby{flex-basis:auto;flex-grow:1}
.hx-city .room{position:absolute;inset:6px 4px 0;overflow:hidden;background:#e9eef3;transition:background-color .5s var(--out),scale .5s var(--spring);border-radius:2px}
.hx-city .frame{position:absolute;inset:6px 4px 0;pointer-events:none;
  background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),rgba(7,27,58,.75) calc(25% - 1px) 25%);border:2px solid var(--ink);border-radius:2px}
.hx-city .glass{position:absolute;inset:6px 4px 0;pointer-events:none;border-radius:2px;
  background:linear-gradient(115deg,rgba(25,180,236,.85) 0%,rgba(140,215,245,.9) 38%,rgba(255,255,255,.95) 44%,rgba(140,215,245,.9) 50%,rgba(25,180,236,.82) 100%);
  opacity:.92;transition:opacity .55s var(--out)}
.hx-city .floor:nth-child(2) .glass{transition-delay:.05s}.hx-city .floor:nth-child(3) .glass{transition-delay:.1s}.hx-city .floor:nth-child(4) .glass{transition-delay:.15s}.hx-city .floor:nth-child(5) .glass{transition-delay:.2s}
.hx-city .who{position:absolute;bottom:0;height:78px;width:auto;object-fit:contain;transform-origin:50% 100%}
/* etichetta: compare a sinistra del palazzo quando passi su un piano */
.hx-city .tag{position:absolute;right:calc(100% + 30px);top:50%;translate:0 -50%;white-space:nowrap;padding:7px 12px;background:var(--ink);color:#fff;border-radius:999px;
  font:700 12px/1 Manrope,system-ui,sans-serif;letter-spacing:.02em;opacity:0;scale:.85;transform-origin:100% 50%;pointer-events:none;transition:opacity .2s,scale .45s var(--spring)}
.hx-city .tag::after{content:"";position:absolute;left:100%;top:50%;width:26px;height:2px;background:var(--ink)}

/* ---------- arredi (forme semplici, stile pop) ---------- */
.hx-city .desk{left:30%;right:4%;bottom:0;height:16px;background:#fff;border:2px solid var(--ink);border-bottom:0;border-radius:3px 3px 0 0}
.hx-city .desk.long{left:6%;right:28%}
.hx-city .plant{right:6px;bottom:0;width:20px;height:18px;background:#f2c992;border:2px solid var(--ink);border-radius:2px 2px 5px 5px}
.hx-city .plant s{left:-8px;bottom:14px;width:34px;height:30px;border-radius:50% 50% 45% 45%;background:var(--green);border:2px solid var(--ink)}
.hx-city .plant.big{width:24px;height:22px;right:10px}.hx-city .plant.big s{width:40px;height:44px;left:-10px}
/* Matteo: AI e tech */
.hx-city .f-matteo .room{--lit:#fff4c9}
.hx-city .f-matteo .who{left:14px;height:80px}
.hx-city .ring{left:4px;top:8px;width:44px;height:44px;border-radius:50%;border:5px solid var(--sun);box-shadow:0 0 0 2px var(--ink),inset 0 0 0 2px var(--ink)}
.hx-city .screen{bottom:16px;height:40px;background:var(--ink);border:2px solid var(--ink);border-radius:3px}
.hx-city .screen.code{left:46%;width:58px}
.hx-city .screen.code i{left:6px;height:3px;border-radius:2px;background:var(--green);animation:cty-type 3s steps(4) infinite}
.hx-city .screen.code i:nth-child(1){top:7px;width:30px}.hx-city .screen.code i:nth-child(2){top:14px;width:40px;background:var(--azure);animation-delay:.4s}.hx-city .screen.code i:nth-child(3){top:21px;width:22px;background:var(--sun);animation-delay:.8s}.hx-city .screen.code i:nth-child(4){top:28px;width:34px;animation-delay:1.2s}
@keyframes cty-type{0%{scale:0 1;transform-origin:0 0}100%{scale:1 1}}
.hx-city .screen.code i{transform-origin:0 50%}
.hx-city .screen.ai{left:74%;width:46px;display:grid;place-items:center}
.hx-city .screen.ai i{position:static;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff,var(--azure) 55%,var(--blue));animation:cty-pulse 2.4s ease-in-out infinite}
@keyframes cty-pulse{50%{scale:1.18}}
.hx-city .note{right:6px;top:8px;width:26px;height:24px;background:var(--sun);border:2px solid var(--ink);display:grid;place-items:center;font:700 10px/1 Manrope,sans-serif;rotate:4deg}
.hx-city .f-matteo .plant{right:auto;left:40%}
/* Onairda: musica */
.hx-city .f-onairda .room{--lit:#dff4ff}
.hx-city .f-onairda .who{left:42%;height:80px;animation:cty-nod 1.1s ease-in-out infinite}
@keyframes cty-nod{50%{rotate:-2.5deg;translate:0 1px}}
.hx-city .spk{bottom:0;width:26px;height:46px;background:var(--ink);border-radius:3px;
  background-image:radial-gradient(circle at 50% 30%,#3a4f72 0 6px,transparent 7px),radial-gradient(circle at 50% 70%,#3a4f72 0 9px,transparent 10px)}
.hx-city .spk.l{left:6px}.hx-city .spk.r{right:6px}
.hx-city .f-onairda .desk{left:12%;right:56%}
.hx-city .deck{left:16%;bottom:16px;width:44px;height:10px;background:#fff;border:2px solid var(--ink);border-radius:2px}
.hx-city .deck i{left:6px;top:-12px;width:28px;height:28px;border-radius:50%;background:repeating-radial-gradient(circle,#1b2b45 0 2px,#071b3a 2px 4px);border:2px solid var(--ink);transform:scaleY(.35);animation:cty-spin 1.6s linear infinite}
@keyframes cty-spin{to{rotate:360deg}}
.hx-city .mic{left:72%;bottom:0;width:2px;height:52px;background:var(--ink)}
.hx-city .mic::before{content:"";position:absolute;left:-5px;top:-12px;width:12px;height:16px;border-radius:6px;background:#fff;border:2px solid var(--ink)}
.hx-city .eq{right:40px;top:10px;width:46px;height:30px;display:flex;align-items:flex-end;gap:3px}
.hx-city .eq i{position:static;flex:1;height:100%;background:var(--green);border-radius:2px;transform-origin:50% 100%;animation:cty-eq .8s ease-in-out infinite alternate;animation-delay:var(--d)}
.hx-city .eq i:nth-child(odd){background:var(--sun)}
@keyframes cty-eq{0%{scale:1 .2}100%{scale:1 1}}
.hx-city .vinyl-wall{left:30%;top:8px;width:60px;height:26px}
.hx-city .vinyl-wall i{top:0;width:26px;height:26px;border-radius:50%;background:radial-gradient(circle,var(--sun) 0 4px,var(--ink) 5px);border:2px solid var(--ink)}
.hx-city .vinyl-wall i:nth-child(2){left:32px;background:radial-gradient(circle,var(--azure) 0 4px,var(--ink) 5px)}
/* Cocoawant: scarpe in 3D */
.hx-city .f-cocoawant .room{--lit:#e4f8ec}
.hx-city .f-cocoawant .who{right:12px;height:76px}
.hx-city .shelf{left:6px;top:14px;width:96px;height:4px;background:var(--ink)}
.hx-city .shelf s{bottom:4px;width:24px;height:12px;background:#fff;border:2px solid var(--ink);border-radius:12px 12px 3px 3px/12px 12px 3px 3px}
.hx-city .shelf s:nth-child(1){left:2px;background:var(--sun)}.hx-city .shelf s:nth-child(2){left:34px;background:var(--azure)}.hx-city .shelf s:nth-child(3){left:66px;background:var(--green)}
.hx-city .printer{left:12px;bottom:0;width:62px;height:56px;border:2px solid var(--ink);background:rgba(255,255,255,.7);border-radius:3px}
.hx-city .printer .head{left:4px;top:6px;width:14px;height:8px;background:var(--ink);animation:cty-print 2.2s ease-in-out infinite alternate}
@keyframes cty-print{to{translate:36px 0}}
.hx-city .printer .shoe{left:12px;bottom:3px;width:32px;height:14px;background:var(--sun);border:2px solid var(--ink);border-radius:14px 14px 3px 3px/14px 14px 3px 3px;transform-origin:50% 100%;animation:cty-grow 6s ease-in-out infinite}
@keyframes cty-grow{0%{scale:1 .15}80%,100%{scale:1 1}}
.hx-city .f-cocoawant .desk{left:34%;right:30%}
.hx-city .tablet{left:44%;bottom:16px;width:30px;height:20px;background:var(--ink);border-radius:3px;border:2px solid var(--ink);background-image:linear-gradient(135deg,var(--azure),var(--green))}
.hx-city .lamp{left:60%;bottom:16px;width:2px;height:30px;background:var(--ink);rotate:14deg;transform-origin:50% 100%}
.hx-city .lamp::before{content:"";position:absolute;left:-8px;top:-6px;width:18px;height:10px;background:var(--sun);border:2px solid var(--ink);border-radius:10px 10px 2px 2px;rotate:-30deg}
/* il team */
.hx-city .f-team .room{--lit:#f3fbff}
.hx-city .wb{right:10px;top:8px;width:64px;height:40px;background:#fff;border:2px solid var(--ink);border-radius:2px}
.hx-city .wb i{left:8px;height:3px;background:var(--green);width:36px}
.hx-city .wb i:nth-child(1){top:8px}.hx-city .wb i:nth-child(2){top:17px;width:28px;background:var(--azure)}.hx-city .wb i:nth-child(3){top:26px;width:42px;background:var(--sun)}
.hx-city .emp{bottom:0;width:26px;height:44px}
.hx-city .emp::before{content:"";position:absolute;left:5px;top:0;width:16px;height:16px;border-radius:50%;background:#f1c7a5;border:2px solid var(--ink)}
.hx-city .emp::after{content:"";position:absolute;left:0;top:14px;width:26px;height:30px;border-radius:12px 12px 2px 2px;background:var(--azure);border:2px solid var(--ink)}
.hx-city .emp.e1{left:16px;animation:cty-bob 2.4s ease-in-out infinite}.hx-city .emp.e2{left:62px;animation:cty-bob 2.8s ease-in-out .4s infinite}.hx-city .emp.e2::after{background:var(--green)}.hx-city .emp.e2::before{background:#c98d68}
.hx-city .emp.e3{left:108px;animation:cty-bob 2.2s ease-in-out .8s infinite}.hx-city .emp.e3::after{background:var(--sun)}.hx-city .emp.e3::before{background:#8a5a3c}
@keyframes cty-bob{50%{translate:0 -2px}}
.hx-city .lap{bottom:16px;width:22px;height:14px;background:var(--ink);border-radius:2px 2px 0 0}
.hx-city .lap.l1{left:20px}.hx-city .lap.l2{left:66px}.hx-city .lap.l3{left:112px}
.hx-city .f-team .desk.long{z-index:1}.hx-city .lap{z-index:2}
.hx-city .coffee{right:86px;bottom:0;width:22px;height:34px;background:#fff;border:2px solid var(--ink);border-radius:3px}
.hx-city .coffee i{top:-14px;width:3px;height:12px;border-radius:2px;background:rgba(7,27,58,.35);animation:cty-steam 1.6s ease-in-out infinite}
.hx-city .coffee i:nth-child(1){left:6px}.hx-city .coffee i:nth-child(2){left:12px;animation-delay:.6s}
@keyframes cty-steam{0%{opacity:0;translate:0 4px}50%{opacity:1}100%{opacity:0;translate:0 -6px}}
.hx-city .cat{left:0;bottom:0;width:22px;height:12px;background:var(--ink);border-radius:10px 10px 4px 4px;animation:cty-cat 14s linear infinite}
.hx-city .cat::before{content:"";position:absolute;right:-6px;top:-7px;width:11px;height:11px;border-radius:50%;background:var(--ink);clip-path:polygon(0 30%,20% 0,40% 30%,60% 30%,80% 0,100% 30%,100% 100%,0 100%)}
.hx-city .cat::after{content:"";position:absolute;left:-8px;top:-6px;width:10px;height:3px;background:var(--ink);border-radius:2px;rotate:-40deg}
@keyframes cty-cat{0%{translate:-30px 0}45%{translate:230px 0;scale:1 1}50%{translate:230px 0;scale:-1 1}95%{translate:-30px 0;scale:-1 1}100%{translate:-30px 0;scale:1 1}}
/* hall: Riccardo alla reception */
.hx-city .f-lobby .room{--lit:#eaf8fd}
.hx-city .f-lobby .who{left:94px;height:88px;bottom:22px}
.hx-city .reception{left:74px;bottom:0;width:110px;height:34px;background:#fff;border:2px solid var(--ink);border-bottom:0;border-radius:4px 4px 0 0;display:grid;place-items:center;z-index:2;
  background-image:linear-gradient(var(--azure),var(--azure));background-size:100% 6px;background-repeat:no-repeat}
.hx-city .reception img{position:static;width:20px;height:20px}
.hx-city .bell{left:166px;bottom:34px;width:10px;height:7px;border-radius:6px 6px 1px 1px;background:var(--sun);border:2px solid var(--ink);z-index:2}
.hx-city .door{left:6px;bottom:0;width:52px;height:72px;border:2px solid var(--ink);border-bottom:0;background:rgba(25,180,236,.25);border-radius:26px 26px 0 0;overflow:hidden}
.hx-city .door i{left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--ink);animation:cty-door 4s linear infinite}
@keyframes cty-door{to{transform:rotateY(360deg)}}
.hx-city .f-lobby .plant.big{right:8px}

/* ---------- accesa: hover, focus o tap ---------- */
.hx-city .skyline{transition:opacity .5s var(--out)}
.hx-city:has(.hq:hover) .skyline,.hx-city:has(.hq:focus-within) .skyline,.hx-city.is-lit .skyline{opacity:.5}
.hx-city .hq:hover,.hx-city .hq:focus-within,.hx-city.is-lit .hq{translate:0 -14px;box-shadow:8px 0 0 var(--ink),0 0 0 6px rgba(255,212,38,.35)}
.hx-city .hq:hover .glass,.hx-city .hq:focus-within .glass,.hx-city.is-lit .hq .glass{opacity:.06}
.hx-city .hq:hover .room,.hx-city .hq:focus-within .room,.hx-city.is-lit .hq .room{background:var(--lit,#fff6d6)}
.hx-city .hq:hover .sign,.hx-city .hq:focus-within .sign,.hx-city.is-lit .hq .sign{background:var(--sun);box-shadow:4px 4px 0 var(--ink),0 0 0 8px rgba(255,212,38,.35)}
/* il piano sotto il puntatore si avvicina e mostra chi c'è */
.hx-city .floor:hover .room,.hx-city .floor:focus-visible .room{scale:1.06}
.hx-city .floor:hover .tag,.hx-city .floor:focus-visible .tag{opacity:1;scale:1}
.hx-city .floor:focus-visible .frame{border-color:var(--azure);box-shadow:0 0 0 3px var(--ink)}
.hx-city .floor:hover .who,.hx-city .floor:focus-visible .who{animation:cty-hi .7s var(--spring)}
@keyframes cty-hi{0%{scale:1}35%{scale:1.08 .94}100%{scale:1}}

/* ---------- ingresso: la sede spunta dal basso ---------- */
.hx-city .hq{animation:cty-rise 1.3s var(--spring) .35s both}
.hx-city .skyline .bld{animation:cty-rise 1.1s var(--spring) both}
.hx-city .skyline .bld:nth-child(odd){animation-delay:.08s}.hx-city .skyline .bld:nth-child(3n){animation-delay:.16s}
@keyframes cty-rise{from{transform:translateY(110%)}to{transform:none}}
.hx-city{clip-path:inset(-200px -60px 0 -400px)}

/* ---------- mobile: la città scende sotto il testo, a tutta larghezza ---------- */
@media (max-width:860px){
  .hx-city{position:relative;right:auto;bottom:auto;margin:22px auto 0;zoom:var(--z,.42);clip-path:none}
  .hx-city .tag{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hx-city *,.hx-city *::before,.hx-city *::after{animation:none!important;transition:none!important}
}

/* ==========================================================================
   VERSIONE 3D (world3d.js, Three.js) con interfaccia da videogioco.
   HUD in alto (indietro, dove sei, schermo intero), prompt "Enter the HQ", pulsantiera dell'ascensore
   (i nomi compaiono solo al passaggio), riquadro di dialogo dell'ufficio con i tasti rapidi.
   Schermo intero: .w-shell fisso sopra la pagina, si apre animando clip-path dal riquadro alla finestra.
   ========================================================================== */
.hx-world{--ink:#071b3a;--sun:#ffd426;--azure:#19b4ec;--blue:#1646c9;--green:#22b36b;--leaf:#dcf5e8;
  --spring:linear(0,.0201,.0733,.15,.2419,.3419,.4444,.5448,.6398,.7269,.8047,.8721,.9291,.9757,1.0126,1.0406,1.0606,1.0737,1.081,1.0835,1.0822,1.0781,1.0718,1.0643,1.056,1.0474,1.039,1.031,1.0236,1.017,1.0113,1.0064,1.0024,.9993,.9968,.9951,.9939,.9933,.993,.9931,.9934,.9939,.9946,.9952,.996,.9967,.9973,.998,1);
  position:absolute;left:0;top:0;width:760px;height:720px;z-index:5;opacity:0;transition:opacity .8s cubic-bezier(.16,1,.3,1);font-family:Manrope,system-ui,sans-serif;color:var(--ink)}
.hx-world *{box-sizing:border-box}
.hx-world b,.hx-world i,.hx-world span{position:static;display:inline;font-style:normal}
.hx-world canvas{display:block;width:760px;height:720px;touch-action:pan-y;border-radius:24px}
.hx-world.is-full canvas{border-radius:0;touch-action:none;cursor:grab}
.hx-world.is-drag canvas{cursor:grabbing}
.hx-city.is-3d .hx-world{opacity:1}
.hx-city.is-3d>.sky,.hx-city.is-3d>.skyline,.hx-city.is-3d>.hq{opacity:0;visibility:hidden;transition:opacity .6s,visibility 0s linear .6s}
.hx-city.is-3d{clip-path:none}

/* tasto della tastiera, stile gioco */
.hx-world .k{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 6px;border:1.5px solid currentColor;border-bottom-width:3px;border-radius:6px;font:800 10.5px/1 Manrope,system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;opacity:.85}

/* ---------- HUD ---------- */
.w-hud{position:absolute;left:16px;right:16px;top:16px;display:flex;align-items:center;gap:10px;pointer-events:none}
.w-hud>*{pointer-events:auto}
.w-hud button{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 12px;border:2px solid var(--ink);border-radius:14px;corner-shape:squircle;background:rgba(255,255,255,.92);color:var(--ink);
  font:800 13px/1 Manrope,system-ui,sans-serif;box-shadow:3px 3px 0 var(--ink);cursor:pointer;transition:translate .4s var(--spring),box-shadow .4s var(--spring),background-color .2s,opacity .3s}
.w-hud button:hover{background:var(--sun);translate:-1px -1px;box-shadow:4px 4px 0 var(--ink)}
.w-hud button:active{translate:2px 2px;box-shadow:0 0 0 var(--ink)}
.hx-world.is-city:not(.is-full) .w-back{opacity:0;pointer-events:none}
.w-crumb{margin:0;flex:1;min-width:0;height:42px;display:flex;align-items:center;gap:6px;padding:0 14px;border:2px solid var(--ink);border-radius:14px;corner-shape:squircle;background:var(--ink);color:#fff;
  font:700 12px/1 Manrope,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.0;transition:opacity .3s}
.w-crumb b{color:var(--sun);font-weight:800}.w-crumb i{opacity:.5}
.hx-world:not(.is-city) .w-crumb,.hx-world.is-full .w-crumb{opacity:1}
.w-full .ico{display:inline-block;width:16px;height:16px;border:2.5px solid currentColor;border-radius:3px;clip-path:polygon(0 0,40% 0,40% 22%,22% 22%,22% 40%,0 40%,0 60%,22% 60%,22% 78%,40% 78%,40% 100%,0 100%,0 0,100% 0,100% 40%,78% 40%,78% 22%,60% 22%,60% 0,100% 0,100% 100%,60% 100%,60% 78%,78% 78%,78% 60%,100% 60%,100% 100%,0 100%)}
.hx-world.is-full .w-full .ico{transform:scale(.75)}

/* ---------- prompt d'ingresso ---------- */
.w-enter{position:absolute;left:50%;bottom:26px;translate:-50% 0;display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 18px;border:2px solid var(--ink);border-radius:16px;corner-shape:squircle;
  background:var(--sun);color:var(--ink);font:800 14px/1 Manrope,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;box-shadow:4px 4px 0 var(--ink);cursor:pointer;
  animation:w-bob 1.6s ease-in-out infinite;transition:opacity .3s,visibility 0s}
.w-enter:hover{background:#fff}
@keyframes w-bob{50%{translate:-50% -4px}}
.hx-world:not(.is-city) .w-enter{opacity:0;visibility:hidden;animation:none}
.w-help{position:absolute;left:50%;bottom:86px;translate:-50% 0;margin:0;padding:6px 12px;border-radius:999px;background:rgba(7,27,58,.78);color:#fff;font:700 11px/1 Manrope,sans-serif;letter-spacing:.06em;text-transform:uppercase;opacity:0;transition:opacity .4s;pointer-events:none}
.hx-world.is-full .w-help{opacity:1}
.hx-world.is-full:not(.is-city) .w-help{bottom:22px}
.hx-world.is-full.is-office .w-help{opacity:0}

/* ---------- pulsantiera dell'ascensore (nomi solo al passaggio) ---------- */
.w-lift{position:absolute;right:16px;top:50%;translate:16px -50%;display:flex;flex-direction:column;align-items:flex-end;gap:8px;padding:12px 10px;border:2px solid var(--ink);border-radius:20px;corner-shape:squircle;
  background:rgba(255,255,255,.92);box-shadow:4px 4px 0 var(--ink);opacity:0;visibility:hidden;transition:opacity .3s,translate .5s var(--spring),visibility 0s linear .3s}
.hx-world:not(.is-city) .w-lift{opacity:1;visibility:visible;translate:0 -50%;transition-delay:.45s,.45s,0s}
.hx-world.is-office:not(.is-full) .w-lift{opacity:0;visibility:hidden}
.w-lift-t{font:800 9.5px/1 Manrope,sans-serif;letter-spacing:.14em;text-transform:uppercase;opacity:.6;align-self:center}
.w-label{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;font:inherit}
.w-label i{display:grid;place-items:center;width:38px;height:38px;border:2px solid var(--ink);border-radius:50%;background:#fff;font:600 17px/1 Antonio,"Arial Narrow",sans-serif;box-shadow:inset 0 -3px 0 rgba(7,27,58,.18);transition:background-color .2s,scale .4s var(--spring)}
.w-label b{position:absolute;right:calc(100% + 18px);top:50%;translate:8px -50%;padding:7px 12px;border:2px solid var(--ink);border-radius:12px;background:var(--ink);color:#fff;white-space:nowrap;
  font:600 15px/1 Antonio,"Arial Narrow",sans-serif;letter-spacing:.02em;text-transform:uppercase;opacity:0;pointer-events:none;transition:opacity .2s,translate .35s var(--spring)}
.w-label:hover i,.w-label:focus-visible i,.w-label.is-hot i{background:var(--sun);scale:1.1}
.w-label:hover b,.w-label:focus-visible b,.w-label.is-hot b{opacity:1;translate:0 -50%}
.w-label.is-cur i{background:var(--azure);color:var(--ink)}
.w-label:focus-visible{outline:none}.w-label:focus-visible i{outline:3px solid var(--azure);outline-offset:2px}

/* ---------- riquadro di dialogo dell'ufficio ---------- */
.w-card{--acc:#19b4ec;position:absolute;right:16px;bottom:16px;width:min(330px,calc(100% - 32px));padding:0 18px 16px;border:2px solid var(--ink);border-radius:20px;corner-shape:squircle;background:#fff;
  box-shadow:5px 5px 0 var(--ink);opacity:0;visibility:hidden;translate:0 24px;transition:opacity .3s,translate .6s var(--spring),visibility 0s linear .3s}
.hx-world.is-office .w-card{opacity:1;visibility:visible;translate:0 0;transition-delay:.6s,.6s,0s}
.w-tab{display:flex;align-items:center;gap:10px;margin:0 -18px 0;padding:12px 18px;border-bottom:2px solid var(--ink);border-radius:18px 18px 0 0;background:var(--acc)}
.w-card .w-floor{display:grid;place-items:center;min-width:34px;height:34px;padding:0 6px;border:2px solid var(--ink);border-radius:10px;background:#fff;font:600 16px/1 Antonio,"Arial Narrow",sans-serif;text-transform:uppercase}
.w-card h3{margin:0;font:600 26px/1 Antonio,"Arial Narrow",sans-serif;text-transform:uppercase;letter-spacing:-.01em;color:var(--ink)}
.w-card .w-role{margin:12px 0 0;font:800 11.5px/1.3 Manrope,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.w-card .w-text{margin:6px 0 0;font:500 14px/1.5 Manrope,sans-serif;color:#2b3f5f;text-wrap:pretty}
.w-card .w-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.w-card .w-acts a{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:2px solid var(--ink);border-radius:12px;corner-shape:squircle;color:var(--ink);text-decoration:none;
  font:800 12.5px/1 Manrope,sans-serif;text-transform:uppercase;letter-spacing:.05em;box-shadow:3px 3px 0 var(--ink);transition:translate .4s var(--spring),box-shadow .4s var(--spring),background-color .2s}
.w-card .w-a{background:var(--sun)}.w-card .w-b{background:#fff}
.w-card .w-acts a:hover{background:var(--azure);translate:-1px -1px;box-shadow:4px 4px 0 var(--ink)}
.w-card .w-acts a:active{translate:2px 2px;box-shadow:0 0 0 var(--ink)}
.w-card .w-acts a[hidden]{display:none}
.w-card .w-hint{display:flex;align-items:center;gap:8px;margin:12px 0 0;font:700 11px/1.3 Manrope,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#4a5d7c}
.w-card .pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);animation:w-pulse 1.2s ease-in-out infinite}
@keyframes w-pulse{50%{scale:1.6;opacity:.4}}

/* ---------- schermo intero ---------- */
html.w-locked,html.w-locked body{overflow:hidden}
.w-shell{position:fixed;inset:0;z-index:2500;background:linear-gradient(180deg,#d3effb 0%,#eaf8fd 55%,#f4fbff 100%);transition:clip-path .6s cubic-bezier(.65,0,.35,1)}
.w-shell .hx-world{position:absolute;inset:0;width:100%;height:100%;opacity:1}
.w-shell .hx-world canvas{width:100%;height:100%}
.w-shell .w-hud{left:24px;right:24px;top:22px}
.w-shell .w-card{right:28px;bottom:28px;width:380px}
.w-shell .w-lift{right:28px}
/* in schermo intero i testi si vedono solo quando ci vai sopra */
.hx-world.is-full .w-crumb{opacity:.0}
.hx-world.is-full .w-hud:hover .w-crumb,.hx-world.is-full .w-hud:focus-within .w-crumb{opacity:1}
.hx-world.is-full .w-lift-t{opacity:0}

/* ---------- telefono: nel riquadro solo città + Enter; tutto il resto vive a schermo intero, compatto ---------- */
@media (max-width:860px){
  .hx-world .k{display:none}
  .hx-world:not(.is-full) .w-hud,.hx-world:not(.is-full) .w-lift,.hx-world:not(.is-full) .w-card,.hx-world:not(.is-full) .w-help{display:none}
  .hx-world:not(.is-full) .w-enter{height:76px;padding:0 26px;font-size:24px;border-radius:22px;bottom:34px;box-shadow:6px 6px 0 var(--ink)}
  .w-shell .w-hud{left:12px;right:12px;top:max(12px,env(safe-area-inset-top))}
  .w-shell .w-hud button{height:40px;padding:0 11px;border-radius:12px}
  .w-shell .w-crumb{height:40px;font-size:10px;padding:0 10px;opacity:1}
  .w-shell .w-lift{right:10px;padding:8px 6px;gap:6px;top:42%}
  .w-shell .w-label i{width:34px;height:34px;font-size:15px}
  .w-shell .w-label b{display:none}
  .w-shell .w-lift-t{display:none}
  .w-shell .w-card{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;padding:0 14px 12px;border-radius:18px}
  .w-shell .w-tab{margin:0 -14px;padding:9px 14px}
  .w-shell .w-card h3{font-size:22px}
  .w-shell .w-card .w-role{margin-top:8px;font-size:10.5px}
  .w-shell .w-card .w-text{font-size:13px;margin-top:4px}
  .w-shell .w-card .w-acts{margin-top:10px;gap:8px}
  .w-shell .w-card .w-acts a{flex:1;justify-content:center;min-height:44px;font-size:12px}
  .w-shell .w-card .w-hint{display:none}
  .w-shell .hx-world .w-help{bottom:auto!important;top:64px;font-size:10px;white-space:nowrap}
  .w-shell .hx-world.is-office .w-help{opacity:0}
  .w-shell.is-open .hx-world.is-office .w-lift{opacity:1;visibility:visible;top:30%}
}
@media (prefers-reduced-motion:reduce){.w-enter,.w-card .pulse{animation:none}.w-shell{transition:none}}

/* la città 3D sfuma nello sfondo dell'hero (niente riquadro), il sole CSS lascia il posto a quello 3D */
.hero.hx.has-3d .hx-eclipse,.hero.hx.has-3d .hx-spot{display:none!important}
.hx-world:not(.is-full) canvas{border-radius:0;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0,#000 16%,#000 90%,transparent 100%);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0,#000 16%,#000 90%,transparent 100%);mask-composite:intersect}

/* pulsante audio: altoparlante con due onde (barrate quando è spento) */
.w-snd .snd-ico{position:relative;display:inline-block;width:18px;height:16px}
.w-snd .snd-ico::before{content:"";position:absolute;left:0;top:3px;width:10px;height:10px;background:currentColor;clip-path:polygon(0 30%,35% 30%,100% 0,100% 100%,35% 70%,0 70%)}
.w-snd .snd-ico i{position:absolute;top:50%;border:2px solid currentColor;border-color:transparent currentColor transparent transparent;border-radius:50%;translate:0 -50%}
.w-snd .snd-ico i:nth-child(1){left:6px;width:8px;height:8px}
.w-snd .snd-ico i:nth-child(2){left:6px;width:14px;height:14px;opacity:.7}
.w-snd.is-off .snd-ico i{display:none}
.w-snd.is-off .snd-ico::after{content:"";position:absolute;left:11px;top:2px;width:2px;height:13px;background:currentColor;rotate:45deg}
.w-hud .w-snd{margin-left:auto}
.hx-world.is-city:not(.is-full) .w-crumb{flex:1}

/* ---------- avvio del 3D: fin dal primo istante si vede la città ----------
   html.w3d la mette uno script nel <head> prima di disegnare (WebGL presente, niente "riduci animazioni").
   Al posto della città 2D c'è un fermo immagine della città 3D (city-poster.webp, stessa inquadratura e stessa maschera
   del canvas); quando il 3D è pronto il canvas compare sopra e il fermo immagine sfuma: dissolvenza incrociata.
   Il sole grande dell'hero non si mostra mai (con il 3D il sole è nella scena).
   Se il 3D fallisce o non arriva entro 20 s, world3d.js toglie w3d e torna la città 2D come ripiego. */
html.w3d .hero.hx .hx-eclipse,html.w3d .hero.hx .hx-spot{display:none!important}
html.w3d .hx-city>.sky,html.w3d .hx-city>.skyline,html.w3d .hx-city>.hq{visibility:hidden;opacity:0;animation:none!important}
html.w3d .hx-city::before{content:"";position:absolute;left:0;top:0;width:760px;height:720px;z-index:4;pointer-events:none;
  background:url(/assets/city-poster.webp) center/100% 100% no-repeat;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0,#000 16%,#000 90%,transparent 100%);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0,#000 16%,#000 90%,transparent 100%);mask-composite:intersect;
  transition:opacity .9s cubic-bezier(.16,1,.3,1) .15s}
/* pillola di caricamento al posto del pulsante Enter, con barra di avanzamento */
html.w3d .hx-city::after{content:"Building the city";position:absolute;left:50%;bottom:26px;translate:-50% 0;z-index:6;height:50px;display:grid;place-items:center;padding:0 22px;
  border:2px solid #071b3a;border-radius:16px;background:#fff linear-gradient(90deg,#19b4ec,#19b4ec) no-repeat;background-size:calc(var(--load,0)*100%) 100%;box-shadow:4px 4px 0 #071b3a;
  font:800 14px/1 Manrope,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#071b3a;white-space:nowrap;transition:background-size .3s,opacity .35s}
html.w3d .hx-city::before,html.w3d .hx-city::after{pointer-events:none}   /* il fermo immagine e la pillola non devono mai intercettare i clic */
html.w3d .hx-city.is-3d::before,html.w3d .hx-city.is-3d::after{opacity:0}
@media (max-width:860px){html.w3d .hx-city::after{height:76px;padding:0 28px;font-size:24px;border-radius:22px;bottom:34px}}

/* niente barra del percorso quando si è sulla città (né a riposo né all'hover del HUD) */
.hx-world.is-city .w-crumb{display:none!important}
