/* CSS originale del widget Elementor OMU: header */

@font-face {
  font-family: "Bugrino";
  src: url("../fonts/Bugrino-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* 1. DEFINIZIONE ALTEZZA DINAMICA */
:root {
  --omu-header-h: clamp(70px, 9.8cqw, 120px);
}

.omu-menu-block {
  --rust: #b95b00;
  width: 100%;
  container-type: inline-size;
  background: #fff;
  font-family: "Bugrino", Arial, sans-serif;
}

/* 2. HEADER FISSATO */
.omu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--omu-header-h);
  padding: 0 4cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 3. DISTANZIATORE - Questo risolve l'effetto "pezzo mancante" */
.omu-header-spacer {
  height: var(--omu-header-h);
  width: 100%;
  display: block;
}

/* Gestione barra WordPress per amministratori */
.admin-bar .omu-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .omu-header { top: 46px; }
}

.omu-logo img {
  width: clamp(90px, 10.8cqw, 160px);
  height: auto;
  display: block;
}

.omu-menu {
  width: clamp(26px, 3cqw, 42px);
  height: clamp(18px, 2cqw, 28px);
  border: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10002;
}

.omu-menu span {
  width: 100%;
  height: 2px;
  background: var(--rust);
  display: block;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.omu-menu.active span:nth-child(1) { transform: translateY(clamp(8px, 0.9cqw, 12px)) rotate(45deg); }
.omu-menu.active span:nth-child(2) { opacity: 0; }
.omu-menu.active span:nth-child(3) { transform: translateY(clamp(-8px, -0.9cqw, -12px)) rotate(-45deg); }

.omu-nav {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 12vh 6cqw 8vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.77,0,.18,1);
}

.omu-nav.open { transform: translateY(0); }

.omu-nav-main {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(5px, 1cqw, 20px);
}

.omu-nav-main a {
  display: block;
  font-size: clamp(34px, 6.5cqw, 90px);
  line-height: 1.05;
  color: #000;
  text-decoration: none;
}

.omu-nav-side {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  gap: clamp(20px, 3cqw, 40px);
  padding-bottom: 2vh;
}

.omu-nav-side a {
  font-size: clamp(14px, 1.8cqw, 20px);
  font-family: Arial, sans-serif;
  color: #000;
  text-decoration: none;
}

@media(max-width:767px) {
  .omu-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
  }
  .omu-nav-main a { font-size: 11cqw; }
  .omu-nav-side { margin-top: 40px; justify-content: flex-start; flex-wrap: wrap; }
}
