:root {
    --bg-color: #6989b8;        
    --card-bg: #d3d1d1;         
    --text-color: #1f2937;     
    --text-muted: #4b5563;      
    --accent-color: #3b82f6;    
    --border-color: rgba(255, 255, 255, 0.3); 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
}

a.testo {
    color: #d3cece; 
}

a.testo:visited {
    color: #4b3e3e;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 10px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

header a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

header a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.main-menu-btn {
    border: 1px solid var(--border-color);
    font-weight: bold;
    background-color: #ffffff;
}

.year-badge {
    font-size: 13px;
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.container {
    width: 100%;
    max-width: 900px;
}

section {
    margin-bottom: 30px;
}

h2 {
    font-size: 18px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.link-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.link-card a {
    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
}

.link-card a:visited {
    color: #636e85; 
}

.link-card a:hover {
    text-decoration: underline;
}

.link-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 600px) {
    body { padding: 10px; }
    header a { font-size: 14px; padding: 6px 8px; }
    .year-badge { display: none; }
    .link-grid { grid-template-columns: 1fr; }
}