/* ==========================================================================
   Blue-Hole — Homepage
   Stile personalizzato sopra Bootstrap 5.3
   Indice:
   01. Token colore (chiaro / scuro)
   02. Base e tipografia
   03. Pulsanti "Orbita"
   04. Header e navigazione
   05. Hero + quiz
   06. Nastro progetti (marquee)
   07. Manifesto e contatori
   08. Sezione video
   09. Nastro parole
   10. Servizi + Chi siamo (sezione navy)
   11. Testimonianze
   12. Coworking
   13. Blog
   14. CTA
   15. Footer
   16. Utility: reveal, back-to-top, decorazioni
   ========================================================================== */

/* 01. TOKEN COLORE ------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  --bh-blue: #24618B;
  --bh-blue-rgb: 36, 97, 139;
  --bh-navy: #00355A;
  --bh-navy-rgb: 0, 53, 90;
  --bh-sky: #9DC9E7;
  --bh-warm: #FEA621;

  --bh-bg: #ffffff;
  --bh-surface: #ffffff;
  --bh-surface-2: #F2F7FB;
  --bh-text: #2C4257;
  --bh-muted: #5B7186;
  --bh-heading: #00355A;
  --bh-accent: #24618B;          /* colore interattivo (link, bordi, stroke) */
  --bh-accent-rgb: 36, 97, 139;
  --bh-line: #D6E4EE;
  --bh-header-bg: rgba(255, 255, 255, .78);
  --bh-navy-section: #00355A;
  --bh-glow: rgba(36, 97, 139, .45);
  --bh-deco-opacity: .22;
  --bh-deco-filter: none;
  --bh-card-shadow: 0 24px 60px -32px rgba(0, 53, 90, .45);

  --bs-body-bg: var(--bh-bg);
  --bs-body-color: var(--bh-text);
  --bs-emphasis-color: var(--bh-heading);
  --bs-secondary-color: var(--bh-muted);
  --bs-border-color: var(--bh-line);
  --bs-primary: #24618B;
  --bs-primary-rgb: 36, 97, 139;
  --bs-link-color: var(--bh-accent);
  --bs-link-color-rgb: var(--bh-accent-rgb);
  --bs-link-hover-color: var(--bh-navy);
  --bs-link-hover-color-rgb: var(--bh-navy-rgb);
  --bs-focus-ring-color: rgba(36, 97, 139, .35);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bh-font-display: "Urbanist", "Century Gothic", "Avenir Next", sans-serif;
  --bh-radius-xl: 48px;
  --bh-radius-lg: 32px;
  --bh-header-h: 80px;
}

[data-bs-theme="dark"] {
  --bh-bg: #071522;
  --bh-surface: #0C1F31;
  --bh-surface-2: #0F263B;
  --bh-text: #C5D5E3;
  --bh-muted: #8BA3B8;
  --bh-heading: #EEF5FB;
  --bh-accent: #8CC4EA;
  --bh-accent-rgb: 140, 196, 234;
  --bh-line: rgba(157, 201, 231, .16);
  --bh-header-bg: rgba(7, 21, 34, .74);
  --bh-navy-section: #0B2A45;
  --bh-glow: rgba(36, 97, 139, .55);
  --bh-deco-opacity: .28;
  --bh-deco-filter: brightness(1.6) saturate(.9);
  --bh-card-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);

  --bs-body-bg: var(--bh-bg);
  --bs-body-color: var(--bh-text);
  --bs-emphasis-color: var(--bh-heading);
  --bs-secondary-color: var(--bh-muted);
  --bs-border-color: var(--bh-line);
  --bs-link-color: var(--bh-accent);
  --bs-link-color-rgb: var(--bh-accent-rgb);
  --bs-link-hover-color: #ffffff;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-focus-ring-color: rgba(140, 196, 234, .4);
  color-scheme: dark;
}

/* 02. BASE E TIPOGRAFIA -------------------------------------------------- */
html { scroll-padding-top: calc(var(--bh-header-h) + 12px); }

body {
  background: var(--bh-bg);
  color: var(--bh-text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

main { overflow-x: clip; }

a { text-decoration: none; }

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--bh-font-display);
  color: var(--bh-heading);
}

