/* ============================================================
   SISS — Blog / Guide
   Riusa variabili e layout da servizio.css
   ============================================================ */

:root {
  --navy: #0C1B33;
  --navy-light: #162D54;
  --orange: #E8601C;
  --orange-light: #F4854D;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --warm-gray: #E8E4DF;
  --text: #1A1A1A;
  --text-light: #5A5650;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(12, 27, 51, 0.08);
  --shadow-lg: 0 12px 48px rgba(12, 27, 51, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav (stessa di servizio) ── */
.srv-nav {
  background: var(--navy); padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.srv-nav-logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; font-size: 18px; }
.srv-nav-logo img { width: 40px; height: 40px; border-radius: 8px; }
.srv-nav-links { display: flex; gap: 16px; align-items: center; }
.srv-nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.srv-nav-links a:hover { color: var(--white); }
.srv-nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: 10px 20px; border-radius: 8px; font-weight: 600 !important; }
.srv-nav-cta:hover { background: var(--orange-light) !important; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 16px 24px; max-width: 860px; margin: 0 auto; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Blog Index ── */
.blog-header {
  text-align: center; padding: 64px 24px 40px;
}
.blog-header h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy); margin-bottom: 12px;
}
.blog-header h1 em { color: var(--orange); font-style: normal; }
.blog-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.blog-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06); overflow: hidden;
  transition: all 0.3s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--orange); margin-bottom: 12px;
}
.blog-card-body h2 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--navy); margin-bottom: 10px; line-height: 1.3;
}
.blog-card-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; flex: 1; }
.blog-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--warm-gray);
  font-size: 12px; color: var(--text-light);
}
.blog-card-link { color: var(--orange); font-weight: 600; font-size: 13px; }

/* ── Article ── */
.article-hero {
  position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden;
}
.article-hero-bg { position: absolute; inset: 0; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,27,51,0.9) 0%, rgba(12,27,51,0.3) 100%);
}
.article-hero-content {
  position: relative; z-index: 1; max-width: 860px; margin: 0 auto;
  padding: 60px 24px 48px; color: var(--white); width: 100%;
}
.article-hero-content h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.article-meta {
  display: flex; gap: 20px; font-size: 14px; opacity: 0.85;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Article Body ── */
.article-body {
  max-width: 780px; margin: 0 auto; padding: 56px 24px 80px;
}
.article-body h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--navy); margin: 48px 0 16px; line-height: 1.3;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 1.05rem; line-height: 1.85; color: var(--text-light);
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px; font-size: 1.05rem; line-height: 1.85; color: var(--text-light);
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--orange); text-decoration: underline; }
.article-body a:hover { color: var(--orange-light); }

/* Callout box */
.article-callout {
  background: var(--white); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin: 32px 0;
}
.article-callout p { margin-bottom: 0; }
.article-callout strong { color: var(--navy); }

/* Table */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 0.95rem;
}
.article-body th {
  background: var(--navy); color: var(--white);
  padding: 12px 16px; text-align: left; font-weight: 600;
}
.article-body td {
  padding: 12px 16px; border-bottom: 1px solid var(--warm-gray);
  color: var(--text-light);
}
.article-body tr:last-child td { border-bottom: none; }

/* ── Article CTA inline ── */
.article-cta {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center; color: var(--white);
  margin: 48px 0;
}
.article-cta h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--white); margin-bottom: 12px;
}
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 1rem; }
.article-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; transition: all 0.2s;
  border: none; cursor: pointer; text-decoration: none;
}
.btn-cta-primary { background: var(--orange); color: #FFFFFF !important; }
.btn-cta-primary:hover { background: var(--orange-light); color: #FFFFFF !important; }
.btn-cta-outline { background: transparent; color: #FFFFFF !important; border: 2px solid rgba(255,255,255,0.4); }
.btn-cta-outline:hover { border-color: #FFFFFF; color: #FFFFFF !important; }

/* ── Related articles ── */
.related-articles {
  max-width: 860px; margin: 0 auto; padding: 0 24px 80px;
}
.related-articles h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--navy); margin-bottom: 24px; text-align: center;
}
.related-articles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.related-article-card {
  display: block; padding: 24px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.related-article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-article-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.related-article-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ── Footer mini ── */
.srv-footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px; text-align: center; color: rgba(255,255,255,0.5); font-size: 13px;
}
.srv-footer a { color: rgba(255,255,255,0.7); }
.srv-footer a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .srv-nav-links a:not(.srv-nav-cta) { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-articles-grid { grid-template-columns: 1fr; }
  .article-hero-content { padding: 40px 20px 32px; }
}
