﻿/* ==========================================================================
   1. RESET E STILI GLOBALI
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
   
    transition: padding-left 0.3s ease;
    counter-reset: step; /* Inizializza il contatore per la timeline stepper */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 86%;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================================
   2. HEADER E NAVIGAZIONE
   ========================================================================== */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
}

.main-nav > ul {
    list-style-type: none;
    display: flex;
}

.main-nav ul li {
    position: relative;
    padding: 15px 20px;
}

    .main-nav ul li a {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 16px;
        transition: color 0.3s ease;
    }

    .main-nav ul li:hover > a {
        color: #007bff;
    }

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style-type: none;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
}

.main-nav ul li:hover .submenu {
    display: block;
}

.submenu li {
    padding: 10px 20px;
}

    .submenu li a {
        font-size: 14px;
        font-weight: normal;
        text-transform: none;
        white-space: nowrap;
    }

    .submenu li:hover {
        background-color: #f2f2f2;
    }

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-access {
    display: flex;
    align-items: center;
}

    .user-access a {
        margin: 0 8px;
        font-weight: 600;
    }

    .user-access span {
        color: #ccc;
    }

.language-switcher {
    position: relative;
    cursor: pointer;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.language-switcher:hover .current-lang {
    background-color: #f7f7f7;
}

.current-lang img {
    width: 24px;
    border-radius: 3px;
}

.current-lang span {
    font-weight: bold;
    font-size: 14px;
}

.current-lang .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-switcher.active .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: white;
    list-style-type: none;
    padding: 5px 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    min-width: 150px;
    z-index: 1010;
}

