/* style.css - Variante Apple Style con modifiche per il titolo e la testata */

@import url('https://fonts.googleapis.com/css2?family=San+Francisco:wght@400;500;600&display=swap');

body {
  margin: 0;
  font-family: 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f7;
  color: #1c1c1e;
  line-height: 1.6;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

h1 {
  font-size: 3.2rem;
  font-weight: 700;  /* Grassetto per il nome della testata */
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1c1c1e;
  letter-spacing: 1px;
}

p {
  text-align: center;
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/*nav ul li a {
  color: #1c1c1e;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease-in-out;
}

/* nav ul li a:hover {
  border-bottom: 2px solid #0071e3;
  color: #0071e3;
  transform: translateY(-3px);
}*/

/* Navigation menu */
nav {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: #e0e0e0;
}
.article {
  background-color: #ffffff;
  padding: 3rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  margin-top: 3rem;
  font-weight: 400;
  transition: box-shadow 0.3s ease-in-out;
}

.article:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.article h2 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #1c1c1e;
  text-align: center;
  line-height: 1.4;
  text-transform: capitalize;  /* Solo la prima lettera di ogni parola maiuscola */
}

.article-meta {
  font-size: 1rem;
  color: #999999;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 400;
}

.article-meta .date {
  margin-right: 1rem;
}

.article-meta .author {
  font-weight: 600;
}

.article p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #333333;
  line-height: 1.8;
  text-align: justify;
}

.article img {
  width: 100%;
  border-radius: 16px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.article img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem; /* Ridotto il font-size per dispositivi mobili */
  }

  nav ul {
    flex-direction: column;
  }

  .article {
    padding: 2rem;
  }

  .article h2 {
    font-size: 2rem;
  }

  .article p {
    font-size: 1.1rem;
  }
}