/* DoveMangio — landing dovemangio.app */
:root {
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --accent: #38bdf8;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #5b6b82;
  --light: #8b9cb3;
  --border: #e4ebf4;
  --gradient-1: #050a12;
  --gradient-2: #0c1830;
  --gradient-3: #15306e;
  --gradient-4: #1e4fd8;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --shadow: 0 32px 80px rgba(11, 18, 32, 0.1);
  --shadow-card: 0 8px 32px rgba(11, 18, 32, 0.06);
  --shadow-glow: 0 0 80px rgba(37, 99, 235, 0.22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1140px;
  --nav-h: 72px;
  --badge-w: 168px;
  --badge-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px);
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  padding-inline: 0;
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav:not(.is-scrolled) .brand,
.nav:not(.is-scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}

.nav:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06), 0 12px 40px rgba(11, 18, 32, 0.05);
}

.nav.is-scrolled .brand,
.nav.is-scrolled .nav-links a {
  color: var(--text);
}

.nav.is-scrolled .nav-links a {
  color: var(--muted);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav-links li {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 103;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-dove {
  color: inherit;
}

.brand-mangio {
  color: #93c5fd;
}

.nav.is-scrolled .brand-mangio,
.footer .brand-mangio {
  color: var(--primary);
}

/* Menu aperto: logo sempre chiaro su sfondo scuro */
.nav-menu-open .brand,
.nav-menu-open .brand-dove {
  color: #fff !important;
}

.nav-menu-open .brand-mangio {
  color: #93c5fd !important;
}

.download .brand-dove {
  color: #fff;
}

.download .brand-mangio {
  color: #93c5fd;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gradient-3), var(--gradient-4));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav:not(.is-scrolled) .nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  z-index: 103;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.28s var(--ease),
    top 0.28s var(--ease),
    opacity 0.2s ease;
}

.nav-toggle-line:nth-child(1) {
  top: 0;
}

.nav-toggle-line:nth-child(2) {
  top: 7px;
}

.nav-toggle-line:nth-child(3) {
  top: 14px;
}

.nav-menu-open .nav-toggle-line:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-menu-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-menu-open .nav-toggle-line:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.nav.is-scrolled .nav-toggle {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

/* Menu aperto: header sempre scuro (anche a metà pagina) */
.nav.nav-menu-open,
.nav.nav-menu-open.is-scrolled {
  background: #070e18 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav.nav-menu-open .nav-toggle {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Overlay menu mobile */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 10, 18, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  pointer-events: none;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.5);
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Badge store — stesso slot per App Store e Google Play */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--badge-w);
  height: var(--badge-h);
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s;
}

.store-badge-link:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
}

.store-badge-link:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
}

.store-badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.store-badge--google {
  transform: scale(1.22);
  transform-origin: center;
}

.store-badge-link:hover .store-badge--google {
  transform: scale(1.24);
}

.download-stores.store-badges {
  justify-content: center;
  scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 48px) 0 0;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--gradient-1) 0%,
    var(--gradient-2) 42%,
    var(--gradient-3) 78%,
    #1a3a8a 100%
  );
  color: #fff;
}

.hero-grid {
  flex: 1;
}

.hero-wave {
  position: relative;
  z-index: 3;
  width: 100%;
  line-height: 0;
  margin-top: auto;
  flex-shrink: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(100px, 16vw, 160px);
  vertical-align: bottom;
  transform: translateY(1px);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: mesh-float 14s ease-in-out infinite;
}

.hero-mesh-a {
  width: 480px;
  height: 480px;
  background: #3b82f6;
  top: -140px;
  right: -100px;
  opacity: 0.5;
}

.hero-mesh-b {
  width: 340px;
  height: 340px;
  background: #22d3ee;
  bottom: 8%;
  left: -80px;
  opacity: 0.35;
  animation-delay: -5s;
}

.hero-mesh-c {
  width: 260px;
  height: 260px;
  background: #6366f1;
  top: 40%;
  right: 30%;
  opacity: 0.25;
  animation-delay: -9s;
}

@keyframes mesh-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.05);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
  margin: 0 0 12px;
}

.hero-brand {
  margin: 0 0 16px;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-brand .brand-dove {
  color: #fff;
}

.hero-brand .brand-mangio {
  color: #93c5fd;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 34rem;
}

.hero-subtitle-accent {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #60a5fa;
  flex-shrink: 0;
}

.hero-subtitle-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
}

.hero-subtitle-text strong {
  color: #bfdbfe;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
}

.hero-actions {
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 96px;
}

.hero-stat strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-chip svg {
  opacity: 0.85;
  flex-shrink: 0;
}

/* —— Phone mockups —— */
.phones {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  padding-top: 20px;
}

.phone {
  position: relative;
  width: 220px;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(165deg, #334155 0%, #0f172a 50%, #020617 100%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  z-index: 5;
}

/* Screenshot reali: niente notch finto (c’è già nella foto) */
.phone:has(.phone-shot)::before {
  display: none;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 9 / 19.5;
  font-size: 10px;
  position: relative;
}

.phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #0f172a;
}

