/* Fabio Pini — foglio di stile unico.
   Sistema visivo: "Mercury" — tela onyx, superfici graphite, testo avorio,
   un solo colore d’azione, il rosso del logo, per i pulsanti principali e la serie scelta. Nessuna ombra. */

@font-face { font-family: "Inter"; src: url(../font/inter.woff2) format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../font/archivo.woff2) format("woff2"); font-weight: 300 600; font-stretch: 100% 125%; font-display: swap; }

:root {
  --onyx: #171721;
  --graphite: #1e1e2a;
  --obsidian: #272735;
  --slate: #70707d;
  --mist: #e2e3ed;
  --ash: #c3c3cc;
  --ivory: #ededf3;
  --accento: #b80000;       /* il rosso del logo ("artist") */
  --accento-hover: #d01414;
  --white: #ffffff;
  --hair: rgba(226, 227, 237, .14);

  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 112px);
  --r-card: 12px;
  --r-pill: 40px;
  --r-btn: 32px;
  --ease: cubic-bezier(.16, .84, .34, 1);
  --header-h: 72px;
}

*, *::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(--onyx); color: var(--ivory);
  font: 400 16px/1.5 var(--f-body); letter-spacing: .002em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
strong, b { font-weight: 560; color: inherit; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accento); color: var(--white); }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------ tipografia */
h1, h2, h3, .display {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 480;
  margin: 0; color: var(--ivory); text-wrap: balance;
}
.display { font-size: clamp(42px, 7vw, 72px); line-height: 1.05; letter-spacing: .005em; font-weight: 500; }
h1, .h1 { font-size: clamp(32px, 4.6vw, 49px); line-height: 1.12; letter-spacing: .01em; }
h2, .h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; letter-spacing: .015em; }
h3, .h3 { font-size: 21px; line-height: 1.3; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--ash); font-weight: 400; max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); font-weight: 480;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--slate); }
.muted { color: var(--ash); }
.small { font-size: 14px; letter-spacing: .005em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ impaginazione */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 8px 0 0; }
main { display: block; min-height: 60vh; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--onyx); padding: 10px 18px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--r-pill);
  border: 1px solid var(--ivory); background: transparent; color: var(--ivory);
  font: 400 16px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ivory); color: var(--onyx); }
.btn-primary { background: var(--accento); border-color: var(--accento); color: var(--white); border-radius: var(--r-btn); }
.btn-primary:hover { background: var(--accento-hover); border-color: var(--accento-hover); color: var(--white); }
.btn-quiet { border-color: transparent; background: var(--obsidian); }
.btn-quiet:hover { background: #313142; color: var(--ivory); }
.btn svg, .link-arrow svg { width: 1em; height: 1em; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ivory); font-weight: 420; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ------------------------------------------------------------ intestazione */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid, .page-plain .header {
  background: rgba(23, 23, 33, .78); border-bottom-color: var(--hair);
  -webkit-backdrop-filter: saturate(140%) blur(20px); backdrop-filter: saturate(140%) blur(20px);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; line-height: 0; border-radius: 4px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--ivory); font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.nav a:hover { background: rgba(237, 237, 243, .08); }
.nav a[aria-current="page"], .nav a.is-section { background: rgba(237, 237, 243, .1); }
.header-end { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { display: inline-flex; align-items: center; height: 40px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--hair); }
.lang a, .lang span { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12px; letter-spacing: .1em; text-decoration: none; font-weight: 480; }
.lang span { background: var(--ivory); color: var(--onyx); }
.lang a { color: var(--ash); }
.lang a:hover { color: var(--ivory); }
.lang-drawer { display: none; }
/* quattro lingue non entrano nell'intestazione di un telefono: il selettore passa nel menu */
@media (max-width: 600px) {
  .header .lang { display: none; }
  .lang-drawer { display: inline-flex; }
}
.header .btn-primary { min-height: 40px; padding: 8px 20px; font-size: 15px; }
/* sulla pagina contatti l'azione principale è il modulo: il pulsante in alto torna neutro */
.btn-primary[aria-current="page"] { background: transparent; border-color: var(--hair); color: var(--ash); pointer-events: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--ivory); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
[aria-expanded="true"] .menu-toggle-i, .menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* pannello mobile: fratello dell'intestazione, non figlio (backdrop-filter romperebbe il fixed) */
.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--onyx);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 460; font-size: 28px; line-height: 1.2;
  padding: 14px 0; border-bottom: 1px solid var(--hair); text-decoration: none; letter-spacing: .015em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
  transition-delay: calc(60ms + var(--i, 0) * 30ms);
}
.menu-open .drawer nav a { opacity: 1; transform: none; }
.drawer .actions { margin-top: auto; }
.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav, .header-end .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-end { margin-left: auto; }
  .header.is-solid, .page-plain .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23, 23, 33, .96); }
  .menu-open .header { background: var(--onyx); border-bottom-color: transparent; }
}
@media (min-width: 1181px) { .drawer { display: none; } }

