/* ============================================================
   AION NYN — Pagina dell'opera
   L'opera esposta: la luce la raggiunge, il resto resta in ombra
   ============================================================ */

.opera {
  padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-7);
  background:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(216, 189, 134, 0.08), transparent 65%),
    linear-gradient(180deg, #050505, #08080a 55%, #0a0a0c);
  min-height: 100svh;
  overflow: hidden;
}
.opera::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--rock);
  background-size: 420px 420px;
  opacity: 0.26;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.opera__back {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: var(--s-5);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--d-1) var(--ease);
}
.opera__back:hover { color: var(--gold-lit); }
.opera__back i {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
[dir="rtl"] .opera__back { letter-spacing: 0; }

.opera__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

/* ---- The exhibited piece ----------------------------------- */
.opera__stage {
  --lit: 1;
  position: relative;
  position: sticky;
  top: calc(var(--nav-h) + var(--s-3));
}
.opera__beam {
  position: absolute;
  left: 50%;
  top: -46vh;
  width: 165%;
  height: 52vh;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(226, 202, 152, 0.16),
    rgba(214, 186, 132, 0.05) 50%,
    transparent 86%);
  clip-path: polygon(47% 0, 53% 0, 86% 100%, 14% 100%);
  filter: blur(18px);
}
.opera__pool {
  position: absolute;
  inset-inline: -14%;
  bottom: -10%;
  height: 40%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(216, 189, 134, 0.12), transparent 62%);
  filter: blur(14px);
}
.opera__frame {
  position: relative;
  background: #070707;
  box-shadow:
    0 3rem 7rem rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(236, 228, 213, 0.06) inset;
}
.opera__frame img {
  width: 100%;
  height: auto;
  max-height: 76svh;
  object-fit: contain;
  background: #080808;
  filter: brightness(1.02) contrast(1.03);
}
.opera__caption {
  margin-top: var(--s-2);
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- The written record ------------------------------------ */
.opera__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--t-h1);
  line-height: 1;
  margin-top: var(--s-2);
}
.opera__byline {
  margin-top: var(--s-3);
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.opera__desc {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-size: var(--t-lead);
  line-height: 1.55;
  color: #ddd5c5;
  max-width: 32rem;
}

/* Spec table */
.specs {
  margin-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
}
.specs > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.4fr) minmax(0, 1fr);
  gap: var(--s-2);
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.specs dt {
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ivory);
  line-height: 1.6;
}
[dir="rtl"] .specs dt { letter-spacing: 0; }

/* Chapters of text */
.opera__chapter { margin-top: var(--s-5); }
.opera__chapter h2 {
  font-size: var(--t-label);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-2);
}
.opera__chapter p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ivory-dim);
  max-width: 34rem;
}

/* Acquisition panel */
.acquire {
  margin-top: var(--s-5);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(179, 148, 92, 0.055), rgba(179, 148, 92, 0.01));
}
.acquire__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}
.acquire__price {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 300;
  color: var(--ivory);
}
.acquire__price small {
  font-size: 0.5em;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-inline-start: 0.5em;
}
.acquire__actions {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.acquire__fine {
  margin-top: var(--s-3);
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.7;
}

/* Inquiry dialog */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(4, 4, 6, 0.86);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-2) var(--ease), visibility var(--d-2);
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet__panel {
  width: min(46rem, 100%);
  max-height: 86svh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(160deg, #0e0e11, #08080a);
  border: 1px solid var(--line);
  transform: translateY(18px);
  transition: transform var(--d-2) var(--ease);
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.sheet__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ivory-dim);
  flex: none;
  transition: border-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
.sheet__close:hover { border-color: var(--gold); color: var(--gold-lit); }

/* Other works strip */
.opera__more {
  padding: var(--s-6) 0 var(--s-7);
  background: #040404;
  border-top: 1px solid var(--line-soft);
}
.more__grid {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.more__item { --lit: 0.55; display: block; }
.more__item:hover { --lit: 1.1; }
.more__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #0a0a0a;
  filter: brightness(calc(0.3 + var(--lit) * 0.6)) saturate(calc(0.7 + var(--lit) * 0.3));
  transition: filter var(--d-2) var(--ease);
}
.more__item h3 {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ivory-dim);
  transition: color var(--d-1) var(--ease);
}
.more__item:hover h3 { color: var(--gold-lit); }
.more__item span {
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Skeleton while the work loads */
.opera__skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.sk {
  background: linear-gradient(100deg, #0c0c0e 30%, #141416 50%, #0c0c0e 70%);
  background-size: 220% 100%;
  animation: sheen 2.4s linear infinite;
}
.sk--frame { aspect-ratio: 4 / 5; }
.sk--line { height: 1rem; margin-bottom: 1rem; }
.sk--title { height: 3.5rem; width: 70%; margin-bottom: var(--s-3); }
@keyframes sheen {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}

.opera__missing {
  padding: var(--s-7) 0;
  text-align: center;
}
.opera__missing p {
  margin: var(--s-3) auto var(--s-4);
  max-width: 30rem;
  color: var(--muted);
}

/* ============================================================
   PAGINA DELL'ARTISTA
   Lo stesso buio della Grotta: il ritratto riceve la luce.
   ============================================================ */
.artista {
  padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-6);
  background:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(216, 189, 134, 0.07), transparent 65%),
    linear-gradient(180deg, #050505, #08080a 60%, #0a0a0c);
  overflow: hidden;
}
.artista::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--rock);
  background-size: 420px 420px;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.artista__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.artista__plate {
  position: relative;
  position: sticky;
  top: calc(var(--nav-h) + var(--s-3));
}
.artista__beam {
  position: absolute;
  left: 50%;
  top: clamp(-20rem, -28vh, -11rem);
  width: 150%;
  height: clamp(12rem, 30vh, 22rem);
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(226, 202, 152, 0.1), transparent 86%);
  clip-path: polygon(46% 0, 54% 0, 88% 100%, 12% 100%);
  filter: blur(16px);
}
.artista__portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #131215, #08080a);
  box-shadow:
    0 clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem) rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(236, 228, 213, 0.06) inset;
}
.artista__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artista__monogram {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 6.4vw, 5rem);
  letter-spacing: 0.22em;
  margin-inline-end: -0.22em;
  color: rgba(216, 189, 134, 0.55);
}

.artista__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h1);
  line-height: 0.98;
  margin-top: var(--s-2);
}
.artista__role {
  margin-top: var(--s-3);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}
.artista__place {
  margin-top: 0.6rem;
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.artista__record .rule { margin: var(--s-4) 0; }
.artista__prose {
  margin-top: var(--s-3);
  max-width: var(--measure);
  color: var(--ivory-dim);
  line-height: 1.8;
}
.artista__words {
  margin-top: var(--s-4);
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  line-height: 2.2;
}

.artista__meta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
}
.artista__meta dt {
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.artista__meta dd {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ivory);
}
.artista__meta .artista__note {
  font-style: italic;
  color: var(--gold-lit);
}

.artista__links {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem var(--s-4);
}

.artista__gallery {
  padding: var(--s-6) 0 var(--s-7);
  background: linear-gradient(180deg, #0a0a0c, #08080a);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

@media (max-width: 900px) {
  .opera__grid,
  .artista__grid,
  .opera__skeleton { grid-template-columns: 1fr; }
  .opera__stage { position: relative; top: 0; }
  .artista__plate { position: relative; top: 0; }
  .artista__beam { display: none; }
  .opera__beam { top: -30vh; height: 36vh; }
  .specs > div { grid-template-columns: 1fr; gap: 0.35rem; }
}
