/* 
 * CSS UNIFICATO PER TUTTE LE SLIDE PLANCIA
 * Garantisce dimensioni consistenti tra slide 1-7
 */

/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #0a0a0a; 
    color: white; 
    height: 100vh; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}

/* NAVIGAZIONE SLIDE */
.slide-nav-dots { 
    position: fixed; 
    top: 25px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 8px; 
    z-index: 100; 
}

.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: #464646; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.dot.active { 
    background: #F16926; 
    width: 35px; 
    border-radius: 6px; 
}

.slide-counter { 
    position: fixed; 
    top: 22px; 
    right: 30px; 
    background: rgba(241, 105, 38, 0.2); 
    border: 2px solid #F16926; 
    border-radius: 50px; 
    padding: 8px 20px; 
    font-weight: 700; 
    color: #F16926; 
    font-size: 1.1rem; 
}

/* HEADER */
.header { 
    text-align: center; 
    padding: 80px 40px 30px 40px; 
}

.header h1 { 
    font-size: 2.8rem; 
    color: #F16926; 
    margin-bottom: 8px; 
    font-weight: 700; 
}

.header p { 
    font-size: 1.3rem; 
    color: #999; 
    font-style: italic; 
}

/* KPI CARDS - DIMENSIONI UNIFICATE */
.kpi-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    max-width: 95%; 
    margin: 0 auto; 
    padding: 0 40px; 
    flex: 1; 
    align-content: start; 
}

.kpi-card { 
    background: #1a1a1a; 
    border: 1px solid #2a2a2a; 
    border-radius: 20px; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    min-height: 380px;  /* ✅ UNIFICATO - tutte le slide uguale altezza */
    max-height: 420px;  /* ✅ UNIFICATO - limite massimo */
}

.kpi-header { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    margin-bottom: 15px; 
}

.kpi-icon { 
    width: 48px; 
    height: 48px; 
    background: #F16926; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem; 
    color: white; 
    flex-shrink: 0; 
}

.kpi-info { 
    flex: 1; 
    min-width: 0; 
}

.kpi-label { 
    font-size: 1rem; 
    color: #F16926; 
    font-weight: 600; 
    margin-bottom: 8px; 
}

.kpi-values { 
    display: flex; 
    gap: 15px; 
    align-items: baseline; 
    flex-wrap: wrap; 
}

.kpi-value { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: white; 
}

.kpi-meta { 
    display: flex; 
    gap: 15px; 
    font-size: 0.95rem; 
    color: #999; 
}

.kpi-change { 
    font-size: 1.1rem; 
    font-weight: 600; 
}

.kpi-change.positive { color: #22c55e; }
.kpi-change.negative { color: #ef4444; }

/* GRAFICI - DIMENSIONI UNIFICATE */
.chart-wrapper { 
    flex: 1; 
    position: relative; 
    min-height: 200px;  /* ✅ UNIFICATO - altezza minima grafico */
    max-height: 250px;  /* ✅ UNIFICATO - altezza massima grafico */
    margin: 12px 0; 
}

/* BOTTONI DETTAGLIO */
.detail-btn { 
    width: 100%; 
    padding: 12px; 
    border: none; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.3s; 
    font-size: 0.95rem; 
    margin-top: auto; 
}

.detail-btn.blue { background: #3b82f6; color: white; }
.detail-btn.red { background: #ef4444; color: white; }
.detail-btn.green { background: #22c55e; color: white; }
.detail-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* NAVIGAZIONE BOTTOM */
.navigation { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 20px; 
}

.nav-btn { 
    background: #F16926; 
    color: white; 
    padding: 15px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.3s; 
    font-size: 1.1rem; 
}

.nav-btn:hover { 
    background: #d85a1f; 
    transform: scale(1.05); 
}

/* BOTTONI TOP */
.comments-btn { 
    position: fixed; 
    top: 22px; 
    right: 150px; 
    background: #F16926; 
    color: white; 
    border: none; 
    border-radius: 25px; 
    padding: 10px 25px; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 1rem; 
}

.dashboard-btn { 
    position: fixed; 
    top: 22px; 
    left: 30px; 
    background: transparent; 
    border: 2px solid #F16926; 
    color: #F16926; 
    border-radius: 25px; 
    padding: 8px 20px; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    font-size: 1rem; 
    transition: all 0.3s; 
}

.dashboard-btn:hover { 
    background: #F16926; 
    color: white; 
}
