/* ══════════════════════════════════════════════════════════════
   MIKE ARRUZZA — Identità visiva "Immersivo cinematografico"
   Buio profondo, opere a tutto schermo, parallasse, movimenti lenti.
   ══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --bg: #0a0908;
  --bg-2: #100d0a;
  --bg-elev: #16120c;
  --bg-elev-2: #1d1811;
  --line: rgba(224, 201, 138, 0.13);
  --line-strong: rgba(224, 201, 138, 0.3);
  --text: #ddd4c3;
  --text-muted: #948a76;
  --text-dim: #5f5746;
  --gold: #c9a86a;
  --gold-light: #e6cf95;
  --gold-dim: #8a7448;
  --white: #f5efe1;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-sc: "Inter", system-ui, sans-serif; /* alias legacy micro-type */
  --radius: 2px;
  --transition: 0.35s ease;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --slow: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 130% 70% at 50% -10%, #1a150c 0%, transparent 60%),
    radial-gradient(ellipse 90% 50% at 85% 110%, #120e08 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.75;
  min-height: 100vh;
  font-feature-settings:
    "liga" 1,
    "dlig" 1,
    "kern" 1;
  overflow-x: hidden;
}

/* Ingresso di pagina — dissolvenza cinematografica */
body {
  animation: page-in 0.9s var(--ease) both;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Vignettatura ambientale fissa — profondità da sala buia */
.grain,
.vignette {
  position: fixed;
  pointer-events: none;
}

.vignette {
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 105% 90% at 50% 45%,
    transparent 52%,
    rgba(4, 3, 2, 0.6) 100%
  );
}

/* Grana pittorica animata su tutta la superficie */
.grain {
  inset: -60%;
  z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 4%);
  }
  40% {
    transform: translate(4%, -4%);
  }
  60% {
    transform: translate(-2%, 2%);
  }
  80% {
    transform: translate(3%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Il contenuto resta sopra atmosfera */
.site-header,
main,
.site-footer,
.hero,
section,
article,
.quote-band,
.post-single {
  position: relative;
  z-index: 3;
}

::selection {
  background: rgba(201, 168, 106, 0.3);
  color: var(--white);
}

/* ── Scrollbar nascosta ovunque (lo scroll resta attivo) ───── */

html {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE / Edge legacy */
}

*,
*::before,
*::after {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;              /* Chrome, Safari, Edge */
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ── Cursore personalizzato (solo puntatore fine) ─────────── */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 207, 149, 0.7);
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    background 0.35s var(--ease),
    opacity 0.35s var(--ease);
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-light);
}
body.cursor-hover .cursor-ring {
  width: 66px;
  height: 66px;
  background: rgba(230, 207, 149, 0.08);
  border-color: rgba(230, 207, 149, 0.9);
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring,
  .cursor-dot {
    display: none;
  }
}

/* ── Layout ───────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.wrap--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ── Micro-tipografia UI ──────────────────────────────────── */
.section-label,
.hero-eyebrow,
.brand-role,
.opera-category,
.post-card-cat,
.event-type,
.post-cat,
.form-label,
.fcontact-label,
.member-role,
.filter-btn,
.btn,
.site-nav a,
.footer-nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition:
    background var(--transition),
    padding var(--transition),
    border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 1rem 0;
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  flex-shrink: 0;
}

.site-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
}

.site-brand .brand-role {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  transition: color var(--transition);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0.35rem;
  left: 0.9rem;
  right: 0.9rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-light);
}
.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--gold-light);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Selettore lingua ─────────────────────────────────────── */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.lang-switch a {
  color: var(--text-dim);
  padding: 0.2rem 0.1rem;
  transition: color var(--transition);
}
.lang-switch a.active {
  color: var(--gold-light);
}
.lang-switch a:hover {
  color: var(--gold);
}
.lang-switch span {
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .lang-switch {
    margin-left: auto;
    font-size: 0.8rem;
    /* resta cliccabile sopra l'overlay del menu */
    position: relative;
    z-index: 101;
  }
  .nav-toggle {
    margin-left: 0.8rem;
  }
}

