/* CLOUDFORGE — sito vetrina. Stesso linguaggio visivo del gioco:
   cielo al crepuscolo, cornici d'ottone forgiato, titoli Cinzel, energia ambra.
   Statico, zero dipendenze. Le animazioni sono progressive-enhancement. */
:root {
  --sky-0: #0a0f17; --sky-1: #101b28; --sky-2: #172a33;
  --panel-0: #131a21; --panel-1: #1a242c; --panel-2: #243039;
  --edge-hi: rgba(255,228,176,.10); --edge-lo: rgba(0,0,0,.55);
  --brass-d: #6a5126; --bronze-d: #7d6238; --bronze: #b08d57; --brass: #c39c5f; --brass-l: #eccd8e;
  --amber: #e9b54a; --amber-l: #ffd97a; --rust: #c34b30; --patina: #67b9a8;
  --ink: #ece6d8; --ink-dim: #97a1a9; --good: #79c08c;
  --radius: 14px;
  --font-display: "Cinzel", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sky-0); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-l); }
::selection { background: rgba(233,181,74,.35); color: #fff; }

/* ---- Atmosfera: cielo fisso + nuvole alla deriva (come nel gioco) ---- */
.sky {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 75% at 50% 6%, #1a2c3a 0%, var(--sky-1) 38%, var(--sky-0) 78%),
    linear-gradient(180deg, transparent 55%, rgba(74,58,30,.45) 86%, rgba(120,82,34,.30) 100%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 40% at 50% 104%, rgba(233,181,74,.18), transparent 70%),
    radial-gradient(140% 90% at 50% -20%, transparent 60%, rgba(0,0,0,.55));
}
.cloud {
  position: absolute; border-radius: 50%; filter: blur(26px); opacity: .5;
  background: radial-gradient(closest-side, rgba(120,150,170,.55), transparent 70%);
  animation: drift linear infinite;
}
.cloud-a { width: 70vw; height: 30vw; top: 12%; left: -30%; animation-duration: 70s; }
.cloud-b { width: 55vw; height: 24vw; top: 46%; left: -40%; opacity: .35; animation-duration: 95s; animation-delay: -30s; }
.cloud-c { width: 80vw; height: 34vw; top: 72%; left: -35%; opacity: .3; background: radial-gradient(closest-side, rgba(180,140,90,.5), transparent 70%); animation-duration: 120s; animation-delay: -60s; }
@keyframes drift { to { transform: translateX(165vw); } }

/* ---- Reveal allo scroll (attivato da JS; senza JS tutto resta visibile) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="left"]  { transform: translateX(-34px); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal="left"].in, .js [data-reveal="right"].in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- Layout ---- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---- Header ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(8,12,18,.96), rgba(8,12,18,.82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brass-d);
  box-shadow: 0 1px 0 var(--edge-hi), 0 6px 22px rgba(0,0,0,.5);
}
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transition: filter .2s; }
.brand:hover img { filter: drop-shadow(0 2px 10px rgba(233,181,74,.45)); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 14px; letter-spacing: .5px; transition: color .15s; }
.nav a:hover { color: var(--brass-l); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .brand img { height: 44px; } }

/* ---- Bottoni (piastre forgiate, come in-game) ---- */
.btn {
  display: inline-block; padding: 13px 24px; border: 1px solid #0b0f13; border-radius: 12px;
  background: linear-gradient(180deg, #2c353d, #181f25);
  color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  letter-spacing: .3px; text-shadow: 0 1px 1px rgba(0,0,0,.55);
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 -2px 5px rgba(0,0,0,.45), 0 2px 5px rgba(0,0,0,.4);
  transition: filter .12s, transform .12s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-l), var(--amber) 52%, #a8762a);
  color: #2c1e06; border-color: #7c571a; text-shadow: none; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 18px rgba(233,181,74,.35), 0 3px 8px rgba(0,0,0,.45);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 30px rgba(233,181,74,.55), 0 5px 14px rgba(0,0,0,.5); }
.btn-big { padding: 17px 38px; font-size: 17px; border-radius: 14px; }
/* CTA compatta nella barra di navigazione: dimensioni da navbar e testo scuro
   (specificità: .nav a.btn-primary batte .nav a, che altrimenti lo ingrigisce). */
.nav .btn { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.nav a.btn-primary { color: #2c1e06; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--brass-d); min-height: 92vh; display: grid; place-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; animation: heroZoom 24s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,15,23,.62) 0%, rgba(10,15,23,.18) 42%, rgba(10,15,23,.94) 100%),
    radial-gradient(95% 62% at 50% 102%, rgba(233,181,74,.16), transparent 70%);
}
.hero-in { position: relative; text-align: center; padding: 96px 20px 110px; width: 100%; }
.hero-logo { width: min(430px, 76vw); margin: 0 auto 2px; filter: drop-shadow(0 10px 34px rgba(0,0,0,.85)) drop-shadow(0 0 26px rgba(233,181,74,.22)); }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 50px); font-weight: 700;
  letter-spacing: 2px; margin: 14px 0 14px; line-height: 1.16;
  background: linear-gradient(180deg, #fff3d8 8%, var(--brass-l) 38%, var(--brass) 72%, #8a6a33 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.9));
}
.hero p.sub {
  max-width: 660px; margin: 0 auto 34px; font-size: clamp(15px, 2vw, 18.5px);
  color: var(--ink); text-shadow: 0 1px 5px rgba(0,0,0,.95);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.badge-alfa {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--brass); background: rgba(15,21,28,.86);
  font-family: var(--font-display); font-size: 13px; letter-spacing: 3.5px; color: var(--amber-l);
  text-transform: uppercase; box-shadow: 0 0 18px rgba(233,181,74,.3), inset 0 1px 0 var(--edge-hi);
}
.badge-alfa i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: var(--brass-l); opacity: .75; font-size: 22px; text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateX(-50%) translateY(8px); } }

