* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #0d0d0d;
            font-family: Arial, sans-serif;
            color: white;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Text Carousel styles */
        .text-carousel {
            position: relative;
            overflow: hidden;
            width: 100%;
            background: linear-gradient(
                to right,
                #7b82ec 0%,
                #b43d9e 40%,
                #b43d9e 60%,
                #f351d5 100%
            );            padding: 0.8rem 0;
            border-bottom: 1px solid #333;
        }
        .text-carousel-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3;
            pointer-events: none;
        }
        .text-carousel-overlay span {
            background: rgba(0,0,0,0.45);
            color: #fff;
            padding: 0.4em 1.5em;
            border-radius: 1em;
            font-size: 1.12rem;
            font-weight: 600;
            max-width: 96vw;
            text-align: center;
            box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
            letter-spacing: 0.01em;
            transition: background 0.5s;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        @media (max-width: 600px) {
            .text-carousel-overlay span {
                font-size: 1rem;
                padding: 0.4em 0.7em;
                max-width: 94vw;
            }
        }
       
        .text-carousel::after {
            display: none !important;
        }
        .text-carousel-container {
            position: relative;
            height: 1.5rem;
        }

        .text-carousel-item {
            position: absolute;
            width: 100%;
            text-align: center;
            font-size: 1.15rem;
            color: white;
            opacity: 0;
            transform: translateX(100%);
            transition: transform 1s ease-in-out, opacity 0.5s ease-in-out;
        }

        .text-carousel-item.active {
            opacity: 1;
            transform: translateX(0);
        }

        .text-carousel-item.exit {
            opacity: 0;
            transform: translateX(-100%);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            background-color: rgba(0, 0, 0, 0.9);
            border-bottom: 1px solid #333;
            position: relative;
            z-index: 2;
        }

        /* Left section styles */
        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem; /* Aggiunge spazio tra gli elementi */
        }

        /* Hamburger menu */
        .hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            color: white;
            font-size: 1.5rem;
        }

        /* Center section styles */
        .nav-center {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .logo {
            display: flex;
            justify-content: center;
        }

        .logo-square {
            width: 30px;
            height: 30px;
            background-color: white;
        }

        .nav-links {
            display: none;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-size: 1.2rem;
        }

        .nav-links a:hover {
            color: #ccc;
        }

        /* Right section styles */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* User info styles */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            position: relative; /* Ensure the parent is positioned */
        }

        .user-info i {
            color: white;
            font-size: 1.2rem;
        }

        .user-number {
            color: white;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            background-color: #2ecc71;
            border-radius: 50%;
            display: inline-block;
            position: absolute;
            top: 0; /* Align to the top */
            right: -4px; /* Align to the right */
            transform: translate(50%, -50%); /* Optional: fine-tune positioning */
        }

        /* Action icon */
        .action-icon {
            color: white;
            font-size: 1.5rem;
            text-decoration: none;
        }

        /* Mobile menu */
        .mobile-menu {
            display: none;
            position: absolute; /* Ensure it is positioned relative to the navbar */
            top: 100%; /* Place it directly below the navbar */
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 10; /* Ensure it appears above other elements */
            padding-top: 0.5rem; /* Optional: Add some spacing */
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-menu ul {
            list-style: none;
        }

        .mobile-menu a {
            color: white;
            text-decoration: none;
            display: block;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            transition: background-color 0.3s;
        }

        .mobile-menu a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* Video section styles */
        .video-section {
            position: relative;
            width: 100%;
            background: #000;
        }

        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-overlay {
            position: absolute;
            bottom: 2rem;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            padding: 0 1rem;
        }

        .overlay-button {
            padding: 0.8rem 1.5rem;
            background-color: transparent;
            border: 2px solid white;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .overlay-button:hover {
            background-color: #BF00FF;
            border-color: #BF00FF;
        }

        /* Library section styles */
        .library-section {
            padding: 1.5rem 1rem;
            background-color: #646464;
            color: white;
        }

        .library-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 2rem;
            font-weight: 300;
            margin-top: 0.5rem;
        }

        .library-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .video-thumbnail {
            width: 100%;
            background-color: #1a1a1a;
            overflow: hidden;
            border-radius: 8px;
            transition: transform 0.3s ease;
        }

        .video-thumbnail:hover {
            transform: scale(1.05);
        }

        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-overlay-bottom {
            position: absolute;
            left: 0; right: 0; bottom: 0;
            background: rgba(171, 156, 156, 0.7);
            color: #fff;
            width: 100%;
            padding: 1rem 1rem 0.7rem 1rem;
            opacity: 0;
            transform: translateY(100%);
            transition: opacity 0.25s, transform 0.25s;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            border-radius: 0 0 8px 8px;
        }
        .video-thumbnail:hover .video-overlay-bottom,
        .video-thumbnail:focus .video-overlay-bottom {
            opacity: 1;
            transform: translateY(0);
        }
        @media (max-width: 600px) {
            .library-carousel .video-overlay-bottom {
                display: none !important;
            }
        }@media (max-width: 600px) {
            .video-overlay-bottom {
                opacity: 1;
                transform: translateY(0);
                font-size: 0.95rem;
                padding: 0.7rem 0.7rem 0.5rem 0.7rem;
            }
        }





        /* Mobile carousel styles */
        .library-carousel {
            display: block;
            position: relative;
            max-width: 480px;
            margin: 0 auto;
            padding: 0 1rem;
            box-sizing: border-box;
        }
        .carousel-container {
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 480px;
            margin: 0 auto;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
        }
        .carousel-track {
            display: flex;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            flex: 0 0 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-slide .video-thumbnail {
            width: 100%;
            height: 100%;
            position: relative;
            display: block;
        }

        .carousel-slide .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            z-index: 2;
            background: none;
            color: #111;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 2.2rem;
            font-weight: bold;
            box-shadow: none;
            transform: translateY(-50%);
        }

        .carousel-button:focus {
            outline: none;
        }
        .prev-button {
            left: 0;
        }
        .next-button {
            right: 0;
        }

        .carousel-button::before {
            font-family: Arial, sans-serif;
            font-size: 2.2rem;
            line-height: 1;
        }
        .prev-button::before {
            content: '\2039'; /* Unicode freccia sinistra */
        }
        .next-button::before {
            content: '\203A'; /* Unicode freccia destra */
        }

        @media (max-width: 400px) {
            .carousel-button.prev-button { left: -14px; }
            .carousel-button.next-button { right: -14px; }
        }

        .library-carousel {
            position: relative;
        }

        /* Desktop layout */
        @media (min-width: 769px) {
            .mobile-menu, 
            .hamburger,
            .mobile-only {
                display: none !important;
            }
            
            .nav-links {
                display: flex !important;
            }
            
            .logo {
                order: 0;
            }

            .desktop-only {
                display: flex !important;
            }

            /* Desktop specific video styles */
            .video-overlay {
                bottom: 3rem;
            }

            .overlay-button {
                padding: 1rem 2rem;
                font-size: 1.1rem;
            }
            
            .library-carousel {
                display: none !important;
            }
        }

        /* Mobile layout */
        @media (max-width: 768px) {
            .nav-links,
            .desktop-only {
                display: none !important;
            }
            
            .hamburger {
                display: block;
            }
            
            .nav-center {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .logo {
                margin: 0;
            }
            
            .nav-right {
                display: flex;
                align-items: center;
                gap: 1rem;
            }

            .nav-right .desktop-only {
                display: none !important;
            }

            .mobile-only {
                display: flex !important;
            }

            .text-carousel {
                order: -1;
            }

            /* Mobile specific video styles */
            .video-overlay {
                bottom: 1rem;
                gap: 0.5rem;
                padding: 0 0.5rem;
            }

            .overlay-button {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
                letter-spacing: 0.5px;
                border-width: 1px;
            }

            .library-grid {
                display: none;
            }

            .library-carousel {
                display: block;
            }

            .library-title {
                font-size: 1.5rem;
            }
        }

        /* Pacchetti Section styles */
        .pacchetti-section {
            color: #fff;
            text-align: center;
            padding: 1.5rem 1rem 2rem 1rem;
        }
        .pacchetti-title {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
        }
        .pacchetti-subtitle {
            font-size: 1.3rem;
            font-weight: 500;
            margin-bottom: 2.5rem;
        }
        .pacchetti-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2.5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        .pacchetti-learning-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        @media (max-width: 900px) {
            .pacchetti-learning-grid {
                grid-template-columns: repeat(1, 1fr);
                gap: 2.5rem 2rem;
                padding: 0;
            }
        }
        .pacchetto-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            min-width: 0;
        }
        .pacchetto-img {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 220px;
            aspect-ratio: 3/4;
            background: #222;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 0.7rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        .pacchetto-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .pacchetto-name {
            font-weight: bold;
            font-size: 1.25rem;
            color: #fff;
            margin-bottom: 0.5rem;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .pacchetto-oldprice {
            color: #ff4444;
            font-size: 1rem;
            margin-bottom: 0.2rem;
            text-decoration: line-through;
            font-weight: bold;
            text-align: center;
        }
        .pacchetto-price {
            font-size: 1.2rem;
            margin-bottom: 0.7rem;
            text-align: center;
        }
        @media (max-width: 900px) {
            .pacchetti-grid {
                grid-template-columns: repeat(2, 1fr);
                max-width: 100vw;
                gap: 1.5rem 1rem;
            }
            .pacchetto-img {
                max-width: 160px;
            }
            
            .pacchetto-img:hover {
                filter: brightness(0.96);
                box-shadow: 0 0 0 2px #7ad7f0;
            }
        }
        @media (max-width: 600px) {
            .pacchetti-title { font-size: 2rem; }
            .pacchetti-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.2rem 0.5rem;
            }
            .pacchetto-card {
                max-width: 100%;
                margin: 0 auto;
            }
            .pacchetto-img {
                max-width: 140px;
            }
        }

        /* RisultatiFoto Section styles */
        .risultati-foto-section {
            background: #646464;
            padding: 0.1rem 0 0.3rem 0;
        }
        .risultati-foto-title {
            color: #fff;
            text-align: center;
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.1rem;
            letter-spacing: 1px;
            padding-top: 1.5rem;
            padding-bottom: 1rem;
        }
        .risultati-foto-carousel {
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            height: 320px;
            padding-top: 0;
        }
        .carousel-track {
            display: flex;
            align-items: center;
            transition: transform 0.7s cubic-bezier(.55,0,.1,1);
            will-change: transform;
            width: 100%;
            height: 100%;
        }
        .carousel-item {
            width: 250px;
            height: 250px;
            background: #ddd;
            color: #333;
            font-size: 3.5rem;
            font-weight: bold;
            border-radius: 10px;
            margin: 0 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.5s, box-shadow 0.5s;
            box-shadow: 0 2px 18px 0 #0002;
            opacity: 0.7;
            z-index: 1;
            overflow: hidden; /* Ensure content doesn't overflow */
        }
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensure image covers the area while maintaining aspect ratio */
            object-position: center; /* Center the image within the container */
        }
        .carousel-item.selected {
            transform: scale(1.25);
            box-shadow: 0 6px 32px 0 #0004;
            opacity: 1;
            background: #fff;
            color: #222;
            z-index: 2;
        }
        .carousel-item.adjacent {
            opacity: 0.9;
            transform: scale(1);
            background: #eee;
            z-index: 1;
        }
        .carousel-item.placeholder {
            background: transparent !important;
            box-shadow: none !important;
            opacity: 0;
            pointer-events: none;
            display: flex !important;
        }
        @media (max-width: 900px) {
            .risultati-foto-carousel {
                max-width: 98vw;
                height: 160px;
            }
            .carousel-item {
                width: 80px;
                height: 80px;
                font-size: 2rem;
                margin: 0 0.6rem;
            }
        }
        @media (max-width: 600px) {
            .risultati-foto-title { 
                font-size: 1.5rem;
                margin-bottom: 0.1rem;
                padding-top: 1.5rem;
            }
            .risultati-foto-section {
                padding: 0 0 0.3rem 0;
            }
            .risultati-foto-carousel {
                min-height: 250px;
                max-width: 100vw;
                overflow: hidden;
                padding-top: 0;
                margin: 0 auto;
                box-sizing: border-box;
            }
            .carousel-track {
                height: 100%;
            }
            .carousel-item {
                width: 75vw;
                max-width: none;
                min-width: 220px;
                aspect-ratio: 1 / 1;
                height: auto;
                font-size: 4vw;
                margin: 0;
                transition: transform 0.5s, box-shadow 0.5s;
                box-sizing: border-box;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .carousel-item.selected {
                z-index: 2;
                transform: scale(1.01);
            }
            .carousel-item.adjacent {
                z-index: 1;
                opacity: 0.8;
                transform: scale(0.9);
            }
            .carousel-item.placeholder {
                margin: 0;
                width: 150vw;
                max-width: none;
                min-width: 220px;
                aspect-ratio: 1 / 1;
            }
        }

        /* PROTOCOLLI SECTION - Responsive Grid & Carousel */
        .protocolli-section {
            padding: 1.5rem 1rem 2rem 1rem;
            margin-top: 0;
        }
        .protocolli-title{
            color: #fff;
            font-size: 3rem;
            font-weight: bold;
            letter-spacing: 2px;
            text-align: center;
            margin-top: 0;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }
        .pacchetti-title {
            color: #fff;
            font-size: 3rem;
            font-weight: bold;
            letter-spacing: 2px;
            text-align: center;
            margin-top: 0;
            text-transform: uppercase;
        }
        /* DESKTOP FLEX GRID: 3 per riga, ultima riga sempre centrata */
        .protocolli-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2.2rem;
        }
        .protocolli-list .protocollo-card {
            flex: 0 1 calc(33.333% - 2.2rem);
            max-width: calc(33.333% - 2.2rem);
            min-width: 220px;
            box-sizing: border-box;
        }
        @media (max-width: 900px) {
            .protocolli-list .protocollo-card {
                flex: 0 1 calc(50% - 1.2rem);
                max-width: calc(50% - 1.2rem);
            }
        }
        /* MOBILE CAROUSEL */
        @media (max-width: 600px) {
            .protocolli-list {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 1.2rem;
                padding: 0 1.5vw;
                justify-content: flex-start;
            }
            .protocollo-card {
                flex: 0 0 80vw;
                max-width: 320px;
                min-width: 220px;
                scroll-snap-align: start;
            }
        }

        /* PROTOCOLLI CARD STYLE UNIFORMATO AI PACCHETTI */
        .protocollo-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            min-width: 0;
            background: transparent;
            border-radius: 12px;
            box-shadow: none;
            padding: 0;
            margin-bottom: 0;
        }
        .protocollo-img {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 220px;
            aspect-ratio: 3/4;
            background: #222;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 0.7rem;
            text-decoration: none;
        }
        .protocollo-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .protocollo-name {
            font-weight: bold;
            font-size: 1.25rem;
            color: #fff;
            margin-bottom: 0.5rem;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .protocollo-price-sbarrato {
            color: #e74c3c;
            font-size: 1.1rem;
            text-decoration: line-through;
            margin-bottom: 0.3rem;
        }
        .protocollo-price {
            color: #fff;
            font-size: 1.25rem;
            font-weight: bold;
        }
        .protocollo-img:visited,
        .protocollo-img:active {
            color: inherit;
        }
        .protocollo-img:hover {
            filter: brightness(0.96);
            box-shadow: 0 0 0 2px #7ad7f0;
        }

        /* RISULTATI VIDEO SECTION - CLASSI DEDICATE */
        .risultati-video-section {
            background: #646464;
            padding: 0.1rem 0 0.3rem 0;
        }
        .risultati-video-title {
            color: #fff;
            text-align: center;
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.1rem;
            letter-spacing: 1px;
            padding-top: 1.5rem;
            padding-bottom: 1rem;
        }
        .video-carousel {
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            height: 320px;
            padding-top: 0;
        }
        .video-carousel-track {
            display: flex;
            align-items: center;
            transition: transform 0.7s cubic-bezier(.55,0,.1,1);
            will-change: transform;
            width: 100%;
            height: 100%;
        }
        .video-carousel-item {
            width: 250px;
            height: 250px;
            background: #ddd;
            color: #333;
            font-size: 3.5rem;
            font-weight: bold;
            border-radius: 10px;
            margin: 0 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.5s, box-shadow 0.5s;
            box-shadow: 0 2px 18px 0 #0002;
            opacity: 0.7;
            z-index: 1;
        }
        .video-carousel-item.selected {
            transform: scale(1.25);
            box-shadow: 0 6px 32px 0 #0004;
            opacity: 1;
            background: #fff;
            color: #222;
            z-index: 2;
        }
        .video-carousel-item.adjacent {
            opacity: 0.9;
            transform: scale(1);
            background: #eee;
            z-index: 1;
        }
        .video-carousel-item.placeholder {
            background: transparent !important;
            box-shadow: none !important;
            opacity: 0;
            pointer-events: none;
            display: flex !important;
        }
        .video-carousel-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            background: #000;
            display: block;
            /* Force hardware acceleration */
            -webkit-transform: translateZ(0);
            -moz-transform: translateZ(0);
            -ms-transform: translateZ(0);
            -o-transform: translateZ(0);
            transform: translateZ(0);
            /* Remove tap highlight on mobile */
            -webkit-tap-highlight-color: transparent;
            /* Ensure video fills container */
            position: absolute;
            top: 0;
            left: 0;
        }
        @media (max-width: 900px) {
            .video-carousel {
                max-width: 98vw;
                height: 160px;
            }
            .video-carousel-item {
                width: 80px;
                height: 80px;
                font-size: 2rem;
                margin: 0 0.6rem;
            }
        }
        @media (max-width: 600px) {
            .risultati-video-title { 
                font-size: 1.5rem;
                margin-bottom: 0.1rem;
                padding-top: 1.5rem;
            }
            .risultati-video-section {
                padding: 0 0 0.3rem 0;
            }
            .video-carousel {
                min-height: 250px;
                max-width: 100vw;
                overflow: hidden;
                padding-top: 0;
                margin: 0 auto;
                box-sizing: border-box;
                display: flex;
                justify-content: center;
            }
            .video-carousel-track {
                height: 100%;
            }
            .video-carousel-item {
                width: 75vw;
                max-width: none;
                min-width: 220px;
                aspect-ratio: 1 / 1;
                height: auto;
                font-size: 4vw;
                margin: 0;
                transition: transform 0.5s, box-shadow 0.5s;
                box-sizing: border-box;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                overflow: hidden;
            }
            .video-carousel-item.selected {
                z-index: 2;
                transform: scale(1.01);
            }
            .video-carousel-item.adjacent {
                z-index: 1;
                opacity: 0.8;
                transform: scale(0.9);
            }
            .video-carousel-item.placeholder {
                margin: 0;
                width: 150vw;
                max-width: none;
                min-width: 220px;
                aspect-ratio: 1 / 1;
            }
        }
        
        /* FEEDBACK SECTION */
        .feedback-section {
            background: #111;
            padding: 1rem 0 1rem 0;
        }
        .feedback-title {
            color: #fff;
            text-align: center;
            font-size: 1.5rem;
            font-weight: bold;
            letter-spacing: 1px;
            padding-top: 1rem;
            padding-bottom: 1rem;
        
        }
        .feedback-carousel {
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
            height: 250px;
            padding: 0 15px;
        }
        .feedback-carousel-track {
            display: flex;
            align-items: center;
            transition: transform 0.7s cubic-bezier(.55,0,.1,1);
            will-change: transform;
            width: 100%;
            height: 100%;
        }
        .feedback-carousel-item {
            width: 280px;
            min-width: 280px;
            height: 200px;
            background: #222222;
            color: #fff;
            font-size: 1.1rem;
            border-radius: 12px;
            margin: 0 10px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 18px 0 #0003;
            padding: 1.2rem;
            opacity: 0.8;
            z-index: 1;
            transition: all 0.4s ease;
            flex-shrink: 0;
            cursor: grab;
        }
        .feedback-carousel-item:active {
            cursor: grabbing;
        }
        .feedback-carousel-item.selected {
            transform: scale(1.09);
            box-shadow: 0 6px 32px 0 #0006;
            opacity: 1;
            background: #222;
            z-index: 2;
        }
        .feedback-carousel-item.adjacent {
            opacity: 0.95;
            transform: scale(1);
            background: #181818;
            z-index: 1;
        }
        .feedback-carousel-item.placeholder {
            background: transparent !important;
            box-shadow: none !important;
            opacity: 0;
            pointer-events: none;
            display: flex !important;
        }
        .feedback-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.8rem;
            width: 100%;
        }
        .feedback-nome {
            font-weight: bold;
            color: #8000ff;
            font-size: 1.1rem;
            margin: 0;
        }
        .feedback-stars {
            color: #FFD700;
            font-size: 1rem;
            margin-left: 0.5rem;
        }
        .feedback-testo {
            font-size: 1rem;
            color: #fff;
            line-height: 1.5;
            overflow-y: auto;
            max-height: 120px;
            padding-right: 0.5rem;
        }
        .feedback-testo::-webkit-scrollbar {
            width: 4px;
        }
        .feedback-testo::-webkit-scrollbar-track {
            background: #444;
            border-radius: 2px;
        }
        .feedback-testo::-webkit-scrollbar-thumb {
            background: #8000ff;
            border-radius: 2px;
        }
        /* Navigation Arrows */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .carousel-nav:hover {
            background: #8000ff;
        }
        .carousel-nav.prev {
            left: 0;
        }
        .carousel-nav.next {
            right: 0;
        }
        
        @media (max-width: 900px) {
            .feedback-carousel {
                max-width: 100%;
                height: 220px;
                padding: 0 35px;
            }
            .feedback-carousel-item {
                width: 85vw;
                height: 200px;
                min-width: 280px;
                font-size: 1rem;
                margin: 0 10px;
                padding: 1rem;
            }
            .feedback-testo {
                max-height: 110px;
            }
            .carousel-nav {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
            }
        }
        @media (max-width: 600px) {
            .feedback-title { 
                font-size: 1.3rem;
                margin-bottom: 0.1rem;
                padding-top: 1.1rem;
            }
            .feedback-section {
                padding: 0 0 0.3rem 0;
            }
            .feedback-carousel {
                min-height: 210px;
                max-width: 100vw;
                overflow: hidden;
                padding-top: 0;
                margin: 0 auto;
                box-sizing: border-box;
            }
            .feedback-carousel-track {
                height: 100%;
            }
            .feedback-carousel-item {
                width: 94vw;
                min-width: 220px;
                aspect-ratio: 1.8 / 1;
                height: auto;
                font-size: 1rem;
                margin: 0;
                transition: transform 0.5s, box-shadow 0.5s;
                box-sizing: border-box;
                display: flex;
                align-items: flex-start;
                justify-content: flex-start;
            }
            .feedback-carousel-item.selected {
                z-index: 2;
                transform: scale(1.01);
            }
            .feedback-carousel-item.adjacent {
                z-index: 1;
                opacity: 0.8;
                transform: scale(0.96);
            }
            .feedback-carousel-item.placeholder {
                margin: 0;
                width: 150vw;
                min-width: 220px;
                aspect-ratio: 1.8 / 1;
            }
        }



        .video-button {
            background: transparent;
            border: 2px solid white;
            color: white;
            padding: 0.8rem 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .video-button:hover {
            background-color: #BF00FF;
            border-color: #BF00FF;
        }


        .video-overlay-libreria-video {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 35%;
            left: 5%;
            row-gap: 1vw;
            z-index: 1000;
            background: rgba(0,0,0,0.0);
            color: #fff;
            padding: 2rem 2.5rem 2rem 1.5rem;
            border-radius: 18px;
            max-width: 400px;
            min-width: 220px;
            align-items: flex-start;
        }
        .video-overlay-libreria-video p {
            color: #fff;
        }
        .video-overlay-libreria-video button {
            color: #fff;
            background: rgba(0,0,0,0.25);
            border: 1px solid #fff;
        }
        @media (max-width: 600px) {
            .video-overlay-libreria-video {
                left: 0;
                top: 22.5%;
                transform: none;
                padding: 1rem 1rem 1rem 0.7rem;
                max-width: 94vw;
                min-width: unset;
                border-radius: 0 12px 12px 0;
            }
        }





        .libreria-page-button {
            color: #ffffff;
            background: rgba(0,0,0,0.25);
        }
        /* Show/hide library sections based on device */
        .library-desktop { display: block; }
        .library-mobile-carousel { display: none; }
        @media (max-width: 600px) {
            .library-desktop { display: none !important; }
            .library-mobile-carousel { display: block !important; }
            
            /* Stili per il feedback carousel su mobile */
            .feedback-carousel {
                padding: 0 20px;
                height: 240px;
                max-width: 100%;
                box-sizing: border-box;
            }
            .feedback-carousel-track {
                justify-content: flex-start;
                padding: 0 10px;
                box-sizing: border-box;
            }
            .feedback-carousel-item {
                width: calc(100vw - 60px);
                min-width: calc(100vw - 60px);
                max-width: 300px;
                height: 200px;
                margin: 0 10px;
                flex-shrink: 0;
                box-sizing: border-box;
            }
            .feedback-title {
                font-size: 1.8rem;
                margin-bottom: 1.5rem;
                text-align: center;
                padding: 0 20px;
            }
            .carousel-nav {
                width: 30px;
                height: 30px;
                font-size: 1rem;
                z-index: 10;
                background: rgba(0, 0, 0, 0.5);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
            }
            .carousel-nav.prev {
                left: 5px;
            }
            .carousel-nav.next {
                right: 5px;
            }
        }
        .library-mobile-carousel {
            width: 100vw;
            overflow: hidden;
            margin: 1.5rem 0;
        }
        



        /* === MY NEW RESPONSIVE CAROUSEL === */
        .my-carousel-outer {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            width: 100%;
            margin: 0 auto;
            padding: 1.5rem 0;
        }
        .my-carousel-track-container {
            overflow: hidden;
            width: 100%;
            max-width: 1200px;
        }
        .my-carousel-track, .track-workout {
            display: flex;
            transition: transform 0.5s cubic-bezier(.4,1,.4,1);
            will-change: transform;
        }
        .my-carousel-item {
            flex: 0 0 100%;
            max-width: 100%;
            padding: 0 0.5rem;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
        }
        .my-carousel-card {
            background: #222;
            border-radius: 12px;
            box-shadow: 0 2px 18px 0 #0002;
            overflow: hidden;
            width: 100%;
            max-width: 384px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            position: relative;
        }
        
        .video-locked {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #1a1a1a;
            color: #666;
            font-size: 3rem;
            z-index: 1;
        }
        
        .locked-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .locked-overlay span {
            color: white;
            font-size: 1rem;
            text-align: center;
            padding: 1rem;
            background-color: rgba(0, 0, 0, 0.8);
            border-radius: 4px;
        }
        
        .locked-video:hover .locked-overlay {
            opacity: 1;
        }
        
        .locked-video .my-carousel-overlay {
            z-index: 2;
            pointer-events: none;
        }
        
        .locked-video .video-button {
            display: none;
        }
        .my-carousel-card iframe {
            width: 100%;
            aspect-ratio: 16/9;
            border: none;
            border-radius: 12px 12px 0 0;
            background: #000;
        }
        
        .locked-video .my-carousel-card iframe {
            opacity: 0.3;
        }
        .my-carousel-overlay {
            position: absolute;
            left: 0; right: 0; bottom: 0;
            background: rgba(171, 156, 156, 0.7);
            color: #fff;
            width: 100%;
            padding: 1rem 1rem 0.7rem 1rem;
            opacity: 0;
            transform: translateY(100%);
            transition: opacity 0.25s, transform 0.25s;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            border-radius: 0 0 8px 8px;
        }
        .my-carousel-card:hover .my-carousel-overlay,
        .my-carousel-card:focus .my-carousel-overlay {
            opacity: 1;
            transform: translateY(0);
        }
        .my-carousel-overlay h3 {
            margin: 0 0 0.2rem 0;
            font-size: 1.1rem;
        }
        .my-carousel-overlay p {
            margin: 0 0 0.7rem 0;
            font-size: 0.95rem;
        }
        .my-carousel-overlay .video-button {
            color: #fff;
            background: #b43d9e;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1.2rem;
            font-size: 1rem;
            cursor: pointer;
        }
        .my-carousel-button {
            background: #1a1a1a;
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 52px;
            height: 52px;
            font-size: 2rem;
            cursor: pointer;
            opacity: 0.8;
            transition: background 0.2s;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .my-carousel-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        @media (min-width: 900px) {
            .my-carousel-item {
                flex: 0 0 33.3333%;
                max-width: 33.3333%;
            }
            .my-carousel-track-container {
                max-width: 1200px;
            }
            .my-carousel-card,
            .my-carousel-card iframe {
                width: 100%;
                max-width: 384px;
                aspect-ratio: 16/9;
                height: auto;
            }
        }
        @media (max-width: 899px) {
            .my-carousel-item {
                flex: 0 0 100%;
                max-width: 100%;
            }
            .my-carousel-track-container {
                max-width: 400px;
            }
            .my-carousel-button {
                width: 40px;
                height: 40px;
                font-size: 1.4rem;
            }
        }
    
        /* Carousel sticky bottom in video-section */
        .my-carousel-bottom {
            padding: 4vw;
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            padding-bottom: 2vw;
            z-index: 20;
            display: flex;
            justify-content: center;
        }
        .video-container {
            position: relative;
        }
        @media (max-width: 900px) {
            .my-carousel-bottom {
                padding-bottom: 4vw;
            }
        }
        
        /* Utility for desktop/mobile visibility */
        .desktop-only { display: block; }
        .mobile-only { display: none; }
        @media (max-width: 899px) {
            .desktop-only { display: none !important; }
            .mobile-only { display: block !important; }
        }


        .video-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
        }






    .container {
        display: flex;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: auto;
        padding: 20px;
        gap: 40px;
        flex-direction: column;
      }
  
      .image-section {
        flex: 1 1 100%;
        max-width: 500px;
        margin: auto;
      }
  
      .image-section img {
        width: 100%;
        border: 2px solid #ff0000; /* Aggiunge un bordo rosso */
      }
  
      .thumbnails {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
      }
  
      .thumbnails img {
        width: 70px;
        height: auto;
        cursor: pointer;
        border: 1px solid #333;
        transition: transform 0.2s;
      }
  
      .thumbnails img:hover {
        transform: scale(1.1);
      }
  
      .content-section {
        flex: 2 1 100%;
        max-width: 600px;
        margin: auto;
      }
  
      h1 {
        color: #fff;
        font-size: 32px;
        text-align: center;
      }
  
      .price {
      color: #00ff00;
      font-weight: bold;
      text-align: center;
      font-size: 25px;
      margin: 0.5rem;
      }
  
      .button {
        background: white;
        color: black;
        font-weight: bold;
        padding: 12px 20px;
        margin: 15px 0;
        border: none;
        cursor: pointer;
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        transition: background 0.3s, color 0.3s;
      }
  
      .button:hover {
        background-color: #8000ff;
        color: white;
      }
  
      .section {
        margin-top: 20px;
      }
  
      .section h3 {
        color: #ff0000; /* Aggiunge un colore rosso al titolo del paragrafo */
      }
  
      ul {
        list-style: square;
        padding-left: 20px;
      }
  
      .cta {
        margin-top: 30px;
        font-weight: bold;
        color: red;
        text-align: center;
      }
  
      .faq {
        margin-top: 20px;
        text-align: center;
      }
  
      .faq button {
        display: block;
        width: 100%;
        margin: 10px auto;
        padding: 10px;
        background-color: #1a1a1a;
        color: white;
        border: 1px solid #333;
        cursor: pointer;
        text-align: left;
      }
  
      @media (min-width: 768px) {
        .container {
          flex-wrap: nowrap;
        }
  
        .image-section, .content-section {
          flex: 1;
        }
  
        .button, .faq button {
          width: 100%;
        }
      }




      #nomeAndScadenza {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .nomeAndScadenza {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px; /* or your preferred max width */
        margin: 0 auto;
    }
    
    .nome, .scadenza {
        margin: 0;
        padding: 0.5rem 1rem;
    }
    
    .text-red {
        color: red;
        font-weight: bold;
    }




    .workout-day {
        width: 100%;
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .day-title {
        text-align: center;
        margin-bottom: 2rem;
        color: #fff;
        font-size: 2rem;
    }
    
    .workout-table-container {
        width: 100%;
        overflow-x: auto;
    }
    
    .workout-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 2rem;
        background: #4c4c4c;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .workout-table th {
        background-color: #333;
        color: white;
        padding: 1rem;
        text-align: center;
        border: 1px solid #4c4c4c;
    }
    
    .workout-table td {
        padding: 0.8rem;
        text-align: center;
        border: 1px solid #ddd;
    }
    
    .buttons-section {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding: 20px;
    }

    .button-rect {
        background-color: transparent;
        border: 2px solid white;
        color: white;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin: 4px 2px;
        cursor: pointer;
    }

    .button-rect:hover {
        background-color: #BF00FF;
        color: white;
    }



    .review-section {
        background-color: #2c2c2c;
        padding: 1rem 1rem;
        color: white;
    }
    
    .review-section .container {
        width: 100%;
        max-width: 1800px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .section-title {
        text-align: center;
        font-size: 2rem;
        color: #fff;
    }
    
    .review-form {
        width: 100%;
        max-width: 100%;
        background: #3a3a3a;
        padding: 1rem 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .form-textarea {
        width: 100%;
        min-height: 120px;
        padding: 1rem;
        border: 2px solid #555;
        border-radius: 4px;
        background: #2c2c2c;
        color: white;
        font-size: 1rem;
        resize: vertical;
        transition: border-color 0.3s;
    }
    
    .form-textarea:focus {
        outline: none;
        border-color: #BF00FF;
    }
    .star-rating {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 5px;
  white-space: nowrap;
  overflow-x: auto;
}
.star-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  position: relative;
  width: 100%;
}

.star-rating .star {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  margin: 0 0.25rem;
  transition: color 0.2s;
}
.star-rating .star.full {
  color: #BF00FF;
}

@media (max-width: 480px) {
  .star-rating .star {
    font-size: 1.5rem;
  }
}
    
    .submit-btn {
        background-color: #BF00FF;
        color: white;
        border: none;
        padding: 0.8rem 2rem;
        font-size: 1rem;
        border-radius: 4px;
        cursor: pointer;
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 2rem auto 0;
        transition: background-color 0.3s;
    }
    
    .submit-btn:hover {
        background-color: #a000d0;
    }
    
    .form-message {
        display: none;
        text-align: center;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 4px;
    }
    
    .success-message {
        background-color: #4CAF50;
        display: none;
    }
    
    .error-message {
        background-color: #f44336;
        display: none;
    }
    
    /* Show messages when form is submitted */
    .form-submitted .success-message {
        display: block;
    }
    
    .form-error .error-message {
        display: block;
    }
    
    @media (min-width: 1200px) {
        .review-section .container {
            padding: 0 4%;
        }
        
        .review-form {
            padding: 3rem 4rem;
        }
        
        .form-textarea {
            min-height: 150px;
        }
        
        .submit-btn {
            max-width: 250px;
            padding: 1rem 2rem;
            font-size: 1.1rem;
        }
    }




    /* Auth Page Styles */
    .auth-page {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        margin: 0;
        padding: 40px 20px;
    }
    
    .auth-container {
        padding: auto;
        background: rgb(0, 0, 0);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 1400px;
        overflow: hidden;
        transform: scale(1.05);
    }
    
    .auth-content {
        padding: 0;
    }
    
    .auth-tabs {
        display: flex;
        border-bottom: 2px solid #000000;
    }
    
    .tab-btn {
        flex: 1;
        padding: 25px;
        border: none;
        background: none;
        font-size: 1.2rem;
        font-weight: 700;
        color: #888;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .tab-btn.active {
        color: #BF00FF;
        border-bottom: 3px solid #BF00FF;
    }
    
    .auth-form {
        padding: 50px;
        display: none;
    }
    
    .auth-form.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .auth-form h2 {
        text-align: center;
        color: #ffffff;
        margin: 0 0 10px 0;
        font-size: 2.2rem;
        font-weight: 700;
    }
    
    .form-subtitle {
        text-align: center;
        color: #666;
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
    
    .form-group {
        position: relative;
        margin-bottom: 30px;
    }
    
    .form-group input {
        width: 100%;
        padding: 18px 20px;
        border: 2px solid #eee;
        border-radius: 10px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        background-color: #f9f9f9;
    }
    
    .form-group input:focus {
        border-color: #BF00FF;
        background-color: white;
        outline: none;
        box-shadow: 0 0 0 4px rgba(191, 0, 255, 0.1);
    }
    
    .form-group label {
        position: absolute;
        left: 15px;
        top: 18px;
        color: #999;
        transition: all 0.3s ease;
        pointer-events: none;
        background: white;
        padding: 0 10px;
        font-size: 1rem;
    }
    
    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label {
        top: -10px;
        font-size: 0.85rem;
        color: #BF00FF;
        font-weight: 600;
    }
    
    .auth-btn {
        width: 100%;
        padding: 18px;
        background-color: #BF00FF;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1.1rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 10px;
    }
    
    .auth-btn:hover {
        background-color: #a000d0;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(191, 0, 255, 0.3);
    }
    
    .forgot-password {
        display: block;
        text-align: center;
        margin-top: 20px;
        color: #666;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }
    
    .forgot-password:hover {
        color: #BF00FF;
    }
    
    /* Mobile Video Carousel Styles */
.mobile-only .my-carousel-item {
    min-width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
}

.mobile-only .my-carousel-card {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-only .video-locked {
    text-align: center;
    color: #fff;
}

.mobile-only .video-locked i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #666;
}

.mobile-only .locked-overlay {
    padding: 10px;
}

.mobile-only .locked-overlay span {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
}

.mobile-only .my-carousel-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.mobile-only .my-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 10px;
    color: white;
}

.mobile-only .my-carousel-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #fff;
}

.mobile-only .my-carousel-overlay p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    opacity: 0.8;
    color: #ddd;
}

