/* =========================================================
   Black Star Service — Custom Header (Preview)
   Tutto è prefissato .bsh- per evitare conflitti con Divi
   e con il plugin blackstar-noleggi. Nessuna dipendenza
   esterna (no jQuery, no framework).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

/* ---------- Tokens locali (riallineati al design system) ---------- */
.bsh-root {
  --bsh-bg:           #050b16;
  --bsh-bg-2:         #081224;
  --bsh-panel:        #0d1728;
  --bsh-panel-2:      rgba(13, 23, 40, .85);
  --bsh-panel-3:      rgba(13, 23, 40, .96);

  --bsh-blue:         #1677FF;
  --bsh-blue-strong:  #0d5fd6;
  --bsh-blue-soft:    rgba(22, 119, 255, .14);
  --bsh-blue-glow:    rgba(22, 119, 255, .55);
  --bsh-blue-edge:    rgba(22, 119, 255, .42);

  --bsh-cyan:         #4FC3F7;

  --bsh-fg:           #ffffff;
  --bsh-fg-1:         #d1d5db;
  --bsh-fg-2:         #bac4d2;
  --bsh-fg-3:         #aeb8c7;
  --bsh-fg-4:         #9ca3af;

  --bsh-border:       rgba(255, 255, 255, .10);
  --bsh-border-strong:rgba(255, 255, 255, .18);

  --bsh-font-display: "Space Grotesk", Inter, system-ui, Arial, sans-serif;
  --bsh-font-body:    Inter, system-ui, Arial, Helvetica, sans-serif;

  --bsh-radius-sm:    12px;
  --bsh-radius-md:    14px;
  --bsh-radius-lg:    18px;
  --bsh-radius-pill:  999px;

  --bsh-shadow-cta:   0 18px 34px rgba(0, 0, 0, .32), 0 0 26px rgba(22, 119, 255, .36);
  --bsh-shadow-pop:   0 24px 60px rgba(0, 0, 0, .45);
  --bsh-glow-text:    0 0 10px rgba(22, 119, 255, .8), 0 0 30px rgba(22, 119, 255, .45);

  --bsh-blur-nav:     blur(14px);
  --bsh-blur-deep:    blur(22px);

  --bsh-ease:         cubic-bezier(.2, .7, .3, 1);
  --bsh-dur:          240ms;

  --bsh-h:            78px;          /* altezza header */
  --bsh-h-compact:    66px;          /* altezza dopo scroll */
  --bsh-page-x:       clamp(18px, 4vw, 56px);
}

/* ---------- Reset locale (no body styling — vive dentro Divi) ---------- */
.bsh-root,
.bsh-root *,
.bsh-root *::before,
.bsh-root *::after { box-sizing: border-box; }
.bsh-root a { color: inherit; text-decoration: none; }
.bsh-root button {
  background: transparent; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
}
.bsh-root svg { display: block; }

/* =========================================================
   HEADER SHELL
   ========================================================= */