.display-bh {
  font-family: var(--bh-font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--bh-heading);
  text-wrap: balance;
}

.section-title { font-size: clamp(2.2rem, 4.6vw, 4rem); }

.lead-bh {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--bh-text);
  text-wrap: pretty;
}

/* Testo "outline" (parole evidenziate con solo contorno) */
.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bh-accent);
  font-weight: 600;
}
.text-stroke-light { -webkit-text-stroke-color: #fff; }
@supports not (-webkit-text-stroke: 1px) {
  .text-stroke { color: var(--bh-accent); }
  .text-stroke-light { color: #fff; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bh-accent);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-warm);
  flex: none;
}
.eyebrow-light { color: var(--bh-sky); }

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }

::selection { background: var(--bh-sky); color: var(--bh-navy); }

:focus-visible { outline: 2px solid var(--bh-accent); outline-offset: 3px; }

/* 03. PULSANTI "ORBITA" --------------------------------------------------
   Un pallino parte in basso a sinistra e, al passaggio del mouse, gira
   lungo il bordo del pulsante. Il pallino viene creato da js/main.js.
   --orbit-color : colore del pallino
   --orbit-inset : distanza del percorso dal bordo (0 = sul bordo)
   ------------------------------------------------------------------------ */
.btn-orbit {
  --orbit-color: currentColor;
  --orbit-inset: 0px;
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .75rem;
  --bs-btn-font-size: .95rem;
  --bs-btn-font-weight: 500;
  --bs-btn-line-height: 1.2;
  --bs-btn-border-radius: 50rem;
  --bs-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
}
.btn-orbit.btn-sm {
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: .5rem;
  --bs-btn-font-size: .85rem;
}
.btn-orbit.btn-lg {
  --bs-btn-padding-x: 2.2rem;
  --bs-btn-padding-y: .95rem;
  --bs-btn-font-size: 1.05rem;
}
.btn-orbit .orbit-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 100px;
  background: var(--orbit-color);
  pointer-events: none;
  will-change: transform;
}

/* Pieno blu */
.btn-bh-primary {
  --orbit-color: #fff;
  --orbit-inset: 5px;
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bh-blue);
  --bs-btn-border-color: var(--bh-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bh-navy);
  --bs-btn-hover-border-color: var(--bh-navy);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bh-navy);
  --bs-btn-active-border-color: var(--bh-navy);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bh-blue);
  --bs-btn-disabled-border-color: var(--bh-blue);
}
[data-bs-theme="dark"] .btn-bh-primary {
  --bs-btn-hover-bg: #2F77A8;
  --bs-btn-hover-border-color: #2F77A8;
  --bs-btn-active-bg: #2F77A8;
  --bs-btn-active-border-color: #2F77A8;
}

/* Contorno (stile originale Claude Design) */
.btn-bh-outline {
  --bs-btn-color: var(--bh-accent);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--bh-accent);
  --bs-btn-hover-color: var(--bh-accent);
  --bs-btn-hover-bg: rgba(var(--bh-accent-rgb), .07);
  --bs-btn-hover-border-color: var(--bh-accent);
  --bs-btn-active-color: var(--bh-accent);
  --bs-btn-active-bg: rgba(var(--bh-accent-rgb), .14);
  --bs-btn-active-border-color: var(--bh-accent);
  --bs-btn-disabled-color: var(--bh-accent);
  --bs-btn-disabled-border-color: var(--bh-accent);
}

/* Pieno bianco (su sfondi scuri) */
.btn-bh-light {
  --orbit-color: var(--bh-navy);
  --orbit-inset: 5px;
  --bs-btn-color: var(--bh-navy);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--bh-navy);
  --bs-btn-hover-bg: #EAF3FA;
  --bs-btn-hover-border-color: #EAF3FA;
  --bs-btn-active-color: var(--bh-navy);
  --bs-btn-active-bg: #D8E9F5;
  --bs-btn-active-border-color: #D8E9F5;
  font-weight: 600;
}

/* Contorno bianco (su sfondi scuri) */
.btn-bh-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, .75);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .1);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, .18);
  --bs-btn-active-border-color: #fff;
}

