/* ===== RESET BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 16px; 
    line-height: 1.6; 
    color: #000; 
    background: #fff; 
    padding: 15px;
    max-width: 1800px; /* ESPANSO: era 1400px */
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header { 
    padding: 25px 0; /* RIDOTTO: era 30px */
    border-bottom: 2px solid #000; 
    margin-bottom: 25px; /* RIDOTTO: era 30px */
}

.header h1 { 
    font-size: 42px; 
    font-weight: bold;
    margin-bottom: 5px;
}

.header p { 
    font-size: 22px; 
    color: #666; 
}

/* ===== NAVIGAZIONE SETTIMANA ===== */
/* NOTA: Non serve nella pagina service, ma manteniamo per coerenza */
.week-nav { 
    display: none; /* Nascondiamo perché non serve qui */
}

/* ===== CONTENUTO SERVICE ===== */
.service-content {
    text-align: center;
    padding: 60px 20px;
}

.service-content h2 {
    font-size: 34px;
    font-weight: normal;
    margin-bottom: 30px;
}

.service-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-buttons {
    margin-bottom: 40px;
}

.service-buttons button,
.service-buttons a {
    display: inline-block;
    padding: 15px 40px;
    margin: 10px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.service-buttons button:hover,
.service-buttons a:hover {
    background: #000;
    color: #fff;
}

.btn-import {
    border-color: #c00 !important;
    color: #c00 !important;
}

.btn-import:hover {
    background: #c00 !important;
    color: #fff !important;
}

.btn-export {
    border-color: #060 !important;
    color: #060 !important;
}

.btn-export:hover {
    background: #060 !important;
    color: #fff !important;
}

.btn-back {
    border-color: #666 !important;
    color: #000000 !important;
    margin-top: 20px !important;
}

.btn-back:hover {
    background: #000000 !important;
    color: #fff !important;
}

.warning {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #333;
    padding: 7px;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    text-align: center;
}

.warning strong {
    color: #c00;
}

/* ===== FOOTER ===== */
.footer { 
    padding: 25px 0; /* RIDOTTO: era 30px */
    border-top: 2px solid #000; 
    margin-top: 10px; 
    font-size: 18px; 
    color: #666;
    text-align: center;
}

.footer a { 
    color: #666; 
    text-decoration: none; 
}

.footer a:hover { 
    color: #000; 
    text-decoration: underline;
}

/* ===== MESSAGGIO DI STATO ===== */
#statusMessage { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    padding: 15px 25px; 
    background: #000; 
    color: #fff; 
    font-size: 14px; 
    display: none;
    z-index: 1000;
}

#statusMessage.show { 
    display: block;
}

/* ===== STATUS MODULI ===== */
.module-status {
    background: #f0f8ff;
    border: 1px solid #87ceeb;
    color: #333;
    padding: 20px;
    max-width: 600px;
    margin: 30px auto 0;
    font-size: 16px;
    text-align: left;
}

.module-status strong {
    color: #0066cc;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.module-item {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.module-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.module-ok {
    color: #060;
}

.module-warning {
    color: #c60;
}

.module-error {
    color: #c00;
}

.module-na {
    color: #999;
}

/* ===== LOADER ===== */
.loader {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
