* {
  font-family: 'Inter', sans-serif;
}

body {
  background: #ffffff;
  min-height: 100vh;
}

/* Card principale */
.glass-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem !important;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "🏃";
  position: absolute;
  font-size: 200px;
  opacity: 0.1;
  right: -30px;
  bottom: -50px;
  transform: rotate(-15deg);
}

/* Input moderni */
.modern-input {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
}

.modern-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pulsanti moderni */
.btn-modern {
  border-radius: 12px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-modern-danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  color: white;
}

.btn-modern-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
  color: white;
}

/* Tabella moderna */
.modern-table {
  background: white;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modern-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modern-table thead th {
  padding: 15px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
}

.modern-table tbody tr {
  transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
  background: linear-gradient(90deg, #f0f4ff 0%, #e8edff 100%);
}

.modern-table tbody td {
  padding: 12px 10px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

/* Badge valori */
.value-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
}

/* Alert moderno */
.alert-modern {
  background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
  border-left: 4px solid #f5576c;
  border-radius: 12px;
  padding: 1rem;
}

/* Blocco informativo */
.info-block {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid #667eea;
}

/* Checkbox moderno */
.modern-check {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.modern-check:hover {
  background: #e9ecef;
}

/* Sezione link utili */
.links-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.links-section h3 {
  color: #667eea;
  font-weight: 700;
}

.links-section a {
  color: #764ba2;
  text-decoration: none;
  transition: all 0.3s ease;
}

.links-section a:hover {
  color: #667eea;
  padding-left: 5px;
}

/* Footer migliorato */
.footer-custom {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  margin-top: 3rem;
  color: white;
}

/* Animazioni */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

/* ============================================ */
/* RESPONSIVE DESIGN - MOBILE FIRST */
/* ============================================ */

@media (max-width: 768px) {
  /* Card padding ridotto */
  .glass-card {
    padding: 1rem !important;
  }
  
  .glass-card:hover {
    transform: none;
  }
  
  /* Hero section ridotta */
  .hero-section {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  /* Font size generale */
  body {
    font-size: 14px;
  }
  
  .form-label {
    font-size: 0.7rem;
  }
  
  /* Badge più piccolo */
  .value-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  
  /* Pulsanti full-width su mobile */
  .btn-modern {
    padding: 10px 15px;
    font-size: 0.75rem;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .mt-4.text-center .btn-modern {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  
  /* Tabella orizzontale e font ridotto */
  .modern-table {
    font-size: 0.7rem;
  }
  
  .modern-table thead th {
    padding: 10px 5px;
    font-size: 0.65rem;
  }
  
  .modern-table tbody td {
    padding: 8px 5px;
    font-size: 0.7rem;
  }
  
  .modern-table tbody tr:hover {
    transform: none;
  }
  
  /* Checkbox più compatto */
  .modern-check {
    padding: 8px;
    margin-top: 5px;
  }
  
  .modern-check .form-check-label {
    font-size: 0.8rem;
  }
  
  .modern-check small {
    font-size: 0.65rem;
  }
  
  /* Link section padding ridotto */
  .links-section {
    padding: 1rem;
  }
  
  .links-section h3 {
    font-size: 1.2rem;
  }
  
  .links-section li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  /* Footer padding ridotto */
  .footer-custom {
    padding: 1.5rem;
    text-align: center;
  }
  
  .footer-custom .col-md-6:last-child {
    margin-top: 0.5rem;
    text-align: center !important;
  }
  
  /* Spaziature generali */
  .mt-4 {
    margin-top: 1rem !important;
  }
  
  .mb-3 {
    margin-bottom: 0.75rem !important;
  }
  
  .p-4 {
    padding: 1rem !important;
  }
  
  /* Hero icona più piccola */
  .hero-section::before {
    font-size: 120px;
    right: -20px;
    bottom: -30px;
  }
  
  /* Alert e info block */
  .alert-modern,
  .info-block {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Griglie più compatte */
  .g-3 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0.5rem;
  }
  
  .row > [class*="col-"] {
    margin-bottom: 0.5rem;
  }
}

/* Tablet (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
  .glass-card {
    padding: 1.5rem !important;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .btn-modern {
    padding: 8px 15px;
    font-size: 0.75rem;
  }
  
  .modern-table thead th,
  .modern-table tbody td {
    font-size: 0.75rem;
    padding: 10px 6px;
  }
}

/* Desktop grandi (1200px+) */
@media (min-width: 1200px) {
  .glass-card {
    padding: 2.5rem !important;
  }
  
  .hero-section {
    padding: 2.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}