:root {
  --bg: #0b231c;
  --bg2: #0f2f25;
  --card: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .10);
  --text: #f1f7ee;
  --muted: #a7bfae;
  --accent: #c5f467;
  --accent2: #a8e84f;
  --ink: #17300f;
  --gold: #ffe27a;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 4vw, 38px); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 10px auto 0; max-width: 560px; }
section { padding: 72px max(16px, env(safe-area-inset-left)); }

/* ---- pulsanti ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, #d6fb85, var(--accent2)); color: var(--ink);
  box-shadow: 0 8px 26px rgba(168, 232, 79, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(168, 232, 79, .45); }
.btn.big { font-size: 18px; padding: 16px 30px; }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: none; border: 1px solid var(--line); }

/* ---- barra in alto ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left));
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 35, 28, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); }
.lang {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}

/* ---- copertina ---- */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: center; padding-top: 40px; padding-bottom: 60px; }
.heroBg {
  position: absolute; inset: 0;
  background: url(hero.jpg) center / cover no-repeat;
  transform: scale(1.04);
}
.heroBg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 26, 20, .92) 0%, rgba(8, 26, 20, .72) 42%, rgba(8, 26, 20, .15) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 35, 28, 0) 26%);
}
.heroInner { position: relative; max-width: 1120px; width: 100%; margin: 0 auto; }
.kicker { margin: 0 0 12px; color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); max-width: 640px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: #d8e6da; max-width: 540px; margin: 18px 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; color: #cfe0d2; font-size: 14px; }
.badges li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ---- caratteristiche ---- */
.features .grid {
  max-width: 1120px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.features i { font-style: normal; font-size: 34px; display: block; margin-bottom: 10px; }
.features h3 { font-size: 19px; margin-bottom: 6px; }
.features article p { margin: 0; color: var(--muted); }

/* ---- immagini ---- */
.screens { background: var(--bg2); }
.gallery {
  max-width: 1120px; margin: 40px auto 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: auto; gap: 16px;
}
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { object-position: top; }
.gallery figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 14px; }
.gallery figure.wide img, .gallery figure:not(.tall) img { aspect-ratio: 16 / 10; height: auto; }

/* ---- passi ---- */
.steps ol {
  list-style: none; padding: 0; max-width: 1000px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.steps li { text-align: center; padding: 10px 14px; }
.steps b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(180deg, #ff7262, #e2463a); font-size: 20px;
  box-shadow: 0 6px 18px rgba(226, 70, 58, .4);
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---- domande ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---- chiusura ---- */
.final { text-align: center; background: radial-gradient(ellipse at center, rgba(168, 232, 79, .16), transparent 70%); }
.final h2 { margin-bottom: 24px; }
footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 24px max(16px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
footer a { color: var(--muted); }

/* ---- schermi stretti ---- */
@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .nav nav { gap: 10px; }
  section { padding-top: 52px; padding-bottom: 52px; }
  .hero { min-height: auto; padding-top: 48px; }
  .heroBg { background-position: 70% center; }
  .heroBg::after { background: linear-gradient(180deg, rgba(8, 26, 20, .25) 0%, rgba(8, 26, 20, .78) 45%, rgba(8, 26, 20, .9) 80%, var(--bg) 100%); }
  .hero { padding-top: 140px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .gallery figure.tall { grid-row: auto; }
  .gallery figure.tall img { aspect-ratio: 3 / 4; height: auto; }
  .btn.big { width: 100%; }
}
