/* ==========================================================================
   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
   12b. Eventi
   13. Blog
   14. CTA
   15. Footer
   16. Utility: reveal, back-to-top, decorazioni
   17. Pagina Servizi
   18. Pagina Chi siamo
   19. Pagina Coworking
   20. Filtri (eventi e portfolio)
   21. Pagina Eventi
   22. Pagina Portfolio
   23. Pagina Blog
   24. Pagina Contatti
   25. Pagine dei singoli servizi
   26. Pagina singolo articolo ed evento
   ========================================================================== */

/* 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;
}

/* Testo in loop (.btn-marquee) ------------------------------------------
   Il testo scorre da destra verso sinistra al passaggio del mouse.
   La struttura (.mq-label, .mq-track, .mq-item) viene creata da js/main.js:
   .mq-label è il contenuto originale, invisibile, che dà la larghezza;
   la copia centrale della traccia è quella visibile a riposo.
   ------------------------------------------------------------------------ */
.btn-marquee { overflow: hidden; isolation: isolate; }
.btn-marquee .mq-label { display: inline-flex; align-items: center; gap: .5rem; opacity: 0; }
.btn-marquee .mq-track {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
}
.btn-marquee .mq-item {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  transition: opacity .3s;
}
.btn-marquee .mq-dot {
  position: absolute;
  right: -2.5px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: currentColor;
  transition: opacity .3s;
}
.btn-marquee .mq-item:not(.is-center),
.btn-marquee .mq-dot { opacity: 0; }
.btn-marquee.is-looping .mq-item,
.btn-marquee.is-looping .mq-dot { opacity: 1; }

/* 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;
}

/* Effetto hover del menu (desktop): una pillola scivola sotto la voce,
   il testo "rotola" mostrando una copia più marcata e dietro le voci
   scorre il nome della voce, grande e sfocato. Gli elementi .nav-roll
   e .nav-fx vengono creati da js/main.js (sezione 3b). */
.nav-fx { display: none; }

/* Parole sfocate che scorrono: usate nel menu e dietro i pulsanti dei
   servizi in homepage. La traccia viene riempita da js/main.js
   (blurMarquee) e riusa i keyframe "marquee" del nastro progetti. */
.blur-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.blur-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  will-change: transform;
  animation: marquee var(--marquee-duration, 10s) linear infinite paused;
}
.blur-half { display: flex; flex: none; align-items: center; gap: 1.4em; padding-right: 1.4em; }
.blur-half .sep { font-size: .4em; opacity: .7; }

@media (min-width: 992px) {
  .site-nav {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    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 { position: relative; z-index: 1; padding: .5rem 1.1rem !important; }
  .site-nav .nav-link.active,
  .site-nav:not(.has-fx) .nav-link:hover {
    background: var(--bh-navy);
    color: #fff;
  }
  [data-bs-theme="dark"] .site-nav .nav-link.active,
  [data-bs-theme="dark"] .site-nav:not(.has-fx) .nav-link:hover { background: var(--bh-blue); }

  /* Testo che rotola: la seconda copia sale al posto della prima */
  .nav-roll { display: block; height: 1.5em; line-height: 1.5; overflow: hidden; }
  .nav-roll-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .nav-roll-track > :last-child { font-weight: 600; }
  .nav-link:hover .nav-roll-track,
  .nav-link:focus-visible .nav-roll-track { transform: translateY(-50%); }

  .nav-fx { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }

  /* Pillola: posizione e larghezza arrivano da JS (--x, --w) */
  .nav-fx-pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: var(--w, 0px);
    transform: translateX(var(--x, 0px));
    border: 1.5px solid var(--bh-accent);
    border-radius: 50rem;
    background: var(--bh-surface);
    opacity: 0;
    transition:
      transform .5s cubic-bezier(.3, 1.2, .5, 1),
      width .5s cubic-bezier(.3, 1.2, .5, 1),
      opacity .25s ease;
  }

  /* Parole sfocate: compaiono e scorrono solo durante l'hover */
  .nav-fx .blur-marquee {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .5s ease .08s, transform .7s cubic-bezier(.2, .8, .2, 1);
  }
  .nav-fx .blur-track {
    font-size: 26px;
    color: rgba(var(--bh-accent-rgb), .16);
    filter: blur(1.75px);
  }

  .site-nav.is-hovering .nav-fx-pill { opacity: 1; }
  .site-nav.is-hovering .blur-marquee { opacity: 1; transform: none; }
  .site-nav.is-hovering .blur-track { animation-play-state: running; }
}

