      /* --- 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;
      }


      html,
      body {
        font-family: 'STIX Two Text';
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;

      }

      :root {
        --bg-color: #f5f0dc;
        --blue-color: rgb(30, 82, 166);
        --yellow-color: #FFB700;
        --gray-color: #aaaaaa;
      }

      /* canvas p5 sotto tutto */
      canvas {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 0;
      }

      /*-----------------*/
      /*    YEAR SLIDER  */
      /*-----------------*/
      #year-slider {
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
      }


      #year-slider::-webkit-slider-track,
      #year-slider::-moz-range-track {
        background: #0a1e50;
        height: 3px;
        border-radius: 0;
      }

      #year-slider::-webkit-slider-thumb,
      #year-slider::-moz-range-thumb {
        -webkit-appearance: none;
        appearance: none;
        background: #0a1e50;
        height: 14px;
        width: 14px;
        border-radius: 0;
        border: 2px solid #0a1e50;
        box-shadow: none;
        cursor: pointer;
        margin-top: -5.5px;
      }

      /* timeline */
      #year-dots {
        transition: opacity 0.1s ease;
        position: relative;
      }

      #year-dots.blurred,
      #year-dots.visible {
        opacity: 1;
        background: transparent;
        pointer-events: auto;
      }

      /* Titolo e righe come in pagina dettaglio */
      .linea-parallela-top {
        height: 2px;
        background: var(--blue-color);
        width: 100%;
        margin: 2px 0px;
      }
      .linea-parallela-bottom {
        height: 2px;
        background: var(--blue-color);
        width: 100%;
        margin: -2px 0 2px 0;
        position: relative;
        top: -3px;
      }
      .navbar-bottom {
        text-align: center;
        padding: 2px 0;
      }
      .navbar-title {
        color: var(--blue-color);
        font-size: 40px;
        font-weight: bold;
        letter-spacing: 1px;
        font-style: italic;
        font-family: 'STIX Two Text', serif;
        margin: 0;
      }

      .navbar-date {
        font-size: 18px;
      }

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

      .help-toggle-btn {
        display: flex;
        /* permette all'icona di essere centrata */
        justify-content: center;
        /* centro orizzontale */
        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;
        /* Giallo del tema */
        color: #163264 !important;
        border: 2px solid #163264 !important;
      }

      /* Hover effect */
      #help-toggle:hover {
        transform: scale(1.1);
      }

      canvas {
        display: block;
        width: 100%;
        height: 100%;
      }

      #slider-container {
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        max-width: 600px;
        z-index: 100;
      }

      #tile-slider {
        width: 100%;
        height: 8px;
        border-radius: 5px;
        background: rgba(101, 67, 33, 0.3);
        outline: none;
        -webkit-appearance: none;
        appearance: none;
      }

      #tile-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgb(101, 67, 33);
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      }

      #tile-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgb(101, 67, 33);
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      }


      /* ---------- INTRO OVERVIEW: omino in alto a destra, al click si sposta a sinistra e la scritta compare a destra dell'omino ---------- */
      .intro-top-right {
        position: fixed;
        right: 24px;
        top: 130px;
        z-index: 500;
        pointer-events: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 0.4rem;
      }
      .intro-top-right .intro-omino-wrap {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .intro-top-right .intro-omino {
        width: 100px;
        height: auto;
        display: block;
      }
      /* Bottone "Clicca qui" in alto a destra, omino alla sua sinistra (come se lo indicasse) */
      .intro-top-right .intro-click-hint {
        flex-shrink: 0;
        font-family: 'STIX Two Text', serif;
        font-size: 17px;
        font-weight: bold;
        color: var(--blue-color);
        background-color: var(--bg-color);
        border: 2px solid var(--blue-color);
        border-radius: 8px;
        padding: 8px 14px;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(30, 82, 166, 0.2);
        animation: intro-hint-pulse 2s ease-in-out infinite;
        transition: opacity 0.3s ease, visibility 0.3s ease;
      }
      .intro-top-right.expanded .intro-click-hint {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        width: 0;
        min-width: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
      }
      @keyframes intro-hint-pulse {
        0%, 100% { box-shadow: 0 2px 6px rgba(30, 82, 166, 0.2); border-color: var(--blue-color); }
        50% { box-shadow: 0 2px 12px rgba(30, 82, 166, 0.4); border-color: var(--yellow-color); }
      }
      /* Scritta "seleziona un anno" + legenda sotto: nascosti inizialmente, compaiono al click */
      .intro-top-right .intro-text-wrap {
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.2s;
      }
      .intro-top-right.expanded .intro-text-wrap {
        max-width: 420px;
        opacity: 1;
      }
      .intro-top-right .intro-text {
        margin: 0;
        white-space: nowrap;
        color: var(--blue-color);
        font-size: 28px;
        font-weight: normal;
        text-transform: uppercase;
        font-family: 'STIX Two Text', serif;
        letter-spacing: 0.02em;
      }
      .intro-top-right .intro-legend {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 20px;
        color: var(--blue-color);
        font-family: 'STIX Two Text', serif;
      }
      .intro-top-right .intro-legend-item {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .intro-top-right .intro-legend-marker {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        flex-shrink: 0;
      }
      .intro-top-right .intro-text .letter {
        display: inline-block;
        opacity: 0;
        animation: intro-letter-in 0.25s ease forwards;
      }
      .intro-top-right .intro-text .letter.space {
        min-width: 0.25em;
      }
      @keyframes intro-letter-in {
        from {
          opacity: 0;
          transform: translateY(6px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* --- AGGIUNTA FIX CURSORE --- */

      /* 1. Rendi il body e i wrapper trasparenti ai click */
      body,
      html {
        pointer-events: none;
      }

      /* 2. Riabilita i click solo sugli elementi interattivi */
      #navbar,
      .navbar-wrapper,
      #footer,
      #help-toggle,
      .intro-top-right,
      .intro-top-right .intro-omino-wrap,
      input,
      button,
      a {
        pointer-events: auto;
      }

      /* 3. Il canvas deve essere cliccabile e SOPRA il resto */
      canvas {
        pointer-events: auto !important;
        z-index: 1 !important;
        /* Alziamo lo z-index per sicurezza */
      }

      /* ---------------------------- */