* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Rajdhani', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a0033 100%);
    color: #e0e0ff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container fluido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Header responsive */
header {
    background: rgba(138, 0, 255, 0.15);
    padding: 20px 15px;
    text-align: center;
    border-bottom: 3px solid #a100ff;
    margin-bottom: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(161,0,255,0.2);
}
h1 { 
    font-size: 2.5rem; 
    color: #a100ff; 
    text-shadow: 0 0 20px #a100ff; 
}
h2 { 
    font-size: 1.8rem; 
    margin: 20px 0; 
    color: #c34fff;
}

/* Pulsanti */
.btn {
    display: inline-block;
    padding: 14px 28px;
    margin: 8px;
    background: #a100ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(161,0,255,0.5);
    text-align: center;
    min-width: 140px;
}
.btn:hover {
    background: #c34fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 30px rgba(195,79,255,0.9);
}
.btn-danger { background: #ff0066; box-shadow: 0 0 20px rgba(255,0,102,0.5); }
.btn-danger:hover { background: #ff3385; }

/* Form e input responsive */
form {
    background: rgba(30,0,60,0.8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(161,0,255,0.3);
    margin: 20px 0;
}
input, select, textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    background: rgba(255,255,255,0.1);
    border: 2px solid #a100ff;
    border-radius: 8px;
    color: white;
    font-size: 16px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c34fff;
    box-shadow: 0 0 15px rgba(195,79,255,0.6);
}

/* Griglie responsive */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
}
@media (min-width: 768px) {
    .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tabelle responsive */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(161,0,255,0.2);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20,0,40,0.6);
    margin: 20px 0;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #a100ff;
}
th {
    background: rgba(161,0,255,0.3);
    color: #fff;
    font-weight: bold;
}
tr:hover {
    background: rgba(161,0,255,0.15);
}

/* Mobile ottimizzazioni */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .btn {
        padding: 16px 20px;
        width: 100%;
        margin: 10px 0;
    }
    header { padding: 15px; }
    form { padding: 20px; }
    .container { padding: 10px; }
}

/* Pulsante grande centrale (torna al sito) */
.big-btn {
    display: block;
    width: 90%;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    font-size: 1.4rem;
    background: linear-gradient(45deg, #00ff9d, #00cc7a);
    box-shadow: 0 0 30px rgba(0,255,157,0.7);
    border-radius: 15px;
}
.big-btn:hover {
    background: linear-gradient(45deg, #00cc7a, #00ff9d);
    transform: scale(1.05);
}