.bsh-header {
  position: sticky;     /* WP: sticky in flow per evitare overlay con Divi */
  top: 0;
  z-index: 1000;
  height: var(--bsh-h);
  font-family: var(--bsh-font-body);
  color: var(--bsh-fg);
  background: linear-gradient(180deg, rgba(5, 11, 22, .55) 0%, rgba(5, 11, 22, .0) 100%);
  backdrop-filter: var(--bsh-blur-nav);
  -webkit-backdrop-filter: var(--bsh-blur-nav);
  border-bottom: 1px solid transparent;
  transition: background var(--bsh-dur) var(--bsh-ease),
              border-color var(--bsh-dur) var(--bsh-ease),
              height var(--bsh-dur) var(--bsh-ease),
              box-shadow var(--bsh-dur) var(--bsh-ease);
}
.bsh-root[data-bsh-sticky="no"] .bsh-header { position: relative; }
.bsh-header.is-scrolled {
  height: var(--bsh-h-compact);
  background: rgba(5, 11, 22, .92);
  border-bottom-color: var(--bsh-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.bsh-bar {
  height: 100%;
  padding: 0 var(--bsh-page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

/* ---------- Logo ---------- */
.bsh-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.bsh-logo img {
  height: 42px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  transition: height var(--bsh-dur) var(--bsh-ease), filter var(--bsh-dur) var(--bsh-ease);
}
.bsh-header.is-scrolled .bsh-logo img { height: 36px; }
.bsh-logo:hover img { filter: drop-shadow(0 0 14px rgba(22, 119, 255, .35)); }

/* ---------- Nav (desktop) ---------- */
.bsh-nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1 1 auto;
  gap: 4px;
  margin: 0 22px 0 36px;
  max-width: 760px;
}
.bsh-nav-item { position: relative; }
.bsh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--bsh-radius-sm);
  font-family: var(--bsh-font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bsh-fg-2);
  white-space: nowrap;
  transition: color var(--bsh-dur) var(--bsh-ease),
              background var(--bsh-dur) var(--bsh-ease);
}
.bsh-nav-link:hover,
.bsh-nav-link[aria-expanded="true"],
.bsh-nav-item:focus-within > .bsh-nav-link {
  color: var(--bsh-fg);
  background: rgba(255, 255, 255, .04);
}
.bsh-nav-link .bsh-caret {
  width: 10px; height: 10px;
  transition: transform var(--bsh-dur) var(--bsh-ease);
  opacity: .65;
}
.bsh-nav-link[aria-expanded="true"] .bsh-caret { transform: rotate(180deg); opacity: 1; color: var(--bsh-blue); }

/* underline animato sotto la voce attiva */
.bsh-nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--bsh-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--bsh-dur) var(--bsh-ease);
}
.bsh-nav-link:hover::after,
.bsh-nav-link[aria-expanded="true"]::after { transform: scaleX(.7); }

/* ---------- Actions (search + CTA) ---------- */
.bsh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bsh-search-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--bsh-radius-pill);
  color: var(--bsh-fg-1);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all var(--bsh-dur) var(--bsh-ease);
}
.bsh-search-btn:hover {
  color: var(--bsh-fg);
  background: rgba(22, 119, 255, .12);
  border-color: var(--bsh-blue-edge);
  transform: translateY(-1px);
}
.bsh-search-btn svg { width: 18px; height: 18px; }

/* CTA Area Cliente — pulsante primario */
.bsh-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--bsh-radius-md);
  background: var(--bsh-blue);
  border: 1px solid var(--bsh-blue);
  color: #fff;
  box-shadow: var(--bsh-shadow-cta);
  font-family: var(--bsh-font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--bsh-dur) var(--bsh-ease),
              background var(--bsh-dur) var(--bsh-ease),
              box-shadow var(--bsh-dur) var(--bsh-ease);
}
.bsh-cta:hover {
  transform: translateY(-2px);
  background: var(--bsh-blue-strong);
}
.bsh-cta svg { width: 16px; height: 16px; }
.bsh-cta .bsh-cta-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--bsh-font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}

/* ---------- Hamburger (mobile only) ---------- */
.bsh-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--bsh-radius-pill);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.bsh-burger:hover { background: rgba(22, 119, 255, .12); border-color: var(--bsh-blue-edge); }
.bsh-burger svg { width: 22px; height: 22px; }

/* =========================================================
   DROPDOWN (sotto le voci menu)
   ========================================================= */
.bsh-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--bsh-panel-3);
  backdrop-filter: var(--bsh-blur-deep);
  -webkit-backdrop-filter: var(--bsh-blur-deep);
  border: 1px solid var(--bsh-border-strong);
  border-radius: var(--bsh-radius-lg);
  box-shadow: var(--bsh-shadow-pop);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .18s var(--bsh-ease), transform .18s var(--bsh-ease), visibility 0s linear .18s;
}
.bsh-nav-item.is-open .bsh-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .22s var(--bsh-ease), transform .22s var(--bsh-ease), visibility 0s linear 0s;
}

.bsh-dropdown::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--bsh-panel-3);
  border-left: 1px solid var(--bsh-border-strong);
  border-top: 1px solid var(--bsh-border-strong);
}

.bsh-dd-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--bsh-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--bsh-fg-1);
  transition: background var(--bsh-dur) var(--bsh-ease), color var(--bsh-dur) var(--bsh-ease);
}
.bsh-dd-link:hover { background: var(--bsh-blue-soft); color: var(--bsh-fg); }
.bsh-dd-link .bsh-dd-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(22, 119, 255, .12);
  color: var(--bsh-blue);
  flex-shrink: 0;
}
.bsh-dd-link .bsh-dd-ico svg { width: 16px; height: 16px; }
.bsh-dd-link small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--bsh-fg-4);
  margin-top: 2px;
}

