/*
 * ESILIO FULL RP - STILE CSS PROFESSIONALE
 * Tema: Dark/Futuristico con accenti Rosso e Verde Neon
 */

/* 1. VARIABILI CSS E FONT */
:root {
    --color-primary: #a31533; /* Rosso Profondo */
    --color-secondary: #008000; /* Verde Bandiera */
    --color-dark-main: #0c0c0c; /* Sfondo ultra scuro principale */
    --color-dark-alt: #1a1a1a; /* Sfondo Sezioni e Header */
    --color-text-light: #f0f0f0; /* Testo chiaro */
    --color-text-dim: #aaa; /* Testo Sbiadito/Secondario */
    --color-neon-green: #39FF14; /* VERDE NEON (usato solo per STATUS ONLINE) */
    --color-discord: #7289da; /* Colore Discord */

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* VARIABILI PER L'ANIMAZIONE LOGO TRICOLORE */
    --logo-neon-green: #00ff66; /* Verde Neon Intenso */
    --logo-neon-white: #ffffff; /* Bianco Neon */
    --logo-neon-red: #ff1f5a; /* Rosso Neon Intenso */
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    /* Colore testo e sfondo scuro definiti qui */
    color: var(--color-text-light); 
    background-color: var(--color-dark-main); 
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 2. UTILITY E LAYOUT */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

/* STILI PER SOTTOLINEATURA TITOLI */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5em;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 80px;
    text-transform: uppercase;
    position: relative;
    cursor: default;
}