@media (max-width: 991.98px) {
  .site-offcanvas { --bs-offcanvas-width: min(360px, 88vw); }
  /* Intestazione del menu mobile: logo a sinistra, X di chiusura a destra */
  .site-offcanvas .offcanvas-header { justify-content: space-between; gap: 1rem; }
  .site-offcanvas .offcanvas-header .brand-logo { flex-shrink: 0; }
  .site-offcanvas .offcanvas-header > .btn { margin-left: auto; flex-shrink: 0; }
  .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); }
  .nav-roll-track > :last-child { display: none; }
}

/* 05. HERO + QUIZ -------------------------------------------------------- */
/* La hero occupa lo schermo sotto l'header (alto --bh-header-h + 1px di bordo):
   il nastro progetti resta ancorato in basso, a 1rem dal bordo dello schermo. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--bh-header-h) - 1px);
  min-height: calc(100svh - var(--bh-header-h) - 1px);
  padding-top: clamp(1.75rem, 4vw, 3rem);
}
.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; }
}

/* Card blu con testi bianchi: i token locali ricolorano in automatico
   etichette, pulsanti a contorno, link e anelli di focus al suo interno */
.quiz-card {
  --bh-accent: #fff;
  --bh-accent-rgb: 255, 255, 255;
  --bh-heading: #fff;
  --bh-muted: rgba(255, 255, 255, .78);
  --bs-secondary-color: rgba(255, 255, 255, .72);
  --bs-link-color: #fff;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-hover-color: #fff;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-focus-ring-color: rgba(255, 255, 255, .45);
  --bs-form-invalid-color: #FFC9BF;
  --bs-form-invalid-border-color: #FFC9BF;
  position: relative;
  background: var(--bh-blue);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .14);
  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; } }
.quiz-card { transition: box-shadow .5s ease; }
.quiz-card.is-highlight { box-shadow: 0 0 0 8px rgba(36, 97, 139, .25), 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: #fff;
}
.quiz-percent { font-size: .875em; font-weight: 600; color: var(--bh-warm); }
.quiz-card .progress {
  --bs-progress-height: 4px;
  --bs-progress-bg: rgba(255, 255, 255, .2);
  --bs-progress-bar-bg: var(--bh-warm);
  --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: #fff;
  --bs-btn-color: var(--bh-navy);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--bh-navy);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--bh-navy);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-color: var(--bh-navy);
  --orbit-color: var(--bh-navy);
}
.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), .16);
  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); }
}

/* margin-top: auto spinge il nastro in fondo alla hero; il padding inferiore
   è lo stesso 1rem che separa un progetto dall'altro */
.hero > .container-xxl { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero-marquee { margin-top: auto; padding-bottom: 1rem; }

.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 { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; gap: .65rem; }

/* Nome del servizio attivo (o in hover), grande e sfocato, che scorre
   dietro i pulsanti. Gira solo quando la sezione è visibile. */
.service-tabs .blur-marquee { z-index: -1; inset: -1.5rem -2rem; }
.service-tabs .blur-track {
  font-family: var(--bh-font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(157, 201, 231, .26);
  filter: blur(2.5px);
}
.service-tabs .blur-marquee.is-running .blur-track { animation-play-state: running; }
.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); }
.section-navy .link-arrow { color: var(--bh-sky); }
.section-navy .link-arrow:hover { color: #fff; }
.link-arrow i { display: inline-block; transition: transform .3s ease; }
a:hover .link-arrow i,
.link-arrow:hover i { transform: translateX(4px); }

/* 12b. EVENTI ------------------------------------------------------------
   Anteprima dei prossimi eventi: a sinistra il prossimo in evidenza,
   a destra gli altri in elenco e il riquadro dell'abbonamento.
   ------------------------------------------------------------------------ */
.event-date {
  flex: none;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .6rem 0 .55rem;
  border-radius: 20px;
  background: var(--bh-surface-2);
  color: var(--bh-heading);
  font-family: var(--bh-font-display);
  line-height: 1;
}
.event-date small {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bh-accent);
}
.event-date strong { font-size: 1.9rem; font-weight: 800; margin: .2rem 0 .15rem; }
.event-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--bh-accent);
}

