
      :root {
        --menu-gradient-start: #0077ff;   
        --menu-gradient-end:   #0099ff;   
        --overlay-bg:          rgba(0,0,0,0.5);
        --box-bg:              #fff;     
        --text-color:          #333;     
        --primary-color:       #0077ff;  
        --primary-hover:       #005bb5;  
        --border-radius:       8px;
        --primary-color:       #0077ff;
        --primary-hover:       #005bb5;
        --secondary-color:     #002244;
        --accent-color:        #ff0000;
      }

      * {
        margin: 0; 
        padding: 0;
        box-sizing: border-box;
      }
      body {
        font-family: Arial, sans-serif;
        background: #f2f5f9;
        color: var(--text-color);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
      }

      /* SPAZIO DI RIEMPIMENTO SOTTO L'HEADER */
      .main-content {
        flex: 1;
        margin-top: 70px; /* per evitare sovrapposizione con l'header fisso */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }

      /* BOX DI LOGIN */
      .login-box {
        background: #fff;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
        width: 100%;
        max-width: 400px;
      }
      .login-box h2 {
        margin-bottom: 20px;
        color: #333;
      }
      .error-message {
        color: #721c24;
        background-color: #f8d7da;
        padding: 10px;
        border: 1px solid #f5c6cb;
        border-radius: 8px;
        margin-bottom: 10px;
        font-weight: bold;
      }
      .login-box input {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1em;
      }
      .login-box button {
        width: 100%;
        padding: 12px;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 1em;
        cursor: pointer;
        transition: background 0.3s;
      }
      .login-box button:hover {
        background: var(--primary-hover);
      }

      /* BARRA FISSA IN BASSO (OPZIONALE) */
      .bottom-privacy-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #333;
        color: #fff;
        font-size: 0.9em;
        padding: 10px 5%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
      }
      .bottom-privacy-bar a {
        color: #fff;
        text-decoration: underline;
        margin: 0 8px;
        transition: color 0.3s;
      }
      .bottom-privacy-bar a:hover {
        color: var(--primary-color);
      }

      /* PULSANTE PRIVACY & POLICY + MODAL BOX */
      .policy-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;

        background-color: var(--secondary-color);
        color: #fff;
        font-size: 14px;
        padding: 12px 18px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

        transition: background-color 0.3s ease, transform 0.3s ease;
      }
      .policy-btn:hover {
        background-color: #005bb5;
        transform: translateY(-3px);
      }

      /* Overlay scuro */
      .policy-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;

        background-color: rgba(0, 0, 0, 0.6);
        display: none; 
        opacity: 0;
        transition: opacity 0.4s ease;
      }

      /* Box con l’informativa */
      .policy-box {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 90%;
        max-width: 700px;
        max-height: 80vh;

        background-color: #fff;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        padding: 20px;
        z-index: 10001;

        display: none; 
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
      }

      .policy-box h3, .policy-box h4 {
        margin-bottom: 0.6em;
        color: var(--text-color);
      }

      .policy-box p, .policy-box ul {
        font-size: 0.95em;
        color: var(--main-text-color);
        margin-bottom: 1em;
        line-height: 1.4;
      }

      /* Effetti “apertura” della policy */
      .policy-overlay.show {
        display: block; 
        opacity: 1;     
      }
      .policy-box.show {
        display: block; 
        opacity: 1;     
        transform: translate(-50%, -50%) scale(1);
      }

      .policy-box .close-btn {
        display: inline-block;
        float: right;
        margin-top: 10px;

        background-color: var(--secondary-color);
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;

        font-size: 0.9em;
        transition: background-color 0.3s ease, transform 0.3s ease;
      }
      .policy-box .close-btn:hover {
        background-color: #005bb5;
        transform: scale(1.05);
      }

      /* Messaggio schermo orizzontale */
      #rotate-message {
        display: none;
      }

      /* MEDIA QUERIES (Responsive) 
         ============================================= */

      /* Impedire agli utenti di visualizzare il sito su smart-phone in landscape */
      @media screen and (orientation: landscape) and (max-width: 901px) {
        header,
        .container,
        footer,
        .policy-btn {
          display: none !important;
        }
        #rotate-message {
          display: flex;
          position: fixed;
          top: 0;
          left: 0;
          width: 100vw;
          height: 100vh;
          background: #f5f5f5;
          color: #333;
          z-index: 999999;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          text-align: center;
          padding: 20px;
        }
        #rotate-message h2 {
          font-size: 1.5em;
          margin-bottom: 10px;
        }
        #rotate-message p {
          font-size: 1em;
          line-height: 1.4;
          max-width: 400px;
        }
      }

      /* ****************************************************
         Da qui in poi tutte le regole personalizzate
         per smartphone e tablet (height≥ etc.) 
         NON MODIFICATE i font-size della .dropbtn 
         in modo diverso dai link standard!
      *******************************************************/

      @media screen and (max-width: 400px) {
        .menu-toggle {
          display: block;
        }
        nav.menu-mobile {
          position: fixed;
          top: 0;
          right: 0;
          width: 60%;
          height: 100vh;
          padding: 60px 20px;
          flex-direction: column;
          background-color: #fff;
          color: #333;
          box-shadow: -2px 0 8px rgba(0,0,0,0.3);
          transform: translateX(100%);
          transition: transform 0.3s ease-in-out;
          z-index: 9999;
          align-items: flex-end;
          justify-content: flex-start;
          text-align: right;
        }
        nav.menu-mobile.open {
          transform: translateX(0);
        }
        nav.menu-mobile a {
          font-size: 1.2em;
          color: #333 !important;
        }
        /* MODIFICA: uniformiamo .dropbtn a nav.menu-mobile a */
        .dropdown .dropbtn {
          font-size: 1.2em;
          color: #333 !important;
        }

        .dropdown {
          position: static;
          width: 100%;
          text-align: right;
        }
        .dropdown-content {
          position: static;
          display: none;
          text-align: right;
          background-color: #fff;
          border: none;
          box-shadow: none;
          margin-top: 5px;
        }
        .dropdown-content a {
          color: #333;
          display: block;
          padding: 8px 0;
        }
        .dropdown.open .dropdown-content {
          display: block;
        }
      }

      @media screen and (min-width: 403px) and (max-width: 434px) {
        .menu-toggle {
          display: block;
        }
        nav.menu-mobile a {
          font-size: 1.2em;
          color: #333 !important;
        }
        .dropdown .dropbtn {
          font-size: 1.2em;
          color: #333 !important;
        }

        .dropdown {
          position: static;
          width: 100%;
          text-align: right;
        }
        .dropdown-content {
          position: static;
          display: none;
          text-align: right;
          background-color: #fff;
          border: none;
          box-shadow: none;
          margin-top: 5px;
        }
        .dropdown-content a {
          color: #333;
          display: block;
          padding: 8px 0;
        }
        .dropdown.open .dropdown-content {
          display: block;
        }
      }

      @media screen and (min-width: 435px) and (max-width: 747px) {
        nav.menu-mobile a {
          font-size: 1.2em;
          color: #333 !important;
        }
        .dropdown .dropbtn {
          font-size: 1.2em;
          color: #333 !important;
        }
      }
      @media screen and (min-width: 748px) and (max-width: 900px) {
        nav.menu-mobile a {
          font-size: 1.8em;
          color: #333 !important;
        }
        .dropdown .dropbtn {
          font-size: 1.8em;
          color: #333 !important;
        }
      }
