/* ═══════════════════════════════════════════════════
   NORMASHIELD - LANDING PAGE STYLES
   Design System: Forensic Record v3.0
   Palette: Warm dark · Amber gold · Steel blue
════════════════════════════════════════════════════ */

:root {
  --bg-base:     #0c0c09;
  --bg-surface:  #131310;
  --bg-elevated: #1a1b16;
  --bg-card:     #22231d;
  --primary:     #c4901f;
  --primary-hi:  #e0a830;
  --primary-pale:rgba(196,144,31,0.10);
  --secondary:   #4a7fa3;
  --secondary-hi:#6b9fc4;
  --text-main:   #e8e4d9;
  --text-muted:  #8a8670;
  --text-dim:    #6a6655;
  --border:      rgba(230,220,170,0.07);
  --border-hi:   rgba(230,220,170,0.13);
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --transition:  0.18s ease;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  position: relative;
}

[hidden] { display: none !important; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(196,144,31,0.15) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(196,144,31,0.18); border-radius: 2px; }

/* Touch */
button, a, [onclick], label { touch-action: manipulation; }
input, textarea, select { -webkit-appearance: none; appearance: none; }

/* Focus */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.85rem; }
p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.25rem; }
a { text-decoration: none; color: inherit; }

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.text-light { color: var(--text-main); }
.mb-1 { margin-bottom: 0.5rem; }
.highlight { color: var(--primary-hi); }
.highlight-red { color: #d0695f; }

/* Background texture - replaces gradient blobs */
.bg-gradient { display: none; }
.grid-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(196,144,31,0.018) 40px,
      rgba(196,144,31,0.018) 41px
    );
  z-index: 0; pointer-events: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem; border-radius: 4px;
  font-weight: 600; transition: var(--transition); cursor: pointer;
  border: none; font-size: 0.93rem; font-family: inherit;
}
.btn .icon { width: 18px; height: 18px; margin-left: 0.4rem; transition: transform 0.18s; }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--primary); color: #0c0c09;
}
.btn-primary:hover { background: var(--primary-hi); }

.btn-secondary {
  background: var(--bg-elevated); color: var(--text-main);
  border: 1px solid var(--border-hi);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--primary); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-pale); }

.btn-login {
  background: rgba(61,122,86,0.1);
  color: #7ac49a;
  border: 1px solid rgba(61,122,86,0.3);
}
.btn-login:hover { background: rgba(61,122,86,0.18); }

.btn-logout-nav {
  background: transparent; color: #d0695f;
  border: 1px solid rgba(158,48,37,0.3); cursor: pointer; font-family: inherit;
}
.btn-logout-nav:hover { background: rgba(158,48,37,0.1); border-color: rgba(158,48,37,0.5); }

.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

/* ── Navbar (landing-specific) ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 56px;
}
.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo-svg { width: 30px; height: 30px; }
.logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-main); }
.logo-accent { color: var(--primary-hi); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:not(.btn):hover { color: var(--text-main); }

/* Navbar - autenticato */
.nav-user-info { display: flex; align-items: center; gap: 0.65rem; }
.nav-username { font-size: 0.83rem; font-weight: 600; color: var(--text-main); white-space: nowrap; }
.nav-username::before { content: '▸ '; font-size: 0.75rem; color: var(--primary); }
.btn-dashboard {
  background: var(--primary-pale); color: var(--primary-hi);
  border: 1px solid rgba(196,144,31,0.3); white-space: nowrap;
}
.btn-dashboard:hover { background: rgba(196,144,31,0.18); border-color: var(--primary); }

.nav-login-mobile { display: none; }

/* ── Hero ── */
.hero {
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem clamp(3rem, 6vw, 5.5rem);
  position: relative; display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; overflow: hidden;
}
@media(min-width: 992px) {
  .hero {
    grid-template-columns: 1fr 1fr; align-items: center;
    padding: 9rem 1.5rem 7rem;
    max-width: 1200px; margin: 0 auto; gap: 3.5rem;
  }
}
.hero-content { z-index: 10; }

