/* ==========================================================================
   Olga Radicchi · prototipo del sito (BOZZA)
   HTML, CSS e JS senza framework. Nessuna risorsa esterna.
   Font self-hosted: Bricolage Grotesque (SIL OFL 1.1, vedi fonts/OFL.txt)
   Icone: Phosphor Icons (MIT), inline nello sprite di ogni pagina
   ========================================================================== */

/* 1. Font ---------------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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;
}

/* 2. Token --------------------------------------------------------------- */
:root {
  --paper: #f8f8f6;
  --paper-2: #efeeeb;
  --ink: #121212;
  --ink-2: #57544f;
  --line: rgb(18 18 18 / 0.14);
  --accent: #b49c9a;       /* cipria, preso dai petali del disegno con il volto */
  --accent-deep: #7a5c5b;  /* stessa tinta scurita: testo e focus, AA su --paper */
  --accent-wash: #f1e7e5;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --col-gap: clamp(1rem, 2.2vw, 2rem);
  --maxw: 90rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (max-width: 759px) {
  :root { --header-h: 4rem; }
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; text-wrap: balance; }
p, blockquote, figure, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* 4. Utility ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -6rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.muted { color: var(--ink-2); }

/* 5. Header e navigazione ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: var(--header-h);
}
.wordmark {
  font-size: 1.3rem; font-weight: 760; font-stretch: 80%;
  letter-spacing: -0.01em; line-height: 1; text-decoration: none;
}
.site-nav ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.site-nav a {
  text-decoration: none; font-weight: 500; padding-block: 0.4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-toggle { display: none; }

@media (max-width: 759px) {
  .site-nav ul { gap: 1rem; font-size: 0.95rem; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px; padding: 0.5rem 0 0.5rem 0.75rem;
    background: none; border: 0; font-weight: 600; cursor: pointer;
  }
  .menu-toggle .icon--close { display: none; }
  .menu-open .menu-toggle .icon--open { display: none; }
  .menu-open .menu-toggle .icon--close { display: block; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--paper);
    padding: 2rem var(--gutter) 3rem;
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .js.menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.25s ease; }
  .js .site-nav ul { flex-direction: column; gap: 0.25rem; font-size: 1rem; }
  .js .site-nav a {
    display: inline-block;
    font-size: clamp(2.6rem, 13vw, 3.75rem); font-weight: 760; font-stretch: 78%;
    line-height: 1.1; letter-spacing: -0.02em;
  }
  .menu-open, .menu-open body { overflow: hidden; }
}

/* 6. Bottoni e link ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 3.1rem; padding: 0.85rem 1.35rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .icon, .link-arrow .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon, .link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none; padding-bottom: 0.2rem; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Titoli condivisi */
.display, .page-title {
  font-weight: 800; font-stretch: 78%; letter-spacing: -0.035em; line-height: 0.86;
}
.display { font-size: clamp(3.75rem, 11.2vw, 11.5rem); }
.display span { display: block; }
.page-title { font-size: clamp(3.4rem, 9vw, 8.5rem); padding-bottom: 0.05em; }
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 4.25rem); font-weight: 760; font-stretch: 80%;
  letter-spacing: -0.028em; line-height: 0.95;
}