/* ---------- Mega menu — 3 colonne (parents | children | featured) o 2 colonne ---------- */
.bsh-dropdown--mega {
  /* Position FIXED rispetto al viewport → il mega è sempre centrato a prescindere
     da quale voce nav lo abbia aperto. Stesso comportamento per tutti e 4 i menu. */
  position: fixed;
  top: var(--bsh-h);
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(960px, calc(100vw - 32px));
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 230px 1fr 270px;
  gap: 16px;
  transform: translateX(-50%) translateY(-6px);
}
.bsh-header.is-scrolled .bsh-dropdown--mega { top: var(--bsh-h-compact); }
.bsh-nav-item.is-open .bsh-dropdown--mega { transform: translateX(-50%) translateY(0); }

/* Variante senza featured card → 2 colonne, più stretto */
.bsh-dropdown--mega-2col {
  grid-template-columns: 240px 1fr;
  width: min(700px, calc(100vw - 32px));
}

/* Niente arrow tail per il mega (è troppo largo per puntare a un trigger preciso) */
.bsh-dropdown--mega::before { display: none; }

.bsh-mega-col h4 {
  margin: 4px 12px 10px;
  font-family: var(--bsh-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bsh-blue);
}

/* Colonna parent (sinistra) */
.bsh-mega-parents { border-right: 1px solid var(--bsh-border); padding-right: 8px; }
.bsh-mega-parents-list { display: grid; gap: 2px; }
.bsh-mega-parent {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--bsh-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--bsh-fg-1);
  position: relative;
  transition: background var(--bsh-dur) var(--bsh-ease), color var(--bsh-dur) var(--bsh-ease);
}
.bsh-mega-parent:hover,
.bsh-mega-parent.is-active {
  background: var(--bsh-blue-soft);
  color: var(--bsh-fg);
}
.bsh-mega-parent.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--bsh-blue);
  box-shadow: 0 0 8px var(--bsh-blue-glow);
}
.bsh-mega-parent-arrow {
  width: 14px; height: 14px;
  color: var(--bsh-fg-4);
  opacity: .6;
  transition: transform var(--bsh-dur) var(--bsh-ease), opacity var(--bsh-dur) var(--bsh-ease), color var(--bsh-dur) var(--bsh-ease);
}
.bsh-mega-parent:hover .bsh-mega-parent-arrow,
.bsh-mega-parent.is-active .bsh-mega-parent-arrow {
  color: var(--bsh-blue);
  opacity: 1;
  transform: translateX(2px);
}

/* Colonna children (centro) — solo un pane visibile alla volta */
.bsh-mega-children { position: relative; min-height: 220px; padding: 0 6px; }
.bsh-mega-child-pane {
  display: none;
  animation: bshFadeIn .18s var(--bsh-ease);
}
.bsh-mega-child-pane.is-active { display: block; }
.bsh-mega-child-list { display: grid; gap: 2px; }
.bsh-mega-child {
  display: block;
  padding: 9px 12px;
  border-radius: var(--bsh-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bsh-fg-2);
  transition: background var(--bsh-dur) var(--bsh-ease), color var(--bsh-dur) var(--bsh-ease);
}
.bsh-mega-child small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--bsh-fg-4);
  margin-top: 2px;
}
.bsh-mega-child:hover {
  background: var(--bsh-blue-soft);
  color: var(--bsh-fg);
}
.bsh-mega-child--all {
  margin-top: 6px;
  font-family: var(--bsh-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bsh-blue);
  border-top: 1px solid var(--bsh-border);
  border-radius: 0;
  padding-top: 14px;
}
.bsh-mega-child--all:hover { background: transparent; color: var(--bsh-fg); }