.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.38rem 0.85rem; background: var(--bg-elevated);
  border: 1px solid var(--border-hi); border-left: 2px solid var(--primary);
  border-radius: 3px; color: var(--primary-hi);
  font-size: 0.76rem; font-weight: 700; margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pulse-dot {
  width: 7px; height: 7px; background: #d0695f; border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(208,105,95,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(208,105,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,105,95,0); }
}

.hero-title { font-size: clamp(1.85rem, 5.5vw, 3.25rem); margin-bottom: 1.25rem; }
.hero-description {
  font-size: clamp(0.93rem, 2vw, 1.08rem); max-width: 560px; margin-bottom: 2rem;
  color: var(--text-muted); line-height: 1.7;
}
.hero-description strong { color: var(--text-main); }

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Bulletin CTA */
.hero-bulletin-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: .45rem; padding: 7px 16px; border-radius: 3px;
  background: rgba(158,48,37,0.08);
  border: 1px solid rgba(158,48,37,0.25);
  color: #d0695f; font-size: .8rem; font-weight: 600;
  text-decoration: none; letter-spacing: .01em;
  transition: all .18s; cursor: pointer;
}
.hero-bulletin-btn:hover {
  background: rgba(158,48,37,0.15); border-color: rgba(158,48,37,0.45); color: #e07068;
}
.hero-bulletin-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d0695f; flex-shrink: 0;
  animation: bpulse 1.4s ease-in-out infinite;
}
.hero-bulletin-badge {
  background: rgba(158,48,37,0.2); color: #d0695f;
  font-size: .63rem; font-weight: 700;
  padding: 1px 6px; border-radius: 2px;
  min-width: 18px; text-align: center; display: none;
}
.hero-bulletin-badge.visible { display: inline-block; }

