:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-light: #ebf5fb;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-alt: #f8f9fa;
    --border-color: #eee;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Lora', serif;
    --max-width: 1000px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-alt);
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Round as requested */
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.institution {
    font-weight: 600;
    color: var(--primary-color);
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #34495e;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Highlights / Interests */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.highlight-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Lists (Publications, etc) */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    background: #fff;
    border-left: 3px solid var(--accent-color);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.list-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.authors {
    font-style: italic;
}

.tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.papers {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.paper-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #f0f4f8; /* Un grigio-azzurro professionale */
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #d1d9e6;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Effetto al passaggio del mouse */
.paper-link:hover {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Opzionale: aggiunge un piccolo simbolo prima del testo */
.paper-link::before {
    content: "📄";
    margin-right: 6px;
    font-size: 0.8rem;
}

.tag {
    font-size: 0.75rem;
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}
.status-Open { background: #d4edda; color: #155724; }
.status-Filled { background: #f8d7da; color: #721c24; }
.status-Limited { background: #fff3cd; color: #856404; }

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

footer a {
    color: #bdc3c7;
}

footer a:hover {
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    .nav-links.active {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-cta {
        flex-direction: column;
        padding: 0 40px;
    }
}
