@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/raleway-200-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/raleway-200-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: 'Raleway';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/raleway-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/raleway-300-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: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/raleway-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/raleway-400-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: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/raleway-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/raleway-500-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-400i-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-300-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-400-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-600-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;
}
/* ==========================================================================
   Alessio Migliardi — fotografia di moda
   Foglio di stile unico, nessun framework.

   L'identita' e' quella che c'era: nero, oro, Cormorant Garamond per il
   display e Raleway per il resto. Cambia l'esecuzione.

   Indice
   01 Token           06 Pagina progetto
   02 Reset e base    07 Lightbox
   03 Layout          08 Video
   04 Navigazione     09 Testi e contatti
   05 Griglie         10 Utility
   ========================================================================== */

/* -- 01 Token -------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --black:     #080808;
  --dark:      #101010;
  --mid:       #191919;
  --rule:      #292929;
  --ink:       #ece7df;   /* testo principale */
  --ink-soft:  #b6afa4;   /* testo secondario */
  --ink-faint: #8c8577;   /* meta, didascalie: 5.4:1 sul nero */
  --gold:      #b8964e;
  --gold-lit:  #d4aa6a;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-ui:      'Raleway', ui-sans-serif, system-ui, 'Helvetica Neue', Arial, sans-serif;

  --sidebar: 16rem;
  --gap:     0.75rem;
  --pad:     clamp(1rem, 3.2vw, 2.5rem);

  --tap:  3rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 100rem) {
  :root { --sidebar: 17.5rem; --gap: 1rem; }
}

/* -- 02 Reset e base ------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: clamp(0.9375rem, 0.25vw + 0.875rem, 1rem);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, video, iframe, svg { display: block; max-width: 100%; }
/* display:contents e' necessario: con <picture> come box intermedio un
   'height: 100%' sull'immagine si riferisce al picture, che ha altezza
   automatica, e non vincola nulla. */
picture { display: contents; }
img { height: auto; border: 0; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-lit);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--gold); color: var(--black); }

/* etichetta: nav, meta, didascalie, bottoni */
.label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: var(--black);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* -- 03 Layout ------------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.content {
  padding: var(--pad);
  padding-top: calc(var(--tap) + 1.75rem);
  min-width: 0;
}

.content--prose { max-width: 52rem; }

@media (min-width: 60rem) {
  .layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .content { padding: clamp(2rem, 3.4vw, 3rem) var(--pad) 5rem; }
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tap);
  padding: 0 0.5rem 0 var(--pad);
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar__brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
[aria-expanded='true'].burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded='true'].burger span:nth-child(2) { opacity: 0; }
[aria-expanded='true'].burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(0 0 0 / 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* -- 04 Navigazione ------------------------------------------------------- */

.sidebar {
  position: fixed;
  z-index: 80;
  inset: 0 auto 0 0;
  width: min(19rem, 84vw);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: var(--pad);
  background: var(--dark);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform 0.28s var(--ease);
}
.sidebar.is-open { transform: translateX(0); }

@media (min-width: 60rem) {
  .sidebar {
    position: sticky;
    top: 0;
    width: auto;
    height: 100vh;
    transform: none;
    padding: clamp(2.25rem, 3.4vw, 3rem) clamp(1.25rem, 2vw, 2rem);
  }
  .topbar, .scrim { display: none; }
}

.wordmark { display: block; }

/* Il monogramma e' usato come maschera invece che come immagine: prende il
   colore dal testo (quindi vira in oro al passaggio) e non va ripetuto inline
   su ogni pagina. Prima era un PNG raddrizzato con brightness(0) invert(1). */
.wordmark__mark {
  display: block;
  /* Il marchio e' largo (2.46:1), non piu' quadrato come la vecchia legatura:
     la larghezza e' scelta perche' l'altezza delle capitali resti quella di
     prima, cosi' la presenza ottica nella sidebar non cambia. */
  width: 4.25rem;
  aspect-ratio: 288.89 / 117.64;
  margin-bottom: 0.9rem;
  background: var(--ink);
  -webkit-mask: url("assets/mark.svg") no-repeat center / contain;
  mask: url("assets/mark.svg") no-repeat center / contain;
  transition: background-color 0.2s var(--ease);
}
.wordmark:hover .wordmark__mark { background: var(--gold-lit); }

.wordmark__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--ink);
}

.wordmark__role {
  display: block;
  margin-top: 0.4em;
  color: var(--gold);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sidebar__tagline {
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.nav { flex: 1 1 auto; }

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0 0.55rem 1.75rem;
  color: var(--ink-faint);
  transition: color 0.16s var(--ease);
}

.nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a:hover::before, .nav a:focus-visible::before { transform: translateY(-50%) scaleX(1); }

.nav [aria-current='page'] { color: var(--ink); }
.nav [aria-current='page']::before { transform: translateY(-50%) scaleX(1); }

.sidebar__foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
}

