/* BitHub Studio v2 · Chi siamo (tema scuro) */
.bha { --acc: #a78bfa; }

/* hero: la finestra del video si apre fino ai bordi */
.bha-hero { position: relative; height: 240vh; }
.bha-hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
.bha-window { position: absolute; inset: 0; clip-path: inset(calc(14vh - var(--p, 0) * 14vh) calc(10vw - var(--p, 0) * 10vw) calc(14vh - var(--p, 0) * 14vh) calc(44vw - var(--p, 0) * 44vw) round calc(36px - var(--p, 0) * 36px)); background: #120d24 url("/images/shot1.webp") center / cover; }
.bha-video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.15 - var(--p, 0) * .15)); }
.bha-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,8,22,.92) 0%, rgba(11,8,22,.55) 40%, rgba(11,8,22,.1) 75%), linear-gradient(0deg, rgba(11,8,22,.85), transparent 45%); opacity: calc(.35 + var(--p, 0) * .65); }
.bha-hero-copy { position: relative; z-index: 2; padding-bottom: 12vh; }
.bha-h1 { margin: 0; font-size: clamp(54px, 8.4vw, 150px); font-weight: 650; line-height: .9; letter-spacing: -.058em; }
.bha-sub { max-width: 520px; margin: 26px 0 0; color: var(--bh-ink-2); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.bha-rail { z-index: 3; }

/* intro */
.bha-intro { padding: 16vh 0 10vh; }
.bha-intro-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; align-items: start; }
.bha-statement { margin: 0; font-size: clamp(40px, 4.6vw, 78px); font-weight: 620; line-height: 1; letter-spacing: -.045em; }
.bha-statement .mw { color: rgba(255,255,255,.14); transition: color .35s; } .bha-statement .mw.on { color: #fff; }
.bha-intro-copy { display: grid; gap: 20px; color: var(--bh-ink-2); font-size: 17px; line-height: 1.65; padding-top: 8px; }
.bha-intro-copy p { margin: 0; }
.bha-lead { color: #fff; font-size: 21px; line-height: 1.5; }
.bha-years { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 24px; }
.bha-years b { color: var(--acc); font: italic 400 84px/.8 "Instrument Serif", serif; }
.bha-years > span { color: var(--bh-ink-2); font-size: 15px; }

/* capitoli */
.bha-story { padding: 6vh 0 10vh; }
.bha-story-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5vw; align-items: start; }
.bha-story-media { position: sticky; top: 13vh; height: 74vh; }
.bha-frame { position: relative; height: 100%; border-radius: 34px; overflow: hidden; padding: 0; }
.bha-shot { position: absolute; inset: 10px; overflow: hidden; border-radius: 26px; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--bh-ease), transform 1.6s var(--bh-ease); }
.bha-shot.on { opacity: 1; transform: none; }
.bha-shot img { width: 100%; height: 100%; object-fit: cover; }
.bha-frame-n { position: absolute; right: 26px; bottom: 22px; z-index: 2; padding: 8px 14px; border-radius: 99px; background: rgba(11,8,22,.6); backdrop-filter: blur(10px); color: var(--bh-ink-2); font-size: 13px; font-weight: 600; }
.bha-frame-n b { color: #fff; }
.bha-chapters { display: grid; gap: 0; }
.bha-ch { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 86vh; opacity: .35; transition: opacity .6s; }
.bha-ch.on { opacity: 1; }
.bha-ch-n { color: var(--acc); font: italic 400 110px/.8 "Instrument Serif", serif; }
.bha-ch .bh-kick { margin: 0; }
.bha-ch h2 { margin: 0; font-size: clamp(36px, 3.8vw, 62px); font-weight: 640; line-height: .98; letter-spacing: -.045em; }
.bha-ch > p:not(.bh-kick) { margin: 0; color: var(--bh-ink-2); font-size: 18px; line-height: 1.65; }
body.bhs .bha-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
body.bhs .bha-tags li { margin: 0; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-size: 14px; font-weight: 600; }
body.bhs .bha-tags li::before { display: none; }
.bha-ch-img { display: none; }

/* anello dei valori */
.bha-values { position: relative; height: 300vh; }
.bha-values-pin { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 4vh; height: 100vh; overflow: hidden; }
.bha-values-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.bha-ring-stage { position: relative; height: 54vh; perspective: 1800px; }
.bha-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(calc(var(--p, 0) * -300deg)); }
body.bhs .bha-v { position: absolute; left: -170px; top: -175px; width: 340px; min-height: 330px; margin: 0; padding: 30px; border-radius: 30px; display: flex; flex-direction: column; gap: 14px; transform: rotateY(calc(var(--k) * 60deg)) translateZ(min(520px, 42vw)); backface-visibility: hidden; }
body.bhs .bha-v::before { display: none; }
.bha-v span { color: var(--acc); font: italic 400 54px/1 "Instrument Serif", serif; }
.bha-v h3 { margin: auto 0 0; font-size: 30px; font-weight: 640; letter-spacing: -.035em; }
.bha-v p { margin: 0; color: var(--bh-ink-2); font-size: 15.5px; line-height: 1.55; }