/* Evento in evidenza */
.event-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 440px;
  border-radius: var(--bh-radius-xl);
  overflow: hidden;
  background: var(--bh-navy);
  color: #fff;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.event-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.event-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 53, 90, .95) 0%, rgba(0, 53, 90, .55) 48%, rgba(0, 53, 90, .05) 100%);
}
.event-feature:hover,
.event-feature:focus-visible { color: #fff; transform: translateY(-4px); box-shadow: var(--bh-card-shadow); }
.event-feature:hover img { transform: scale(1.06); }
.event-next { position: absolute; top: 22px; left: 22px; }
.event-feature-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.event-feature .event-date { background: #fff; color: var(--bh-navy); }
.event-feature .event-date small { color: var(--bh-blue); }
.event-feature h3 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; margin: 1.1rem 0 .4rem; }
.event-feature p { color: #D8E6F1; max-width: 34ch; margin: 0 0 .9rem; }
.event-feature .event-time { color: var(--bh-sky); }

/* Elenco dei prossimi eventi */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.event-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 10px 1.25rem 10px 10px;
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background: var(--bh-surface);
  color: var(--bh-heading);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.event-row:hover,
.event-row:focus-visible {
  border-color: var(--bh-accent);
  transform: translateY(-3px);
  box-shadow: var(--bh-card-shadow);
  color: var(--bh-heading);
}
.event-row .event-date { align-self: stretch; justify-content: center; }
.event-thumb {
  flex: none;
  width: 132px;
  height: 104px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bh-surface-2);
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event-row:hover .event-thumb img { transform: scale(1.07); }
.event-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.event-info h3 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.event-info p { font-size: .9rem; line-height: 1.45; color: var(--bh-text); margin: 0; }
.event-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--bh-accent);
  color: var(--bh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease, color .3s ease;
}
.event-arrow i { transition: transform .3s ease; }
.event-row:hover .event-arrow { background: var(--bh-accent); color: var(--bh-bg); }
.event-row:hover .event-arrow i { transform: translate(2px, -2px); }

/* Abbonamento */
.event-pass {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 1.4rem 1.75rem;
  border-radius: var(--bh-radius-lg);
  background: var(--bh-navy-section);
  color: #fff;
}
.event-pass-price {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--bh-warm);
  color: var(--bh-navy);
  font-family: var(--bh-font-display);
  line-height: 1;
}
.event-pass-price strong { font-size: 1.85rem; font-weight: 800; }
.event-pass-price small { font-size: .75rem; font-weight: 700; margin-top: .2rem; }
.event-pass-text { display: flex; flex-direction: column; gap: .35rem; }
.event-pass-text strong { font-family: var(--bh-font-display); font-size: 1.2rem; font-weight: 700; }
.event-pass-text span { font-size: .92rem; line-height: 1.55; color: #D7E7F3; }

@media (max-width: 767.98px) {
  .event-feature { min-height: 380px; }
  .event-thumb { width: 96px; height: 88px; border-radius: 20px; }
}
@media (max-width: 575.98px) {
  .event-thumb,
  .event-arrow { display: none; }
  .event-row { padding-right: 1rem; }
  .event-pass { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .event-pass-price { width: 88px; height: 88px; }
}

/* 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 ----------------------------------------------------------------
   Sfondo a gradiente con trama di puntini, pittogramma grande che ruota
   lentamente, testo a sinistra e contatti rapidi a destra.
   ------------------------------------------------------------------------ */
.cta-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(36px, 5vw, 64px);
  padding: clamp(2.75rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(110% 90% at 0% 0%, #2F77A8 0%, transparent 55%),
    radial-gradient(80% 90% at 100% 100%, var(--bh-navy) 0%, transparent 65%),
    var(--bh-blue);
  color: #fff;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.cta-box h2 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 5rem); }
.cta-box p { color: #E1EDF6; }
.cta-ring {
  position: absolute;
  left: -260px;
  top: -340px;
  z-index: -1;
  width: clamp(620px, 68vw, 980px);
  opacity: .16;
  filter: brightness(0) invert(1);
  pointer-events: none;
  will-change: transform;
  animation: ctaOrbit 120s linear infinite;
}
@keyframes ctaOrbit { to { transform: rotate(360deg); } }

.cta-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cta-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.25rem .8rem .8rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.cta-contact:hover,
.cta-contact:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .45);
  transform: translateX(4px);
  color: #fff;
}
.cta-contact-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-sky);
  color: var(--bh-navy);
  font-size: 1.15rem;
}
.cta-contact small {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bh-sky);
}
.cta-contact strong { font-family: var(--bh-font-display); font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.cta-contact > .bi-arrow-up-right { margin-left: auto; transition: transform .3s ease; }
.cta-contact:hover > .bi-arrow-up-right { transform: translate(3px, -3px); }
.cta-social { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.cta-social > span {
  margin-right: .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bh-sky);
}
@media (max-width: 575.98px) { .cta-social > span { width: 100%; margin-bottom: .25rem; } }
@media (prefers-reduced-motion: reduce) { .cta-ring { animation: none; } }
.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; }
  .nav-fx .blur-marquee { display: none; }
  .blur-track { animation: none; }
  .nav-fx-pill,
  .nav-roll-track { transition: none; }
}

/* 17. PAGINA SERVIZI -----------------------------------------------------
   Intestazione di pagina, griglia dei servizi, metodo di lavoro e FAQ.
   ------------------------------------------------------------------------ */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
}
.page-hero > .container-xxl { position: relative; z-index: 1; }
.page-title { font-size: clamp(2.6rem, 5.6vw, 5.25rem); margin: 1rem 0 0; }
.deco-pitto.is-page { top: -40px; right: -160px; width: 480px; }

