/* Layout Generale */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f8f9fa; 
    margin: 0; 
    padding: 0; 
    color: #333; 
}

/* Header TBM */
.tbm-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tbm-container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.tbm-logo img {
    max-height: 65px;
    display: block;
}

.tbm-contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
}

/* Icone Google */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: #3b5898; /* Blu TBM */
    font-size: 20px;
}

/* Container Form e Tabella */
.container { 
    background: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    max-width: 800px; 
    margin: 40px auto; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}

h2 { color: #3b5898; margin-top: 0; }

.error { 
    color: #721c24; 
    background: #f8d7da; 
    padding: 12px; 
    border-radius: 4px; 
    margin-bottom: 20px; 
    border: 1px solid #f5c6cb; 
}

.form-group { position: relative; margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; }

input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ced4da; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 16px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #999;
}

button { 
    width: 100%; 
    padding: 14px; 
    background: #28a745; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold;
    transition: background 0.2s;
}

button:hover { background: #218838; }

.file-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.file-table th { background: #f8f9fa; text-align: left; padding: 12px; border-bottom: 2px solid #dee2e6; }
.file-table td { padding: 12px; border-bottom: 1px solid #eee; }

.btn-dl { 
    background: #007bff; 
    color: white; 
    padding: 8px 16px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 13px; 
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-info { 
    font-size: 0.9em; 
    color: #777; 
    margin-top: 25px; 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .tbm-container-header { flex-direction: column; gap: 15px; text-align: center; }
    .tbm-contact-info { flex-direction: column; gap: 10px; }
}

/* Footer Istituzionale */
.tbm-footer {
    background-color: #3b5898; /* Il blu dell'immagine */
    color: #ffffff;
    padding: 25px 0;
    width: 100%;
    margin-top: 50px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.tbm-container-footer {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    line-height: 1.8;
}

/* Rende il footer sempre attaccato al fondo se la pagina è corta */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1; /* Spinge il footer verso il basso */
}