/* Giuseppe Sacheri — sito ufficiale. Realizzato da VIEMME. */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f1e7;
  --paper-2: #ece4d4;
  --card: #fffdf8;
  --ink: #1c2b33;
  --ink-2: #4c5a62;
  --ink-3: #7a858a;
  --sea: #1d5d78;
  --sea-2: #2f7f9e;
  --ochre: #b8863b;
  --line: #ddd2bf;
  --shadow: 0 1px 2px rgb(28 43 51 / .06), 0 8px 24px -12px rgb(28 43 51 / .25);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--sans); font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-2); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 1.6em; }
h3 { font-size: 1.45rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.kicker { font: 600 .75rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); margin: 0 0 .9rem; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; font: 500 .95rem/1 var(--sans);
  background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--ink); transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--sea); border-color: var(--sea); color: #fff; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .85rem; }

/* ---------- header e navigazione ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(246 241 231 / .88); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgb(221 210 191 / .7); }
.is-home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgb(12 20 25 / .55), rgb(12 20 25 / 0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s; }
.is-home .site-header.is-solid { background: rgb(246 241 231 / .92); border-bottom-color: rgb(221 210 191 / .7); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { font: 600 1.55rem/1 var(--serif); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; letter-spacing: .01em; }
.brand span { font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.brand:hover { color: var(--ink); }
.is-home .site-header:not(.is-solid) .brand, .is-home .site-header:not(.is-solid) .brand span { color: #fff; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav__group { position: relative; }
.nav__group > button, .nav__single > a {
  font: 500 .9rem/1 var(--sans); color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nav__group > button svg { width: 10px; height: 10px; transition: transform .2s; }
.nav__group > button:hover, .nav__single > a:hover, .nav__group.is-open > button { background: rgb(28 43 51 / .07); }
.nav__group.is-active > button, .nav__single > a[aria-current] { color: var(--sea); }
.is-home .site-header:not(.is-solid) .nav__group > button, .is-home .site-header:not(.is-solid) .nav__single > a { color: #fff; }
.is-home .site-header:not(.is-solid) .nav__group > button:hover, .is-home .site-header:not(.is-solid) .nav__group.is-open > button { background: rgb(255 255 255 / .14); }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__group.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__group.is-open > button svg { transform: rotate(180deg); }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.3; }
.nav__sub a:hover { background: var(--paper); color: var(--sea); }
.nav__sub a[aria-current] { color: var(--sea); font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center; position: relative; z-index: 2; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    content: ""; display: block; width: 22px; height: 1.6px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
  .nav-toggle span:first-child::before { position: absolute; top: -7px; }
  .nav-toggle span:first-child::after { position: absolute; top: 7px; }
  .nav-toggle { color: var(--ink); }
  .is-home .site-header:not(.is-solid) .nav-toggle { color: #fff; }
  .nav-open .nav-toggle { color: var(--ink) !important; }
  .nav-open .nav-toggle span:first-child { background: transparent; }
  .nav-open .nav-toggle span:first-child::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; background: var(--paper); padding: calc(var(--header-h) + 8px) var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .brand, .nav-open .brand span { color: var(--ink) !important; position: relative; z-index: 2; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__group, .nav__single { border-bottom: 1px solid var(--line); }
  .nav__group > button, .nav__single > a { width: 100%; justify-content: space-between; padding: 18px 4px; font: 600 1.6rem/1 var(--serif); color: var(--ink) !important; border-radius: 0; }
  .nav__group > button:hover, .nav__group.is-open > button { background: none !important; }
  .nav__group > button svg { width: 14px; height: 14px; }
  .nav__sub { position: static; translate: none; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px; min-width: 0;
    opacity: 1; visibility: visible; display: none; }
  .nav__group.is-open .nav__sub { display: block; }
  .nav__sub a { font-size: 1.05rem; padding: 10px 4px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; color: #fff; background: #0e171c; overflow: hidden; display: flex; align-items: flex-end; }
.hero__slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.slide.is-on img { transform: scale(1); }
.slide figcaption { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top, rgb(10 17 21 / .85) 0%, rgb(10 17 21 / .35) 45%, rgb(10 17 21 / .1) 70%, rgb(10 17 21 / .4) 100%); pointer-events: none; }
.hero__text { position: relative; z-index: 2; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 14vh, 140px); }
.hero__text .kicker { color: #e3c48f; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 7.4rem); font-weight: 500; margin: 0 0 .25em; line-height: .95; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 40em; color: rgb(255 255 255 / .86); margin: 0 0 1.8rem; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.hero__nav { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 14px; }
.hero__nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(0 0 0 / .15); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.hero__nav button:hover { background: rgb(255 255 255 / .18); }
.hero__cap { font: italic 500 1.15rem/1.2 var(--serif); color: rgb(255 255 255 / .9); min-width: 10ch; text-align: right; }
@media (max-width: 640px) { .hero__nav { left: var(--gutter); right: auto; } .hero__cap { text-align: left; } .hero__nav { flex-direction: row; } }

.quote-band { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(24px, 4vw, 40px); }
.quote-band blockquote { margin: 0 auto; max-width: 900px; text-align: center; }
.quote-band p { font: italic 500 clamp(1.6rem, 3.4vw, 2.5rem)/1.3 var(--serif); margin: 0 0 1rem; color: var(--ink); }
.quote-band footer { font-size: .9rem; color: var(--ink-3); }
.quote-band footer::before { content: ""; display: block; width: 48px; height: 1px; background: var(--ochre); margin: 0 auto 14px; }

.home-sec { padding-top: clamp(40px, 6vw, 72px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.sec-head h2 { margin: 0 0 .35em; }
.sec-head a { font-size: .92rem; text-decoration: none; white-space: nowrap; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cards { gap: 14px; } }
.card { display: block; text-decoration: none; color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); transition: transform .5s ease, box-shadow .5s; box-shadow: var(--shadow); }
.card:hover img { transform: translateY(-4px); }
.card__t { display: block; font: 600 1.5rem/1.1 var(--serif); margin-top: 14px; }
.card__s { display: block; font-size: .86rem; color: var(--ink-3); margin-top: 3px; }
.card:hover .card__t { color: var(--sea); }
.home-intro { padding-bottom: 40px; }
.home-intro .prose { margin: 0 auto; }

/* ---------- pagine interne ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); background:
  radial-gradient(120% 120% at 100% 0%, rgb(47 127 158 / .12), transparent 55%),
  radial-gradient(90% 120% at 0% 100%, rgb(184 134 59 / .1), transparent 60%); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46em; margin: 1rem 0 0; }
.page-body { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 1.1em; hyphens: auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin: 1.6em 0 .5em; color: var(--ink); }
.prose .center { text-align: center; }
.prose em { color: var(--ink-2); }
.prose .ref { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; color: var(--sea); background: rgb(29 93 120 / .08);
  padding: 5px 8px; border-radius: 4px; margin: .6em 0 .5em; }
.prose .block, .prose .doc { margin: 0 0 2.2em; }
.prose .doc + .doc { border-top: 1px solid var(--line); padding-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.figure { margin: 1.6em auto; max-width: 560px; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
.figure .lb { display: block; cursor: zoom-in; }
.page-body > .prose:first-child { margin-bottom: 2.5em; }

/* ---------- griglia opere ---------- */
.grid { list-style: none; margin: 0; padding: 0; columns: 4 260px; column-gap: 22px; }
.grid li { break-inside: avoid; margin: 0 0 26px; }
.grid figure { margin: 0; }
.grid .lb { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); cursor: zoom-in; position: relative; }
.grid .lb img { width: 100%; transition: transform .6s ease, filter .6s; }
.grid .lb:hover img { transform: scale(1.035); }
.grid .lb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); border-radius: inherit; pointer-events: none; }
.grid figcaption { padding: 10px 2px 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.grid figcaption strong { display: block; font: 600 1.22rem/1.2 var(--serif); color: var(--ink); }
.grid figcaption span { display: block; margin-top: 2px; }
.grid--wide { columns: 2 420px; }
.grid--expo figcaption { display: flex; flex-direction: column; gap: 6px; }
.pdf { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; text-decoration: none; }

/* ---------- mostre ---------- */
.exhibitions { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.exhibitions a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: baseline;
  padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.exhibitions a:hover { border-color: var(--sea-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.exhibitions .yr { grid-row: span 2; font: 600 2rem/1 var(--serif); color: var(--ochre); }
.exhibitions .pl { font-weight: 500; line-height: 1.3; }
.exhibitions .dl { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--sea); }

/* ---------- cronologia e lettere ---------- */
.years { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; margin: -12px 0 28px;
  background: linear-gradient(var(--paper) 80%, transparent); scrollbar-width: thin; }
.years a { flex: none; font: 500 .82rem/1 var(--sans); padding: 8px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.years a:hover, .years a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.prose--timeline { border-left: 1px solid var(--line); padding-left: clamp(18px, 4vw, 40px); max-width: calc(72ch + 40px); }
.prose--timeline .year { position: relative; font-size: 2.6rem; color: var(--sea); margin-top: 1.4em; }
.prose--timeline .year::before { content: ""; position: absolute; left: calc(-1 * clamp(18px, 4vw, 40px) - 6px); top: .45em; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ochre); }
.letters-year h2 { font-size: 2.2rem; color: var(--sea); margin: 1.4em 0 .5em; }
.letter { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; max-width: 860px; }
.letter summary { cursor: pointer; padding: 16px 20px; font: 600 1.3rem/1.25 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.letter summary::-webkit-details-marker { display: none; }
.letter summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--ochre); transition: transform .2s; }
.letter[open] summary::after { transform: rotate(45deg); }
.letter summary:hover { color: var(--sea); }
.letter .prose { padding: 0 20px 18px; }

/* ---------- mappe ---------- */
.map-block h2 { margin-top: 1.2em; }
.map-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 18px; }
.map { height: 460px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-2); z-index: 0; }
.map-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; columns: 1; }
.map-list button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 4px; font: 400 .95rem/1.3 var(--sans); color: var(--ink); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.map-list button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); flex: none; }
.map-list button:hover, .map-list button.is-on { color: var(--sea); }
@media (max-width: 760px) { .map-wrap { grid-template-columns: 1fr; } .map { height: 340px; } .map-list { max-height: none; columns: 2; } }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content { font: 600 1.1rem/1.2 var(--serif); margin: 10px 14px; }

