@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plex-mono-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plex-mono-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plex-mono-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plex-mono-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;
}
/* ==========================================================================
   Silvia Sadecka — make-up artist & hair stylist
   Foglio di stile unico. Nessun framework: il sito e' fatto di immagini,
   il CSS deve pesare quanto una didascalia.

   Indice
   01 Token          06 Griglie e gallerie
   02 Reset e base   07 Pagina progetto
   03 Layout         08 Lightbox
   04 Wordmark       09 Motion (video)
   05 Navigazione    10 Testi, footer, utility
   ========================================================================== */

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

:root {
  color-scheme: light dark;

  --bg:        #ffffff;
  --bg-soft:   #f5f3f1;
  --bg-invert: #101010;
  --ink:       #121212;
  --ink-soft:  #6d6a67;
  --ink-faint: #a5a19d;
  --rule:      #e5e1dd;
  --accent:    #fe0101;
  --accent-ink:#c60000;

  --font-mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: 'Cormorant Garamond', Iowan Old Style, Palatino, Georgia, serif;

  --sidebar: 16rem;
  --gap:     0.75rem;
  --pad:     clamp(1rem, 3.5vw, 2.75rem);

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

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0c0c0c;
    --bg-soft:   #161616;
    --bg-invert: #f2f0ee;
    --ink:       #f1efed;
    --ink-soft:  #a09d9a;
    --ink-faint: #6b6865;
    --rule:      #272524;
    --accent:    #ff3b30;
    --accent-ink:#ff6b62;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.6;
  font-weight: 400;
  -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, non cosmetico: con <picture> come box
   intermedio un 'height: 100%' sull'immagine si riferisce al picture, che ha
   altezza automatica, e quindi non vincola nulla. Le copertine non riempivano
   il riquadro e nella lightbox un ritratto alto poteva sfondare lo schermo. */
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-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.25rem; }

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

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

::selection { background: var(--accent); color: #fff; }

/* etichetta monospace: nav, meta, didascalie, bottoni */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  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.5rem);
  min-width: 0;
}

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

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

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

.topbar__brand {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  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.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* -- 04 Wordmark ----------------------------------------------------------- */

.sidebar {
  position: fixed;
  z-index: 80;
  inset: 0 auto 0 0;
  width: min(19rem, 84vw);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: var(--pad);
  background: var(--bg);
  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(1.75rem, 3vw, 2.75rem) clamp(1rem, 1.9vw, 1.75rem);
  }
  .topbar, .scrim { display: none; }
}

.wordmark { display: block; }

.wordmark__name {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.1875rem);
  white-space: nowrap;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.wordmark__role {
  display: block;
  margin-top: 0.35em;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

/* -- 05 Navigazione -------------------------------------------------------- */

.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.45rem 0 0.45rem 1.05rem;
  color: var(--ink-soft);
  transition: color 0.16s var(--ease);
}

.nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.2s 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 {
  background: var(--accent);
  transform: translateY(-50%) scaleX(1);
}

.sidebar__foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--ink-faint);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin: 0;
}

.social a {
  color: var(--ink-soft);
  transition: color 0.16s var(--ease);
}
.social a:hover, .social a:focus-visible { color: var(--accent-ink); }

.sidebar__foot small {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}
.sidebar__foot a.quiet:hover { color: var(--ink); }

/* -- 06 Griglie e gallerie ------------------------------------------------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.page-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.page-head .count { color: var(--ink-faint); }
.page-head p {
  flex: 1 1 20rem;
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* segnaposto: riserva lo spazio esatto e mostra il colore medio della foto,
   cosi' non c'e' salto di layout ne' lampo bianco */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--avg, var(--bg-soft));
  aspect-ratio: var(--ar, 1);
}
.ph > img, .ph > picture > img { width: 100%; }

.js-fade .ph > picture > img,
.js-fade .ph > img {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.js-fade .ph > picture > img.is-loaded,
.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: 3; } }
@media (min-width: 90rem)  { .masonry { column-count: 4; } }
@media (min-width: 120rem) { .masonry { column-count: 5; } }

/* griglia regolare per gli indici */
.cards {
  display: grid;
  gap: calc(var(--gap) * 1.5) var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}

.card { display: block; }
.card__frame, .card__text, .card__title, .card__sub { display: block; }

