/* La galleria delle 77 grafiche. Foglio a parte: il generatore non lo carica,
   quindi queste regole non pesano su chi arriva per creare uno sfondo. */
:root {
  --bg: #f4f2ee; --surface: #ffffff; --text: #1a1a1a; --muted: #696969;
  --border: #e2ddd5; --accent: #bf2028;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2e3440; --surface: #3b4252; --text: #eceff4; --muted: #a3b1c4; --border: #4c566a; --accent: #e0555c; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0 20px 60px;
}
.testa {
  display: flex; align-items: center; gap: 14px; max-width: 1120px; margin: 0 auto;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.marchio img { border-radius: 8px; }
.marchio b { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.marchio span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.lingue { margin-left: auto; display: flex; gap: 6px; }
.lingue a {
  font-size: 13px; padding: 5px 12px; text-decoration: none; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.lingue a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
main { max-width: 1120px; margin: 0 auto; padding-top: 34px; }
h1 { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.intro { color: var(--muted); max-width: 68ch; }
.torna { margin: 14px 0 26px; }
.torna a { color: var(--accent); text-decoration: none; font-weight: 600; }
.torna a:hover { text-decoration: underline; }
.griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
figure { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 480 / 854;
  background: var(--border);
}
figcaption { padding: 10px 12px 12px; font-size: 13.5px; }
figcaption b { display: block; font-weight: 700; }
figcaption span { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.chiusa { margin-top: 34px; color: var(--muted); font-size: 13.5px; max-width: 68ch; }
.piede {
  max-width: 1120px; margin: 40px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--muted);
}
.piede .cuore { color: #e25555; }
.piede a { color: inherit; }
.piede p { margin: 0 0 6px; }
.piede p:first-child a { color: var(--accent); text-decoration: none; font-weight: 600; }
.piede p:first-child a:hover { text-decoration: underline; }
