:root {
  color-scheme: dark;
  --ink: #fff3ec;
  --muted: #e2c3bc;
  --soft: #c9a49d;
  --red: #ff3b30;
  --red-deep: #c9180d;
  --gold: #ffcd62;
  --line: rgba(255, 120, 90, 0.16);
  --bg: #120407;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 760px at 12% 0%, #2c0b10 0%, #180608 52%, var(--bg) 100%),
    var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #2a0d10; color: var(--ink);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- barra superiore ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 8px clamp(16px, 4vw, 44px) 10px;
  background: rgba(20, 5, 8, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 120, 90, 0.12);
}

.logo {
  position: relative;
  display: inline-flex; align-items: flex-end; gap: 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800; letter-spacing: -0.045em;
  color: var(--ink); text-decoration: none;
  padding-top: 20px;
}

.logo-horns {
  position: absolute; left: -0.06em; top: 5px;
  width: 2.15em; height: auto;
}

.logo-word span { color: var(--red); }

.nav {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}

.nav a {
  position: relative;
  color: #e7c8c1; text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  padding: 4px 2px;
}

.nav a:hover, .nav a:focus-visible { color: #fff; }

.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), #ff8a5c);
}

/* ---------- pulsanti ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.ico { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff4a3a, var(--red-deep));
  box-shadow: 0 14px 34px -12px rgba(255, 60, 40, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 60, 40, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-outline {
  color: #ffe9df;
  border-color: rgba(255, 224, 210, 0.34);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 224, 210, 0.5); }

.btn-ghost {
  color: #ffe6d9;
  border-color: rgba(255, 120, 90, 0.4);
  background: rgba(255, 70, 50, 0.12);
}
.btn-ghost:hover { background: rgba(255, 70, 50, 0.2); }

.btn-small { padding: 9px 16px; font-size: 0.88rem; }
.btn-small .ico { width: 16px; height: 16px; }

/* ---------- hero ---------- */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

.hero { position: relative; padding: clamp(26px, 4vw, 56px) 0 clamp(30px, 4vw, 64px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}

.hero-copy h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.05rem, 4.4vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  margin: 0 0 26px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.lead strong { color: #ffd9c9; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { margin: 0; }

.hero-art img {
  display: block;
  width: 106%; height: auto;
  margin: 0 -3% 0 0;
  border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 120, 90, 0.12);
}

/* braci che salgono */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.embers span {
  position: absolute;
  bottom: -12px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ff8a4a;
  box-shadow: 0 0 8px #ff6a2a;
  opacity: 0;
  animation: rise 11s linear infinite;
}

.embers span:nth-child(1) { left: 8%; animation-delay: 0s; }
.embers span:nth-child(2) { left: 22%; animation-delay: 2.4s; animation-duration: 13s; }
.embers span:nth-child(3) { left: 38%; animation-delay: 5.1s; }
.embers span:nth-child(4) { left: 57%; animation-delay: 1.2s; animation-duration: 9s; }
.embers span:nth-child(5) { left: 74%; animation-delay: 3.7s; animation-duration: 14s; }
.embers span:nth-child(6) { left: 89%; animation-delay: 6.3s; }

@keyframes rise {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  12% { opacity: 0.85; }
  70% { opacity: 0.5; }
  100% { transform: translateY(-78vh) scale(1.1); opacity: 0; }
}

/* ---------- sezioni ---------- */

.about, .features, .preview { padding: clamp(26px, 3.6vw, 52px) 0; }

.about h2, .preview h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  letter-spacing: -0.025em;
}

.about h2 span { color: var(--red); }

.about p {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 12, 16, 0.62), rgba(28, 8, 11, 0.55));
}

.card-ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #ff6f55;
  background: linear-gradient(180deg, rgba(255, 70, 50, 0.22), rgba(255, 70, 50, 0.06));
  border: 1px solid rgba(255, 120, 90, 0.24);
}

.card-ico svg { width: 24px; height: 24px; }

.card h3 { margin: 1px 0 5px; font-size: 1.02rem; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 0.94rem; color: #d9b7b0; }

.preview figure { margin: 0; }

.preview img {
  display: block;
  width: 100%; height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 120, 90, 0.18);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.preview figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--soft);
  font-size: 0.92rem;
}

/* ---------- striscia cantiere ---------- */

.construction {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(24px, 3.6vw, 44px) 0 clamp(30px, 4vw, 54px);
}

.stripes {
  width: clamp(36px, 9vw, 120px);
  height: 12px;
  border-radius: 8px;
  background: repeating-linear-gradient(120deg, #ffc23d 0 14px, #2a0d10 14px 26px);
  opacity: 0.92;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 98, 0.55);
  background: rgba(58, 20, 10, 0.6);
  color: #ffe3a8;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- fondo ---------- */

.foot {
  border-top: 1px solid rgba(255, 120, 90, 0.1);
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--soft);
  font-size: 0.85rem;
}

.foot p { margin: 0; }

/* ---------- adattamenti ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .hero-copy { order: 1; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { justify-content: space-between; }
  .btn-small { padding: 8px 14px; font-size: 0.82rem; }
  .hero { padding-top: 18px; }
  .construction { flex-direction: column; gap: 14px; }
  .stripes { width: min(180px, 45vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers { display: none; }
  .btn { transition: none; }
}
