.container-category h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.container-category p {
  text-align: center;
  font-style: italic;
  color: #666;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-card {
  display: flow;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  padding: 1rem;
  transition: box-shadow 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-card img.article-thumb {
  width: 200px;
  border-radius: 6px;
  object-fit: cover;
}

.article-content h3 {
  margin: 0 0 0.3rem;
  color: #03b0cc;
  text-align: center;
}

.article-content a {
  color: #03b0cc;
  font-weight: bold;
  text-decoration: none;
}

.article-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.search-form {
  max-width: 600px;
  margin: 1.5rem auto 2rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.search-inputs {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.search-inputs input[type="text"] {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s;
  outline-offset: 2px;
}

.search-inputs input[type="text"]:focus {
  border-color: #03b0cc;
  outline: none;
}

.search-inputs select[name="year"] {
  flex: 0 0 6.5rem;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  line-height: 1;
}

.search-inputs select[name="year"]:focus {
  border-color: #03b0cc;
  outline: none;
}

.buttons-wrapper {
  display: contents;
  width: 100%;
  justify-content: center;
}

.buttons-wrapper button {
  width: 3.5rem;
  height: 2.6rem;
  background: #03b0cc;
  border: none;
  cursor: pointer;
  color: white;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.buttons-wrapper button:hover {
  background: rgba(3, 176, 204, 0.8);
}

#clearSearch {
  display: none; /* gestito da JS */
}

@media (max-width: 480px) {
  .search-form {
    max-width: 100%;
    flex-direction: column;
  }

  .search-inputs {
    width: 90%;
  }

  .search-inputs input[type="text"] {
    height: 24px;
  }

  .search-inputs select[name="year"] {
    height: 45px;
  }

  .buttons-wrapper {
    margin-top: 0.5rem;
    width: 90%;
    justify-content: center;
  }

  .buttons-wrapper button {
    width: 90%;
    height: 3rem;
    font-size: 1rem;
  }
}
