/* Pagine dei singoli progetti (lavori/*.html): stessi colori, font e misure della home */
@font-face { font-family: "Geist"; font-weight: 300 600; font-display: swap; src: url(../fonts/Geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 300 600; font-display: swap; src: url(../fonts/Geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url(../fonts/GeistMono-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url(../fonts/InstrumentSerif-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/InstrumentSerif-italic-latin.woff2) format("woff2"); }

:root {
  --bg: #3d3d3d; --raised: #474747; --line: rgba(238, 234, 227, .2);
  --paper: #eeeae3; --mute: #c4c0b8; --red: #e42220; --focus: #ff7266;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 18px; background: var(--paper); color: var(--bg); text-decoration: none; border-radius: 999px; font-size: .9rem; }
.skip:focus { top: 12px; }
.wrap { padding-inline: var(--gut); max-width: 1480px; margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
em { font-style: italic; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--paper); color: var(--bg); font: 500 .9rem/1 var(--sans); text-decoration: none; transition: background .2s; }
.btn:hover { background: #fff; }

header { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(rgba(61,61,61,.96), rgba(61,61,61,.85) 70%, rgba(61,61,61,0)); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: block; width: 84px; height: 37px; }
nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9rem; opacity: .8; }
nav > a:not(.btn):hover { opacity: 1; }
nav .btn { min-height: 44px; padding: 0 18px; font-size: .85rem; }

.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; text-decoration: none; color: var(--mute); font-size: .95rem; }
.back:hover { color: var(--paper); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; padding-block: clamp(16px, 3vw, 40px) clamp(28px, 4vw, 48px); }
.head h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); margin-top: 10px; }
.yr { font: 400 .2em/1 var(--mono); letter-spacing: .04em; color: var(--mute); vertical-align: top; margin-left: .5em; position: relative; top: .5em; }
.head p { margin: 0; color: var(--mute); max-width: 52ch; }
.head p.cr { margin-top: 10px; color: var(--paper); font-style: italic; font-family: var(--display); font-size: 1.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 12px; margin-top: 18px; border-top: 1px solid var(--line); }

.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gal figure { margin: 0; background: var(--raised); }
.gal .full { grid-column: 1 / -1; }
.gal img { display: block; width: 100%; height: auto; }

.cta { display: grid; justify-items: start; gap: 16px; margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.cta p { margin: 0; color: var(--mute); max-width: 52ch; }
.next { display: grid; gap: 8px; margin-top: clamp(40px, 6vw, 72px); padding-block: 28px; border-top: 1px solid var(--line); text-decoration: none; }
.next .nt { font: 400 clamp(2rem, 5vw, 4rem)/1 var(--display); }
.next:hover .nt em { color: #fff; }

footer { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }

@media (max-width: 720px) {
  .head, .gal { grid-template-columns: 1fr; }
  nav > a:not(.btn) { display: none; }
}