.section-title span {
    position: relative;
    z-index: 10;
    background-color: transparent;
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Larghezza iniziale */
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-title:hover::after {
    width: 250px; /* Larghezza in hover */
}


/* 3. HEADER E NAVIGAZIONE */
.main-header {
    background: var(--color-dark-alt);
    padding: 10px 0;
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 2000;
    transition: all 0.3s ease;
}

/* STILI PER HEADER SCORSO */
.main-header.scrolled {
    padding: 5px 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.main-header.scrolled .header-logo {
    height: 40px;
}

.main-header.scrolled .logo-text-title {
    font-size: 1.3em;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* GRUPPO LOGO (Container di Immagine + Scritta) */
.logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* STILE NEON TRICOLORE E HOVER */
.header-logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.logo-group:hover .header-logo {
    transform: translateY(-3px) scale(1.02);
}

.logo-text-title {
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 2px;
    transition: font-size 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
}

.logo-group:hover .logo-text-title {
    text-shadow: 0 0 5px var(--logo-neon-white), 0 0 10px var(--logo-neon-red);
    color: #fff;
}

.logo-accent-text {
    color: var(--color-primary);
    font-weight: 900;
    transition: color 0.3s ease;
}

.logo-group:hover .logo-accent-text {
    color: var(--logo-neon-red);
}

/* Stili per la Navigazione */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-right: 30px;
}

.main-nav li:last-child {
    margin-right: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.95em;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 4. PULSANTI */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    margin-top: 0;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(163, 21, 51, 0.4);
}

.btn-primary:hover {
    background: #e61f43;
    border-color: #e61f43;
    box-shadow: 0 8px 25px rgba(163, 21, 51, 0.6);
    transform: translateY(-3px);
}

/* Pulsante Secondario (Bordo) */
.btn-secondary {
    background-color: #00000034;
    color: var(--color-text-light);
    border: 2px solid var(--color-dark-main);
}
.btn-secondary:hover {
    background-color: var(--color-dark-main);
    color: var(--color-dark-bg);
    box-shadow: 0 0 10px rgba(var(--color-dark-main), 0.5);
}

/* STILE MIGLIORATO PER JOIN DISCORD (Glassmorphism) */
.btn-discord {
    background: rgba(114, 137, 218, 0.2);
    color: #fff;
    border: 1px solid rgba(114, 137, 218, 0.8);
    backdrop-filter: blur(8px);
    padding: 10px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(114, 137, 218, 0.6);
    transition: all 0.4s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}

.btn-discord:hover {
    background-color: var(--color-discord);
    border-color: var(--color-discord);
    color: var(--color-dark-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(114, 137, 218, 1);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 21, 51, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(163, 21, 51, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 21, 51, 0); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* 5. SEZIONE HERO (Usata in index.html) */
.hero-section {
    background: url('images/background-rome.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: left;
    background-attachment: fixed;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--color-dark-main) 0%, rgba(12, 12, 12, 0.6) 60%, rgba(12, 12, 12, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px #000;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5.5em;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #fff;
}

.tagline {
    font-size: 1.3em;
    margin-bottom: 50px;
    opacity: 0.9;
}

.hero-actions a {
    margin-right: 20px;
}

/* 6. SEZIONE STATO SERVER */
.status-bar {
    background-color: var(--color-dark-alt);
    padding: 25px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.status-item {
    border-right: 1px solid #333;
    padding: 0 15px;
}

.status-item:last-child {
    border-right: none;
}

.status-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9em;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.status-value {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: #fff; 
}

/* STILE NEON + ANIMAZIONE PER STATUS ONLINE (SOLO ONLINE) */
.status-online {
    color: var(--color-neon-green);
    text-shadow: 0 0 3px var(--color-neon-green);
    animation: neon-glow 2.5s ease-in-out infinite alternate;
}

.ip-address {
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.ip-address:hover {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(163, 21, 51, 0.6);
}

/* 7. FEATURE CARDS (LAYOUT ASIMMETRICO) */
.feature-layout-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.main-feature-title {
    margin-bottom: 30px;
}

.feature-subtitle {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 500;
    color: #fff; 
    line-height: 1;
    margin-bottom: 0;
}

.feature-headline {
    font-family: var(--font-heading);
    font-size: 3.5em;
    font-weight: 900;
    color: var(--color-primary); 
    line-height: 1;
    text-transform: uppercase;
}

.asym-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #ccc;
}

.asym-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: var(--color-dark-alt);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    border-left: 5px solid var(--color-primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #262626;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 5px;
}

.icon-placeholder {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 25px;
    text-transform: uppercase;
    border-radius: 5px;
}

/* Regola per invertire il layout (per alternare immagine e testo) */
.reverse-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}
.reverse-layout .asym-content {
    order: 2; 
}
.reverse-layout .asym-grid-wrapper {
    order: 1; 
}

/* Stili per le liste di dettaglio (UL) */
.asym-content ul {
    list-style: none; 
    padding-left: 0;
    margin-top: 20px;
}

.asym-content li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.asym-content li i {
    margin-right: 10px;
    font-size: 1.1em;
    margin-top: 3px;
    flex-shrink: 0; 
}

/* 8. PAGINE SPECIFICHE (Regolamento, Gameplay, Privacy, Whitelist) */

/* Struttura del Regolamento Grid (Usata anche per Gameplay e Whitelist) */
.regolamento-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    margin-top: 50px;
}

/* Indice laterale fisso */
.sidebar-index {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 20px;
    border-right: 1px solid var(--color-dark-alt);
}

.sidebar-index h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.5em;
    letter-spacing: 1px;
}

.sidebar-index ul {
    list-style: none;
    padding: 0;
}

.sidebar-index li a {
    display: block;
    padding: 8px 0;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    font-size: 1em;
    border-left: 3px solid transparent;
}

.sidebar-index li a:hover, .sidebar-index li a.active {
    color: var(--color-text-light);
    border-left-color: var(--color-primary);
    padding-left: 10px;
}

/* Contenuto Regolamento/Privacy/Whitelist */
.regolamento-content, .policy-content {
    color: var(--color-text-light);
    padding: 0 0 40px 0;
}
.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.regolamento-content h3, .policy-content h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.2em;
    margin-top: 60px;
    padding-top: 20px;
    border-bottom: 2px solid var(--color-dark-alt);
    padding-bottom: 10px;
}
.policy-content h3 {
    /* Stile specifico per h3 della Privacy */
    border-bottom: none;
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
    font-size: 1.8em;
}

.regolamento-content h4 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 3px solid var(--color-secondary); 
    padding-left: 15px;
}

.regolamento-content p, .regolamento-content li, .policy-content p, .policy-content li {
    font-size: 1.05em;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Stili specifici per liste Regolamento/Whitelist */
.regolamento-content ul {
    list-style: none;
    padding-left: 0;
}
.regolamento-content ul li {
    position: relative;
    padding-left: 20px;
}
.regolamento-content ul li::before {
    content: "\f058"; /* check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 3px;
    width: 1.5em;
}
.regolamento-content ul li.note::before {
     content: "\f071"; /* exclamation-triangle */
     color: #ffcc00;
}
/* Stili specifici per liste Privacy */
.policy-content ul {
    padding-left: 40px;
    list-style-type: disc; 
    color: #ddd;
}
.policy-content ul li {
    /* Rimuove l'icona check-circle specifica del regolamento */
    position: static;
    padding-left: 0;
    line-height: 1.6;
}
.policy-content ul li::before {
    content: none;
}


/* 9. CTA SECTION (REGOLAMENTO) */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), #75001c);
    text-align: center;
}