.language-switcher.active .lang-dropdown {
    display: block;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .lang-dropdown li a:hover {
        background-color: #f2f2f2;
    }

.lang-dropdown img {
    width: 24px;
    border-radius: 3px;
}

/* --- STILI RESPONSIVE PER IL MENU --- */
@media (max-width: 768px) {

    /* --- Impostazioni Generali Menu Mobile --- */
    /* Queste regole si applicano quando il menu è a comparsa */

    .main-nav > ul {
        /* Cambia da orizzontale a verticale */
        display: block; 
    }

    .main-nav ul li {
        /* Rimuovi il padding orizzontale, serve solo su desktop */
        padding: 0; 
    }

    .main-nav ul li a {
        /* Fai in modo che il link occupi tutto lo spazio per un tap più facile */
        display: block;
        padding: 15px 20px;
    }

    /* --- GESTIONE SPECIFICA DEI SUBMENU SU MOBILE --- */

    /* 1. Annulla l'effetto :hover del desktop. FONDAMENTALE. */
    .main-nav ul li:hover .submenu {
        display: none;
    }

    /* 2. Riposiziona il sottomenu */
    .submenu {
        /* Deve apparire "dentro" il flusso del menu, non sopra */
        position: static; 
        
        /* Rimuovi stili solo per desktop */
        box-shadow: none;
        border-radius: 0;
        
        /* Aggiungi uno sfondo per distinguerlo leggermente */
        background-color: #f8f9fa; 
        padding: 0;
        
        /* Assicurati che sia nascosto di default */
        display: none; 
    }

    /* 3. Aggiungi una regola per mostrare il sottomenu quando il genitore ha una classe specifica */
    .main-nav ul li.submenu-open > .submenu {
        display: block; /* Questa è la regola che lo farà apparire! */
    }

    .submenu li {
        padding: 0;
    }

    .submenu li a {
        /* Aggiungi un'indentazione per mostrare la gerarchia */
        padding-left: 40px; 
        font-weight: normal;
    }
}

/* ==========================================================================
   3. ELEMENTI FISSI (SOCIAL SIDEBAR)
   ========================================================================== */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 10px;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

    .social-sidebar a {
        color: #555;
        font-size: 22px;
        padding: 10px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    }

        .social-sidebar a:hover {
            color: white;
            transform: scale(1.1);
        }

        .social-sidebar a[title="Facebook"]:hover {
            background-color: #1877F2;
        }

        .social-sidebar a[title="Instagram"]:hover {
            background-color: #C13584;
        }

        .social-sidebar a[title="TripAdvisor"]:hover {
            background-color: #34E0A1;
        }

        .social-sidebar a[title="YouTube"]:hover {
            background-color: #FF0000;
        }

/* ==========================================================================
   4. SEZIONI DELLA HOMEPAGE (INDEX.CSHTML)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

    .hero-content h1 {
        font-size: 4rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

.hero-search {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .hero-search button {
        background-color: #007bff;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
        padding: 15px 25px;
        border: none;
        border-radius: 5px;
        font-size: 1.2rem;
    }

        .hero-search button:hover {
            background-color: #0056b3;
        }

.custom-select-wrapper {
    position: relative;
    width: 350px;
    user-select: none;
}

.select-selected {
    background-color: #fff;
    color: #555;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #fff;
}

    .select-selected::after {
        content: "";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border: 6px solid transparent;
        border-color: #555 transparent transparent transparent;
        transition: transform 0.3s ease;
    }

.custom-select-wrapper.active .select-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: #fff;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    list-style-type: none;
    max-height: 250px;
    overflow-y: auto;
}

.select-hide {
    display: none;
}

.select-items li {
    color: #333;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s ease;
}

    .select-items li:hover {
        background-color: #f2f2f2;
    }

.select-items i {
    color: #007bff;
    width: 20px;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.8rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }

    .section-title p {
        font-size: 1.2rem;
        color: #666;
        max-width: 90%;
        margin: 0 auto;
    }

.events-section {
    padding: 120px 0;
    background-color: #fff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;  
  
}




.event-card {
    display: block;
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .event-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

.event-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-image {
    transform: scale(1.05);
}

.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.event-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-date {
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.event-card-cta {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

    .event-card-cta .fa-arrow-right {
        transition: transform 0.3s ease;
    }

.event-card:hover .event-card-cta {
    opacity: 1;
    gap: 15px;
}

    .event-card:hover .event-card-cta .fa-arrow-right {
        transform: translateX(5px);
    }

.gallery-section {
    padding: 120px 0;
    background-color: #fff;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease-out, filter 0.4s ease;
    }

    .gallery-item.tall {
        grid-row: span 2;
    }

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 3rem;
    margin-bottom: 15px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-item-overlay i {
    transform: scale(1);
}

.gallery-item-overlay h3 {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay h3 {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: blur(2px);
}

.feature-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.feature-container {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-image-wrapper {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

    .feature-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

.feature-content-wrapper {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: relative;
    z-index: 5;
    background-color: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateX(-100px);
}

.feature-tagline {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.feature-cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-cta-button:hover {
        background-color: #0056b3;
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    }

/* ==========================================================================
   5. PAGINA DETTAGLIO EVENTO (INDEX2.CSHTML)
   ========================================================================== */
.event-hero-section {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.event-hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
}

.event-hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 15px 25px;
    flex-wrap: wrap;
}

.event-meta-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

    .event-meta-item i {
        margin-right: 8px;
    }

.event-main-content {
    padding: 80px 0;
}

.event-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.event-description h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.event-description h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.event-description ul {
    list-style-position: inside;
    padding-left: 10px;
}

    .event-description ul li {
        margin-bottom: 10px;
    }

.event-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

    .sidebar-widget h4 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.feature-cta-button.full-width {
    display: block;
    text-align: center;
}

.event-share-buttons {
    display: flex;
    gap: 15px;
}

    .event-share-buttons a {
        background-color: #e9ecef;
        color: #333;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .event-share-buttons a:hover {
            background-color: #007bff;
            color: white;
            transform: translateY(-3px);
        }

