    /* ==========================================================================
       HEADER & NAVIGATION BAR
       ========================================================================== */
    .top-header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 64px;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
      pointer-events: auto;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: #fff;
    }

    .brand-logo-icon {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--racing-red), var(--racing-orange));
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 18px;
      box-shadow: 0 4px 14px rgba(230, 35, 35, 0.35);
    }

    .brand-title {
      font-size: 1.2rem;
      font-weight: 900;
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }

    .brand-title span {
      color: var(--racing-red);
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .btn-autoplay {
      background: rgba(20, 22, 28, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: var(--text-main);
      padding: 7px 14px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all var(--transition-standard);
    }

    .btn-autoplay:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .status-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background-color: #10b981;
      box-shadow: 0 0 8px #10b981;
    }

    .status-dot.paused {
      background-color: #f59e0b;
      box-shadow: 0 0 8px #f59e0b;
    }

    /* ==========================================================================
       MAIN CAROUSEL CONTAINER
       ========================================================================== */
    .carousel-container {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 750px;
      overflow: hidden;
      display: flex;
      align-items: stretch;
    }

    /* Top Progress Bar (Avanzamento Autoplay) */
    .progress-bar-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.1);
      z-index: 60;
    }

    .progress-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--racing-orange), var(--racing-red));
      box-shadow: 0 0 8px rgba(230, 35, 35, 0.8);
      transition: width 0.05s linear;
    }

    /* Slide Elements */
    .carousel-slides {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .slide-item {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
      z-index: 1;
    }

    .slide-item.active {
      opacity: 1;
      visibility: visible;
      z-index: 2;
    }

    /* Sfondo vettura con leggero zoom */
    .slide-image-wrapper {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .slide-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transform: scale(1);
      transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
      filter: brightness(0.92) contrast(1.05);
    }

    .slide-item.active .slide-image {
      transform: scale(1.06);
    }

    /* Gradienti su foto per aumentare il contrasto */
    .slide-image-wrapper::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.5) 100%),
                  linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 45%);
    }

    /* ==========================================================================
       PANNELLO DETTAGLI A DESTRA (DESKTOP)
       ========================================================================== */
    .details-panel {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: var(--panel-width);
      min-width: 380px;
      max-width: 520px;
      background: var(--panel-bg);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-left: 1px solid var(--panel-border);
      box-shadow: -15px 0 35px rgba(0, 0, 0, 0.45);
      z-index: 25;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 40px 36px 36px 36px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    .details-panel::-webkit-scrollbar {
      width: 4px;
    }
    .details-panel::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 4px;
    }

    /* Animazione contenuti del pannello all'attivazione */
    .panel-content {
      animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fadeInRight {
      from {
        opacity: 0;
        transform: translateX(25px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Badge Stage di preparazione */
    .stage-badge-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .stage-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(135deg, var(--racing-red), #b91c1c);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 4px;
      box-shadow: 0 2px 10px rgba(230, 35, 35, 0.4);
    }

    .stage-badge::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff;
    }

    .project-type {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      font-weight: 600;
    }

    .car-title {
      font-size: 2rem;
      font-weight: 900;
      letter-spacing: -0.5px;
      text-transform: uppercase;
      line-height: 1.1;
      margin-bottom: 8px;
    }

    .title-accent-line {
      width: 50px;
      height: 3px;
      background: linear-gradient(90deg, var(--racing-red), var(--racing-orange));
      border-radius: 2px;
      margin-bottom: 24px;
    }

    /* Griglia Telemetria / Dati Tecnici */
    .stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 24px;
    }

    .stat-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 10px;
      padding: 12px 14px;
      transition: all var(--transition-standard);
    }

    .stat-card:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .stat-label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      font-weight: 600;
      margin-bottom: 3px;
    }

    .stat-value {
      font-size: 1.4rem;
      font-weight: 800;
      color: #fff;
      line-height: 1.1;
    }

    .stat-value.highlight-red {
      color: var(--racing-red);
    }

    .stat-value.highlight-orange {
      color: var(--racing-orange);
    }

    /* Lista Componenti / Upgrade Motore */
    .specs-section {
      margin-bottom: 24px;
    }

    .specs-title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .specs-title::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.1);
    }

    .specs-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .specs-item {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      font-size: 0.8rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      padding-bottom: 8px;
    }

    .specs-item-name {
      color: var(--text-muted);
      font-weight: 500;
      min-width: 90px;
    }

    .specs-item-value {
      color: #e5e7eb;
      font-weight: 600;
      text-align: right;
    }

    /* Footer del Pannello & CTA */
    .panel-footer {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .lap-record {
      display: flex;
      flex-direction: column;
    }

    .lap-record-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
    }

    .lap-record-time {
      font-size: 0.95rem;
      font-weight: 800;
      color: #34d399;
      letter-spacing: 0.5px;
    }

    .btn-quote {
      background: linear-gradient(135deg, var(--racing-red), var(--racing-orange));
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 12px 18px;
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(230, 35, 35, 0.35);
      transition: all var(--transition-standard);
      white-space: nowrap;
    }

    .btn-quote:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(230, 35, 35, 0.55);
      filter: brightness(1.1);
    }

    .btn-quote:active {
      transform: translateY(0);
    }

    .nav-controls {
      position: absolute;
      bottom: 36px;
      left: 36px;
      z-index: 30;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .nav-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(14, 16, 20, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all var(--transition-standard);
      outline: none;
    }

    @media (hover: hover) and (pointer: fine) {
      .nav-btn:hover {
        background: var(--racing-red);
        border-color: var(--racing-red);
        transform: scale(1.08);
        box-shadow: 0 0 15px rgba(230, 35, 35, 0.6);
      }
    }

    .nav-btn:active {
      transform: scale(0.96);
    }

    .nav-btn svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }


    .indicators-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(14, 16, 20, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 8px 14px;
      border-radius: 30px;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.3);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      border: none;
    }

    .dot:hover {
      background: rgba(255, 255, 255, 0.7);
    }

    .dot.active {
      width: 28px;
      background: var(--racing-red);
      box-shadow: 0 0 8px rgba(230, 35, 35, 0.8);
    }

    .mobile-badge {
      display: none;
    }


    @media (max-width: 575px) {
      /* NASCONDI COMPLETAMENTE IL PANNELLO A DESTRA */
      .details-panel {
        display: none !important;
      }

      /* Controlli riposizionati e ottimizzati per touch */
      .nav-controls {
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        justify-content: space-between;
      }

      .indicators-bar {
        padding: 6px 12px;
      }

      .carousel-container {
        min-height: 565px;
      }

      .nav-btn {
        width: 44px;
        height: 44px;
      }

      /* Mini badge discreto sopra i tasti per mostrare quale auto è attiva */
      .mobile-badge {
        display: block;
        position: absolute;
        bottom: 84px;
        left: 16px;
        right: 16px;
        z-index: 28;
        background: rgba(10, 11, 14, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px;
        border-radius: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
      }

      .mobile-badge-title {
        font-size: 1.05rem;
        font-weight: 800;
        text-transform: uppercase;
      }

      .mobile-badge-subtitle {
        font-size: 0.7rem;
        color: var(--racing-red);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .mobile-badge-power {
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--racing-orange);
        text-align: right;
      }

      .mobile-badge-torque {
        font-size: 0.8rem;
        color: var(--text-muted);
        text-align: right;
      }
    }