/* VAT Torino Website - Main Stylesheet */

:root {
    --primary-blue: #2c5aa0;
    --primary-gold: #f4c430;
    --light-blue: #e8f1f9;
    --dark-blue: #1a3d6b;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--dark-blue);
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.site-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-blue);
}

/* Navigation Menu */
nav {
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    background-color: var(--primary-gold);
    color: var(--dark-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-header {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-gold);
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    text-align: center;
}

.page-header p {
    text-align: center;
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Cards and Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
}

.content-section h3 {
    color: var(--dark-blue);
    margin: 20px 0 10px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow);
}

/* Team Members Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.team-member {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.team-member h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Information */
.contact-info {
    background: var(--light-blue);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    width: 30px;
}

.map-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Articles and Research */
.article-card {
    background: var(--white);
    border-left: 4px solid var(--primary-blue);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 8px var(--shadow);
    border-left-color: var(--primary-gold);
}

.article-title {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

.article-abstract {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-doi {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.article-doi:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    padding: 15px;
    color: var(--dark-blue);
    font-weight: 600;
}

/* Links Section (Homepage) */
.links-section {
    background: var(--light-blue);
    padding: 40px 0;
    margin-top: 40px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.link-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
}

.link-card:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .team-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .header-top .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
