/* Reset e stili di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
    /* border-top: 1px solid #CCCCCC; */ /* EG: added to separate the content from the banner, but it looks bad*/
}

/* Nascondi cursore di sistema solo su desktop */
@media (min-width: 769px) {
    * {
        cursor: none !important;
    }
    
    body {
        cursor: none;
    }
}

/* === PULSANTE TRADUZIONE === */
.language-toggle {
    position: absolute !important;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* === EFFETTO TRANSIZIONE TRADUZIONE === */
.translation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.translation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .language-toggle {
        position: absolute !important;
        top: 15px;
        right: 15px;
        padding: 8px;
        transform: translate3d(0, 0, 0);
        will-change: auto;
    }
    
    .flag-icon {
        width: 28px;
        height: 19px;
    }
}

/* === CURSORE SEMPLICE === */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease;
}

/* Scia del cursore */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
}

/* Cursore nero per sfondi bianchi */
.custom-cursor.dark {
    background: black;
}

.cursor-trail.dark {
    background: rgba(0, 0, 0, 0.6);
}

/* === PLACEHOLDER VIDEO === */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
}
    
    /* Per browser WebKit-based (Chrome, Edge, Safari) */
/* Scrollbar ultrasottile */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

/* Firefox scrollbar ultrasottile */
* {
  scrollbar-width: thin;         /* automatic ~4-6px */
  scrollbar-color: #444 #0a0a0a;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo fisso in alto */
.logo-fixed {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Like */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  width: 700px;
  max-width: 95vw;
  min-height: 350px;
  position: relative;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}
.modal-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  border-right: 1px solid #eee;
}
.qr-space {
  width: 160px;
  height: 160px;
  background: #f3f3f3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.qr-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2563eb;
  text-align: center;
}
.modal-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
}
#modalVideo {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.modal-caption {
  font-size: 1.1rem;
  color: #222;
  font-weight: 500;
  margin-top: 4px;
}
.close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2rem;
  color: #333;
  font-weight: bold;
}

.logo-image {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: 150px 0 0 0;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-tagline {
    margin-bottom: 40px;
    width: 100%;
    max-width: 1000px;
}

.main-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* Nascondi il break su desktop */
.mobile-break {
    display: none;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #cccccc;
    text-align: center;
    margin-bottom: 0;
}

.countdown-section {
    margin-bottom: 20px;
    text-align: center;
}

.countdown-timer {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', monospace;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.countdown-description {
    font-size: 0.9rem;
    font-weight: 400;
    color: #aaaaaa;
    text-align: center;
    line-height: 1.4;
    margin-bottom: -45px;
}

.tagline-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.tagline-secondary {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.app-download {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.app-download-between {
    display: flex;
    justify-content: center;
    margin: 10px 0 10px 0;
    padding: 0;
    background: #000000;
    position: relative;
    z-index: 10;
}

.download-app-store {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    overflow: visible; /* Permette al modal di uscire dai bordi del pulsante */
}

.download-app-store:hover {
    text-decoration: none;
}

/* QR Modal Hover */
.qr-modal-hover {
    position: absolute;
    top: 20%; /* Spostato più in alto */
    right: 100%; /* Posiziona il modal alla sinistra del pulsante */
    transform: translateY(-50%) translateX(-40px); /* Spostato più a sinistra */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    pointer-events: none; /* Previene interferenze con il click del pulsante */
}

.qr-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
    text-align: center;
}

.qr-code-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Effetto hover: mostra il modal solo su desktop */
@media (min-width: 769px) {
    .download-app-store:hover .qr-modal-hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(-30px); /* Slide in con posizione finale più a sinistra */
    }
    
    /* Stili specifici per il primo pulsante (hero section) - molto più a sinistra */
    .app-download .download-app-store .qr-modal-hover {
        transform: translateY(-50%) translateX(-200px); /* Posizione iniziale ancora più a sinistra */
    }
    
    .app-download .download-app-store:hover .qr-modal-hover {
        transform: translateY(-50%) translateX(-180px); /* Posizione finale ancora più a sinistra */
    }
    
    /* Stili specifici per il secondo pulsante (between sections) - posizione originale */
    .app-download-between .download-app-store .qr-modal-hover {
        top: 50%; /* Posizione originale centrata */
        transform: translateY(-50%) translateX(-20px); /* Posizione originale */
    }
    
    .app-download-between .download-app-store:hover .qr-modal-hover {
        transform: translateY(-50%) translateX(-10px); /* Posizione finale originale */
    }
    
    /* Stili specifici per il terzo pulsante (participation section) - come il secondo */
    .app-download-participation .download-app-store .qr-modal-hover {
        top: 50%; /* Posizione originale centrata */
        transform: translateY(-50%) translateX(-20px); /* Posizione originale come il secondo */
    }
    
    .app-download-participation .download-app-store:hover .qr-modal-hover {
        transform: translateY(-50%) translateX(-10px); /* Posizione finale originale come il secondo */
    }
}

.app-store-badge {
    height: 130px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.app-store-badge:hover {
    transform: scale(1.05) translateY(-2px);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    width: 100vw;
    position: relative;
    z-index: 2;
    padding: 0 8px;
    margin: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    margin-top: -30px;
}

.video-item {
    width: 100%;
    height: 480px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    background: #000;
    aspect-ratio: 9/16;
    position: relative;
    box-sizing: border-box;
}

.video-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    /* Ottimizzazioni performance video */
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
    /* Stato di caricamento per lazy loading */
    background-color: #1a1a1a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23666' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-dasharray='31.416' stroke-dashoffset='31.416'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' values='0 50 50;360 50 50' repeatCount='indefinite'/%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

/* Nasconde il loader quando il video è caricato */
.video-item video[src]:not([src=""]) {
    background-image: none;
}

.video-caption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    line-height: 1.2;
}

.video-caption::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: -1;
}

