/* ═══════════════════════════════════════════════
   dattilab — nav condivisa
   desktop: link orizzontali fissi
   mobile:  hamburger + drawer + overlay avviso
   ═══════════════════════════════════════════════ */

/* ── LOGO — globale (nav + footer) ───────────── */
.logo, a.logo {
  font-family: 'Share Tech Mono', monospace;
  color: #00FF41;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.logo span, a.logo span { color: #4A7A4A; }

/* ── NAV DESKTOP ─────────────────────────────── */
#dattilab-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid rgba(0,255,65,0.12);
  background: rgba(8,12,8,0.85);
  backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
}

#dattilab-nav .nav-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.3rem;
  color: #00FF41;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px #00FF41;
  text-decoration: none;
}
#dattilab-nav .nav-logo span { color: #4A7A4A; }

#dattilab-nav .nav-links {
  display: flex;
  gap: 0.25rem;
}
#dattilab-nav .nav-links a {
  color: #4A7A4A;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  padding: 0.35rem 0.75rem;
}
#dattilab-nav .nav-links a:hover {
  color: #00FF41;
  background: rgba(0,255,65,0.06);
  outline: 1px solid rgba(0,255,65,0.15);
}
#dattilab-nav .nav-links a.active {
  color: #00FF41;
  font-weight: 700;
}

/* ── NAV MOBILE ──────────────────────────────── */
#dattilab-nav-mobile {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgba(0,255,65,0.12);
  background: rgba(8,12,8,0.97);
  font-family: 'JetBrains Mono', monospace;
}
#dattilab-nav-mobile .nav-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #00FF41;
  letter-spacing: 0.05em;
  text-decoration: none;
}
#dattilab-nav-mobile .nav-logo span { color: #4A7A4A; }

#dattilab-burger {
  background: none;
  border: 1px solid rgba(0,255,65,0.2);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
#dattilab-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #00FF41;
}

/* ── DRAWER ──────────────────────────────────── */
#dattilab-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8,12,8,0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
#dattilab-drawer.open {
  visibility: visible;
  opacity: 1;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,255,65,0.12);
}
.drawer-header .nav-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #00FF41;
  text-decoration: none;
}
.drawer-header .nav-logo span { color: #4A7A4A; }

#dattilab-drawer-close {
  background: none;
  border: 1px solid rgba(0,255,65,0.2);
  color: #4A7A4A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer-links {
  display: flex;
  flex-direction: column;
}
.drawer-links a {
  color: #4A7A4A;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,255,65,0.08);
  transition: color 0.2s;
}
.drawer-links a:last-child { border-bottom: none; }
.drawer-links a:hover,
.drawer-links a.active { color: #00FF41; }

/* ── OVERLAY AVVISO MOBILE ───────────────────── */
#dattilab-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(8,12,8,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: 'JetBrains Mono', monospace;
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#dattilab-mobile-overlay.visible {
  visibility: visible;
  opacity: 1;
}
.overlay-card {
  border: 1px solid rgba(0,255,65,0.25);
  background: #0D120D;
  padding: 2rem 1.75rem;
  max-width: 320px;
  width: 100%;
  text-align: center;
}
.overlay-tag {
  font-size: 0.58rem;
  color: #4A7A4A;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.overlay-tag::before { content: '// '; color: #00FF41; opacity: 0.5; }

.overlay-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.overlay-title em {
  font-style: normal;
  color: #00FF41;
}
.overlay-body {
  font-size: 0.72rem;
  color: #4A7A4A;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.overlay-url {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #00FF41;
  margin-bottom: 1.75rem;
  display: block;
}
#dattilab-overlay-close {
  background: none;
  border: 1px solid rgba(0,255,65,0.3);
  color: #4A7A4A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s, color 0.2s;
}
#dattilab-overlay-close:hover {
  border-color: #00FF41;
  color: #00FF41;
}

/* ── MEDIA QUERY SWITCH ──────────────────────── */
@media (max-width: 768px) {
  #dattilab-nav        { display: none !important; }
  #dattilab-nav-mobile { display: flex !important; }
}
