
  :root {
    --bg-primary: #b5b5b5;
    --text-primary: #0000ff;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    display: flex;
    flex-direction: row;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
  }

  a {
    color: var(--text-primary);
    text-decoration: underline;
    cursor: crosshair;
  }

  button,
  .about-button,
  .close-about,
  .close,
  .gallery img,
  .gallery video {
    cursor: crosshair;
  }

  header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    padding: 20px 30px;
    z-index: 100;
    border-bottom: 1px solid var(--text-primary);
  }

  header.site-header .header-title {
    font-size: 1.2rem;
    font-weight: 500;
  }

  header.site-header .header-title a {
    color: var(--text-primary);
    text-decoration: none;
  }

  header.site-header .header-title a:hover {
    text-decoration: underline;
  }

  .history-column {
    width: 25%;
    padding: 40px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid var(--text-primary);
  }

  .history-column p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .history-column p.emoji {
    font-size: 2rem;
    line-height: 1.2;
  }

  .main-column {
    flex: 1;
    padding: 120px 3vw 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .project-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
  }

  .project-description {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 30px;
    width: 100%;
  }

  .intro-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
  }

  .intro-col-left {
    flex: 1.2;
    min-width: 240px;
    max-width: 400px;
  }

  .intro-col-right {
    flex: 2.8;
    min-width: 500px;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
  }

  .gallery img,
  .gallery video {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 255, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 255, 0.5);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%;
    height: auto;
  }

  .gallery img:hover,
  .gallery video:hover {
    border-color: rgba(0, 0, 255, 1);
    box-shadow: 0 0 50px 15px rgba(0, 0, 255, 0.6);
  }

  .gallery .horizontal {
    width: 100%;
  }

  .gallery .vertical,
  .gallery .half-horizontal {
    width: calc(50% - 15px);
  }

  .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.7);
    justify-content: center;
    align-items: center;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 255, 0.5);
  }

  .lightbox .close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
  }

  .lightbox .close:hover {
    color: #b5b5b5;
  }

  .about-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 255, 0.4);
    display: none;
    z-index: 200;
  }

  .about-button:hover {
    box-shadow: 0 0 20px 6px rgba(0, 0, 255, 0.5);
  }

  .about-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.2);
  }

  .about-content {
    background: var(--bg-primary);
    margin: 5% auto;
    padding: 20px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 255, 0.3);
  }

  @media (max-width: 768px) {
    body {
      flex-direction: column;
    }

    .history-column {
      display: none;
    }

    .about-button {
      display: block;
    }

    .main-column {
      width: 100%;
      padding: 100px 20px 40px;
    }

    .gallery .vertical,
    .gallery .half-horizontal {
      width: 100%;
    }

    .intro-columns {
      flex-direction: column;
    }

    .intro-col-left,
    .intro-col-right {
      max-width: 100%;
      min-width: auto;
    }

    .intro-col-right p {
      word-wrap: break-word;
    }

    .about-modal {
      background: var(--bg-primary);
      z-index: 9999;
    }

    .about-content {
      width: 100% !important;
      max-width: 100% !important;
      height: 100%;
      max-height: none !important;
      border-radius: 0 !important;
      border: none !important;
      padding: 30px 20px 20px !important;
      box-shadow: none !important;
      overflow-y: auto;
      padding-top: 80px !important;
    }

    .about-content .header-title {
      margin-top: 0 !important;
      padding-left: 30px;
      text-align: left !important;
    }

    .about-content .about-back-button {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 20px 30px;
      background: var(--bg-primary);
      border-bottom: 1px solid var(--text-primary);
      z-index: 10000;
    }

    .about-content .about-back-button a {
      font-size: 1.2rem;
      font-weight: 500;
      font-family: 'Inter', sans-serif;
      color: var(--text-primary);
      text-decoration: none;
    }

    .about-content .about-back-button a:hover {
      text-decoration: underline;
    }
  }

  /* 🌗 Toggle switch slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: crosshair;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #0000ff;
  transition: .4s;
  border-radius: 30px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
  background-color: #b5b5b5;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #00ff00;
}
input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #000000;
}

/* 🌙 Modalità verde attiva */
body.cyberspace-mode {
  --bg-primary: #000000;
  --text-primary: #00ff00;
}

body.cyberspace-mode a {
  color: var(--text-primary);
}

body.cyberspace-mode .gallery img,
body.cyberspace-mode .gallery video {
  border-color: rgba(0, 255, 0, 0.8);
  box-shadow: 0 12px 30px rgba(0, 255, 0, 0.4);
}

body.cyberspace-mode .gallery img:hover,
body.cyberspace-mode .gallery video:hover {
  border-color: rgba(0, 255, 0, 1);
  box-shadow: 0 0 50px 15px rgba(0, 255, 0, 0.6);
}

body.cyberspace-mode .about-button {
  box-shadow: 0 6px 16px rgba(0, 255, 0, 0.4);
}
body.cyberspace-mode .about-button:hover {
  box-shadow: 0 0 20px 6px rgba(0, 255, 0, 0.5);
}

/* Popup centrale */
#mode-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  color: #00ff00;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  text-align: center; /* ✅ centratura testo */
  z-index: 100000;
  border: 2px solid #00ff00;
  border-radius: 14px;
  display: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#mode-popup.active {
  display: block;
  opacity: 1;
}

/* 🟢 Modalità Cyberspace Green – Lightbox */
body.cyberspace-mode .lightbox {
  background: rgba(0, 0, 0, 0.9) !important; /* sfondo nero trasparente */
}

body.cyberspace-mode .lightbox .close {
  color: #00ff00 !important; /* X verde fluo */
}

body.cyberspace-mode .lightbox .close:hover {
  color: #00ff00 !important;
}

body.cyberspace-mode .lightbox img {
  box-shadow: 0 12px 30px rgba(0, 255, 0, 0.4) !important;
}