.phone-shot.is-missing {
  opacity: 0;
}

.phone-screen.is-missing::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.phone--center {
  width: 250px;
  z-index: 3;
  margin-bottom: 24px;
  animation: phone-float-center 6s ease-in-out infinite;
}

.phone--left {
  position: absolute;
  left: 0;
  opacity: 0.88;
  z-index: 1;
  animation: phone-float-left 6s ease-in-out infinite -2s;
}

.phone--right {
  position: absolute;
  right: 0;
  opacity: 0.88;
  z-index: 1;
  animation: phone-float-right 6s ease-in-out infinite -4s;
}

@keyframes phone-float-center {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes phone-float-left {
  0%,
  100% {
    transform: rotate(-8deg) translateY(32px);
  }
  50% {
    transform: rotate(-8deg) translateY(22px);
  }
}

@keyframes phone-float-right {
  0%,
  100% {
    transform: rotate(8deg) translateY(32px);
  }
  50% {
    transform: rotate(8deg) translateY(22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone--center,
  .phone--left,
  .phone--right,
  .hero-mesh {
    animation: none;
  }

  .phone--left {
    transform: rotate(-8deg) translateY(32px);
  }

  .phone--right {
    transform: rotate(8deg) translateY(32px);
  }
}

/* Mock UI inside phones */
.ui-header {
  padding: 24px 12px 12px;
  background: linear-gradient(145deg, #070e18, #1a3a8a, #1d4ed8);
  color: #fff;
}

.ui-eyebrow {
  margin: 0 0 4px;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
}

.ui-brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.ui-brand-dove {
  color: #fff;
}

.ui-brand-mangio {
  color: #93c5fd;
}

.ui-subtitle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0 8px;
}

.ui-subtitle-accent {
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: #60a5fa;
  flex-shrink: 0;
}

.ui-subtitle-text {
  font-size: 6px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.ui-subtitle-text em {
  font-style: normal;
  color: #bfdbfe;
  font-weight: 700;
}

.ui-search {
  margin-top: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text);
}

.ui-search-loc {
  font-size: 7px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ui-search-loc::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
}

.ui-search-title {
  font-weight: 700;
  font-size: 9px;
  margin-top: 4px;
}

.ui-filters {
  display: flex;
  gap: 4px;
  margin: 8px 10px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}

.ui-filter {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  font-size: 6px;
  font-weight: 700;
  color: var(--muted);
}

.ui-filter.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.ui-card {
  margin: 6px 10px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ui-card h4 {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
}

.ui-card p {
  margin: 2px 0 0;
  font-size: 7px;
  color: var(--muted);
}

.ui-stars {
  color: #f59e0b;
  font-size: 7px;
  margin-top: 4px;
}

.ui-map {
  height: 100%;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 40%, #f8fafc 100%);
  position: relative;
}

.ui-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.ui-pin:nth-child(1) {
  top: 28%;
  left: 35%;
}
.ui-pin:nth-child(2) {
  top: 45%;
  left: 58%;
  background: #059669;
}
.ui-pin:nth-child(3) {
  top: 62%;
  left: 42%;
}

.ui-detail {
  padding: 12px;
}

.ui-detail-img {
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  margin-bottom: 8px;
}

.ui-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ui-tag-pill {
  font-size: 6px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
}

/* —— Sections —— */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head .section-lead {
  margin-top: 4px;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.875rem, 3.8vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 36rem;
}

.features {
  background: var(--bg);
  padding-top: 0;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fafcff 0%, var(--surface) 100%);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Screens showcase */
.screens {
  background: var(--bg);
  overflow: hidden;
}

.screens-scroll {
  margin-inline: 0;
}

.screens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screen-card {
  text-align: center;
  padding: 20px 16px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(11, 18, 32, 0.08);
}

.screen-card .phone {
  position: relative;
  transform: none;
  margin: 0 auto 16px;
  width: 190px;
  opacity: 1;
}

.screen-card h3 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.screen-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* How it works */
.steps-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 20px 20px 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fafcff 0%, var(--surface) 100%);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.step:hover {
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Download CTA */
.download {
  background: linear-gradient(
    155deg,
    var(--gradient-2) 0%,
    var(--gradient-3) 45%,
    var(--gradient-4) 100%
  );
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 max(16px, env(safe-area-inset-right, 0px)) 80px max(16px, env(safe-area-inset-left, 0px));
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow);
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.2), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.download::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.download-inner {
  position: relative;
  z-index: 1;
}

.download h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.download p {
  margin: 0 auto 32px;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.85);
}

.download-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.download-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer */
.footer {
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--light);
  margin-top: 24px;
  width: 100%;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .section-head {
    text-align: center;
    margin-inline: auto;
  }

  .section-head .section-lead {
    margin-inline: auto;
  }

  .eyebrow {
    display: block;
    text-align: center;
  }

  .hero-subtitle {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust,
  .hero-stats,
  .store-badges {
    justify-content: center;
  }

  .phones {
    min-height: 380px;
    margin-top: 8px;
  }

  .phone--left {
    left: 2%;
  }

  .phone--right {
    right: 2%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --nav-h: 60px;
    --page-pad: 24px;
    --badge-w: 100%;
    --badge-h: 48px;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: max(var(--page-pad), env(safe-area-inset-left, 0px))
      max(var(--page-pad), env(safe-area-inset-right, 0px));
  }

  section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .nav {
    padding-top: env(safe-area-inset-top, 0);
    min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    height: auto;
    align-items: flex-start;
    overflow: visible;
  }

  /* Header sempre leggibile sull'hero blu */
  .nav:not(.is-scrolled) {
    background: rgba(7, 14, 24, 0.72);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-inner {
    position: relative;
    z-index: 103;
    width: 100%;
    display: block;
  }

  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-scrolled:not(.nav-menu-open) .nav-toggle {
    color: #0b1220 !important;
    background: #ffffff;
    border-color: #cfd8e6;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  }

  .nav-menu-open {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }

  .nav-menu-open.is-scrolled {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }

  .nav-menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    width: 100%;
    margin-top: 4px;
    padding: 8px 0 20px;
    gap: 12px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    z-index: 1;
    animation: menu-slide 0.22s var(--ease);
  }

  @keyframes menu-slide {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-menu-open .nav-links li {
    width: 100%;
  }

  .nav-menu-open .nav-links a {
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
  }

  .nav-menu-open .nav-links a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
  }

  .nav-menu-open .nav-cta {
    width: 100%;
    margin-top: 4px;
  }

  .nav-menu-open .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px) 0 0;
    overflow-x: clip;
  }

  .hero-grid {
    flex: none;
    width: 100%;
    min-width: 0;
    gap: 24px;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    display: block;
    max-width: 100%;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
    padding-inline: 2px;
    overflow-wrap: anywhere;
  }

  .hero-brand {
    font-size: clamp(2rem, 10vw, 2.75rem);
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    max-width: calc(100% - 8px);
    margin-inline: auto;
    margin-bottom: 18px;
  }

  .hero-subtitle-accent {
    height: 14px;
  }

  .hero-subtitle-text {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    flex: none;
    text-wrap: balance;
  }

  .hero-lead {
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.55;
    max-width: 100%;
    text-wrap: pretty;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-stat {
    min-width: 0;
    padding: 10px 6px;
    align-items: center;
    text-align: center;
  }

  .hero-stat strong {
    font-size: 0.8125rem;
  }

  .hero-stat span {
    font-size: 0.625rem;
    line-height: 1.3;
  }

  .hero-trust {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    mask-image: none;
    padding-bottom: 0;
  }

  .trust-chip {
    font-size: 0.75rem;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    gap: 10px;
  }

  .store-badge-link {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    height: var(--badge-h);
    flex: none;
  }

  .phones {
    min-height: auto;
    padding: 4px 0 8px;
  }

  .phone--left,
  .phone--right {
    display: none;
  }

  .phone--center {
    width: min(220px, 68vw);
    margin-bottom: 0;
    animation: none;
  }

  .hero-wave {
    margin-top: 32px;
  }

  .hero-wave svg {
    height: clamp(72px, 18vw, 112px);
  }

  .features {
    padding-top: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    padding: 22px 18px;
    border: none;
    box-shadow: 0 2px 14px rgba(11, 18, 32, 0.07);
  }

  .feature-card:hover {
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(11, 18, 32, 0.1);
  }

  .feature-card:active {
    transform: scale(0.99);
  }

  /* Carousel orizzontale schermate app */
  .screens-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-pad));
    padding-inline: var(--page-pad);
    padding-bottom: 8px;
  }

  .screens-scroll::-webkit-scrollbar {
    display: none;
  }

  .screens-row {
    display: flex;
    gap: 14px;
    width: max-content;
    padding-inline: 2px;
  }

  .screen-card {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: center;
    padding: 18px 14px 20px;
  }

  .screen-card .phone {
    width: min(180px, 58vw);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step {
    padding: 20px 18px 18px 52px;
  }

  .step::before {
    top: 18px;
    left: 16px;
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }

  .section-lead {
    font-size: 0.9375rem;
  }

  .download {
    margin-inline: var(--page-pad);
    padding: 48px 20px;
    border-radius: 22px;
    margin-bottom: 56px;
  }

  .download h2 {
    font-size: clamp(1.375rem, 6vw, 1.75rem);
  }

  .download p {
    font-size: 0.9375rem;
    margin-bottom: 22px;
  }

  .download-stores.store-badges {
    max-width: 340px;
    margin-inline: auto;
  }

  .footer {
    padding: 36px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-links {
    justify-content: center;
    gap: 20px;
  }

  .footer-copy {
    text-align: center;
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  :root {
    --page-pad: 20px;
    --badge-h: 46px;
  }

  .eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .hero-brand {
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
  }

  .hero-subtitle-text {
    font-size: 0.85rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 200px;
  }

  .store-badge-link {
    max-width: 100%;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}
