/* ===== Matteo Paggi — stile del sito =====
   Per cambiare i colori basta modificare le variabili qui sotto. */
:root {
  --bg: #f6f3ee;
  --text: #1c1b19;
  --muted: #6d6a63;
  --accent: #8a3b12;
  --line: #d9d4ca;
  --max: 1080px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; letter-spacing: .04em; }
p { margin: 0 0 1.1em; }

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

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 243, 238, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif); letter-spacing: .22em; text-transform: uppercase;
  font-size: 1.05rem; color: var(--text); border: 0;
}
.brand:hover { border: 0; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a {
  color: var(--text); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--text); }

/* ----- Hero ----- */
.hero { padding: 64px 0 40px; text-align: center; }
.hero .tagline { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-top: 10px; }
.hero-img { margin: 36px auto 0; max-height: 70vh; object-fit: cover; width: 100%; }

/* ----- Home: foto a tutto schermo come sfondo ----- */
.home .site-header {
  position: absolute; left: 0; right: 0; top: 0;
  background: none; backdrop-filter: none; border-bottom: 0;
}
.home .brand, .home nav a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.home nav a:hover, .home nav a[aria-current="page"] { border-bottom-color: #fff; }

.hero-full {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; background: #5e9a94;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* punto della foto che resta sempre visibile: volto e giraffa. Per spostarlo cambia i due valori (x y) */
  object-position: 45% 19%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%),
              linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 22%);
}
.hero-text { position: relative; width: 100%; padding-bottom: 56px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero-text h1 { margin-bottom: .15em; }
.hero-text .tagline { margin: 0; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; }

@media (max-width: 760px) {
  .hero-bg { object-position: 40% 25%; }
  .hero-text { padding-bottom: 36px; }
  .home .site-header .wrap { padding-top: 12px; }
}

.page-head { padding: 56px 0 8px; }
.page-head .lead { color: var(--muted); font-size: 1.1rem; }

/* ----- Photo frames (colore di riserva se manca la foto) ----- */
.photo { background: #e5e0d6; position: relative; }
.photo img { width: 100%; object-fit: cover; }
.credit { font-size: .78rem; color: var(--muted); margin-top: 6px; text-align: right; }

/* ----- Citazioni ----- */
.quotes { padding: 40px 0 20px; }
blockquote {
  margin: 0 0 2.2em; padding: 0 0 0 22px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.65;
}
blockquote cite {
  display: block; margin-top: .7em; font-family: var(--sans); font-style: normal;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ----- Griglia progetti ----- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; margin: 32px 0 60px; }
.card { display: block; color: var(--text); border: 0; }
.card:hover { border: 0; }
.card .photo { aspect-ratio: 1 / 1; overflow: hidden; }
.card .photo img { height: 100%; transition: transform .4s ease; }
.card:hover .photo img { transform: scale(1.04); }
.card h3 { margin: 14px 0 0; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; }
.card small { color: var(--muted); }

/* ----- Discografia ----- */
.release { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.release .meta { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.release h3 { margin-top: .3em; }
.release ul.credits { list-style: none; padding: 0; margin: 0 0 1em; font-size: .95rem; }
.release .label { font-size: .95rem; color: var(--muted); }
.links { list-style: none; padding: 0; margin: .8em 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links a { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.reviews-title { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 1.4em 0 .3em; }

/* ----- Method ----- */
.method h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; margin-top: 2.4em; }
.method .photo.inline { margin: 24px 0; }
.method pre {
  background: #ece7dd; padding: 16px 20px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .9rem; line-height: 1.7; white-space: pre-wrap; margin: 1em 0 1.4em;
}
.elements { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 1.4em 0; }
.elements div { background: #ece7dd; padding: 16px 20px; }
.elements h4 { text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; margin-bottom: .4em; }
.elements p { margin: 0; font-size: .95rem; }
.downloads { list-style: none; padding: 0; margin: 1em 0; }
.downloads li { margin-bottom: .4em; }

/* ----- Contatti ----- */
.contact-box { text-align: center; padding: 56px 0 72px; }
.contact-box .mail { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.2rem); }
.social { list-style: none; display: flex; justify-content: center; gap: 28px; padding: 0; margin: 28px 0 0; flex-wrap: wrap; }
.social a { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 40px; text-align: center; font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer .social { margin: 0 0 14px; gap: 22px; }

/* ----- Mobile ----- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .release { grid-template-columns: 1fr; gap: 20px; }
  .release .photo { max-width: 320px; }
  .site-header .wrap { justify-content: center; }
  nav ul { justify-content: center; gap: 16px; }
}