.langs { margin: 0; }
.langs a {
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.langs a:hover, .langs a:focus-visible { color: var(--gold-lit); border-color: var(--gold); }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0;
}
.social a { color: var(--ink-faint); transition: color 0.16s var(--ease); }
.social a:hover, .social a:focus-visible { color: var(--gold-lit); }

.sidebar__foot small {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
}
.sidebar__foot a.quiet:hover { color: var(--ink); }

/* -- 05 Griglie ----------------------------------------------------------- */

.page-head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.page-head__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  margin: 0.55rem 0 0;
}
.page-head h1 {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-style: italic;
  letter-spacing: 0.02em;
}
.page-head__sub {
  margin: 0;
  color: var(--gold);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.page-head__intro {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}
.page-head__count { color: var(--ink-faint); }

/* segnaposto: riserva lo spazio esatto e mostra il colore medio della foto */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--avg, var(--mid));
  aspect-ratio: var(--ar, 1);
}
.ph > img { width: 100%; }

.js-fade .ph > img { opacity: 0; transition: opacity 0.6s var(--ease); }
.js-fade .ph > img.is-loaded { opacity: 1; }

/* muratura a colonne: zero JS, zero riflow */
.masonry { column-count: 1; column-gap: var(--gap); }
.masonry > * { break-inside: avoid; margin: 0 0 var(--gap); }
@media (min-width: 34rem)  { .masonry { column-count: 2; } }
@media (min-width: 60rem)  { .masonry { column-count: 2; } }
@media (min-width: 78rem)  { .masonry { column-count: 3; } }
@media (min-width: 108rem) { .masonry { column-count: 4; } }

/* scheda di progetto nel portfolio */
.tile { position: relative; display: block; overflow: hidden; }

/* Le foto non vengono alterate a riposo: e' il portfolio di un fotografo, e
   uno schiarimento o uno scurimento globale falserebbe il suo lavoro. Il velo
   scuro compare solo al passaggio, e solo per far leggere la didascalia. */
.tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(4 4 4 / 0.88) 0%, rgb(4 4 4 / 0.45) 38%, rgb(4 4 4 / 0) 72%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__veil,
.tile:focus-visible .tile__veil { opacity: 1; }

.tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.1rem 1.1rem;
  transform: translateY(0.5rem);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__caption,
.tile:focus-visible .tile__caption { opacity: 1; transform: translateY(0); }

.tile__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.tile__sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--gold-lit);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* su touch il passaggio del dito non esiste: la didascalia resta visibile */
@media (hover: none) {
  .tile__veil, .tile__caption { opacity: 1; transform: none; }
}

/* didascalia stampata sotto la foto (copertine) */
.caption { padding-top: 0.6rem; }
.caption strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.caption em {
  display: block;
  margin-top: 0.1rem;
  color: var(--gold);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* pulsante che apre la lightbox: un bottone, non un div cliccabile */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

/* -- 06 Pagina progetto --------------------------------------------------- */

.project { max-width: 82rem; }

.project__head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-faint);
  transition: color 0.16s var(--ease);
}
.back-link::before { content: '\2190'; font-size: 1rem; }
.back-link:hover, .back-link:focus-visible { color: var(--gold-lit); }

.project__title {
  margin-top: 1.5rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-style: italic;
  letter-spacing: 0.02em;
}