@keyframes bshFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Featured card (destra) — fissa */
.bsh-mega-feature {
  position: relative;
  border-radius: var(--bsh-radius-md);
  overflow: hidden;
  background: var(--bsh-bg-2);
  border: 1px solid var(--bsh-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 16px;
  isolation: isolate;
  transition: border-color var(--bsh-dur) var(--bsh-ease), transform var(--bsh-dur) var(--bsh-ease);
}
.bsh-mega-feature::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0) 30%, rgba(5, 11, 22, .85) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(22, 119, 255, .35) 0%, rgba(22, 119, 255, 0) 60%),
    linear-gradient(135deg, #0d1728 0%, #081224 100%);
  z-index: -1;
}
.bsh-mega-feature::after {
  content: "";
  position: absolute;
  top: 18px; right: 18px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, .55) 0%, rgba(22, 119, 255, 0) 70%);
  z-index: -1;
  animation: bshPulse 3s ease-in-out infinite;
}
.bsh-mega-feature:hover { border-color: var(--bsh-blue-edge); transform: translateY(-2px); }
.bsh-mega-feature .bsh-eyebrow {
  font-family: var(--bsh-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bsh-blue);
  margin-bottom: 6px;
}
.bsh-mega-feature h5 {
  font-family: var(--bsh-font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 6px;
}
.bsh-mega-feature p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bsh-fg-3);
  margin: 0 0 12px;
}
.bsh-mega-feature .bsh-mega-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--bsh-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bsh-fg);
}
.bsh-mega-feature .bsh-mega-link svg { width: 14px; height: 14px; }

@keyframes bshPulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.15); }
}

/* ---------- Dropdown semplice con sotto-voci (2 livelli) ---------- */
.bsh-dd-group { padding: 2px 0; }
.bsh-dd-group + .bsh-dd-group {
  border-top: 1px solid var(--bsh-border);
  margin-top: 4px;
  padding-top: 6px;
}
.bsh-dd-link-label { display: block; }
.bsh-dd-sub-list {
  display: grid; gap: 1px;
  padding: 2px 0 4px 40px;
  margin-top: -2px;
}
.bsh-dd-sub-item {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bsh-fg-2);
  position: relative;
  transition: background var(--bsh-dur) var(--bsh-ease), color var(--bsh-dur) var(--bsh-ease);
}
.bsh-dd-sub-item::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  width: 8px; height: 1px;
  background: var(--bsh-border-strong);
}
.bsh-dd-sub-item:hover {
  background: var(--bsh-blue-soft);
  color: var(--bsh-fg);
}

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.bsh-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(3, 7, 13, .78);
  backdrop-filter: var(--bsh-blur-deep);
  -webkit-backdrop-filter: var(--bsh-blur-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bsh-dur) var(--bsh-ease);
}
.bsh-search-overlay.is-open { opacity: 1; pointer-events: auto; }

.bsh-search-panel {
  width: min(720px, 92vw);
  margin: 12vh auto 0;
  background: var(--bsh-panel-3);
  border: 1px solid var(--bsh-border-strong);
  border-radius: 22px;
  box-shadow: var(--bsh-shadow-pop);
  overflow: hidden;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform var(--bsh-dur) var(--bsh-ease), opacity var(--bsh-dur) var(--bsh-ease);
}
.bsh-search-overlay.is-open .bsh-search-panel { transform: translateY(0); opacity: 1; }

.bsh-search-input-row {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--bsh-border);
}
.bsh-search-input-row svg { width: 22px; height: 22px; color: var(--bsh-blue); flex-shrink: 0; }
.bsh-search-input-row input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--bsh-fg);
  font-family: var(--bsh-font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.bsh-search-input-row input::placeholder { color: var(--bsh-fg-4); }
.bsh-search-close {
  width: 34px; height: 34px;
  border-radius: var(--bsh-radius-pill);
  background: rgba(255, 255, 255, .06);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--bsh-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--bsh-fg-2);
  padding: 0 10px;
  width: auto; height: 30px;
}
.bsh-search-close:hover { background: var(--bsh-blue-soft); color: var(--bsh-fg); }

.bsh-search-results {
  max-height: 64vh;
  overflow-y: auto;
  padding: 10px;
}
.bsh-search-results::-webkit-scrollbar { width: 8px; }
.bsh-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }

