body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h1, h2 {
    margin-top: 0;
    color: #0b3c5d;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

a {
    color: #0b3c5d;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: #0b3c5d;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
}

button.danger {
    background-color: #c0392b;
}

button.secondary {
    background-color: #777;
}

button:hover {
    opacity: 0.9;
}

input, select {
    padding: 6px;
    width: 100%;
    max-width: 300px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f0f3f7;
}

.nav {
    margin-bottom: 20px;
}

.nav a {
    margin-right: 15px;
}
.logo {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #0b3c5d;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card a {
    text-decoration: none;
    color: #0b3c5d;
    display: block;
}
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header img {
    max-width: 240px;   /* regola qui la dimensione del logo */
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

.header h1 {
    margin: 0;
    font-size: 26px;
    color: #0b3c5d;
}
