/* ============================================================
   CSS MASTER - STUDIO TECNICO CALCHERA (Versione 21.1 FINAL)
   Theme: Metal-Fire (Titanio & Accenti Arancio)
   Update: Tasto Back Titanio Lucido (Meno aggressivo)
   ============================================================ */

/* --- 1. RESET E VARIABILI --- */
* { box-sizing: border-box; }
:root {
    --brand: #ce420c;       /* Arancio Leadership */
    --metal-dark: #222222;  /* Titanio Scuro */
    --gunmetal: #444444;    /* Canna di fucile */
    --silver: #e0e0e0;      /* Argento Satinato */
}

body { 
    font-family: 'Roboto', sans-serif; margin: 0; padding: 20px 0; 
    background: #dcdcdc; color: #333; line-height: 1.6; 
}

/* --- 2. STRUTTURA WRAPPERS --- */
#wrapper-menu-top, #wrapper-header, #wrapper-content, #wrapper-footer { 
    max-width: 1200px; margin: 0 auto; width: 95%; overflow: hidden; 
}

/* --- 3. MENU TOP (HI-TECH CON HOVER ARANCIO) --- */
#wrapper-menu-top { 
    background: linear-gradient(to bottom, #444 0%, #111 100%) !important; 
    border-bottom: 2px solid #000; border-top: 1px solid #666; 
}
#menu-top ul { list-style: none; display: flex; justify-content: center; margin: 0; padding: 0; flex-wrap: wrap; }
#menu-top ul li a { 
    color: #ccc !important; text-decoration: none; padding: 16px 20px; 
    font-size: 13px; font-weight: 700; text-transform: uppercase; display: block; 
    border-right: 1px solid #333; transition: 0.25s; 
}
#menu-top ul li a:hover { 
    background: #000 !important; color: #fff !important; 
    box-shadow: inset 0 -4px 0 0 var(--brand); /* Linea arancio sottile */
}

/* --- 4. HEADER ARGENTO --- */
#wrapper-header { background: linear-gradient(to right, #999 0%, #e0e0e0 50%, #999 100%) !important; border-bottom: 1px solid #666; }
#header h1 { font-size: 24px; text-transform: uppercase; margin: 0; padding: 25px 10px; text-align: center; font-weight: 900; color: #000 !important; text-shadow: 1px 1px 0px rgba(255,255,255, 0.6); }

/* --- 5. CONTENUTI --- */
#wrapper-content { background: #fff; display: flex; gap: 40px; padding: 45px; border: 1px solid #ccc; box-shadow: 0 0 15px rgba(0,0,0,0.1); }
#content { flex: 3; min-width: 0; }
#wrapper-menu-page { flex: 1; min-width: 280px; }

#content h2 { color: #000; border-bottom: 2px solid var(--brand); padding-bottom: 12px; text-transform: uppercase; font-weight: 800; font-size: 22px; margin-top: 0; }
#content h3 { color: #444; font-size: 19px; border-bottom: 1px solid #eee; margin-top: 30px; font-weight: 700; text-transform: uppercase; }

/* --- 6. SIDEBAR: HUB BUTTONS (TITANIO) --- */
.sidebar-hub-nav { margin-bottom: 30px; }
.side-hub-btn {
    display: block; background: linear-gradient(to bottom, #444, #222); color: #e0e0e0 !important;
    padding: 12px; margin-bottom: 8px; text-decoration: none; text-align: center;
    font-weight: 900; font-size: 11px; text-transform: uppercase; border: 1px solid #666;
    border-radius: 4px; transition: all 0.3s ease;
}
.side-hub-btn:hover { background: var(--brand); color: #fff !important; border-color: #fff; transform: translateX(5px); }
.side-hub-btn.active { background: #fff; color: #000 !important; border: 2px solid var(--brand); font-weight: 900; }

/* --- 7. SIDEBAR: RISORSE TOP (LOOK BOX) --- */
.sidebar-list { list-style: none !important; padding: 0 !important; margin: 0; }
.sidebar-list li { margin-bottom: 8px; }
.sidebar-list a { 
    display: block; background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%); 
    border: 1px solid #ccc; border-left: 4px solid #999; padding: 12px 15px; 
    text-decoration: none; color: #444 !important; font-size: 12px; font-weight: 700; 
    text-transform: uppercase; border-radius: 0 4px 4px 0; transition: all 0.3s ease; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.sidebar-list a:hover { 
    background: #000 !important; color: #fff !important; 
    border-left: 4px solid var(--brand); border-color: #000;
    transform: translateX(8px);
}

/* --- 8. ELEMENTI COMUNI --- */
.authority-badge-metal { background: #fff !important; color: #000 !important; border: 2px solid #999 !important; padding: 15px; border-radius: 4px; text-align: center; margin-bottom: 25px; font-weight: 700; }
.formula-box { background: #fff8f1; border: 1px solid var(--brand); padding: 15px; border-radius: 8px; margin: 20px 0; font-size: 0.9em; font-weight:bold; border-left: 5px solid var(--brand); }

/* --- 9. PULSANTI (VERSIONE 21.1) --- */
.btn-chiama, .btn-scrivi, .btn-metal-back { 
    display: block; width: 100%; text-align: center; font-weight: bold; padding: 14px; 
    margin-bottom: 10px; background: linear-gradient(to bottom, #e6e6e6, #bfbfbf) !important; 
    color: #222 !important; border: 1px solid #888 !important; cursor: pointer; 
    text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: all 0.3s ease;
}

/* Chiama/Scrivi: Diventano Arancio */
.btn-chiama:hover, .btn-scrivi:hover { 
    background: var(--brand) !important; color: #fff !important; border-color: #000 !important; 
}

/* Tasto Back: Diventa Titanio Lucido (NON ROSSO) */
.btn-metal-back { 
    width: auto !important; min-width: 280px; display: inline-block !important; 
    border: 2px solid #555 !important; 
}
.btn-metal-back:hover {
    background: linear-gradient(to bottom, #ffffff, #dddddd) !important; 
    color: #000 !important; 
    border-color: var(--brand) !important; /* Solo bordo arancio */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- 10. PROTEZIONE IMMAGINI --- */
img { max-width: 100% !important; height: auto !important; display: block; margin: 20px auto; border: 1px solid #ddd; padding: 4px; background: #fff; }

/* --- 11. FOOTER SLIM --- */
#wrapper-footer { background: linear-gradient(to bottom, #333 0%, #111 100%) !important; color: #ccc !important; padding: 15px 20px !important; text-align: center; border-top: 3px solid var(--brand); }
#footer strong { color: #fff; font-size: 14px; }
#footer a { color: #fff !important; text-decoration: none; font-weight: 700; }
#footer a:hover { color: var(--brand) !important; }
.footer-spam-note { font-size: 10px; margin-top: 5px !important; opacity: 0.6; }

@media (max-width: 850px) { #wrapper-content { flex-direction: column; padding: 25px; } #header h1 { font-size: 18px; } }