    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html, body {
      height: 100%;
      overflow: hidden;
      background-color: #0e0e0e;
      font-family: "Outfit", sans-serif;
      color: white;
    }
    body {
      cursor: none;
    }
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }
    @media (pointer: coarse) {
      body {
        cursor: default;
      }
      #customCursor {
        display: none;
      }
    }
    #fixedBackground {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 1vw;
      font-weight: 900;
      color: #f8f8f8;
      pointer-events: none;
      user-select: none;
      white-space: nowrap;
      z-index: 1;
      letter-spacing: 0.5em;
      text-transform: uppercase;
      animation: float 8s ease-in-out infinite alternate;
    }
    @keyframes float {
      0% {
        transform: translate(-50%, -50%) translateY(-10px);
      }
      100% {
        transform: translate(-50%, -50%) translateY(10px);
      }
    }

.large {
  font-size: 2em;  /* più grande */
  font-weight: bold;
}

.small {
  font-size: 1em;  /* più piccolo */
  margin-left: 5px; /* un po' di spazio tra i due */
}
.corner-text {
  position: absolute;
  padding: 8px 12px;
  background-color: transparent;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 1000;
  pointer-events: none;
  text-transform: uppercase;
  font-family: "Outfit", sans-serif;
  letter-spacing: 1px;
}
.corner-text {
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.corner-text.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.top-left {
  position: fixed;  /* per fissare l'elemento rispetto alla finestra */
  top: 0;           /* bordo superiore */
  left: 10px;       /* distanza dal bordo sinistro */
  font-size: 150px;
}
.top-left-90 {
  position: fixed;       /* fisso rispetto alla finestra */
  top: 75%;             /* posizione verticale centrale, poi aggiusti */
  left: 4%;              /* agganciato al bordo sinistro */
  font-size: 150px;
  transform: rotate(270deg);
  transform-origin: top left;
  /* Per centrare verticalmente dopo rotazione */
  /* sposta leggermente con translate */
  transform: rotate(270deg) translateY(-50%);
}



.top-right {
  top: 10px;
  right: 10px;
    text-align: right;
  padding-right: 20px;
  padding-top: 30px;
  font-size: 40px;
}

.bottom-left {
  position: fixed; /* o absolute, se vuoi posizionamento fisso */
  bottom: 10px;
  left: 10px;
  text-align: left;
  font-size: 20px;
  padding-left: 20px;
  padding-bottom: 40px;
}

.bottom-right {
  bottom: 10px;
  right: 10px;
  text-align: right;
  font-size: 20px;
  padding-bottom: 40px;
  padding-right: 20px;
}

@media (max-width: 1200px) {
  .top-left,
  .top-left-90 {
    font-size: 100px; /* riduci dimensione */
  }
}

@media (max-width: 900px) {
  .top-left {
    font-size: 70px;
    left: 5px;
    top: 5px;
  }
  .top-left-90 {
    font-size: 70px;
    top: 70%;
    left: 2%;
  }
}

@media (max-width: 600px) {
  /* Nascondi uno dei due per evitare sovrapposizione */
  .top-left-90 {
    display: none;
  }
  .top-left {
    font-size: 50px;
    left: 5px;
    top: 5px;
  }
}

.corner-text {
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.corner-text.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

    .scroll-container {
      height: 100vh;
      width: 100vw;
      overflow: hidden;
      position: relative;
      z-index: 10;
    }
    .scroll-wrapper {
      display: flex;
      height: 100vh;
      width: max-content;
      transition: transform 0.3s ease;
    }
.section {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: end;
  align-items: end;
  font-size: clamp(1.5rem, 3.5vw, 3.5rem);
  font-weight: 700;
  opacity: 0;
  transform: translateY(0px) scale(0.98);
  transition: opacity 0.9s ease-out, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
  white-space: normal;
  flex-shrink: 0;
  background-color: transparent;
  will-change: opacity, transform;
  position: relative;
  padding: 2rem;
  box-sizing: border-box;
}
    .section.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    #customCursor {
      width: 20px;
      height: 20px;
      border: 2px solid white;
      border-radius: 50%;
      position: fixed;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: transform 0.1s ease, background-color 0.3s ease;
    }
    body:hover #customCursor {
      background-color: rgba(255, 255, 255, 0.1);
    }
    #loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #0e0e0e;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      color: white;
      font-size: 2rem;
      font-weight: bold;
      opacity: 1;
      transition: opacity 0.8s ease, transform 0.8s ease;
      transform: scale(1);
    }
    #loader.fade-out {
      opacity: 0;
      transform: scale(0.95);
    }
    #imageBar {
      position: fixed;
      top: 50px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 50px;
      z-index: 1000;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.5s ease;
    }
    #imageBar.visible {
      opacity: 1;
      pointer-events: auto;
    }
    #imageBar img {
      width: 10%;
      height: auto;
      opacity: 0;
      transform: translateX(100px);
      animation: slideInFromRight 0.8s forwards;
      animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
      border-radius: 10px;
      z-index: 1;
      position: relative;
    }
    #imageBar img:nth-child(1) {
      animation-delay: 0.1s;
    }
    #imageBar img:nth-child(2) {
      animation-delay: 0.25s;
    }
    #imageBar img:nth-child(3) {
      animation-delay: 0.4s;
    }
    #imageBar img:nth-child(4) {
      animation-delay: 0.55s;
    }
    #imageBar img:nth-child(5) {
      animation-delay: 0.7s;
    }
    #imageBar img:nth-child(6) {
      animation-delay: 0.85s;
    }
    @keyframes slideInFromRight {
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }




    .font-outfit {
      font-family: "Outfit", sans-serif;
    }
    .font-anton {
      font-family: "Anton", sans-serif;
    }
    .font-orbitron {
      font-family: "Orbitron", sans-serif;
    }
    .font-rubik {
      font-family: "Rubik Mono One", sans-serif;
    }