.bsh-search-section-label {
  font-family: var(--bsh-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bsh-fg-4);
  padding: 10px 14px 6px;
}
.bsh-result {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--bsh-radius-md);
  transition: background var(--bsh-dur) var(--bsh-ease);
}
.bsh-result:hover, .bsh-result.is-active { background: var(--bsh-blue-soft); }
.bsh-result-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #0d1728 0%, #081224 100%);
  border: 1px solid var(--bsh-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bsh-blue);
  overflow: hidden;
  flex-shrink: 0;
}
.bsh-result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bsh-result-thumb svg { width: 26px; height: 26px; }
.bsh-result mark {
  background: transparent;
  color: var(--bsh-blue);
  font-weight: 800;
}
.bsh-result-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--bsh-fg);
  line-height: 1.25;
}
.bsh-result-body small {
  font-size: 11.5px;
  color: var(--bsh-fg-4);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bsh-result-action {
  font-family: var(--bsh-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bsh-blue);
  display: inline-flex; align-items: center; gap: 4px;
}
.bsh-result-action svg { width: 14px; height: 14px; }

.bsh-search-empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--bsh-fg-4);
  font-size: 14px;
}
.bsh-search-empty strong { color: var(--bsh-fg-2); display: block; margin-bottom: 4px; font-family: var(--bsh-font-display); font-weight: 800; }
.bsh-search-foot {
  display: flex; gap: 18px; justify-content: center;
  padding: 14px;
  border-top: 1px solid var(--bsh-border);
  font-size: 11px;
  color: var(--bsh-fg-4);
}
.bsh-search-foot kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--bsh-border-strong);
  font-family: var(--bsh-font-display);
  font-size: 10px;
  color: var(--bsh-fg-2);
  margin-right: 4px;
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.bsh-drawer-backdrop {
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(3, 7, 13, .6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bsh-dur) var(--bsh-ease);
}
.bsh-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.bsh-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  z-index: 1095;
  background: linear-gradient(180deg, #050b16 0%, #03070d 100%);
  border-left: 1px solid var(--bsh-border);
  transform: translateX(100%);
  transition: transform .32s var(--bsh-ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bsh-drawer.is-open { transform: translateX(0); }

.bsh-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--bsh-border);
}
.bsh-drawer-head img {
  height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}
.bsh-drawer-close {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--bsh-radius-pill);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--bsh-border);
  color: #fff;
}
.bsh-drawer-close svg { width: 18px; height: 18px; }
.bsh-drawer-close:hover { background: var(--bsh-blue-soft); border-color: var(--bsh-blue-edge); }

.bsh-drawer-search {
  padding: 16px 22px 12px;
}
.bsh-drawer-search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bsh-border-strong);
  border-radius: var(--bsh-radius-md);
  padding: 0 14px;
  height: 52px;
  transition: border-color var(--bsh-dur) var(--bsh-ease), background var(--bsh-dur) var(--bsh-ease);
}
.bsh-drawer-search-wrap:focus-within {
  border-color: var(--bsh-blue-edge);
  background: rgba(22, 119, 255, .05);
}
.bsh-drawer-search-wrap svg { width: 18px; height: 18px; color: var(--bsh-blue); flex-shrink: 0; }
.bsh-drawer-search-wrap input {
  flex: 1;
  background: transparent; border: 0; outline: none;
  color: var(--bsh-fg);
  font-size: 16px;
  font-family: var(--bsh-font-body);
  font-weight: 500;
}
.bsh-drawer-search-wrap input::placeholder { color: var(--bsh-fg-4); }

.bsh-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px 16px;
}

.bsh-drawer-item { border-bottom: 1px solid var(--bsh-border); }
.bsh-drawer-item:last-of-type { border-bottom: 0; }

.bsh-drawer-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 12px;
  font-family: var(--bsh-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--bsh-fg);
  text-align: left;
}
.bsh-drawer-toggle .bsh-caret {
  width: 14px; height: 14px;
  color: var(--bsh-fg-3);
  transition: transform var(--bsh-dur) var(--bsh-ease);
}
.bsh-drawer-item.is-open .bsh-drawer-toggle .bsh-caret { transform: rotate(180deg); color: var(--bsh-blue); }
.bsh-drawer-toggle:hover { color: var(--bsh-blue); }

.bsh-drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s var(--bsh-ease);
}
.bsh-drawer-item.is-open .bsh-drawer-sub { max-height: 600px; }
.bsh-drawer-sub-list {
  padding: 0 12px 16px;
  display: grid;
  gap: 2px;
}
.bsh-drawer-sub-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--bsh-fg-2);
  font-weight: 500;
}
.bsh-drawer-sub-link:hover, .bsh-drawer-sub-link:focus-visible {
  background: var(--bsh-blue-soft);
  color: var(--bsh-fg);
  outline: none;
}
.bsh-drawer-sub-link .bsh-dd-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(22, 119, 255, .12);
  color: var(--bsh-blue);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bsh-drawer-sub-link .bsh-dd-ico svg { width: 15px; height: 15px; }