/* Breadcrumb: pillola appoggiata alla linea che chiude l'intestazione */
.hero-trail {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero-trail::after {
  content: "";
  flex: 1 1 0;
  min-width: 1.5rem;
  height: 1px;
  background: var(--bh-line);
}
.breadcrumb-bh {
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-divider-color: var(--bh-muted);
  --bs-breadcrumb-item-active-color: var(--bh-heading);
  --bs-breadcrumb-item-padding-x: .55rem;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 5px 1.1rem 5px 5px;
  border: 1.5px solid var(--bh-line);
  border-radius: 50rem;
  background: var(--bh-surface);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.2;
}
.breadcrumb-bh .breadcrumb-item { display: flex; align-items: center; white-space: nowrap; flex: none; }
.breadcrumb-bh .breadcrumb-item + .breadcrumb-item::before { font-size: 1.05rem; line-height: 1; }
.breadcrumb-bh .breadcrumb-item.active { flex: 0 1 auto; min-width: 0; font-weight: 600; }
.breadcrumb-bh .breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; display: block; }
.breadcrumb-bh a { color: var(--bh-muted); transition: color .25s ease, background-color .25s ease; }
.breadcrumb-bh a:hover { color: var(--bh-accent); }
.breadcrumb-bh .bc-home {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bh-surface-2);
  color: var(--bh-accent);
  font-size: .9rem;
}
.breadcrumb-bh .bc-home:hover { background: var(--bh-accent); color: var(--bh-bg); }
/* Pagine articolo ed evento: la linea è già quella del breadcrumb */
.hero-trail + .article-meta { border-top: 0; padding-top: 0; margin-top: 1.5rem; }

.svc-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.svc-jump-label {
  width: 100%;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bh-muted);
}

/* Card servizio */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1.5px solid var(--bh-line);
  border-radius: 40px;
  background: var(--bh-surface);
  color: var(--bh-heading);
  transition: border-color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.svc-card:hover,
.svc-card:focus-visible {
  border-color: var(--bh-accent);
  transform: translateY(-6px);
  box-shadow: var(--bh-card-shadow);
  color: var(--bh-heading);
}
.svc-card .media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 32px;
  background: var(--bh-surface-2);
}
.svc-card .media-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.svc-card .media img,
.svc-card .media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.svc-card:hover .media img,
.svc-card:hover .media video { transform: scale(1.06); }
.svc-card .svc-index {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: .3rem .8rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, .92);
  color: var(--bh-navy);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .75rem;
  font-weight: 600;
}
/* L'icona si appoggia a cavallo tra immagine e testo */
.svc-card .service-icon {
  position: absolute;
  left: 22px;
  bottom: -30px;
  border: 5px solid var(--bh-surface);
  box-sizing: content-box;
  transition: transform .4s ease;
}
.svc-card:hover .service-icon { transform: rotate(-8deg) scale(1.05); }
.svc-card .body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
  padding: 2.75rem 1.1rem 1.1rem;
}
.svc-card h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); font-weight: 800; line-height: 1.1; margin: 0; }
.svc-card p { font-size: .95rem; line-height: 1.6; color: var(--bh-text); margin: 0; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 0; padding: 0; }
.svc-tags li {
  padding: .3rem .75rem;
  border-radius: 50rem;
  background: var(--bh-surface-2);
  color: var(--bh-heading);
  font-size: .75rem;
  font-weight: 600;
}
.svc-card .link-arrow { margin-top: auto; padding-top: 1rem; }

/* In hover il nome del servizio scorre sfocato dietro titolo e testo
   (griglie con data-hover-words, il nastro è creato da js/main.js) */