.left-bar-persona {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 166px;
    background-color: #5553ff;
    display: flex
;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
}

.left-bar-persona .bar-text {
    font-family: "arial", sans-serif;
    font-size: 90px;
    font-weight: 800;
    color: #cdff1e;
    letter-spacing: 4px;
    text-align: center;
    opacity: 0.7;
    transform: rotate(90deg);
    transform-origin: center center;
    display: inline-block;
    white-space: nowrap;
}

    /* --- Integrazione MODEL-VIEWER 3D --- */

    #modelViewerContainer {
      position: fixed;
      top: 65%;
      left: 20%;
      transform: translate(-50%, -50%);
      width: 500px;
      height: 500px;
      z-index: 999; /* sopra la maggior parte, sotto customCursor e loader */
      pointer-events: none; 
    }

    model-viewer {
      width: 100%;
      height: 100%;
      background: transparent;
      border: none;
      outline: none;
      cursor: grab;
      display: block;
    }
    model-viewer {
      position: fixed;
      bottom: 20px;
      width: 300px;
      height: 300px;
      background: transparent;
      cursor: grab;
      pointer-events: auto;

      animation: roll-move 6s ease-in-out infinite;
      transform-origin: center center;
    }
    model-viewer::part(interaction-prompt) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- Mobile adjustments (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Use native horizontal scrolling with scroll-snap on mobile for better UX */
  html, body {
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .scroll-container {
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    -ms-overflow-style: none; /* hide IE scrollbar */
  }

  /* hide scrollbar visually while keeping functionality */
  .scroll-container::-webkit-scrollbar { display: none; }

  .scroll-wrapper {
    display: flex;
    flex-direction: row;
    width: max-content;
    transition: none;
    transform: none !important;
  }

  .section {
    width: 100vw !important;
    height: 100vh;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(1.1rem, 6vw, 2rem);
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  /* Fixed background (BLNC.group) adjustments for mobile: smaller, centered-top */
  #fixedBackground {
    position: fixed;
    top: 6%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 7.5vw;
    letter-spacing: 0.18em;
    z-index: 5;
    animation: none; /* reduce motion on mobile */
    opacity: 0.9;
    pointer-events: none;
  }

  /* Hide/scale down corner texts to avoid overlap */
  .corner-text { display: none; }

  /* Hide left bar and model viewer on small screens */
  .left-bar-persona, #modelViewerContainer, model-viewer { display: none !important; }

  /* Images bar reposition to bottom and smaller */
  #imageBar { top: auto; bottom: 10px; gap: 12px; justify-content: center; padding: 0 8px; }
  #imageBar img { width: 48px; height: auto; opacity: 1; transform: none; animation: none; border-radius: 6px; }

  /* Hide custom cursor on touch devices */
  #customCursor { display: none !important; }

  /* Loader smaller text */
  #loader { font-size: 1.25rem; }

  /* Reduce left-bar text if it somehow remains visible */
  .left-bar-persona .bar-text { display: none; }
}

/* Extra small screen tweaks */
@media (max-width: 480px) {
  #fixedBackground {
    top: 4%;
    font-size: 10vw;
    letter-spacing: 0.12em;
  }

  .section {
    padding: 1rem;
    font-size: clamp(1rem, 6.5vw, 1.8rem);
    line-height: 1.25;
  }

  .top-left, .top-left-90, .top-right, .bottom-left, .bottom-right {
    display: none !important;
  }

  #imageBar {
    gap: 8px;
    padding-bottom: 6px;
  }
}

@media (max-width: 360px) {
  html, body {
    font-size: 14px;
  }
  #fixedBackground {
    font-size: 12vw;
  }
}

@keyframes roll-move {
  0% {
    left: 0;
    transform: rotateX(0deg);
  }
  25% {
    left: calc(50% - 100px);
    transform: rotateX(360deg);
  }
  50% {
    left: calc(100% - 200px);
    transform: rotateX(720deg);
  }
  75% {
    left: calc(50% - 100px);
    transform: rotateX(1080deg);
  }
  100% {
    left: 0;
    transform: rotateX(1440deg);
  }
}
model-viewer::part(interaction-prompt) {
  display: none !important;
}



/*CSS per mobile da fare porco i dio*/