:root {
  --bg: #0c0a09;
  --bg2: #16110e;
  --card: #1c1612;
  --line: #3a2d22;
  --text: #ece3d6;
  --muted: #a89a88;
  --gold: #e0a445;
  --gold2: #f5c66b;
  --ember: #c4581f;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; font-weight: 700; letter-spacing: .01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 10, 9, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand:hover { text-decoration: none; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav .links a { color: var(--muted); }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem;
  padding: 5px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: #1a1208; font-weight: 700; }

/* hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  background: #000 url("img/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,9,.25) 0%, rgba(12,10,9,.55) 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; padding-bottom: 72px; padding-top: 120px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); text-shadow: 0 3px 30px rgba(0,0,0,.7); }
.hero h1 span { color: var(--gold2); }
.hero p.lead { max-width: 620px; margin-top: 18px; font-size: 1.2rem; color: #ddd0bd; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1208; }
.btn.primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { border-color: rgba(255,255,255,.35); color: var(--text); background: rgba(0,0,0,.3); }
.btn.ghost:hover { text-decoration: none; background: rgba(255,255,255,.1); }
.badge-soon { color: var(--muted); font-size: .92rem; }

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 14px; }
.sub { color: var(--muted); max-width: 680px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 42px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feat .ico { font-size: 1.7rem; margin-bottom: 10px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: .96rem; }

.heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 42px; }
.hcard { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; background: #000; }
.hcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hcard:hover img { transform: scale(1.05); }
.hcard figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.92)); font-family: Georgia, serif; font-weight: 700;
}
.hcard figcaption small { display: block; font-family: -apple-system, sans-serif; font-weight: 400; color: var(--muted); font-size: .8rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 42px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-size: .92rem; }
.gallery figcaption b { font-family: Georgia, serif; font-size: 1.02rem; display: block; }

.monsters { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.monsters img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } .nav .links { display: none; } .nav .lang { margin-left: auto; } }

.checks { list-style: none; margin-top: 18px; }
.checks li { padding: 6px 0 6px 30px; position: relative; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 70px 20px 90px; }
.doc h1 { font-size: 2.4rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.4rem; margin: 38px 0 10px; }
.doc p, .doc li { color: #d6cabb; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc .date { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }

footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* language switching */
html[lang="it"] [data-l="en"], html[lang="en"] [data-l="it"] { display: none !important; }

/* store badges: until the App Store URL exists the badge is shown but not clickable */
.store { display: inline-block; line-height: 0; }
.store img { height: 52px; width: auto; }
.store[data-soon] { opacity: .92; cursor: default; }
html[lang="it"] .store img[data-l="en"], html[lang="en"] .store img[data-l="it"] { display: none !important; }

/* author page */
.author-page{max-width:900px;margin:0 auto;padding:70px 20px 90px}
.ah{display:grid;grid-template-columns:230px 1fr;gap:44px;align-items:center}
.ah img{width:230px;height:230px;border-radius:50%;object-fit:cover;border:3px solid var(--orange,var(--gold));box-shadow:0 20px 60px rgba(0,0,0,.5)}
.ah h1{font-size:clamp(2rem,5vw,3rem);margin-bottom:8px}
.ah .role{color:var(--orange,var(--gold));text-transform:uppercase;letter-spacing:.16em;font-size:.8rem;font-weight:700;margin-bottom:14px}
.author-page p{color:#d6cbe6;margin:0 0 16px;max-width:680px}
.author-page h2{font-size:1.4rem;margin:46px 0 16px}
.proj{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.proj a{display:block;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;color:var(--text)}
.proj a:hover{text-decoration:none;border-color:var(--orange,var(--gold))}
.proj b{display:block;font-family:"Arial Black",Georgia,serif;font-size:1.1rem;margin-bottom:6px}
.proj span.d{color:var(--muted);font-size:.93rem}
@media(max-width:700px){.ah{grid-template-columns:1fr;text-align:center;justify-items:center}}
