/* ═══════════════════════════════════════════════════════════
   Trippy — Landing Page
   Design system ereditato da privacy-policy.html / support-it.html
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy:     #0d1f3c;
  --navy-mid: #16305c;
  --blue:     #1e4d9b;
  --blue-lt:  #2563eb;
  --orange:   #f97316;
  --orange-lt:#fdba74;
  --bg:       #0a1730;                   /* dark-first: sfondo pagina navy profondo */
  --surface:  rgba(255,255,255,0.045);   /* card traslucide */
  --border:   rgba(255,255,255,0.10);
  --text:     #e6edf7;
  --muted:    #9fb0c8;
  --radius:   16px;
  --radius-sm:10px;
  --maxw:     1080px;
  --shadow-sm: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px -14px rgba(0,0,0,0.6);
  --shadow-md: inset 0 1px 0 rgba(255,255,255,0.09), 0 20px 46px -22px rgba(0,0,0,0.72);
  --shadow-lg: 0 30px 70px -26px rgba(0,0,0,0.78);
  --glow-orange: 0 0 34px -6px rgba(249,115,22,0.45);
  --glow-blue:   0 0 34px -6px rgba(37,99,235,0.50);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue-lt); }

:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 3px; border-radius: 6px; }

/* Ancore: la navbar sticky non copre i titoli */
section[id], header[id], div[id] { scroll-margin-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── NAVBAR ───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 31, 60, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand-tagline {
  font-size: 10px;
  color: var(--orange-lt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.nav-cta {
  background: var(--orange);
  color: #fff;
}
.nav-links a.nav-cta:hover { background: #ea6a0d; }
@media (max-width: 640px) {
  .nav-links a.nav-hide { display: none; }
}

/* ── LANG BAR (da support-it.html) ────────────────────── */
.lang-bar {
  background: var(--navy-mid);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.lang-bar a {
  color: var(--orange-lt);
  font-size: 12px;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(253, 186, 116, 0.3);
}
.lang-bar a.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 44px 0 52px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 110% -10%, #2563eb44, transparent),
    radial-gradient(ellipse 60% 80% at -10% 120%, #f9731633, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-lt);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange-lt); }
.hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(249,115,22,0.45), transparent 62%),
              radial-gradient(circle at 75% 70%, rgba(37,99,235,0.5), transparent 65%);
  filter: blur(46px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.phone {
  width: 250px;
  aspect-ratio: 1226 / 2574;
  background: #0a1730;
  border: 7px solid #0a1730;
  border-radius: 38px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 31px;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone::after {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 66px; height: 5px;
  background: rgba(255,255,255,0.55);
  border-radius: 3px;
  z-index: 3;
}

/* ── STORE BADGES ─────────────────────────────────────── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.15s, background 0.15s;
}
.store-badge:hover { transform: translateY(-2px); background: #111; }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .sb-text { text-align: left; line-height: 1.15; }
.store-badge .sb-small { display: block; font-size: 10px; letter-spacing: 0.02em; opacity: 0.8; }
.store-badge .sb-big { display: block; font-size: 16px; font-weight: 600; }

/* ── SECTION SHELL ────────────────────────────────────── */
section { padding: 44px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-desc { font-size: 16px; color: var(--muted); }

/* ── FEATURES ─────────────────────────────────────────── */
.features { background: var(--navy); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { border-color: rgba(249,115,22,0.5); transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow-orange); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: rgba(37,99,235,0.16);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.28);
}
.feature-icon.orange { background: rgba(249,115,22,0.16); box-shadow: inset 0 0 0 1px rgba(249,115,22,0.30); }
.feature-icon.green { background: rgba(34,197,94,0.16); box-shadow: inset 0 0 0 1px rgba(34,197,94,0.28); }
.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ─────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { border-color: rgba(37,99,235,0.5); transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow-blue); }
.step-role {
  align-self: flex-start;
  max-width: 100%;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.step-phone {
  width: 200px;
  aspect-ratio: 1226 / 2574;
  margin: 0 auto;
  margin-top: auto;          /* allinea i telefoni sulla stessa linea di base */
  background: #0a1730;
  border: 6px solid #0a1730;
  border-radius: 26px;
  box-shadow: 0 24px 46px -20px rgba(0,0,0,0.7), 0 0 30px -10px rgba(37,99,235,0.35), inset 0 0 0 1px rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.step-phone .phone-screen { border-radius: 20px; }

/* ── PRIVACY HIGHLIGHTS ───────────────────────────────── */
.privacy-section { background: var(--navy); position: relative; overflow: hidden; }
.privacy-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, #2563eb33, transparent),
    radial-gradient(ellipse 60% 60% at 0% 100%, #22c55e22, transparent);
  pointer-events: none;
}
.privacy-section .container { position: relative; z-index: 1; }
.privacy-section .section-title { color: #fff; }
.privacy-section .section-label { color: var(--orange-lt); }
.privacy-section .section-desc { color: #cbd5e1; }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.privacy-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.privacy-card:hover {
  border-color: rgba(74,222,128,0.5);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 0 34px -6px rgba(34,197,94,0.4);
}
.privacy-card .pc-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.privacy-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.privacy-card p { font-size: 14px; color: #cbd5e1; line-height: 1.6; }

/* ── DOWNLOAD CTA ─────────────────────────────────────── */
.download {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.download::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, #f9731633, transparent);
  pointer-events: none;
}
.download .container { position: relative; z-index: 1; }
.download h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  color: #fff;
  margin-bottom: 12px;
}
.download p { color: #cbd5e1; font-size: 16px; margin-bottom: 28px; }
.download .hero-actions { justify-content: center; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 20px 28px;
  color: #94a3b8;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .brand-name { margin-top: 8px; }
.footer-brand p { font-size: 13px; color: #94a3b8; line-height: 1.7; margin-top: 12px; max-width: 32ch; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cbd5e1; text-decoration: none; font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange-lt); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #64748b;
  line-height: 1.8;
  text-align: center;
}
.footer-bottom strong { color: #cbd5e1; }

/* ── RESPONSIVE ───────────────────────────────────────── */
/* Schermi grandi: layout a griglia fissa */
@media (min-width: 861px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-eyebrow, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  section { padding: 32px 0; }
  .hero { padding: 32px 0 38px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .store-badge { flex: 1; justify-content: center; }
  .phone { width: 210px; }
  /* Navbar essenziale: solo icona + titolo "Trippy" */
  .navbar .brand-tagline { display: none; }
  .navbar .nav-cta { display: none; }
}
/* Schermi molto stretti: pulsanti store impilati */
@media (max-width: 400px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .store-badge { width: 100%; }
}