/* ── Hero cinematografico ─────────────────────────────────── */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(7rem, 15vh, 11rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 118%; /* margine per la parallasse */
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05) brightness(0.72);
  transform: scale(1.08);
  animation: ken-burns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ken-burns {
  from {
    transform: scale(1.08) translate(0, 0);
  }
  to {
    transform: scale(1.18) translate(-2%, -2%);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(10, 9, 8, 0.96) 0%,
      rgba(10, 9, 8, 0.35) 45%,
      rgba(10, 9, 8, 0.15) 70%,
      rgba(10, 9, 8, 0.55) 100%
    ),
    linear-gradient(to right, rgba(10, 9, 8, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
  animation: rise 1s var(--ease) 0.15s both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 0.86;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: rise 1.1s var(--ease) 0.28s both;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 3rem;
  animation: rise 1.1s var(--ease) 0.42s both;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: rise 1.1s var(--ease) 0.55s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(38px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Indicatore di scorrimento */
.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: rise 1s var(--ease) 1s both;
}
/* Su schermi bassi l'indicatore rischia di toccare i pulsanti: nascondilo */
@media (max-height: 780px) {
  .scroll-cue {
    display: none;
  }
}
.scroll-cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--gold-light);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(300%);
  }
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  --btn-fg: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold-dim);
  color: var(--btn-fg);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover {
  color: var(--bg);
  border-color: var(--gold);
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text-muted);
}
.btn--ghost::before {
  background: var(--bg-elev-2);
}
.btn--ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold-dim);
}

/* ── Section titles ───────────────────────────────────────── */

.section-header {
  margin-bottom: 3.5rem;
  max-width: 780px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--gold-dim);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.005em;
  color: var(--white);
  line-height: 1.02;
}

.section-desc {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 580px;
}

.section-divider {
  width: 56px;
  height: 1px;
  background: var(--gold-dim);
  margin: 1.8rem 0;
  transform-origin: left;
  transition: transform 1s var(--ease) 0.2s;
}
.reveal .section-divider,
.reveal.section-divider {
  transform: scaleX(0);
}
.reveal.visible .section-divider,
.visible.section-divider {
  transform: scaleX(1);
}

/* ── Archive section ──────────────────────────────────────── */

.archive-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

/* ── Artwork grid ─────────────────────────────────────────── */

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.artwork-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  aspect-ratio: 4/5;
  isolation: isolate;
}

.artwork-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.1s var(--ease),
    filter 0.7s var(--ease);
  filter: grayscale(0.15) brightness(0.82) contrast(1.02);
}
.artwork-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(1) contrast(1.03);
}

.artwork-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 7, 5, 0.92) 0%,
    rgba(8, 7, 5, 0.15) 45%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  opacity: 1;
  transition: background var(--transition);
}
/* Titolo sempre presente ma discreto, si accende all'hover */
.artwork-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
  transform: translateY(0.6rem);
  opacity: 0.9;
  transition:
    transform 0.5s var(--ease),
    opacity var(--transition);
}
.artwork-card-meta {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(0.6rem);
  transition:
    transform 0.5s var(--ease) 0.05s,
    opacity 0.45s var(--ease) 0.05s;
}
.artwork-card:hover .artwork-card-title {
  transform: translateY(0);
  opacity: 1;
}
.artwork-card:hover .artwork-card-meta {
  transform: translateY(0);
  opacity: 1;
}

/* Filo dorato che appare all'hover */
.artwork-card::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  z-index: 1;
  border: 1px solid rgba(230, 207, 149, 0.35);
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
  pointer-events: none;
}
.artwork-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Category grid (archivio) ─────────────────────────────── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2px;
}
.category-card {
  aspect-ratio: 4/3;
}
/* Nella card di categoria titolo e conteggio sono sempre visibili */
.category-card .artwork-card-title {
  font-size: 1.9rem;
  transform: translateY(0);
  opacity: 1;
}
.category-card .artwork-card-meta {
  transform: translateY(0);
  opacity: 0.85;
}
.category-card:hover .artwork-card-meta {
  opacity: 1;
}

