:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark-bg: #1a202c;
    --sidebar-grad: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    
    --color-nginx: #1a202c; /* La tua tinta piatta */
    --color-node: #6866ea;
    --color-mongo: #38a169;
    --color-socketproxy: #1D63ED;
}

.text-primary { color: var(--primary) !important; }

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-size: 0.85rem;
    padding: 20px 0;
}

/* CONTAINER PRINCIPALE */
.cv-container {
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    border: none;
}

/* SIDEBAR */
.sidebar {
    background: var(--sidebar-grad);
    color: white;
    padding: 15px 25px;
}

.profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    /*background: #2d3748 url('/images/bio.jpg') no-repeat center center / 106%;*/
    background-position: center center;
    background-size: 106%;
    background-repeat: no-repeat;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,0.2);
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: normal;
}

.job-subtitle {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* SEZIONI */
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 30px 0 15px;
    color: var(--primary);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 8px;
}

.contact-item {
    font-size: 0.75rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #cbd5e0;
    text-decoration: none;
}
.contact-item i { margin-right: 10px; color: var(--primary); width: 15px; }

.contact-info .data, 
.contact-info .data a, 
.contact-info .data a:hover, 
.contact-info .data a:active, 
.contact-info .data a:visited,
.contact-info .data a:link,
.contact-info .data a:focus {
    margin-bottom: 12px;
    color: #cbd5e0;
    text-decoration: none;
}

.skill-tag {
    background: rgba(102, 126, 234, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #e2e8f0;
    border: 1px solid rgba(102, 126, 234, 0.3);
    display: inline-block;
    margin: 2px;
}

/* CONTENUTO DESTRO */
.main-content {
    padding: 40px;
    background: white;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 20px;
}

.bio {
    /*font-size: 12px;*/
    line-height: 1.7;
    color: #4a5568;
    max-width: 95%;
}

.stats-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    border-radius: 12px;
    /*display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;*/
    display: flex;
}

.stat-box {
    text-align: center;
    container-type: inline-size;
}

.stat-number {
    font-weight: 700;
    display: block;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;;
}

/* Container della stat */


/* Gauge circolare con CSS progress */
.gauge-wrapper {
    display: inline-flex;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 50%;
    /*background: conic-gradient(#667eea 100%, #e2e8f0 0);*/
    /*background-color: var(--primary);
    background: radial-gradient(var(--primary) 40%, var(--secondary) 80%);
    */
    background-color: var(--primary);
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: --value 1.5s ease-out;
    
}

/* Foro interno del gauge */
/*
.gauge-wrapper::after {
    content: "";
    position: absolute;
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
}
*/

/* Numero animato */
.gauge-wrapper .stat-number {
    position: relative;
    z-index: 1;
    font-size: 25cqi;
    font-weight: 700;
    color: #fff;
}
.gauge-wrapper .plus {
    z-index: 1; 
    position: relative; 
    font-weight: bold; 
    font-size: 14cqi;
    color: #fff;
}

/* TIMELINE */
.timeline {
    border-left: 2px solid #edf2f7;
    padding-left: 25px;
    position: relative;
}
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
}

.company {
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.period {
    font-size: 10px;
    color: #718096;
    font-weight: 600;
}

ul.achievements  {
    list-style: none;
    padding-left: 1rem;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.edu-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    height: 100%;
}

@media (max-width: 991px) {
    .main-content { padding: 30px 20px; }
    .sidebar { text-align: center; padding-bottom: 60px }
    .contact-item { justify-content: center; }
    .section-title::after { left: 50%; transform: translateX(-50%); }
}
/* 
Incolla qui il CSS del tuo layout precedente 
body { background-color: #f4f7f6; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.cv-container { display: flex; max-width: 1200px; margin: 30px auto; background: white; box-shadow: 0 0 20px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; }
.sidebar { width: 350px; background-color: #2c3e50; color: white; padding: 40px 30px; }
.main-content { flex: 1; padding: 50px; }
.section-title { border-bottom: 2px solid #3498db; margin-bottom: 20px; padding-bottom: 5px; font-weight: bold; text-transform: uppercase; color: #2c3e50; }
.sidebar .section-title { color: #ecf0f1; border-color: #3498db; margin-top: 30px; }
.stat-box { background: #ecf0f1; padding: 15px; border-radius: 8px; text-align: center; flex: 1; margin: 0 10px; }
.stat-number { display: block; font-size: 24px; font-weight: bold; color: #3498db; }
.skill-tag { background: #34495e; color: white; padding: 4px 10px; border-radius: 4px; display: inline-block; margin: 2px; font-size: 12px; }
.timeline-item { margin-bottom: 30px; border-left: 2px solid #3498db; padding-left: 20px; position: relative; }
*/


.x-small { font-size: 0.75rem; color: #6c757d; line-height: 1.2; display: block; }
.x-small { font-size: 0.7rem; line-height: 1.2; display: block; }
.arch-container svg { filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05)); }

.accordion-button,
.accordion-button.collapsed,
.accordion-button:hover {
    background-color: #fff !important;
}
.accordion-button,
.accordion-button:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}


.nginx.color_100 { fill: var(--color-nginx); }
.nginx.color_90 { fill: color-mix(in srgb, var(--color-nginx), white 10%); }
.nginx.color_80 { fill: color-mix(in srgb, var(--color-nginx), white 20%); }

.node.color_100 { fill: var(--color-node); }
.node.color_90 { fill: color-mix(in srgb, var(--color-node), white 10%); }
.node.color_80 { fill: color-mix(in srgb, var(--color-node), white 20%); }

.mongo.color_100 { fill: var(--color-mongo); }
.mongo.color_90 { fill: color-mix(in srgb, var(--color-mongo), white 10%); }
.mongo.color_80 { fill: color-mix(in srgb, var(--color-mongo), white 20%); }

.socketproxy.color_100 { fill: var(--color-socketproxy); }
.socketproxy.color_90 { fill: color-mix(in srgb, var(--color-socketproxy), white 10%); }
.socketproxy.color_80 { fill: color-mix(in srgb, var(--color-socketproxy), white 20%); }

.layer {
    display: inline-block;
    width: 100px;
    margin: 0 10px;
    text-align: center;
}
.flow {
    display: inline-block;
    width: 40px;
    margin: 0 5px;
    text-align: center;
    padding-bottom: 50px;
}









.architecture-container {
    .level-row {
        transition: all 0.3s ease;
    }

    .layer-wrapper {
        // Su mobile il cubo è più piccolo per non occupare tutto lo schermo
        width: 140px;
        @media (min-width: 768px) {
            width: 180px;
        }
    }

    .fork-connector {
        margin: -10px 0;
        svg {
            display: block;
            margin: 0 auto;
        }
    }

    .mobile-arrow {
        padding: 10px 0;
        font-size: 1.5rem;
    }
}


