/* ═══════════════════════════════════════════════════════════════
   FANTAFALÒ — launch.css
   Layer di LANCIO, caricato DOPO style.css (vince a parità di specificità).
   MOBILE: colonna unica. Ordine titolo, store, telefono, azioni: le card
   store stanno PRIMA dell'iframe e il telefono resta nella prima schermata.
   DESKTOP: due colonne reali, testo a sinistra e telefono giocabile a destra,
   con piu' respiro e il telefono spinto verso destra.
   Non tocca style.css/main.js: le altre sezioni restano identiche.
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO base (mobile-first): colonna unica, niente clipping del telefono ── */
.teaser-hero--launch {
  align-items: flex-start;   /* il telaio è alto: top-align, così non si taglia */
  text-align: center;
  padding-top: 96px;         /* avvicina il telefono alla prima piega su mobile */
  padding-bottom: 64px;
}

.teaser-hero--launch .hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;                 /* più respiro tra i blocchi */
  max-width: 560px;
  margin: 0 auto;
}

/* Su mobile la colonna testo si "dissolve": i suoi figli entrano nel flex della
   hero e l'ordine lo decide `order`, così lo store resta PRIMA del telefono e le
   azioni dopo. Su desktop (sotto) la colonna testo torna un vero contenitore. */
.hero-textcol { display: contents; }
.hero-copy    { order: 1; }
.hero-store   { order: 2; }
.hero-phone   { order: 3; }
.hero-actions { order: 4; }

/* ── COPY ───────────────────────────────────────────────────── */
.teaser-hero--launch .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.teaser-hero--launch .hero-badge { margin: 0; }
.teaser-hero--launch h1 { margin: 0; }

.hero-availability {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.5;
  color: var(--text-mid);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-availability strong { color: #fff; font-weight: 600; }

/* ── STORE (badge App Store + Google Play), PRIMA del telefono ── */
.hero-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  min-width: 168px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}

.badge-store:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 22, 60, 0.18);
}

.badge-store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: #fff;
}

.badge-store .bs-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.badge-store .bs-small {
  font-size: 0.62rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.badge-store .bs-big {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── TELEFONO INTERATTIVO (kill feature) ────────────────────── */
.hero-phone {
  position: relative;
  width: clamp(244px, 27vw, 288px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-top: 2px;
}

/* alone caldo dietro il telefono */
.hero-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60px;
  width: 88%;
  height: 76%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(201, 22, 60, 0.30), rgba(255, 130, 20, 0.12) 48%, transparent 72%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}

.phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.phone-caption .pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 12px var(--flame);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-phone.is-live .phone-caption { display: none; }

.phone-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 19.3;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(155deg, #34343a 0%, #141417 38%, #0a0a0c 100%);
  box-shadow:
    0 0 0 2px #000,
    inset 0 0 2px 1px rgba(255, 255, 255, 0.14),
    0 34px 80px rgba(0, 0, 0, 0.62),
    0 0 56px rgba(201, 22, 60, 0.22);
}

.phone-screen {
  position: absolute;
  inset: 10px;
  border-radius: 37px;
  overflow: hidden;
  background: #000;
}

/* dynamic island — sopra lo schermo, non intercetta i tap */
.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 19px;
  background: #000;
  border-radius: 12px;
  z-index: 6;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.phone-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: #000;
}

.hero-phone.is-live .phone-iframe { opacity: 1; }

/* overlay "tocca lo schermo" — in alto così resta nella piega anche su laptop
   bassi e su mobile, dove il fondo del telefono sfora il viewport */
.phone-wake {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 50% 34%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.12) 100%);
  transition: opacity 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-phone.is-live .phone-wake {
  opacity: 0;
  pointer-events: none;
}

.phone-wake-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember-deep) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 26px rgba(201, 22, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: phone-wake-pulse 2.4s ease-in-out infinite;
}

.phone-wake-btn svg { width: 15px; height: 15px; fill: #fff; }

@keyframes phone-wake-pulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 8px 26px rgba(201, 22, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  50%      { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 34px rgba(201, 22, 60, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.phone-wake-hint {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .phone-wake-btn { animation: none; }
}

/* bottone "espandi" — appare quando l'app è viva */
.phone-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 7;
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.phone-expand svg { width: 17px; height: 17px; fill: #fff; }
.hero-phone.is-live .phone-expand { display: inline-flex; }

/* nota accesso Google — compare solo ad app viva, con via d'uscita persuasiva */
.phone-googlenote {
  display: none;
  max-width: 304px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.phone-googlenote a {
  color: var(--flame);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.phone-googlenote a:hover { color: var(--core); }
.hero-phone.is-live .phone-googlenote { display: block; }

/* ── AZIONI (web + social), sotto il telefono ───────────────── */
.hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-web-btn { gap: 9px; }

.hero-web-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ═══ NAVBAR: picker "Gioca ora" (browser / App Store / Google Play) ═══ */
.nav-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}

.nav-play-caret {
  width: 14px;
  height: 14px;
  fill: #fff;
  transition: transform 0.25s var(--ease-out);
}

.nav-play-btn[aria-expanded="true"] .nav-play-caret { transform: rotate(180deg); }

/* il pannello riusa .social-picker-panel ma qui si apre verso il BASSO e a destra
   (nella hero il picker "Seguici" si apre verso l'alto) */
.play-picker-panel {
  top: calc(100% + 12px);
  bottom: auto;
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-8px) scale(0.96);
}

.play-picker-panel.open {
  transform: translateX(0) translateY(0) scale(1);
}

/* ── MOBILE STRETTO ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .badge-store { min-width: 0; flex: 1 1 44%; padding: 10px 14px; }
  .badge-store .bs-big { font-size: 0.98rem; }
  .hero-phone { width: clamp(240px, 74vw, 286px); }
  .hero-cta-row { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta-row .btn-primary,
  .hero-cta-row .social-picker-wrap { width: 100%; }
  .hero-cta-row .social-picker-wrap .btn-primary { width: 100%; justify-content: center; }
  .teaser-hero--launch .hero-actions { align-items: center; } /* fix centraggio CTA hero mobile */
  .teaser-hero--launch .hero-cta-row { margin-inline: auto; }
}

/* ── DESKTOP: due colonne reali (testo a sinistra, telefono a destra) ── */
@media (min-width: 900px) {
  .teaser-hero--launch {
    text-align: left;
    padding-top: 118px;
  }

  .teaser-hero--launch .hero-stack {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(56px, 7vw, 112px);   /* più respiro + spinge il telefono a destra */
    max-width: 1140px;
    width: 100%;
  }

  /* la colonna testo torna un vero contenitore: testo + store + azioni impilati */
  .hero-textcol {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;                       /* respiro verticale tra titolo, store e azioni */
    flex: 1 1 400px;
    max-width: 460px;
  }

  .teaser-hero--launch .hero-copy {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .hero-availability { max-width: 38ch; }

  .hero-store { align-items: flex-start; }
  .store-badges { justify-content: flex-start; }

  .hero-actions { justify-content: flex-start; width: auto; }
  .hero-cta-row { justify-content: flex-start; }

  .hero-phone {
    flex: 0 0 auto;
    margin-top: 0;
  }
}

/* ── Scroll cue: ancorato in basso al centro, fuori dalla riga flex della hero.
   Stava entrando nella riga come secondo elemento (margin-left:auto), rubando
   spazio a destra e spingendo il blocco a due colonne verso sinistra. ── */
.teaser-hero--launch .teaser-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin: 0;
}
