:root {
  --bg-main: #050608;
  --bg-elevated: #0b0f14;
  --bg-card: #0f141b;
  --accent: #00ff9d;
  --accent-soft: rgba(0, 255, 157, 0.2);
  --text-main: #f5f7fa;
  --text-muted: #9aa4b5;
  --border-subtle: #1b222c;
  --danger: #ff4b6e;
  --shadow-soft: 0 0 25px rgba(0, 255, 157, 0.12);
  --radius: 10px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Menlo, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0b1018 0, #020308 55%, #000 100%);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

/* Layout generale */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin: 12px auto 10px;
  max-width: 1200px;
  background: linear-gradient(135deg, rgba(11, 15, 20, 0.96), rgba(7, 10, 16, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 8px;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.main-nav a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: rgba(0, 255, 157, 0.06);
}

/* Ticker */

.ticker {
  max-width: 1200px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.ticker-title {
  background: linear-gradient(135deg, #ff4b6e, #ff9f43);
  color: #050308;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-content {
  background: radial-gradient(circle at left, rgba(0, 255, 157, 0.18), rgba(5, 8, 14, 0.98));
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 157, 0.25);
  padding: 8px 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker-content::before {
  content: "●";
  color: var(--accent);
  margin-right: 8px;
  font-size: 0.7rem;
}

.ticker-item {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-main);
  animation: ticker-scroll 26s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-60%); }
}

/* Contenuto principale */

.main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card news */

.news-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(11, 15, 22, 0.98), rgba(6, 9, 15, 0.98));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 255, 157, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-card:hover::before {
  opacity: 1;
}

.news-card img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-content h2 {
  font-size: 1rem;
  margin: 0;
}

.news-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-box {
  background: linear-gradient(145deg, rgba(11, 15, 22, 0.98), rgba(6, 9, 15, 0.98));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.sidebar-box h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Feed */

.feed-item {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding: 6px 0;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Meteo / Oroscopo */

.meteo-city {
  font-weight: 600;
}

.meteo-temp {
  font-size: 1.2rem;
  color: var(--accent);
}

.meteo-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  max-width: 1200px;
  margin: 18px auto 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(0, 255, 157, 0.12), rgba(5, 8, 14, 0.98));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-nav a:hover {
  color: var(--accent);
}
/* HERO SECTION — Minimal Cyber */
.hero {
  width: 100%;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
  border-bottom: 1px solid var(--accent-soft);
  margin-bottom: 40px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.6rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,255,157,0.4);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: 0.25s;
}

.hero-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0,255,157,0.4);
}

/* Typewriter effect */
.typewriter {
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  0% { border-color: var(--accent); }
  50% { border-color: transparent; }
  100% { border-color: var(--accent); }
}
/* ================================
   NEWS CARD — CYBER UPGRADE
   ================================ */

.news-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.35s ease;
  box-shadow: 0 0 0 rgba(0, 255, 157, 0);
  transform: translateY(0);
  backdrop-filter: blur(4px);
}

.news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
  transform: translateY(-6px);
}

/* Immagine con zoom */
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.4s ease;
  filter: brightness(0.85);
}

.news-card:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* Contenuto */
.news-content {
  padding: 18px;
}

/* Categoria neon */
.news-card .category {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
  transition: 0.3s ease;
}

.news-card:hover .category {
  background: rgba(0, 255, 157, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

/* Titolo */
.news-card h2 {
  font-size: 1.25rem;
  margin: 10px 0;
  color: var(--text);
  transition: 0.3s ease;
}

.news-card:hover h2 {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

/* Excerpt */
.news-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Tempo */
.news-card .time {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}
/* ================================
   ULTIME DAL MONDO CYBER
   ================================ */

.cyber-feed {
  margin: 40px 0;
  padding: 20px;
  border: 1px solid rgba(0,255,157,0.15);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

.section-title {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(0,255,157,0.4);
}

.cyber-feed-list div {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,255,157,0.1);
}

.cyber-feed-list div:last-child {
  border-bottom: none;
}

.cyber-feed-list a {
  color: var(--text);
  text-decoration: none;
  transition: 0.25s;
}

.cyber-feed-list a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,255,157,0.4);
}
/* ================================
   SOC DASHBOARD — CYBER UPGRADE
   ================================ */

.soc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 20px;
}

.soc-card {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(0,255,157,0.15);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(4px);
  transition: 0.3s ease;
}

.soc-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0,255,157,0.3);
}

/* Threat Level */
.threat-level {
  font-size: 2rem;
  font-family: var(--font-mono);
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(0,255,157,0.4);
}

/* Event Log */
.event-log {
  height: 220px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-right: 10px;
}

.event-log div {
  margin-bottom: 6px;
}

/* System Status */
.system-status li {
  margin-bottom: 8px;
  font-family: var(--font-mono);
}