.svc-card .blur-marquee {
  z-index: -1;
  inset: 1.75rem 0 auto;
  height: 5.5rem;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .5s ease .08s, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.svc-card .blur-track {
  font-family: var(--bh-font-display);
  font-size: clamp(3rem, 4.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(var(--bh-accent-rgb), .14);
  filter: blur(2.5px);
}
.svc-card.is-hovering .blur-marquee { opacity: 1; transform: none; }
.svc-card.is-hovering .blur-track { animation-play-state: running; }

/* Metodo di lavoro (dentro la sezione navy) */
.process-title {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--bh-sky) !important;
}
.process-step {
  height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1.5px solid rgba(157, 201, 231, .3);
  border-radius: 36px;
  background: rgba(36, 97, 139, .32);
  transition: border-color .3s ease, transform .3s ease;
}
.process-step:hover { border-color: rgba(157, 201, 231, .7); transform: translateY(-4px); }
.process-step .step-num {
  display: block;
  font-family: var(--bh-font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bh-sky);
}
@supports not (-webkit-text-stroke: 1px) { .process-step .step-num { color: var(--bh-sky); } }
.process-step h3 { font-size: 1.35rem; font-weight: 800; margin: 1.25rem 0 .5rem; }
.process-step p { font-size: .92rem; line-height: 1.6; margin: 0; }

/* Domande frequenti */
.faq-bh {
  --bs-accordion-bg: var(--bh-surface);
  --bs-accordion-color: var(--bh-text);
  --bs-accordion-border-color: var(--bh-line);
  --bs-accordion-border-width: 1.5px;
  --bs-accordion-border-radius: var(--bh-radius-lg);
  --bs-accordion-inner-border-radius: calc(var(--bh-radius-lg) - 1.5px);
  --bs-accordion-btn-color: var(--bh-heading);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-padding-x: 1.6rem;
  --bs-accordion-btn-padding-y: 1.3rem;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
  --bs-accordion-active-color: var(--bh-accent);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-body-padding-x: 1.6rem;
  --bs-accordion-body-padding-y: 0;
  display: grid;
  gap: .75rem;
}
.faq-bh .accordion-item,
.faq-bh .accordion-item:not(:first-of-type) {
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  transition: border-color .3s ease;
}
.faq-bh .accordion-item:has(.accordion-collapse.show) { border-color: var(--bh-accent); }
.faq-bh .accordion-button {
  font-family: var(--bh-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: inherit !important;
}
.faq-bh .accordion-body { padding-bottom: 1.4rem; line-height: 1.65; }
/* Sotto la domanda aperta: niente bordo/anello di Bootstrap, solo un filo sottile
   allineato al testo. L'anello di focus resta visibile solo da tastiera. */
.faq-bh .accordion-button:not(.collapsed),
.faq-bh .accordion-button:focus { box-shadow: none; }
.faq-bh .accordion-button:focus-visible { box-shadow: inset 0 0 0 2px var(--bh-accent); }
.faq-bh .accordion-collapse > .accordion-body {
  padding-top: 1.1rem;
  background-image: linear-gradient(var(--bh-line), var(--bh-line));
  background-size: calc(100% - 2 * var(--bs-accordion-body-padding-x)) 1px;
  background-position: var(--bs-accordion-body-padding-x) 0;
  background-repeat: no-repeat;
}

/* 18. PAGINA CHI SIAMO ---------------------------------------------------
   Immagine di apertura, missione e visione, valori, team.
   ------------------------------------------------------------------------ */
.about-hero {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 280px;
  border-radius: clamp(28px, 4vw, 56px);
  overflow: hidden;
  background: var(--bh-navy);
}
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
/* Foto di gruppo: inquadratura sui volti; su mobile più alta per non tagliare ai lati */
.about-hero.is-team img { object-position: center 12%; }
@media (max-width: 767.98px) { .about-hero.is-team { aspect-ratio: 3 / 2; min-height: 0; } }
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(36, 97, 139, .1), rgba(0, 53, 90, .4));
}
.about-hero .cowork-badge { z-index: 1; top: auto; right: auto; left: 22px; bottom: 22px; }

.mv-card {
  height: 100%;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1.5px solid var(--bh-line);
  border-radius: 40px;
  background: var(--bh-surface);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.mv-card:hover { border-color: var(--bh-accent); transform: translateY(-4px); box-shadow: var(--bh-card-shadow); }
.mv-card.is-filled {
  --bh-heading: #fff;
  border-color: var(--bh-blue);
  background: var(--bh-blue);
  color: #E1EDF6;
}
.mv-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 1.5rem 0 .75rem; }
.mv-card p { line-height: 1.65; margin: 0; }

.process-step .service-icon { width: 54px; height: 54px; font-size: 1.35rem; }