.archive-back {
  text-decoration: none;
  transition: color var(--transition);
}
.archive-back:hover {
  color: var(--gold-light);
}
.archive-cat-desc {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 620px;
}

/* ── Showcase full-bleed (home) ───────────────────────────── */

.showcase {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.showcase-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9) contrast(1.05);
  will-change: transform;
}
.showcase-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 7, 5, 0.9) 0%,
    rgba(8, 7, 5, 0.55) 45%,
    rgba(8, 7, 5, 0.2) 100%
  );
}
.showcase-inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
  width: 100%;
}
.showcase-copy {
  max-width: 540px;
}
.showcase-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.02;
  margin: 0.4rem 0 1rem;
}
.showcase-copy .artwork-year {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.showcase-copy p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2.4rem;
}

/* ── Featured artwork (fallback layout classico) ──────────── */

.featured-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.featured-image {
  position: relative;
  overflow: hidden;
}
.featured-image img {
  width: 100%;
  filter: brightness(0.9) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
.featured-image:hover img {
  transform: scale(1.04);
}
.featured-image::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(230, 207, 149, 0.25);
  z-index: 1;
  pointer-events: none;
}
.featured-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin: 0.6rem 0 0.8rem;
}
.featured-copy .artwork-year {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.featured-copy p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── L'artista (home) ─────────────────────────────────────── */

.artist-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--line);
}
.artist-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.artist-grid--text {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.artist-image {
  position: relative;
  overflow: hidden;
}
.artist-image img {
  width: 100%;
  display: block;
  filter: saturate(0.9) brightness(0.92) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
.artist-image:hover img {
  transform: scale(1.03);
}
.artist-image::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(230, 207, 149, 0.25);
  z-index: 1;
  pointer-events: none;
}
.artist-copy .section-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}
.artist-text {
  margin: 1.8rem 0 2.4rem;
}
.artist-text p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.artist-text p:first-child {
  font-size: 1.2rem;
  color: var(--text);
}

/* ── Quote band ───────────────────────────────────────────── */

