:root {
  --bg: #0b0a09;
  --ink: #e8e2d8;
  --dim: #8d867c;
  --red: #b0281f;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 1.25vw, 22px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }

a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Apertura ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  filter: grayscale(1) brightness(.6);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,10,9,.85) 0%, rgba(11,10,9,.2) 60%, rgba(11,10,9,0) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,0) 30%);
}
.hero-text {
  position: absolute;
  z-index: 1;
  left: 8vw;
  bottom: 18vh;
}
.hero .sub {
  margin-top: 8px;
  font-style: italic;
  color: var(--dim);
}
.hero h1 {
  margin-top: 28px;
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--sans);
  color: var(--dim);
  text-decoration: none;
  font-size: 20px;
}

/* ---------- Bio ---------- */

.bio { padding: 22vh 8vw 18vh; }

.title {
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.1;
  max-width: 14em;
  margin-bottom: 12vh;
}

.prose {
  max-width: 34em;
  margin-left: auto;
  margin-right: 10vw;
}
.prose p + p { margin-top: 1.2em; }

.contro {
  max-width: 26em;
  margin-top: 16vh;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.4;
  font-style: italic;
}
.contro span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: .7em;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Foto larghe ---------- */

.photo-wide { position: relative; }
.photo-wide img {
  max-height: 92vh;
  object-fit: cover;
  filter: grayscale(.35) brightness(.85);
}
/* foto mostrata intera, senza tagli */
.photo-wide.intera img {
  max-height: none;
  object-fit: contain;
}
.photo-wide figcaption {
  position: absolute;
  left: 8vw;
  bottom: 6vh;
  max-width: 16em;
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(0,0,0,.8);
}

/* ---------- Il buio ---------- */

.buio {
  padding: 26vh 8vw;
  text-align: center;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.5;
}
.buio p:nth-child(2).in { opacity: .8; }
.buio p:nth-child(3).in { opacity: .6; }
.buio p:nth-child(4).in { opacity: .35; }
.buio-end {
  margin-top: 30vh;
  font-style: italic;
}

/* ---------- Pezzi ---------- */

.pezzi { padding: 10vh 8vw 20vh; }
.pezzi > .label { margin-bottom: 10vh; }

.pezzo {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 5vw;
  align-items: center;
}
.pezzo + .pezzo { margin-top: 22vh; }
.pezzo:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.pezzo:nth-of-type(even) .video,
.pezzo:nth-of-type(even) iframe { order: 2; }

.video, .pezzo iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(.6) brightness(.75);
  transition: filter .6s, transform 1.2s;
}
.video:hover img, .video:focus-visible img { filter: none; transform: scale(1.02); }
.play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(232,226,216,.7);
  border-radius: 50%;
  background: rgba(11,10,9,.45);
}
.play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-left: 15px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.pezzo h3 {
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 46px);
  line-height: 1.1;
}
.meta {
  margin: 10px 0 24px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--dim);
}
.pezzo blockquote {
  font-style: italic;
  font-size: 1.15em;
  line-height: 1.45;
  padding-left: 18px;
  border-left: 1px solid var(--red);
}
.pezzo blockquote.poesia {
  font-size: .95em;
  line-height: 1.55;
}
.note {
  margin-top: 20px;
  color: var(--dim);
  font-size: .9em;
}

/* ---------- Chiusa ---------- */

.chiusa {
  padding: 24vh 8vw 20vh;
  max-width: 1100px;
}
.chiusa p:first-child { max-width: 26em; }
.chiusa .mid {
  margin-top: 12vh;
  font-style: italic;
  font-size: clamp(24px, 2vw, 32px);
}
.chiusa .big {
  margin-top: 6vh;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.08;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 40px 8vw 56px;
  border-top: 1px solid #23201c;
  color: var(--dim);
  font-size: .9em;
}

/* ---------- Comparsa ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .video img { transition: none; }
}

/* ---------- Telefono ---------- */

@media (max-width: 760px) {
  .hero-text { left: 7vw; right: 7vw; bottom: 14vh; }
  .hero-img { object-position: 75% 30%; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,.85) 35%, rgba(11,10,9,0) 65%); }
  .hero .sub { color: var(--ink); opacity: .75; }
  .prose { margin: 0; }
  .buio { font-size: 18px; padding-left: 5vw; padding-right: 5vw; }
  .pezzo, .pezzo:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .pezzo:nth-of-type(even) .video,
  .pezzo:nth-of-type(even) iframe { order: 0; }
  .pezzo + .pezzo { margin-top: 14vh; }
  .photo-wide img { max-height: 70vh; }
  footer { flex-direction: column; }
}
