:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --surface: #101010;
  --surface-2: #151515;
  --text: #f5f3ee;
  --muted: #b8b4ad;
  --gold: #b99d76;
  --gold-light: #d1b98f;
  --line: rgba(255,255,255,.11);
  --line-gold: rgba(185,157,118,.38);
  --shadow: 0 24px 70px rgba(0,0,0,.32);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 50% -15%, rgba(185,157,118,.08), transparent 34rem), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--gold); color: #090909; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-compact { padding: 68px 0; }
.section-dark { background: var(--bg-soft); border-block: 1px solid var(--line); }

.eyebrow { margin: 0 0 10px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .25em; font-size: .73rem; font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
.lead { color: #d8d5cf; font-size: clamp(1.04rem, 1.6vw, 1.2rem); max-width: 760px; }
.muted { color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(5,5,5,.88); backdrop-filter: blur(18px); }
.nav { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand-word { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; letter-spacing: .13em; font-size: .94rem; text-transform: uppercase; }
.brand-word span { color: var(--gold-light); }
.brand-mark { justify-self: center; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 0 30px rgba(185,157,118,.08); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { justify-self: end; display: flex; align-items: center; gap: 24px; font-size: .9rem; color: #dad7d1; }
.nav-links a { position: relative; padding: 8px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-light); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--gold); transition: right .2s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; margin: 5px auto; }

.hero { min-height: min(790px, calc(100svh - 84px)); display: grid; place-items: center; padding: 72px 0 82px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; border: 1px solid rgba(185,157,118,.08); border-radius: 50%; top: 48%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 120px rgba(185,157,118,.05) inset; }
.hero-inner { position: relative; z-index: 1; text-align: center; width: min(980px, calc(100% - 32px)); }
.hero-logo { width: min(900px, 92vw); margin: 0 auto; mix-blend-mode: screen; }
.hero-sub { margin: 24px auto 0; color: var(--muted); text-transform: uppercase; letter-spacing: .23em; font-size: .77rem; }
.scroll-cue { margin-top: 40px; display: inline-flex; align-items: center; gap: 10px; color: #a9a59d; font-size: .82rem; }
.scroll-cue::before { content: ""; width: 42px; height: 1px; background: var(--gold); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.2vw, 34px); }
.project-card { display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.project-copy { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-copy p { margin: 0; color: var(--muted); }
.project-arrow { margin-top: auto; padding-top: 12px; color: var(--gold-light); font-size: .9rem; }

.placeholder-2027 { width: 100%; height: 100%; min-height: 360px; display: grid; place-items: center; position: relative; padding: 26px; background: radial-gradient(circle at 50% 30%, rgba(185,157,118,.12), transparent 35%), linear-gradient(145deg, #090909, #111 55%, #070707); }
.placeholder-2027::before, .placeholder-2027::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(185,157,118,.25); pointer-events: none; }
.placeholder-2027::after { inset: 31px; border-color: rgba(255,255,255,.06); }
.placeholder-content { position: relative; z-index: 2; text-align: center; }
.placeholder-content img { width: 122px; height: 122px; object-fit: cover; border-radius: 50%; margin: 0 auto 22px; }
.placeholder-content strong { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.65rem, 3vw, 2.6rem); letter-spacing: .04em; }
.placeholder-content span { display: block; margin-top: 10px; color: var(--gold-light); letter-spacing: .22em; text-transform: uppercase; font-size: .76rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #090909; font-weight: 700; font-size: .92rem; transition: .2s ease; }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: rgba(255,255,255,.18); }
.btn-secondary:hover { background: #151515; color: var(--gold-light); border-color: var(--gold); }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 62px; align-items: center; }
.about-copy p { color: #cbc8c1; }
.brand-panel { border: 1px solid var(--line-gold); border-radius: var(--radius); overflow: hidden; background: #050505; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.brand-panel img { width: 100%; height: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature .n { color: var(--gold); font-size: .72rem; letter-spacing: .18em; margin-bottom: 26px; }
.feature p { margin-bottom: 0; color: var(--muted); }
.documents-callout { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 34px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: linear-gradient(110deg, rgba(185,157,118,.08), transparent 42%), var(--surface); }
.documents-callout p { margin: 10px 0 0; color: var(--muted); }

.page-hero { padding: 110px 0 60px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, rgba(185,157,118,.08), transparent 32rem); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--gold-light); }
.detail-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 52px; align-items: start; }
.poster { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0b0b; position: sticky; top: 112px; }
.poster img { width: 100%; height: auto; }
.detail-copy { min-width: 0; }
.meta-list { display: grid; grid-template-columns: 1fr; gap: 0; border-block: 1px solid var(--line); margin: 0 0 28px; }
.meta-row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.meta-row:last-child { border-bottom: 0; }
.meta-row dt { color: var(--gold-light); font-weight: 700; }
.meta-row dd { margin: 0; color: #d5d2cc; }
.detail-copy p { color: #c8c5bf; }
.notice { margin: 28px 0; padding: 22px 24px; border-left: 2px solid var(--gold); background: rgba(185,157,118,.07); color: #ddd8cf; }
.embed-wrap { margin-top: 38px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.gallery-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid button { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #111; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; }
.gallery-grid button:hover img { transform: scale(1.025); }

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-card { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.doc-tag { color: var(--gold-light); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700; }
.doc-card h3 { margin: 18px 0 12px; }
.doc-card p { margin: 0; color: var(--muted); }
.doc-actions { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; width: fit-content; gap: 9px; margin-top: auto; padding-top: 24px; color: var(--muted); font-size: .88rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(185,157,118,.09); }
.docs-subsection { margin-top: 72px; }
.doc-card-empty { border-style: dashed; background: rgba(255,255,255,.018); }

.contact-section { padding: 74px 0 84px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 52px; align-items: start; }
.contact-list { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item strong { color: var(--gold-light); font-size: .86rem; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; color: #8f8b84; font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; z-index: 999; display: none; place-items: center; padding: 24px; background: rgba(0,0,0,.92); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1080px, 92vw); max-height: 86vh; border-radius: 14px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: #0c0c0c; color: #fff; cursor: pointer; font-size: 1.5rem; }

/* Project cards - final V12.9 appearance */
.classic-project-card { overflow: hidden; border-radius: 28px; border: 1px solid rgba(185,154,103,.22); background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.005)), linear-gradient(180deg, #0d0d0d 0%, #090909 100%); box-shadow: 0 20px 55px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.03); transition: transform .42s cubic-bezier(.2,.7,.2,1), border-color .32s ease, box-shadow .42s ease; }
.classic-project-card .project-cover { position: relative; overflow: hidden; min-height: 470px; aspect-ratio: 4 / 4.35; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.045), transparent 58%), linear-gradient(180deg, #161616 0%, #0a0a0a 100%); border-bottom: 1px solid rgba(185,154,103,.16); }
.classic-project-card .project-cover::before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(185,154,103,.08); border-radius: 18px; pointer-events: none; }
.classic-project-card .project-cover::after { content: ""; position: absolute; left: 34px; right: 34px; top: 102px; height: 1px; background: linear-gradient(90deg, rgba(185,154,103,0), rgba(185,154,103,.28), rgba(185,154,103,0)); pointer-events: none; }
.classic-project-card .project-orbits { display: none !important; }
.classic-project-card .project-cover-content { position: relative; z-index: 2; height: 100%; min-height: 470px; display: flex; flex-direction: column; padding: 34px 34px 30px; color: #f3ede4; transition: opacity .30s ease, transform .45s ease; }
.classic-project-card .project-code { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 66px; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(185,154,103,.34); background: rgba(255,255,255,.015); color: #fff9f1; font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: .05em; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.classic-project-card .project-cover-title { max-width: 88%; margin-top: 82px; color: #f4eee6; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 3.25vw, 3.55rem); line-height: .95; font-weight: 600; letter-spacing: -.038em; text-transform: uppercase; text-wrap: balance; }
.classic-project-card.project-card-shortfilm .project-cover-title { max-width: 92%; font-size: clamp(2.05rem, 2.45vw, 2.75rem); line-height: .98; letter-spacing: -.032em; }
.classic-project-card .project-cover-type { margin-top: auto; padding-bottom: 18px; border-bottom: 1px solid rgba(185,154,103,.14); color: #b99a67; font-family: Arial, Helvetica, sans-serif; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .24em; }
.classic-project-card .project-cover-meta { padding-top: 18px; display: grid; gap: 6px; font-family: Arial, Helvetica, sans-serif; }
.classic-project-card .project-cover-meta strong { color: #f4eee5; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.classic-project-card .project-cover-meta small { color: rgba(244,238,229,.58); font-size: .78rem; line-height: 1.4; }
.classic-project-card .project-poster { position: absolute; inset: 0; z-index: 4; background: #0a0a0a; opacity: 0; transform: scale(1.02); transition: opacity .42s ease, transform .62s cubic-bezier(.2,.72,.2,1); pointer-events: none; }
.classic-project-card .project-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.20) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); pointer-events: none; }
.classic-project-card .project-poster img { width: 100%; height: 100%; object-fit: cover; }
.classic-project-card .project-copy { position: relative; min-height: 152px; padding: 28px 32px 30px; background: linear-gradient(180deg, #121212 0%, #0d0d0d 100%); color: #f3ede4; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.classic-project-card .project-copy::before { content: ""; position: absolute; top: 0; left: 32px; width: 48px; height: 1px; background: linear-gradient(90deg, rgba(185,154,103,.95), rgba(185,154,103,0)); }
.classic-project-card .project-summary { margin: 0; color: rgba(243,237,228,.76); font-size: 1.03rem; line-height: 1.62; max-width: 34ch; }
.classic-project-card .project-arrow { margin-top: 0; padding-top: 0; color: #d2bd95; font-weight: 700; letter-spacing: .01em; }
.projects-grid-single { grid-template-columns: minmax(300px, 430px) !important; max-width: none !important; }

@media (hover:hover) and (pointer:fine) {
  .classic-project-card:hover { transform: translateY(-6px); border-color: rgba(210,189,149,.42); box-shadow: 0 28px 78px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04); }
  .classic-project-card:not(.no-poster-card):hover .project-cover-content,
  .classic-project-card:not(.no-poster-card):focus-visible .project-cover-content { opacity: 0; transform: translateY(8px); }
  .classic-project-card:not(.no-poster-card):hover .project-poster,
  .classic-project-card:not(.no-poster-card):focus-visible .project-poster { opacity: 1; transform: scale(1); }
}

@media (max-width: 1100px) {
  .classic-project-card .project-cover, .classic-project-card .project-cover-content { min-height: 435px; }
  .classic-project-card .project-cover-title { font-size: clamp(2.2rem, 4.2vw, 3.05rem); }
  .classic-project-card.project-card-shortfilm .project-cover-title { font-size: clamp(1.95rem, 3.4vw, 2.45rem); }
}

@media (max-width: 940px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .brand-word { display: none; }
  .brand-mark { justify-self: start; }
  .menu-toggle { display: block; justify-self: end; }
  .nav-links { position: absolute; top: 84px; left: 20px; right: 20px; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(10,10,10,.98); flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .projects-grid, .feature-grid, .docs-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .poster { position: static; max-width: 620px; }
}

@media (max-width: 760px) {
  .classic-project-card { border-radius: 24px; }
  .classic-project-card .project-cover, .classic-project-card .project-cover-content { min-height: auto; }
  .classic-project-card .project-cover { aspect-ratio: 4 / 4.2; }
  .classic-project-card .project-cover::before { inset: 16px; border-radius: 14px; }
  .classic-project-card .project-cover::after { left: 26px; right: 26px; top: 88px; }
  .classic-project-card .project-cover-content { padding: 28px 26px 24px; }
  .classic-project-card .project-code { min-width: 58px; height: 46px; padding: 0 14px; border-radius: 12px; }
  .classic-project-card .project-cover-title, .classic-project-card.project-card-shortfilm .project-cover-title { max-width: 95%; margin-top: 70px; font-size: clamp(2rem, 8vw, 2.6rem); line-height: .98; }
  .classic-project-card .project-copy { min-height: auto; padding: 24px 26px 26px; gap: 14px; }
  .classic-project-card .project-copy::before { left: 26px; }
  .classic-project-card .project-summary { font-size: .98rem; }
}

@media (max-width: 660px) {
  .container { width: min(100% - 26px, var(--max)); }
  .section { padding: 70px 0; }
  .hero { min-height: 68svh; padding: 48px 0 62px; }
  .hero-sub { letter-spacing: .15em; font-size: .68rem; }
  .section-head { align-items: start; flex-direction: column; }
  .projects-grid, .feature-grid, .docs-grid { grid-template-columns: 1fr; }
  .documents-callout { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr; gap: 3px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }
}


/* =========================================================
   V13 — card balance refinements
   ========================================================= */
.nowrap { white-space: nowrap; }

.classic-project-card .project-cover-title {
  max-width: 92%;
  font-size: clamp(2.25rem, 3vw, 3.1rem);
  line-height: .94;
}

.classic-project-card.project-card-shortfilm .project-cover-title {
  max-width: 94%;
  font-size: clamp(1.9rem, 2.15vw, 2.35rem);
  line-height: .96;
}

.classic-project-card.project-card-shadow .project-cover-title {
  font-size: clamp(2.05rem, 2.6vw, 2.7rem);
  line-height: .95;
  max-width: 95%;
}

.classic-project-card .project-cover,
.classic-project-card .project-cover-content {
  min-height: 442px;
}

.classic-project-card .project-copy {
  min-height: 136px;
}

.projects-grid-single {
  grid-template-columns: minmax(320px, 440px) !important;
  justify-content: start;
}

@media (max-width: 1100px) {
  .classic-project-card .project-cover,
  .classic-project-card .project-cover-content {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .classic-project-card .project-cover-title,
  .classic-project-card.project-card-shortfilm .project-cover-title,
  .classic-project-card.project-card-shadow .project-cover-title {
    max-width: 95%;
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: .96;
  }

  .projects-grid-single {
    grid-template-columns: 1fr !important;
  }
}


/* Trailer placeholder temporaneo */
.embed-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(185,157,118,.08), transparent 34%), linear-gradient(180deg, rgba(18,18,18,.98), rgba(10,10,10,.98));
  overflow: hidden;
}

.embed-placeholder-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 28px;
}

.embed-placeholder-inner img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(209,185,143,.28);
}

.embed-placeholder-inner strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  color: var(--text);
}

.embed-placeholder-inner span {
  max-width: 36ch;
  color: var(--muted);
}


/* =========================================================
   V16 — hover locandine stabile
   Crossfade pulito: niente zoom o scorrimenti sovrapposti.
   ========================================================= */
.classic-project-card .project-poster {
  transform: none !important;
  transition: opacity .28s ease !important;
}

.classic-project-card .project-cover-content {
  transform: none !important;
  transition: opacity .24s ease !important;
}

@media (hover:hover) and (pointer:fine) {
  .classic-project-card:not(.no-poster-card):hover .project-cover-content,
  .classic-project-card:not(.no-poster-card):focus-visible .project-cover-content {
    opacity: 0;
    transform: none !important;
  }

  .classic-project-card:not(.no-poster-card):hover .project-poster,
  .classic-project-card:not(.no-poster-card):focus-visible .project-poster {
    opacity: 1;
    transform: none !important;
  }
}


/* =========================================================
   V23 — scheda corto definitiva
   ========================================================= */
.detail-section { margin-top: 32px; }

.detail-quote {
  margin: 30px 0 0;
  padding: 24px 26px;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: linear-gradient(110deg, rgba(185,157,118,.08), transparent 52%), var(--surface);
  color: #f3ede4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

.video-frame { margin-top: 18px; }

.video-embed {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.video-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.video-note code {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #f3ede4;
}


/* =========================================================
   V24 — trailer multiqualità e galleria foto dal set
   ========================================================= */
.video-shell { margin-top: 18px; }
.video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; color: var(--muted); font-size: .88rem; }
.video-label { color: var(--gold-light); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.quality-control { display: inline-flex; align-items: center; gap: 9px; }
.quality-control select { min-height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line-gold); border-radius: 999px; color: var(--text); background: #0d0d0d; cursor: pointer; }
.video-frame { position: relative; overflow: hidden; border-radius: 24px; }
.video-embed { display: block; width: 100%; max-height: 72vh; background: #000; }
.video-unavailable { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,5,5,.84); color: var(--gold-light); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; pointer-events: none; }
.video-unavailable[hidden] { display: none; }

.set-gallery { grid-template-columns: repeat(3, 1fr); }
.set-gallery .set-photo { aspect-ratio: 3 / 2; }
.set-gallery .set-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover !important; object-position: center !important; padding: 0 !important; background: #0a0a0a; }
.gallery-item-hidden { display: none !important; }
.gallery-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gallery-count { color: var(--muted); font-size: .9rem; }

.lightbox { padding: 54px 80px; }
.lightbox img { max-width: min(1380px, 88vw); max-height: 86vh; padding: 0 !important; border-radius: 14px; background: transparent !important; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(12,12,12,.88); color: #fff; cursor: pointer; font-size: 2.2rem; line-height: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(12,12,12,.8); color: #d9d5ce; font-size: .82rem; }

@media (max-width: 760px) {
  .set-gallery { grid-template-columns: 1fr 1fr; }
  .video-toolbar { align-items: flex-start; }
  .lightbox { padding: 64px 16px 58px; }
  .lightbox img { max-width: 94vw; max-height: 78vh; }
  .lightbox-nav { width: 44px; height: 44px; top: auto; bottom: 12px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}
@media (max-width: 480px) { .set-gallery { grid-template-columns: 1fr; } }
