:root {
    --primary: #0a84ff;
    --primary-hover: #0064d2;
    --accent: #ffd700;
    --bg-dark: #070f1e;
    --bg-light: #ffffff;
    --text-dark: #f0f4f8;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 15, 30, 0.4) 0%, rgba(7, 15, 30, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.badge {
    background: rgba(10, 132, 255, 0.2);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-dates {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-dark {
    background-color: #050a14;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-center-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Card */
.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Intro stats */
.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-date {
    position: absolute;
    top: 0.2rem;
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.timeline-content {
    margin-top: 1.8rem;
}

.sub-event-card {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -7.5rem;
    text-align: left;
    width: 15rem;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -7.5rem;
    text-align: right;
    width: 15rem;
}

.notice-box {
    margin-top: 4rem;
    text-align: center;
    border-color: rgba(10, 132, 255, 0.3);
}

/* FAQ Accordions */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    padding: 0.5rem 0;
}

.faq-item p {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    background-color: #03060c;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer .copyright {
    margin-top: 2rem;
    font-size: 0.85rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        display: none; /* simple menu hiding for mobile */
    }
    
    .hero {
        height: auto;
        min-height: 90vh;
        padding-top: 110px;
        padding-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-dates {
        font-size: 1.35rem;
    }
    
    .timeline::after {
        left: 15px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 32px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: relative;
        top: 0;
        left: 0;
        text-align: left;
        width: auto;
        margin-bottom: 0.5rem;
        display: block;
    }

    .card-glass {
        padding: 1.25rem;
    }

    .sub-event-card {
        padding: 0.75rem;
    }

    .timeline-content {
        margin-top: 0;
    }
}

/* Event Featured Section */
.event-featured-card {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
    margin-top: 2rem;
}

.event-featured-img {
    flex: 1;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.event-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.event-featured-img img:hover {
    transform: scale(1.03);
}

.event-featured-info {
    flex: 1.2;
}

.event-featured-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.event-featured-info .date-range {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-size: 1.05rem;
}

.event-featured-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .event-featured-card {
        flex-direction: column;
        align-items: stretch;
    }
    .event-featured-img {
        max-width: 100%;
    }
}

/* Carousel Barche Storiche */
.carousel-wrapper {
    position: relative;
    margin-top: 3rem;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--glass-border);
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: var(--glass-border);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.carousel-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.carousel-card-img {
    height: 220px;
    overflow: hidden;
}

.carousel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-card:hover .carousel-card-img img {
    transform: scale(1.05);
}

.carousel-card-body {
    padding: 1.5rem;
}

.carousel-card-body h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.carousel-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(7, 15, 30, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-nav-btn.prev {
    left: -20px;
}

.carousel-nav-btn.next {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 280px;
    }
    .carousel-nav-btn {
        display: none;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(7, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--primary);
}

.carousel-card-img img {
    cursor: pointer;
}