.cta-title {
    color: #fff;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-cta {
    background-color: var(--color-dark-main);
    color: var(--color-primary);
    border-color: var(--color-dark-main);
}

.btn-cta:hover {
    background-color: #333;
    color: #fff;
    box-shadow: none;
}

/* 10. STAFF SECTION */
.staff-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.staff-member-card {
    background-color: var(--color-dark-alt);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #222;
    transition: box-shadow 0.3s ease;
}

.staff-photo-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(163, 21, 51, 0.5);
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.staff-role {
    color: #999;
    font-size: 1em;
}

/* 11. FOOTER V2 (RICOSTRUZIONE COMPLETA) */
.main-footer {
    background-color: #0d0d0d;
    padding: 0; 
    border-top: 5px solid var(--color-primary); 
    margin-top: 80px;
}

.footer-content-v2 {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
    padding: 60px 20px 30px;
}

.footer-branding .logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-light);
    margin-bottom: 15px;
}
.footer-branding .footer-logo {
    width: 60px;
    height: auto;
    margin-right: 10px;
}
.footer-branding .logo-text-title {
    font-family: var(--font-heading);
    font-size: 1.5em;
    margin: 0;
}
.footer-branding .logo-accent-text {
    color: var(--color-primary); 
}

.footer-branding .copyright, .footer-branding .tagline {
    font-family: var(--font-body);
    font-size: 0.9em;
    color: #777;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 0;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}
.social-icon {
    font-size: 1.8em;
    color: var(--color-text-light);
    transition: color 0.3s, transform 0.3s;
}
.social-icon:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* BARRA LEGALE IN FONDO (Developer a SX, Legale a DX) */
.footer-legal-bar {
    grid-column: 1 / -1;
    padding: 15px 0 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    font-size: 0.85em;
    color: #777;
    
    /* LAYOUT: Separazione Sx e Dx */
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 15px; 
}

/* Container dei link legali (Privacy | Termini) */
.footer-legal-bar .legal-links-container {
    display: flex;
    align-items: center;
}

/* STILI PER I LINK A e IL SEPARATORE | */
.footer-legal-bar .legal-links-container a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-legal-bar .legal-links-container a:hover {
    color: var(--color-primary);
}

/* CORREZIONE SPAZIATURA DEFINITIVA */
.footer-legal-bar .legal-links-container a:first-child {
    /* Aggiunge spazio tra "Privacy Policy" e il separatore */
    margin-right: 15px; 
}
.footer-legal-bar .legal-links-container a:last-child {
    /* Aggiunge spazio tra il separatore e "Termini del Servizio" */
    margin-left: 15px; 
}

.footer-legal-bar .legal-links-container span {
    /* Stile per il separatore '|' */
    color: #555;
}


/* Stile per il blocco Developer (che rimane a sinistra) */
.footer-legal-bar .developer-link {
    color: #555; 
    display: flex;
    align-items: center;
}

.footer-legal-bar .developer-link a {
    color: #999; 
    font-weight: 700;
    text-decoration: none; /* MODIFICATO: Rimuove la sottolineatura */
}
.footer-legal-bar .developer-link a:hover {
    color: var(--color-primary);
}

/* Stile per l'icona cuore */
.footer-legal-bar .developer-link .fa-heart {
    color: var(--color-primary);
    margin: 0 4px;
}


#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* KEYFRAMES PER L'EFFETTO NEON PULSANTE */
@keyframes neon-glow {
    0%, 100% {
        text-shadow:
            0 0 5px var(--color-neon-green),
            0 0 10px var(--color-neon-green),
            0 0 20px var(--color-neon-green),
            0 0 40px var(--color-neon-green),
            0 0 80px var(--color-neon-green);
        color: var(--color-neon-green);
    }
    50% {
        text-shadow:
            0 0 2px rgba(57, 255, 20, 0.5),
            0 0 4px rgba(57, 255, 20, 0.5);
        color: rgba(255, 255, 255, 0.9);
    }
}


.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Stile iniziale per l'animazione di scorrimento (Fade In Up) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 13. MEDIA QUERIES (REATTIVITÀ) */
@media (max-width: 1100px) {
    .feature-layout-asymmetric, .reverse-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .asym-content {
        order: 2 !important;
    }
    .asym-grid-wrapper {
        margin-top: 0;
        order: 1 !important;
    }

    .feature-card {
        text-align: center;
        border-left: none;
        border-bottom: 5px solid var(--color-primary);
    }
    .feature-subtitle, .feature-headline {
        text-align: center;
    }
    
    .regolamento-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-index {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 20px;
        border: 1px solid var(--color-dark-alt);
        border-right: none;
        border-radius: 8px;
    }
    .sidebar-index h3 {
        text-align: center;
        margin-bottom: 15px;
    }
    .sidebar-index ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .sidebar-index li a {
        padding: 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        border-left: none;
    }
    .sidebar-index li a:hover, .sidebar-index li a.active {
        border-left-color: transparent;
        padding-left: 10px;
        background-color: var(--color-primary);
        color: var(--color-text-light);
    }

    /* Footer responsive: allinea la barra legale al centro */
    .footer-legal-bar {
        justify-content: center;
    }
    .footer-legal-bar .legal-links-container,
    .footer-legal-bar .developer-link {
        order: 1;
    }
    .footer-legal-bar .developer-link {
        order: 2; /* Sposta il developer sotto i link legali su mobile */
    }
}

@media (max-width: 900px) {
    .hero-content h1 { font-size: 4.5em; }
    .status-grid { grid-template-columns: repeat(2, 1fr); }
    .status-item { border-right: none; border-bottom: 1px solid #333; padding-bottom: 10px; }
    .status-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .asym-grid-wrapper {
        grid-template-columns: 1fr;
    }

    /* Responsive Footer */
    .footer-content-v2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-branding {
        margin-bottom: 20px;
    }
    .footer-branding .logo-group {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-legal-bar {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .footer-legal-bar .legal-links-container,
    .footer-legal-bar .developer-link {
        order: initial;
    }
}

@media (max-width: 600px) {
    .header-content { flex-direction: column; }
    .logo-group { margin-bottom: 10px; }
    .main-nav ul { margin-top: 15px; }
    .main-nav li { margin-right: 15px; }
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 3.5em; }
    .hero-actions { display: flex; flex-direction: column; gap: 10px; }
    .hero-actions a { margin-right: 0; }
    .status-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5em; }
}

/* ==========================================================
   15. STILI PAGINA STAFF (REVISIONATO FINALE)
   ========================================================== */

/* --- STILI PAGINA INTERNA (Esempio: Staff/Regolamento) --- */
/* (Header con immagine di sfondo e overlay) */
.page-hero-section {
    padding-top: 150px; 
    padding-bottom: 70px; 
    text-align: center;
    position: relative;
    /* Da ricordare: creare images/page-hero-bg.jpg */
    background: url('images/page-hero-bg.jpg') no-repeat center center/cover; 
    overflow: hidden; 
}
.page-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-overlay); 
    z-index: 1; 
}
.page-hero-section .container {
    position: relative;
    z-index: 2; 
}
.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem; 
    color: var(--color-light);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3);
}
.page-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}


