:root {
    --bg: #f5f5f3;
    --card: #ffffff;
    --testo: #1c1c1c;
    --sottotesto: #6b6b6b;
    --bordo: #e8e8e5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--testo);
    padding: 40px 20px 60px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

header {
    margin-bottom: 48px;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--testo);
}

header p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--sottotesto);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card);
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid var(--bordo);
}

h2 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sottotesto);
    margin-bottom: 24px;
    line-height: 1.4;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend {
    width: 100%;
    font-size: 0.85rem;
    color: var(--testo);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