/* Pulsanti tondi solo icona */
.btn-icon {
  --bs-btn-padding-x: 0;
  --bs-btn-padding-y: 0;
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
  flex: none;
}
.btn-icon.btn-sm { width: 36px; height: 36px; font-size: .9rem; }

/* 04. HEADER E NAVIGAZIONE ----------------------------------------------- */
/* La sfocatura sta su uno pseudo-elemento: se fosse sull'header,
   il pannello offcanvas (position: fixed) resterebbe confinato al suo interno.
   z-index sopra il backdrop dell'offcanvas (1040) e sotto i modal (1055). */
.site-header {
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
  z-index: 1045;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bh-header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .35s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--bh-line);
  box-shadow: 0 10px 30px -24px rgba(0, 53, 90, .5);
}
.site-header .navbar { min-height: var(--bh-header-h); padding-block: .75rem; }

.brand-logo { display: block; height: 40px; width: auto; transition: filter .35s ease; }
[data-bs-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }

.site-nav .nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--bh-heading);
  border-radius: 50rem;
  transition: background-color .25s ease, color .25s ease;
}

@media (min-width: 992px) {
  .site-nav {
    gap: 4px;
    padding: 5px;
    border: 1.5px solid var(--bh-accent);
    border-radius: 50rem;
    background: rgba(var(--bh-accent-rgb), .03);
  }
  .site-nav .nav-link { padding: .5rem 1.1rem !important; }
  .site-nav .nav-link:hover,
  .site-nav .nav-link.active {
    background: var(--bh-navy);
    color: #fff;
  }
  [data-bs-theme="dark"] .site-nav .nav-link:hover,
  [data-bs-theme="dark"] .site-nav .nav-link.active { background: var(--bh-blue); }
}