/* --- STILI SEZIONE STAFF --- */

.staff-section {
    padding-top: 40px;
    padding-bottom: 100px;
    background-color: #050505; 
}

/* Stile per l'intestazione di sezione (Titolo H2 - Genitore) */
#full-staff .section-title {
    text-align: center; 
    margin-bottom: 40px;
    padding-bottom: 5px;
    border-bottom: none; /* RIMOSSO */
}

/* Stile per il contenuto del titolo (SPAN) - GRANDEZZA AUMENTATA e LINEA RIMOSSA */
.section-title span {
    font-size: 1.8rem; 
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    color: var(--color-light);
    position: relative;
    padding-bottom: 10px; 
    border-bottom: none; /* RIMOSSO */
}

/* CONTENITORE GRIGLIA PRINCIPALE */
.staff-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px;
    margin-bottom: 50px;
}

/* CARD SINGOLA (Base) */
.staff-member-card {
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #1a1a1a; 
    border-radius: 12px;
    background-color: #0c0c0c; 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    height: 100%; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover (Micro-interazione premium) */
.staff-member-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-primary-rgb), 0.5); 
    box-shadow: 0 15px 30px rgba(var(--color-primary-rgb), 0.1), 0 0 5px rgba(var(--color-primary-rgb), 0.1);
}

