:root {
  --ink: #111;
  --navy: #1a1c2c;
  --navy2: #262b44;
  --yellow: #ffd23f;
  --red: #e2332e;
  --blue: #7fe0ff;
  --green: #3fbf4f;
  --paper: #fff8e7;
  --text: #2a2a35;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* barra in alto */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 24px;
  background: var(--navy); color: #fff; border-bottom: 4px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--yellow); }
.brand img { image-rendering: pixelated; border-radius: 6px; }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 600; opacity: .85; }
.links a:hover { opacity: 1; color: var(--yellow); }
.langs { display: flex; border: 2px solid #4a5070; border-radius: 6px; overflow: hidden; }
.langs button { background: none; border: 0; color: #cfd6e6; font: 700 12px Inter, sans-serif; padding: 6px 9px; cursor: pointer; }
.langs button.on { background: var(--yellow); color: var(--ink); }

/* pulsanti in stile copertina: bordo nero e ombra piena */
.btn { display: inline-block; text-decoration: none; font-weight: 900; color: var(--ink); background: var(--yellow);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 6px; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-small { padding: 7px 14px; font-size: 14px; box-shadow: 3px 3px 0 #000; }
.btn-big { padding: 15px 26px; font-size: 18px; }
.btn-alt { background: var(--blue); }
.soon-pill { display: inline-block; font-weight: 900; font-size: 20px; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 6px; padding: 14px 26px; transform: rotate(-1.5deg); }
.btn-soon { background: #d9dde8; color: #4a4f63; border-style: dashed; box-shadow: none; cursor: default; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: none; }

/* copertina */
.hero { position: relative; min-height: 82vh; display: grid; place-items: center; text-align: center; padding: 70px 20px 90px;
  background: linear-gradient(180deg, rgba(26,28,44,.55), rgba(26,28,44,.15) 40%, rgba(26,28,44,.75)), url(img/hero.jpg) center / cover; color: #fff;
  border-bottom: 4px solid var(--ink); }
.hero-inner { width: 100%; min-width: 0; max-width: 860px; background: rgba(26,28,44,.62); border: 3px solid var(--ink); border-radius: 14px; padding: 30px 28px 34px; box-shadow: 8px 8px 0 rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.badge { display: inline-block; max-width: 100%; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 4px; transform: rotate(-2deg); }
.logo { font-family: 'Press Start 2P', monospace; font-size: min(64px, calc((100vw - 110px) / 12)); max-width: 100%; margin: 26px 0 18px; color: var(--yellow); white-space: nowrap; transform: translateX(-4px);
  text-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); }
.tagline { font-size: clamp(20px, 3vw, 30px); font-weight: 900; margin: 0 0 12px; text-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(0,0,0,.6); }
.lead { font-size: 18px; max-width: 680px; margin: 0 auto 30px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.note { margin-top: 18px; font-size: 14px; opacity: .9; }
.mobile-only { display: none; }

/* sezioni */
.section { padding: 80px 24px; max-width: 1180px; margin: 0 auto; }
.section h2 { font-family: 'Press Start 2P', monospace; font-size: clamp(18px, 2.6vw, 28px); text-align: center; margin: 0 0 14px; line-height: 1.4; }
.sub { text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 17px; }
.dark { max-width: none; background: var(--navy); color: #e8ecf5; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.dark h2 { color: var(--yellow); }

/* catena */
.chain { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 auto 50px; }
.step { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 8px; padding: 12px 18px; text-align: center; min-width: 140px; }
.step b { display: block; font-size: 30px; }
.step span { display: block; font-weight: 900; }
.step small { color: #6a6a78; }
.chain i { font-style: normal; font-weight: 900; font-size: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 20px 22px; box-shadow: 5px 5px 0 var(--ink); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
.card p { margin: 0; font-size: 15px; }
.card:nth-child(4n+1) { border-top: 10px solid var(--yellow); }
.card:nth-child(4n+2) { border-top: 10px solid var(--blue); }
.card:nth-child(4n+3) { border-top: 10px solid var(--green); }
.card:nth-child(4n+4) { border-top: 10px solid var(--red); }

/* catalogo */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.cat { background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 18px 20px; box-shadow: 5px 5px 0 var(--ink); }
.cat h3 { margin: 0 0 10px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.cat h3 span { font-size: 26px; }
.cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat li { font-size: 13px; font-weight: 700; background: var(--paper); border: 2px solid var(--ink); border-radius: 5px; padding: 3px 8px; }
.products { margin-top: 26px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 20px 24px; box-shadow: 5px 5px 0 var(--ink); border-top: 10px solid var(--yellow); }
.products h3 { margin: 0 0 12px; font-size: 20px; font-weight: 900; }
.prow { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 8px 0; border-top: 1px dashed #ccc; font-size: 14px; }
.prow:first-child { border-top: 0; }
.prow b { font-weight: 900; }
@media (max-width: 760px) { .prow { grid-template-columns: 1fr; gap: 2px; } }

/* galleria */
.gallery { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gallery figure { margin: 0; background: #fff; padding: 8px 8px 0; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 #000; }
.gallery figure:nth-child(odd) { transform: rotate(-.6deg); }
.gallery figure:nth-child(even) { transform: rotate(.6deg); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.gallery figcaption { color: var(--ink); font-weight: 700; font-size: 14px; padding: 9px 4px 11px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 21 / 8; }

/* scarica */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl-card { background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 28px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; align-items: flex-start; }
.dl-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.dl-card p { margin: 0 0 22px; flex: 1; }
.more { text-align: center; margin-top: 34px; font-weight: 700; }

.support { max-width: 860px; }
.dl-box { max-width: 860px; margin: 0 auto; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 7px 7px 0 var(--ink); padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; border-top: 12px solid var(--blue); }
.dl-icon { font-size: 64px; line-height: 1; }
.dl-box h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.dl-box p { margin: 0 0 18px; }
.dl-plats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.dl-plats span { font-weight: 800; font-size: 14px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
@media (max-width: 760px) { .dl-box { grid-template-columns: 1fr; text-align: center; } .dl-plats { justify-content: center; } }
.support-box { background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 7px 7px 0 var(--ink); padding: 36px 32px; text-align: center; border-top: 12px solid var(--red); }
.support-box h2 { margin-bottom: 18px; }
.support-box p { font-size: 17px; max-width: 620px; margin: 0 auto 12px; }
.support-small { color: #6a6a78; font-size: 15px !important; margin-bottom: 26px !important; }
.foot { background: var(--ink); color: #b9c0d0; text-align: center; padding: 30px 20px; font-size: 14px; }
.foot p { margin: 6px 0; }
.foot b { color: var(--yellow); font-family: 'Press Start 2P', monospace; font-size: 11px; }

@media (max-width: 760px) {
  .nav { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .links { display: none; }
  .langs { margin-left: auto; }
  .brand span { font-size: 11px; }
  .hero { min-height: 70vh; padding: 50px 16px 60px; }
  .hero-inner { padding: 24px 18px 28px; }
  .logo { -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--red), 4px 4px 0 var(--ink); transform: translateX(-2px); font-size: calc((100vw - 90px) / 12); }
  .soon-pill { font-size: 17px; padding: 12px 18px; }
  .badge { font-size: 12px; }
  .lead { font-size: 16px; }
  .btn-big { width: 100%; text-align: center; }
  .mobile-only { display: block; }
  .section { padding: 56px 16px; }
  .gallery, .dl { grid-template-columns: 1fr; }
  .gallery figure { transform: none !important; }
  .gallery .wide img { aspect-ratio: 16 / 10; }
  .chain i { transform: rotate(90deg); }
  .chain { flex-direction: column; }
}
