/* Stile base */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  header {
    width: 100%;
    background: linear-gradient(90deg, #007bff, #00b4d8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    font-size: 2rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }
  
  /* Container delle card */
  .projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem;
    max-width: 1200px;
    width: 100%;
  }
  
  /* Card singola */
  .card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
  }
  
  .card-content {
    padding: 1rem 1.2rem;
  }
  
  .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
  }
  
  .changelog-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
  }

  /* === PAGINE CHANGELOG === */

.changelog-header {
    background: linear-gradient(90deg, #007bff, #00b4d8);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }
  
  .changelog-header h1 {
    margin: 0;
    font-size: 1.8rem;
  }
  
  .back-link {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
  }
  
  .back-link:hover {
    opacity: 1;
  }
  
  .changelog {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .version {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
  }
  
  .version:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .version h2 {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 1rem;
  }
  
  .version .date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
  }
  
  .log-section {
    margin-bottom: 1.2rem;
  }
  
  .log-section h3 {
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 1rem;
  }
  
  .log-section ul {
    margin: 0;
    padding-left: 1.2rem;
  }
  
  .log-section li {
    margin-bottom: 0.3rem;
  }

/* 2️⃣ Miglior layout responsive */
@media (max-width: 600px) {
  header {
    font-size: 1.6rem;
    padding: 1.5rem 0;
  }

  .projects {
    padding: 1.5rem;
    gap: 1.2rem;
    grid-template-columns: 1fr; /* una card per riga */
  }

  .card img {
    height: 180px; /* proporzione più adatta su schermi piccoli */
  }

  .card-content {
    padding: 0.8rem 1rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .changelog-header h1 {
    font-size: 1.4rem;
  }

  .version {
    padding: 1rem 1.2rem;
  }

  .version h2 {
    font-size: 1.1rem;
  }
}