.team-card { display: block; color: var(--bh-heading); }
.team-card .media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  background: var(--bh-surface-2);
}
.team-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.team-card:hover .media img { transform: scale(1.05); }
.team-card .team-social {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: .4rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.team-card:hover .team-social,
.team-card:focus-within .team-social { opacity: 1; transform: none; }
.team-social .btn { --bs-btn-bg: rgba(0, 30, 52, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.team-card h3 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .15rem; }
.team-card .role { font-size: .85rem; color: var(--bh-accent); }
@media (hover: none) { .team-card .team-social { opacity: 1; transform: none; } }
/* Foto del team: versione chiara o scura in base al tema */
.team-card .media .team-photo-dark { display: none; }
[data-bs-theme="dark"] .team-card .media .team-photo-light { display: none; }
[data-bs-theme="dark"] .team-card .media .team-photo-dark { display: block; }

/* 19. PAGINA COWORKING ---------------------------------------------------
   Gallery a griglia con lightbox (modal + carousel di Bootstrap).
   ------------------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: .75rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(190px, 18vw, 250px); gap: 1rem; }
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bh-surface-2);
  cursor: zoom-in;
}
.gallery-item.is-big { grid-column: span 2; grid-row: span 2; }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 53, 90, .75), transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery-item .caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-family: var(--bh-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after,
.gallery-item:hover .caption,
.gallery-item:focus-visible .caption { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery-item::after,
  .gallery-item .caption { opacity: 1; transform: none; }
}

.gallery-modal .carousel-item img { width: 100%; height: 100%; object-fit: contain; }
.gallery-modal .carousel-caption-bh { color: #fff; font-family: var(--bh-font-display); font-weight: 700; }
.gallery-count { min-width: 3.5rem; text-align: center; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .85rem; color: #fff; }
/* Il lightbox resta sempre dentro lo schermo, anche su display bassi */
.gallery-modal .modal-dialog { max-width: min(1140px, calc((100vh - 22rem) * 16 / 9)); }
@media (max-width: 575.98px) { .gallery-modal .modal-dialog { max-width: none; } }

/* Extra in piccolo sotto "Sempre incluso" */
.extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.extras-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bh-sky); }
.extras-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.extras-list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(157, 201, 231, .3);
  border-radius: 50rem;
  font-size: .8rem;
  color: #D7E7F3;
}
.extras-list i { color: var(--bh-sky); }

/* 20. FILTRI (eventi e portfolio) ----------------------------------------
   Radio .btn-check di Bootstrap: la voce scelta diventa piena.
   ------------------------------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-bar .btn {
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bh-navy);
  --bs-btn-active-border-color: var(--bh-navy);
}
[data-bs-theme="dark"] .filter-bar .btn {
  --bs-btn-active-bg: var(--bh-blue);
  --bs-btn-active-border-color: var(--bh-blue);
}
.filter-empty { padding: 2.5rem 1rem; text-align: center; color: var(--bh-muted); }

/* 21. PAGINA EVENTI ------------------------------------------------------ */
.event-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-xl);
  background: var(--bh-surface);
}
.event-detail h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; margin: .9rem 0 .75rem; }
.info-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .9rem; }
.info-list li { display: flex; align-items: center; gap: .85rem; font-size: .95rem; }
.info-list .info-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-surface-2);
  color: var(--bh-accent);
}
.info-list small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bh-muted); }
.info-list strong { color: var(--bh-heading); font-weight: 600; }

@media (min-width: 992px) { .event-list.is-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.event-list.is-grid .event-row { height: 100%; }
.event-tag {
  align-self: flex-start;
  padding: .15rem .6rem;
  border-radius: 50rem;
  background: var(--bh-surface-2);
  color: var(--bh-accent);
  font-size: .7rem;
  font-weight: 600;
}

/* Abbonamento dentro la sezione navy */
.event-pass.is-ghost {
  border: 1.5px solid rgba(157, 201, 231, .3);
  background: rgba(36, 97, 139, .32);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* 22. PAGINA PORTFOLIO ---------------------------------------------------
   Riusa .project-card del nastro in homepage, a tutta larghezza.
   ------------------------------------------------------------------------ */
.project-card.is-grid {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 40px;
}
.project-card.is-grid .meta { left: 26px; right: 26px; bottom: 24px; }
.project-card.is-grid .meta strong { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.project-card.is-grid .tag { top: 20px; left: 20px; }
@media (min-width: 992px) { .project-card.is-grid.is-wide { aspect-ratio: 16 / 10; } }

/* 23. PAGINA BLOG -------------------------------------------------------- */
.blog-feature {
  display: grid;
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-xl);
  overflow: hidden;
  background: var(--bh-surface);
  color: var(--bh-heading);
  transition: border-color .3s ease, box-shadow .3s ease;
}
@media (min-width: 992px) { .blog-feature { grid-template-columns: 1.15fr 1fr; } }
.blog-feature:hover { border-color: var(--bh-accent); box-shadow: var(--bh-card-shadow); color: var(--bh-heading); }
.blog-feature .media { position: relative; min-height: 300px; overflow: hidden; background: var(--bh-surface-2); }
.blog-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.blog-feature:hover .media img { transform: scale(1.05); }
.blog-feature .badge-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: .35rem .85rem;
  border-radius: 50rem;
  background: var(--bh-sky);
  color: var(--bh-navy);
  font-size: .75rem;
  font-weight: 600;
}
.blog-feature .body { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.75rem, 4vw, 3.25rem); }
.blog-feature h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 0; transition: color .25s ease; }
.blog-feature:hover h2 { color: var(--bh-accent); }
.blog-feature p { color: var(--bh-text); line-height: 1.65; margin: 0; }
.blog-meta { font-size: .8rem; color: var(--bh-accent); }
.blog-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: .5rem; font-size: .875rem; color: var(--bh-muted); }
.blog-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.blog-author strong { display: block; color: var(--bh-heading); }

