/* SrefMindForge — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0d0f;
  --bg2:      #13131a;
  --bg3:      #1a1a24;
  --border:   #2a2a3a;
  --text:     #e8e8f0;
  --muted:    #6b6b8a;
  --accent:   #e94560;
  --pro:      #9b59b6;
  --pro-light:#c39bd3;
  --white:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(13,13,15,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Urbanist', sans-serif; font-size: .9rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--accent) !important; color: var(--white) !important; padding: 8px 18px; border-radius: 6px; font-weight: 700 !important; font-size: .8rem !important; letter-spacing: .06em; text-transform: uppercase; transition: background .2s !important; }
.nav-cta:hover { background: #c73652 !important; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 40px; text-align: center; color: var(--muted); font-size: .8rem; }
footer a { color: var(--muted); transition: color .2s; }
footer a:hover { color: var(--text); }

/* BUTTONS */
.btn-primary { display: inline-block; background: var(--accent); color: var(--white); padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: .92rem; letter-spacing: .04em; transition: background .2s; }
.btn-primary:hover { background: #c73652; }
.btn-ghost { display: inline-block; background: transparent; color: var(--text); padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: .92rem; border: 1px solid var(--border); transition: border-color .2s; }
.btn-ghost:hover { border-color: var(--muted); }

/* SECTION-LABEL */
.section-label { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* TAG CHIP */
.tag { display: inline-block; font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--bg3); border: 1px solid var(--border); color: var(--muted); }
.tag.style  { border-color: var(--accent); color: var(--accent); background: rgba(233,69,96,.08); }
.tag.pro    { border-color: var(--pro); color: var(--pro-light); background: rgba(155,89,182,.08); }

/* DIVIDER */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links a:not(.nav-cta):not(.nav-blog) { display: none; }
}

/* LOCK OVERLAY — card lock condiviso (gallery/index, geo pages) */
.blog-card { position: relative; }
.blog-card:not(.locked-card):hover { border-color: var(--accent); }
.blog-card.locked-card:hover { border-color: var(--border); cursor: default; }
.locked-card .card-link { pointer-events: none; }
.locked-card img { filter: blur(8px) brightness(.45); }
.locked-card .blog-card-body { opacity: .85; pointer-events: none; }
.locked-card .blog-card-sref { opacity: 0; pointer-events: none; }
.lock-overlay { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 2; }
.locked-card .lock-overlay { display: flex; }
.lock-overlay-icon { font-size: 1.6rem; color: rgba(255,255,255,.8); }
.lock-overlay-label { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.lock-overlay-btn { font-size: .72rem; font-weight: 700; padding: 7px 18px; border-radius: 20px; background: var(--pro); color: var(--white); text-decoration: none; transition: opacity .16s; display: inline-block; }
.lock-overlay-btn:hover { opacity: .85; }

/* ARTICLE GATE — lock contenuto singolo articolo */
.article-gate { position: relative; margin-top: 32px; }
.article-gate-content { transition: filter .2s; }
.article-gate-content.locked { filter: blur(5px) brightness(.45); pointer-events: none; user-select: none; max-height: 260px; overflow: hidden; }
.article-gate-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: rgba(13,13,15,.18); border-radius: 12px; }
.article-gate-icon { font-size: 2rem; }
.article-gate-title { font-size: 1rem; font-weight: 800; color: var(--white); }
.article-gate-sub { font-size: .82rem; color: rgba(255,255,255,.6); max-width: 320px; line-height: 1.5; }
.article-gate-btn { background: var(--pro); color: var(--white); padding: 11px 26px; border-radius: 24px; font-size: .84rem; font-weight: 800; text-decoration: none; transition: opacity .16s; display: inline-block; }
.article-gate-btn:hover { opacity: .85; }