.quote-band {
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
  position: relative;
}
.quote-band::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--gold-dim);
  opacity: 0.4;
  margin-bottom: 1.5rem;
}
.quote-band blockquote {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.42;
}
.quote-band cite {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ── Reveal ───────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Scaglionamento automatico dentro le griglie */
.artwork-grid .reveal.visible,
.posts-list .reveal.visible,
.events-list .reveal.visible,
.press-list .reveal.visible,
.members-grid .reveal.visible {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0 3rem;
  margin-top: 5rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35));
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2.5rem;
}
.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.6rem;
}
.footer-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
}
.footer-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-email:hover {
  color: var(--gold);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.footer-nav a {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-copy {
  text-align: right;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.9;
}

/* ── Link legali nel footer ───────────────────────────────── */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.footer-legal a,
.footer-legal-btn {
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer-legal a:hover,
.footer-legal-btn:hover {
  color: var(--gold);
}
.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

/* ── Consenso privacy nel modulo contatti ─────────────────── */

.form-consent {
  margin-top: 1.8rem;
}
.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
}
.form-consent-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.form-consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.form-consent-label input:checked + .form-consent-box {
  background: var(--gold);
  border-color: var(--gold);
}
.form-consent-label input:checked + .form-consent-box::after {
  transform: rotate(45deg) scale(1);
}
.form-consent-label input:focus-visible + .form-consent-box {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}
.form-consent-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.form-consent-text a {
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--transition);
}
.form-consent-text a:hover {
  color: var(--gold-light);
}
.form-consent-text span {
  color: var(--gold);
}

/* ── Pagine legali (privacy / cookie) ─────────────────────── */

.legal-doc {
  margin-top: 3rem;
}

.legal-section {
  margin-bottom: 3rem;
}
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.legal-section p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.6rem;
  height: 1px;
  background: var(--gold-dim);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--line);
}
.legal-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.legal-table th {
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  padding: 0.9rem 1rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.legal-table td {
  padding: 0.9rem 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table tr:last-child td {
  border-bottom: none;
}
.legal-table-key {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gold-light);
  white-space: nowrap;
}

.legal-prefs {
  margin: 2.5rem 0;
  text-align: center;
}

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.legal-crosslink {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.legal-crosslink a {
  color: var(--gold);
  transition: color var(--transition);
}
.legal-crosslink a:hover {
  color: var(--gold-light);
}

/* ── Banner consenso cookie ───────────────────────────────── */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.cookie-banner.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  width: 100%;
  max-width: 720px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  max-height: 85vh;
  overflow-y: auto;
}

.cookie-banner-head h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.cookie-banner-head p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.cookie-banner-links {
  margin-top: 0.8rem;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em;
}
.cookie-banner-links a {
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color var(--transition);
}
.cookie-banner-links a:hover {
  color: var(--gold-light);
}
.cookie-banner-links span {
  color: var(--text-dim);
  margin: 0 0.35rem;
}

.cookie-options {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: grid;
  gap: 1.1rem;
}
.cookie-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-option-name {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text);
}
.cookie-option-locked {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
}
.cookie-option p {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Interruttore delle statistiche */
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cookie-switch span {
  position: absolute;
  inset: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: background var(--transition), border-color var(--transition);
  pointer-events: none;
}
.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform var(--transition), background var(--transition);
}
.cookie-switch input:checked + span {
  background: rgba(201, 168, 106, 0.18);
  border-color: var(--gold);
}
.cookie-switch input:checked + span::after {
  transform: translateX(20px);
  background: var(--gold-light);
}
.cookie-switch input:focus-visible + span {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}
.cookie-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.66rem;
}
.cookie-actions .btn[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .cookie-actions .btn {
    flex-basis: 100%;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* ── Filter bar ───────────────────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-btn {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  background: rgba(201, 168, 106, 0.07);
}

/* ── Inner hero ───────────────────────────────────────────── */

.inner-hero {
  padding: clamp(6rem, 14vw, 10rem) 0 3rem;
}

/* ── Opera / brano detail ─────────────────────────────────── */

.opera-page {
  padding: clamp(2rem, 5vw, 4rem) 0 6rem;
}

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

.opera-visual {
  position: sticky;
  top: 6rem;
}
.opera-main-img {
  position: relative;
  overflow: hidden;
}
.opera-main-img img {
  width: 100%;
  filter: brightness(0.95) contrast(1.03);
}
.opera-main-img::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(230, 207, 149, 0.18);
  z-index: 1;
  pointer-events: none;
}

.opera-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.opera-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.6;
  transition:
    opacity var(--transition),
    transform var(--transition);
  cursor: pointer;
}
.opera-thumb img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* ── Lightbox ─────────────────────────────────────────────── */

.lightbox-trigger {
  cursor: zoom-in;
}
.lightbox-trigger:focus-visible {
  outline: 1px solid var(--gold-dim);
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 7, 5, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s linear 0.45s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem clamp(1rem, 6vw, 5rem) 5rem;
}
.lightbox-img {
  position: relative;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}
/* Lo scudo copre l'immagine: ogni clic, tocco o tasto destro
   cade qui e non sullo sfondo con la foto */
.lightbox-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.lightbox button {
  position: absolute;
  z-index: 3;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}
.lightbox button:hover,
.lightbox button:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(201, 168, 106, 0.07);
  outline: none;
}
.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.8rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 3.6rem;
  font-size: 2.4rem;
  padding-bottom: 0.3rem;
}
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox button[hidden] {
  display: none;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.8rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  padding: 0 4rem;
  pointer-events: none;
}
.lightbox-counter {
  position: absolute;
  top: 1.9rem;
  left: 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  pointer-events: none;
}

@media (max-width: 720px) {
  .lightbox-stage {
    padding: 4rem 0.5rem 4.5rem;
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.8rem;
  }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-caption {
    bottom: 1.4rem;
    font-size: 0.95rem;
    padding: 0 4rem;
  }
}

.opera-category {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1.2rem;
  transition: color var(--transition);
}
.opera-category:hover {
  color: var(--gold-light);
}

