@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/font/press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/font/chakra-petch-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/font/chakra-petch-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("/assets/font/pixelify-sans.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --titolo: "Press Start 2P", ui-monospace, monospace;
  --testo: "Pixelify Sans", system-ui, -apple-system, sans-serif;
  --verde: #82cdab;
  --bianco: #ffffff;
  --ombra: rgba(20, 70, 50, 0.18);
  --raggio: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background-color: var(--verde);
  background-image: url("/assets/sfondo.webp");
  background-size: 400px 400px;
  color: var(--bianco);
  font-family: var(--testo);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.contenitore {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.barra {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.testata {
  text-align: center;
  padding: clamp(8px, 3vw, 32px) 0 clamp(32px, 5vw, 56px);
}

.testata h1 {
  font-family: var(--titolo);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.testata p {
  margin-top: 0.7rem;
  font-size: clamp(1.35rem, 3vw, 2.75rem);
  line-height: 1.2;
  text-wrap: balance;
}

.schede {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
}

.scheda {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--raggio);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px var(--ombra);
  outline-offset: 4px;
}

.scheda img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.scheda:focus-visible { outline: 3px solid var(--bianco); }

@media (hover: hover) {
  .scheda:hover img { transform: scale(1.06); }
}

.scheda:focus-visible img { transform: scale(1.06); }

.nascosto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.attesa {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 24px;
}

.attesa h1 {
  font-family: var(--titolo);
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.35;
  text-wrap: balance;
  text-transform: uppercase;
}

.attesa p { font-size: clamp(1.2rem, 3vw, 1.8rem); }

.attesa a {
  display: inline-block;
  padding: 0.7em 1.4em;
  border: 2px solid var(--bianco);
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.attesa a:hover, .attesa a:focus-visible {
  background-color: var(--bianco);
  color: #2f7a58;
}

@media (prefers-reduced-motion: reduce) {
  .scheda img, .attesa a { transition: none; }
}

.lingua-fissa {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.lingua {
  display: inline-flex;
  border: 2px solid var(--bianco);
  border-radius: 999px;
  overflow: hidden;
}

.lingua button {
  font-family: var(--testo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.35em 0.9em;
  border: 0;
  background: transparent;
  color: var(--bianco);
  cursor: pointer;
}

.lingua button[aria-pressed="true"] {
  background: var(--bianco);
  color: #2f7a58;
}

.lingua button:focus-visible { outline: 3px solid var(--bianco); outline-offset: -5px; }

@media (max-width: 560px) {
  .lingua-fissa { top: 10px; right: 10px; }
  .lingua button { font-size: 0.9rem; }
}

.sostieni {
  display: flex;
  justify-content: center;
  padding-bottom: 36px;
}

.box-testo {
  position: relative;
  display: inline-block;
  font-family: var(--testo);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: #404040;
  text-decoration: none;
  text-shadow: 2px 2px 0 #d0d0c8;
  background: #f8f8f8;
  padding: 16px 52px 16px 26px;
  border-radius: 10px;
  border: 4px solid #e06030;
  box-shadow: inset 0 0 0 3px #f8f8f8, inset 0 0 0 6px #a8a8a8, 0 4px 0 #8a3a18;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.box-testo:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 3px #f8f8f8, inset 0 0 0 6px #a8a8a8, 0 6px 0 #8a3a18;
}

.box-testo:active {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 3px #f8f8f8, inset 0 0 0 6px #a8a8a8, 0 2px 0 #8a3a18;
}

.box-testo:focus-visible { outline: 3px solid var(--bianco); outline-offset: 4px; }

.box-testo .freccia {
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #e06030;
  animation: salta 0.9s steps(2) infinite;
}

@keyframes salta { 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .box-testo, .box-testo .freccia { animation: none; transition: none; }
}

.box-testo.piccolo {
  display: none;
  font-size: 1rem;
  padding: 8px 36px 8px 16px;
  border-width: 3px;
  border-radius: 8px;
  text-shadow: 1px 1px 0 #d0d0c8;
  box-shadow: inset 0 0 0 2px #f8f8f8, inset 0 0 0 4px #a8a8a8, 0 3px 0 #8a3a18;
}

.box-testo.piccolo:hover { box-shadow: inset 0 0 0 2px #f8f8f8, inset 0 0 0 4px #a8a8a8, 0 5px 0 #8a3a18; }

.box-testo.piccolo:active { box-shadow: inset 0 0 0 2px #f8f8f8, inset 0 0 0 4px #a8a8a8, 0 1px 0 #8a3a18; }

.box-testo.piccolo .freccia {
  right: 14px;
  bottom: 10px;
  border-left-width: 5px;
  border-right-width: 5px;
  border-top-width: 7px;
}

@media (min-width: 760px) {
  .box-testo.piccolo { display: inline-block; }
  .sostieni { display: none; }
}

.barra-sx { justify-content: space-between; }

.indietro { text-decoration: none; font-size: 1.1rem; }

.indietro:hover, .indietro:focus-visible { text-decoration: underline; }

.pagina-segnala { display: flex; justify-content: center; padding-top: clamp(24px, 5vw, 56px); padding-bottom: 72px; }

.segnala {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f8f8;
  color: #404040;
  border: 4px solid #e06030;
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px #f8f8f8, inset 0 0 0 6px #a8a8a8, 0 4px 0 #8a3a18;
  padding: 26px clamp(18px, 4vw, 34px) 30px;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.45;
}

.segnala label, .segnala .btn { font-family: var(--testo); font-weight: 600; font-size: 1.15rem; }

.segnala .sg-sezione { text-align: center; font-family: var(--testo); font-weight: 600; font-size: 1.2rem; color: #e06030; margin-top: -4px; }

.segnala h2 { font-family: var(--titolo); font-weight: 400; font-size: clamp(1rem, 3vw, 1.3rem); line-height: 1.4; text-align: center; color: #e06030; }

.segnala > .note { text-align: center; margin-bottom: 6px; }

.segnala label { margin-top: 6px; }

.segnala .facolt { color: #8a8a8a; }

.segnala select, .segnala textarea {
  font: inherit;
  color: #404040;
  background: #ffffff;
  border: 2px solid #a8a8a8;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  font-size: 1rem;
}

.segnala select:disabled { opacity: 0.5; }

.segnala textarea { resize: vertical; min-height: 120px; }

.segnala select:focus-visible, .segnala textarea:focus-visible { outline: 3px solid #e06030; outline-offset: 1px; }

.segnala .sg-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }

.segnala .btn {
  font: inherit;
  color: #ffffff;
  background: #e06030;
  border: 0;
  border-radius: 8px;
  padding: 10px 26px;
  box-shadow: 0 3px 0 #8a3a18;
  cursor: pointer;
}

.segnala .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a3a18; }

.segnala .btn:disabled { opacity: 0.6; cursor: default; }

.segnala .sg-esca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.piede { text-align: center; padding-bottom: 40px; font-size: 1.05rem; }

.piede a { opacity: 0.9; }

.segnala input[type="email"] { font: inherit; font-size: 1rem; color: #404040; background: #ffffff; border: 2px solid #a8a8a8; border-radius: 8px; padding: 10px 12px; width: 100%; }

.segnala input[type="email"]:focus-visible { outline: 3px solid #e06030; outline-offset: 1px; }

.segnala .sg-aiuto { font-size: 0.9rem; color: #8a8a8a; margin-top: -4px; }

.segnala .btn { font-family: var(--testo); font-weight: 600; font-size: 1.15rem; }

.smarrito { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding-top: clamp(8px, 3vw, 32px); padding-bottom: 72px; }

.codice-errore { font-family: var(--titolo); font-size: clamp(3rem, 12vw, 6rem); line-height: 1; opacity: 0.85; letter-spacing: 0.08em; }

.missingno { width: 96px; height: 224px; image-rendering: pixelated; margin-top: -6px; }

.dialogo-retro {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 9.5em;
  text-align: left;
  background: #ffffff;
  color: #181818;
  font-family: var(--titolo);
  font-size: clamp(0.72rem, 2.6vw, 0.95rem);
  line-height: 2;
  padding: 22px 28px 26px;
  border: 4px solid #181818;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px #ffffff, inset 0 0 0 7px #181818;
}

.dialogo-retro p + p { margin-top: 0.8em; }

.dialogo-retro .freccia {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #181818;
  animation: salta 0.9s steps(2) infinite;
}

.scappa {
  font-family: var(--testo);
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  text-decoration: none;
  background: #e06030;
  border-radius: 8px;
  padding: 10px 30px;
  box-shadow: 0 3px 0 #8a3a18;
}

.scappa:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #8a3a18; }

.scappa:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a3a18; }

.scappa:focus-visible { outline: 3px solid var(--bianco); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { .dialogo-retro .freccia { animation: none; } }

.dialogo-retro .nascosta { visibility: hidden; }
