@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Poppins:wght@700;800&family=Raleway:wght@600;700&family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(
    135deg,
    #5167c7 0%,
    #764ba2 25%,
    #9857ace1 50%,
    #1e5688 75%,
    #667eea 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-track::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(50px);
  animation: float 6s ease-in-out infinite;
}

.bg-track::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(40px);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -30px);
  }
  50% {
    transform: translate(0, -50px);
  }
  75% {
    transform: translate(-30px, -30px);
  }
}

/* HEADER */
.container-title {
  font-size: 42px;
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
  letter-spacing: -1px;
  width: 100%;
  height: 130px;
  background: rgba(50, 30, 90, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 0 10px 0 0;
}

#title {
  text-align: center;
  opacity: 0;
  transform: translateY(-30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

#title.show {
  opacity: 1;
  transform: translateY(0);
}

/* LAYOUT */
.layout {
  width: 100%;
  display: flex;
  height: calc(100vh - 130px);
}

/* NAVBAR */
.container-nav {
  border-radius: 0 12px 0 0;
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  width: 9%;
  background: rgba(50, 30, 90, 0.85);
}

.container-nav.show {
  opacity: 1;
  transform: translateX(0);
}

.container-nav ul {
  list-style: none;
  padding: 20px;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.container-nav li {
  font-size: 15px;
  font-weight: 600;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

/* LINK NAVBAR */
.container-nav a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: #d1d1d1;
  background-color: transparent;
  border-radius: 18px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

/* HOVER */
.container-nav a:hover {
  background-color: #222;
  color: #ffffff;
  transform: translateX(6px);
}

/* LINK ATTIVO (opzionale) */
.container-nav a.active {
  background-color: #000;
  color: #ffffff;
  font-weight: bold;
}

#title a.active {
  background-color: black;
  color: white;
  font-weight: bold;
}

.container-title a {
  text-decoration: none;
  color: #222;
}

.container-title a:visited {
  color: #d1d1d1;
}

/* CONTENUTO */
.content {
  flex: 1;
  padding: 30px;
}