.video-caption .hashtag {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Bottone carica altri video */
.load-more-videos {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.load-more-btn {
    background: linear-gradient(45deg, #ffffff, #cccccc);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Participation Section */
.participation-section {
    padding: 0;
    margin-top: 0;
    background: #000000;
    position: relative;
    z-index: 3;
}

.participation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.participation-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.participation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.participation-logo-mobile {
    width: 300px;
    height: 60px;
    object-fit: contain;
}

.participation-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.participation-title::before {
    display: none;
}

.participation-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: 18%;
    margin-right: auto;
    white-space: nowrap;
    text-align: left;
}

.blurred-carousel-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    margin: 0 auto 40px;
    border-radius: 24px;
}

.blurred-carousel {
    display: flex;
    width: calc(200% + 40px);
    height: 100%;
    animation: scrollCarousel 25s linear infinite;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.blurred-video-item {
    flex: 0 0 calc(12% - 15px);
    height: 100%;
    margin-right: 15px;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 9/16;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 
                0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    position: relative;
}

.blurred-video-item .video-caption {
    filter: none;
    z-index: 10;
}

.blurred-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    /* Ottimizzazioni performance per video blurred */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Background di caricamento */
    background-color: #1a1a1a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23666' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-dasharray='31.416' stroke-dashoffset='31.416'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' values='0 50 50;360 50 50' repeatCount='indefinite'/%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

/* Nasconde il loader quando il video blurred è caricato */
.blurred-video-item video[src]:not([src=""]) {
    background-image: none;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.overlay-text-center {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 14px 40px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 6px 20px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

.app-download-participation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 0;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo-fixed {
        top: 15px;
        z-index: 1001;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .hero {
        padding: 120px 15px 0 15px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .hero-tagline {
        margin-bottom: -10px;
    }
    
    .main-title {
        font-size: 1.4rem;
        letter-spacing: 0.3px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    /* Mostra il break su mobile */
    .mobile-break {
        display: inline;
    }
    
    .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .countdown-section {
        margin-bottom: 25px;
    }
    
    .countdown-timer {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    
    .countdown-description {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .app-store-badge {
        height: 110px;
    }
    
    /* Disabilita l'effetto hover del QR modal su mobile */
    .qr-modal-hover {
        display: none !important;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 1fr);
        gap: 3px;
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        margin: 0;
        margin-top: -30px;
    }
    
    .video-item {
        width: 100%;
        height: 280px;
        border-radius: 8px;
    }
    
    .video-caption {
        font-size: 0.55rem;
        padding: 4px 6px;
        bottom: 6px;
        right: 6px;
        border-radius: 6px;
    }
    
    .video-caption .hashtag {
        font-size: 0.65rem;
        font-weight: 600;
    }
    
    .app-download-between {
        margin: 15px 0;
        padding: 0 15px;
    }
    
    .participation-section {
        padding: 50px 0;
        background: #000000;
    }
    
    .participation-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
        align-items: center;
        justify-content: center;
    }

    .participation-logo-mobile {
        width: 60px;
        height: 60px;
        order: 0;
    }

    .participation-title {
        font-size: 1.8rem;
        margin-bottom: 0;
        padding: 0 15px;
        line-height: 1.1;
        text-align: center;
        font-weight: 800;
        letter-spacing: 1px;
    }    .participation-title::before {
        display: none;
    }
    
    .participation-subtitle {
        font-size: 1rem;
        padding: 0 15px;
        white-space: normal;
        margin-bottom: 40px;
        text-align: center;
        line-height: 1.4;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        color: #e0e0e0;
        font-weight: 400;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .blurred-carousel-container {
        height: 250px;
        margin: 0 auto 30px;
        border-radius: 16px;
    }
    
    .blurred-video-item {
        flex: 0 0 calc(20% - 8px);
        margin-right: 8px;
        border-radius: 16px;
    }
    
    .blurred-video-item video {
        filter: blur(10px);
    }
    
    .blurred-video-item .video-caption {
        filter: none;
        z-index: 10;
        font-size: 0.45rem;
        padding: 2px 4px;
        bottom: 4px;
        right: 4px;
        border-radius: 4px;
    }
    
    .blurred-video-item .video-caption .hashtag {
        font-size: 0.55rem;
    }
    
    .overlay-text-center {
        font-size: 0.8rem;
        padding: 10px 25px;
        border-radius: 12px;
    }
    
    .app-download-participation {
        padding: 0 15px;
    }
}

/* Media query per schermi molto piccoli */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.2rem;
    }
    
    .countdown-timer {
        font-size: 1.8rem;
    }
    
    .app-store-badge {
        height: 90px;
        margin-bottom: -40px
    }
    
    .video-item {
        height: 240px;
    }
    
    .participation-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .participation-logo-mobile {
        width: 250px;
        height: 50px;
        margin-bottom: -15px;
    }

    .participation-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
        line-height: 1.5;
        margin-bottom: 35px;
        text-align: center;
        color: #e0e0e0;
        font-weight: 400;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .participation-title {
        font-size: 1.6rem;
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: 0.5px;
    }    .participation-title::before {
        display: none;
    }
    
    .blurred-carousel-container {
        height: 200px;
    }
    
    .overlay-text-center {
        font-size: 0.75rem;
        padding: 8px 20px;
    }
}

/* Media query per tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo-image {
        height: 55px;
    }
    
    .hero {
        padding: 130px 20px 0 20px;
    }
    
    .main-title {
        font-size: 1.7rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 5px;
    }
    
    .video-item {
        height: 320px;
    }
    
    .participation-title {
        font-size: 2.2rem;
        gap: 12px;
    }
    
    .participation-title::before {
        width: 50px;
        height: 50px;
    }
    
    .blurred-carousel-container {
        height: 350px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal[style*="block"] {
    display: flex !important;
}

.modal-content {
    position: relative;
    width: 650px;
    max-width: 95vw;
    height: 350px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.modal-left {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.modal-left::before {
    display: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    position: relative;
}

.qr-code-section {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.qr-code-section::before {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
}

.qr-code-placeholder {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: inline-block;
    backdrop-filter: none;
    border: none;
    transform: none;
    animation: none;
    position: relative;
}

.qr-code-placeholder::before {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes borderGlow {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.02); }
}

.qr-code-placeholder img {
    display: block;
    border-radius: 8px;
    width: 180px !important;
    height: 180px !important;
    transform: translateX(10%);
}

.qr-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #000000;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    max-width: 250px;
    text-transform: uppercase;
    text-shadow: none;
    animation: none;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    filter: none;
}

@keyframes textPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    }
}

.highlight-like {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    text-transform: uppercase;
    font-weight: 900;
    animation: none;
    filter: none;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modal-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
}

#modalVideo {
    width: 160px;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#modalVideo::-webkit-media-controls {
    display: none !important;
}

#modalVideo::-webkit-media-controls-panel {
    display: none !important;
}

#modalVideo::-webkit-media-controls-play-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-volume-slider {
    display: none !important;
}

#modalVideo::-webkit-media-controls-timeline {
    display: none !important;
}

#modalVideo::-webkit-media-controls-current-time-display {
    display: none !important;
}

#modalVideo::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

#modalVideo::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Nasconde tutti i controlli video iOS Safari specifici */
#modalVideo::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-start-playback-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-rewind-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-seek-back-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-seek-forward-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-wireless-playback-picker-button {
    display: none !important;
}

#modalVideo::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

/* Nasconde il pulsante di riproduzione overlay su iOS */
#modalVideo::-webkit-media-controls-overlay-play-button {
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* CSS aggiuntivo per iOS Safari */
@supports (-webkit-touch-callout: none) {
    #modalVideo {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    #modalVideo::-webkit-media-controls {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }
}

.modal-video-caption {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: absolute;
    bottom: 45px;
    right: 30px;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.5rem;
    font-weight: 500;
    text-align: right;
    line-height: 0.6;
    z-index: 10;
}

.modal-hashtag {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.50rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

/* Bottone di chiusura del modal */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: none; /* Nascosto su desktop */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

/* Nascondi il pulsante download su desktop */
.download-button-modal {
    display: none;
}

.download-app-btn {
    display: none;
}

/* Logo mobile - nascosto su desktop */
.modal-logo-mobile {
    display: none;
}

/* Nascondi il logo fisso quando il modal è visibile su mobile */
@media (max-width: 768px) {
    body.modal-open .logo-fixed {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Nascondi il pulsante di traduzione quando il modal è aperto su mobile */
    body.modal-open .language-toggle {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}
/* Responsive design per il modal */
@media (max-width: 768px) {
    .modal {
        padding: 0;
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        flex-direction: column;
        border-radius: 0;
        margin: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
        position: relative;
        background: transparent;
        box-shadow: none;
    }
    
    .modal-body {
        flex-direction: column;
        height: 100%;
        width: 100%;
        justify-content: center;
        align-items: center;
        position: relative;
        background: transparent;
    }
    
    .modal-left {
        display: none;
    }
    
    .modal-right {
        flex: 1;
        padding: 20px;
        align-items: center;
        justify-content: center;
        min-height: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        background: transparent;
    }
    
    .modal-logo-mobile {
        display: block;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .modal-logo-image {
        height: 40px;
        width: auto;
    }
    
    .modal-video-container {
        width: 100%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 0;
        background: transparent;
    }
    
    #modalVideo {
        width: 100% !important;
        max-width: 280px;
        height: auto !important;
        aspect-ratio: 9/16;
        border-radius: 16px !important;
        object-fit: cover;
        display: block;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        margin-bottom: 12px;
    }
    
    .modal-video-caption {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 8px 12px;
        font-size: 0.45rem;
        border-radius: 6px;
        line-height: 1.2;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }
    
    .download-button-modal {
        margin-top: 30px;
        width: 100%;
        max-width: 280px;
        z-index: 100;
        display: block;
    }
    
    .download-app-btn {
        display: block;
        width: 100%;
        background-color: #ffffff;
        color: #000000;
        border: none;
        padding: 16px 20px;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    
    .download-app-btn:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    }
    
    .download-app-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .qr-code-placeholder {
        display: none;
    }
    
    .qr-text {
        display: none;
    }
    
    .modal-hashtag {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .modal-author {
        font-size: 0.65rem;
    }
    
    /* Mostra il bottone di chiusura su mobile */
    .modal-close-btn {
        display: flex;
        position: absolute;
        top: 40px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid rgba(255, 255, 255, 0.4);
        z-index: 1001;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .modal-close-btn:hover {
        background: rgba(0, 0, 0, 0.95);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .modal {
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .modal-content {
        height: 100vh;
        width: 100vw;
        border-radius: 0;
        background: transparent;
    }
    
    .modal-left {
        display: none;
    }
    
    .modal-right {
        flex: 1;
        padding: 15px;
        background: transparent;
    }
    
    .modal-logo-mobile {
        margin-bottom: 25px;
    }
    
    .modal-logo-image {
        height: 35px;
    }
    
    .modal-video-container {
        max-width: 260px;
        background: transparent;
    }
    
    #modalVideo {
        max-width: 240px !important;
        border-radius: 12px !important;
        margin-bottom: 10px;
    }
    
    .download-button-modal {
        margin-top: 25px;
        max-width: 240px;
        display: block;
    }
    
    .download-app-btn {
        display: block;
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 10px;
        background-color: #ffffff;
        color: #000000;
    }
    
    .modal-video-caption {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 6px 10px;
        font-size: 0.4rem;
        border-radius: 5px;
        line-height: 1.2;
        text-align: center;
        width: 100%;
        max-width: 240px;
    }
    
    /* Posizionamento ottimizzato per schermi molto piccoli */
    .modal-close-btn {
        top: 5px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}

/* Cursor pointer sui video cliccabili */
.clickable-video {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.clickable-video:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* === MEDIA QUERIES PER SCHERMI GRANDI === */
/* Schermi grandi (1200px e oltre) */
@media (min-width: 1200px) {
    /* Box video più lunghe per schermi grandi */
    .video-item {
        height: 580px; /* Aumentato da 480px */
    }
    
    /* Video modal su schermi grandi */
    #modalVideo {
        width: 180px !important;
        height: 270px !important;
    }
    
    /* Posizione corretta delle scritte sui video modal per schermi grandi */
    .modal-video-caption {
        bottom: 30px;
        right: 20px;
        padding: 5px 9px;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    
    .modal-hashtag {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
}

/* Schermi molto grandi (1440px e oltre) */
@media (min-width: 1440px) {
    /* Box video ancora più lunghe per schermi molto grandi */
    .video-item {
        height: 650px; /* Ancora più alto */
    }
    
    /* Video modal su schermi molto grandi */
    #modalVideo {
        width: 200px !important;
        height: 300px !important;
    }
    
    /* Posizione ottimizzata delle scritte per schermi molto grandi */
    .modal-video-caption {
        bottom: 15px;
        right: 12px;
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .modal-hashtag {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
}

/* Schermi extra grandi (1920px e oltre) */
@media (min-width: 1920px) {
    /* Box video ottimizzate per schermi 4K */
    .video-item {
        height: 720px; /* Altezza ottimale per 4K */
    }
    
    /* Griglia video ottimizzata per schermi molto grandi */
    .videos-grid {
        gap: 15px; /* Gap leggermente più ampio */
        padding: 0 20px; /* Padding maggiore ai lati */
    }
    
    /* Video modal per schermi 4K */
    #modalVideo {
        width: 220px !important;
        height: 320px !important;
    }
}

/* === FOOTER STYLES === */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    margin-bottom: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 15px;
    font-weight: 300;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-copyright p {
    margin: 0;
}

/* Footer responsive - design minimal */
@media (max-width: 768px) {
    .footer {
        padding: 20px 20px 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-link {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 400;
        transition: color 0.2s ease;
    }
    
    .footer-link:hover,
    .footer-link:active {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .footer-separator {
        color: rgba(255, 255, 255, 0.3);
        margin: 0;
        font-weight: 300;
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8rem;
        font-weight: 300;
        order: -1;
    }
}

/* Footer per schermi molto piccoli - design minimal */
@media (max-width: 480px) {
    .footer {
        padding: 15px 15px 12px;
        margin-top: 30px;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-link {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 400;
        transition: color 0.2s ease;
    }
    
    .footer-link:hover,
    .footer-link:active {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .footer-separator {
        color: rgba(255, 255, 255, 0.3);
        margin: 0;
        font-weight: 300;
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.75rem;
        font-weight: 300;
        order: -1;
    }
}
