/* ============================================================
   MARCELLO AITIANI — sito d'artista
   Palette: carta calda, inchiostro, azzurro "Sofia"
   ============================================================ */

:root {
  --paper: #f5f2ea;
  --paper-2: #ece7da;
  --paper-3: #e3ddce;
  --ink: #201c15;
  --ink-2: #57503f;
  --ink-3: #8a8271;
  --line: rgba(32, 28, 21, 0.14);
  --line-soft: rgba(32, 28, 21, 0.08);
  --azure: #2e5e8c;
  --azure-deep: #1c3c5e;
  --azure-pale: #e4ebf2;
  --night: #15120c;
  --night-2: #201c13;
  --night-line: rgba(245, 242, 234, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--azure); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 18px;
}
.serif { font-family: var(--serif); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(32, 28, 21, 0.07); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--azure); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--azure);
  transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .nav-facebook { color: var(--azure); }

/* ---------- Dropdown "Opere" ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop-toggle {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 6px 4px 6px 0; position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.25s;
}
.nav-drop-toggle::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--azure);
  transition: width 0.3s var(--ease);
}
.nav-drop-toggle:hover,
.nav-drop.open .nav-drop-toggle { color: var(--ink); }
.nav-drop-toggle:hover::after,
.nav-drop.open .nav-drop-toggle::after { width: 100%; }
.nav-drop-toggle svg {
  width: 9px; height: 9px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.nav-drop.open .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(21, 18, 12, 0.16);
  min-width: 236px; padding: 10px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-drop-menu a {
  display: block; padding: 10px 24px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: 0.18em; color: var(--ink-2);
}
/* Ponte invisibile sopra il menu: il mouse che scende da «Opere» verso «Pitture»
   resta dentro .nav-drop e il menu non si chiude nel vuoto di 14px. */
.nav-drop-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
  background: transparent;
}
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover, .nav-drop-menu a[aria-current="page"] {
  color: var(--ink); background: rgba(46, 94, 140, 0.07);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 10px; position: relative;
}
.nav-toggle span {
  display: block; height: 1.6px; width: 22px; background: var(--ink);
  margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 28px 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 0; font-size: 13px; width: 100%; border-bottom: 1px solid var(--line-soft); }

  /* Dropdown in colonna (menu mobile) */
  .nav-item { width: 100%; display: block; }
  .nav-drop-toggle {
    padding: 13px 0; font-size: 13px;
    width: 100%; justify-content: space-between;
  }
  .nav-drop-toggle::after { display: none; }
  .nav-drop-menu {
    position: static; transform: none; min-width: 0; width: 100%;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 8px; display: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: none;
  }
  /* same specificity as the desktop .open rule, later in the file: wins */
  .nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu,
  .nav-drop:focus-within .nav-drop-menu { transform: none; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop-menu a { padding: 11px 0 11px 16px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: center; justify-content: center;
  color: #f2ede2;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 1.8s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 18, 12, 0.55) 0%, rgba(21, 18, 12, 0.28) 45%, rgba(21, 18, 12, 0.78) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 120px 28px 140px;
  max-width: 860px;
}
.hero .eyebrow { color: #b9c9da; }
.hero h1 {
  font-size: clamp(52px, 8.4vw, 106px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  margin: 0 0 26px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero h1 .thin { font-weight: 300; font-style: italic; color: #dbe4ee; }
.hero-role {
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase;
  color: #cdd7e2; margin: 0 0 40px;
}
.hero-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  line-height: 1.55;
  color: #efe9dc;
  max-width: 620px;
  margin: 0 auto 52px;
}
.hero-quote cite {
  display: block; margin-top: 14px;
  font-family: var(--sans); font-style: normal;
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #a9b6c4;
}
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #d9dfe6;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0.85;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, #d9dfe6, transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { transform: scaleY(1); transform-origin: top; } 50% { transform: scaleY(0.55); transform-origin: top; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 400; }
.section-head .lead { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ---------- Category tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 5;
}
.tile-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.1s var(--ease);
}
.tile:hover .tile-img { transform: scale(1.06); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,18,12,0.05) 30%, rgba(21,18,12,0.82) 100%);
  transition: opacity 0.4s;
}
.tile-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 28px 30px;
  color: #f3eee3;
}
.tile-num {
  font-size: 10.5px; letter-spacing: 0.3em; color: #b8c6d4;
  display: block; margin-bottom: 10px;
}
.tile-body h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  margin: 0 0 8px;
}
.tile-body p { margin: 0; font-size: 13.5px; color: #cfc9bc; max-width: 30ch; }
.tile-arrow {
  display: inline-block; margin-top: 14px;
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 3px;
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3.4; }
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 120% at 80% -10%, var(--azure-pale) 0%, transparent 60%),
    var(--paper);
}
.page-head h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 400; margin: 0 0 20px; }
.page-head .lead {
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 22px);
  font-style: italic;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Prose (biografia etc.) ---------- */
