/* BitHub Studio v2 · catalogo servizi */
.bhk-hero { padding: 130px 0 6vh; }
.bhk-h1 { margin: 0; font-size: clamp(60px, 9vw, 160px); font-weight: 650; line-height: .88; letter-spacing: -.06em; }
.bhk-hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: 40px; }
.bhk-hero-foot .bh-lead { max-width: 640px; }
.bhk-count { display: flex; align-items: center; gap: 14px; }
.bhk-count b { color: var(--bh-violet); font: italic 400 clamp(80px, 9vw, 150px)/.8 "Instrument Serif", serif; }
.bhk-count span { color: var(--bh-muted); font-size: 14px; font-weight: 600; line-height: 1.35; }

.bhk-list { position: relative; padding: 6vh 0 12vh; }
.bhk-bar { position: sticky; top: 92px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 12px 12px 12px 22px; border-radius: 99px; background: rgba(244,242,249,.75); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--bh-shadow); }
.bhk-h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.bhk-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.bhk-filters button { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; border: 0; border-radius: 99px; background: transparent; color: var(--bh-muted); font: 600 14px Inter, sans-serif; cursor: pointer; transition: background .3s, color .3s; }
.bhk-filters button:hover { color: var(--bh-ink); background: rgba(255,255,255,.7); }
.bhk-filters button[aria-pressed="true"] { background: var(--bh-ink); color: #fff; }
.bhk-filters sup { font-size: 11px; opacity: .7; }
.bhk-rows { margin: 0; padding: 0; list-style: none; }
.bhk-row { border-top: 1px solid var(--bh-line-2); }
.bhk-row:last-child { border-bottom: 1px solid var(--bh-line-2); }
.bhk-row[hidden] { display: none; }
.bhk-row.show { animation: bhk-in .6s var(--bh-ease) both; animation-delay: calc(var(--o, 0) * 35ms); }
@keyframes bhk-in { from { opacity: 0; transform: translateY(20px); } }
.bhk-row a { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.2fr) 120px 50px; align-items: center; gap: 24px; padding: 26px 8px; color: var(--bh-ink); text-decoration: none; transition: padding .5s var(--bh-ease), color .3s; }
.bhk-row a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.35)); opacity: 0; transform: scaleY(.6); transition: opacity .35s, transform .5s var(--bh-ease); }
.bhk-row a:hover, .bhk-row a:focus-visible { padding-left: 22px; }
.bhk-row a:hover::before, .bhk-row a:focus-visible::before { opacity: 1; transform: none; }
.bhk-n { color: var(--bh-violet); font: italic 400 24px "Instrument Serif", serif; }
.bhk-name { font-size: clamp(22px, 2.2vw, 34px); font-weight: 640; line-height: 1.05; letter-spacing: -.035em; }
.bhk-desc { color: var(--bh-muted); font-size: 15px; line-height: 1.5; }
.bhk-tag { justify-self: start; padding: 6px 12px; border-radius: 99px; background: rgba(100,22,200,.08); color: var(--bh-violet); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.bhk-row[data-cat="crescita"] .bhk-tag, .bhk-row[data-cat="growth"] .bhk-tag { background: rgba(47,107,255,.1); color: #2f5bd8; }
.bhk-row[data-cat="ai"] .bhk-tag { background: rgba(22,163,122,.12); color: #0f7a55; }
.bhk-row[data-cat="sicurezza"] .bhk-tag, .bhk-row[data-cat="security"] .bhk-tag { background: rgba(21,16,42,.08); color: var(--bh-ink); }
.bhk-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bh-line-2); transition: background .3s, color .3s, transform .5s var(--bh-ease); }
.bhk-row a:hover .bhk-go { background: var(--bh-ink); color: #fff; transform: rotate(-45deg); }
.bhk-thumb { display: none; }
.bhk-float { position: fixed; left: 0; top: 0; z-index: 20; width: 300px; aspect-ratio: 4 / 3; margin: 0; border-radius: 22px; overflow: hidden; pointer-events: none; opacity: 0; scale: .7; box-shadow: var(--bh-shadow-lg); transition: opacity .35s, scale .5s var(--bh-ease); }
.bhk-float.on { opacity: 1; scale: 1; }
.bhk-float img { width: 100%; height: 100%; object-fit: cover; }
.bhk-float::after { content: ""; position: absolute; inset: 0; background: #4b3a8f; mix-blend-mode: lighten; opacity: .4; }

.bhk-products { padding: 10vh 0; }
.bhk-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; perspective: 1400px; }
.bhk-p { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 26px; }
.bhk-p:nth-child(1) { background: linear-gradient(150deg, rgba(100,22,200,.12), rgba(255,255,255,.5)); }
.bhk-p-n { color: var(--bh-violet); font: italic 400 26px "Instrument Serif", serif; }
.bhk-p h3 { margin: 0; font-size: 22px; font-weight: 640; letter-spacing: -.03em; line-height: 1.1; }
.bhk-p h3 a { color: var(--bh-ink); text-decoration: none; }
.bhk-p p { margin: 0; color: var(--bh-muted); font-size: 15px; line-height: 1.5; }
.bhk-p-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 10px; font-size: 14px; }
.bhk-p .bh-link { color: var(--bh-violet); }
.bhk-more { max-width: 760px; margin: 40px 0 0; color: var(--bh-muted); line-height: 1.6; }

@media (max-width: 1000px) {
  .bhk-row a { grid-template-columns: 50px 1fr 44px; gap: 6px 16px; }
  .bhk-desc, .bhk-tag { grid-column: 2; } .bhk-go { grid-column: 3; grid-row: 1; }
  .bhk-pgrid { grid-template-columns: 1fr 1fr; }
  .bhk-bar { position: relative; top: 0; border-radius: 24px; }
}
@media (max-width: 600px) {
  .bhk-hero-foot { grid-template-columns: 1fr; }
  .bhk-pgrid { grid-template-columns: 1fr; } .bhk-p:nth-child(1) { grid-column: auto; }
  .bhk-filters { overflow-x: auto; flex-wrap: nowrap; }
}