/* 7. Hero (home) --------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  min-height: min(calc(100svh - var(--header-h)), 58rem);
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
}
.hero__text { grid-column: 1 / span 6; grid-row: 1; position: relative; z-index: 1; }
.hero__text .display {
  /* alone color carta: stacca le lettere dalle linee del disegno dove si sovrappongono */
  text-shadow:
    4px 0 var(--paper), -4px 0 var(--paper), 0 4px var(--paper), 0 -4px var(--paper),
    3px 3px var(--paper), -3px -3px var(--paper), 3px -3px var(--paper), -3px 3px var(--paper);
}
.hero__sub {
  margin: clamp(1.25rem, 2vw, 2rem) 0 clamp(1.5rem, 2.5vw, 2.25rem);
  font-size: clamp(1.1rem, 1.35vw, 1.35rem); color: var(--ink-2); max-width: 30ch;
}
.hero__art { grid-column: 6 / -1; grid-row: 1; align-self: end; justify-self: end; }
.hero__art img {
  width: auto;
  max-height: calc(100svh - var(--header-h) - 3rem);
  mix-blend-mode: multiply; /* il fondo bianco del disegno sparisce nella carta */
  /* il disegno originale è tagliato a sinistra: sfumo il bordo */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%);
}
@media (min-width: 1024px) {
  .hero__art { grid-column: 5 / -1; }
}
/* tablet e telefono: nome sopra, disegno sotto a tutta larghezza */
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: clamp(1.75rem, 4vw, 3rem); }
  .hero__text, .hero__art { grid-column: 1; }
  .hero__art { grid-row: 2; justify-self: stretch; margin: clamp(2.25rem, 5vw, 3.5rem) calc(var(--gutter) * -1) 0; }
  .hero__art img { width: 100%; max-height: none; }
  .hero .display { font-size: clamp(3.5rem, 25vw, 8rem); text-shadow: none; }
}

/* 8. Citazione (home) ---------------------------------------------------- */
.statement { padding-block: clamp(4.5rem, 11vw, 10rem); }
.statement__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.statement__title {
  grid-column: 1 / -1;
  font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 800; font-stretch: 78%;
  letter-spacing: -0.035em; line-height: 0.9; color: var(--accent-deep);
}
.statement__body { grid-column: 4 / -1; }
.statement__quote {
  font-size: clamp(1.75rem, 3.5vw, 3.35rem); line-height: 1.1;
  font-weight: 480; font-stretch: 90%; letter-spacing: -0.02em;
  max-width: 26ch; text-indent: -0.4em;
}
.statement__foot {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2.5rem;
}
.statement__source { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 759px) {
  .statement__body { grid-column: 1 / -1; }
  .statement__quote { text-indent: 0; }
}

/* 9. Opere scelte (home) ------------------------------------------------- */
.works-preview { padding-bottom: clamp(5rem, 10vw, 9rem); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.trio {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.trio .work:nth-child(1) { grid-column: 1 / span 7; grid-row: 1; }
.trio .work:nth-child(2) { grid-column: 9 / span 4; grid-row: 1; align-self: end; }
.trio .work:nth-child(3) { grid-column: 4 / span 5; grid-row: 2; }
@media (min-width: 760px) and (max-width: 1023px) {
  .trio .work:nth-child(1) { grid-column: 1 / span 8; }
  .trio .work:nth-child(2) { grid-column: 9 / span 4; }
  .trio .work:nth-child(3) { grid-column: 3 / span 7; }
}
@media (max-width: 759px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio .work:nth-child(n) { grid-column: 1; grid-row: auto; align-self: start; }
}

/* 10. Mostre (home) ------------------------------------------------------ */
.shows { padding-bottom: clamp(5rem, 10vw, 9rem); }
.shows__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 2rem;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--ink);
}
.shows__head { grid-column: 1 / span 4; display: grid; align-content: start; gap: 1.5rem; }
.show-card {
  grid-column: 6 / -1;
  background: var(--paper-2);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  display: grid; gap: 0.6rem;
}
.show-card__kicker { font-size: 0.95rem; font-weight: 600; }
.show-card__date {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem); font-weight: 800; font-stretch: 78%;
  letter-spacing: -0.035em; line-height: 0.95; margin-block: 0.5rem 0.75rem;
}
.show-card__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 650; font-stretch: 90%; line-height: 1.15; }
.show-card__place { font-size: 1.1rem; }
.show-card__note { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.5rem; }
@media (max-width: 1023px) {
  .shows__head { grid-column: 1 / -1; }
  .show-card { grid-column: 1 / -1; }
}

/* 11. Fascia contatti ---------------------------------------------------- */
.cta-band { border-top: 1px solid var(--ink); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem 3rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta-band__text {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem); font-weight: 760; font-stretch: 80%;
  letter-spacing: -0.025em; line-height: 1; max-width: 18ch;
}

