/* Reset e Stili di Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Stili del corpo con gradiente e font moderno */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* Contenitore principale */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header principale */
.header {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  background: #f8fafc;
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Link di ritorno per le pagine dei quiz */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: white;
}

/* Media Queries per responsività */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .container {
    border-radius: 0;
    min-height: 100vh;
  }

  .header {
    padding: 40px 20px;
  }

  .header h1 {
    font-size: 2.5rem;
  }
  
  .back-link {
    top: 15px;
    left: 15px;
  }

  .footer {
    padding: 20px;
  }
}