/* ============================================================
   MENU REDESIGN – CALABRIA TOUR
   Drop-in replacement: sostituisce solo i selettori del menu.
   Non tocca colori del body, header, o resto del sito.
   ============================================================ */

/* --- VARIABILI (modifica solo qui se vuoi cambiare colori) --- */
:root {
  --m-bg:       #0a417d;          /* sfondo overlay menu        */
  --m-bg2:      #1a2535;          /* sfondo card                */
  --m-red:      #ffffff;          /* colore accento / rosso      */
  --m-text:     #f5f0eb;          /* testo principale            */
  --m-muted:    rgba(255,255,255,0.45); /* testo secondario      */
  --m-border:   rgba(255,255,255,0.07);
  --m-radius:   12px;
  --m-transition: 0.42s cubic-bezier(0.77, 0, 0.18, 1);
  --m-font:     'DM Sans', sans-serif;
}

/* ─────────────────────────────────────────
   HAMBURGER ICON  (.navjb)
   Stessa struttura HTML, solo aspetto
───────────────────────────────────────── */
.navjb {
  margin: 0;
  width: 40px;
  height: 40px;
  position: absolute;
  z-index: 110;
  top: 5px;
  right: 20px;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.35s cubic-bezier(.215,.61,.355,1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid #0963c5;
  backdrop-filter: blur(6px);
}

.navjb:hover {
  background: rgba(255,255,255,0.12);
}

/* Le 4 span diventano 3 linee pulite */
.navjb span {
  display: block;
  position: static !important; /* override del pos:absolute originale */
  background: #0963c5 !important;
  height: 2px;
  border-radius: 2px;
  top: auto !important;
  transition: transform 0.35s cubic-bezier(.215,.61,.355,1),
              opacity   0.25s,
              width     0.35s cubic-bezier(.215,.61,.355,1);
}
.navjb span:nth-child(1) { width: 22px; }
.navjb span:nth-child(2) { width: 16px; margin-right: 6px; } /* asimmetrica */
.navjb span:nth-child(3) { width: 22px; }
.navjb span:nth-child(4) { display: none; }   /* nascosta */
.navjb span:nth-child(5) { display: none; }   /* testo MENU nascosto */

/* Stato aperto — stesso selettore .open del sito originale */
.open .navjb {
  transform: rotate(0deg);
  background: var(--m-red);
  border-color: var(--m-red);
}
.open .navjb span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 22px;
}
.open .navjb span:nth-child(2) {
  opacity: 0; width: 0;
}
.open .navjb span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 22px;
}

/* ─────────────────────────────────────────
   OVERLAY PRINCIPALE  (#menuJblasaUno)
───────────────────────────────────────── */
#menuJblasaUno {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--m-bg);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 100px;
  z-index: 100;
  transition: left var(--m-transition);
  font-family: var(--m-font);
  /* Scrollbar sottile */
  scrollbar-width: thin;
  scrollbar-color: #2a3a50 transparent;
}

/* Rumore di sfondo sottile */
#menuJblasaUno::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: -1;
}

/* Separatore top interno */
#menuJblasaUno::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--m-border);
  margin: 0 20px;
}

/* ─────────────────────────────────────────
   SUB-PANEL (Eolie / Barca / Trekking)
───────────────────────────────────────── */
#menuOpenEolie,
#menuOpenBarca,
#menuOpenTrekking {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--m-bg);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  transition: left var(--m-transition);
  font-family: var(--m-font);
  padding-bottom: 80px;
  scrollbar-width: thin;
  scrollbar-color: #2a3a50 transparent;
}

/* ─────────────────────────────────────────
   GRIGLIA VOCI  (.menuJblasaUno)
───────────────────────────────────────── */
.menuJblasaUno {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px;
}

/* Prima voce occupa tutta la riga */
.menuJblasaUno .vociMenu:first-child {
  grid-column: 1 / -1;
}

/* ─────────────────────────────────────────
   CARD VOCE  (.vociMenu)
───────────────────────────────────────── */
.vociMenu {
  position: relative;
  border-radius: var(--m-radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  cursor: pointer;
}
.vociMenu:active {
  transform: scale(0.97);
}
.vociMenu:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.vociMenu a {
  display: block;
  text-decoration: none;
  color: var(--m-text);
}

/* Immagine */
.vociMenu img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.4s;
}
.vociMenu:hover img {
  transform: scale(1.05);
}

/* Label testo sopra l'immagine (gradient overlay) */
.vociMenu a > div:last-child {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 22px 8px 8px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

/* Voci senza immagine (Home, Chi siamo, ecc.) */
.vociMenu a > div:first-child:not(:has(img)) {
  padding: 14px 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--m-text);
}
.vociMenu a > div:last-child:not(.vociMenu a > div:first-child) {
  /* quando è l'unica div (testo puro) */
}

/* Indicatore "ha sotto-menu" */
.alberoMenu::after {
  content: '›';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 2.1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  transition: color 0.2s, right 0.2s;
}
.vociMenu:hover .alberoMenu::after {
  color: var(--m-red);
  right: 7px;
}

/* ─────────────────────────────────────────
   TITOLO SUB-PANEL  (.titleDesignMenu)
───────────────────────────────────────── */
.titleDesignMenu {
  margin-top: 0 !important;
  padding: 70px 20px 20px;
  text-align: left;
  color: var(--m-text);
  font-family: var(--m-font);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  border-bottom: 1px solid var(--m-border);
  margin-bottom: 0;
}
.titleDesignMenu::before {
  content: '←';
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--m-muted);
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────
   TORNA INDIETRO BUTTON
───────────────────────────────────────── */
#menuOpenEolie   > div:last-child,
#menuOpenBarca   > div:last-child,
#menuOpenTrekking > div:last-child {
  text-align: center;
  margin-top: 30px;
  padding-bottom: 60px;
}

#menuOpenEolie   > div:last-child span,
#menuOpenBarca   > div:last-child span,
#menuOpenTrekking > div:last-child span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #bc3535!important;
  border: 1px solid var(--m-border);
  padding: 10px 22px !important;
  border-radius: 50px !important;
  transition: background 0.2s, border-color 0.2s;
}
#menuOpenEolie   > div:last-child span:hover,
#menuOpenBarca   > div:last-child span:hover,
#menuOpenTrekking > div:last-child span:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.25);
}
#menuOpenEolie   > div:last-child span a,
#menuOpenBarca   > div:last-child span a,
#menuOpenTrekking > div:last-child span a {
  color: var(--m-text) !important;
  font-family: var(--m-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
#menuOpenEolie   > div:last-child span a::before,
#menuOpenBarca   > div:last-child span a::before,
#menuOpenTrekking > div:last-child span a::before {
  content: '← ';
}

/* ─────────────────────────────────────────
   LABEL GRUPPO (opzionale, se aggiungi
   un <p class="menu-section-label"> )
───────────────────────────────────────── */
.menu-section-label {
  font-family: var(--m-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--m-muted);
  padding: 18px 14px 6px;
  max-width: 500px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   DEMO ONLY: simula .open sul body
   (il tuo sito già gestisce questo)
───────────────────────────────────────── */
/* — FINE CSS — */