:root {
  --navy: #0b2a6b;
  --navy-d: #061a47;
  --sky: #19a7ff;
  --foam: #eaf6ff;
  --ink: #0b2a6b;
  --muted: #4a5f8a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--ink);
  background: #f4f8fc;
  height: 100dvh;
  position: relative;
}

/* Sfondo: la mappa originale del sito, ravvivata da un alone di mare */
.map {
  position: fixed; inset: 0;
  background: url('../img/background-landing.jpg') center / cover no-repeat;
  opacity: .9;
}
.glow {
  position: fixed; inset: 0;
  background:
    radial-gradient(60vmax 45vmax at 85% 30%, rgba(25,167,255,.22), transparent 60%),
    radial-gradient(50vmax 40vmax at 0% 100%, rgba(11,42,107,.10), transparent 60%);
}

.stage {
  position: relative; z-index: 2;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.25rem, 4vh, 3rem) clamp(1.5rem, 7vw, 7rem) clamp(5rem, 14vh, 8rem);
  max-width: 1500px;
  margin: 0 auto;
}

/* ---------- Testo ---------- */
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(.6rem, 2vh, 1.25rem); }

.logo {
  height: clamp(84px, 20vh, 190px);
  width: auto;
  margin-bottom: clamp(.2rem, 1.5vh, 1rem);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}

.kicker {
  font-weight: 600;
  font-size: clamp(.7rem, 1.5vh, .85rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  display: flex; align-items: center; gap: .8rem;
  animation: rise .9s .1s cubic-bezier(.2,.8,.2,1) both;
}
.kicker::before { content: ''; width: 2.2rem; height: 2px; background: var(--sky); }

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, min(6.4vw, 9vh), 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--navy);
  animation: rise .9s .18s cubic-bezier(.2,.8,.2,1) both;
}
h1 em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(100deg, var(--sky), var(--navy) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(.95rem, 2.2vh, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34rem;
  animation: rise .9s .26s cubic-bezier(.2,.8,.2,1) both;
}

.stores {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: clamp(.2rem, 1.5vh, .8rem);
  animation: rise .9s .34s cubic-bezier(.2,.8,.2,1) both;
}
.badge {
  display: block; line-height: 0; border-radius: 12px;
  box-shadow: 0 10px 24px -10px rgba(11,42,107,.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.badge img { height: clamp(46px, 7vh, 60px); width: auto; display: block; }
.badge:hover, .badge:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -12px rgba(25,167,255,.7);
  outline: none;
}

/* ---------- Telefono ---------- */
.device { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 0; }

.phone {
  --h: min(74vh, 640px);
  height: var(--h);
  aspect-ratio: 9 / 18.5;
  border-radius: calc(var(--h) * .075);
  background: var(--navy-d);
  padding: calc(var(--h) * .014);
  box-shadow:
    0 0 0 2px #1d3f8f,
    0 50px 80px -30px rgba(6,26,71,.65),
    0 0 90px rgba(25,167,255,.28);
  position: relative;
  transform: rotate(4deg);
  animation: phone 1.1s .15s cubic-bezier(.2,.8,.2,1) both, bob 7s 1.4s ease-in-out infinite;
}
.notch {
  position: absolute; top: 2.2%; left: 50%; translate: -50% 0;
  width: 30%; height: 2.6%; background: #000; border-radius: 99px; z-index: 3;
}
.screen {
  height: 100%; border-radius: calc(var(--h) * .063);
  background: linear-gradient(180deg, #f2f8ff, #dcedff);
  padding: 13% 7% 6%;
  display: flex; flex-direction: column; gap: 3.2%;
  overflow: hidden;
  text-align: left;
  font-size: calc(var(--h) / 50);
}
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.7em; color: var(--navy); letter-spacing: -.02em; }
.pin { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--navy); position: relative; }
.pin::after { content: ''; position: absolute; inset: 32%; border-radius: 50%; background: var(--sky); }

.chips span:last-child { display: none; }
.chips { display: flex; gap: .5em; font-size: 1.05em; }
.chips span, .chips b {
  padding: .45em .9em; border-radius: 99px; background: #fff; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.chips b { background: var(--navy); color: #fff; font-weight: 600; }

.card {
  display: flex; gap: .9em; align-items: center;
  background: #fff; border-radius: 1.3em; padding: .8em;
  box-shadow: 0 10px 20px -14px rgba(11,42,107,.5);
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.card i { flex: none; width: 5em; height: 5em; border-radius: .9em; background: var(--g); }
.card small { display: block; color: var(--muted); font-size: 1em; margin-bottom: .25em; }
.card strong { font-size: 1.25em; line-height: 1.15; color: var(--navy); font-weight: 600; }
.c1 { --g: linear-gradient(135deg, #ff9a5c, #ff5e7e); animation-delay: .5s; }
.c2 { --g: linear-gradient(135deg, #19a7ff, #0b2a6b); animation-delay: .62s; }
.c3 { --g: linear-gradient(135deg, #ffd86b, #ff9a5c); animation-delay: .74s; }
.c4 { --g: linear-gradient(135deg, #6b4bff, #19a7ff); animation-delay: .86s; }

/* ---------- Onde ---------- */
.waves { position: fixed; left: 0; bottom: 0; width: 200%; height: clamp(80px, 15vh, 150px); z-index: 1; pointer-events: none; }
.waves path { transition: none; }
.w1 { fill: rgba(25,167,255,.28); }
.w2 { fill: rgba(11,42,107,.55); }
.w3 { fill: var(--navy); }
.waves { animation: drift 18s linear infinite; }
.waves .w1 { animation: swell 6s ease-in-out infinite; }
.waves .w2 { animation: swell 8s -2s ease-in-out infinite reverse; }

/* ---------- Lingua ---------- */
.lang {
  position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1.25rem; z-index: 5;
  font: 600 .8rem 'Figtree', sans-serif; letter-spacing: .12em;
  padding: .5rem .9rem; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.8); color: var(--navy);
  border: 1.5px solid var(--navy);
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s;
}
.lang:hover { background: var(--navy); color: #fff; }

/* ---------- Animazioni ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes phone { from { opacity: 0; transform: translateY(80px) rotate(10deg); } to { opacity: 1; transform: rotate(4deg); } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes swell { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Mobile / schermi bassi ---------- */
@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0;
    padding: clamp(.9rem, 3vh, 1.5rem) 1.4rem 0;
    text-align: center;
  }
  .copy { align-items: center; gap: clamp(.4rem, 1.4vh, .9rem); }
  .logo { height: clamp(64px, 14vh, 120px); }
  .kicker::before { display: none; }
  .kicker { letter-spacing: .16em; }
  h1 { font-size: clamp(1.9rem, min(9.5vw, 6.2vh), 3rem); }
  .lead { font-size: clamp(.85rem, 1.9vh, 1rem); }
  .stores { justify-content: center; gap: .6rem; }
  .badge img { height: clamp(40px, 6vh, 52px); }
  /* il telefono spunta dal basso e viene tagliato dalle onde */
  .device { align-items: flex-start; padding-top: 1.2rem; overflow: hidden; }
  .phone { --h: min(62vh, 520px); transform: rotate(0); animation: rise .9s .3s both; box-shadow: 0 0 0 2px #1d3f8f; }
  .lang { top: .8rem; right: .8rem; padding: .4rem .7rem; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .lead { display: none; }
}
@media (max-width: 820px) and (max-height: 560px) {
  .device { display: none; }
}
@media (min-width: 821px) and (max-height: 520px) {
  .lead { display: none; }
}
