/* BitHub Studio v2 · guida GConnect per ChatGPT */
.bhg { --acc: #2f6bff; }
.bhg-sec { padding: 10vh 0; }
.bhg .bh-kick { color: var(--acc); }

/* hero */
.bhg-hero { padding: 130px 0 6vh; }
.bhg-hero-in { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 4vw; min-height: 78vh; }
.bhg-h1 { margin: 18px 0 0; font-size: clamp(48px, 6vw, 104px); font-weight: 660; line-height: .92; letter-spacing: -.055em; }
.bhg-h1 em { color: var(--acc); font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -.03em; }
.bhg-lead { max-width: 600px; margin: 28px 0 32px; color: var(--bh-ink-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.bhg-meta { display: grid; gap: 8px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--bh-line); list-style: none; color: var(--bh-muted); font-size: 14.5px; }
.bhg-meta li { position: relative; padding-left: 22px; }
.bhg-meta li::before { content: "✓"; position: absolute; left: 0; color: #16a37a; font-weight: 700; }
.bhg-meta li:last-child::before { content: none; } .bhg-meta li:last-child { padding-left: 0; }
.bhg-hero-art { position: relative; height: 600px; transform-style: preserve-3d; }
.bhg-orbit { position: absolute; inset: -6% 16% 34% -4%; display: grid; place-items: center; transform: translateZ(-40px); }
.bhg-core { position: relative; z-index: 2; display: grid; place-items: center; gap: 2px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #6f9bff, #1f4fd8 60%, #15102a); color: #fff; box-shadow: 0 30px 80px -20px rgba(47,107,255,.65), 0 0 0 14px rgba(47,107,255,.1), 0 0 0 30px rgba(47,107,255,.05); text-align: center; animation: bhg-pulse 4s ease-in-out infinite; }
.bhg-core b { font: italic 400 64px/0.8 "Instrument Serif", serif; } .bhg-core span { font-size: 15px; font-weight: 700; } .bhg-core small { font-size: 11px; opacity: .75; }
@keyframes bhg-pulse { 50% { box-shadow: 0 30px 80px -20px rgba(47,107,255,.65), 0 0 0 22px rgba(47,107,255,.12), 0 0 0 46px rgba(47,107,255,.04); } }
.bhg-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: bhg-spin 60s linear infinite; }
.bhg-ring span { position: absolute; left: 0; top: 0; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.88); box-shadow: var(--bh-shadow); color: var(--bh-ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; transform: rotate(calc(var(--k) * 30deg)) translateX(clamp(180px, 17vw, 250px)) rotate(calc(var(--k) * -30deg)) translate(-50%, -50%); }
.bhg-ring span { animation: bhg-counter 60s linear infinite; }
@keyframes bhg-spin { to { rotate: 360deg; } }
@keyframes bhg-counter { to { rotate: -360deg; } }
.bhg-chat { position: absolute; right: 0; bottom: -4%; z-index: 3; width: min(420px, 88%); padding: 0 0 16px; border-radius: 24px; overflow: hidden; box-shadow: var(--bh-shadow-lg); transform: translateZ(80px) rotate(-2deg); }
.bhg-chat-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--bh-line); }
.bhg-chat-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bh-line-2); } .bhg-chat-bar span { margin-left: 8px; color: var(--bh-muted); font-size: 12.5px; font-weight: 600; }
.bhg-q { max-width: 82%; margin: 16px 16px 0 auto; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--bh-ink); color: #fff; font-size: 14px; line-height: 1.45; animation: bhg-in .8s var(--bh-ease) .4s both; }
.bhg-tool { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; color: var(--bh-muted); font-size: 12.5px; font-weight: 600; animation: bhg-in .8s var(--bh-ease) 1.2s both; }
.bhg-tool span { animation: bhg-spin 3s linear infinite; display: inline-block; }
.bhg-tool em { padding: 3px 9px; border-radius: 99px; background: rgba(22,163,122,.12); color: #0f7a55; font-style: normal; font-size: 11.5px; }
.bhg-a { margin: 12px 16px 0; padding: 12px 16px; border-radius: 6px 18px 18px 18px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px var(--bh-line); font-size: 14px; line-height: 1.5; animation: bhg-in .8s var(--bh-ease) 2s both; }
.bhg-demo { display: block; margin: 10px 16px 0; color: var(--bh-muted); font-size: 11.5px; }
@keyframes bhg-in { from { opacity: 0; transform: translateY(12px); } }

/* dati di connessione */
.bhg-conn { padding-top: 2vh; }
.bhg-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px 50px; padding: clamp(26px, 4vw, 50px); border-radius: 32px; }
.bhg-card-head h2 { margin: 0 0 10px; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.035em; }
.bhg-card-head p { margin: 0; color: var(--bh-muted); }
.bhg .gc-fields { display: grid; gap: 10px; margin: 0; }
.bhg .gc-field { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px var(--bh-line); }
.bhg .gc-field dt { color: var(--bh-muted); font-size: 13px; font-weight: 600; }
.bhg .gc-field dd { margin: 0; color: var(--bh-ink); font: 600 15px/1.3 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.bhg .gc-field dd.gc-field__plain { font-family: Inter, sans-serif; font-weight: 500; }
.bhg .gc-copy { padding: 9px 16px; border: 0; border-radius: 99px; background: var(--bh-ink); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; transition: background .3s, transform .3s var(--bh-ease); }
.bhg .gc-copy:hover { transform: translateY(-2px); } .bhg .gc-copy[data-copied] { background: #16a37a; }
.bhg-downloads { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }

/* video */
.bhg-demo-in { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 5vw; }
.bhg-video { --m: calc(var(--v, .5) - .5); margin: 0; perspective: 1400px; }
.bhg-video .bhs-gc-frame { transform: rotateY(calc(var(--m) * -16deg)) rotateX(calc(var(--m) * 8deg)); }

/* come funziona */
.bhg-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.bhg-flow-line { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 60px; margin-top: -30px; z-index: -1; }
.bhg-flow-line path { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--v, .5) * 2 - .2, 1)); vector-effect: non-scaling-stroke; }
.bhg-node { display: grid; gap: 10px; padding: 30px; border-radius: 28px; }
.bhg-node span { color: var(--acc); font: italic 400 40px/1 "Instrument Serif", serif; }
.bhg-node strong { font-size: 26px; letter-spacing: -.03em; } .bhg-node p { margin: 0; color: var(--bh-muted); }
.bhg-node--core { background: linear-gradient(150deg, #2f6bff, #15102a); color: #fff; box-shadow: var(--bh-shadow-lg); transform: translateY(-18px); }
.bhg-node--core span { color: #9db8ff; } .bhg-node--core p { color: rgba(255,255,255,.78); }
.bhg-packet { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bh-amber); box-shadow: 0 0 0 6px rgba(242,169,59,.2); offset-path: path("M60 30 C 250 -10 330 70 500 30 S 760 -10 940 30"); animation: bhg-packet 4.5s ease-in-out infinite; z-index: 2; }
@keyframes bhg-packet { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.bhg-note { max-width: 900px; margin: 34px 0 0; color: var(--bh-muted); font-size: 15px; line-height: 1.65; }
.bhg-note a, .bhg-block a, .bhg-method a:not(.bh-link) { color: var(--acc); }

/* servizi */
.bhg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; perspective: 1400px; }
.bhg-block { display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: 28px; }
.bhg-block:nth-child(3n + 2) { transform: translateY(30px); }
.bhg-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 14%, #fff); color: var(--acc); font-size: 24px; font-style: normal; font-weight: 700; }
.bhg-block h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.025em; }
.bhg-block dl { display: grid; gap: 4px; margin: 0; }
.bhg-block dt { margin-top: 8px; color: var(--bh-ink); font-weight: 650; font-size: 15px; }
.bhg-block dd { margin: 0; color: var(--bh-muted); font-size: 14.5px; line-height: 1.55; }
.bhg-block p { margin: 0; color: var(--bh-muted); font-size: 14.5px; line-height: 1.55; }
.bhg-perf { margin-top: 70px; padding: clamp(26px, 4vw, 46px); border-radius: 30px; }
.bhg-perf h3 { margin: 0 0 22px; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; }
.bhg-perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bhg-perf-grid div { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--bh-line); }
.bhg-perf-grid b { color: var(--acc); font-size: 20px; } .bhg-perf-grid p, .bhg-perf > p { margin: 8px 0 0; color: var(--bh-muted); line-height: 1.55; }
.bhg-perf > p { margin-top: 20px; }