/* Sub-sub-list (2° livello accordion mobile) */
.bsh-drawer-sub-group { display: block; }
.bsh-drawer-sub-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px;
  border-radius: 10px;
  font-family: var(--bsh-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--bsh-fg-1);
  text-align: left;
  background: transparent;
  transition: background var(--bsh-dur) var(--bsh-ease), color var(--bsh-dur) var(--bsh-ease);
}
.bsh-drawer-sub-toggle .bsh-caret {
  width: 12px; height: 12px;
  color: var(--bsh-fg-3);
  transition: transform var(--bsh-dur) var(--bsh-ease);
}
.bsh-drawer-sub-group.is-open .bsh-drawer-sub-toggle {
  color: var(--bsh-blue);
  background: var(--bsh-blue-soft);
}
.bsh-drawer-sub-group.is-open .bsh-drawer-sub-toggle .bsh-caret {
  transform: rotate(180deg);
  color: var(--bsh-blue);
}
.bsh-drawer-sub-sub {
  display: grid; gap: 1px;
  max-height: 0;
  overflow: hidden;
  padding-left: 24px;
  transition: max-height .28s var(--bsh-ease), padding .28s var(--bsh-ease);
}
.bsh-drawer-sub-group.is-open .bsh-drawer-sub-sub {
  max-height: 600px;
  padding-top: 4px;
  padding-bottom: 8px;
}
.bsh-drawer-sub-link--all {
  font-family: var(--bsh-font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bsh-blue);
}

.bsh-drawer-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--bsh-border);
  background: linear-gradient(180deg, rgba(13,23,40,0) 0%, rgba(13,23,40,.5) 100%);
}
.bsh-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px;
  background: var(--bsh-blue);
  border-radius: var(--bsh-radius-md);
  color: #fff;
  box-shadow: var(--bsh-shadow-cta);
  font-family: var(--bsh-font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bsh-drawer-cta svg { width: 18px; height: 18px; }
.bsh-drawer-foot .bsh-drawer-greeting {
  font-size: 13px;
  color: var(--bsh-fg-3);
  margin-bottom: 12px;
  text-align: center;
}
.bsh-drawer-foot .bsh-drawer-greeting strong { color: var(--bsh-fg); font-family: var(--bsh-font-display); font-weight: 800; }

/* =========================================================
   FOCUS-VISIBLE / A11Y
   ========================================================= */
.bsh-root :focus-visible {
  outline: 2px solid var(--bsh-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .bsh-nav, .bsh-actions .bsh-search-btn, .bsh-actions .bsh-cta { display: none !important; }
  .bsh-burger { display: inline-flex; }
  .bsh-bar { justify-content: space-between; }
}
@media (max-width: 480px) {
  .bsh-logo img { height: 34px; }
  .bsh-header { height: 68px; }
  .bsh-header.is-scrolled { height: 60px; }
}

/* Mobile preview override (utile per la preview standalone; in produzione la classe non viene mai applicata) */
.bsh-root.bsh-force-mobile .bsh-nav,
.bsh-root.bsh-force-mobile .bsh-actions .bsh-search-btn,
.bsh-root.bsh-force-mobile .bsh-actions .bsh-cta { display: none !important; }
.bsh-root.bsh-force-mobile .bsh-burger { display: inline-flex; }

/* =========================================================
   CARRELLO — icona nell'header (desktop + mobile, solo icona)
   ========================================================= */
.bsh-cart-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--bsh-radius-pill);
  color: var(--bsh-fg-1);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all var(--bsh-dur) var(--bsh-ease);
}
.bsh-cart-btn:hover {
  color: var(--bsh-fg);
  background: rgba(22, 119, 255, .12);
  border-color: var(--bsh-blue-edge);
  transform: translateY(-1px);
}
.bsh-cart-btn svg { width: 20px; height: 20px; }