/* 12. Pagine interne: testata, filtri, galleria --------------------------- */
.page-head { padding-block: clamp(2.25rem, 5.5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-intro { margin-top: clamp(1.25rem, 2vw, 1.75rem); max-width: 48ch; font-size: 1.15rem; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.filters button {
  appearance: none; background: transparent; border: 1px solid var(--ink);
  min-height: 44px; padding: 0.55rem 1.05rem; cursor: pointer; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filters button:hover { background: var(--paper-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.gallery {
  columns: 3 17rem;
  column-gap: var(--col-gap);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.gallery > * { break-inside: avoid; margin-bottom: clamp(2.25rem, 3.5vw, 3rem); }

.work__media { display: block; position: relative; overflow: hidden; background: #fff; cursor: zoom-in; }
.work__media img { width: 100%; transition: transform 0.8s var(--ease); }
.work__media:hover img { transform: scale(1.015); }
.work figcaption { margin-top: 0.85rem; display: grid; gap: 0.15rem; font-size: 0.95rem; line-height: 1.4; }
.work__title { font-weight: 620; justify-self: start; }
.work__meta { color: var(--ink-2); font-size: 0.875rem; justify-self: start; }

/* Segnaposto foto: tratteggio che richiama il segno a penna */
.ph {
  position: relative; display: grid; place-items: center;
  aspect-ratio: var(--ar, 4 / 5);
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(-45deg, transparent 0 7px, rgb(122 92 91 / 0.16) 7px 8px);
  border: 1px solid var(--line);
}
.ph__label {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  max-width: 85%; padding: 0.5rem 0.8rem; text-align: center;
  background: var(--paper); font-size: 0.85rem; font-weight: 550; line-height: 1.3;
}
.ph__label small { font-size: 0.78rem; font-weight: 400; color: var(--ink-2); }

.text-tile { border: 1px solid var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); }
.text-tile blockquote {
  font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2;
  font-weight: 480; font-stretch: 90%; letter-spacing: -0.01em;
}
.text-tile figcaption { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-2); }

/* 13. Biografia ---------------------------------------------------------- */
.bio {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 2.5rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.bio__portrait { grid-column: 1 / span 5; }
.bio__portrait .ph { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.bio__text { grid-column: 7 / -1; display: grid; align-content: start; gap: 1.25rem; font-size: 1.15rem; max-width: 60ch; }
.bio__lead { font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.22; font-weight: 500; font-stretch: 92%; }
@media (max-width: 759px) {
  .bio__portrait, .bio__text { grid-column: 1 / -1; }
  .bio__portrait .ph { position: static; }
}

.critique {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: clamp(1.75rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 3vw, 2.5rem) clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--ink);
}
.critique__title {
  grid-column: 1 / -1;
  font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 800; font-stretch: 78%;
  letter-spacing: -0.035em; line-height: 0.9; color: var(--accent-deep);
}
.critique__body { grid-column: 4 / span 8; display: grid; gap: 1.4rem; font-size: 1.2rem; line-height: 1.62; max-width: 62ch; }
.critique__author { font-size: 1rem; color: var(--ink-2); }
@media (max-width: 759px) { .critique__body { grid-column: 1 / -1; font-size: 1.1rem; } }

.exhibitions { padding-block: clamp(1.5rem, 2.5vw, 2rem) clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--ink); }
.exhibitions .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.show-list { max-width: 56rem; }
.show-list li {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem;
  padding-block: 1.25rem; border-top: 1px solid var(--line);
}
.show-list__year { font-size: 1.5rem; font-weight: 760; font-stretch: 80%; line-height: 1.1; font-variant-numeric: tabular-nums; justify-self: start; }
.show-list__name { font-size: 1.2rem; font-weight: 620; line-height: 1.3; }
.show-list__place { color: var(--ink-2); }
@media (max-width: 759px) { .show-list li { grid-template-columns: 4.5rem minmax(0, 1fr); } }

/* 14. Contatti ----------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 3rem; align-items: center;
  padding-block: clamp(2.25rem, 5.5vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}
.contact__text { grid-column: 1 / span 7; }
.contact__art { grid-column: 9 / -1; }
.contact__art img { width: 100%; mix-blend-mode: multiply; }
.contact__lead {
  margin-top: clamp(1.5rem, 2.5vw, 2rem); max-width: 24ch;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.18; font-weight: 500; font-stretch: 92%;
}
.contact__list { margin-top: clamp(2rem, 4vw, 3rem); }
.contact__list > div {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding-block: 1rem; border-top: 1px solid var(--line);
}
.contact__list dt { color: var(--ink-2); font-size: 0.95rem; }
.contact__list dd { font-size: 1.15rem; font-weight: 520; overflow-wrap: anywhere; }
.contact__list dd .todo { font-weight: 400; }
@media (max-width: 1023px) {
  .contact__text { grid-column: 1 / -1; }
  .contact__art { grid-column: 4 / -1; }
}
@media (max-width: 759px) {
  .contact__list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .contact__art { grid-column: 3 / -1; }
}

/* 15. Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer__brand p { margin-top: 0.6rem; }
.footer-links { display: grid; gap: 0.45rem; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer__legal { margin-top: clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-2); font-size: 0.85rem; }
.has-draft-toggle .site-footer { padding-bottom: 5.5rem; }
@media (max-width: 759px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* 16. Lightbox ----------------------------------------------------------- */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: var(--paper); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 0; }
.lightbox__stage img {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100dvh - 7.5rem);
  object-fit: contain; mix-blend-mode: multiply;
}
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.25rem;
}
.lightbox__caption { display: grid; gap: 0.1rem; font-size: 0.95rem; line-height: 1.4; }
.lightbox__caption > span { justify-self: start; }
.lightbox__caption .work__meta { font-size: 0.875rem; }
.lightbox__controls { display: flex; gap: 0.5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem;
  background: transparent; border: 1px solid var(--ink); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }
html:has(.lightbox[open]) { overflow: hidden; }

/* 17. Modalità bozza: evidenzia i segnaposto (da togliere alla pubblicazione) */
.draft-on .todo {
  background: var(--accent-wash); color: var(--accent-deep);
  outline: 1px dashed rgb(122 92 91 / 0.55); outline-offset: 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.draft-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem 0.6rem 0.7rem;
  background: var(--ink); color: var(--paper); border: 0;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 8px 28px rgb(18 18 18 / 0.18);
}
.draft-toggle__switch {
  position: relative; width: 2rem; height: 1.1rem; flex: none;
  border: 1px solid rgb(248 248 246 / 0.6);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.draft-toggle__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: calc(1.1rem - 6px); height: calc(1.1rem - 6px);
  background: var(--paper); transition: transform 0.25s var(--ease), background-color 0.25s ease;
}
.draft-toggle[aria-pressed="true"] .draft-toggle__switch { background: var(--accent); border-color: var(--accent); }
.draft-toggle[aria-pressed="true"] .draft-toggle__switch::after { transform: translateX(0.9rem); background: var(--ink); }
@media (max-width: 759px) {
  .draft-toggle { right: 0.75rem; bottom: 0.75rem; }
  .draft-toggle__more { display: none; }
}

/* 18. Movimento ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* entrata della home: prima il nome, poi il disegno */
  .hero .display span { animation: rise 1.1s var(--ease) both; }
  .hero .display span + span { animation-delay: 0.08s; }
  .hero__sub, .hero .btn { animation: rise 1.1s var(--ease) 0.2s both; }
  .hero__art img { animation: fade-in 1.6s ease 0.15s both; }

  /* comparsa allo scorrimento, solo CSS (dove supportato) */
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }

  .lightbox[open] { animation: fade-in 0.35s ease; }
  .lightbox__stage img.is-shown { animation: lb-img 0.5s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
@keyframes lb-img { from { opacity: 0; transform: scale(0.985); } }
