/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Layout structure */
.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logos banner */
.logos-banner {
    position: relative;
    background: #003875;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logos-container {
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.header-logo {
    height: 65px;
    width: 33.333%;
    object-fit: contain;
    padding: 15px 60px;
    display: flex;
    justify-content: center;
    position: relative;
}

.header-logo:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background-color: #ccc;
}

/* Navigation header */
.fixed-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #003875;
    color: white;
    padding: 15px 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    align-items: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.2s ease;
    padding: 10px 0;
}

nav ul li a:hover {
    color: #007bff;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 20px;
}

/* Footer styles */
.footer {
    background-color: #003875;
    color: white;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section ul,
.footer-section li {
    margin: 5px 0;
    line-height: 1.4;
}

.footer-section ul {
    padding: 0;
    list-style: none;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

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

.footer-links {
    margin-top: 10px;
}

/* Homepage specific styles */
.hero {
    background-color: #f8f9fa;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #eaeaea;
}

.hero-content h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.intro {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #007bff;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

/* Project details specific styles */
.project-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.project-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

.project-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-hero .subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-section {
    margin-bottom: 60px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-section h2 {
    color: #007bff;
    margin-bottom: 30px;
    text-align: center;
}

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

.objective-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.methodology-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Team page specific styles */
.research-team {
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
    margin-bottom: 50px;
}

.research-team h1 {
    font-size: 36px;
    color: #333;
    margin-top: 0;
    margin-bottom: 40px;
}

.university-section {
    margin-bottom: 50px;
}

.university-section h2 {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 30px;
    text-align: center;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 30px;
}

.team-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.team-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 70%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.team-card h3 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
}

.team-card h4 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Results page styles */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.results-section {
    margin-bottom: 60px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-section h2 {
    color: #007bff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.blockchain-structure {
    margin-bottom: 30px;
}

.blockchain-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.blockchain-type {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.mainchain {
    background: #e3f2fd;
}

.sidechain {
    background: #e8f5e9;
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

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

.result-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Updates/News page styles */
.updates-page {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.publications-section {
    margin-bottom: 50px;
}

.publications-section h2,
.news-section h2 {
    color: #007bff;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.publications-list {
    display: grid;
    gap: 20px;
}

.publication-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.publication-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.authors {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
}

.journal-info {
    color: #444;
    margin-bottom: 8px;
}

.doi-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 12px;
}

.doi-link:hover {
    text-decoration: underline;
}

.abstract {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.updates-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-card {
    background: #ffffff;
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-card.event {
    border-left-color: #28a745;
}

.update-card.publication {
    border-left-color: #007bff;
}

.update-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.update-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.update-card p {
    color: #666;
    line-height: 1.6;
}

.paper-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.paper-link:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Team member page styles */
.team-member-page {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 0;
    margin-bottom: 20px;
    text-decoration: none;
}

.back-button:hover {
    text-decoration: underline;
}

.member-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.member-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member-info {
    flex: 1;
    text-align: left;
}

.member-info h1 {
    color: #333;
    margin-bottom: 10px;
}

.member-info h2 {
    color: #666;
    margin-bottom: 20px;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.member-image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.member-contact {
    text-align: left;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.member-contact p {
    margin: 5px 0;
}

.member-contact a {
    color: #007bff;
    text-decoration: none;
}

.member-contact a:hover {
    text-decoration: underline;
}

.member-affiliation,
.member-biography,
.member-interests {
    margin-bottom: 30px;
}

.member-interests ul {
    list-style: none;
    padding: 0;
}

.member-interests li {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.member-info h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-logo {
        padding: 15px 20px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .member-content {
        flex-direction: column;
        align-items: center;
    }

    .member-info {
        text-align: center;
    }

    .member-image-container {
        width: 100%;
        max-width: 300px;
    }
    
    .member-contact {
        text-align: center;
    }
    
    .header-logo:not(:last-child)::after {
        height: 50%;
        top: 25%;
    }
    
    .header-logo {
        padding: 10px 30px;
        height: 45px;
    }

    .footer-container {
        gap: 30px;
    }
    
    .project-section {
        padding: 20px;
    }
    
    .blockchain-types,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-page {
        padding: 20px;
    }

    .publication-card,
    .update-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logos-container {
        flex-direction: column;
        align-items: center;
    }

    .header-logo::after {
        display: none;
    }
    
    .header-logo {
        padding: 10px;
        height: 40px;
    }

    .footer-section {
        flex-basis: 100%;
        text-align: center;
    }
}

/* Stili per la pagina Privacy Policy */
.privacy-policy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.privacy-policy-container h1 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 30px;
    text-align: center;
}

.privacy-section {
    margin-bottom: 40px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.privacy-section h2 {
    color: #007bff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.privacy-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.privacy-section ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.privacy-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .privacy-policy-container {
        padding: 15px;
    }
    
    .privacy-section {
        padding: 15px;
    }
    
    .privacy-policy-container h1 {
        font-size: 2rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
}

.partner-card img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}