/* metodi di collegamento */
.bhg-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; align-items: start; }
.bhg-method { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 16px; padding: clamp(26px, 3vw, 40px); border-radius: 30px; scroll-margin-top: 110px; overflow-wrap: anywhere; }
.bhg-method--primary { grid-column: 1 / -1; }
.bhg-method--primary .bh-btn { justify-self: start; max-width: 100%; }
.bhg-tag { justify-self: start; padding: 6px 12px; border-radius: 99px; background: var(--bh-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bhg-method h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.035em; line-height: 1.08; }
.bhg-method > p { margin: 0; color: var(--bh-muted); line-height: 1.6; }
.bhg-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.bhg-steps li { position: relative; padding: 12px 14px 12px 54px; border-radius: 14px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--bh-line); color: var(--bh-ink-2); font-size: 15px; line-height: 1.5; counter-increment: s; }
.bhg-steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 13px; font-weight: 700; }
.bhg code { padding: 2px 6px; border-radius: 6px; background: rgba(47,107,255,.1); color: #1f4fd8; font-size: .92em; }
.bhg-prompt { position: relative; padding: 20px 20px 66px; border-radius: 20px; background: #15102a; color: #e9e6f5; font: 14px/1.6 ui-monospace, Menlo, monospace; box-shadow: var(--bh-shadow-lg); }
.bhg-prompt p { margin: 0; }
.bhg-prompt .gc-copy { position: absolute; right: 14px; bottom: 14px; background: #fff; color: #15102a; }
.bhg-claude { scroll-margin-top: 110px; }
.bhg-claude .bhg-method { min-width: 0; }
.bhg-command { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.bhg .bhg-command code { padding: 0; background: none; color: inherit; font: inherit; }
.bhg-verify-in { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 5vw; }
.bhg-prompt--big { font-size: 15.5px; padding: 28px 28px 78px; background: #15102a; }

/* domande come conversazione */
.bhg-qs { display: grid; gap: 12px; max-width: 980px; margin: 46px auto 0; padding: 0; list-style: none; }
.bhg-qs li { display: grid; gap: 6px; max-width: 70%; padding: 16px 20px; border-radius: 22px 22px 22px 6px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--bh-line), var(--bh-shadow); }
.bhg-qs li.r { justify-self: end; border-radius: 22px 22px 6px 22px; background: var(--bh-ink); color: #fff; }
.bhg-qs span { font-size: 16px; line-height: 1.45; }
.bhg-qs small { color: var(--acc); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.bhg-qs li.r small { color: #9db8ff; }

/* sicurezza e FAQ */
.bhg-safe-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4vw; align-items: start; }
.bhg-block--safety { position: sticky; top: 120px; padding: 34px; }
.bhg-block--safety h2 { margin: 0 0 10px; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.035em; }
.bhg-checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bhg-checks li { position: relative; padding-left: 32px; color: var(--bh-ink-2); font-size: 15px; line-height: 1.55; }
.bhg-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #16a37a; color: #fff; font-size: 12px; }
.bhg-faq .bh-h2 { font-size: clamp(30px, 3vw, 48px); margin-bottom: 26px; }
.bhg-faq-list { display: grid; gap: 10px; }
.bhg-qa { border-radius: 20px; }
.bhg-qa summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; font-size: 16px; }
.bhg-qa summary::-webkit-details-marker { display: none; }
.bhg-qa summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bh-ink); }
.bhg-qa summary i::before, .bhg-qa summary i::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; background: #fff; transition: transform .4s var(--bh-ease); }
.bhg-qa summary i::after { transform: rotate(90deg); } .bhg-qa[open] summary i::after { transform: rotate(0); }
.bhg-qa p { margin: 0; padding: 0 22px 20px; color: var(--bh-muted); line-height: 1.6; }

/* assistenza finale */
.bhg-help { grid-template-columns: 1.2fr .8fr; }
.bhg-help .bh-hero-ctas { margin-top: 26px; flex-wrap: wrap; }
.bhg-more { margin: 26px 0 0; color: var(--bh-muted); }
.bhg-help-art { position: relative; height: 360px; }
.bhg-help-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 120px; height: 120px; margin: -60px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #6f9bff, #1f4fd8 60%, #15102a); color: #fff; font: italic 400 56px/1 "Instrument Serif", serif; box-shadow: 0 30px 70px -20px rgba(47,107,255,.6); }
.bhg-help-art i { position: absolute; left: 50%; top: 50%; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: var(--bh-shadow); font: 700 12px Inter, sans-serif; font-style: normal; transform: rotate(calc(var(--k) * 60deg)) translateX(140px) rotate(calc(var(--k) * -60deg)) translate(-50%, -50%); animation: bhg-float 5s ease-in-out infinite; animation-delay: calc(var(--k) * -.8s); }
@keyframes bhg-float { 50% { translate: 0 -10px; } }

@media (max-width: 1000px) {
  .bhg-hero-in, .bhg-card, .bhg-demo-in, .bhg-verify-in, .bhg-safe-in, .bhg-help, .bhg-methods { grid-template-columns: 1fr; }
  .bhg-hero-art { height: 520px; } .bhg-block--safety { position: static; }
  .bhg-grid, .bhg-perf-grid { grid-template-columns: 1fr 1fr; } .bhg-block:nth-child(n) { transform: none; }
  .bhg-flow { grid-template-columns: 1fr; } .bhg-flow-line, .bhg-packet { display: none; } .bhg-node--core { transform: none; }
  .bhg .gc-field { grid-template-columns: 1fr auto; } .bhg .gc-field dt { grid-column: 1 / -1; }
  .bhg-qs li { max-width: 92%; }
}
@media (max-width: 600px) {
  .bhg-grid, .bhg-perf-grid { grid-template-columns: 1fr; }
  .bhg-hero-art { height: 470px; } .bhg-ring span { transform: rotate(calc(var(--k) * 30deg)) translateX(150px) rotate(calc(var(--k) * -30deg)) translate(-50%, -50%); font-size: 11px; padding: 5px 9px; }
  .bhg-core { width: 130px; height: 130px; } .bhg-help-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bhg-ring, .bhg-ring span, .bhg-core, .bhg-packet, .bhg-tool span, .bhg-help-art i, .bhg-q, .bhg-tool, .bhg-a { animation: none !important; }
  .bhg-video .bhs-gc-frame { transform: none; }
}