/* ---- Striscia valori sotto l'hero ---- */
.valori { border-bottom: 1px solid rgba(106,81,38,.5); background: linear-gradient(180deg, rgba(19,26,33,.75), rgba(10,15,23,.4)); }
.valori .wrap { display: flex; justify-content: center; gap: clamp(18px, 5vw, 64px); flex-wrap: wrap; padding: 20px 0; }
.valori span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-dim); letter-spacing: .4px; }
.valori b { color: var(--brass-l); font-family: var(--font-display); letter-spacing: 1px; font-weight: 700; }

/* ---- Sezioni ---- */
section.block { padding: 88px 0; }
.sec-title {
  font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700;
  letter-spacing: 2px; color: var(--brass-l); text-align: center; margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.sec-sub { text-align: center; color: var(--ink-dim); max-width: 640px; margin: 0 auto 48px; font-size: 16px; }
.rule {
  width: 180px; height: 2px; margin: 16px auto 0; border: 0; position: relative;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.rule::after {
  content: "◆"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  color: var(--brass); font-size: 11px; text-shadow: 0 0 8px rgba(233,181,74,.6);
}

/* ---- Card feature (placche d'ottone) ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel-0));
  border: 1px solid var(--brass-d); border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 8px 24px rgba(0,0,0,.45);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
}
.card::before {  /* riflesso che scorre sull'hover */
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,228,176,.08), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--bronze); box-shadow: inset 0 1px 0 var(--edge-hi), 0 14px 34px rgba(0,0,0,.55), 0 0 26px rgba(233,181,74,.14); }
.card:hover::before { left: 130%; }
.card h3 {
  font-family: var(--font-display); font-size: 17.5px; letter-spacing: 1px;
  color: var(--brass-l); margin: 0 0 9px;
}
.card p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.medal {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px;
  font-size: 25px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #33404a, var(--panel-0) 72%);
  border: 1px solid var(--bronze-d);
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 -3px 7px rgba(0,0,0,.5), 0 0 0 3px rgba(106,81,38,.28), 0 3px 8px rgba(0,0,0,.5);
}

/* ---- Showcase alternato (grandi illustrazioni) ---- */
.show { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; padding: 44px 0; }
.show + .show { border-top: 1px solid rgba(106,81,38,.35); }
.show.flip { grid-template-columns: 1fr 1.15fr; }
.show.flip .show-img { order: 2; }
@media (max-width: 820px) {
  .show, .show.flip { grid-template-columns: 1fr; }
  .show.flip .show-img { order: 0; }
}
.show-img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--brass-d);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 16px 44px rgba(0,0,0,.55); }
.show-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(10,15,23,.55); pointer-events: none; }
.show-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.show:hover .show-img img { transform: scale(1.045); }
.show-txt h3 {
  font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 25px); letter-spacing: 1.2px;
  color: var(--brass-l); margin: 0 0 12px;
}
.show-txt p { color: var(--ink-dim); margin: 0 0 10px; font-size: 15.5px; }
.show-txt .k { color: var(--ink); }
.kicker {
  display: inline-block; font-family: var(--font-display); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
  padding-bottom: 4px; border-bottom: 1px solid rgba(233,181,74,.35);
}

