/* wrapper sticky */
#site-header { position: sticky; top:0; z-index:2000; background:#FAF6EEFA; backdrop-filter:saturate(1.1); box-shadow:0 1px 6px rgba(0,0,0,.06); }

/* layout */
.nav-wrap { width:100%; }
.nav-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 16px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-logo { height:28px; width:28px; object-fit:contain; }
.brand-name { font-weight:700; letter-spacing:.08em; color:#0f172a; }

/* center menu */
.nav-center { list-style:none; display:flex; align-items:center; gap:22px; margin:0; padding:0; }
.nav-link { text-decoration:none; color:#0f172a; opacity:.85; padding:8px 12px; border-radius:999px; transition:.18s; }
.nav-link:hover { opacity:1 }
.nav-link.active { background:#2f62f5; color:#fff; box-shadow:0 2px 10px rgba(47,98,245,.25); }

/* right CTA */
.btn-cta { display:inline-block; background:#2f62f5; color:#fff; font-weight:600; padding:8px 14px; border-radius:999px; text-decoration:none; box-shadow:0 4px 14px rgba(47,98,245,.25); }
.btn-cta:hover { filter:brightness(1.05) }

/* burger */
.burger { display:none; width:40px; height:40px; border:none; background:transparent; border-radius:8px; align-items:center; justify-content:center; gap:4px; }
.burger span{ display:block; width:22px; height:2px; background:#0f172a; border-radius:2px; }
.nav-right { display:flex; align-items:center; }

/* hero layering */
#hero{ position:relative; }
#hero video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
#hero .overlay{ position:relative; z-index:1; }

/* rimuovi spacer ereditati */
.header-spacer, .top-spacer, #header-spacer{ height:0!important; padding:0!important; margin:0!important; }

/* responsive */
@media (max-width: 1024px){
  .nav-inner{ padding:8px 14px; }
  .nav-center{ gap:16px; }
}
@media (max-width: 820px){
  .burger{ display:flex }
  .nav-center{ 
    position:fixed; inset:56px 12px auto 12px;
    display:flex; flex-direction:column; gap:10px;
    background:#ffffff; border-radius:14px; padding:14px; 
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    transform-origin:top center; transform:scale(.98); opacity:0; pointer-events:none; transition:.16s;
  }
  .nav-center.open{ transform:scale(1); opacity:1; pointer-events:auto; }
  .nav-right{ display:none }
  /* blocca scroll pagina con menu aperto */
  .nav-open, .nav-open body{ overflow:hidden }
}

/* --- MOBILE SHEET NAV --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.45); /* blu-notte trasparente */
  z-index: 90;
  opacity: 0;
  transition: opacity .18s ease-out;
}
.nav-overlay.show { opacity: 1; }

/* il foglio del menu */
.mobile-sheet {
  position: fixed;
  top: calc(var(--nav-h, 64px) + 8px); /* subito sotto la barra */
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(2, 8, 23, 0.18);
  z-index: 99;
  opacity: 0;
  transition: transform .18s ease-out, opacity .18s ease-out;
  padding: 12px 12px 10px;
}
.mobile-sheet.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.sheet-close{
  position:absolute;
  right:8px; top:8px;
  border:0; background:transparent;
  font-size:20px; line-height:1;
  opacity:.7; cursor:pointer;
}
.sheet-close:hover{ opacity:1; }

.sheet-list{
  list-style:none; margin:0; padding: 8px 8px 6px;
}
.sheet-link{
  display:block;
  padding: 14px 14px;
  text-align:center;
  font-size:17px;
  color:#0f172a; /* slate-900 */
  border-radius: 12px;
}
.sheet-link:is(:hover,:focus-visible){
  background:#f1f5ff; /* tenue blu */
}
.sheet-link.is-active{
  background:#3366ff;
  color:#fff;
  font-weight:600;
}

/* burger più leggibile */
.burger{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px;
  border:0; background:transparent; border-radius:10px;
}
.burger span{
  display:block; width:22px; height:2px; background:#0f172a;
  margin:4px 0; border-radius:2px; transition:transform .18s ease;
}

/* opzionale: libera l'area centrale su desktop */
@media (min-width: 992px){
  .nav-overlay, .mobile-sheet { display: none !important; }
}

/* assicurati che la barra abbia un'altezza nota (per il posizionamento del foglio) */
.nav-wrap{
  position:sticky; top:0; z-index:80;
  --nav-h: 64px;
}
.nav-inner{ min-height: var(--nav-h); }

/* blocco scroll quando il menu è aperto */
.nav-open, .nav-open body { overflow: hidden; }

/* blocca scroll quando il menu è aperto */
.nav-open, .nav-open body { overflow: hidden; }

/* --- Burger animato --- */
.burger {
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border:0; background:transparent; border-radius:10px;
  position: relative;
}
.burger .l1, .burger .l2, .burger .l3{
  position:absolute; width:22px; height:2px; background:#0f172a; border-radius:2px;
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}
.burger .l1{ top: 13px; }
.burger .l2{ top: 20px; }
.burger .l3{ top: 27px; }
.burger.is-open .l1{ top:20px; transform: rotate(45deg); }
.burger.is-open .l2{ opacity:0; }
.burger.is-open .l3{ top:20px; transform: rotate(-45deg); }

/* --- Mobile sheet icons --- */
.sheet-link {
  display:flex; align-items:center; gap:10px;
  padding: 14px 14px; text-align:left; font-size:17px; color:#0f172a; border-radius:12px;
}
.sheet-link .ico svg { display:block; }
.sheet-link .txt { flex:1; }
.sheet-link:is(:hover,:focus-visible){ background:#f1f5ff; }
.sheet-link.is-active{ background:#3366ff; color:#fff; font-weight:600; }
.sheet-link.is-active .ico svg path{ fill:#fff; }

/* Overlay + sheet restano come nel tuo CSS */


/* Mobile touch improvements */
@media (max-width: 768px) {
  .nav-link, .btn-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .burger {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Better mobile spacing */
  .nav-inner {
    padding: 8px 12px;
  }
  
  .nav-center {
    gap: 8px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
}
