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

:root {
    --bg-primary: #0a0118;
    --bg-secondary: #1a0b2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="azzurro"] {
    --bg-primary: #e0f7fa;
    --bg-secondary: #b2ebf2;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #006064;
    --text-secondary: #00838f;
    --accent-primary: #00acc1;
    --accent-secondary: #0097a7;
    --border-color: #80deea;
}

[data-theme="nero"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-primary: #444444;
    --accent-secondary: #666666;
    --border-color: rgba(255, 255, 255, 0.08);
}

.status-indicator.manutenzione {
    background-color: orange;
}

.status-badge.manutenzione {
    color: orange;
}

.status-indicator.sviluppo {
    background-color: blue;
}

.status-badge.sviluppo {
    color: blue;
}

[data-theme="bianco"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --text-primary: #111111;
    --text-secondary: #6b7280;
    --accent-primary: #7c3aed;
    --accent-secondary: #db2777;
    --border-color: #e5e7eb;
}

[data-theme="verde"] {
    --bg-primary: #0a1f0a;
    --bg-secondary: #0f2d0f;
    --bg-card: rgba(0, 255, 0, 0.05);
    --text-primary: #ccffcc;
    --text-secondary: rgba(150, 255, 150, 0.7);
    --accent-primary: #22c55e;
    --accent-secondary: #16a34a;
    --border-color: rgba(34, 197, 94, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}


.staff-fixed-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}
.staff-fixed-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.6);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
}
.theme-toggle:hover { transform: scale(1.05); border-color: var(--accent-primary); }

/* Color picker dropdown */
.color-picker-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.color-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    gap: 8px;
    flex-direction: column;
    min-width: 160px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.color-dropdown.open {
    display: flex;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
}
.color-option:hover { background: var(--bg-card); }
.color-option .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.2;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.2; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 0.3; }
}

.logo {
    font-size: 140px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -8px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 750px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(139, 92, 246, 0.6); }
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: var(--accent-primary); transform: translateY(-3px); }

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

.section-title {
    font-size: 52px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 32px;
    padding: 60px;
    backdrop-filter: blur(20px);
    text-align: center;
}
.about-box p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
}
.about-box p strong { color: var(--text-primary); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.feature-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.feature-description { color: var(--text-secondary); line-height: 1.8; font-size: 15px; }

.platforms {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 60px 0;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 36px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s ease;
    min-width: 160px;
    backdrop-filter: blur(20px);
}
.platform-badge:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.platform-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.platform-icon svg { width: 40px; height: 40px; fill: white; }
.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.discord { background: linear-gradient(135deg, #5865F2, #404EED); }
.telegram { background: linear-gradient(135deg, #0088cc, #229ED9); }
.platform-name { font-size: 18px; font-weight: 700; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 45px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent-primary); }
.stat-number {
    font-size: 58px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
.stat-label { color: var(--text-secondary); font-size: 18px; font-weight: 600; }

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 50px 0 80px;
}

.status-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}
.status-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); }

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 2s infinite;
}
.status-indicator.online { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.status-indicator.offline { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: none; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-info { flex: 1; }
.status-name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.status-text { font-size: 13px; color: var(--text-secondary); }

.status-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 50px;
}
.status-badge.online { color: #22c55e; background: rgba(34,197,94,0.12); }
.status-badge.offline { color: #ef4444; background: rgba(239,68,68,0.12); }

.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 32px;
    margin: 60px 0;
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.4);
}
.cta-box h2 { font-size: 44px; margin-bottom: 16px; color: white; }
.cta-box p { font-size: 20px; color: rgba(255,255,255,0.9); margin-bottom: 36px; }
.cta-box .btn { background: white; color: var(--accent-primary); }

footer {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .logo { font-size: 90px; }
    h1 { font-size: 36px; }
    .subtitle { font-size: 18px; }
    .section-title { font-size: 36px; }
    .about-box { padding: 36px 24px; }
}