/* Effetto Vetrina · secondo passaggio «wow» (25/11): serranda, confronto, nastro, parole che si accendono,
   vetrine e telefoni in 3D, scritta gigante. Si carica dopo site.css. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrumentserif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

/* ---------- serranda d'ingresso ---------- */
.serranda { display: none; }
.js.hero-3d .serranda {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: #fff;
  background: var(--cobalto) repeating-linear-gradient(180deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 44px, rgba(0, 0, 0, .2) 44px 48px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  transition: transform 1.2s cubic-bezier(.76, 0, .24, 1); will-change: transform;
}
.js.hero-3d .serranda::after { content: ""; position: absolute; left: 50%; bottom: 26px; width: 120px; height: 10px; margin-left: -60px; border-radius: 6px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.js.aperto .serranda { transform: translateY(-104%); }
.serranda__in { display: grid; justify-items: center; gap: 14px; }
.serranda__in img { width: 96px; height: 96px; animation: serranda-batte 1.4s var(--ease-inout) infinite; }
.serranda__n { margin: 0; font: 900 clamp(54px, 10vw, 120px)/1 var(--f-display); letter-spacing: -.04em; }
.serranda__n i { font-style: normal; font-size: .4em; color: var(--accent); margin-left: .1em; }
.serranda__t { margin: 0; font: 500 13px var(--f-label); letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
@keyframes serranda-batte { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ---------- arrivo: il titolo prende luce ---------- */
.settle__title { text-shadow: 0 0 calc(46px * var(--k, 1)) rgba(130, 150, 255, .95), 0 0 calc(120px * var(--k, 1)) rgba(36, 51, 255, .9); }

/* ---------- confronto spenta / accesa ---------- */
.confronto { padding-bottom: calc(var(--sec-pad) * .6); }
.confronto__testa .h2 { max-width: none; }
.cmp {
  --x: 50%;
  position: relative; container-type: inline-size; aspect-ratio: 16 / 8.6; overflow: hidden; user-select: none; -webkit-user-select: none;
  margin-top: clamp(28px, 4vw, 48px); border-radius: clamp(18px, 3vw, 36px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 50px 120px -30px rgba(36, 51, 255, .9);
}
.cmp__lato { position: absolute; inset: 0; margin: 0; }
.cmp__accesa { background: linear-gradient(270deg, rgba(18, 8, 4, .9) 8%, rgba(18, 8, 4, .5) 48%, rgba(18, 8, 4, .1)), #241208 url("img/via-ferma-9x16.jpg") center 74% / cover; color: #FFF3E2; }
.ac { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; padding: 4.2cqw 4.4cqw 4.2cqw 6cqw; display: flex; flex-direction: column; justify-content: center; gap: 2cqw; font-family: var(--f-body); }
.ac p, .ac ul { margin: 0; }
.ac__nav { position: absolute; top: 3cqw; right: 4.4cqw; left: 6cqw; display: flex; align-items: center; justify-content: flex-end; gap: 2.4cqw; font: 600 max(9px, 1.25cqw) var(--f-body); }
.ac__nav b { margin-right: auto; font: italic 400 max(15px, 2.7cqw) "Instrument Serif", Georgia, serif; }
.ac__nav i, .ac__cta i { font-style: normal; background: #FFB453; color: #2a1606; padding: .7em 1.2em; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.ac__chip { align-self: flex-start; font: 600 max(9px, 1.15cqw) var(--f-body); padding: .5em 1em; border-radius: 99px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ac__chip::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .6em; border-radius: 50%; background: #7CFF8A; box-shadow: 0 0 10px #7CFF8A; }
.ac__titolo { font: italic 400 max(22px, 4.6cqw)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; text-wrap: balance; }
.ac__cta { display: flex; align-items: center; gap: 1.6cqw; font: 600 max(10px, 1.3cqw) var(--f-body); flex-wrap: wrap; }
.ac__cta span { text-decoration: underline; text-underline-offset: 4px; }
.ac__menu { list-style: none; padding: 0; display: grid; gap: .6cqw; font: 400 max(10px, 1.3cqw) var(--f-body); }
.ac__menu li { display: flex; justify-content: space-between; gap: 2cqw; padding: .7em 0; border-top: 1px solid rgba(255, 243, 226, .25); }
.ac__menu b { font-weight: 600; color: #FFB453; }
.cmp__spenta { clip-path: inset(0 calc(100% - var(--x)) 0 0); background: #d9d9d4; color: #111; font: max(11px, 1.7cqw)/1.35 "Times New Roman", Times, serif; padding: 3cqw 4cqw; }
.cmp__spenta p { margin: 0 0 1.4cqw; max-width: 44cqw; }
.sp__bar { background: #ffe600; font: bold max(9px, 1.25cqw) "Courier New", monospace; padding: .5em .8em; display: inline-block; }
.sp__h { font-size: max(18px, 3.6cqw); font-weight: bold; color: #7a0000; }
.sp__links u { color: #0000cc; }
.sp__foto { width: 22cqw; height: 13cqw; margin-bottom: 1.4cqw; display: grid; place-items: center; background: #b5b5b0; border: 2px inset #888; color: #555; font-size: max(9px, 1.2cqw); }
.sp__small { color: #555; font-size: max(9px, 1.25cqw); }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp__linea { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: var(--accent); box-shadow: 0 0 30px var(--accent); pointer-events: none; }
.cmp__mano { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--inchiostro); font: 900 20px/1 var(--f-body); letter-spacing: .1em; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transition: transform .3s var(--ease-out); }
.cmp:hover .cmp__mano { transform: scale(1.12); }
.cmp__range:focus-visible ~ .cmp__linea .cmp__mano { outline: 3px solid #fff; outline-offset: 3px; }
.cmp__tag { position: absolute; bottom: 16px; padding: 7px 12px; border-radius: 8px; font: 500 12px var(--f-label); letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.cmp__tag--sx { left: 16px; background: #111; color: #fff; }
.cmp__tag--dx { right: 16px; background: var(--accent); color: var(--inchiostro); }
.cmp__nota { margin: 16px 0 0; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 720px) {
  .cmp { aspect-ratio: 4 / 5; }
  .ac { width: 50%; gap: 4cqw; padding: 0 4cqw 0 8cqw; }
  .ac__nav { left: 8cqw; }
  .ac__nav span, .ac__nav i, .ac__menu, .ac__cta span { display: none; }
  .ac__titolo { font-size: 7.6cqw; }
  .cmp__spenta p { max-width: 42cqw; }
  .sp__foto { width: 34cqw; height: 22cqw; }
}

/* ---------- le parole che si accendono con lo scroll ---------- */
.js .lw { opacity: .2; transition: opacity .5s var(--ease-out), text-shadow .5s var(--ease-out); }
.js .lw.on { opacity: 1; text-shadow: 0 0 34px rgba(120, 140, 255, .55); }

/* ---------- nastro dei settori ---------- */
.nastro { overflow: hidden; padding: clamp(20px, 4vw, 50px) 0 clamp(50px, 8vw, 110px); }
.nastro__riga { display: flex; width: max-content; font: 900 clamp(46px, 9vw, 132px)/1.08 var(--f-display); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 244, 255, .5); animation: nastro 46s linear infinite; animation-play-state: paused; }
.nastro__riga--b { animation-direction: reverse; animation-duration: 58s; color: var(--cobalto); -webkit-text-stroke: 0; }
.nastro.on .nastro__riga { animation-play-state: running; }
@keyframes nastro { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- vetrine che seguono il mouse ---------- */
.vt__vetro { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: background-color 1s var(--ease-out), box-shadow 1s var(--ease-out), transform .35s var(--ease-out); }
.vt__vetro::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 45%); opacity: 0; transition: opacity .4s var(--ease-out); }
.vt:hover .vt__vetro::after { opacity: 1; }

/* ---------- telefoni in 3D ---------- */
.tel { transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .35s var(--ease-out); will-change: transform; }
.lavoro:nth-child(1) .tel { --ty: 10deg; }
.lavoro:nth-child(3) .tel { --ty: -10deg; }
.lavoro:hover .tel { --ty: 0deg; }
@media (max-width: 900px) { .lavoro .tel { --ty: 0deg; } }

/* ---------- scritta gigante in fondo ---------- */
.piede { overflow: hidden; }
.piede__giga { margin: 0 0 clamp(40px, 6vw, 80px); text-align: center; white-space: nowrap; font: 900 8.3vw/1 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 244, 255, .28); transition: color 1.2s var(--ease-out), text-shadow 1.2s var(--ease-out); }
.piede__giga b { -webkit-text-stroke: 0; color: rgba(204, 255, 51, .25); transition: color 1.2s var(--ease-out); }
.piede__giga.on { color: #fff; -webkit-text-stroke: 0 transparent; text-shadow: 0 0 60px rgba(36, 51, 255, .9), 0 0 140px rgba(36, 51, 255, .7); animation: neon-parte 1.2s steps(1, end) both; }
.piede__giga.on b { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .js .lw { opacity: 1; }
  .nastro__riga { animation: none !important; }
  .tel, .vt__vetro { transform: none; }
  .piede__giga { color: #fff; -webkit-text-stroke: 0 transparent; }
  .piede__giga b { color: var(--accent); }
}

/* ---------- scritte dell'apertura = insegne al neon nella via (scelta dell'utente il 25/11 tra tre varianti;
   bocciati il titolo bianco con la macchia scura e il corsivo serif). La 1 è accesa in blu, la 2 è SPENTA (solo i
   tubi, l'ultima parola prova ad accendersi), la 3 si accende in lime lettera per lettera. ---------- */
.band:not(.settle) { color: #fff; text-shadow: 0 0 6px #fff, 0 0 22px #6f80ff, 0 0 60px #2433ff, 0 0 120px #2433ff; }
.band:not(.settle)::before, .band--3:not(.settle)::before { inset: -70% -30%; background: radial-gradient(ellipse 60% 52% at 50% 50%, rgba(5, 5, 14, .62) 0%, rgba(5, 5, 14, .4) 45%, rgba(5, 5, 14, 0) 78%); }
.band--2:not(.settle) { color: rgba(10, 12, 40, .6); -webkit-text-stroke: 1.8px rgba(235, 238, 255, .88); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.band--2 .w:last-child { animation: tubo-guasto 5.2s steps(1, end) infinite; animation-delay: -1.3s; }
@keyframes tubo-guasto {
  0%, 61%, 65%, 69%, 100% { color: rgba(10, 12, 40, .6); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
  62%, 67% { color: rgba(255, 255, 255, .85); text-shadow: 0 0 18px #6f80ff, 0 0 50px #2433ff; }
}
.band--3 .c.on { text-shadow: 0 0 6px #fff, 0 0 22px #d8ff66, 0 0 60px #b6f000, 0 0 120px rgba(204, 255, 51, .6); }
@media (max-width: 720px) {
  .band:not(.settle) { font-size: clamp(30px, 8.4vw, 40px); width: 94vw; }
  .band:not(.settle)::before, .band--3:not(.settle)::before { inset: -60% -10%; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(5, 5, 14, .78) 0%, rgba(5, 5, 14, .56) 48%, rgba(5, 5, 14, 0) 84%); }
  .band--2:not(.settle) { -webkit-text-stroke-width: 1.4px; }
}

/* ---------- il menù lo cambi tu: due telefoni, il pannello a sinistra cambia il prezzo e il menù a destra si aggiorna ---------- */
.menuqr__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.mpassi { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.mpassi button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: rgba(242, 244, 255, .05); color: var(--text-secondary); font: 600 17px/1.35 var(--f-body); box-shadow: inset 0 0 0 1.5px rgba(169, 176, 218, .22);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.mpassi b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(242, 244, 255, .1); color: var(--text-primary); font: 900 14px var(--f-display); transition: background-color .5s var(--ease-out), color .5s var(--ease-out); }
.mpassi li.on button { background: var(--cobalto); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 0 50px -10px rgba(36, 51, 255, .9); transform: translateX(8px); }
.mpassi li.on b { background: var(--accent); color: var(--inchiostro); }
.menuqr__nota { margin: 0; font-size: 13px; color: var(--text-secondary); max-width: 46ch; }
.menuqr__tel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.4vw, 32px); align-items: start; }
.mtel { margin: 0; }
.mtel--b { margin-top: clamp(20px, 5vw, 70px); }
.mtel .tel { margin-bottom: 14px; width: 100%; max-width: 290px; }
.mtel figcaption { text-align: center; font: 500 12px var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); }
.mtel .tel__schermo img { opacity: 0; transition: opacity .55s var(--ease-out); }
.mtel .tel__schermo img.on { opacity: 1; }
.mtel__riga { position: absolute; left: 4%; right: 4%; top: 43.1%; height: 10.6%; border-radius: 10px; box-shadow: 0 0 0 3px var(--accent), 0 0 30px var(--accent); opacity: 0; }
.mtel__riga.on { animation: riga-nuova 2.6s var(--ease-out) both; }
@keyframes riga-nuova { 0% { opacity: 0; transform: scale(1.08); } 15% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) { .menuqr__grid { grid-template-columns: 1fr; } .mpassi li.on button { transform: none; } .mpassi button { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .mtel__riga.on { opacity: 1; } }
@media (max-width: 900px) {   /* telefono: titolo, poi i due telefoni, poi i passi (così passi e schermi stanno vicini) */
  .menuqr__grid { gap: 0; }
  .menuqr__txt { display: contents; }
  .menuqr__txt > .kicker { order: 1; } .menuqr__txt > .h2 { order: 2; }
  .menuqr__tel { order: 3; margin: 6px 0 26px; }
  .mpassi { order: 4; gap: 8px; } .menuqr__nota { order: 5; }
  .mpassi button { padding: 11px 14px; gap: 12px; font-size: 15px; border-radius: 14px; }
  .mpassi b { width: 30px; height: 30px; font-size: 12px; }
}
/* la terza insegna ora cade in fondo al vicolo, sopra il lampione acceso: velo più deciso solo lì */
@media (min-width: 721px) { .band--3:not(.settle)::before { background: radial-gradient(ellipse 62% 54% at 50% 50%, rgba(5, 5, 14, .84) 0%, rgba(5, 5, 14, .64) 48%, rgba(5, 5, 14, 0) 80%); } }