.timeline-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.event-timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    position: relative;
    max-width: 800px;
}

    .event-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 3px;
        height: 100%;
        background-color: #dee2e6;
        transform: translateX(-50%);
    }

    .event-timeline::after {
        content: "";
        display: table;
        clear: both;
    }

    .event-timeline li {
        position: relative;
        width: 50%;
        margin-bottom: 40px;
        padding: 10px 40px;
        box-sizing: border-box;
    }

        .event-timeline li:nth-child(odd) {
            float: left;
            clear: both;
            text-align: right;
        }

        .event-timeline li:nth-child(even) {
            float: right;
            clear: both;
            text-align: left;
        }

        .event-timeline li::after {
            content: '';
            position: absolute;
            top: 25px;
            width: 20px;
            height: 20px;
            background-color: white;
            border: 4px solid #007bff;
            border-radius: 50%;
            z-index: 1;
        }

        .event-timeline li:nth-child(odd)::after {
            right: -10px;
            transform: translate(50%, -50%);
        }

        .event-timeline li:nth-child(even)::after {
            left: -10px;
            transform: translate(-50%, -50%);
        }

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
    position: relative;
}

    .timeline-content::before {
        content: ' ';
        height: 0;
        position: absolute;
        top: 25px;
        width: 0;
        z-index: 1;
        border: medium solid white;
    }

.event-timeline li:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent white;
}

.event-timeline li:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-content time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.location-section {
    padding: 80px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-map iframe {
    border-radius: 12px;
}

.location-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 15px;
}

/* ==========================================================================
   6. PAGINA DETTAGLIO PRODOTTO (INDEX3.CSHTML)
   ========================================================================== */
.split-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 90vh;
    min-height: 600px;
}

.split-hero-image {   
    background-size: cover;
    background-position: center;
    
}
.opacityActive {
    color:#d14d4d;    
}

.split-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.content-wrapper {
    max-width: 80%;
}

.product-category {
    font-weight: 700;
    color: #007bff;
    letter-spacing: 1px;
}

.split-hero-content h1 {
    font-size: 3rem;
    margin: 10px 0 20px 0;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-key-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

    .product-key-info span {
        background: #eaeaea;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        color:#000;
    }

        .product-key-info span i {
            margin-right: 5px;
        }

.features-grid-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.stepper-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.stepper-timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

    .stepper-timeline::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        width: 2px;
        height: calc(100% - 20px);
        background-color: #dee2e6;
    }

.stepper-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

    .stepper-item::before {
        content: counter(step);
        counter-increment: step;
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 40px;
        background-color: #007bff;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.2rem;
    }

.stepper-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-align: center;
}