.pagination-bh {
  --bs-pagination-color: var(--bh-accent);
  --bs-pagination-bg: transparent;
  --bs-pagination-border-color: var(--bh-accent);
  --bs-pagination-border-width: 1.5px;
  --bs-pagination-hover-color: var(--bh-accent);
  --bs-pagination-hover-bg: rgba(var(--bh-accent-rgb), .07);
  --bs-pagination-hover-border-color: var(--bh-accent);
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--bh-navy);
  --bs-pagination-active-border-color: var(--bh-navy);
  --bs-pagination-disabled-color: var(--bh-muted);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-border-color: var(--bh-line);
  gap: .5rem;
}
[data-bs-theme="dark"] .pagination-bh { --bs-pagination-active-bg: var(--bh-blue); --bs-pagination-active-border-color: var(--bh-blue); }
.pagination-bh .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 !important;
  border-radius: 50% !important;
  font-weight: 600;
}

/* Newsletter (dentro la sezione navy) */
.newsletter-form {
  display: flex;
  gap: .5rem;
  padding: 6px;
  border: 1.5px solid rgba(157, 201, 231, .4);
  border-radius: 50rem;
  background: rgba(36, 97, 139, .32);
}
.newsletter-form .form-control {
  border: 0;
  border-radius: 50rem;
  padding-inline: 1.25rem;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.newsletter-form .form-control::placeholder { color: rgba(215, 231, 243, .7); }
.newsletter-note { font-size: .8rem; color: rgba(215, 231, 243, .75) !important; }
.newsletter-note a { color: #fff; text-decoration: underline; }

/* 24. PAGINA CONTATTI ---------------------------------------------------- */
.contact-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-big li { padding-bottom: 8px; border-bottom: 1px solid var(--bh-line); }
.contact-big li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-big small {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bh-muted);
}
.contact-big small i { color: var(--bh-accent); font-size: .95rem; }
.contact-big a,
.contact-big span.value {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--bh-font-display);
  font-size: clamp(1.6rem, 2.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--bh-heading);
  overflow-wrap: anywhere;
  transition: color .25s ease;
}
.contact-big a i { font-size: .6em; transition: transform .3s ease; }
.contact-big a:hover { color: var(--bh-accent); }
.contact-big a:hover i { transform: translate(4px, -4px); }

/* Hero contatti: titolo e breadcrumb a tutta larghezza, sotto contatti + preventivatore
   affiancati e centrati in altezza, così i social restano visibili senza scorrere */
.contact-hero-body { margin-top: clamp(2rem, 4vw, 3rem); }
.contact-hero-body .contact-big { gap: 1.1rem; }
.contact-hero-body .contact-big li { padding-bottom: .9rem; }
.contact-hero-body .contact-big a,
.contact-hero-body .contact-big span.value { font-size: clamp(1.3rem, 2vw, 1.65rem); }

.map-card {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--bh-radius-xl);
  overflow: hidden;
  background: var(--bh-surface-2);
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--bh-line); }
.hours-list strong { color: var(--bh-heading); font-weight: 600; }

/* 25. PAGINE DEI SINGOLI SERVIZI ----------------------------------------- */
.include-card {
  height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background: var(--bh-surface);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.include-card:hover { border-color: var(--bh-accent); transform: translateY(-4px); box-shadow: var(--bh-card-shadow); }
.include-card .service-icon { width: 54px; height: 54px; font-size: 1.35rem; }
.include-card h3 { font-size: 1.25rem; font-weight: 800; margin: 1.25rem 0 .5rem; }
.include-card p { font-size: .92rem; line-height: 1.6; margin: 0; }

/* Altri servizi */
.svc-mini {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  padding: 10px 1.1rem 10px 10px;
  border: 1.5px solid var(--bh-line);
  border-radius: 50rem;
  background: var(--bh-surface);
  color: var(--bh-heading);
  font-family: var(--bh-font-display);
  font-weight: 700;
  line-height: 1.2;
  transition: border-color .3s ease, transform .3s ease;
}
.svc-mini .service-icon { width: 44px; height: 44px; font-size: 1.05rem; }
.svc-mini .bi-arrow-right { margin-left: auto; color: var(--bh-accent); transition: transform .3s ease; }
.svc-mini:hover { border-color: var(--bh-accent); transform: translateY(-3px); color: var(--bh-heading); }
.svc-mini:hover .bi-arrow-right { transform: translateX(4px); }

/* 26. PAGINA SINGOLO ARTICOLO ED EVENTO ---------------------------------- */
/* Riga sotto il titolo: autore (o data evento) + informazioni rapide */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--bh-line);
}
.article-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  font-size: .9rem;
  color: var(--bh-muted);
}
.article-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.article-facts i { color: var(--bh-accent); }
.about-hero .video-badge { z-index: 1; }