/* ------------------------------------------------------------ home: eroe */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 32px) 0 56px; }
.hero-bg { position: absolute; inset: -60px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(120%); opacity: .35; transform: scale(1.1); transition: opacity 1.2s ease; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 70% 40%, rgba(23,23,33,.25), rgba(23,23,33,.92) 70%), linear-gradient(180deg, rgba(23,23,33,.4) 0%, rgba(23,23,33,0) 30%, var(--onyx) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy .lead { margin: 24px 0 36px; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-height: 74svh; width: 100%; justify-self: end; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; display: flex; align-items: center; justify-content: center; }
.slide.is-on { opacity: 1; }
.slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--slate); transition: background-color .3s, transform .3s var(--ease); }
.dots button[aria-current="true"]::before { background: var(--ivory); transform: scale(1.35); }
@media (max-width: 560px) { .dots { gap: 0; } .dots button { width: 18px; } }
.hero-count { white-space: nowrap; font-size: 12px; letter-spacing: .12em; color: var(--ash); font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 1px; height: 40px; background: linear-gradient(var(--slate), transparent); }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { order: -1; aspect-ratio: 4 / 3.4; max-height: 58svh; justify-self: stretch; }
  .hero-meta { margin-top: 32px; }
  .scroll-cue { display: none; }
}