/* =========================================================
   DRAWER MOBILE — leggibilità voci (bianco + semibold)
   Le categorie Noleggio hanno lo stesso peso/colore delle
   altre voci del menu (Allestimenti, Servizi, …).
   ========================================================= */
.bsh-root .bsh-drawer-toggle { color: var(--bsh-fg) !important; font-size: 17px !important; font-weight: 800 !important; }
.bsh-root .bsh-drawer-toggle[aria-disabled="true"] { color: var(--bsh-fg-2) !important; }
.bsh-root .bsh-drawer-sub-toggle { color: #ffffff !important; font-weight: 700 !important; font-size: 16px !important; }
.bsh-root .bsh-drawer-sub-link { color: #ffffff !important; font-weight: 600 !important; font-size: 16px !important; }
.bsh-root .bsh-drawer-sub-link:hover,
.bsh-root .bsh-drawer-sub-link:focus-visible { color: #ffffff !important; background: var(--bsh-blue-soft); }
.bsh-root .bsh-drawer-sub-link--all { color: var(--bsh-blue) !important; font-weight: 800 !important; font-size: 12px !important; }

/* =========================================================================
 * v1.4.0 — Card in evidenza divisa: media dinamico (alto) + catalogo (basso)
 * Il blocco va DOPO le regole .bsh-mega-feature esistenti: le sovrascrive.
 * ====================================================================== */
.bsh-mega-feature {
  --bsh-media-h: 150px;
  padding: 0;
  justify-content: flex-start;
  overflow: hidden;
}
/* il glow pulsante si sposta dentro il media */
.bsh-mega-feature::after { display: none; }

/* ---------- Parte alta: media ---------- */
.bsh-mega-media {
  position: relative;
  display: block;
  flex: none;
  /* quadrato: le foto del catalogo sono 500x500, cosi entrano senza tagli */
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: linear-gradient(135deg, #10203a 0%, #081224 100%);
  border-bottom: 1px solid var(--bsh-border);
}
.bsh-mega-media::before {
  content: "";
  position: absolute;
  top: 22%; left: 34%;
  width: 150px; height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, .5) 0%, rgba(22, 119, 255, 0) 70%);
  animation: bshPulse 3s ease-in-out infinite;
}
/* stella di ripiego: visibile solo quando non c'e immagine */
.bsh-mega-media::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  background: var(--bsh-star-mark, none) center / contain no-repeat;
  opacity: 0;
  transition: opacity var(--bsh-dur) var(--bsh-ease);
  filter: drop-shadow(0 0 18px rgba(22, 119, 255, .55));
}
.bsh-mega-media.is-empty::after { opacity: .5; }

.bsh-mega-media-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity .26s var(--bsh-ease), transform .5s var(--bsh-ease);
}
.bsh-mega-media.is-empty .bsh-mega-media-img { opacity: 0; }
.bsh-mega-media.is-fresh .bsh-mega-media-img { animation: bshMediaIn .28s var(--bsh-ease); }
.bsh-mega-feature:hover .bsh-mega-media-img { transform: scale(1.04); }

/* velo per tenere leggibile l'etichetta */
.bsh-mega-media-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0) 35%, rgba(5, 11, 22, .9) 100%);
  pointer-events: none;
}
.bsh-mega-media-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 11px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.bsh-mega-media-label {
  font-family: var(--bsh-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.bsh-mega-media-count {
  flex: none;
  padding: 4px 8px;
  border-radius: var(--bsh-radius-pill, 999px);
  background: rgba(5, 11, 22, .72);
  border: 1px solid var(--bsh-blue-edge);
  font-family: var(--bsh-font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #C9E5FF;
  white-space: nowrap;
}
.bsh-mega-media-count[hidden] { display: none; }

/* ---------- Parte bassa: blocco catalogo (invariato nei contenuti) ---------- */
.bsh-mega-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #0d1728 0%, #0a1322 100%);
}

@keyframes bshMediaIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: none; }
}

/* Schermi bassi: il quadrato pieno sforerebbe il viewport, si torna panoramico */
@media (max-height: 760px) {
  .bsh-mega-media { aspect-ratio: auto; height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .bsh-mega-media::before { animation: none; }
  .bsh-mega-media.is-fresh .bsh-mega-media-img { animation: none; }
  .bsh-mega-feature:hover .bsh-mega-media-img { transform: none; }
}
