body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  color: #fff;
  background: linear-gradient(180deg, #6a0dad, #00008b, #000);
  background-size: 300% 300%;
  animation: bgShift 25s ease infinite;
}

.flash {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  animation: randomFlash 15s infinite;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
}
.site-nav a.active { text-decoration: underline; }

.container {
  width: 85vw;
  max-width: 850px;
  margin: 5rem auto 3rem;
  padding: 2.5rem;
  background-color: rgba(0,0,0,0.65);
  border-radius: 8px;
  text-align: justify;
}

.bio-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Animazioni */
@keyframes bgShift {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}
@keyframes randomFlash {
  0%, 97%, 100% { opacity: 0; }
  2% { opacity: 0.8; }
  4% { opacity: 0; }
  60% { opacity: 0.5; }
  62% { opacity: 0; }
}
