/* 1. Regole base per tutti */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Serve per l'altezza, ma non blocca lo scroll */
  background-color: #0F172A;
}

/* 2. Regola specifica per le pagine STATICHE (Home, Blog, ecc.) */
/* Permette lo scroll verticale se il contenuto è lungo */
body {
  overflow-y: auto !important; 
  overflow-x: hidden;
}

/* 3. Regola specifica per l'APP TypeScript */
/* Blocca lo scroll del browser solo dentro l'app, così i Tab restano fermi */
#root {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* L'app non deve scorrere, scorre il contenuto interno */
  position: fixed; /* Tiene l'app ancorata ai bordi dello schermo */
}

/* Se l'app è vuota (pagine statiche), non vogliamo che il fixed rompa tutto */
#root:empty {
  display: none;
  position: relative;
}

:root {
    /* Colors */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #06B6D4;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --background: #0F172A;
    --background-light: #1E293B;
    --surface: #1E293B;
    --surface-light: #334155;
    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --border: #334155;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.cta-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.article-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.info-box {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.bold {
    font-weight: 700;
    color: var(--text);
}

.service-item {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--border);
}

.primary-link {
    color: var(--primary);
    text-decoration: underline;
}

.footer-text {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

ul {
    color: var(--text-secondary);
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}