/* ------------------------------------------------------------ schede */
.card { background: var(--graphite); border-radius: var(--r-card); padding: 32px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* serie di opere */
.serie { position: relative; display: flex; flex-direction: column; background: var(--graphite); border-radius: var(--r-card); overflow: hidden; text-decoration: none; transition: background-color .3s var(--ease); }
.serie:hover { background: #242432; }
.serie-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--obsidian); }
.serie-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.serie:hover .serie-img img { transform: scale(1.04); }
.serie-body { padding: 20px 24px 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.serie-body h3 { font-size: 21px; }
.serie-body span { font-size: 14px; color: var(--ash); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 12 anni: 6 / 4 / 3 / 2 colonne, tutti divisori di 12, nessuna riga monca */
.anni { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .anni { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .anni { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .anni { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.anni .serie-img { aspect-ratio: 1 / 1; }
.anni .serie-body { padding: 14px 16px 16px; }
.anni .serie-body h3 { font-size: 24px; letter-spacing: .02em; }
.sub-head { display: flex; align-items: center; gap: 16px; margin: 56px 0 20px; }
.sub-head h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); font-family: var(--f-body); font-weight: 480; font-stretch: 100%; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* notizie */
.news { display: flex; flex-direction: column; background: var(--graphite); border-radius: var(--r-card); overflow: hidden; text-decoration: none; transition: background-color .3s var(--ease); }
.news:hover { background: #242432; }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--obsidian); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news:hover .news-img img { transform: scale(1.04); }
/* notizia senza immagine: il titolo fa da copertina */
.news-vuota { display: flex; align-items: flex-end; height: 100%; padding: 24px 28px; font-family: var(--f-display); font-stretch: 118%; font-weight: 480; font-size: 26px; line-height: 1.15; color: var(--ash); background: linear-gradient(160deg, var(--obsidian), var(--graphite)); }
.news-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-body h3 { font-size: 21px; line-height: 1.3; }
.news-body p { margin: 0; color: var(--ash); font-size: 15px; }
.news-meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.news-body .link-arrow { margin-top: auto; padding-top: 8px; font-size: 15px; }

/* artista */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { background: var(--graphite); border-radius: var(--r-card); padding: 12px; }
.split-media img, .split-media video { display: block; width: 100%; border-radius: 6px; background: #000; }
.facts { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); color: var(--ash); }
.facts li:last-child { border-bottom: 1px solid var(--hair); }
.facts b { font-family: var(--f-display); font-stretch: 112%; font-weight: 480; color: var(--ivory); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* invito al contatto */
.cta { text-align: center; padding: clamp(48px, 7vw, 88px) 32px; }
.cta .lead { margin: 16px auto 32px; }

/* ------------------------------------------------------------ testata di pagina */
.page-head { padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(32px, 4vw, 48px); }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--ash); letter-spacing: .02em; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--slate); }
.crumbs a { text-decoration: none; color: var(--ash); }
.crumbs a:hover { color: var(--ivory); }
.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.count { font-size: 14px; color: var(--ash); font-variant-numeric: tabular-nums; }

/* barra delle serie (pagine galleria) */
.series-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(23, 23, 33, .9); border-bottom: 1px solid var(--hair); }
@supports (backdrop-filter: blur(1px)) { .series-bar { background: rgba(23, 23, 33, .72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); } }
.series-bar .wrap { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.series-bar .wrap::-webkit-scrollbar { display: none; }
.series-bar a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--hair); text-decoration: none; font-size: 14px; color: var(--ash); font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s, background-color .2s; }
.series-bar a:hover { color: var(--ivory); border-color: var(--slate); }
.series-bar a[aria-current="page"] { background: var(--accento); border-color: var(--accento); color: var(--white); font-weight: 480; }
.series-bar .sep { flex: none; width: 1px; margin: 6px 6px; background: var(--hair); }

/* ------------------------------------------------------------ galleria (opere) */
.opere { columns: 3 320px; column-gap: 12px; padding-top: 32px; }
.opere-sezione + .opere-sezione { margin-top: 72px; }
.opere-sezione > h2 { margin: 0 0 8px; }
.opera { break-inside: avoid; margin: 0 0 12px; background: var(--graphite); border-radius: var(--r-card); padding: 14px 14px 18px; transition: background-color .3s var(--ease); }
.opera:hover { background: #242432; }
.opera a { display: block; text-decoration: none; cursor: zoom-in; }
.opera-img { background: var(--obsidian); border-radius: 4px; overflow: hidden; }
.opera-img img { width: 100%; transition: opacity .6s ease; }
.opera figcaption { padding: 16px 6px 0; }
.opera h2, .opera h3 { font: 480 16px/1.35 var(--f-body); letter-spacing: .01em; margin: 0 0 4px; color: var(--ivory); text-transform: none; }
.opera p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ash); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; background: var(--graphite); border-radius: var(--r-card); text-decoration: none; transition: background-color .3s var(--ease); }
.pager a:hover { background: #242432; }
.pager small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.pager b { font-family: var(--f-display); font-stretch: 112%; font-weight: 480; font-size: 21px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

/* ------------------------------------------------------------ visore */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 15, 22, .97); color: var(--ivory); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 64px 88px 16px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; transition: opacity .25s ease; }
.lb-stage img.is-loading { opacity: .25; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(16px, 4vw, 40px) 24px; }
.lb-cap h2 { font: 480 16px/1.35 var(--f-body); margin: 0 0 4px; letter-spacing: .01em; }
.lb-cap p { margin: 0; font-size: 14px; color: var(--ash); }
.lb-count { font-size: 13px; letter-spacing: .1em; color: var(--ash); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(30, 30, 42, .8); cursor: pointer; transition: background-color .2s, border-color .2s; }
.lb-btn:hover { background: var(--obsidian); border-color: var(--slate); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-stage { padding: 64px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; position: fixed; }
  .lb-bar { padding-right: 132px; }
  .lb-prev { left: auto; right: 72px; } .lb-next { right: 16px; }
}

/* ------------------------------------------------------------ testi lunghi */
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(24px, 2.6vw, 28px); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--slate); }
.prose a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--slate); }
.prose a:hover { text-decoration-color: var(--ivory); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--slate); font-family: var(--f-display); font-stretch: 108%; font-size: 21px; line-height: 1.45; font-weight: 400; color: var(--ivory); }
.prose em { color: var(--ash); }
.prose img { border-radius: var(--r-card); }
.prose figure a { display: inline-block; cursor: zoom-in; }
.prose figure img { max-height: 78vh; width: auto; }
.prose a[data-pulsante] { text-decoration: none; }
.galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; max-width: none; }
.galleria a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--graphite); cursor: zoom-in; }
.galleria img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1s var(--ease); }
.galleria a:hover img { transform: scale(1.04); }

