/* ─── OI-IA Article CSS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FFFFFF; --bg1: #F8F8F8; --bg2: #F0F0F0; --bg3: #E6E6E6;
  --gold: #C9A84C; --gold-warm: #B89A2E; --gold-light: #d4b050; --blue: #3B9EE8;
  --text: #111111; --text2: #444444; --muted: #767676; --border: rgba(0,0,0,0.08); --border-md: rgba(0,0,0,0.13);
}
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.7; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* NAVBAR */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 24px;
  transition: padding 0.4s, background 0.4s;
}
#navbar.scrolled {
  padding: 8px 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 999px;
  padding: 0 8px 0 24px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07), 0 1px 0 rgba(255,255,255,0.8) inset;
  transition: box-shadow 0.3s;
}
#navbar.scrolled .nav-inner {
  box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.8) inset;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg, .nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px !important; padding: 9px 20px !important;
  background: var(--gold) !important; color: #1A1A18 !important;
  font-family: 'Sora', sans-serif !important; font-weight: 700 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(201,168,76,0.25) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.35) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: .25s; }
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 20px; margin-top: 8px;
  padding: 20px 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--text2); }

/* HEADER */
.article-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.article-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.category-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.25); }
.read-time { font-size: 13px; color: var(--muted); }
.article-byline { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.author { font-weight: 600; color: var(--text); }
.separator { color: var(--border); }

/* BODY */
.article-main { padding: 56px 0 80px; }
.article-body h1 { font-family: 'Sora', sans-serif; font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 28px; }
.article-body h2 { font-family: 'Sora', sans-serif; font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.article-body h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--gold); }
.article-body p { margin-bottom: 18px; font-size: 16px; color: var(--text2); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--muted); font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 20px 20px; }
.article-body li { margin-bottom: 8px; font-size: 16px; color: var(--text2); }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 16px 20px; margin: 24px 0; background: rgba(201,168,76,.06); border-radius: 0 10px 10px 0; font-style: italic; color: var(--text); }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.article-body th { background: var(--bg2); color: var(--gold); font-weight: 700; padding: 12px 16px; text-align: left; border: 1px solid var(--border); }
.article-body td { padding: 11px 16px; border: 1px solid var(--border); color: var(--text2); }
.article-body tr:nth-child(even) td { background: var(--bg1); }

/* CTA BOX */
.article-cta-box { margin: 56px 0; padding: 36px; background: linear-gradient(135deg, rgba(201,168,76,.1), rgba(59,158,232,.06)); border: 1px solid rgba(201,168,76,.25); border-radius: 16px; text-align: center; }
.article-cta-box h3 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.article-cta-box p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.btn-gold { display: inline-block; background: var(--gold); color: #000; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 10px; text-decoration: none; transition: all .25s; }
.btn-gold:hover { background: #e0bf72; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); text-decoration: none; }

/* RELATED */
.related-articles { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.related-articles h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 6px; background: var(--bg1); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color .2s; text-decoration: none; }
.related-card:hover { border-color: rgba(201,168,76,.3); text-decoration: none; }
.related-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.related-card h4 { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.related-date { font-size: 11px; color: var(--muted); }

/* FOOTER */
.article-footer { padding: 28px 0; border-top: 1px solid var(--border); text-align: center; }
.article-footer p { font-size: 13px; color: var(--muted); }
.article-footer a { color: var(--muted); }
.article-footer a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 640px) {
  /* Su mobile nasconde i link di sezione ma mantiene la CTA,
     altrimenti la navbar resta senza alcuna navigazione */
  .nav-links a:not(.btn-nav) { display: none; }
  .article-body h1 { font-size: 24px; }
  .related-grid { grid-template-columns: 1fr; }
}
