/* Palette: nero, rame, rosso rame, oro solo per piccoli dettagli */
:root {
  --black: #0e0d0c;
  --surface: #171513;
  --line: #2e2823;
  --text: #f1ebe4;
  --muted: #a69c91;
  --copper: #c07a3e;
  --copper-light: #d8955a;
  --copper-red: #a8442a;
  --gold: #c9a24a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--copper-light); }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-variant-numeric: lining-nums;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 10;
  background: var(--copper); color: var(--black);
  padding: 8px 12px; text-decoration: none;
}

/* Testata */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--copper); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a {
  color: var(--muted); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

/* Struttura */
main { padding: 56px 0 80px; }
.section { margin-top: 96px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px; margin-bottom: 32px;
}
.section-head h2 { font-size: 2rem; margin: 0; }

.eyebrow {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 12px;
}
.lead { font-size: 1.125rem; color: var(--muted); }
.page-head { max-width: 680px; margin-bottom: 48px; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3rem); }

/* Home */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 56px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 24px;
  background: var(--copper); color: var(--black);
  border: 1px solid var(--copper); border-radius: 2px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--copper-red); border-color: var(--copper-red); color: var(--text); }
.btn--ghost { background: transparent; color: var(--copper-light); }
.btn--ghost:hover { background: var(--copper); border-color: var(--copper); color: var(--black); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Opere */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 56px 32px;
}
.art { margin: 0; }
.art img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .6);
}
.art figcaption { margin-top: 16px; }
.art h3 { font-size: 1.25rem; margin: 0; }
.meta { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Contatti */
.contact-mail { margin-top: 32px; font-family: var(--serif); font-size: clamp(1.25rem, 4vw, 1.75rem); overflow-wrap: anywhere; }

/* Testi lunghi (privacy) */
.prose { max-width: 680px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; color: var(--copper-light); }
.prose h2:first-child { margin-top: 0; }

/* 404 */
.notfound { max-width: 560px; margin: 0 auto; padding: 48px 0; text-align: center; }
.notfound .code {
  font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--copper);
  font-variant-numeric: lining-nums;
}
.notfound .actions { justify-content: center; }

/* Piede */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  main { padding: 40px 0 64px; }
  .section { margin-top: 72px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
}
