/* Prodotti Testati — Foglio di stile editoriale */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Charter', 'Georgia', 'Iowan Old Style', 'Cambria', serif;
  font-size: 18px;
  line-height: 1.65;
  color: #1c1917;
  background-color: #fafaf9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1c1917;
  line-height: 1.25;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; margin-top: 2.2rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; }

p { margin: 0 0 1.2em; }

a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

figure { margin: 1.5rem 0; }
figcaption {
  font-size: 0.85rem;
  color: #57534e;
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.container-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Header */
.site-header {
  border-bottom: 1px solid #e7e5e4;
  background: #ffffff;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: 1rem;
}
.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #1c1917;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-tagline {
  display: block;
  font-family: 'Charter', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: #57534e;
  margin-top: 0.15rem;
}
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1c1917;
  text-decoration: none;
}
.site-nav a:hover { color: #1e40af; text-decoration: underline; }

/* Hero */
.hero {
  background: #f5f5f4;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid #e7e5e4;
}
.hero h1 { max-width: 780px; }
.hero .lede {
  font-size: 1.15rem;
  color: #57534e;
  max-width: 680px;
  margin-top: 0.5rem;
}

/* Sezioni */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #57534e;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* Grid di articoli */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: #a8a29e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card figure { margin: -0.5rem -0.5rem 1rem; }
.card img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; }
.card .meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #57534e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.card h3 { margin: 0 0 0.6rem; font-size: 1.15rem; line-height: 1.35; }
.card h3 a { color: #1c1917; text-decoration: none; }
.card h3 a:hover { color: #1e40af; text-decoration: underline; }
.card p { font-size: 0.95rem; color: #57534e; margin: 0; flex-grow: 1; }
.card .read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  margin-top: 1rem;
  font-weight: 500;
}

/* Sezioni informative */
.info-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .info-cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.info-block h2 { margin-top: 0; }
.info-block p { color: #57534e; }

/* Articolo */
article.post header { margin-bottom: 2rem; }
article.post .meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #57534e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
article.post .meta a { color: #57534e; }
article.post .subtitle {
  font-size: 1.2rem;
  color: #57534e;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: 'Charter', 'Georgia', serif;
}
article.post .author-bio {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f5f5f4;
  border-left: 3px solid #1e40af;
  border-radius: 4px;
  font-size: 0.95rem;
}
article.post .author-bio h3 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #57534e;
}
.back-home {
  margin: 2.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

/* Pagine statiche */
.page-content h2 { margin-top: 2.5rem; }
.page-content ul, .page-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.page-content li { margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.site-footer a { color: #fafaf9; }
.site-footer .footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fafaf9;
  margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer .disclosure { color: #a8a29e; font-size: 0.85rem; }
.site-footer .copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #44403c;
  color: #a8a29e;
  font-size: 0.82rem;
}
