/* MECHA — stile condiviso per tutte le pagine */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e73226;
  --ink: #000;
  --paper: #fff;
  --font: "Michroma", "Arial Black", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  text-align: center;
}

/* Header: logo in cima, 40px come su Figma */
.site-header {
  padding: 40px 24px 0;
  display: flex;
  justify-content: center;
}
.logo { display: block; line-height: 0; }
.logo img { display: block; height: 40px; width: auto; }

/* Contenuto: occupa lo spazio tra header e footer, centrato */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px;
}

.hero-art {
  display: block;
  width: min(347px, 86vw);
  height: auto;
}

/* Titolo: 32px, inclinato di 2° in senso antiorario (come Figma) + grana */
.title {
  margin: 0;
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 400;
  line-height: 1;
  transform: rotate(-2deg);
  filter: url(#grunge-title);
}

/* Footer: 12px + grana leggera */
.site-footer {
  padding: 0 24px 48px;
  font-size: 0.75rem;
  line-height: 2.2;
  filter: url(#grunge-small);
}
.site-footer p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* Contenitore degli SVG dei filtri: invisibile ma non display:none */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