/* articolo */
.article-head { max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); margin-bottom: 20px; }
.article-meta a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--hair); border-radius: var(--r-pill); letter-spacing: .08em; }
.article-meta a:hover { border-color: var(--slate); color: var(--ivory); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.article-cover { position: sticky; top: calc(var(--header-h) + 24px); background: var(--graphite); border-radius: var(--r-card); padding: 12px; }
.article-cover a { display: block; cursor: zoom-in; }
.article-cover img { width: 100%; border-radius: 6px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-cover { position: static; order: -1; max-width: 520px; } }

/* biografia e mostre: anni in colonna */
.timeline { display: grid; gap: 0; max-width: 960px; }
.tl-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--hair); }
.tl-row:last-child { border-bottom: 1px solid var(--hair); }
.tl-row h2 { font-size: 28px; margin: 0; letter-spacing: .02em; }
.tl-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--ash); }
.tl-row li { line-height: 1.55; }
.tl-row li a { color: var(--ivory); }
.caps li { font-size: 14px; letter-spacing: .03em; }
.tl-wide .tl-row { grid-template-columns: 280px 1fr; }
.tl-wide .tl-row h2 { font-size: 24px; }
@media (max-width: 700px) { .tl-row, .tl-wide .tl-row { grid-template-columns: 1fr; gap: 12px; } }
.bio-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; margin-bottom: 72px; }
.bio-intro .prose p:first-child { font-family: var(--f-display); font-stretch: 112%; font-size: 24px; line-height: 1.3; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { border-top: 1px solid var(--hair); }
.contact-list li:last-child { border-bottom: 1px solid var(--hair); }
.contact-list a, .contact-list span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; text-decoration: none; color: var(--ivory); }
.contact-list small { color: var(--ash); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a:hover b { text-decoration: underline; text-underline-offset: .2em; }
.contact-list b { font-weight: 420; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 860px) { .bio-intro { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-photo { margin: 32px 0; background: var(--graphite); border-radius: var(--r-card); padding: 12px; max-width: 360px; }
.contact-photo img { border-radius: 6px; width: 100%; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; color: var(--ash); margin: 0 0 8px 4px; letter-spacing: .005em; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 20px; border-radius: var(--r-btn);
  border: 1px solid rgba(226, 227, 237, .35); background: transparent; color: var(--ivory);
  font: 400 16px/1.4 var(--f-body); transition: border-color .2s, background-color .2s;
}
.field textarea { border-radius: 20px; min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate); }
.field input:hover, .field textarea:hover { border-color: rgba(226, 227, 237, .6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ivory); background: rgba(237, 237, 243, .03); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ash); line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accento); }
.check a { color: var(--ivory); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 14px 20px; border-radius: var(--r-btn); font-size: 15px; background: var(--obsidian); }
.form-status:empty { display: none; }
.form-status.ok { border: 1px solid rgba(237, 237, 243, .4); }
.form-status.err { border: 1px solid #a8a8b6; }
.form .btn-primary { justify-self: start; min-height: 48px; padding: 12px 28px; }
.form .btn-primary[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------ piè di pagina */
.footer { margin-top: 24px; border-top: 1px solid var(--hair); padding: 64px 0 32px; color: var(--ash); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 44px; }
.footer h2 { font: 480 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ivory); }
.footer a:hover { text-decoration: underline; }
.footer-claim { margin: 20px 0 0; max-width: 28em; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 12px; letter-spacing: .01em; line-height: 1.6; }
.footer-bottom a { color: var(--ash); text-decoration: underline; text-decoration-color: var(--slate); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); transition: border-color .2s, background-color .2s; }
.social a:hover { border-color: var(--ivory); background: rgba(237,237,243,.06); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ 404 */
.notfound { min-height: 80vh; display: flex; align-items: center; }
.notfound .display { font-size: clamp(72px, 14vw, 160px); color: var(--obsidian); -webkit-text-stroke: 1px var(--slate); }

/* ------------------------------------------------------------ comparsa */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .header, .drawer, .series-bar, .footer, .lb { display: none !important; }
  body { background: #fff; color: #000; }
}
