/* --- VARIABILI COLORI --- */
:root {
  --bg-color: #f5f0dc;
  --blue-color: #073789;
  --yellow-color: #FFB700;
  --gray-color: #aaaaaa;
}

/* --- FONT --- */
@font-face {
  font-family: 'STIX Two Text';
  src: url('font/STIX_Two_Text/static/STIXTwoText-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'STIX Two Text';
  src: url('font/STIX_Two_Text/static/STIXTwoText-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'STIX Two Text';
  src: url('font/STIX_Two_Text/static/STIXTwoText-SemiboldItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

/* -------------- */
/* --- NAVBAR --- */
/* -------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  z-index: 1000;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
}

/* Linea blu */
.linea-parallela-top {
  height: 2px;
  background: var(--blue-color);
  width: 100%;
  margin: 2px 0px;
  z-index: -100px;
}

.linea-parallela-bottom {
  height: 2px;
  background: var(--blue-color);
  width: 100%;
  margin: 2px 0px;
}

.navbar-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ------------------------- */
/*    RIGA ALTA: data + link */
/* ------------------------- */
.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Data (sinistra) */
.navbar-date {
  font-size: 16px;
  margin: 0;
  color: var(--blue-color);
  font-family: 'STIX Two Text', serif;
}

/* Link (destra) */
.navbar-right {
  display: flex;
  gap: 15px;
  align-items: right;
}

.nav-link {
  color: var(--blue-color);
  font-size: 16px;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.2s;
  font-family: 'STIX Two Text', serif;
  padding: 5px 5px;
  border-radius: 20px;
  background-color: transparent;
  border: 2px solid transparent;
}

/* Hover (PASSAGGIO DEL MOUSE) */
.nav-link:hover {
  opacity: 1;
  color: var(--blue-color);
  background-color: rgba(255, 183, 0, 0.7);
  border: 2px solid rgba(7, 55, 137, 0.7);
}

/* Pagina ATTIVA (SELEZIONATA) */
.nav-link.active {
  opacity: 1;
  color: var(--blue-color);
  background-color: var(--yellow-color);
  border: 2px solid var(--blue-color);
}

/* ------------------------- */
/*    RIGA CENTRALE: titolo  */
/* ------------------------- */
.navbar-bottom {
  text-align: center;
  padding: 2px 0;
}

.navbar-title {
  color: var(--blue-color);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  font-style: italic;
  font-family: 'STIX Two Text', serif;
  margin: 0;
}

.nav-spacer {
  height: 10px;
}

/* canvas p5 - solo se presente */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/*-----------------*/
/* HELP TOGGLE (dentro navbar) */
/*-----------------*/
.help-controls {
  height: 10px;
  width: auto;
  gap: 8px;
  margin-left: 40px;
}

.help-toggle-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary, #1E52A6);
  color: white;
  border: none;
  height: 20px;
  width: auto;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.help-toggle-btn:hover {
  background: var(--color-primary-hover, #1E52A6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 82, 166, 0.3);
}

.help-toggle-btn.active {
  background: var(--color-yellow, #FFB700);
  color: #1C2836;
}

.help-icon {
  font-size: 16px;
  font-weight: bold;
  align-self: center;
}

.help-status {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 40px;
  text-align: center;
}

.help-status.active {
  color: var(--color-yellow, #FFB700);
}

#help-toggle.active {
  background-color: #FFB700 !important;
  color: #163264 !important;
  border: 2px solid #163264 !important;
}

#help-toggle:hover {
  transform: scale(1.1);
}