@font-face {
  font-family: 'Playfull Rocket';
  src: url('/fonts/playfull_rocket.ttf') format('truetype');
  font-display: swap;
}

  /* Overlay per migliorare la leggibilità */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 500%;
    height: 500%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
    pointer-events: none;
  }
  body {
    font-family: system-ui, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
    background: url('../images/background.png') center center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 0;
    position: relative;
  }
h1, .rainbow-text {
  font-family: 'Playfull Rocket', system-ui, Arial, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #4B6F44;
  text-align: center;
  margin-bottom: 1rem;
}
.subtitle {
  font-family: 'Playfull Rocket', system-ui, Arial, sans-serif;
  color: #4B6F44;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}
.rainbow-text2 {
  background: linear-gradient(45deg, #1e90ff, #8a2be2, #ff1493, #ff0000);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 3s ease-in-out infinite;
}
@keyframes rainbow-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.header {
  position: relative;
  z-index: 10;
  padding: 1rem 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.btn-back, .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #388e3c, #4caf50);
  color: white;
  text-decoration: none;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
}
.btn-back:hover, .btn-home:hover {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 142, 60, 0.4);
}
.btn-back i, .btn-home i {
  font-size: 1.1rem;
}
.main-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: bold;
  margin: 1rem 0 2rem 0;
  color: #333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
  position: relative;
  z-index: 10;
  font-family: 'Playfull Rocket', system-ui, Arial, sans-serif;
}
.content-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile: riduci dimensione titoli e rainbow-text per leggibilità */
@media (max-width: 768px) {
  h1, .rainbow-text { font-size: 1.4rem; }
  .main-title { font-size: 2rem; }
}
