/* Schermata "usa l'app" per chi apre la piattaforma da telefono (js/mobile-gate.js) */
html.sav-gate-attivo, html.sav-gate-attivo body { margin: 0; overflow-x: hidden; background: #5C2A64; }

#sav-mobile-gate {
  position: fixed; inset: 0; z-index: 99999; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  font-family: 'Tasa Orbiter', system-ui, sans-serif; color: #fff;
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(0,0,0,.3), transparent 70%),
    linear-gradient(165deg, #A465AB 0%, #8B4B93 38%, #5C2A64 100%);
  -webkit-font-smoothing: antialiased;
}
.sg-cerchio { position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.sg-c1 { width: 380px; height: 380px; right: -150px; top: -120px; }
.sg-c2 { width: 280px; height: 280px; left: -120px; bottom: 60px; background: rgba(255,255,255,.05); }

.sg-contenuto {
  position: relative; z-index: 1; box-sizing: border-box; max-width: 480px; min-height: 100%; margin: 0 auto;
  padding: calc(34px + env(safe-area-inset-top, 0px)) 26px calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Icona dell'app con aloni che pulsano */
.sg-icona-wrap { position: relative; width: 132px; height: 132px; margin-bottom: 26px; display: flex; align-items: center; justify-content: center; }
.sg-icona {
  position: relative; z-index: 2; width: 104px; height: 104px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 22px 44px rgba(0,0,0,.42), 0 0 0 3px rgba(255,255,255,.35);
  animation: sg-fluttua 4.5s ease-in-out infinite;
}
/* L'immagine ha gli angoli bianchi: si ingrandisce un poco per tagliarli */
.sg-icona img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.sg-alone { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: sg-onda 3.2s ease-out infinite; }
.sg-alone-1 { width: 104px; height: 104px; }
.sg-alone-2 { width: 104px; height: 104px; animation-delay: 1.6s; }

.sg-eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.sg-contenuto h1 { font-size: 1.85rem; line-height: 1.14; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.sg-contenuto h1 em { font-style: normal; background: linear-gradient(90deg, #fff, #F0D9F4); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sg-sotto { font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,.9); margin: 0 0 22px; }

.sg-vantaggi { list-style: none; margin: 22px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; align-self: stretch; text-align: left; }
.sg-vantaggi li { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.sg-vantaggi li > span { flex: none; width: 40px; height: 40px; border-radius: 13px; background: #fff; color: #7B3F84; display: inline-flex; align-items: center; justify-content: center; }
.sg-vantaggi li svg { width: 22px; height: 22px; }
.sg-vantaggi b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.2; }
.sg-vantaggi small { display: block; font-size: .82rem; color: rgba(255,255,255,.78); margin-top: 2px; }

.sg-azioni { align-self: stretch; display: flex; flex-direction: column; gap: 12px; }
.sg-store {
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 22px; border-radius: 20px; text-decoration: none;
  background: #fff; color: #5C2A64; font-weight: 800; font-size: 1.12rem; line-height: 1.15; box-shadow: 0 16px 34px rgba(0,0,0,.3);
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease;
}
.sg-store:active { transform: scale(.98); }
.sg-store small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin-bottom: 2px; }
.sg-store > span:last-child { text-align: left; }
.sg-store-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; background: #5C2A64; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sg-store-ico svg { width: 22px; height: 22px; }
.sg-nota { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px dashed rgba(255,255,255,.4); font-size: .95rem; line-height: 1.45; }

.sg-avviso { margin: auto 0 0; padding-top: 18px; font-size: .78rem; color: rgba(255,255,255,.68); }

@keyframes sg-fluttua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sg-onda { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.55); opacity: 0; } }

@media (max-height: 720px) {
  .sg-icona-wrap { width: 108px; height: 108px; margin-bottom: 18px; }
  .sg-icona { width: 84px; height: 84px; border-radius: 21px; }
  .sg-alone-1, .sg-alone-2 { width: 84px; height: 84px; }
  .sg-contenuto h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-icona, .sg-alone { animation: none; }
  .sg-alone { display: none; }
}
