/* B.I.M. Orchestra — foglio di stile principale */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0d0c11;
  --bg-2: #15141b;
  --bg-3: #1d1c25;
  --line: rgba(241, 236, 227, 0.12);
  --text: #f1ece3;
  --muted: #a9a4b3;
  --accent: #929de3;
  --accent-strong: #b6bdf0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-block;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 1px solid var(--text);
  border-radius: 999px;
  font: 500 0.875rem/1 var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: rgba(13, 12, 17, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand svg { height: 44px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a {
  font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 8px 0; position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
}
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text); padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    /* l'header ha backdrop-filter e fa da contenitore: altezza esplicita */
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--bg);
    padding: 32px var(--gutter); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; font: 500 2rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { background: var(--bg); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
}

/* Hero (home) */
.hero {
  position: relative; min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 80px) 0 clamp(56px, 10vh, 110px);
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,12,17,0.55) 0%, rgba(13,12,17,0.2) 35%, rgba(13,12,17,0.85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13,12,17,0.75) 0%, rgba(13,12,17,0) 70%);
}
.hero h1 { margin-bottom: 0.3em; }
.hero h1 em { font-style: italic; color: var(--accent-strong); }
.hero .lead { color: var(--text); opacity: 0.85; margin-bottom: 2rem; }

/* Intestazione pagine interne */
.page-head { padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin-bottom: 0.2em; }
.page-head .lead { margin: 0; }

/* Sezioni */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--alt { background: var(--bg-2); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { margin: 0; }
.link-arrow { font: 500 0.875rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--accent); white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* Chi siamo */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__text p { color: var(--muted); }
.about__text p:first-of-type { font: 500 clamp(1.5rem, 2.6vw, 1.9rem)/1.35 var(--serif); color: var(--text); }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__media figcaption { position: absolute; left: -1px; bottom: 24px; background: var(--bg); padding: 14px 20px; font: italic 500 1.15rem/1.3 var(--serif); max-width: 80%; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 4 / 3; }
}

/* Numeri */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(12px, 3vw, 32px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 500 clamp(2.4rem, 6vw, 4rem)/1 var(--serif); color: var(--accent-strong); margin-bottom: 10px; }
.stat span { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* Collaborazioni */
.artists { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15em 0; font: 500 clamp(1.6rem, 4.2vw, 3rem)/1.3 var(--serif); }
.artists li:not(:last-child)::after { content: "·"; color: var(--accent); margin: 0 0.45em; }
.artists li:nth-child(3n + 2) { font-style: italic; color: var(--muted); }

/* Citazione */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font: italic 500 clamp(1.6rem, 3.6vw, 2.6rem)/1.3 var(--serif); }
.quote blockquote::before { content: "“"; display: block; font-size: 4em; line-height: 0.6; color: var(--accent); margin-bottom: 0.15em; font-style: normal; }
.quote cite { display: block; margin-top: 1.5rem; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; color: var(--muted); }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 32px 24px; }
@media (min-width: 720px) { .video-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.video-card h3 { font-size: 1.35rem; margin: 14px 0 2px; }
.video-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: #000; cursor: pointer; overflow: hidden; border-radius: var(--radius); color: var(--text);
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s, transform 0.6s; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(13,12,17,0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f1ece3' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat;
  border: 1px solid rgba(241,236,227,0.5); transition: background-color 0.2s, transform 0.2s;
}
.yt:hover::after { background-color: var(--accent); transform: scale(1.06); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after { display: none; }
.video-group + .video-group { margin-top: clamp(56px, 8vw, 88px); }
.video-group > h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.video-note { margin-top: 40px; font-size: 0.875rem; color: var(--muted); }

/* Discografia */
.disco { display: grid; gap: 0; }
.disco__year { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.disco__year:first-child { padding-top: 0; }
.disco__year h2 { font-size: 2.4rem; color: var(--accent-strong); margin: 0; line-height: 1; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.disco__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px 40px; }
.disco__list li { line-height: 1.4; }
.disco__list strong { display: block; font: 600 1.0625rem/1.35 var(--sans); letter-spacing: -0.005em; margin-bottom: 2px; }
.disco__list span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 640px) {
  .disco__year { grid-template-columns: 1fr; gap: 14px; }
  .disco__year h2 { position: static; }
}

/* Galleria foto */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.gallery img { width: 100%; transition: transform 0.6s, opacity 0.3s; opacity: 0.92; }
.gallery a:hover img { transform: scale(1.03); opacity: 1; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 11, 0.96); color: var(--text); }
.lightbox::backdrop { background: rgba(8, 8, 11, 0.96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 64px 16px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100svh - 160px); width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.lightbox button {
  position: absolute; background: rgba(241,236,227,0.08); color: var(--text); border: 1px solid var(--line);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: var(--accent); color: var(--bg); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* Rassegna stampa */
.press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.press a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.25s, color 0.2s; }
.press a:hover { padding-left: 12px; color: var(--text); }
.press strong { font: 500 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--serif); }
.press span { grid-column: 1; color: var(--muted); font-size: 0.9375rem; }
.press em { grid-column: 2; grid-row: 1 / span 2; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.16em; font-style: normal; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 8px 14px; }

/* Testimonianze */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.testimonial { margin: 0; padding: clamp(28px, 4vw, 44px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 24px; font: 500 1.35rem/1.45 var(--serif); }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 3.5rem; line-height: 0.7; color: var(--accent); }
.testimonial figcaption { margin-top: auto; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pass { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: center; }
.pass img { border-radius: var(--radius); transform: rotate(-2deg); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.pass p { font: italic 500 1.5rem/1.4 var(--serif); color: var(--muted); margin: 0; }
@media (max-width: 760px) { .pass { grid-template-columns: 1fr; } }

/* Contatti + footer */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact h2 { margin-bottom: 0.3em; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; text-decoration: none; font: 500 clamp(1.25rem, 2.6vw, 1.7rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.contact-list small { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Comparsa allo scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
