:root {
    --primary-text: #292d2d;
    --secondary-text: #737373;
    --accent-bg: #DFD7D3;
    --white: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
}

/* Reset Universale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--primary-text);
    background-color: #f9f9f9;
    line-height: 1.5;
}

/* Layout Container */
.cv-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 2rem auto;
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* SIDEBAR (Colonna 30%) */
.sidebar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--primary-text);
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--accent-bg);
    border-radius: 5px;
    flex-shrink: 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover { 
    text-decoration: underline; 
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-section h2.shaded-title {
    font-size: 1.2rem;
}

.sidebar-section h3 { font-size: 0.95rem; }
.sidebar-section .date { font-size: 0.8rem; color: var(--secondary-text); }
.sidebar-section .description { margin-top: 0.3rem;}
.sidebar-section p { font-size: 0.85rem; }

.skill-entry h3 { margin-bottom: 0.2rem; }
.skill-entry span { font-weight: 600; color: var(--secondary-text); }

/* MAIN CONTENT (Colonna 70%) */
.main-content {
    flex: 2;
    padding-left: 1rem;
    min-width: 280px;
}

.profile-header { margin-bottom: 2rem; }
.profile-header h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }
.profile-header .job-title { font-size: 1.5rem; color: var(--secondary-text); }
.profile-header .description { font-size: 0.9rem; text-align: justify; }

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Job & Experience */
.job { margin-bottom: 1rem; }
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.job-header h3 { font-size: 1.1rem; }
.job-header .date { font-size: 0.85rem; color: var(--secondary-text); }
.role-main { font-weight: 600; color: var(--primary-text); margin-bottom: 1rem; font-size: 0.9rem;}

.project { margin-bottom: 0.5rem; }
.consultant { font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }

/* Job & Experience */
.cert-section { margin-top: 1rem; }

.certifications {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 1rem;
}

.certification {
    flex: 1;
    min-width: 280px;
}
.certification h3 { font-size: 0.9rem; }
.certification p { font-size: 0.85rem; }

/* Liste Puntate */
.bullet-list {
    list-style: none;
    padding-left: 5px;
}
.bullet-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-text);
    font-weight: bold;
}

/* Effetto Titolo Shaded */
.shaded-title {
    position: relative;
    z-index: 1;
}

.shaded-title::before {
    content: "";
    position: absolute;
    left: 10%;
    width: 90%;
    height: 100%;
    background-color: var(--accent-bg);
    z-index: -1;
}

/* Footer GDPR */
.gdpr {
    margin-top: 3rem;
    padding-top: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-text);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-container { 
        padding: 2rem; 
        flex-direction: column;
    }

    .main-content { 
        display: contents; 
    }

    .profile-header { 
        order: 1; 
        padding-left: 0; 
    }

    .sidebar { 
        order: 2;
        margin-bottom: 2rem;
    }

    .work-section { 
        order: 3; 
        padding-left: 0;
    }

    .cert-section { 
        order: 4; 
    }

    .gdpr { 
        order: 5; 
    }
}

@media (max-width: 608px) {
    .profile-header h1 { font-size: 2rem; }
    .sidebar { flex-direction: column; }
}