/* Terminal visual */
.hero-visual { z-index: 10; }
.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-hi);
  border-top: 2px solid var(--primary);
  border-radius: 4px;
  transition: transform 0.4s ease;
}
.terminal-window:hover { transform: translateY(-3px); }
.terminal-header {
  display: flex; align-items: center; padding: 0.75rem 1rem;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.term-btns { display: flex; gap: 0.4rem; }
.term-btn { width: 10px; height: 10px; border-radius: 50%; }
.cl-red  { background: #9e3025; }
.cl-yel  { background: #c4901f; }
.cl-grn  { background: #3d7a56; }
.term-title {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted); margin: 0 auto; padding-right: 42px;
}
.terminal-body {
  padding: 1.25rem 1.35rem; font-family: var(--font-mono);
  font-size: 0.82rem; line-height: 1.75; color: var(--text-muted);
}
.prompt { color: var(--primary); font-weight: 700; margin-right: 0.45rem; }
.error  { color: #d0695f; }
.success { color: #7ac49a; }
.text-glow { font-weight: 700; color: #7ac49a; }

/* ── Sections ── */
.section { padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.section-darker { background: rgba(0,0,0,0.18); }
.border-top { border-top: 1px solid var(--border); }
.section-heading { max-width: 760px; margin: 0 auto clamp(1.75rem, 4vw, 3.5rem); }
.sub-heading {
  color: var(--primary-hi); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.75rem; margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(196,144,31,0.25); display: inline-block; padding-bottom: 2px;
}

/* ── Cards Grid (Risk) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-left: 3px solid #9e3025;
  border-radius: 4px; padding: 2rem 1.75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.card::before { content: none; }
.card:hover { border-color: var(--border-hi); border-left-color: #c04838; background: var(--bg-card); }
.card-icon {
  width: 44px; height: 44px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.alert-icon { background: rgba(158,48,37,0.1); color: #d0695f; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.87rem; margin-bottom: 0; }

/* ── Solution ── */
.solution-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media(min-width: 992px) { .solution-layout { grid-template-columns: 1fr 1fr; } }

.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.25rem; }
.li-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.2rem; color: var(--primary-hi); }
.feature-list span { color: var(--text-muted); font-size: 0.9rem; }
.feature-list strong { color: var(--text-main); }

/* Solution Diagram */
.solution-diagram { position: relative; padding: 2.5rem 0; }
.solution-diagram::before {
  content: ''; position: absolute; top: 50%; left: 20px; right: 20px;
  height: 1px; background: var(--border); transform: translateY(-50%); z-index: 0;
}
.circle-stage {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-hi);
  padding: 0.9rem; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  font-weight: 600; z-index: 1; min-width: 140px; margin-left: 2rem;
  transition: 0.2s; font-size: 0.9rem; color: var(--text-muted);
}
.c-1 { margin-left: 0; }
.c-2 { margin-left: auto; margin-right: auto; display: flex; border-color: var(--primary); color: var(--primary-hi); background: var(--primary-pale); }
.c-3 { margin-left: auto; }
.c-4 { margin-left: auto; max-width: 200px; display: block; margin-top: -0.75rem; margin-right: 2rem; }
.active-stage { color: var(--text-main); }
.glow-active { display: none; }
.tag {
  position: absolute; top: -22px; right: -18px;
  background: var(--primary); color: #0c0c09;
  font-size: 0.7rem; padding: 0.2rem 0.45rem; border-radius: 3px; font-weight: 700;
}

/* ── Core Features ── */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.feat-box {
  padding: 1.75rem; border-radius: 4px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); transition: var(--transition);
}
.feat-box:hover { background: var(--bg-card); border-color: var(--border-hi); border-left-color: var(--primary-hi); }
.feat-icon { width: 36px; height: 36px; color: var(--primary-hi); margin-bottom: 1.25rem; }
.feat-box h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.feat-box p { font-size: 0.87rem; margin-bottom: 0; }

/* ── Token Plans ── */
.token-section { background: var(--bg-surface); }
.token-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.token-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.85rem; transition: var(--transition);
}
.token-card:hover { background: var(--bg-card); border-color: var(--border-hi); }
.token-card h3 { font-size: 1.1rem; }
.token-badge {
  align-self: flex-start; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.09em; font-weight: 700; color: var(--secondary-hi);
  background: rgba(74,127,163,0.12); border: 1px solid rgba(74,127,163,0.25);
  border-radius: 3px; padding: 0.2rem 0.6rem;
}
.token-qty { font-size: 1.65rem; font-weight: 800; color: var(--text-main); line-height: 1.15; }
.token-card p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.token-card-featured {
  border-color: rgba(61,122,86,0.4); background: rgba(61,122,86,0.07);
}
.token-card-featured:hover { border-color: rgba(61,122,86,0.6); }
.token-card-featured .token-badge {
  color: #7ac49a; background: rgba(61,122,86,0.15); border-color: rgba(61,122,86,0.35);
}

.token-form {
  margin-top: 1.75rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-top: 2px solid var(--primary);
  border-radius: 4px; padding: 1.35rem;
}
.token-form h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.token-form-subtitle { margin-bottom: 1.1rem; font-size: 0.93rem; color: var(--text-muted); }
.token-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.8rem; color: var(--text-main); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; border: 1px solid var(--border-hi);
  background: var(--bg-base); color: var(--text-main);
  border-radius: 4px; padding: 0.62rem 0.75rem; font: inherit; font-size: 0.9rem;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-field-full { grid-column: 1 / -1; }
.token-form-actions { margin-top: 1.1rem; display: flex; justify-content: flex-start; }
.token-form-message { margin-top: 0.7rem; font-size: 0.88rem; min-height: 1.1rem; }
.token-form-message.success { color: #7ac49a; }
.token-form-message.error   { color: #d0695f; }

/* ── CTA Section ── */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before { content: none; }
.cta-title { font-size: clamp(1.6rem, 4.5vw, 2.75rem); margin-bottom: 0.9rem; }
.cta-subtitle { font-size: clamp(0.93rem, 2vw, 1.1rem); max-width: 540px; margin: 0 auto; }

/* ── Footer ── */
.footer {
  padding: 2.5rem 0 3rem; border-top: 1px solid var(--border);
  background: var(--bg-base);
}
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 0.6rem; max-width: 600px; }
.footer-logo { display: flex; justify-content: flex-start; align-items: center; gap: 0.6rem; }
.footer-logo .logo-text { font-size: 0.95rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.87rem; line-height: 1.65; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }
.footer-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0.35rem 0.75rem; border-radius: 3px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text-muted); font-size: 0.79rem; font-weight: 600; transition: all 0.18s;
}
.footer-link:hover { color: var(--text-main); border-color: var(--primary); background: var(--bg-card); }
.footer-meta { display: grid; gap: 0.5rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; margin: 0; }
.footer-legal, .footer-note { color: var(--text-dim); font-size: 0.74rem; line-height: 1.7; margin: 0; }

/* ── Animations ── */
.fade-in-up { opacity: 0; transform: translateY(16px); animation: fadeInUp 0.7s forwards cubic-bezier(0.4,0,0.2,1); }
.fade-in    { opacity: 0; animation: fadeIn 0.9s forwards ease-out; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { to { opacity: 1; } }

.scroll-reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   CYBER THREAT BULLETIN
═══════════════════════════════════════════════ */
.bulletin-section { background: var(--bg-base, #0c0c09); }

.bulletin-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(158,48,37,0.1); border: 1px solid rgba(158,48,37,0.28);
  color: #d0695f; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 11px; border-radius: 3px;
  margin-bottom: 0.85rem;
}
.bulletin-pulse { width: 7px; height: 7px; border-radius: 50%; background: #d0695f; animation: bpulse 1.4s ease-in-out infinite; }
@keyframes bpulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(1.3); } }

.bulletin-filters { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.bfilt {
  padding: 5px 16px; border-radius: 3px; font-size: .76rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text-muted); cursor: pointer; transition: all .18s;
}
.bfilt:hover { background: var(--bg-card); color: var(--text-main); }
.bfilt.active { background: var(--bg-card); color: var(--text-main); border-color: var(--border-hi); }
.bfilt-critical.active { background: rgba(158,48,37,0.12); color: #d0695f; border-color: rgba(158,48,37,0.3); }
.bfilt-high.active     { background: rgba(196,100,31,0.12); color: #d4813a; border-color: rgba(196,100,31,0.3); }
.bfilt-medium.active   { background: var(--primary-pale); color: var(--primary-hi); border-color: rgba(196,144,31,0.3); }

.bulletin-ticker-wrap {
  overflow: hidden; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 9px 0; margin-bottom: 1.75rem; position: relative;
}
.bulletin-ticker-wrap::before,
.bulletin-ticker-wrap::after {
  content: ''; position: absolute; top: 0; width: 55px; height: 100%; z-index: 2;
}
.bulletin-ticker-wrap::before { left: 0;  background: linear-gradient(to right, var(--bg-base,#0c0c09), transparent); }
.bulletin-ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-base,#0c0c09), transparent); }
.bulletin-ticker-inner {
  display: flex; gap: 2.25rem; white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  padding: 0 1.75rem; font-size: .76rem; color: var(--text-muted);
}
.bulletin-ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.ticker-dot-critical { background: #d0695f; }
.ticker-dot-high     { background: #d4813a; }
.ticker-dot-medium   { background: #c4901f; }
.ticker-dot-low      { background: #4d9968; }
.ticker-loading { color: var(--text-dim); font-style: italic; padding: 0 0.85rem; }

.bulletin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem; margin-bottom: 1.25rem;
}
.bcard-skeleton {
  height: 210px; border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.6s infinite;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.bcard {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.1rem;
  display: flex; flex-direction: column; gap: .65rem;
  transition: border-color .18s, background .18s;
  position: relative; overflow: hidden;
}
.bcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.bcard-critical::before { background: #9e3025; }
.bcard-high::before     { background: #c4601f; }
.bcard-medium::before   { background: #c4901f; }
.bcard-low::before      { background: #3d7a56; }
.bcard:hover { border-color: var(--border-hi); background: var(--bg-card); }

.bcard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; }
.bcard-badges { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; }
.bcard-badge { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; }
.badge-critical { background: rgba(158,48,37,0.14); color: #d0695f; border: 1px solid rgba(158,48,37,0.28); }
.badge-high     { background: rgba(196,100,31,0.14); color: #d4813a; border: 1px solid rgba(196,100,31,0.28); }
.badge-medium   { background: var(--primary-pale); color: var(--primary-hi); border: 1px solid rgba(196,144,31,0.28); }
.badge-low      { background: rgba(61,122,86,0.14); color: #7ac49a; border: 1px solid rgba(61,122,86,0.28); }
.badge-source   { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border-hi); }
.badge-recent   { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.28); }
.bcard-meta     { font-size: .68rem; color: var(--text-dim); white-space: nowrap; margin-top: 2px; }

.bcard-date { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; flex-shrink: 0; min-width: 90px; }
.bcard-date-main { display: flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.bcard-date-main svg { flex-shrink: 0; opacity: .7; }
.bcard-date-rel { font-size: .65rem; color: var(--text-dim); text-align: right; }
.bcard-date-recent .bcard-date-main { color: #a5b4fc; }

.bcard-source-row { display: flex; gap: 5px; flex-wrap: wrap; }
.badge-cat { background: rgba(74,127,163,0.12); color: var(--secondary-hi); border: 1px solid rgba(74,127,163,0.22); }

/* Card evidenziata: evento negli ultimi 30 giorni */
.bcard-recent {
  border-color: rgba(99,102,241,0.22);
  background: linear-gradient(160deg, rgba(99,102,241,0.04) 0%, var(--bg-elevated) 60%);
}
.bcard-recent::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: rgba(99,102,241,0.35);
  border-radius: 0 4px 4px 0;
}
.bcard-recent:hover { border-color: rgba(99,102,241,0.38); }

.bcard-title {
  font-size: .88rem; font-weight: 600; color: var(--text-main); line-height: 1.4;
}
.bcard-title a { color: inherit; text-decoration: none; transition: color .15s; }
.bcard-title a:hover { color: var(--primary-hi); }
.bcard-summary {
  font-size: .77rem; color: var(--text-muted); line-height: 1.55; flex: 1;
}
.bcard-relevance {
  margin-top: auto; background: rgba(74,127,163,0.08);
  border: 1px solid rgba(74,127,163,0.18); border-radius: 3px; padding: .5rem .65rem;
  display: flex; gap: .45rem; align-items: flex-start;
}
.bcard-relevance-icon { flex-shrink: 0; width: 14px; height: 14px; color: var(--secondary-hi); margin-top: 1px; }
.bcard-relevance-text { font-size: .72rem; color: var(--secondary-hi); line-height: 1.45; }
.bcard-relevance-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--secondary-hi); display: block; margin-bottom: 2px; }
.bcard-cta {
  display: flex; gap: .45rem; align-items: center;
  font-size: .72rem; font-weight: 600; color: var(--secondary-hi);
  text-decoration: none; margin-top: .2rem; transition: color .15s;
}
.bcard-cta:hover { color: var(--text-main); }
.bcard-cta svg { width: 12px; height: 12px; }

.bulletin-footer {
  display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.25rem;
  font-size: .72rem; color: var(--text-dim);
  padding-top: 0.85rem; border-top: 1px solid var(--border);
}
.bulletin-timestamp { color: var(--text-muted); }
.bulletin-sources-note { flex: 1; min-width: 180px; }
.bulletin-refresh-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-elevated); border: 1px solid var(--border-hi);
  color: var(--text-muted); border-radius: 3px; padding: 4px 11px;
  font-size: .72rem; cursor: pointer; transition: all .18s; margin-left: auto;
}
.bulletin-refresh-btn:hover { background: var(--bg-card); color: var(--text-main); border-color: var(--primary); }
.bulletin-refresh-btn.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bulletin-empty { grid-column: 1/-1; text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); font-size: .88rem; }

/* Italy spotlight */
.italy-spotlight {
  margin-bottom: 1.75rem; border: 1px solid rgba(61,122,86,0.22); border-radius: 4px;
  overflow: hidden; background: rgba(61,122,86,0.04);
}
.italy-spotlight-header {
  display: flex; align-items: center; gap: .65rem; padding: .75rem 1.1rem;
  background: rgba(61,122,86,0.07); border-bottom: 1px solid rgba(61,122,86,0.15);
}
.italy-flag { font-size: 1.05rem; line-height: 1; }
.italy-spotlight-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #7ac49a; }
.italy-spotlight-sub { font-size: .7rem; color: rgba(122,196,154,0.55); margin-left: auto; }
.italy-spotlight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.9rem; padding: 0.9rem;
}
.italy-spotlight-grid .bcard { background: rgba(61,122,86,0.05); border-color: rgba(61,122,86,0.18); }
.italy-spotlight-grid .bcard:hover { border-color: rgba(61,122,86,0.35); background: rgba(61,122,86,0.09); }
.badge-italy { background: rgba(61,122,86,0.16); color: #7ac49a; border: 1px solid rgba(61,122,86,0.32); }
.bfilt-italy.active   { background: rgba(61,122,86,0.12); color: #7ac49a; border-color: rgba(61,122,86,0.32); }
.bfilt-recent         { gap: .35rem; }
.bfilt-recent.active  { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.bfilt-recent-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; padding: 0 5px;
  font-size: .6rem; font-weight: 800; line-height: 1;
  background: rgba(99,102,241,0.25); color: #c7d2fe;
  border-radius: 10px; border: 1px solid rgba(99,102,241,0.35);
}
.bfilt-recent.active .bfilt-recent-count {
  background: rgba(99,102,241,0.35); color: #e0e7ff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .token-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-login-mobile { display: inline-flex; padding: 0.45rem 0.85rem; font-size: 0.83rem; }
  .logo-text { font-size: 1rem; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .terminal-window { transform: none !important; }
  .circle-stage { display: flex; max-width: 100%; margin: 0 0 0.85rem 0 !important; }
  .solution-diagram { padding: 0.75rem 0; }
  .solution-diagram::before { display: none; }
  .token-grid { grid-template-columns: 1fr; }
  .token-form-grid { grid-template-columns: 1fr; }
  .token-form { padding: 1.1rem; }
  .token-form-actions { justify-content: stretch; }
  .token-form-actions .btn { width: 100%; justify-content: center; }
  .card { padding: 1.75rem 1.35rem; }
  .footer-top, .footer-brand { align-items: center; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-links { justify-content: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 520px) {
  .navbar { padding: 0; }
  .nav-container { padding: 0 1rem; height: 50px; }
  .hero { padding: 4rem 1rem 2.25rem; gap: 1.75rem; }
  .badge { font-size: .72rem; padding: .32rem .75rem; }
  .badge-text { white-space: normal; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .terminal-body { font-size: .76rem; padding: 1rem; }
  .container { padding: 0 1rem; }
  .solution-layout { gap: 2rem; }
  .feat-box { padding: 1.35rem; }
  .token-card { padding: 1.35rem; }
  .token-qty { font-size: 1.4rem; }
  .bulletin-grid { grid-template-columns: 1fr; }
  .bulletin-footer { flex-direction: column; align-items: flex-start; }
  .bulletin-refresh-btn { margin-left: 0; }
  .italy-spotlight-grid { grid-template-columns: 1fr; }
  .footer { padding: 2rem 0 2.25rem; }
}

@media (max-width: 360px) {
  .hero-actions .btn { max-width: 100%; }
  .logo-text { font-size: 0.9rem; }
  .terminal-body { font-size: .7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   TRAINING SECTION (index.html)
═══════════════════════════════════════════════════════════════ */
.training-section { background: var(--bg); }

.training-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.training-path-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.training-path-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.training-path-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.training-path-card.awareness::before { background: linear-gradient(90deg,#10b981,#059669); }
.training-path-card.ir::before        { background: linear-gradient(90deg,#ef4444,#dc2626); }
.training-path-card.forensics::before { background: linear-gradient(90deg,#6366f1,#4f46e5); }
.training-path-num {
  font-size: 0.68rem; font-weight: 800; font-family: 'JetBrains Mono',monospace;
  letter-spacing: 0.08em; margin-bottom: 1.1rem;
}
.training-path-card.awareness .training-path-num { color: #10b981; }
.training-path-card.ir        .training-path-num { color: #ef4444; }
.training-path-card.forensics .training-path-num { color: #6366f1; }
.training-path-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.awareness .training-path-icon { background: rgba(16,185,129,0.12); }
.ir        .training-path-icon { background: rgba(239,68,68,0.12); }
.forensics .training-path-icon { background: rgba(99,102,241,0.12); }
.training-path-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.55rem; }
.training-path-card > p { font-size: 0.85rem; color: var(--text-muted,rgba(255,255,255,0.55)); line-height: 1.6; margin-bottom: 1.1rem; }
.training-path-topics {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1.35rem;
}
.training-path-topic {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
.training-path-topic::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.2);
}
.training-path-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: gap 0.15s;
}
.awareness .training-path-cta { color: #10b981; }
.ir        .training-path-cta { color: #ef4444; }
.forensics .training-path-cta { color: #6366f1; }
.training-path-cta:hover { gap: 0.7rem; }
.training-path-cta svg { width: 14px; height: 14px; }

/* Progress steps bar */
.training-progress-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.training-ps { display: flex; align-items: center; gap: 0; }
.training-ps-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; position: relative;
}
.training-ps-dot.ps-awareness { background: rgba(16,185,129,0.15); color: #10b981; border: 2px solid #10b981; }
.training-ps-dot.ps-ir        { background: rgba(239,68,68,0.15);  color: #ef4444; border: 2px solid #ef4444; }
.training-ps-dot.ps-forensics { background: rgba(99,102,241,0.15); color: #6366f1; border: 2px solid #6366f1; }
.training-ps-label {
  position: absolute; bottom: -1.4rem; white-space: nowrap;
  font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.5);
}
.training-ps-line { width: 80px; height: 1px; background: var(--border); }
@media (max-width: 480px) {
  .training-ps-line { width: 40px; }
  .training-ps-label { font-size: 0.6rem; }
}

/* ── feat-box enhancements ── */
.feat-num {
  font-size: 0.65rem; font-weight: 800; letter-spacing: .08em;
  color: rgba(255,255,255,.18); margin-bottom: .6rem;
  font-family: 'JetBrains Mono', monospace;
}
.feat-new-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(239,68,68,.15); color: #f87171;
  border: 1px solid rgba(239,68,68,.3); border-radius: 3px;
  padding: 1px 5px; vertical-align: middle; margin-left: 4px;
}
.feat-box-breach { border-left-color: #991b1b; }
.feat-box-breach:hover { border-left-color: #ef4444; }
.feat-num-breach { color: rgba(239,68,68,.35); }
.feat-icon-breach { color: #ef4444; }

/* ── Guide di Riferimento ── */
.guide-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.75rem;
}
.guide-table {
  width: 100%; border-collapse: collapse;
  font-size: .82rem; color: rgba(255,255,255,.8);
  min-width: 700px;
}
.guide-table thead {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.guide-table th {
  padding: .75rem 1rem; text-align: left;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  white-space: nowrap;
}
.guide-table td { padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover td { background: rgba(255,255,255,.025); }
.guide-num {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  font-weight: 700; color: rgba(255,255,255,.3); white-space: nowrap;
}
.guide-tool {
  font-weight: 600; color: #fff; white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.guide-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  display: inline-block;
}
.dot-blue   { background: #60a5fa; }
.dot-green  { background: #34d399; }
.dot-amber  { background: #fbbf24; }
.dot-purple { background: #a78bfa; }
.dot-pink   { background: #f472b6; }
.dot-teal   { background: #22d3ee; }
.dot-ai     { background: #818cf8; }
.dot-log    { background: #f97316; }
.dot-breach { background: #f87171; }
.guide-table code {
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: rgba(255,255,255,.55); background: rgba(255,255,255,.06);
  border-radius: 3px; padding: 1px 5px; white-space: nowrap;
}
.guide-row-breach td { background: rgba(153,27,27,.04); }
.guide-new {
  font-size: .6rem; font-weight: 700; letter-spacing: .05em;
  background: rgba(239,68,68,.15); color: #f87171;
  border: 1px solid rgba(239,68,68,.3); border-radius: 3px;
  padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}
.guide-notes {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.1rem 1.25rem;
  background: rgba(16,185,129,.05);
  border: 1px solid rgba(16,185,129,.15);
  border-radius: 8px;
}
.guide-note {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.5;
}
@media (max-width: 640px) {
  .guide-table th, .guide-table td { padding: .6rem .75rem; }
  .guide-notes { padding: .9rem 1rem; }
}
