/* --- Reset minimale --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* --- Variabili --- */
:root {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #e6e8eb;
    --muted: #9aa0a6;
    --accent: #6ea8fe;
    --radius: 12px;
    --maxw: 720px;
}

/* --- Base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header, main, footer {
    width: 100%;
    max-width: var(--maxw);
}

/* --- Header --- */
header {
    padding: 2rem 0 3rem;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--muted);
    font-size: 1rem;
}

/* --- Sezioni --- */
section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.04);
}

section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

section p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

section p:last-child { margin-bottom: 0; }

/* --- Link e bottoni --- */
a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover { opacity: 0.75; }

.button {
    display: inline-block;
    background: var(--accent);
    color: #0b0d12;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.button:hover {
    opacity: 0.9;
    color: #0b0d12;
}

/* --- Footer --- */
footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- Mobile --- */
@media (max-width: 500px) {
    body { padding: 1rem 0.75rem; }
    header { padding: 1.5rem 0 2rem; }
    header h1 { font-size: 1.7rem; }
    section { padding: 1.25rem; }
}
/* --- Sfondo interattivo --- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at top, #1a1f2e 0%, #0f1115 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #6ea8fe;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #b06efe;
    bottom: -150px;
    right: -150px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #4fd1c5;
    top: 40%;
    left: 50%;
    opacity: 0.3;
}

/* Assicura che il contenuto stia sopra */
body > header,
body > main,
body > footer {
    position: relative;
    z-index: 1;
}

/* Disabilita su mobile per performance */
@media (max-width: 768px) {
    .orb {
        filter: blur(60px);
        opacity: 0.35;
    }
}

/* Rispetta le preferenze di accessibilità */
@media (prefers-reduced-motion: reduce) {
    .orb { transition: none; }
}