/* Immagine Profilo */
.staff-photo-wrapper {
    margin-bottom: 20px;
}
.staff-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-primary); 
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
}

/* Nomi */
.staff-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-light);
}

/* Ruoli (Minimalista, Orbitron) */
.staff-role {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 0 10px;
    border-bottom: 1px dotted #222; 
}

/* Descrizione */
.staff-desc {
    color: #a0a0a0;
    font-size: 1em;
    margin-top: 20px;
    line-height: 1.5;
}

/* Colori di Accento per i Ruoli */
.staff-role-owner { color: #ffd700; } 
.staff-role-founder { color: #ffd700; } 
.staff-role-cofounder { color: #ffd700; } 
.staff-role-dev-game { color: #00bcd4; } 
.staff-role-web-dev { color: #4caf50; } 


/* CARD SPECIALE WEB DEVELOPER (Full Width e Centrata) */
.staff-member-card.full-width {
    grid-column: 1 / -1; 
    max-width: 900px; 
    margin: 20px auto 0 auto; 
    background-color: #1a1a1a; 
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.3); 
    padding: 50px 40px; 
    display: flex; 
    align-items: center;
    text-align: left;
}
.full-width .staff-photo-wrapper {
    margin: 0 40px 0 0; 
    flex-shrink: 0;
}
.full-width .staff-name {
    margin-top: 0;
    font-size: 1.8rem;
}

/* Separatore */
.separator {
    width: 100%;
    height: 1px;
    background-color: #222;
    margin: 80px 0;
}

/* Media Query STAFF */
@media (max-width: 768px) {
    .staff-grid-layout {
        grid-template-columns: 1fr;
    }
    .staff-member-card.full-width {
        flex-direction: column; 
        text-align: center;
    }
    .full-width .staff-photo-wrapper {
        margin: 0 0 20px 0;
    }
    .page-title {
        font-size: 3rem;
    }
    /* Dimensione dei titoli H2 su mobile per evitare wrap */
    .section-title span {
        font-size: 1.4rem;
    }
}

/* ==========================================================
   16. STILI PAGINE LEGALI (Termini/Privacy/Regolamento)
   ========================================================== */

.legal-content-wrapper {
    line-height: 1.8; /* Aumenta l'interlinea per leggibilità */
}

/* Stile per i link all'interno del contenuto legale: ARANCIONE E GRASSETTO */
.legal-content-wrapper a {
    color: var(--color-primary) !important; /* Forza l'arancione di accento */
    font-weight: bold; /* Grassetto richiesto */
    text-decoration: none !important; /* Rimuovi sottolineatura fissa */
    transition: color 0.3s ease;
}
.legal-content-wrapper a:hover {
    color: #ff9900 !important; /* Arancione leggermente più chiaro all'hover */
    text-decoration: underline !important; /* Ritorna la sottolineatura all'hover */
}

/* Rimuovi tutti gli stili per l'Indice Rapido (TOC) */
.legal-toc {
    display: none; 
}


/* Stili per le sezioni interne */
.legal-content-wrapper h3 {
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #333;
}

.legal-block {
    margin-bottom: 30px;
}

.legal-block p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 1em;
}

@media (max-width: 768px) {
    /* (Opzionale: Aggiungi qui media queries specifiche se necessario) */
}