/* team */
.bha-team { padding: 12vh 0 6vh; }
.bha-team-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5vw; align-items: start; }
.bha-team-head { position: sticky; top: 130px; display: grid; gap: 22px; color: var(--bh-ink-2); }
.bha-team-head p { margin: 0; }
.bha-band { margin: 10vh 0 6vh; }
.bha-eco { max-width: 22ch; margin: 0; font-size: clamp(36px, 4.4vw, 74px); font-weight: 620; line-height: 1; letter-spacing: -.045em; }
.bha-eco .mw { color: rgba(255,255,255,.14); transition: color .35s; } .bha-eco .mw.on { color: #fff; }
.bha-partner { max-width: 640px; margin: 30px 0 0; color: var(--bh-ink-2); font-size: 18px; line-height: 1.6; }
.bha-all { margin: 34px 0 0; }
.bha .bh-link { color: #c4b5fd; }

/* i soci */
.bha-people { padding: 14vh 0 6vh; }
.bha-people-head { display: grid; grid-template-columns: 1fr .9fr; align-items: end; gap: 5vw; }
.bha-people-stage { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 4vw; margin-top: 56px; }
.bha-photo { position: relative; margin: 0; border-radius: 34px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.bha-photo-in { overflow: hidden; border-radius: 34px; aspect-ratio: 4 / 3; }
.bha-photo-in img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1) translateY(calc((.5 - var(--v, .5)) * 46px)); }
.bha-photo figcaption { position: absolute; left: 22px; bottom: 22px; display: grid; gap: 2px; padding: 12px 18px; border-radius: 16px; background: rgba(11,8,22,.62); backdrop-filter: blur(12px); transform: translateZ(40px); }
.bha-photo figcaption b { color: #fff; font-size: 17px; }
.bha-photo figcaption span { color: var(--bh-ink-2); font-size: 13px; }
.bha-posters { position: relative; height: min(46vw, 600px); perspective: 1400px; }
.bha-poster { position: absolute; width: 60%; margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.1); transition: scale .6s var(--bh-ease), z-index 0s; }
.bha-poster img { display: block; width: 100%; height: auto; }
.bha-poster.p1 { left: 0; top: 0; z-index: 1; transform: rotate(calc(-9deg + var(--v, .5) * 6deg)) translateY(calc((.5 - var(--v, .5)) * 70px)); }
.bha-poster.p2 { right: 0; top: 14%; z-index: 2; transform: rotate(calc(10deg - var(--v, .5) * 6deg)) translateY(calc((var(--v, .5) - .5) * 70px)); }
.bha-poster:hover { z-index: 3; scale: 1.05; }
.bha-poster-cap { position: absolute; left: 0; bottom: 0; z-index: 4; margin: 0; padding: 14px 20px; border-radius: 18px; background: rgba(11,8,22,.7); backdrop-filter: blur(12px); color: #fff; font-size: 20px; font-weight: 640; line-height: 1.1; letter-spacing: -.02em; }
.bha-poster-cap em { color: var(--acc); font: italic 400 26px "Instrument Serif", serif; }
.bha-partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 50px auto 0; padding-left: var(--bh-pad); padding-right: var(--bh-pad); list-style: none; }
body.bhs .bha-pc { display: grid; justify-items: start; gap: 4px; margin: 0; padding: 22px; border-radius: 24px; }
body.bhs .bha-pc::before { display: none; }
.bha-av { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 12px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px rgba(167,139,250,.5); }
.bha-av img { width: 100%; height: 100%; object-fit: cover; }
.bha-av--mono { background: linear-gradient(135deg, #a78bfa, #f2a93b); color: #0b0816; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bha-pc b { color: #fff; font-size: 19px; letter-spacing: -.02em; }
.bha-pc small { color: var(--bh-ink-2); font-size: 14px; }

@media (max-width: 1000px) {
  .bha-hero { height: 180vh; }
  .bha-window { clip-path: inset(calc(10vh - var(--p, 0) * 10vh) calc(6vw - var(--p, 0) * 6vw) calc(46vh - var(--p, 0) * 46vh) calc(6vw - var(--p, 0) * 6vw) round calc(28px - var(--p, 0) * 28px)); }
  .bha-intro-in, .bha-story-in, .bha-team-in, .bha-values-head { grid-template-columns: 1fr; }
  .bha-story-media { display: none; }
  .bha-ch { min-height: 0; padding: 6vh 0; opacity: 1; }
  .bha-ch-img { display: block; width: 100%; border-radius: 24px; margin-top: 10px; }
  .bha-people-head, .bha-people-stage { grid-template-columns: 1fr; }
  .bha-posters { height: 108vw; max-height: 640px; }
  .bha-partners { grid-template-columns: 1fr 1fr; }
  .bha-team-head { position: static; }
  .bha-values { height: 260vh; }
  body.bhs .bha-v { width: 260px; left: -130px; min-height: 300px; padding: 24px; transform: rotateY(calc(var(--k) * 60deg)) translateZ(300px); }
}
@media (prefers-reduced-motion: reduce) {
  .bha-hero { height: auto; } .bha-hero-pin { position: relative; height: 92vh; }
  .bha-window { clip-path: none; }
  .bha-values { height: auto; } .bha-values-pin { position: relative; height: auto; padding: 12vh 0; }
  .bha-ring-stage { height: auto; perspective: none; }
  .bha-ring { position: static; width: auto; height: auto; transform: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 0 var(--bh-pad); }
  body.bhs .bha-v { position: relative; left: 0; top: 0; width: auto; transform: none; }
  .bha-ch { opacity: 1; }
  .bha-poster.p1, .bha-poster.p2, .bha-photo-in img { transform: none; }
}
