:root {
    --primary-color: #2c3e50;
    --bg-color: #f8f9fa;
    --text-light: #ffffff;
    /* Palette Colori Regolamenti */
    --color-aics: #2980b9; /* Blu */
    --color-jsal: #27ae60; /* Verde */
    --color-40:   #8e44ad; /* Viola */
    --color-admin: #34495e;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #fff;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: relative;
}

/* Logo "Virgola" stile Nike */
.logo-container {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo-virgola {
    width: 40px;
    height: 20px;
    border-bottom: 6px solid var(--primary-color);
    border-right: 6px solid var(--primary-color);
    transform: rotate(45deg) skew(25deg);
    margin-right: 20px;
    border-radius: 0 0 5px 0;
}

h1 { 
    margin: 0; 
    font-size: 1.6rem; 
    color: var(--primary-color); 
    text-transform: uppercase; 
}

.admin-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.4rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.admin-trigger:hover { 
    opacity: 1; 
}

main {
    flex-grow: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.regolamenti-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Stile Card Colorate */
.card {
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card h2 { 
    margin: 0; 
    font-size: 1.8rem; 
    font-weight: 800; 
}

.card p { 
    margin: 10px 0 0; 
    opacity: 0.9; 
    font-weight: 300; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Classi Colore */
.bg-aics { background: linear-gradient(135deg, var(--color-aics), #3498db); }
.bg-jsal { background: linear-gradient(135deg, var(--color-jsal), #2ecc71); }
.bg-40   { background: linear-gradient(135deg, var(--color-40), #9b59b6); }

/* Modal Accesso */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 350px;
    text-align: center;
}

input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 1.5rem 0;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
}

.btn-main {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

/* Responsività Mobile */
@media (max-width: 600px) {
    h1 { font-size: 1.3rem; }
    .card { padding: 1.8rem 1rem; }
}