@font-face { font-family: "Bricolage"; font-weight: 400; font-display: swap; src: url("fonts/bricolage-regular.woff") format("woff"); }
@font-face { font-family: "Bricolage"; font-weight: 700; font-display: swap; src: url("fonts/bricolage-bold.woff") format("woff"); }
@font-face { font-family: "Erica"; font-weight: 400; font-display: swap; src: url("fonts/erica-one.woff") format("woff"); }

:root {
  --night: #0a1128;
  --night2: #111c3d;
  --night3: #1a2a57;
  --text: #eef2ff;
  --muted: #a9b6d8;
  --gold: #ffc21a;
  --gold2: #ff9a1f;
  --gold-d: #9a5a00;
  --dusk: #ff6f61;
  --line: rgba(255, 255, 255, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--text); background: var(--night); font: 400 17px/1.6 "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #ffe08a; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; }
.disp { font-family: "Erica", "Bricolage", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #2a1700; padding: 10px 14px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* barra in alto */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .25s ease, box-shadow .25s ease; }
.top.solid, .top.always { background: rgba(10, 17, 40, .94); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 38px; height: 38px; }
.brand span { font-family: "Erica", sans-serif; text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.lang { display: inline-flex; margin-left: 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; overflow: hidden; }
.lang button { font: inherit; font-weight: 700; font-size: 14px; color: var(--text); background: transparent; border: 0; padding: 8px 11px; min-height: 40px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #2a1700; }
.nav .btn-mini { margin-left: 8px; }

/* pulsanti in stile gioco */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: "Erica", sans-serif; text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; border: 0; cursor: pointer; color: #3a1d00; background: linear-gradient(180deg, #ffe27a 0%, var(--gold) 45%, var(--gold2) 100%);
  border-radius: 14px; padding: 18px 36px 16px; font-size: 26px; min-height: 60px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 6px 0 var(--gold-d), 0 14px 30px rgba(0, 0, 0, .45);
  transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: #3a1d00; transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 8px 0 var(--gold-d), 0 18px 34px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--gold-d), 0 6px 14px rgba(0, 0, 0, .4); }
.btn svg { width: 22px; height: 22px; }
.btn-mini { font-size: 15px; padding: 10px 16px 9px; min-height: 44px; border-radius: 10px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--gold-d); }
.btn-mini:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 5px 0 var(--gold-d); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* apertura a tutto schermo */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 110px 20px 120px; isolation: isolate; }
.hero-bg { position: absolute; inset: -3%; z-index: -2; background: #1a1430 center / cover no-repeat; background-image: url("img/hero.jpg"); animation: drift 30s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 55% at 50% 45%, rgba(10, 17, 40, .15) 0%, rgba(10, 17, 40, .55) 100%),
  linear-gradient(180deg, rgba(10, 17, 40, .55) 0%, rgba(10, 17, 40, 0) 22%, rgba(10, 17, 40, 0) 60%, var(--night) 100%); }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.hero-logo svg { width: min(620px, 86vw, 62vh); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.hero p.tag { font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; margin: 10px auto 30px; max-width: 32em; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero .plat { margin: 22px 0 0; font-size: 15px; color: #dfe6ff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.hero .plat span + span::before { content: "·"; margin: 0 10px; color: var(--gold); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--text); opacity: .8; width: 44px; height: 44px; display: grid; place-items: center; animation: bob 1.8s ease-in-out infinite; }
.scroll-hint svg { width: 28px; height: 28px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* sezioni con immagini grandi */
.show { position: relative; padding: 90px 0; }
.show .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.show.flip .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.show.flip .pic { order: 2; }
.pic { position: relative; }
.pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); transform: rotate(-1.2deg); border: 4px solid #fff; }
.show.flip .pic img { transform: rotate(1.2deg); }
.pic .stamp { position: absolute; top: -18px; left: 22px; background: var(--dusk); color: #fff; font-family: "Erica", sans-serif; text-transform: uppercase; font-size: 15px; padding: 8px 14px 6px; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); letter-spacing: .04em; }
.show.flip .pic .stamp { left: auto; right: 22px; transform: rotate(4deg); }
.copy .kicker { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; margin: 0 0 12px; }
.copy h2 { font-size: clamp(32px, 4vw, 50px); }
.copy p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.copy .num { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.copy .num div { border-left: 3px solid var(--gold); padding-left: 12px; }
.copy .num b { display: block; font-family: "Erica", sans-serif; font-size: 34px; line-height: 1; color: #fff; font-weight: 400; }
.copy .num span { color: var(--muted); font-size: 14px; font-weight: 700; }
.band2 { background: var(--night2); }

/* trailer */
.trailer { padding: 100px 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, #24366e 0%, var(--night) 75%); text-align: center; }
.trailer h2 { font-size: clamp(34px, 4.6vw, 58px); }
.trailer p { color: var(--muted); margin: 14px auto 36px; max-width: 34em; }
.trailer video { width: min(340px, 80vw); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px; background: #000; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 40px 80px rgba(0, 0, 0, .6); object-fit: cover; }

/* galleria */
.gal { padding: 90px 0 100px; }
.gal h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 30px; }
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.strip .shot:first-child { grid-row: span 2; }
.shot { padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; border-radius: 6px; position: relative; }
.shot img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .4s ease, opacity .3s ease; opacity: .92; }
.shot:hover img { transform: scale(1.04); opacity: 1; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1280px, 94vw); overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5, 8, 20, .9); }
dialog.lightbox img { width: 100%; border-radius: 6px; }
dialog.lightbox .close { position: absolute; right: -6px; top: -54px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #111; cursor: pointer; display: grid; place-items: center; }
dialog.lightbox .close svg { width: 22px; height: 22px; }

/* ultimo aggiornamento */
.news { padding: 0 0 90px; }
.news .box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; border: 1px solid var(--line); background: var(--night2); border-radius: 10px; padding: 26px 30px; }
.news .ver { font-family: "Erica", sans-serif; font-size: 54px; line-height: 1; color: var(--gold); }
.news h2 { font-size: 22px; font-family: "Bricolage", sans-serif; font-weight: 700; }
.news p { margin: 6px 0 0; color: var(--muted); }

/* chiusura */
.final { position: relative; text-align: center; padding: 130px 20px; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/4_notte_fuochi.jpg") center 30% / cover no-repeat; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(10, 17, 40, .55) 30%, rgba(10, 17, 40, .55) 70%, var(--night) 100%); }
.final h2 { font-size: clamp(36px, 5vw, 66px); text-shadow: 0 4px 20px rgba(0, 0, 0, .7); margin-bottom: 30px; }

/* note di aggiornamento */
.page-head { padding: 140px 0 40px; text-align: center; background: linear-gradient(180deg, #1c2c5c 0%, var(--night) 100%); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); }
.page-head p { color: var(--muted); margin: 14px auto 28px; max-width: 36em; }
.notes { max-width: 860px; margin: 0 auto; padding: 20px 0 90px; }
.note { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.note .v { font-family: "Erica", sans-serif; font-size: 46px; line-height: 1; color: var(--gold); }
.note .v small { display: block; font-family: "Bricolage", sans-serif; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.note h2 { font-size: 24px; font-family: "Bricolage", sans-serif; font-weight: 700; }
.note .new { display: inline-block; background: var(--dusk); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; margin-left: 8px; vertical-align: 4px; }
.note ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.note li { margin: 5px 0; }
.note li::marker { color: var(--gold); }

footer { border-top: 1px solid var(--line); padding: 30px 0 36px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--gold); }

/* animazione del logo (come la schermata di caricamento del gioco) */
.idp-anim .idp-crown { transform-box: view-box; transform-origin: 500px 300px; animation: idpCrown .65s cubic-bezier(.3,1.55,.5,1) .2s both; }
.idp-anim .idp-rv { animation: idpRv .7s ease-out .45s both; }
.idp-anim .idp-imp { transform-box: view-box; transform-origin: 500px 665px; animation: idpPop .5s cubic-bezier(.3,1.55,.5,1) .6s both; }
.idp-anim .idp-rib { transform-box: view-box; transform-origin: 500px 820px; animation: idpRib .45s cubic-bezier(.3,1.55,.5,1) .85s both; }
.idp-anim .idp-car { offset-rotate: auto; opacity: 0; }
.idp-anim .idp-c1 { animation: idpRun1 3.4s cubic-bezier(.5,0,.55,1) .9s infinite; }
.idp-anim .idp-c2 { animation: idpRun2 3.4s cubic-bezier(.5,0,.55,1) .9s infinite; }
@keyframes idpCrown { from { transform: scale(.3); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes idpRv { from { transform: translateX(0); } to { transform: translateX(1000px); } }
@keyframes idpPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes idpRib { from { transform: scaleX(.6); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

@media (max-width: 900px) {
  .show .wrap, .show.flip .wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .show.flip .pic { order: 0; }
  .show { padding: 60px 0; }
  .strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .strip .shot:first-child { grid-column: span 2; grid-row: auto; }
  .news .box { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .nav a.opt { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .nav .btn-mini { display: none; }
  .btn { font-size: 22px; padding: 16px 28px 14px; }
  .hero-bg { background-image: url("img/hero_small.jpg"); }
  .note { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .copy .num b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .idp-anim .idp-rv { transform: translateX(1000px); }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
