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

:root {
  --sky: #4FC3F7;
  --sky-dark: #0288D1;
  --sun: #FFD600;
  --rain: #5C6BC0;
  --green: #66BB6A;
  --white: #fff;
  --text: #1a2a3a;
  --text-light: #4a6080;
  --radius: 20px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f0f8ff;
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(79,195,247,0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sky-dark);
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.lang-toggle {
  background: var(--sky);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.lang-toggle:hover {
  background: var(--sky-dark);
  transform: scale(1.05);
}

/* HERO */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 60px 60px 60px;
  position: relative;
  overflow: hidden;
}

.hero-splash {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.splash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2, 136, 209, 0.82) 0%,
    rgba(2, 136, 209, 0.65) 50%,
    rgba(2, 136, 209, 0.30) 100%
  );
}

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

.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 1;
  color: white;
}

.hero-content h1 { color: white; }

.hero-content .subtitle { color: rgba(255,255,255,0.88); }

.hero-content .stat { color: white; }
.hero-content .stat strong { color: white; }
.hero-content .stat span { color: rgba(255,255,255,0.8); }
.stat-divider { background: rgba(255,255,255,0.3); }

.badge {
  display: inline-block;
  background: var(--sun);
  color: #7a5800;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

.store-btn {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.store-btn:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.store-badge {
  height: 52px;
  width: auto;
  display: block;
}

.google-badge {
  height: 76px;
  margin: -12px 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--sky-dark);
}
.stat span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: #b0d4e8;
}

/* PHONE */
.hero-phone {
  flex: 0 0 auto;
  z-index: 1;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 2px #333;
  animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

.phone-screen {
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
}

.phone-splash {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* FEATURES */
.features {
  padding: 100px 60px;
  text-align: center;
}

.section-label {
  display: inline-block;
  background: linear-gradient(90deg, var(--sky), var(--rain));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 56px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(79,195,247,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(79,195,247,0.2);
  border-color: var(--sky);
}

.feature-emoji {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* COSA PUOI SEGNALARE */
.report-types {
  padding: 100px 60px;
  background: white;
  text-align: center;
}

.markers-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.marker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.marker-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.2s;
}

.marker-item:hover img {
  transform: scale(1.15) translateY(-4px);
}

.marker-item span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* HOW IT WORKS */
.how {
  padding: 100px 60px;
  background: linear-gradient(135deg, #fffde7 0%, #e0f7fa 100%);
  text-align: center;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.step-number {
  width: 42px;
  height: 42px;
  background: var(--sky-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}
.step-emoji { font-size: 3rem; }
.step h3 { font-size: 1.1rem; font-weight: 800; }
.step p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; text-align: center; }

.step-arrow {
  font-size: 2rem;
  color: var(--sky);
  padding-top: 40px;
  flex: 0 0 auto;
}

/* CTA FINAL */
.cta-final {
  padding: 100px 40px;
  background: linear-gradient(135deg, #0288D1, #26C6DA, #66BB6A);
  text-align: center;
  color: white;
}
.cta-logo {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cta-final h2 {
  color: white;
  margin-bottom: 16px;
}
.cta-final p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .store-buttons {
  justify-content: center;
  margin-bottom: 0;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 32px;
  background: #1a2a3a;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.footer-company {
  margin: 16px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.footer-company-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.footer-company a {
  color: var(--sky);
  text-decoration: none;
}
.footer-company a:hover {
  text-decoration: underline;
}
.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--sky);
  margin-bottom: 8px;
}
.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .hero {
    flex-direction: column;
    padding: 40px 24px 60px;
    text-align: center;
    min-height: auto;
  }
  .hero-content { max-width: 100%; }
  .subtitle { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .store-badge { height: 44px; }
  .google-badge { height: 64px; margin: -10px 0; }
  .hero-stats { justify-content: center; }
  .hero-phone { display: none; }
  .features, .how { padding: 60px 24px; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; gap: 36px; }
}
