/* --- RESET E BASI --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #f6f6f6; 
    color: #1a1a1a;
    overflow-x: hidden;
    display: block;
}

/* --- SIDEBAR (Uniformata) --- */
aside.sidebar {
    width: 300px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    z-index: 9999;
}

.logo { margin-bottom: 60px; }
.logo h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #111;
}
.logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

nav ul { list-style: none; }
nav ul li { margin-bottom: 22px; }
nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover, nav ul li a.active { color: #bfa67a; }

/* --- CONTENUTO PRINCIPALE --- */
main {
    margin-left: 300px;
    padding: 100px 8%;
    min-height: 100vh;
}

.page-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 60px;
    font-weight: 400;
    text-align: center;
}

/* --- TABELLA LAVORI --- */
.works-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.works-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.works-table th {
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 25px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    font-weight: 500;
}

.works-table td {
    border: 1px solid #eee;
    padding: 50px 30px;
    text-align: center;
    width: 33.33%;
    vertical-align: middle;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.work-item .category {
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bfa67a;
}

.work-item .title {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
}

.work-link {
    font-size: 9px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.work-link:hover {
    color: #bfa67a;
    border-color: #bfa67a;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    aside.sidebar { width: 250px; padding: 60px 40px; }
    main { margin-left: 250px; }
}

@media (max-width: 900px) {
    aside.sidebar { 
        position: relative; width: 100%; height: auto; 
        padding: 40px 20px; border-right: none; 
        border-bottom: 1px solid #eee; text-align: center; 
    }
    main { margin-left: 0; padding: 60px 20px; }
    
    .works-table, .works-table thead, .works-table tbody, .works-table tr, .works-table td {
        display: block;
        width: 100%;
    }
    .works-table thead { display: none; }
    .works-table td { 
        border: none;
        border-bottom: 1px solid #eee; 
        padding: 40px 20px; 
    }
}