.cta-content p {
    max-width: 600px;
    margin: 15px auto 30px auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

    .cta-price span {
        font-size: 1rem;
        font-weight: 400;
        opacity: 0.8;
    }

.feature-cta-button.large {
    padding: 18px 40px;
    font-size: 1.2rem;
    background-color: #fff;
    color: #007bff;
}

    .feature-cta-button.large:hover {
        background-color: #e9ecef;
    }

/* ==========================================================================
   7. ANIMAZIONI ON-SCROLL
   ========================================================================== */
.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

[class*="scroll-animate"] {
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate-up {
    transform: translateY(10px);
}

.scroll-animate-left {
    transform: translateX(40px);
}

.scroll-animate-right {
    transform: translateX(-40px);
}

.scroll-animate-zoom {
    transform: scale(0.9);
}

.event-timeline li.scroll-animate {
    opacity: 1;
}

.event-timeline li:nth-child(odd).scroll-animate {
    transform: translateX(-40px);
}

.event-timeline li:nth-child(even).scroll-animate {
    transform: translateX(40px);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e7e7e7;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN & HAMBURGER MENU
   ========================================================================== */
.hamburger-button, .close-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #333;
}

.close-button {
    color: #555;
    font-size: 40px;
    position: absolute;
    top: 15px;
    right: 25px;
}

    .close-button:hover {
        color: #000;
    }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

body.mobile-nav-active .mobile-nav-overlay {
    display: block;
}

body.mobile-nav-active header {
    z-index: 1050;
}

@media (max-width: 1100px) {
    .main-nav, .header-right-controls {
        display: none;
    }

    .hamburger-button {
        display: block;
    }

    .header-container {
        justify-content: space-between;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 80%;
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1051;
        padding-top: 60px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    body.mobile-nav-active .main-nav {
        transform: translateX(0);
    }

    .main-nav .close-button {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .main-nav ul li {
        width: 100%;
        padding: 0;
    }

        .main-nav ul li a {
            display: block;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f0f0;
        }

   

    .social-sidebar {
        display: none;
    }

    body {
        padding-left: 0;
    }
}

@media (max-width: 992px) {
    /* Layouts a 2 colonne diventano a 1 colonna */
    .feature-container,
    .event-layout-grid,
    .location-grid,
    .split-hero-section {
        grid-template-columns: 1fr;
    }
    /* Sezione Feature (Homepage) */
    .feature-image-wrapper {
        grid-row: 1 / 2;
    }

    .feature-content-wrapper {
        grid-row: 2 / 3;
        transform: translateX(0);
        margin: -60px 20px 0 20px;
        padding: 40px;
    }

    .feature-title {
        font-size: 2rem;
    }
    /* Pagina Dettaglio Evento (Index2) */
    .event-sidebar {
        position: static;
        margin-top: 40px;
    }

    .location-info {
        text-align: center;
    }
    /* Pagina Dettaglio Prodotto (Index3) */
    .split-hero-section {
        height: auto;
    }

    .split-hero-image {
        height: 40vh;
        min-height: 300px;
    }

    .split-hero-content {
        padding: 50px 20px;
    }

        .split-hero-content h1 {
            font-size: 2.8rem;
        }
}

   /* STILI ESISTENTI (invariati) */
    .open-video-btn { padding: 10px 20px; font-size: 16px; cursor: pointer; background-color: #c4302b; color: white; border: none; border-radius: 5px; }
    .video-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.85); display: none; justify-content: center; align-items: center; z-index: 1000; }
    .overlay-content { position: relative; background-color: #000; width: 90%; max-width: 800px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
    .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%; }
    .close-btn { position: absolute; top: -30px; right: 0; color: #fff; font-size: 35px; cursor: pointer; }

    .social-share-buttons {
    margin-top: 20px;
    text-align: left; /* Centra i pulsanti */
}

.share-button {
    display: inline-flex; /* Usa flexbox per centrare l'icona */
    align-items: center;
    justify-content: center;
    width: 40px; /* Larghezza e altezza fisse per un pulsante quadrato */
    height: 40px;
    margin: 5px; /* Spazio tra i pulsanti */
    border-radius: 50%; /* Rende i pulsanti rotondi */
    color: white;
    text-decoration: none;
    font-size: 18px; /* Dimensione dell'icona */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transizioni per hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Una leggera ombra per dare profondità */
}

.share-button:hover {
    transform: translateY(-2px); /* Effetto leggero al passaggio del mouse */
    opacity: 0.9;
}

/* Colori specifici per i social */
.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.linkedin {
    background-color: #0077b5;
}

.email {
    background-color: #777; /* Colore generico per l'email */
}

@media (max-width: 768px) {
    .event-share-buttons {
        justify-content:center;
    }

    .event-timeline li:nth-child(odd).scroll-animate {
        transform:none;
    }

    .event-timeline li:nth-child(even).scroll-animate {
        transform:none;
    }

    .scroll-animate-right {
    transform: none;
}

     .scroll-animate-left {
    transform: none;
}

     .social-share-buttons {
    text-align: center; /* Centra i pulsanti */
}

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-search {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    .custom-select-wrapper {
        width: 100%;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
    /* Pagina Dettaglio Evento (Index2) */
    .event-hero-section {
        background-attachment: scroll;
        height: auto;
        padding: 100px 0;
    }

    .event-hero-title {
        font-size: 2.8rem;
    }

    .event-timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .event-timeline li, .event-timeline li:nth-child(odd), .event-timeline li:nth-child(even) {
        width: 100%;
        float: none;
        clear: none;
        text-align: left;
        padding-left: 60px;
        padding-right: 15px;
    }

        .event-timeline li::after, .event-timeline li:nth-child(odd)::after, .event-timeline li:nth-child(even)::after {
            left: 20px;
            transform: translate(-50%, -50%);
        }

    .timeline-content::before {
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent white transparent transparent;
    }
    /* Pagina Dettaglio Prodotto (Index3) */
    .stepper-timeline::before {
        left: 15px;
    }

    .stepper-item {
        padding-left: 50px;
    }

        .stepper-item::before {
            width: 30px;
            height: 30px;
            font-size: 1rem;
            left: 0;
        }
}

@media (max-width: 576px) {
    .feature-content-wrapper {
        margin: -40px 10px 0 10px;
        padding: 30px;
    }

    .feature-title {
        font-size: 1.8rem;
    }

    .feature-description {
        font-size: 1rem;
    }
}

   .site-footer {
            background-color: #f8f8f8; /* Un nero-grigio scuro, più morbido del nero puro */
            color: #333; /* Un grigio-azzurro per il testo, leggibile ma non troppo brillante */
            padding: 60px 0 20px 0;
            position: relative; /* Cruciale per posizionare l'onda SVG */
            font-size: 15px;
        }

        /* --- L'Onda SVG in cima --- */
        .footer-wave-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            overflow: hidden;
            line-height: 0;
            transform: rotate(180deg); /* La giriamo per averla rivolta verso l'alto */
        }

        .footer-wave-svg svg {
            position: relative;
            display: block;
            width: calc(100% + 1.3px);
            height: 80px; /* Altezza dell'onda */
        }

      


        /* Contenitore principale per allineare il contenuto */
        .footer-container {
            max-width: 86%;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Layout a griglia per le sezioni principali */
        .footer-main {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr; /* 4 colonne: la prima più larga */
            gap: 40px;
            padding-top: 40px; /* Spazio per non sovrapporsi all'onda */
            margin-bottom: 40px;
        }

        /* Sezione "About" con logo e descrizione */
        .footer-about .footer-logo {
            max-width: 150px;
            margin-bottom: 20px;
        }

        .footer-about p {
            line-height: 1.7;
        }

        /* Stile per i titoli delle colonne */
        .footer-col h3 {
            color: #000;
            font-size: 1.1rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }
        /* Sottolineatura decorativa per i titoli */
        .footer-col h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: #0095ff; /* Colore d'accento */
        }

        /* Stile per le liste di link */
        .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul a {
            color: inherit; /* Eredita il colore dal genitore (il footer) */
            text-decoration: none;
            transition: all 0.2s ease-in-out;
            display: inline-block;
        }

        .footer-col ul a:hover {
            color: #0095ff; /* Cambia colore al passaggio del mouse */
            transform: translateX(5px); /* Leggero spostamento a destra */
        }
        
        /* Contatti */
        .footer-contact i {
            margin-right: 10px;
            color: #0095ff;
            width: 20px; /* Allinea le icone */
        }

        /* --- Sub-Footer con Copyright e Social --- */
        .footer-bottom {
            border-top: 1px solid #3a3e44;
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .copyright-text {
            font-size: 0.9rem;
        }

        .social-icons a {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            background-color: #3a3e44;
            color: #ffffff;
            border-radius: 50%;
            margin-right: 10px;
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background-color: #0095ff;
            transform: translateY(-3px); /* Effetto "sollevato" */
        }

        /* --- Media Query per la Responsività --- */
        @media (max-width: 992px) {
            .footer-main {
                grid-template-columns: 1fr 1fr; /* 2 colonne su tablet */
            }
        }

        @media (max-width: 768px) {
            .footer-main {
                grid-template-columns: 1fr; /* 1 colonna su mobile */
                text-align: center;
            }
            .footer-col h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .footer-bottom {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* ==========================================================================
   10. DRAGGABLE SLIDER (SWIPER)
   ========================================================================== */
.draggable-slider-section {
    padding: 80px 0;
    background-color: #f1f1f1;
    overflow: hidden; /* Importante per evitare barre di scorrimento orizzontali indesiderate */
}

.draggable-slider {
    /* Il contenitore principale dello slider */
    width: 100%;
    height: 450px; /* Altezza dello slider, puoi regolarla */
    margin-top: 70px;
}

.draggable-slider .swiper-slide {
    /* Stile per ogni singola immagine (slide) */
    width: 65%; /* Larghezza di ogni slide. Non 100% per far intravedere le altre */
    max-width: 600px; /* Larghezza massima per schermi grandi */
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.draggable-slider .swiper-slide img {
    /* L'immagine dentro la slide */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assicura che l'immagine copra tutta la slide senza deformarsi */
    display: block;
}

/* Stile per il cursore per far capire che è trascinabile */
.draggable-slider .swiper-wrapper {
    cursor: grab;
}

.draggable-slider .swiper-wrapper:active {
    cursor: grabbing;
}


/* Adattamenti per schermi più piccoli */
@media (max-width: 768px) {
    .draggable-slider {
        height: 350px;
    }

    .draggable-slider .swiper-slide {
        width: 80%; /* Le slide occupano più spazio su mobile */
    }
}

/* Stile per ogni slide - Fondamentale per il posizionamento */
.swiper-slide {
    position: relative; /* Imposta il contesto di posizionamento per l'overlay */
    overflow: hidden; /* Nasconde parti dell'overlay che potrebbero fuoriuscire */
}

/* Contenitore del testo in sovraimpressione */
.slide-text-overlay {
    position: absolute; /* Posiziona l'overlay sopra l'immagine */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Velo scuro per migliorare la leggibilità del testo */
    background-color: rgba(0, 0, 0, 0.5); 
    
    /* Centratura del testo con Flexbox */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Stile del testo */
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; /* Assicura che il padding non alteri la dimensione totale */
    
    /* Effetto di transizione (opzionale) */
    opacity: 0.3; /* Nasconde l'overlay di default */
    transition: opacity 0.4s ease;
}
.slide-button {
    display: inline-block;
    background-color: #fff; /* Colore di sfondo */
    color: #111; /* Colore del testo */
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    margin-top:20px;
    /* Transizione per l'effetto hover */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Effetto al passaggio del mouse sul pulsante */
.slide-button:hover {
    background-color: #0095ff; /* Leggero cambio di colore */
    color:#fff;
}

/* Mostra l'overlay al passaggio del mouse sulla slide */
.swiper-slide:hover .slide-text-overlay {
    opacity: 1;
}

/* Stile per il titolo nell'overlay */
.slide-text-overlay h3 {
    font-size: 1.8rem; /* Dimensione del titolo */
    margin-bottom: 10px;
    font-weight: bold;
}

/* Stile per il paragrafo nell'overlay */
.slide-text-overlay p {
    font-size: 1rem; /* Dimensione del testo */
    max-width: 80%; /* Evita che il testo sia troppo largo su schermi grandi */
    margin-bottom: 0;
}

/* Media query per schermi più piccoli (opzionale) */
@media (max-width: 768px) {
    /* Mostra sempre l'overlay sui dispositivi touch, dato che non c'è l'hover */
    .slide-text-overlay {
        opacity: 1; 
        background-color: rgba(0, 0, 0, 0.6); /* Leggermente più scuro per garantire leggibilità */
    }
    
    .slide-text-overlay h3 {
        font-size: 1.4rem;
    }
    
    .slide-text-overlay p {
        font-size: 0.9rem;
    }
}

/* Stile per il pulsante di attivazione della ricerca */
.header-icon-button {
    background: #333;
    border: none;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing:0.8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Stili per l'Overlay di Ricerca */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Allinea il contenuto in alto */
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay .close-button {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.search-overlay-content {
    width: 90%;
    max-width: 60%;
}

/* Form di ricerca nell'overlay */
.search-overlay-form {
    position: relative;
    margin-bottom: 2rem;
}

#search-overlay-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    outline: none;
}
#search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-overlay-form .search-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.5rem;
}

/* Stili per i Risultati della Ricerca */
.search-overlay-results-container {
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
    padding: 10px;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.result-details {
    
}

.result-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.result-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
  
}
.result-category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    padding:5px 10px;
    border-radius:3px;
}

.result-sec-det {
    
    margin-top: 10px;
   
}

.result-type {
    font-size: 0.9rem;
    color: #fff;
    margin-top: 4px;
    padding:5px 10px;
    border-radius:3px;
    background-color:#333;
}

.no-results {
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
}


