    /* Variabili CSS */
    :root {
      --primary-color: #FF8C00; /* Colore arancione scuro per richiamare il logo */
      --primary-dark: #E67E00;
      --primary-light: #FFA033;
      --dark-bg: #121212;
      --dark-bg-lighter: #1e1e1e;
      --light-text: #ffffff;
      --accent-color: #f8f8f8;
      --section-padding: 60px 20px;
      --gradient-bg: linear-gradient(135deg, rgba(255, 140, 0, 0.8), rgba(230, 126, 0, 0.9));
      --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      --neon-glow: 0 0 10px rgba(255, 140, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.4);
      --glassmorphism: rgba(30, 30, 30, 0.7);
    }

    /* Reset e stili di base */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    html, body {
      overflow-x: hidden;
      width: 100%;
      min-height: 100%;
      position: relative;
      scroll-behavior: smooth;
      margin: 0;
      padding: 0;
      background-color: var(--dark-bg);
      -webkit-overflow-scrolling: touch;
      transform: translateZ(0);
      will-change: scroll-position;
    }

    body {
      font-family: 'Poppins', Arial, sans-serif;
      background-color: var(--dark-bg);
      background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.1) 0%, transparent 40%);
      color: var(--light-text);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
      touch-action: manipulation;
      overflow: hidden;
      transform: translateZ(0);
      will-change: transform;
    }

    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to bottom, transparent, var(--dark-bg));
      pointer-events: none;
      z-index: -1;
      will-change: transform;
      transform: translateZ(0);
    }

    /* Ottimizzazioni globali per performance */
    *:focus {
      outline: none;
    }

    /* Migliora le performance delle animazioni */
    .hero, .hero-video-bg, .hero-content, .highlight-slide, .highlight-image, .highlights-btn, .cta-button {
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      perspective: 1000px;
      -webkit-perspective: 1000px;
    }

    /* Hero section */
    .hero {
      min-height: 100vh;
      height: 100vh;
      width: 100%;
      min-width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 20px;
      position: relative;
      flex: 1;
      left: 0;
      right: 0;
      margin: 0;
      background-color: var(--dark-bg);
      overflow: hidden;
    }

    .hero-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 1;
    }

    body.fade-out {
      opacity: 0;
      transition: opacity 0.5s cubic-bezier(.4,0,.6,1);
    }
    body {
      transition: opacity 0.5s cubic-bezier(.4,0,.6,1);
    }
    .hero {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }
    .hero-video-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100%;
      object-fit: cover;
      z-index: 1;
      pointer-events: none;
    }
    .hero-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding-bottom: 20px;
    }
  

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

    .hero-content {
      position: relative;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100%;
      width: 100%;
    }

    .hero-logo-large {
      max-width: 600px;
      width: 90%;
      margin-bottom: 30px;
      filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.7));
    }

    .hero-logo-large img {
      width: 100%;
      height: auto;
    }

    .hero-text-logo {
      color: var(--primary-color);
      font-size: 140px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 10px;
      margin-bottom: 30px;
      text-shadow: 0 0 20px rgba(255, 140, 0, 0.7);
      width: 100%;
    }
    
    .hero-text-logo span {
      display: block;
      color: var(--light-text);
      font-size: 38px;
      letter-spacing: 15px;
      margin-top: 10px;
    }


    /* Footer styles moved to footer.css */

    /* Media queries */
    @media (max-width: 1055px) {
      /* Logo styling handled by navbar.css */
    }
    @media (max-width: 768px) {
      .hero-logo-large {
        max-width: 400px;
      }

      .hero-text-logo {
        font-size: 80px;
        letter-spacing: 5px;
      }

      .hero-text-logo span {
        font-size: 24px;
        letter-spacing: 8px;
      }

      .hero-logo-large {
        margin-bottom: 20px;
      }

      .hero-title {
        font-size: 24px;
      }

      body.menu-open {
        overflow: hidden;
      }

      .hero {
        padding: 0 15px;
        min-height: 100vh;
        height: 100vh;
      }

      .hero-text-logo {
        font-size: 60px;
        letter-spacing: 3px;
      }

      .hero-text-logo span {
        font-size: 18px;
        letter-spacing: 5px;
      }



      /* Responsive for new sections */
      .section-title {
        font-size: 32px;
        letter-spacing: 2px;
        margin-bottom: 40px;
      }

      .event-card {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .event-info {
        padding: 30px;
      }

      .event-title {
        font-size: 24px;
      }

      .event-actions {
        flex-direction: column;
        gap: 15px;
      }

      .btn-primary, .btn-secondary {
        text-align: center;
        width: 100%;
      }

      .events-carousel {
        max-width: 100%;
        margin: 0 15px;
      }

      .event-slide-content {
        padding: 25px;
      }

      .event-slide-content h3 {
        font-size: 24px;
      }

      .highlights {
        padding: 80px 0;
      }

      .highlights-carousel {
        gap: 15px;
        padding: 15px 0;
        justify-content: center;
        scroll-snap-type: x mandatory;

      }

      .highlight-slide {
        min-width: 240px;
        height: 240px;
        border-radius: 15px;
        scroll-snap-align: center;
        flex-shrink: 0;
      }

      .highlight-image {
        border-radius: 15px;
        background-position: center center;
      }

      .button-slide {
        border-radius: 15px;
        padding: 25px;
        scroll-snap-align: center;
      }

      .more-photos-button h3 {
        font-size: 20px;
      }

      .more-photos-button p {
        font-size: 13px;
      }

      .btn-highlights {
        padding: 10px 20px;
        font-size: 13px;
      }

      .highlights-nav {
        margin-top: 35px;
        gap: 25px;
        position: relative;
        z-index: 10;
      }

      .highlights-btn {
        width: 55px;
        height: 55px;
        padding: 0px;
        font-size: 26px;
        box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
      }
    }

    @media (max-width: 640px) {
      .highlights-carousel {
        gap: 0;
        margin: 0;
        justify-content: center;
        scroll-snap-type: x mandatory;
        padding: 15px 20px;
      }

      .highlight-slide {
        min-width: 280px;
        width: 280px;
        height: 280px;
        border-radius: 12px;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin: 0 auto;
      }

      .highlight-image {
        border-radius: 12px;
        background-position: center center;
      }

      .button-slide {
        padding: 20px 15px;
        border-radius: 12px;
        scroll-snap-align: center;
        min-width: 280px;
        width: 280px;
      }

      .more-photos-button h3 {
        font-size: 18px;
      }

      .more-photos-button p {
        font-size: 12px;
      }

      .highlights-nav {
        margin-top: 30px;
        gap: 30px;
        position: relative;
        z-index: 10;
      }

      .highlights-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
        box-shadow: 0 12px 30px rgba(255, 140, 0, 0.5);
      }
    }

    @media (max-width: 480px) {
      .hero-logo-large {
        max-width: 300px;
      }

      .hero-text-logo {
        font-size: 50px;
        letter-spacing: 2px;
      }

      .hero-text-logo span {
        font-size: 16px;
        letter-spacing: 3px;
      }


      .section-title {
        font-size: 28px;
        letter-spacing: 1.5px;
        margin-bottom: 35px;
      }

      @supports (padding-top: env(safe-area-inset-top)) {
        .hero {
          padding-left: max(20px, env(safe-area-inset-left));
          padding-right: max(20px, env(safe-area-inset-right));
        }
      }

      .highlights {
        padding: 60px 0;
      }

      .highlights-carousel {
        gap: 0;
        margin: 0;
        justify-content: center;
        scroll-snap-type: x mandatory;
        padding: 15px 15px;
      }

      .highlight-slide {
        min-width: 250px;
        width: 250px;
        height: 250px;
        border-radius: 10px;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin: 0 auto;
      }

      .highlight-image {
        border-radius: 10px;
        background-position: center center;
      }

      .button-slide {
        padding: 18px 12px;
        border-radius: 10px;
        scroll-snap-align: center;
        min-width: 250px;
        width: 250px;
      }

      .more-photos-button h3 {
        font-size: 16px;
      }

      .more-photos-button p {
        font-size: 11px;
      }

      .btn-highlights {
        padding: 8px 16px;
        font-size: 12px;
      }

      .highlights-nav {
        margin-top: 25px;
        gap: 25px;
        position: relative;
        z-index: 10;
      }

      .highlights-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
        box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
      }
    }

    @media (max-width: 320px) {
      .hero-logo-large {
        max-width: 240px;
      }
      
      .hero-text-logo {
        font-size: 32px;
        letter-spacing: 1px;
      }
      
      .hero-text-logo span {
        font-size: 14px;
        letter-spacing: 2px;
      }
    


      .highlights-carousel {
        gap: 0;
        margin: 0;
        justify-content: center;
        scroll-snap-type: x mandatory;
        padding: 15px 10px;
      }

      .highlight-slide {
        min-width: 220px;
        width: 220px;
        height: 220px;
        border-radius: 8px;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin: 0 auto;
      }

      .highlight-image {
        border-radius: 8px;
        background-position: center center;
      }

      .button-slide {
        border-radius: 8px;
        padding: 15px 10px;
        scroll-snap-align: center;
        min-width: 220px;
        width: 220px;
      }

      .more-photos-button h3 {
        font-size: 14px;
      }

      .more-photos-button p {
        font-size: 10px;
      }

      .btn-highlights {
        padding: 6px 12px;
        font-size: 11px;
      }

      .highlights-nav {
        margin-top: 20px;
        gap: 20px;
        position: relative;
        z-index: 10;
      }

      .highlights-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
      }
    }

    /* Improve button press behavior on mobile */
    .cta-button, .nav-links a, .social a {
      -webkit-tap-highlight-color: transparent;
    }

    /* For devices that support it, add safe area insets */
    @supports (padding-top: env(safe-area-inset-top)) {
      body {
        padding-top: 0;
      }
      

    }

    /* Active state for menu */
    body.menu-open {
      overflow: hidden;
    }

    /* Force full width */
    main {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      margin: 0;
      padding: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* For iOS Safari specific fixes */
    @supports (-webkit-touch-callout: none) {
      body, html {
        height: -webkit-fill-available;
        width: 100vw;
      }
      
      .hero {
        width: 100vw;
        left: 0;
        right: 0;
      }

    }
    
    /* Fix for the gray area on the right side on mobile */
    @media screen and (max-width: 768px) {
      html, body {
        overflow-x: hidden;
        width: 100vw;
        position: relative;
      }
      
      body {
        min-height: 100vh;
        height: auto;
      }
      
      main {
        max-width: 100vw;
        overflow-x: hidden;
        flex: 1;
      }
      
      .hero {
        max-width: 100vw;
        min-height: 100vh;
        height: auto;
      }
      
      header {
        max-width: 100vw;
      }
    }

    /* Fullscreen Video Box */
    .fullscreen-video-box {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: #000;
      z-index: 99999;
      overflow: hidden;
    }

    .fullscreen-video-box.active {
      display: block;
    }

    .video-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .video-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      max-width: 100vw;
      max-height: 100vh;
    }

    .close-video-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
      background-color: rgba(0, 0, 0, 0.8);
      color: white;
      border: none;
      border-radius: 50%;
      font-size: 2.5rem;
      cursor: pointer;
      z-index: 100000;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .close-video-btn:hover {
      background-color: rgba(255, 140, 0, 0.8);
      transform: scale(1.1);
    }

    .close-video-btn:active {
      transform: scale(0.95);
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
      .close-video-btn {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 2rem;
      }
    }

    #page-transition {
      position: fixed;
      top: 0; left: 0; width: 100vw; height: 100vh;
      background: #121212;
      opacity: 0;
      pointer-events: none;
      z-index: 9999;
      transition: opacity 0.7s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #page-transition .transition-text {
      color: var(--primary-color);
      font-size: 2.2rem;
      font-weight: 600;
      letter-spacing: 2px;
      opacity: 0;
      transition: opacity 0.5s 0.1s;
      text-shadow: 0 0 20px var(--primary-color), 0 0 40px #000;
    }
    #page-transition.active .transition-text {
      opacity: 1;
    }
    #page-transition:not(.active) .transition-text {
      opacity: 0;
    }

    @supports (padding-top: env(safe-area-inset-top)) {
      main, .hero, .content, .about-section, .contact-section {
        padding-top: max(20px, env(safe-area-inset-top));
      }
    }

    html {
      touch-action: manipulation;
      -webkit-text-size-adjust: 100%;
    }

    /* Container */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Section Title */
    .section-title {
      text-align: center;
      font-size: 42px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 3px;
      margin-bottom: 60px;
      color: var(--light-text);
      text-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
      position: relative;
      padding-bottom: 25px;
    }

    /* Section Title - Glow dinamico */
    .section-title {
      text-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }

    .section-title.glow-active::after {
      animation: glow 1.5s ease-out forwards;
    }

    /* Glow keyframes */
    @keyframes glow {
      0% {
        box-shadow: none;
      }
      100% {
        box-shadow: var(--neon-glow);
      }
    }


    /* Highlights Section */
    .highlights {
      padding: 100px 0;
      position: relative;
      overflow: hidden;
      will-change: transform;
    }

    .highlights::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(18, 18, 18, 0.1) 50%, rgba(255, 140, 0, 0.05) 100%);
      pointer-events: none;
      will-change: transform;
    }

    .highlights .container {
      position: relative;
      z-index: 2;
    }

    .highlights-carousel {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 20px 0;
      -webkit-overflow-scrolling: touch;
      will-change: scroll-position;
      transform: translateZ(0);
    }

    .highlights-carousel::-webkit-scrollbar {
      display: none;
    }

    .highlight-slide {
      min-width: 280px;
      height: 280px;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      flex-shrink: 0;
      background-color: var(--dark-bg);
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      cursor: pointer;
    }

    .highlight-slide:hover {
      transform: translateY(-10px) translateZ(0);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    .highlight-image {
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      position: relative;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      object-fit: cover;
      object-position: center;
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .highlight-slide:hover .highlight-image {
      transform: scale(1.05) translateZ(0);
    }

    /* Button slide styling */
    .button-slide {
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 30px;
      border-radius: 20px;
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .more-photos-button h3 {
      font-size: 22px;
      font-weight: 700;
      color: var(--light-text);
      margin-bottom: 12px;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .more-photos-button p {
      font-size: 14px;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 20px;
    }

    .btn-highlights {
      display: inline-block;
      padding: 12px 24px;
      background: rgba(255, 255, 255, 0.1);
      color: var(--light-text);
      text-decoration: none;
      border-radius: 20px;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .btn-highlights:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-3px) translateZ(0);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .highlights-nav {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 40px;
      position: relative;
      z-index: 10;
    }

    .highlights-btn {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      border: none;
      color: var(--light-text);
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
      position: relative;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      outline: none;
      -webkit-tap-highlight-color: transparent;
    }

    /* Centra le freccette negli highlights in home */
    .prev{
      padding-right: 3px;
      padding-bottom: 3px;
    }
    .next{
      padding-left: 3px;
      padding-bottom: 3px;
    }

    .highlights-btn:hover {
      transform: translateY(-3px) translateZ(0);
      box-shadow: 0 15px 30px rgba(255, 140, 0, 0.4);
    }

    .highlights-btn:active {
      transform: translateY(-1px) translateZ(0);
    }

    .highlights-btn:focus {
      outline: none;
      box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3), 0 0 0 3px rgba(255, 140, 0, 0.3);
    }

    /* Custom Video Controls */
    .custom-video-controls {
      position: absolute;
      bottom: 20px;
      left: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.8);
      padding: 15px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 15px;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .video-wrapper:hover .custom-video-controls {
      opacity: 1;
    }

    .play-pause-btn {
      background: none;
      border: none;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 5px;
      border-radius: 5px;
      transition: all 0.2s ease;
    }

    .play-pause-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .progress-bar {
      flex: 1;
      height: 6px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 3px;
      cursor: pointer;
      position: relative;
    }

    .progress-fill {
      height: 100%;
      background: var(--primary-color);
      border-radius: 3px;
      width: 0%;
      transition: width 0.1s ease;
    }

    .time-display {
      color: white;
      font-size: 0.9rem;
      font-family: monospace;
      min-width: 80px;
      text-align: center;
    }

    /* Mobile responsive for controls */
    @media (max-width: 768px) {
      .custom-video-controls {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px;
        gap: 10px;
      }
      
      .play-pause-btn {
        font-size: 1.2rem;
      }
      
      .time-display {
        font-size: 0.8rem;
        min-width: 60px;
      }


    }