.prose { max-width: 860px; }
.prose .lead-para {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.6;
  color: var(--ink);
}
.prose p { margin: 0 0 1.5em; }
.prose p:not(.lead-para) { color: #3a342a; }
.prose em { font-family: var(--serif); font-size: 1.02em; }
.prose .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--azure);
  display: inline-block;
  margin-right: 6px;
}
.prose h2 { font-size: 34px; font-weight: 400; margin: 1.4em 0 0.5em; }
.prose h3 { font-size: 26px; font-weight: 400; margin: 1.3em 0 0.4em; color: var(--azure-deep); }
.prose blockquote {
  margin: 2em 0;
  padding: 6px 0 6px 30px;
  border-left: 2px solid var(--azure);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 22px; color: #3a342a; }
.prose li { margin-bottom: 0.45em; }
.prose .figure-portrait { margin: 0 0 2.2em; }
.prose .figure-portrait img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 2px; }
.prose .figure-portrait figcaption {
  margin-top: 10px; font-size: 12.5px; color: var(--ink-3);
  font-family: var(--serif); font-style: italic;
}
.prose .sep { border: 0; border-top: 1px solid var(--line); margin: 2.6em auto; max-width: 120px; }

/* ---------- Galleria ---------- */
.gallery {
  columns: 3 300px;
  column-gap: 26px;
  padding: 64px 0 30px;
}
/* Gallerie piccole: griglia (evita i buchi del column-balancing multicol) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
  padding: 64px 0 30px;
}
.gallery-grid .work { margin-bottom: 0; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.work {
  break-inside: avoid;
  margin: 0 0 34px;
  cursor: zoom-in;
}
.work-img {
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.work-img img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease), opacity 0.5s;
  opacity: 0;
}
.work-img img.loaded { opacity: 1; }
.work:hover .work-img img { transform: scale(1.025); }
.work figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.work .work-index {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 13, 8, 0.96);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.lightbox.open { display: flex; animation: lbIn 0.28s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { display: flex; flex-direction: column; align-items: center; max-width: min(1400px, 92vw); max-height: 86vh; }
.lb-figure img {
  max-width: 92vw;
  max-height: 74vh;
  object-fit: contain;
  box-shadow: 0 20px 70px rgba(0,0,0,0.5);
}
.lb-caption {
  margin-top: 18px;
  color: #d8d2c4;
  font-family: var(--serif);
  font-size: 16px;
  text-align: center;
  max-width: 720px;
  line-height: 1.45;
}
.lb-counter {
  margin-top: 8px;
  font-size: 10.5px; letter-spacing: 0.3em;
  color: #8d8778;
}
.lb-btn {
  position: absolute;
  background: none; border: 0; cursor: pointer;
  color: #e8e2d4;
  font-size: 30px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.25s, color 0.25s;
  top: 50%; transform: translateY(-50%);
}
.lb-btn:hover { background: rgba(255,255,255,0.08); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; cursor: pointer;
  color: #e8e2d4; font-size: 20px; width: 48px; height: 48px;
  border-radius: 50%;
}
.lb-close:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 640px) {
  .lightbox { padding: 20px; }
  .lb-prev { left: 2px; } .lb-next { right: 2px; }
}

/* ---------- Frammenti critici ---------- */
.critics { max-width: 860px; }
.critic {
  border-top: 1px solid var(--line);
  padding: 52px 0 26px;
}
.critic-head { margin-bottom: 22px; }
.critic-author {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  margin: 0 0 6px;
}
.critic-source {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-2);
  margin: 0;
}
.critic-role {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 12px 0 0;
  letter-spacing: 0.02em;
}
.critic-body p { margin: 0 0 1.15em; color: #3a342a; }
.critic-body em { font-family: var(--serif); font-size: 1.02em; }
.critic-body a, .critic-source a { overflow-wrap: anywhere; word-break: break-word; color: var(--azure-deep); text-decoration: underline; text-decoration-color: rgba(28,60,94,.3); text-underline-offset: 3px; }
.critic-body .omissis { color: var(--ink-3); letter-spacing: 0.2em; }
.critic details { margin-top: 14px; }
.critic summary {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--azure);
  list-style: none;
  padding: 8px 0;
}
.critic summary::-webkit-details-marker { display: none; }
.critic summary::before {
  content: "＋"; font-size: 13px; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.critic details[open] summary::before { content: "－"; }
.critic details .critic-more { padding-top: 6px; }

/* ---------- Video ---------- */
.video-section {
  background: var(--night);
  color: #e9e3d5;
  padding: 110px 0;
}
.video-section .eyebrow { color: #8fb0cf; }
.video-section h2 { color: #f3eee3; font-size: clamp(32px, 4vw, 46px); font-weight: 400; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 56px; }
.video-card { border: 1px solid var(--night-line); background: var(--night-2); }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.yt-card {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.yt-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.8s var(--ease), opacity 0.4s; }
.yt-card:hover img { transform: scale(1.04); opacity: 1; }
.yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(21, 18, 12, 0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.yt-card:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(46, 94, 140, 0.85); }
.yt-label {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #fff;
  background: rgba(21, 18, 12, 0.6);
  padding: 7px 12px;
  border-radius: 2px;
}
.yt-frame .yt-card { max-width: none; margin: 0; }
.video-card-body { padding: 22px 26px 26px; }
.video-card-body h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin: 0 0 8px; color: #f3eee3; }
.video-card-body p { margin: 0; color: #b3ab9a; font-size: 14px; }
.video-download { display: inline-block; margin-top: 14px; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #9db9d4; border-bottom: 1px solid rgba(157,185,212,0.4); padding-bottom: 2px; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info p { color: var(--ink-2); }
.contact-info .mail {
  font-family: var(--serif); font-size: 25px; color: var(--azure-deep);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.contact-info .fb { display: inline-block; margin-top: 26px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--azure); border-bottom: 1px solid rgba(46,94,140,0.35); padding-bottom: 3px; }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--azure); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: -12px; }
.btn {
  display: inline-block;
  background: var(--azure-deep);
  color: #f3eee3;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 38px;
  border: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s;
}
.btn:hover { background: var(--azure); transform: translateY(-1px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #a49c8a;
  padding: 70px 0 46px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--night-line);
}
.footer-grid .brand { color: #efe9dc; font-size: 24px; }
.footer-grid h4 { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: #7c7464; margin: 0 0 18px; }
.footer-grid a { display: block; color: #b9b1a0; font-size: 14px; margin-bottom: 10px; transition: color 0.25s; }
.footer-grid a.footer-sub { padding-left: 14px; font-size: 13px; color: #8d8573; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: 12px; color: #6f6859;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom .credit { font-family: var(--serif); font-style: italic; font-size: 13px; color: #8d8573; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sezioni opera (permanenti / ibride) ---------- */
/* La linea separatrice sta SOPRA il blocco: numero e titolo dell'opera vengono dopo. */
.work-section { padding: 84px 0 40px; border-top: 1px solid var(--line-soft); }
.work-section:first-of-type { border-top: 0; }
/* Capitolo interno alla stessa opera: nessun numero, nessuna linea, meno aria sopra. */
.work-section-cont { border-top: 0; padding-top: 0; }
.section-num {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--azure);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  margin: 0 0 26px;
  max-width: 720px;
}
.gallery-title {
  margin: 72px 0 30px;
}
.gallery-title:first-of-type {
  margin-top: 0;
}
.gallery-meta {
  max-width: 720px;
  margin: -14px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-years {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azure);
}
.gallery-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
/* Riferimento bibliografico dentro una didascalia: deve leggersi come fonte, non come testo */
.gallery-desc a {
  color: var(--azure);
  text-decoration: underline;
  text-decoration-color: rgba(36, 75, 192, .35);
  text-underline-offset: 3px;
}
.gallery-desc a:hover { text-decoration-color: currentColor; }
.gallery-subtitle {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 48px 0 20px;
}
.chapter-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azure);
  margin: -10px 0 30px !important;
  max-width: 720px;
  line-height: 2;
}
.sub-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 44px 0 18px;
}
.work-section p { max-width: 720px; color: #3a342a; margin: 0 0 1.1em; }
.work-section p em { font-family: var(--serif); font-size: 1.02em; }
.section-quote {
  margin: 26px 0 34px;
  padding: 20px 30px;
  background: var(--azure-pale);
  border-left: 2px solid var(--azure);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--azure-deep);
  max-width: 720px;
}
.section-quote p { margin: 0 0 6px; color: inherit; }
.video-frame {
  position: relative; aspect-ratio: 16/9; background: #000;
  max-width: 960px; margin: 34px 0 10px;
}
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-note {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-3); margin: 8px 0 0;
}
.poem-figure {
  margin: 40px auto; max-width: 640px; text-align: center;
}
.poem-figure img {
  margin: 0 auto 18px;
  box-shadow: 0 14px 44px rgba(32,28,21,0.16);
}
.poem-figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: pre-line;
}
.work-img.img-missing { background:
  repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 14px, var(--paper-3) 14px, var(--paper-3) 28px);
  min-height: 120px;
}

/* ---------- Corsivi leggermente più spessi (leggibilità) ---------- */
.hero-quote, .page-head .lead, .prose blockquote,
.prose .figure-portrait figcaption, .critic-source,
.section-quote, .poem-figure figcaption, .footer-bottom .credit {
  font-weight: 500;
}
em { font-weight: 500; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* ---------- Colonne di lettura su schermo grande ----------
   Biografia e Frammenti Critici erano larghe 720/780px (590/650px di testo utile):
   troppo strette su un viewport da 1440px. La colonna si allarga e il corpo sale a 17px,
   così la misura di lettura resta intorno agli 85 caratteri per riga.
   Sotto i 900px non cambia nulla: il testo resta a 16px e a piena larghezza. */
@media (min-width: 900px) {
  .prose p:not(.lead-para), .prose li, .critic-body p { font-size: 17px; line-height: 1.75; }
  .prose .figure-portrait { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .work-img img { opacity: 1; transition: none; }
  .hero-bg, .hero-scroll::after { animation: none; }
  html { scroll-behavior: auto; }
}