/* ---------- navigazione tra sezioni ---------- */
.pager { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 64px; }
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); font: 600 1.35rem/1.15 var(--serif); padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; max-width: 48%; background: var(--card); }
.pager a:hover { border-color: var(--sea-2); color: var(--sea); }
.pager small { font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pager__next { text-align: right; margin-left: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .75); font-size: .92rem; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 28px; padding-top: 64px; padding-bottom: 40px; }
.footer__grid h3 { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #e3c48f; margin: 4px 0 14px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin: 0 0 7px; line-height: 1.35; }
.brand--footer { color: #fff; font-size: 1.8rem; margin: 0 0 14px; }
.brand--footer span { color: rgb(255 255 255 / .55); }
.footer__about p { margin: 0 0 14px; }
.footer__about .btn { color: var(--ink); }
.footer__about .btn:hover { text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 20px; padding-bottom: 28px; font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { font-weight: 600; letter-spacing: .04em; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- lightbox ---------- */
.lbx { position: fixed; inset: 0; z-index: 200; background: rgb(10 15 18 / .96); color: #fff; display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lbx.is-open { opacity: 1; visibility: visible; }
.lbx__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; min-height: 0; touch-action: pan-y; }
.lbx__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgb(0 0 0 / .5); transition: opacity .25s; }
.lbx__stage img.is-loading { opacity: .35; }
.lbx__bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 24px 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.lbx__cap strong { display: block; font: 600 1.4rem/1.2 var(--serif); }
.lbx__cap span { font-size: .9rem; color: rgb(255 255 255 / .7); }
.lbx__meta { display: flex; gap: 16px; align-items: center; font-size: .85rem; color: rgb(255 255 255 / .7); white-space: nowrap; }
.lbx__meta a { color: #fff; }
.lbx button { position: absolute; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lbx button:hover { background: rgb(255 255 255 / .2); }
.lbx__close { top: 12px; right: 12px; }
.lbx__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lbx__next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lbx__stage { padding: 56px 8px 8px; }
  .lbx__prev, .lbx__next { top: auto; bottom: 8px; translate: none; }
  .lbx__bar { flex-direction: column; align-items: flex-start; padding: 10px 16px 64px; }
}
body.lbx-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .pager, .years, .hero__nav { display: none; }
  body { background: #fff; }
}

/* segnaposto mappe */
.pin { background: none; border: 0; }
.prose .date { font: 600 1.15rem/1.3 var(--serif); color: var(--ink); margin-bottom: .35em; }
@media (max-width: 600px) {
  .grid { columns: 2; column-gap: 12px; }
  .grid li { margin-bottom: 18px; }
  .grid figcaption { font-size: .78rem; }
  .grid figcaption strong { font-size: 1.05rem; }
  .grid--wide { columns: 1; }
}
@media (min-width: 900px) {
  .letters-year { display: grid; grid-template-columns: 180px minmax(0, 860px); gap: 0 24px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
  .letters-year h2 { margin: 6px 0 0; position: sticky; top: calc(var(--header-h) + 70px); }
  .letters-year .letter { grid-column: 2; }
}
