:root {
  --sfondo: #f5f7f8;
  --carta: #ffffff;
  --testo: #1f252a;
  --titoli: #11161a;
  --accento: #2f5d73;
  --linee: #c9d1d6;
  --secondario: #66737c;
  --larghezza: 980px;
  --articolo: 700px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

a {
  color: var(--accento);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  background: var(--carta);
  border-bottom: 1px solid var(--linee);
}

.header-inner,
.home,
.article-page,
.footer-inner {
  width: min(calc(100% - 24px), var(--larghezza));
  margin: 0 auto;
}

.header-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-name {
  color: var(--titoli);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 12px;
  font-size: 10px;
}

.home {
  padding: 18px 0 40px;
}

.article-list {
  border-top: 1px solid var(--linee);
}

.article-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linee);
}

.article-thumb {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--linee);
  background: #e4e9ec;
}

.article-date {
  margin: 0 0 4px;
  color: var(--secondario);
  font-size: 10px;
}

.article-item h2 {
  margin: 0 0 5px;
  color: var(--titoli);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.25;
}

.article-item h2 a {
  color: inherit;
}

.article-summary {
  margin: 0;
  color: #374149;
  font-size: 12px;
  line-height: 1.45;
}

.article-page {
  padding: 22px 0 42px;
}

.article-shell {
  width: min(100%, var(--articolo));
  margin: 0 auto;
}

.article-page h1 {
  margin: 0 0 14px;
  color: var(--titoli);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.3;
}

.article-image {
  width: min(100%, 480px);
  margin: 0 auto 18px;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-image figcaption {
  margin-top: 5px;
  color: var(--secondario);
  font-size: 10px;
  line-height: 1.35;
}

.article-image figcaption:empty {
  display: none;
}

.article-body {
  font-size: 12px;
  text-align: justify;
  hyphens: auto;
}

.article-body p {
  margin: 0 0 10px;
}

.article-body h2 {
  margin: 0 0 7px;
  color: var(--titoli);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.article-abstract {
  margin: 0 0 20px;
}

.article-keywords {
  margin-top: 12px;
}

.article-section {
  margin: 18px 0 0;
}

.article-body ul {
  margin: 4px 0 12px;
  padding-left: 18px;
}

.article-body li {
  margin: 0 0 4px;
}

.article-sources {
  margin-top: 22px;
  font-size: 9px;
  line-height: 1.45;
  text-align: left;
  hyphens: none;
}

.article-sources h2 {
  margin-bottom: 8px;
  font-size: 12px;
}

.article-sources p {
  margin: 0 0 5px;
}

.site-footer {
  background: var(--carta);
  border-top: 1px solid var(--linee);
}

.footer-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 10px;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: min(calc(100% - 20px), 640px);
  padding: 16px 18px;
  border: 1px solid #35444d;
  background: #1f2a30;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 7px;
  font-size: 8px;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cookie-button {
  padding: 5px 8px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.cookie-button.primary {
  background: #ffffff;
  color: #1f2a30;
}

@media (max-width: 560px) {
  .article-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .article-thumb {
    width: 88px;
    height: 62px;
  }
}

@media (max-width: 380px) {
  .article-item {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    width: 100%;
    height: 135px;
  }
}

/* INIZIO HEADER MOBILE DEFINITIVO */

@media screen and (max-width: 760px) {

  .site-header .header-inner {
    display: block !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 12px 0 !important;
  }

  .site-header .header-inner > div {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .site-header .site-name {
    display: block !important;
    max-width: 100% !important;
  }

  .site-header .site-meaning {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .site-header .main-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    gap: 6px !important;
  }

  .site-header .main-nav a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* FINE HEADER MOBILE DEFINITIVO */