/* Il formato del riquadro lo decide il build, dalla mediana delle copertine
   della sezione: gli editoriali sono doppie pagine orizzontali, la pubblicita'
   e' quasi tutta verticale. Un formato unico ne avrebbe tagliata male una. */
.card__frame {
  position: relative;
  overflow: hidden;
  background: var(--avg, var(--bg-soft));
  aspect-ratio: var(--card-ar, 4 / 5);
}
.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__frame img,
.card:focus-visible .card__frame img { transform: scale(1.035); }

.card__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.5), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover .card__frame::after,
.card:focus-visible .card__frame::after { opacity: 1; }

.card__text { padding-top: 0.6rem; }
.card__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.card__sub {
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-style: italic;
}

/* didascalia sotto le copertine */
.caption {
  padding-top: 0.5rem;
  color: var(--ink-soft);
}
.caption strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.caption em { font-size: 0.9375rem; }

/* 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;
}

/* -- 07 Pagina progetto --------------------------------------------------- */

.project { max-width: 78rem; }

.project__head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}
.project__eyebrow { color: var(--ink-faint); }
.project__eyebrow a:hover { color: var(--accent-ink); }
.project__title { margin-top: 0.6rem; }
.project__sub {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  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(80vh * 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; } }

.credits {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.4rem 1.5rem;
  grid-template-columns: auto 1fr;
  max-width: 32rem;
}
.credits dt {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.3em;
}
.credits dd { margin: 0; }

/* precedente / successivo */
.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-soft);
  transition: color 0.16s var(--ease);
}
.pager a:hover, .pager a:focus-visible { color: var(--ink); }
.pager .dir { color: var(--ink-faint); }
.pager a:hover .dir { color: var(--accent-ink); }
.pager .what { font-size: 1.0625rem; }
.pager .next { text-align: right; align-items: flex-end; }

/* -- 08 Lightbox ---------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: color-mix(in srgb, var(--bg) 96%, #000);
}
.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-soft);
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 clamp(0.5rem, 4vw, 4rem);
}
.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; }
.iconbtn[aria-pressed='true'] { color: var(--accent-ink); }

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

.iconbtn {
  display: grid;
  place-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.16s var(--ease);
}
.iconbtn:hover:not(:disabled) { color: var(--ink); }
.iconbtn:disabled { opacity: 0.25; cursor: default; }
.iconbtn svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.25; }

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

/* -- 09 Motion (video) ---------------------------------------------------- */

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

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.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(0 0 0 / 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.video__play:hover, .video__play:focus-visible { background: rgb(0 0 0 / 0.32); }
.video__play span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  /* il cerchio deve restare leggibile anche su un fermo immagine chiarissimo */
  background: rgb(0 0 0 / 0.3);
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.video__play:hover span { transform: scale(1.08); background: rgb(0 0 0 / 0.3); }
.video__play svg { width: 1rem; height: 1rem; fill: currentColor; margin-left: 2px; }

.video__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding-top: 0.6rem;
}
.video__title {
  flex: 1 1 12rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.video__time { color: var(--ink-faint); }

/* -- 10 Testi, footer, utility -------------------------------------------- */

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

.lede {
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
}

.creds {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.5rem;
}
.creds section { border-top: 1px solid var(--rule); padding-top: 1rem; }
.creds h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.creds p { color: var(--ink); }

.contact-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .contact-card { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}
.contact-list {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 0.55rem 1.25rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.contact-list dt { color: var(--ink-faint); padding-top: 0.35em; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { border-bottom: 1px solid var(--rule); }
.contact-list a:hover { color: var(--accent-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.35rem;
  background: var(--ink);
  color: var(--bg);
  transition: background 0.18s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--accent-ink); color: #fff; }

.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); }

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

.empty {
  padding: 4rem 0;
  color: var(--ink-soft);
  text-align: center;
}

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

/* nota a pie' di sezione (es. avviso sui video di terze parti) */
.note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--ink-faint);
}

/* selettore di lingua, sopra i social nella barra laterale */
.langs {
  margin: 0;
  padding-bottom: 0.15rem;
}
.langs a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  transition: color 0.16s var(--ease);
}
.langs a:hover, .langs a:focus-visible { color: var(--accent-ink); }

/* -- 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; }
