/* === BASE RESET & TYPOGRAPHY === */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f0f0f;
    color: #f2f2f2;
    line-height: 1.75;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    padding: 40px 30px;
    background: #151515; /* grigio scurissimo raffinato */
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Name styling */
.name {
    font-size: 2.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* Subtitle */
.subtitle {
    color: #b5b5b5;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-info {
    color: #b5b5b5;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.contact-info a {
    color: #dcdcdc;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px #9ec3ff99;
}

/* Profile photo */
.profile {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 25px;
    box-shadow: 0 4px 14px rgb(0 0 0 / 50%);
    border: 1px solid #333;
}

/* === SIDEBAR MENU === */
.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.menu a {
    text-decoration: none;
    color: #d0d0d0;
    font-size: 0.92rem;
    padding: 4px 0;
    transition: 0.25s;
}

.menu a:hover {
    color: #ffffff;
    letter-spacing: 0.4px;
}

.menu a.active {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 3px solid #6aa9ff;
    padding-left: 6px;
}


/* === SIDEBAR ICONS === */
.icons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.icon {
    color: #dcdcdc;
    font-size: 1.45rem;
    text-decoration: none;
    transition: 0.2s;
}

.icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px #ffffff55);
}

/* Sidebar footer */
.sidebar footer {
    margin-top: auto;
    color: #777;
    font-size: 0.85rem;
}

/* === MAIN CONTENT AREA === */
.content {
    margin-left: 360px;
    padding: 50px 40px;
    max-width: 900px;
    color: #e9e9e9;
}

/* Section titles */
h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
}

/* Lists */
ul {
    margin-top: 10px;
}

li {
    margin-bottom: 12px;
}

/* Links */
a {
    color: #9ec3ff;
    text-decoration: none;
}

a:hover {
    color: #cfe2ff;
    text-shadow: 0 0 6px #9ec3ff99;
}

/* Paragraphs */
p {
    color: #e6e6e6;
}

/* === LARGE SCREEN ADJUSTMENTS === */
@media (min-width: 1200px) {
    .content {
        margin-left: 380px;
    }
}

@media (max-width: 800px) {

    body {
        overflow-x: hidden;
    }

    .sidebar {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid #333;
        text-align: center;
    }

    .menu {
        align-items: center;
        width: 100%;
    }

    .icons {
        justify-content: center;
    }

    .content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
    }

    .profile {
        margin-left: auto;
        margin-right: auto;
        max-width: 140px;
        max-height: 140px;
    }

    p, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    a {
        overflow-wrap: break-word;
    }
}