.opera-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.005em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.opera-subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.opera-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}
.opera-meta-table tr {
  border-bottom: 1px solid var(--line);
}
.opera-meta-table th {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  text-align: left;
  padding: 0.7rem 1rem 0.7rem 0;
  width: 38%;
  vertical-align: top;
}
.opera-meta-table td {
  color: var(--text);
  padding: 0.7rem 0;
}

.opera-excerpt {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin: 1.8rem 0;
}
.opera-body p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.opera-section-block {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.opera-section-block h3 {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.opera-section-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.opera-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
}

.badge-available {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold-dim);
  padding: 0.25rem 0.7rem;
}

.music-player-block audio {
  border-radius: 2px;
}

/* ── Movements list ───────────────────────────────────────── */

.movements-list {
  list-style: none;
  margin-top: 0.5rem;
}
.movements-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.mv-number {
  font-family: var(--font-ui);
  color: var(--gold-dim);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.mv-title {
  color: var(--text);
  flex: 1;
}
.mv-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Music list ───────────────────────────────────────────── */

.music-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.music-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--bg-elev);
  padding: 1.4rem 1.7rem;
  transition:
    background var(--transition),
    transform var(--transition);
}
.music-card:hover {
  background: var(--bg-elev-2);
  transform: translateX(6px);
}
.music-card-img {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.music-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.music-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-dim);
}
.music-card-body {
  flex: 1;
  min-width: 0;
}
.music-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
}
.music-card-subtitle {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.music-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin-top: 0.6rem;
}
.music-card-meta span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.music-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}
.music-card-arrow {
  color: var(--gold-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition:
    transform var(--transition),
    color var(--transition);
}
.music-card:hover .music-card-arrow {
  transform: translateX(6px);
  color: var(--gold-light);
}

/* ── Post list ────────────────────────────────────────────── */

.posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.posts-list--row {
  grid-template-columns: repeat(3, 1fr);
}
.post-card {
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
  overflow: hidden;
}
.post-card:hover {
  background: var(--bg-elev-2);
}
.post-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s var(--ease),
    filter 0.6s var(--ease);
  filter: brightness(0.8) grayscale(0.1);
}
.post-card:hover .post-card-img img {
  transform: scale(1.05);
  filter: brightness(1) grayscale(0);
}
.post-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.post-card-cat {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
}
.post-card-excerpt {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.post-card-date {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: auto;
}

/* ── Post single ──────────────────────────────────────────── */

.post-hero-img {
  height: 68vh;
  overflow: hidden;
  position: relative;
}
.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
  transform: scale(1.05);
}
.post-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}
.post-header {
  padding: 3rem 0 2rem;
}
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.post-cat {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  transition: color var(--transition);
}
.post-cat:hover {
  color: var(--gold-light);
}
.post-date {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.post-lead {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Prose ────────────────────────────────────────────────── */

.prose p {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.95;
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.prose p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.12em 0 0;
  color: var(--gold-light);
  font-weight: 500;
}

/* ── Foundation contacts ──────────────────────────────────── */

.foundation-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.fcontact-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.fcontact-label {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  min-width: 130px;
}

/* ── Members grid ─────────────────────────────────────────── */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2.5rem;
}
.member-card {
  text-align: center;
}
.member-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 1px solid var(--line-strong);
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.member-card:hover .member-img {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter var(--transition);
}
.member-card:hover .member-img img {
  filter: grayscale(0);
}
.member-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
}
.member-role {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 0.4rem;
}
.member-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.7;
}

