* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  min-height: 100vh;
}

nav {
  padding: 20px 0;
  border-bottom: 2px solid #42b983;
  margin-bottom: 30px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #42b983;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
}

nav a:hover, nav a.router-link-active {
  color: #2c3e50;
}

main {
  min-height: 400px;
}

/* Stili Home */
.home {
  text-align: center;
  padding: 60px 20px;
}

.home h1 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 36px;
}

.home p {
  color: #666;
  margin-bottom: 40px;
  font-size: 20px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #42b983;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #35a372;
}

/* Stili API Section */
.api-section {
  margin: 40px 0;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.api-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
}

.api-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.btn-api {
  padding: 12px 24px;
  background-color: #42b983;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-api:hover:not(:disabled) {
  background-color: #35a372;
}

.btn-api:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #42b983;
  font-weight: bold;
}

.error-message {
  padding: 15px;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.json-display {
  margin-top: 30px;
  padding: 20px;
  background-color: #2c3e50;
  border-radius: 8px;
  color: #fff;
}

.json-display h3 {
  color: #42b983;
  margin-bottom: 15px;
  font-size: 18px;
}

.json-display pre {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #f8f9fa;
  margin: 0;
}

/* Stili Lista */
.lista h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 32px;
}

.elementi-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.elemento-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.elemento-item:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.elemento-content {
  flex: 1;
}

.elemento-content h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 22px;
}

.elemento-content p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.arrow {
  font-size: 28px;
  color: #42b983;
  font-weight: bold;
}

/* Stili Dettaglio */
.dettaglio-content {
  max-width: 800px;
  margin: 0 auto;
}

.btn-back {
  padding: 12px 24px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 30px;
  transition: background-color 0.3s;
}

.btn-back:hover {
  background-color: #5a6268;
}

.dettaglio h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 36px;
}

.info-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 35px;
}

.descrizione {
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #dee2e6;
}

.contenuto {
  margin-bottom: 30px;
}

.contenuto h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 26px;
}

.contenuto p {
  color: #495057;
  line-height: 1.8;
  font-size: 17px;
}

.meta {
  padding-top: 20px;
  border-top: 2px solid #dee2e6;
}

.id-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: #42b983;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.error {
  text-align: center;
  padding: 60px 20px;
  color: #dc3545;
}

.error p {
  font-size: 20px;
  margin-bottom: 30px;
}

