/* ============================================================
   EGG RP 4.0 - MASTER STYLE SHEET (VERSIONE FINALE)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

:root {
    --bg-dark: #0B0B0D;
    --card-bg: #16161A;
    --egg-yellow: #FFF000;
    --neon-cyan: #00E5FF;
    --neon-green: #39FF14;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --cri-red: #E21F26;
    
    /* Metalli Shop */
    --silver: #C0C0C0;
    --gold: #FFD700;
    --platinum: #E5E4E2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 240, 0, 0.2);
}

.nav-logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--egg-yellow);
    text-shadow: 0 0 10px var(--egg-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--neon-cyan); }

/* --- LAYOUT GENERALE --- */
.container {
    max-width: 1200px;
    margin: 120px auto 50px auto;
    padding: 0 20px;
    text-align: center;
}

/* --- TITOLI --- */
.neon-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--egg-yellow);
    text-shadow: 0 0 15px rgba(255, 240, 0, 0.7);
    font-weight: 900;
    margin-bottom: 10px;
}

.cyan-text { color: var(--neon-cyan); }

.category-title {
    text-align: left;
    margin: 40px 0 20px 0;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* --- GRID & CARD --- */
.fazioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.fazione-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: 0.3s ease;
    text-align: left;
}

.fazione-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

/* --- FAZIONI (Bordi Colorati) --- */
.border-cri { border-left: 5px solid var(--cri-red); }
.border-cm { border-left: 5px solid #4b5320; }
.border-vvff { border-left: 5px solid #FF4500; }
.border-cc { border-left: 5px solid #002244; }
.border-pds { border-left: 5px solid #007FFF; }
.border-gdf { border-left: 5px solid var(--neon-green); }
.border-polpen { border-left: 5px solid #555; }
.border-pl { border-left: 5px solid #FFF; }
.border-ei { border-left: 5px solid #2d5a27; }
.border-cp { border-left: 5px solid var(--neon-cyan); }

/* Nuove Istituzioni */
.border-procura { border-left: 5px solid #722f37; }
.border-tribunale { border-left: 5px solid #555555; }
.border-avvocati { border-left: 5px solid var(--silver); }
.border-prefettura { border-left: 5px solid var(--gold); }
.border-comune { border-left: 5px solid #FFFFFF; }
.border-aci { border-left: 5px solid var(--egg-yellow); }
.border-anas { border-left: 5px solid #FF8C00; }

/* --- STILE BANDI.HTML --- */
.form-section {
    background: rgba(13, 13, 18, 0.95);
    border: 1px solid #222;
    padding: 40px;
    border-radius: 20px;
    margin: 50px auto;
    max-width: 800px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#bando-link-container {
    display: none;
    margin-top: 30px;
    padding: 30px;
    border-top: 1px solid #222;
}

.btn-google-form {
    display: inline-block;
    width: 100%;
    background: var(--egg-yellow);
    color: black;
    text-decoration: none;
    padding: 18px;
    font-weight: 900;
    border-radius: 8px;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-google-form:hover {
    box-shadow: 0 0 25px rgba(255, 240, 0, 0.5);
    transform: translateY(-3px);
}

/* --- FOOTER --- */
footer { padding: 50px; text-align: center; border-top: 1px solid #222; margin-top: 50px; }
footer span { color: var(--neon-cyan); font-weight: 700; }