/* ---- Striscia alfa ---- */
.alfa-strip {
  background: linear-gradient(180deg, var(--panel-1), var(--panel-0));
  border-top: 1px solid var(--brass-d); border-bottom: 1px solid var(--brass-d);
}
.alfa-strip .alfa-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 62px 0; }
@media (max-width: 820px) { .alfa-strip .alfa-in { grid-template-columns: 1fr; } }
.alfa-strip h2 { font-family: var(--font-display); color: var(--brass-l); letter-spacing: 1.2px; margin: 0 0 14px; font-size: clamp(20px, 2.6vw, 26px); }
.alfa-strip ul { margin: 0; padding-left: 20px; color: var(--ink-dim); }
.alfa-strip li { margin-bottom: 9px; }
.alfa-strip li b { color: var(--ink); }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--brass-d);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 10px 30px rgba(0,0,0,.5);
}
.shot img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 13px;
  background: linear-gradient(180deg, transparent, rgba(10,15,23,.94));
  font-family: var(--font-display); font-size: 14px; letter-spacing: 1.2px; color: var(--brass-l);
}

/* ---- Community / Discord ---- */
.community {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--brass-d); border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(120% 150% at 50% -30%, rgba(233,181,74,.12), transparent 55%),
    linear-gradient(180deg, var(--panel-2), var(--panel-0));
  padding: clamp(38px, 6vw, 64px) 24px;
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 18px 50px rgba(0,0,0,.5);
}
.community h2 { font-family: var(--font-display); color: var(--brass-l); letter-spacing: 1.6px; margin: 0 0 10px; font-size: clamp(21px, 3vw, 28px); }
.community p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 26px; }
.btn-discord {
  background: linear-gradient(180deg, #6c82e8, #4a5fd0 55%, #3547a8);
  color: #fff; border-color: #2b3781; text-shadow: 0 1px 2px rgba(0,0,0,.4); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 20px rgba(88,101,242,.4), 0 3px 8px rgba(0,0,0,.45);
}
.btn-discord:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 32px rgba(88,101,242,.6), 0 5px 14px rgba(0,0,0,.5); }

/* ---- Wishlist di lancio ---- */
.wish {
  text-align: center; border: 1px solid var(--brass-d); border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(120% 150% at 50% -30%, rgba(103,185,168,.08), transparent 55%),
    linear-gradient(180deg, var(--panel-2), var(--panel-0));
  padding: clamp(34px, 5vw, 54px) 24px;
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 18px 50px rgba(0,0,0,.5);
}
.wish h2 { font-family: var(--font-display); color: var(--brass-l); letter-spacing: 1.4px; margin: 0 0 10px; font-size: clamp(20px, 2.8vw, 26px); }
.wish p { color: var(--ink-dim); max-width: 540px; margin: 0 auto 24px; }
.wish p b { color: var(--ink); }
#wish-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#wish-form.hidden { display: none; }
#wish-email {
  width: min(340px, 100%); padding: 13px 16px; border-radius: 12px; font-size: 15px;
  color: var(--ink); background: rgba(10,15,23,.75);
  border: 1px solid var(--bronze-d); outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
  transition: border-color .15s, box-shadow .15s;
}
#wish-email:focus { border-color: var(--amber); box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 14px rgba(233,181,74,.25); }
#wish-email::placeholder { color: rgba(151,161,169,.6); }
#wish-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wish-msg { min-height: 22px; margin: 14px 0 0; font-size: 15px; }
.wish-msg.ok { color: var(--good); font-weight: 600; }
.wish-msg.err { color: var(--rust); }

/* ---- CTA finale ---- */
.cta-final { text-align: center; padding: 96px 0 104px; position: relative; }
.cta-final::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 100%; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 100%, rgba(233,181,74,.14), transparent 70%);
}
.cta-final .sec-title { margin-bottom: 20px; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--brass-d);
  background: linear-gradient(180deg, rgba(19,26,33,.92), rgba(8,12,18,.99));
  padding: 36px 0 44px; font-size: 13.5px; color: var(--ink-dim);
}
footer .cols { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-dim); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--brass-l); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 40px; opacity: .9; }

/* ---- Pagine legali ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-family: var(--font-display); color: var(--brass-l); letter-spacing: 1px; }
.legal h2 { font-family: var(--font-display); color: var(--brass); font-size: 19px; letter-spacing: .6px; margin-top: 34px; }
.legal p, .legal li { color: var(--ink-dim); font-size: 15px; }
.legal li { margin-bottom: 6px; }
.legal .updated { font-size: 13px; color: var(--ink-dim); opacity: .8; }