.project__magazine {
  margin: 0.6rem 0 0;
  color: var(--gold);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.credits {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  margin: 1.75rem 0 0;
}
.credits dt {
  color: var(--gold);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 0.35em;
}
.credits dd {
  margin: 0;
  color: var(--ink);
  /* i ruoli stanno in maiuscoletto spaziato, i nomi propri no: "ANNA NERETTO"
     con 0.2em di spaziatura si legge male e suona urlato */
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.credits dd a {
  border-bottom: 1px solid var(--rule);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.credits dd a:hover { color: var(--gold-lit); border-color: var(--gold); }
/* credito annunciato ma non ancora raccolto: si vede che manca */
.credits dd.pending { color: var(--ink-faint); font-style: italic; }

.project__hero { margin-bottom: var(--gap); }
/* un ritratto a piena colonna riempirebbe due schermate: il tetto lo lega
   allo spazio verticale disponibile, qualunque sia il formato della foto */
.project__hero .ph { max-width: calc(82vh * var(--ar, 1)); }

.project__grid { column-count: 1; column-gap: var(--gap); }
.project__grid > * { break-inside: avoid; margin: 0 0 var(--gap); }
@media (min-width: 48rem)  { .project__grid { column-count: 2; } }
@media (min-width: 100rem) { .project__grid { column-count: 3; } }

.pager {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 48rem) { .pager { grid-template-columns: 1fr 1fr; } }

.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0;
  color: var(--ink-faint);
  transition: color 0.16s var(--ease);
}
.pager a:hover, .pager a:focus-visible { color: var(--ink); }
.pager .dir { color: var(--gold); }
.pager .what { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: 0.02em; }
.pager .next { text-align: right; align-items: flex-end; }

/* -- 07 Lightbox ---------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgb(4 4 4 / 0.985);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem var(--pad);
  color: var(--ink-faint);
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 clamp(0.5rem, 3.5vw, 3.5rem);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  cursor: zoom-in;
}

/* Zoom al dettaglio: la foto va alla sua larghezza piena e il palco scorre.
   place-items passa a start perche' con center il contenuto piu' grande del
   contenitore viene tagliato a sinistra e in alto, e quella parte diventa
   irraggiungibile. */
.lightbox__stage.is-zoom {
  overflow: auto;
  place-items: start;
  overscroll-behavior: contain;
  cursor: grab;
}
.lightbox__stage.is-zoom img { max-width: none; max-height: none; cursor: grab; }
.lightbox__stage.is-dragging,
.lightbox__stage.is-dragging img { cursor: grabbing; }

.lightbox__foot {
  padding: 0.75rem var(--pad) 1.25rem;
  color: var(--ink-faint);
  text-align: center;
  min-height: 3rem;
}

.lightbox__nav { display: flex; align-items: center; gap: 0.25rem; }

.iconbtn {
  display: grid;
  place-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.16s var(--ease);
}
.iconbtn:hover:not(:disabled) { color: var(--ink); }
.iconbtn:disabled { opacity: 0.25; cursor: default; }
.iconbtn[aria-pressed='true'] { color: var(--gold-lit); }
.iconbtn svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.25; }

/* -- 08 Video ------------------------------------------------------------- */

.videos {
  display: grid;
  gap: calc(var(--gap) * 1.75) var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr));
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mid);
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgb(4 4 4 / 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.video__play:hover, .video__play:focus-visible { background: rgb(4 4 4 / 0.45); }
.video__play span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(4 4 4 / 0.35);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video__play:hover span { transform: scale(1.08); border-color: var(--gold-lit); }
.video__play svg { width: 1rem; height: 1rem; fill: currentColor; margin-left: 2px; }

.video__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  padding-top: 0.7rem;
}
.video__title {
  flex: 1 1 12rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.video__time { color: var(--gold); }

/* -- 09 Testi e contatti -------------------------------------------------- */

.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  margin-top: 2.5em;
  font-size: 1.375rem;
  font-style: italic;
}
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.prose a:hover { color: var(--gold-lit); border-color: var(--gold); }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: 0.3em; }

.lede {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
}

.rule {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem 0 2.25rem;
}

.creds { display: grid; gap: 2.5rem; }
.creds section { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.creds h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.creds p { color: var(--ink-soft); line-height: 1.9; }
.creds .count { color: var(--ink-faint); }

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  max-width: 56rem;
}
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-list {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: 0.6rem 1.25rem;
  margin: 0;
}
.contact-list dt { color: var(--gold); padding-top: 0.35em; }
.contact-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.contact-list dd a { border-bottom: 1px solid var(--rule); }
.contact-list dd a:hover { color: var(--gold-lit); border-color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold-lit);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--black); }

.note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--ink-faint);
}

.page-foot {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--ink-faint);
}
.page-foot a:hover { color: var(--ink); }

/* -- 10 Utility ----------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media print {
  .sidebar, .topbar, .scrim, .lightbox, .pager, .skip-link { display: none !important; }
  html, body { background: #fff; color: #000; }
  h1, h2, h3, .credits dd { color: #000; }
  .content { padding: 0; }
  .masonry, .project__grid { column-count: 2; }
  .tile__veil, .tile__caption { display: none; }
}

/* -- Copertine: griglia a righe -------------------------------------------
   La muratura a colonne scorre in verticale: con 31 copertine su 3 colonne, in
   cima alle colonne 2 e 3 finiscono la dodicesima e la ventiduesima. Se
   l'ordine ha un senso — e qui ce l'ha, le testate piu' note per prime — quel
   senso si perde. Una griglia a righe lo rispetta.

   Le copertine restano nelle loro proporzioni vere, senza ritaglio ne' bande:
   tagliare una copertina vorrebbe dire tagliarne la testata. Le didascalie si
   allineano comunque grazie a subgrid, che fa condividere a tutte le celle di
   una riga le stesse due righe della griglia. Dove subgrid non c'e', le
   didascalie seguono la loro immagine: si legge tutto ugualmente. */
.covers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: calc(var(--gap) * 1.75) var(--gap);
}
.cover {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
}
/* le copertine poggiano sulla stessa linea, come su uno scaffale */
.cover__cell { align-self: end; }