.mobile-only .video-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.mobile-only .video-button:hover {
    background-color: #ff3333;
}

.mobile-only .my-carousel-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.mobile-only .my-carousel-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-only .my-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.mobile-only .my-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.mobile-only .my-carousel-title-container {
    padding: 1rem;
}

.mobile-only .my-carousel-title-container h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-only .libreria-page-button {
    text-decoration: underline;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 1rem;
    transition: background-color 0.2s;
}




/* Ensure Font Awesome icons display correctly */
.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item-wrapper {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.video-info p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .video-info {
        padding: 0.8rem;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item-wrapper {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-item iframe,
.video-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover iframe,
.video-item:hover img {
    transform: scale(1.02);
}

.video-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-info h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.video-link:hover {
    color: #fff;
}

/* Play icon for video thumbnails */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

/* Locked video styles */
.video-item-wrapper.locked-video {
    position: relative;
}

.video-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
    border-radius: 8px 8px 0 0;
}

.locked-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    max-width: 90%;
}

.locked-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
    
    .play-icon {
        width: 50px;
        height: 50px;
    }
    
    .play-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .video-info {
        padding: 0.9rem;
    }
    
    .video-info h3 {
        font-size: 0.95rem;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
}

/* Protocollo Page Styles */
    .protocollo-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .protocollo-gallery {
        flex: 1;
        min-width: 300px;
    }

    .protocollo-main-image-container {
        width: 100%;
        display: flex;
        justify-content: center;
        background-color: #1a1a1a;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .protocollo-main-image {
        max-width: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
        border-radius: 4px;
        transition: opacity 0.3s ease-in-out;
    }

    .protocollo-thumbnails {
        display: flex;
        gap: 0.8rem;
        justify-content: center;
        margin: 1rem 0;
        flex-wrap: wrap;
    }

    .protocollo-thumbnail-container {
        width: 100px;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #1a1a1a;
        border-radius: 4px;
        padding: 4px;
        transition: all 0.3s ease;
    }

    .protocollo-thumbnail {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        cursor: pointer;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .protocollo-thumbnail:hover,
    .protocollo-thumbnail.active {
        border-color: #760ec6;
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    }

    .protocollo-details {
        flex: 1;
        min-width: 300px;
        color: white;
    }

    .protocollo-title {
        font-size: 2.5rem;
        font-weight: bold;
        color: #760ec6;
        margin-bottom: 1rem;
    }

    .protocollo-price {
        font-size: 1.8rem;
        color: #760ec6;
    }

    .protocollo-iva {
        color: #888;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        display: block;
    }

    .protocollo-buy-btn {
        background-color: #760ec6;
        color: white;
        border: none;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 4px;
        cursor: pointer;
        width: 100%;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: background-color 0.3s;
    }

    .protocollo-buy-btn:hover {
        background-color: #BF00FF;
    }

    .protocollo-section {
        margin-bottom: 1.5rem;
    }

    .protocollo-section h3 {
        text-transform: uppercase;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: #760ec6;
    }

    .protocollo-section ul {
        list-style: none;
        padding-left: 1rem;
    }

    .protocollo-section li {
        margin-bottom: 0.5rem;
        position: relative;
        padding-left: 1.5rem;
    }

    .protocollo-section li:before {
        content: "•";
        color: #760ec6;
        position: absolute;
        left: 0;
    }

    .protocollo-accordion {
        margin-top: 2rem;
    }

    .protocollo-accordion-item {
        background-color: #1a1a1a;
        border: 1px solid #333;
        border-radius: 4px;
        margin-bottom: 0.5rem;
        overflow: hidden;
    }

    .protocollo-accordion-header {
        padding: 1rem;
        background-color: #1a1a1a;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .protocollo-accordion-content {
        padding: 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background-color: #252525;
    }

    .protocollo-accordion-item.active .protocollo-accordion-content {
        padding: 1rem;
        max-height: 200px;
    }

    .protocollo-accordion-arrow {
        transition: transform 0.3s;
    }

    .protocollo-accordion-item.active .protocollo-accordion-arrow {
        transform: rotate(180deg);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .auth-container {
            max-width: 90%;
            transform: none;
        }
        
        .auth-form {
            padding: 40px 30px;
        }
        
        .tab-btn {
            padding: 20px;
            font-size: 1rem;
        }
    }
    
    @media (max-width: 480px) {
        .auth-form {
            padding: 30px 20px;
        }
        
        .auth-form h2 {
            font-size: 1.8rem;
        }
    }





    
        .video-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            padding: 2rem 5%;
            background: #0f0f0f;
            color: white;
        }

        .video-item-wrapper {
            background: #5a1a8a; /* Purple background */
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .video-item {
            position: relative;
            width: 100%;
        }
        
        .video-item iframe {
            width: 100%;
            height: 100%;
            border: none;
        }


        .video-info h3 {
            margin: 0.5rem 0;
            font-size: 1.2rem;
            padding-left: 1rem;
        }
        .video-info p {
            margin: 0.5rem 0;
            color: #aaa;
            font-size: 0.9rem;
            padding-left: 1rem;
        }

        .page-header {
            display: flex;
            align-items: center;
            padding: 1.5rem 1.5rem 0;
            gap: 1rem;
        }
        
        .back-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: #ff0000;
            color: white;
            text-decoration: none;
            border-radius: 50%;
            font-weight: bold;
            font-size: 1.2rem;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            flex-shrink: 0;
        }
        
        .back-button:hover {
            background-color: #cc0000;
            transform: scale(1.05);
        }
        
        .page-title {
            margin: 0;
            font-size: 1.5rem;
            color: white;
            font-weight: 600;
        }

        @media (max-width: 900px) {
            .video-grid {
                grid-template-columns: 1fr;
                padding: 1rem 5%;
            }
            .video-item {
                margin-bottom: 20px;
            }
        }
    
    /* Stile per i pulsanti dell'accordion */
    .protocollo-accordion {
        width: 100%;
        margin: 1rem 0;
    }
    
    .protocollo-accordion-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .protocollo-accordion-header {
        width: 100%;
    }
    
    .protocollo-accordion-header .accordion-button {
        width: 100%;
        padding: 0.75rem 1rem;
        background-color: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        color: #ffffff !important;
        font-size: 1rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none !important;
    }
    
    .protocollo-accordion-header .accordion-button:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .accordion-button:focus, 
    .accordion-button:active {
        outline: none !important;
        box-shadow: none !important;
    }