@media (max-width: 991.98px) {
  .site-offcanvas { --bs-offcanvas-width: min(360px, 88vw); }
  .site-nav .nav-link {
    font-family: var(--bh-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    padding: .55rem 0;
    border-bottom: 1px solid var(--bh-line);
    border-radius: 0;
  }
  .site-nav .nav-link.active { color: var(--bh-accent); }
}

/* 05. HERO + QUIZ -------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hero-glow {
  position: absolute;
  top: -320px;
  right: -240px;
  width: 760px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bh-glow), rgba(157, 201, 231, .22) 55%, transparent);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.hero > .container-xxl { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  margin: 1rem 0 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--bh-muted);
}
.hero-points i { color: var(--bh-accent); margin-right: .35rem; }

.hero-enter { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.quiz-card {
  position: relative;
  background: var(--bh-surface);
  border: 1.5px solid var(--bh-accent);
  border-radius: 36px;
  padding: 1.5rem clamp(1.1rem, 3vw, 1.9rem);
  box-shadow: var(--bh-card-shadow);
}
@media (min-width: 992px) { .quiz-card { min-height: 19rem; } }
[data-bs-theme="dark"] .quiz-card { background: rgba(12, 31, 49, .85); }
.quiz-card { transition: box-shadow .5s ease; }
.quiz-card.is-highlight { box-shadow: 0 0 0 8px rgba(var(--bh-accent-rgb), .18), var(--bh-card-shadow); }

.quiz-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.quiz-step-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bh-accent);
}
.quiz-card .progress {
  --bs-progress-height: 4px;
  --bs-progress-bg: rgba(var(--bh-accent-rgb), .15);
  --bs-progress-bar-bg: var(--bh-accent);
  --bs-progress-bar-transition: width .5s ease;
  margin-top: .4rem;
}
.quiz-question {
  font-family: var(--bh-font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: var(--bh-heading);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.quiz-question:focus { outline: none; }
.quiz-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.quiz-option { --bs-btn-font-weight: 500; white-space: normal; text-align: left; }
.quiz-option i { font-size: .95em; }
.quiz-option.is-selected {
  --bs-btn-bg: var(--bh-accent);
  --bs-btn-color: var(--bh-bg);
  --bs-btn-hover-bg: var(--bh-accent);
  --bs-btn-hover-color: var(--bh-bg);
  --bs-btn-active-bg: var(--bh-accent);
  --bs-btn-active-color: var(--bh-bg);
}
.quiz-recap { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.recap-pill {
  padding: .25rem .7rem;
  border-radius: 50rem;
  background: rgba(var(--bh-accent-rgb), .12);
  color: var(--bh-heading);
  font-size: .75rem;
  font-weight: 600;
}
.quiz-form .form-label { font-size: .8rem; font-weight: 500; margin-bottom: .25rem; }
.quiz-form .form-control {
  border-radius: 14px;
  padding: .55rem .9rem;
  background-color: var(--bh-surface-2);
}
.quiz-form .form-check-label { font-size: .8rem; color: var(--bh-muted); }
.quiz-success { text-align: center; padding-block: 1rem; }
.quiz-success .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-navy);
  color: #fff;
  font-size: 1.5rem;
}
.quiz-fade { animation: quizFade .35s ease both; }
@keyframes quizFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 06. NASTRO PROGETTI ---------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 14px;
  /* Sfumatura ai lati: i progetti appaiono e scompaiono nello sfondo */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track.is-reverse { animation-direction: reverse; }
.marquee-item { flex: none; padding-right: 1rem; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.hero-marquee { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }

.project-card {
  position: relative;
  display: block;
  width: 310px;
  height: 214px;
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  background: var(--bh-navy);
  color: #fff;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 53, 90, .92) 0%, rgba(0, 53, 90, .25) 55%, rgba(0, 53, 90, .05) 100%);
}
.project-card .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: .3rem .8rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, .92);
  color: var(--bh-navy);
  font-size: .72rem;
  font-weight: 600;
}
.project-card .meta { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; }
.project-card .meta small {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bh-sky);
}
.project-card .meta strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: .2rem;
  font-family: var(--bh-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.project-card .meta strong i { transition: transform .3s ease; }
.project-card:hover,
.project-card:focus-visible { transform: translateY(-6px); color: #fff; }
.project-card:hover img { transform: scale(1.07); }
.project-card:hover .meta strong i { transform: translate(3px, -3px); }

@media (min-width: 992px) and (max-height: 820px) {
  .project-card { height: 180px; width: 280px; }
}
@media (max-width: 575.98px) {
  .project-card { width: 250px; height: 180px; border-radius: 26px; }
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
}

/* 07. MANIFESTO E CONTATORI ---------------------------------------------- */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
}
.stat-circle {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bh-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bh-font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-variant-numeric: tabular-nums;
  transition: transform .4s ease;
}
.stat-circle.is-accent { background: var(--bh-blue); }
[data-bs-theme="dark"] .stat-circle { background: var(--bh-surface-2); border: 1px solid var(--bh-line); }
[data-bs-theme="dark"] .stat-circle.is-accent { background: var(--bh-blue); border-color: var(--bh-blue); }
.stat:hover .stat-circle { transform: scale(1.05); }
.stat-label { font-size: .85rem; line-height: 1.3; color: var(--bh-text); }

/* 08. SEZIONE VIDEO ------------------------------------------------------ */
.video-frame {
  position: relative;
  min-height: clamp(460px, 72vh, 700px);
  border-radius: clamp(28px, 4vw, 56px);
  overflow: hidden;
  background: var(--bh-navy);
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 30, 52, .88) 0%, rgba(0, 30, 52, .55) 45%, rgba(0, 30, 52, .05) 80%),
    linear-gradient(to top, rgba(0, 30, 52, .7), transparent 50%);
}
.video-content {
  position: relative;
  padding: clamp(1.75rem, 5vw, 4rem);
  max-width: 640px;
  color: #fff;
}
.video-content h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.75rem); }
.video-content p { color: #D8E6F1; }
.video-controls {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.75rem);
  right: clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  gap: .5rem;
}
.video-controls .btn {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  --bs-btn-bg: rgba(0, 30, 52, .35);
}
.video-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
}
.video-badge .rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-warm);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.video-modal .modal-content { border: 0; }
.video-modal video { object-fit: contain; background: #000; }
.video-modal .btn-close-video {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 2;
}

/* 09. NASTRO PAROLE ------------------------------------------------------ */
.word-band { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.word-band .word {
  font-family: var(--bh-font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bh-sky);
  white-space: nowrap;
  padding-right: 3rem;
}
[data-bs-theme="dark"] .word-band .word { -webkit-text-stroke-color: rgba(157, 201, 231, .45); }
@supports not (-webkit-text-stroke: 1px) { .word-band .word { color: var(--bh-sky); opacity: .5; } }

/* 10. SERVIZI + CHI SIAMO (sezione navy) --------------------------------- */
.section-navy {
  position: relative;
  isolation: isolate;
  color: #fff;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}
.section-navy::before {
  content: "";
  position: absolute;
  inset: 0 -18%;
  z-index: -1;
  background: var(--bh-navy-section);
  border-radius: 50% / clamp(70px, 10vw, 200px);
}
.section-navy h2,
.section-navy h3 { color: #fff; }
.section-navy p { color: #D7E7F3; }

.services-title {
  font-size: clamp(3.75rem, 11vw, 10rem);
  line-height: .92;
  letter-spacing: -.035em;
  color: var(--bh-sky) !important;
}
.dots-row {
  height: 22px;
  margin-top: 2.5rem;
  background-image: radial-gradient(circle at 11px 11px, transparent 9.5px, rgba(157, 201, 231, .7) 10px, rgba(157, 201, 231, .7) 11px, transparent 11.5px);
  background-size: 32px 22px;
  background-repeat: repeat-x;
}
.dots-row.is-small {
  height: 13px;
  width: min(100%, 480px);
  margin-left: auto;
  background-image: radial-gradient(circle at 6.5px 6.5px, transparent 5.5px, rgba(157, 201, 231, .6) 6px, transparent 6.8px);
  background-size: 21px 13px;
}

.service-tabs { display: flex; flex-wrap: wrap; gap: .65rem; }
.btn-service {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, .7);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .08);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--bh-navy);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-font-size: clamp(1rem, 1.5vw, 1.3rem);
  --bs-btn-font-weight: 700;
  font-family: var(--bh-font-display);
}
.btn-service.active {
  --orbit-color: var(--bh-navy);
  --orbit-inset: 5px;
  background: #fff;
  color: var(--bh-navy);
  border-color: #fff;
}

.service-card {
  border: 1.5px solid rgba(157, 201, 231, .3);
  border-radius: 40px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(36, 97, 139, .32);
  height: 100%;
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bh-sky);
  color: var(--bh-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex: none;
}
.service-num { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .8rem; color: var(--bh-sky); }
.service-card h3 { font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; }
.service-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.service-list li { display: flex; gap: .6rem; align-items: baseline; color: #fff; font-size: .95rem; }
.service-list i { color: var(--bh-sky); }
.service-media {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(157, 201, 231, .15);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.tab-pane.fade { transition: opacity .35s ease; }

.about-media {
  position: relative;
  border-radius: 56px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--bh-blue);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(36, 97, 139, .15), rgba(0, 53, 90, .45));
}
.about-ring {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  z-index: 1;
  opacity: .5;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .7rem; align-items: baseline; color: #fff; }
.check-list i { color: var(--bh-sky); }

/* 11. TESTIMONIANZE ------------------------------------------------------ */
.testimonial {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--bh-font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.3;
  color: var(--bh-heading);
  text-wrap: balance;
  margin: 0;
}
.testimonial .quote-mark { font-size: 2.5rem; color: var(--bh-accent); line-height: 1; }
.testimonial figcaption { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .85rem; text-align: left; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; color: var(--bh-heading); }
.testimonial figcaption span { font-size: .875rem; color: var(--bh-muted); }
.carousel-dots { gap: .5rem; align-items: center; }
.carousel-dots [data-bs-target] {
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  opacity: 1;
  border: 1.5px solid var(--bh-accent);
  border-radius: 50rem;
  background: transparent;
  background-clip: border-box;
  transition: width .35s ease, background-color .35s ease;
}
.carousel-dots .active { width: 30px; background: var(--bh-accent); }

/* 12. COWORKING ---------------------------------------------------------- */
.cowork-hero {
  position: relative;
  border-radius: 48px 48px 48px 160px;
  overflow: hidden;
  min-height: 340px;
  height: 100%;
  background: var(--bh-blue);
}
.cowork-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cowork-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: .5rem .9rem;
  border-radius: 50rem;
  background: #fff;
  color: var(--bh-navy);
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.cowork-badge i { color: #1f9d55; margin-right: .3rem; }

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  padding: 10px;
  background: var(--bh-surface);
  color: var(--bh-heading);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover,
.feature-card:focus-visible {
  border-color: var(--bh-accent);
  transform: translateY(-4px);
  box-shadow: var(--bh-card-shadow);
  color: var(--bh-heading);
}
.feature-card .media {
  height: 150px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bh-surface-2);
}
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover .media img { transform: scale(1.06); }
.feature-card .body { padding: 1.1rem .75rem .75rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.feature-card p { font-size: .9rem; line-height: 1.5; color: var(--bh-text); margin: 0; flex: 1; }
.link-arrow { font-size: .85rem; font-weight: 600; color: var(--bh-accent); }
.link-arrow i { display: inline-block; transition: transform .3s ease; }
a:hover .link-arrow i,
.link-arrow:hover i { transform: translateX(4px); }

/* 13. BLOG --------------------------------------------------------------- */
.blog-card { display: flex; flex-direction: column; height: 100%; color: var(--bh-heading); }
.blog-card .media {
  position: relative;
  height: 250px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bh-surface-2);
}
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.blog-card .badge-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: .35rem .85rem;
  border-radius: 50rem;
  background: var(--bh-sky);
  color: var(--bh-navy);
  font-size: .75rem;
  font-weight: 600;
}
.blog-card .body { padding: 1.25rem .4rem 0; display: flex; flex-direction: column; gap: .5rem; }
.blog-card time { font-size: .8rem; color: var(--bh-accent); }
.blog-card h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin: 0; transition: color .25s ease; }
.blog-card p { font-size: .95rem; line-height: 1.55; color: var(--bh-text); margin: 0; }
.blog-card:hover .media img { transform: scale(1.06); }
.blog-card:hover h3 { color: var(--bh-accent); }

/* 14. CTA ---------------------------------------------------------------- */
.cta-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(36px, 5vw, 64px);
  background: var(--bh-blue);
  padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-box h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.cta-box p { color: #E1EDF6; }
.cta-ring {
  position: absolute;
  left: -110px;
  top: -110px;
  width: 380px;
  z-index: -1;
  opacity: .18;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.cta-blob {
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--bh-navy);
  z-index: -1;
}
.cta-moon {
  position: absolute;
  right: 220px;
  bottom: 90px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bh-sky);
  z-index: -1;
}
.social-btn {
  --orbit-inset: 0px;
}

/* 15. FOOTER ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--bh-line); }
.site-footer h2 { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer .footer-links a,
.site-footer .footer-links span { color: var(--bh-text); font-size: .9rem; }
.site-footer .footer-links a:hover { color: var(--bh-accent); }
.site-footer .footer-links i { color: var(--bh-accent); margin-right: .5rem; }
.footer-bottom { border-top: 1px solid var(--bh-line); font-size: .82rem; color: var(--bh-muted); }
.footer-bottom a { color: var(--bh-muted); }
.footer-bottom a:hover { color: var(--bh-accent); }

/* 16. UTILITY ------------------------------------------------------------ */
/* Decorazione: pittogramma del logo */
.deco-pitto {
  position: absolute;
  z-index: 0;
  width: 560px;
  max-width: 90vw;
  height: auto;
  opacity: var(--bh-deco-opacity);
  filter: var(--bh-deco-filter);
  pointer-events: none;
  user-select: none;
}
.deco-pitto.is-manifesto { top: 40px; left: 50%; margin-left: -380px; }
.deco-pitto.is-cowork { top: 30px; right: -180px; width: 460px; }
@media (max-width: 767.98px) {
  .deco-pitto.is-manifesto { left: -120px; margin-left: 0; width: 420px; }
  .deco-pitto.is-cowork { right: -200px; width: 360px; }
}
.z-1 { z-index: 1; }

/* Comparsa allo scroll (attiva solo se JS è disponibile) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Torna su */
.back-to-top {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  box-shadow: 0 12px 30px -12px rgba(0, 53, 90, .55);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Riduzione movimento: niente animazioni automatiche */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .hero-enter,
  .quiz-fade,
  .video-badge .rec { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
