: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: 100%;
    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;
}

/* Hamburger Toggle Desktop (Hidden) */
.menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(3, 6, 12, 0.98);
        backdrop-filter: blur(15px);
        border-left: 1px solid var(--glass-border);
        padding: 80px 2rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.2rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .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: 8px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 20px;
        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;
}

/* Bottom Bar Programma */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(7, 15, 30, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.bottom-bar-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5);
}

.btn-download:hover .download-icon {
    transform: translateY(2px);
}

.download-icon {
    transition: transform 0.3s ease;
}

/* Margine inferiore al body per evitare sovrapposizioni */
body {
    padding-bottom: 80px;
}

/* Stili Natalizi & Natale al Lago */
.badge-festive {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(214, 48, 49, 0.4);
}

.section-natale {
    background: radial-gradient(circle at top right, rgba(214, 48, 49, 0.08), transparent 50%),
                radial-gradient(circle at bottom left, rgba(10, 132, 255, 0.08), transparent 50%);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.natale-highlights {
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid #d63031;
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.25rem 0;
}

.natale-highlights h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.natale-highlights ul {
    list-style: none;
    padding-left: 0;
}

.natale-highlights li {
    padding: 0.35rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.btn-festive {
    background: linear-gradient(135deg, #d63031 0%, #b71540 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.35);
}

.btn-festive:hover {
    background: linear-gradient(135deg, #e17055 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.5);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .bottom-bar {
        padding: 0.85rem 0;
    }
    .bottom-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .bottom-bar-text {
        font-size: 0.9rem;
    }
    .btn-download {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    body {
        padding-bottom: 120px;
    }
}

/* Sponsor Marquee */
.sponsor-carousel-section {
    padding: 3rem 0;
    background: rgba(2, 5, 10, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.sponsor-title {
    text-align: center;
    font-size: 1.8rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 700;
}

.sponsor-carousel-section::before,
.sponsor-carousel-section::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 0;
    pointer-events: none;
}

.sponsor-carousel-section::before {
    left: 0;
    background: linear-gradient(to right, #03060c 0%, transparent 100%);
}

.sponsor-carousel-section::after {
    right: 0;
    background: linear-gradient(to left, #03060c 0%, transparent 100%);
}

.logo-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    gap: 3rem;
}

.logo-marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    align-items: center;
    flex-shrink: 0;
    min-width: 100%;
    will-change: transform;
}

.logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    width: auto;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.logo-slide img {
    height: 100%;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .logo-slide {
        height: 100px;
    }
}




