/* Applichiamo il box-sizing globalmente */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  padding: 16px;
  background: #f9f9f9;
  margin:0;
}
header {
  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
  text-align: center;
}

/* Box di ricerca */
#searchBox {
  width: 80%;
  max-width: 800px;
  padding: 10px;
  font-size: 1rem;
  margin: 20px auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* Regola globale per le immagini */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}
/* Card degli articoli - rendiamo le card cliccabili */
.article, .latest-article {
  /*width: 100%;*/
  padding: 15px;
  margin-bottom: 15px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.2s;
}
.article:hover, .latest-article:hover {
  background-color: #f0f8ff;
}
.article h2, .latest-article h2 {
  margin: 0 0 5px;
  font-size: 1.2rem;
}
.article p, .latest-article p {
  margin: 5px 0;
}
/* Contenitore per i risultati della ricerca */
#results {
  /*width: 80%;*/
  max-width: 800px;
  margin: 20px auto;
}
/* Sezione "Ultimi Articoli" */
#latest-articles {
  /*width: 80%;*/
  max-width: 800px;
  margin: 20px auto;
}
/* Centra il testo "Ultimi Articoli" */
section h2 {
  text-align: center;
}
/* Spinner per il caricamento */
#spinner {
  text-align: center;
  padding: 20px;
  display: none;
}
/* Vista principale */
#main-content {
  display: block;
}
/* Vista dedicata per l'articolo completo */
#article-view {
  display: none;
  /*width: 80%;*/
  max-width: 800px;
  margin: 0px auto 32px;
  /*background: #fff;*/
  /*padding: 20px;*/
  /*border: 1px solid #eaeaea;*/
  border-radius: 4px;
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}
#article-view #article-view-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
#back-button {
  /*padding: 8px 12px;
  background: #555;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;*/
  font-size: 16px;
  color: #2e5d8a;
  font-weight: 600;
  border:none;
  background:none;
  /*border-bottom:1px solid;*/
  box-shadow:none;
  margin-bottom:16px;
}
figure {
	margin:0;
	overflow-x: auto;
}
figure table {
	border-collapse: collapse;
}
figure table td {
	min-width: 160px;
	margin: 1px solid;
}
.wp-block-button a {
	background: transparent !important;
}

/* Dark Mode */
/* Stili di default */
body {
  background-color: #f9f9f9;
  color: #333;
}
/* Stili per la dark mode */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
/* Puoi aggiungere altre regole per link, header, ecc. */
a {
  color: inherit;
}
body.dark-mode a {
  color: #80bdff;
}