/* Testo dell'articolo */
.article-body {
  max-width: 72ch;
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--bh-text);
}
.article-body > * + * { margin-top: 1.25rem; }
.article-body p { margin-bottom: 0; text-wrap: pretty; }
.article-body .article-lead {
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--bh-heading);
  font-weight: 500;
}
.article-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 2.75rem 0 0;
  scroll-margin-top: calc(var(--bh-header-h) + 24px);
}
.article-body h3 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0; }
.article-body a:not(.btn) {
  color: var(--bh-accent);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.article-body ul,
.article-body ol { padding-left: 1.25rem; margin-bottom: 0; display: grid; gap: .5rem; }
.article-body li::marker { color: var(--bh-accent); font-weight: 700; }
.article-body blockquote {
  position: relative;
  margin: 2.25rem 0 0;
  padding: 1.75rem 1.75rem 1.75rem 2.25rem;
  border-left: 4px solid var(--bh-warm);
  border-radius: 0 var(--bh-radius-lg) var(--bh-radius-lg) 0;
  background: var(--bh-surface-2);
}
.article-body blockquote p {
  font-family: var(--bh-font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--bh-heading);
}
.article-body blockquote cite {
  display: block;
  margin-top: .75rem;
  font-size: .85rem;
  font-style: normal;
  color: var(--bh-muted);
}
.article-body blockquote cite::before { content: "— "; }
.article-figure { margin: 2.25rem 0 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--bh-radius-lg); display: block; }
.article-figure figcaption { margin-top: .75rem; font-size: .85rem; color: var(--bh-muted); }

/* Programma di un evento */
.article-body .event-schedule { list-style: none; padding: 0; gap: 0; }
.event-schedule li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--bh-line);
}
.event-schedule li:last-child { border-bottom: 0; }
.event-schedule strong { font-family: var(--bh-font-display); color: var(--bh-accent); }

/* Tag e condivisione in fondo al testo */
.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bh-line);
}
.article-body .tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 50rem;
  background: var(--bh-surface-2);
  color: var(--bh-accent) !important;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .25s ease;
}
.tag-list a:hover { background: var(--bh-line); }
.share-row { display: flex; align-items: center; gap: .5rem; }
.share-row > span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bh-muted); margin-right: .25rem; }

/* Colonna laterale */
.article-aside { display: grid; gap: 1.25rem; }
@media (min-width: 992px) {
  .article-aside { position: sticky; top: calc(var(--bh-header-h) + 24px); }
}
.aside-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1.5px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background: var(--bh-surface);
  font-size: .95rem;
  line-height: 1.6;
}
.aside-title {
  font-family: var(--bs-body-font-family);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bh-accent);
  margin: 0 0 1rem;
}
.aside-card.is-navy { background: var(--bh-navy-section); border-color: transparent; color: #D7E7F3; }
.aside-card.is-navy p { color: #D7E7F3; margin-bottom: 1.25rem; }
.aside-card.is-navy .aside-title { font-family: var(--bh-font-display); font-size: 1.35rem; letter-spacing: -.01em; text-transform: none; color: #fff; }
.toc-list { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: .25rem; }
.toc-list li { counter-increment: toc; }
.toc-list a {
  display: flex;
  gap: .75rem;
  padding: .5rem 0;
  color: var(--bh-heading);
  font-weight: 500;
  line-height: 1.35;
  transition: color .25s ease;
}
.toc-list a::before { content: counter(toc, decimal-leading-zero); color: var(--bh-accent); font-family: var(--bh-font-display); font-weight: 700; }
.toc-list a:hover { color: var(--bh-accent); }
.article-aside .event-pass { flex-direction: column; align-items: flex-start; }
/* Immagine di copertina: su mobile proporzione più alta, senza altezza minima che la allargherebbe */
@media (max-width: 767.98px) { .about-hero.is-article { aspect-ratio: 4 / 3; min-height: 0; } }

/* =========================================================
   MOBILE: niente scorrimento orizzontale
   Le righe con spaziatura g-5 (3rem) sporgevano di 0,5rem oltre il margine
   della pagina su mobile (px-3 = 1rem). Con 2rem la sporgenza sparisce e il
   contenuto resta nella stessa posizione. "clip" sul body è una sicurezza in
   più per gli elementi decorativi (non blocca l'header sticky).
   ========================================================= */
@media (max-width: 767.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; }
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* Mobile: spazio sotto copyright e policy, così il pulsante flottante di iubenda non li copre */
@media (max-width: 767.98px) {
  .footer-bottom { padding-bottom: 5.5rem !important; }
}
