:root {
    --color-black: #000;
    --color-white: #fff;
    --color-yellow: #f5ac43;
    --color-red: #e83636;
    --color-blue: #2d73b9;
    --color-grey: #4e4e4e;
    --font-aeonik: 'Aeonik', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
}


body {
    font-family: var(--font-inter);
    background: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 160px;
}

img {
    max-width: 100%;
    height: auto;
}

.img2 {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
}

.a 
{
    text-decoration: none;
    
}

.bold {
    font-weight: 1000;
    color: #000;
}

.bold:hover {
    font-weight: 1000;
    color: #368ef9;
}

.orange-text { color: var(--color-black); font-weight: 1000; }
.yellow-text { color: var(--color-yellow); font-weight: 1000; }
.red-text { color: var(--color-red); font-weight: 1000;}
.blue-text { color: var(--color-blue); font-weight: 1000; }
.underline-yellow { text-decoration: underline; color: var(--color-yellow); }
.underline-red { text-decoration: underline; color: var(--color-red); }
.underline-blue { text-decoration: underline; color: var(--color-blue); }

/* Header and Navigation */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 80px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.logo-image {
    width: 500px;
    margin-left: 
    0%;
}

.logo-year {
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.language-switcher {
    display: flex;
    gap: 16px;
    font-size: 20px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 500;
}

.nav-menu a {
    color: var(--color-black);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a.active {
    font-weight: 700;
    text-decoration: underline;
    color: #368ef9;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    text-align: left;
}

.hero-text {


    font-size: 2rem;
}

.location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-details {
    text-align: left;
}

.location-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.location-address {
    font-size: 1.25rem;
    text-decoration: underline;
    color: var(--color-black);
}

.location-icon {
    display: none; /* Hide icon on mobile for cleaner look */
}

/* About Section */
.about-section {
    margin-left: 8%;
    margin-right: 8%;

    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.about-image-container {
    width: 100%;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-aeonik);
}

.about-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Event Sections */
.event-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
        margin-left: 10%;
                margin-right: 10%;
    }
     

.event-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-time {
    font-size: 2.5rem;
    font-weight: 700;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-aeonik);
}

.event-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-description p {
    font-size: 1rem;
}

.speakers-list, .workshops-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.speaker-card, .workshop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.speaker-card.reversed, .workshop-card.reversed {
    flex-direction: column-reverse;
}

.speaker-content, .workshop-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;

}

.speaker-name, .workshop-name {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-aeonik);
}

.speaker-bio {
    font-size: 1rem;
}

.workshop-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-grey);
}

.workshop-description {
    font-size: 1rem;
}

.speaker-tags, .workshop-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tag {
    padding: 8px 16px;
    border: 1px solid var(--color-black);
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
}

.speaker-image{
    width: 100%;
    max-width: 350px;
  
}

.workshop-image {
    width: 100%;
    max-width: 350px;
    border-radius: 25px;
}


/* Sponsors Section */
.sponsors {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    align-items: center;
}

.sponsor-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sponsor-heading {
    font-size: 1.1rem;
    font-weight: 400;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sponsor-logos img {
    max-width: 100%;
    height: 100%;
}

/* MEDIA QUERIES for larger screens */

@media (max-width: 768px) {

        .header {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0px;

    }
}


@media (min-width: 768px) {
    .container {
        padding: 40px;
        gap: 100px;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0px;
    }

    .nav-menu {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .logo-group {
        align-items: flex-end;
    }
    
    .logo-year {
        text-align: right;
    }

    .hero-section {
        align-items: flex-end;
        text-align: right;
        gap: 48px;
    }

    .hero-text {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .location {
        flex-direction: row;
        gap: 20px;
    }

    .location-details {
        text-align: right;
    }

    .location-name, .location-address {
        font-size: 1.5rem;
    }
    
    .location-icon {
        display: block;
        width: 35px;
        height: 35px;
        position: relative;
        overflow: hidden;
    }
    
    .icon-fill {
        width: 26.25px;
        height: 35px;
        position: absolute;
        left: 4.38px;
        top: 0;
        background: #212529;
    }

    .about-section {
        flex-direction: row;
        gap: 48px;
        justify-content: center;
    }

    .about-image-container {
        flex: 1;
    }
    
    .about-content {
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }

    .about-text {
        font-size: 1.25rem;
    }

    .event-description {
        flex-direction: row;
        justify-content: space-between;
        gap: 48px;
    }

    .event-description p {
        flex: 1;
        font-size: 1.25rem;
    }

    .speaker-card, .workshop-card {
        flex-direction: row;
        gap: 48px;
        text-align: left;

       

    }
    
    .speaker-card.reversed, .workshop-card.reversed {
        flex-direction: row-reverse;
        
    }

    .speaker-content, .workshop-content {
        
        align-items: flex-start;
        text-align: left;
        flex: 1;
    }

    .speaker-tags, .workshop-tags {
        justify-content: flex-start;
    }

    .sponsors {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .sponsor-group {
        text-align: center;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 40px;
        gap: 20px;
    }

}


/* Sezione sponsor con scorrimento orizzontale */
.sponsors {
    background: #f8f8f8;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.sponsors-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.sponsors-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 25s linear infinite;
}


/* Keyframe per l'animazione di scorrimento */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsor-group {
    flex-shrink: 0;
    text-align: center;
    min-width: 500px;
    padding: 0 20px;
}

.sponsor-heading {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsor-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.sponsor-logos img {
    max-height: 80px;
    max-width: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.sponsor-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .sponsors {
        padding: 30px 0;
    }
    
    .sponsor-group {
        min-width: 250px;
        padding: 0 15px;
    }
    
    .sponsors-track {
        gap: 40px;
        animation-duration: 25s;
    }
    
    .sponsor-heading {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .sponsor-logos img {
        max-height: 60px;
        max-width: 100px;
    }
    
    .sponsor-logos {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sponsor-group {
        min-width: 200px;
    }
    
    .sponsors-track {
        animation-duration: 20s;
    }
    
    .sponsor-logos img {
        max-height: 50px;
        max-width: 80px;
    }
}