/* SmartInternet.it — Minimal Blue/Grey Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2942;
  --blue-700: #1a4a7a;
  --blue-600: #1d5fa0;
  --blue-500: #2678c2;
  --blue-400: #3b8ed6;
  --blue-100: #ddeaf7;
  --blue-50:  #eef5fc;
  --grey-900: #1a1d21;
  --grey-700: #3a3f47;
  --grey-500: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f3f4f6;
  --grey-50:  #f9fafb;
  --white:    #ffffff;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:    780px;
  --max-w-wide: 1100px;
  --radius:   8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --transition: .2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--grey-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; display: block; }

.container       { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: -.02em;
}
.site-logo span { color: var(--blue-600); }
.site-logo:hover { color: var(--grey-900); }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--blue-600); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--grey-700); }

/* Intro */
.site-intro {
  padding: 3rem 0 2rem;
  text-align: center;
}
.site-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: .5rem;
}
.site-intro p {
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 520px;
  margin: 0 auto;
}

/* Article List */
.article-list { padding: 0 0 3rem; }

.article-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--grey-200);
  transition: background var(--transition);
}
.article-card:first-child { border-top: 1px solid var(--grey-200); }
.article-card__body { flex: 1; min-width: 0; }
.article-card__meta {
  font-size: .8rem;
  color: var(--grey-400);
  margin-bottom: .4rem;
  font-weight: 500;
}
.article-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .45rem;
}
.article-card__title a { color: var(--grey-900); }
.article-card__title a:hover { color: var(--blue-600); }
.article-card__excerpt {
  font-size: .95rem;
  color: var(--grey-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__thumb {
  flex-shrink: 0;
  width: 180px;
  height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card__thumb svg {
  width: 48px;
  height: 48px;
  opacity: .25;
}

/* Page Header */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--grey-900);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: .82rem;
  color: var(--grey-400);
}
.breadcrumb a { color: var(--grey-500); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb span { margin: 0 .35rem; }

/* Page Content */
.page-content {
  padding-bottom: 3rem;
  line-height: 1.8;
}
.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: var(--grey-900);
}
.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  color: var(--grey-900);
}
.page-content p { margin-bottom: 1rem; color: var(--grey-700); }
.page-content ul, .page-content ol {
  margin: .75rem 0 1rem 1.25rem;
  color: var(--grey-700);
}
.page-content li { margin-bottom: .4rem; }
.page-content a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--blue-700); }

/* Contact */
.contact-info {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}
.contact-info p { margin-bottom: .5rem; }
.contact-info strong { color: var(--grey-900); }

/* Footer */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding: 2.5rem 0;
  font-size: .85rem;
  margin-top: 2rem;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer a { color: var(--grey-300); }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-copy { width: 100%; text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }

/* Article Page */
.article-header {
  padding: 2.5rem 0 1rem;
}
.article-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.3;
  margin-bottom: .5rem;
}
.article-header .meta {
  font-size: .85rem;
  color: var(--grey-400);
  font-weight: 500;
}
.article-img {
  margin: 1.5rem 0;
}
.article-img img {
  border-radius: var(--radius);
  width: 100%;
}
.article-body {
  padding-bottom: 3rem;
  line-height: 1.8;
}
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: var(--grey-900);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  color: var(--grey-900);
}
.article-body p { margin-bottom: 1rem; color: var(--grey-700); }
.article-body ul, .article-body ol {
  margin: .75rem 0 1rem 1.25rem;
  color: var(--grey-700);
}
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--blue-700); }
.article-body blockquote {
  border-left: 3px solid var(--blue-400);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--blue-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--grey-700);
  font-style: italic;
}

/* Related */
.related {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.related h2, .related h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: .75rem;
}
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: .5rem; }
.related a { color: var(--blue-600); }

/* Footer Nav */
.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  margin-bottom: 1rem;
}
.site-footer .copy {
  text-align: center;
  color: var(--grey-500);
}

/* Header container flex (for article pages) */
.site-header .container {
  max-width: var(--max-w-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 6rem 1rem;
}
.page-404 h1 {
  font-size: 5rem;
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1;
}
.page-404 p {
  font-size: 1.15rem;
  color: var(--grey-500);
  margin: 1rem 0 2rem;
}
.page-404 .btn {
  display: inline-block;
  background: var(--blue-600);
  color: var(--white);
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition);
}
.page-404 .btn:hover { background: var(--blue-700); color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
  .site-header__inner { padding: .75rem 1rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
    gap: .75rem;
  }
  .site-nav.is-open { display: flex; }
  .site-intro { padding: 2rem 0 1.5rem; }
  .site-intro h1 { font-size: 1.4rem; }
  .article-card { flex-direction: column-reverse; gap: 1rem; padding: 1.25rem 0; }
  .article-card__thumb { width: 100%; height: 160px; }
  .article-card__title { font-size: 1.1rem; }
  .site-footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; }
  .site-header .container { flex-direction: column; gap: .75rem; padding: .75rem 1rem; }
  .article-header h1 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .site-intro h1 { font-size: 1.2rem; }
  .article-card__thumb { height: 140px; }
}