/* ── Events list ──────────────────────────────────────────── */

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}
.event-card {
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.event-card:hover {
  background: var(--bg-elev-2);
}
.event-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition:
    transform 1s var(--ease),
    filter 0.6s var(--ease);
}
.event-card:hover .event-img img {
  transform: scale(1.05);
  filter: brightness(1);
}
.event-body {
  padding: 1.7rem;
}
.event-type {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.event-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.event-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.event-location {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  font-style: italic;
}

/* ── Contact form ─────────────────────────────────────────── */

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.form-label span {
  color: var(--gold);
}
.form-input {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 1rem 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition);
  width: 100%;
}
.form-input:focus {
  border-color: var(--gold-dim);
  background: var(--bg-elev-2);
}
.form-textarea {
  resize: vertical;
  min-height: 160px;
}
.form-notice {
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-style: italic;
}
.form-notice--ok {
  border-left: 3px solid var(--gold);
  color: var(--text);
  background: rgba(201, 168, 106, 0.06);
}
.form-notice--err {
  border-left: 3px solid #9b3a3a;
  color: #c97a7a;
  background: rgba(155, 58, 58, 0.06);
}
/* Honeypot anti-spam — fuori dallo schermo, non annunciato */
.form-hp {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text-muted);
}
.contact-info-row a:hover {
  color: var(--gold);
}

/* ── Stampa / rassegna ────────────────────────────────────── */

.press-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.press-item {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.8rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition:
    background var(--transition),
    padding var(--transition);
  position: relative;
}
a.press-item {
  cursor: pointer;
}
a.press-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
a.press-item:hover {
  background: linear-gradient(
    90deg,
    rgba(201, 168, 106, 0.05),
    transparent 70%
  );
  padding-left: 1.5rem;
}
a.press-item:hover::before {
  transform: scaleY(1);
}

.press-logo {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
}
.press-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.6rem;
  filter: grayscale(0.3) brightness(0.95);
  transition: filter var(--transition);
}
a.press-item:hover .press-logo img {
  filter: grayscale(0) brightness(1);
}
.press-monogram {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold-dim);
}

.press-body {
  flex: 1;
  min-width: 0;
}

.press-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}
.press-outlet {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.press-tag {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
}
.press-date {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-left: auto;
}
.press-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  transition: color var(--transition);
}
a.press-item:hover .press-title {
  color: var(--gold-light);
}
.press-excerpt {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.4rem;
  max-width: 720px;
}
.press-arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--gold-dim);
  transition:
    transform var(--transition),
    color var(--transition);
}
a.press-item:hover .press-arrow {
  transform: translate(4px, -4px);
  color: var(--gold-light);
}

@media (max-width: 620px) {
  .press-item {
    gap: 1.1rem;
    align-items: flex-start;
  }
  .press-logo {
    width: 56px;
    height: 56px;
  }
  .press-monogram {
    font-size: 1.6rem;
  }
  .press-date {
    margin-left: 0;
    width: 100%;
  }
  .press-arrow {
    display: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .opera-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .opera-visual {
    position: static;
  }
  .posts-list--row {
    grid-template-columns: 1fr;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .artist-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 1024px) {
  /* Con il menu aperto l'header non deve avere backdrop-filter:
     creerebbe un containing block e il pannello fixed si ancorerebbe
     all'header invece che al viewport. */
  body.nav-open .site-header,
  body.nav-open .site-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  .site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    /* centratura "sicura": con molte voci su schermi bassi il menu
       scorre invece di far uscire le prime voci dallo schermo */
    justify-content: flex-start;
    gap: 1.8rem;
    margin-left: 0;
    padding: 6rem 1.5rem calc(3rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
  }
  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    font-family: var(--font-serif);
    text-transform: none;
    color: var(--text);
    padding: 0.5rem 1rem;
  }
  .site-nav a:first-child {
    margin-top: auto;
  }
  .site-nav a:last-child {
    margin-bottom: auto;
  }
  .site-nav a.active {
    color: var(--gold-light);
  }
  .site-nav a::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  /* L'occhiello ha tre voci: su schermo stretto va alleggerito
     per non spezzarsi in tre righe */
  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.26em;
  }
  .artwork-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card .artwork-card-title {
    font-size: 1.5rem;
  }
  .quote-band::before {
    font-size: 5rem;
  }
}

/* ── Protezione delle immagini ────────────────────────────── */

/* Impedisce la selezione e, su iOS, il menu che compare tenendo
   premuto il dito sull'immagine (da cui si salva la foto). */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
  /* width/height nel tag servono solo a riservare lo spazio:
     l'altezza reale la decide il CSS (o la proporzione) */
  height: auto;
}
