/* Xover, il sito. Solo scuro, come l'app: foto a tutto schermo, vetro,
   arancio per le azioni. Font dell'app (Plus Jakarta Sans) servito da noi.
   Layout: su schermo largo testo a sinistra e telefono a destra; su
   telefono una colonna, la foto in alto libera dal testo. */
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --orange: #FF8738;
  --hot: #FF5A36;
  --bg: #0F0E0E;
  --surface: #1A1817;
  --raised: #242120;
  --line: rgba(255, 240, 230, .09);
  --text: #F6F2EF;
  --muted: #ABA49F;
  --on-orange: #1D0F05;
  --glass: rgba(28, 25, 24, .62);
  --font: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--hot));
        -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-weight: 800; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 14px; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.sub { margin: 14px 0 0; color: var(--muted); font-size: 18px; max-width: 36em; }
.sub a { color: var(--text); text-decoration-color: rgba(255,135,56,.6); text-underline-offset: 3px; }

/* Barra in alto: trasparente sulla foto, vetro quando si scorre. */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
       transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s; border-bottom: 1px solid transparent; }
.bar.solid { background: rgba(15, 14, 14, .72); -webkit-backdrop-filter: blur(18px) saturate(1.3);
             backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
         font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: rgba(246, 242, 239, .78); text-decoration: none; font-size: 15px; font-weight: 600; transition: color .2s; }
.links a:hover { color: var(--text); }
.bar-cta { color: var(--on-orange); background: var(--orange); text-decoration: none; font-weight: 800; font-size: 15px;
           padding: 9px 18px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s; }
.bar-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 135, 56, .35); }

