/* Public site (docs/sito-pubblico.md) on the NEAGON design system. Loaded after
   neagon/fonts.css, tokens.css and ui.css: only tokens here, no colour of its own.
   Reference composition: the design system's HomePage (hero with display type and one phrase in
   brand, chamfered brand and accent shapes, coin + secondary buttons; surface bands below).
   Night theme by default (neagon/theme.js), never the system's light mode. */

html { scroll-padding-top: calc(var(--nav-height) + var(--space-4)); }
body { overflow-x: hidden; }
img { height: auto; display: block; }

/* Under the bar: project status (colour + icon + words) and the language switch. */
.barra-sotto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
               padding-top: var(--space-4); padding-bottom: var(--space-2); }
.stato { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; flex: 1 1 20rem;
         color: var(--ink-muted); font-size: 14px; }
.stato .ng-icon { color: var(--info); margin-top: 1px; }
.entra { white-space: nowrap; }

/* ---- Sections: bg alternates with surface bands ---- */
.fascia { padding: var(--space-12) 0; }
main > .fascia:nth-of-type(even), .fascia-band { background: var(--surface); }
.intestazione { padding: var(--space-12) 0 var(--space-6); }
.intestazione .attacco, .eroe .attacco { color: var(--ink-muted); max-width: 42rem; }
.testa-sezione { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.testa-sezione h2 { margin: 0; }
.testa-sezione p { margin: var(--space-1) 0 0; }
@media (min-width: 768px) { .fascia { padding: var(--space-16) 0; } .intestazione { padding-top: var(--space-16); } }
.occhiello { margin: 0 0 var(--space-6); }
.display-l, .display-xl { margin: 0 0 var(--space-6); overflow-wrap: break-word; hyphens: manual; }
.display-xl em, .display-l em { font-style: inherit; color: var(--brand); }

/* ---- Hero ---- */
.eroe { padding: var(--space-12) 0 var(--space-12); overflow: hidden; }
.eroe-dentro { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.eroe-testo { min-width: 0; }
.eroe .display-xl { max-width: 18ch; }
@media (min-width: 1000px) { .eroe .display-xl { font-size: clamp(56px, 5.6vw, 88px); } }
@media (max-width: 640px) { .eroe .ng-btn-lg { white-space: normal; text-align: left; width: 100%; } }
.eroe .attacco { margin: 0 0 var(--space-8); }
.eroe-vetrina { position: relative; min-width: 0; }
.eroe-vetrina .vetrina { position: relative; z-index: 1; margin: 0; max-width: none; }
.forma { position: absolute; pointer-events: none; }
.forma-1 { right: -24px; top: -24px; width: 62%; height: 70%; background: var(--brand); }
.forma-2 { left: -16px; bottom: -20px; width: 28%; height: 26%; background: var(--accent); }
@media (min-width: 1000px) {
  .eroe { padding: var(--space-24) 0 var(--space-16); }
  .eroe-dentro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-12); }
  .eroe-vetrina { grid-column: 2; grid-row: 1; }
  .eroe-testo { grid-column: 1; grid-row: 1; }
}
@media (max-width: 640px) {
  .eroe { padding-top: var(--space-8); }
  .forma-1 { right: -16px; top: -12px; }
}

/* ---- Cards ---- */
.griglia { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.griglia-larga { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
@media (min-width: 768px) { .griglia { gap: var(--space-6); } }
/* Four landing points: 2 x 2 on medium screens, one row on wide ones (never 3 + 1). */
@media (min-width: 600px) { .griglia-punti { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .griglia-punti { grid-template-columns: repeat(4, 1fr); } }
.scheda { position: relative; background: var(--bg); padding: var(--space-6); box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg)); }
main > .fascia:nth-of-type(odd) .scheda { background: var(--surface); }
.scheda > :last-child { margin-bottom: 0; }
.scheda h2 { font-size: 20px; }
.scheda-accesso { display: flex; flex-direction: column; }
.scheda-accesso .tasti { margin-top: auto; padding-top: var(--space-2); }

.riquadro { max-width: var(--container-text); }
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg)); }
.punti { margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.punti li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3); }
.punti li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; background: var(--accent);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px); }
.bollino { margin-left: var(--space-2); font-size: 11px; }
.tasti { margin: var(--space-6) 0 0; }

.freccia { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); font-weight: 600; }

/* ---- Steps ---- */
.numero { width: 48px; height: 48px; display: grid; place-items: center; font: 700 24px/1 var(--font-mono);
  color: var(--on-accent); background: var(--accent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }

/* ---- Game covers (GameCard-like, 3:4) ---- */
.striscia { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) { .striscia { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); } }
.striscia img, .cartuccia img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface-raised);
  clip-path: polygon(var(--cut-md) 0, 100% 0, 100% calc(100% - var(--cut-md)), calc(100% - var(--cut-md)) 100%, 0 100%, 0 var(--cut-md)); }

.catalogo { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6);
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.cartuccia { display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg)); }
.cartuccia img { clip-path: none; }
.cartuccia-testo { padding: var(--space-4); }
.cartuccia h2 { font-size: 20px; text-transform: uppercase; margin-bottom: var(--space-2); }
.cartuccia-testo p { font-size: 15px; margin-bottom: var(--space-2); }
.etichette { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.etichette span { display: inline-flex; align-items: center; padding: 5px var(--space-2); font: 700 11px/1 var(--font-sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
.etichette span + span { color: var(--on-brand); background: var(--brand); box-shadow: none; }

.intestazione .vetrina { margin: 0 0 var(--space-8); }
.tenue { color: var(--ink-muted); font-size: 14px; }

/* ---- Footer ---- */
.piede .ng-logo img { height: 20px; }

/* Landing (2026-11-27): alpha note under the hero buttons, two-ways-in grid, closing INSERT COIN band. */
.eroe .nota-alpha { margin: var(--space-3) 0 0; color: var(--ink-muted); font-size: 14px; letter-spacing: 0.04em; }
.fine { text-align: center; }
.fine-dentro { max-width: var(--container-text); }
.fine-titolo { margin: 0 0 var(--space-4); color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; animation: fine-lampeggia 1.2s steps(2, start) infinite; }
.fine .body-l { color: var(--ink-muted); margin: 0 auto var(--space-6); }
@keyframes fine-lampeggia { to { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .fine-titolo { animation: none; } }
.ng-fx-off .fine-titolo { animation: none; }