/* In alto. */
.hero { position: relative; overflow: hidden; padding: 132px 0 96px; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo-img { position: absolute; inset: -40px 0; background: url("img/ballare_2.webp") center 35% / cover no-repeat;
                  transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,14,14,.94) 0%, rgba(15,14,14,.78) 42%, rgba(15,14,14,.35) 100%),
              linear-gradient(180deg, rgba(15,14,14,.2) 0%, rgba(15,14,14,0) 50%, var(--bg) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.hero-text h1 { max-width: 12.5em; }
.lead { margin: 22px 0 32px; font-size: clamp(17px, 1.7vw, 20px); color: rgba(246, 242, 239, .84); max-width: 32em; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.hero-phone { position: relative; justify-self: center; width: min(330px, 80vw); }

/* Il telefono: le schermate (già nella cornice) una sull'altra. */
.phone { position: relative; aspect-ratio: 640 / 1370; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
          transform: scale(.985); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.screen.on { opacity: 1; transform: none; }
.hero-phone .phone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Notifiche finte accanto al telefono, in vetro. */
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px;
        background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
        border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; line-height: 1.3; white-space: nowrap;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.chip b { font-weight: 800; }
.chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.chip-a { left: -64px; top: 24%; animation: chipIn .8s var(--ease) 1.1s both, bob 6s ease-in-out 2s infinite; }
.chip-b { right: -52px; bottom: 22%; padding-left: 14px; animation: chipIn .8s var(--ease) 1.6s both, bob 6s ease-in-out 3s infinite; }
.spark { width: 26px; height: 26px; border-radius: 50%; flex: none;
         background: radial-gradient(circle at 35% 35%, #FFB27A, var(--orange) 45%, var(--hot)); box-shadow: 0 0 18px rgba(255, 135, 56, .7); }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Entrata del testo all'apertura. */
.load { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Tasti degli store: senza i loghi ufficiali finché l'app non è pubblicata. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 11px 20px 11px 16px; border-radius: 16px;
         text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
         -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; font: inherit;
         transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.store:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.store.main { background: linear-gradient(100deg, var(--orange), var(--hot)); color: var(--on-orange); border-color: transparent; }
.store.main:hover { box-shadow: 0 14px 34px rgba(255, 110, 50, .38); }
.store svg { width: 26px; height: 26px; flex: none; }
.store .t { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store small { white-space: nowrap; font-size: 12px; font-weight: 600; opacity: .8; }
.store strong { white-space: nowrap; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.store .soon { margin-left: auto; padding-left: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* Sezioni. */
.block { padding: clamp(72px, 10vw, 128px) 0 0; }
.head { max-width: 720px; }

/* L'app: passi a sinistra, telefono a destra. */
.tour .head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px; max-width: none; }
.tour .head .eyebrow { grid-column: 1 / -1; margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { font: 600 14px var(--font); color: var(--muted); background: none; border: 0; padding: 8px 18px; border-radius: 999px;
              cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 48px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps button { position: relative; display: grid; gap: 4px; width: 100%; text-align: left; padding: 20px 22px 22px; border-radius: 22px;
                background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; cursor: pointer; overflow: hidden;
                transition: background .35s var(--ease), border-color .35s, color .35s; }
.steps b { font-size: 19px; font-weight: 800; color: var(--text); opacity: .6; transition: opacity .35s; }
.steps span { font-size: 15.5px; }
.steps button:hover b { opacity: .9; }
.steps button[aria-current="true"] { background: var(--surface); border-color: var(--line); color: var(--muted); }
.steps button[aria-current="true"] b { opacity: 1; }
.bar-fill { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--line); opacity: 0; transition: opacity .3s; }
.bar-fill::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: inherit;
                   background: linear-gradient(90deg, var(--orange), var(--hot)); }
.steps button[aria-current="true"] .bar-fill { opacity: 1; }
.steps.run button[aria-current="true"] .bar-fill::after { animation: fill var(--step-ms, 4500ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.tour-phone { position: relative; justify-self: center; width: min(340px, 78vw); }
.glow { position: absolute; inset: 12% -30%; z-index: -1; filter: blur(60px); opacity: .55;
        background: radial-gradient(closest-side, rgba(255, 120, 50, .55), rgba(255, 90, 54, .15) 60%, transparent); }

/* Attività: telefono a sinistra, testo e punti a destra. */
.feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature-phone { position: relative; justify-self: center; width: min(340px, 78vw); }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.points i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
            background: rgba(255, 135, 56, .13); color: var(--orange); border: 1px solid rgba(255, 135, 56, .22); }
.points svg { width: 22px; height: 22px; }
.points b { display: block; font-weight: 800; font-size: 18px; margin-top: 1px; }
.points span { color: var(--muted); font-size: 16px; }

/* Le uscite: foto in fila, scorrono di lato. */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; margin-top: 40px;
           --gpad: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter)));
           padding-inline: var(--gpad); scroll-padding-inline: var(--gpad); overflow-x: auto;
           scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.tile { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; scroll-snap-align: start; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 9, .82)); }
.tile figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 1; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }

/* Come funziona: una sequenza vera, per questo i numeri. */
.how { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { position: relative; padding: 28px 26px 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.how .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 22px;
          font-weight: 800; font-size: 18px; color: var(--on-orange); background: linear-gradient(135deg, var(--orange), var(--hot)); }
.how p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* Sicurezza. */
.safe-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.safe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.safe li { display: grid; gap: 4px; padding: 20px 0 20px 26px; border-top: 1px solid var(--line); position: relative; }
.safe li::before { content: ""; position: absolute; left: 0; top: 29px; width: 10px; height: 10px; border-radius: 50%;
                   background: var(--orange); box-shadow: 0 0 12px rgba(255, 135, 56, .6); }
.safe b { font-weight: 800; font-size: 17px; }
.safe span { color: var(--muted); font-size: 15.5px; }

/* In fondo: di nuovo la foto, e gli store. */
.final { position: relative; margin-top: clamp(80px, 11vw, 140px); padding: clamp(80px, 10vw, 120px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.final-photo { position: absolute; inset: 0; z-index: -1; background: url("img/concerto_1.webp") center / cover no-repeat; }
.final-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15,14,14,.7) 35%, rgba(15,14,14,.7) 65%, var(--bg) 100%); }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-logo { border-radius: 20px; margin-bottom: 26px; box-shadow: 0 0 60px rgba(255, 135, 56, .35); }
.final .sub { margin: 14px auto 32px; }
.final .stores { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 22em; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 15px; font-weight: 800; }
.foot-in a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; transition: color .2s; }
.foot-in a:not(.brand):hover { color: var(--orange); }
.foot-small { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: calc(100% - 32px);
         transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 16px;
         background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .14);
         font-size: 15px; font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Apparizione allo scorrere: solo con lo script attivo, e mai a vuoto
   (app.js mostra comunque tutto dopo un attimo). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Schermi medi. */
@media (max-width: 980px) {
  .chip-a { left: -30px; } .chip-b { right: -24px; }
  .safe-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Telefono: una colonna. La foto in alto resta libera, il testo sotto. */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .links { display: none; }
  .bar-cta { margin-left: auto; }
  .bar-in { height: 60px; }
  .hero { padding: 0 0 56px; }
  .hero-photo { position: relative; inset: auto; height: min(62vw, 330px); min-height: 220px; }
  .hero-photo-img { inset: 0; transform: none; background-position: center 30%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(15,14,14,.45) 0%, rgba(15,14,14,0) 30%, rgba(15,14,14,0) 62%, var(--bg) 100%); }
  .hero-in { grid-template-columns: 1fr; gap: 0; margin-top: -8px; }
  .hero-phone { display: none; }
  .lead { margin: 16px 0 26px; }
  .store { flex: 1 1 100%; }
  .tour .head { grid-template-columns: 1fr; }
  .seg { justify-self: start; margin-top: 12px; }
  .tour-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .tour-phone { order: -1; width: min(290px, 74vw); }
  .steps { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
           margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 10px; }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { scroll-snap-align: center; }
  .steps { scroll-padding-inline: var(--gutter); }
  .steps button { height: 100%; background: var(--surface); border-color: var(--line); }
  .gallery { grid-auto-columns: 70%; }
  .how { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-phone { width: min(290px, 74vw); }
  .safe { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo-img { transform: none; }
}
