:root {
            --catania-orange: #f39200;
            --catania-blue: #008eb7;
            --catania-teal: #045473;
        }



        html, body { font-family: 'Roboto Condensed', sans-serif; color: #4e5253; overflow-x: hidden; }

        /* Contenitore principale del Preloader */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 99999; 
            transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
        }

        
        .logo-wrapper {
            width: 120px; 
            height: auto;
            text-align: center;
        }

      
        .preloader-logo {
            width: 100%;
            height: auto;
            animation: logoPulse 1.8s ease-in-out infinite;
        }


        @keyframes logoPulse {
            0% {
                transform: scale(0.95);
                opacity: 0.6;
            }
            50% {
                transform: scale(1.05);
                opacity: 1;
            }
            100% {
                transform: scale(0.95);
                opacity: 0.6;
            }
        }

  
        @keyframes logoColorFade {
            0%, 100% { filter: grayscale(100%) opacity(0.5); }
            50% { filter: grayscale(0%) opacity(1); }
        }


        .loader-hidden {
            opacity: 0;
            visibility: hidden;
        }

        /* Navbar */
        .navbar-expand-lg .navbar-nav .nav-link {
            color: #555;
            font-weight: 500;
            padding: 0 20px;
            font-size: 1.3rem;
        }

        /* Separatore */
        .separator {
            height: 100px;
        }

        .header-text-box {
    background-color: #ececec; 
}

        .header-title, .header-subtitle {
            color: var(--catania-teal);
            line-height: 1.2;
        }

    /* Ottimizzazione per piccoli schermi */
    @media (max-width: 768px) {
        .header-text-box {
            border-top: 1px solid #dee2e6;
            text-align: center;
            justify-content: center !important;
        }
    }

        /* Hero Section */
        .hero-section {
            position: relative;
            min-height: 85vh;
            background: url('img/ricicla-e-vinci-catania-bici-elettrica.webp') no-repeat center center;
            background-size: cover;
            display: flex;
            align-items: center;
        }

        /* Logos Top Left */
        .top-logos {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 10;
        }

        /* News Box Top Right */
        .news-box {
            position: absolute;
            top: 20px;
            right: 0;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 10px 20px;
            border-left: 5px solid var(--catania-blue);
            max-width: 300px;
        }

        /* Left Content Box */
        .box-orange-wrapper {
           display: flex;
           flex-direction: column;
           align-items: center;
        }

        .rc-icon {
            position: absolute; 
            top: -110px; 
            left: 10px; 
            z-index: 10;
            height: auto;
            transition: all 0.3s ease;
        }


        @media (max-width: 991.98px) {
            .rc-icon {
                top: -50px; 
                width: 100px; 
                left: 50%;
                transform: translateX(-50%);
            }
        }

       .box-orange {
          border: 8px dotted white;
          border-radius: 5px;
          background-color: #f39200;
          color: white;
          box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
          position: relative;    
        }


        /* Right Content Text */
        .text-pedala {
            font-family: 'Roboto Condensed', sans-serif;
            color: white;
            font-size: clamp(2rem, 8vw, 2.5rem);
            line-height: 0.9;
            text-shadow: 4px 4px var(--catania-blue);
            font-weight: 900;
            font-style: italic;
        }

        /* Banner Bottom */
        .banner-bottom {
            background-image: linear-gradient(to bottom, #00a3c2 60%, #007499 40%);
            color: white;
            padding: 0px 0;
        }

        .banner-text {
            font-family: 'Roboto Condensed', sans-serif;
            font-style: italic;
            color: white;
            font-weight: 700;
            text-transform: none;
            font-size: 2.5rem;
        }


        /* Responsive Adjustments */
        @media (max-width: 991px) {
            .hero-section { flex-direction: column; padding-top: 120px; text-align: center; }
            .news-box { position: relative; top: 0; right: 0; margin-bottom: 20px; max-width: 100%; }
            .top-logos { position: relative; top: 0; left: 0; margin-bottom: 20px; }
            .box-orange { margin: 20px auto; }
        }

        /* --- Configurazione Numeri --- */
        .step-num {
            font-size: 9rem;
            font-weight: 900;
            color: #cfe2f3;
            line-height: 1;
            display: inline-block;
        }

        /* --- Base Box --- */
        .step-box-dynamic {
            background-color: #ebebeb;

        }

        .step-button {
            background-color: #9e9e9e; 
            cursor: pointer;
            color: white;
        }

        .step-button:hover {
            background-color: #f6f4f4;
            border: 1px solid #9e9e9e;
            color:#282828;
            cursor: pointer;
        }



        /* La linea verticale sinistra è 100% (0 a 100), la destra è 70% (15 a 85) */
        .slant-right-short {
            clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
        }

        /* La linea verticale sinistra è 70% (15 a 85), la destra è 100% (0 a 100) */
        .slant-left-short {
            clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
        }

        .step-title {
            color: #008eb7;
            font-style: italic;
            font-weight: 900;
            margin-bottom: 5px;
        }

        .step-text {
            font-size: 1.2rem;
            line-height: 1.2;
            color: #444;
            margin-bottom: 0;
        }

        /* --- Mobile First Adjustments --- */
        @media (max-width: 991px) {
            .step-num {
                font-size: 6rem;
                margin-bottom: -10px;
                z-index: 2;
                position: relative;
            }
            .step-box-dynamic {
                padding: 30px 20px;
                clip-path: none; 
                border-radius: 10px; 
            }
        }

        /* Nasconde la versione desktop sotto i 1210px e mostra la mobile */
        @media (max-width: 1210px) {
            .custom-desktop { display: none !important; }
            .custom-mobile { display: block !important; }
        }

        /* Nasconde la versione mobile sopra i 1210px e mostra la desktop */
        @media (min-width: 1211px) {
            .custom-desktop { display: block !important; }
            .custom-mobile { display: none !important; }
}


            /* Sezione Arancione */
            .banner-orange {
            background-color: #f7a631; 
            padding: 10px 0;
            margin-left: 20%;
            position: relative;
            min-height: 60px;
            }

            .icon-badge {
            background-color: transparent;
            color: #ef8e00;
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            }

            /* Sezione Teal */
            .banner-teal {
            padding: 12px 0;
            background-image: linear-gradient(to bottom, #0098b1 50%, #0098b1 50%);
            background-repeat: no-repeat;
            background-position: left; 
            background-size: 70% 100%; 
            }

            /* Responsive adjustments */
            @media (max-width: 768px) {
            .banner-text {
                font-size: 1.2rem;
            }
            .banner-teal {
                clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
            }
            }

            /* Colori Personalizzati */
            .bg-brown { background-color: #8b5e3c; }
            .bg-yellow { background-color: #fdb913; }
            .bg-teal { background-color: #0098b1; }
            .bg-green { background-color: #4caf50; }
            .text-teal { color: #0098b1; }
            .text-orange { color: #f7a631; }

            .italic { font-style: italic; }

            /* Header delle card della griglia */
            .header-card {
            color: white;
            padding: 15px 10px;
            min-height: 168px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            font-weight: bold;
            font-size: 1.9rem;
            }

            /* Tag grigio "1 punto" */
            .point-tag {
            background-color: #e0e0e0;
            display: inline-block;
            padding: 2px 15px;
            font-weight: bold;
            color: #666;
            }

            /* Bordi tratteggiati per la griglia */
            .border-end-dashed {
            border-right: 2px dashed #ccc;
            }

            /* Box Monitoraggio App */
            .app-monitor-box {
            background-color: #f8f9fa;
            max-width: 300px;
            }

            /* Box Attenzione tratteggiato */
            .warning-dotted-box {
            border: 2px dotted #0098b1;
            border-radius: 10px;
            }

            /* Footer Raddoppia */
            .double-chance-box {
            background-color: #7fd1e1;
            color: white;
            padding: 15px 25px;
            border-radius: 50px 10px 10px 50px;
            position: relative;
            }

            .plus-circle {
            background-color: #0098b1;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: bold;
            border: 4px solid white;
            flex-shrink: 0;
            }


           /* Sezione estrazione*/
            .bg-teal-main-es { background-color: #0098b1; }

            .banner-teal-draw-es {
            background-color: #0098b1;
            height: 60px; /* Altezza della fascia */
            margin-left: 100px; /* Lascia spazio al box data */
            padding-left: 60px;
            }

            .banner-title-es {
            font-size: 2.2rem;
            letter-spacing: -1px;
            }

            /* Box della Data */
            .date-container-box-es {
            position: absolute;
            left: 50px; /* Posizionamento orizzontale */
            top: 50%;
            transform: translateY(-50%);
            background-color: white;
            border: 3px dotted #0098b1;
            padding: 4px 2px;
            text-align: center;
            line-height: 1;
            z-index: 10;
            min-width: 110px;
            }

            .date-number-es {
            font-size: 4rem;
            font-weight: 800;
            color: #0098b1;
            margin-bottom: -5px;
            }

            .date-month-es {
            font-size: 1.8rem;
            color: #0098b1;
            font-weight: 400;
            }

            .date-year-es {
            font-size: 2rem;
            color: #0098b1;
            font-weight: 300;
            border-top: 1px solid #0098b1;
            margin-top: 5px;
            padding-top: 5px;
            }

            /* Responsive */
            @media (max-width: 768px) {
            .banner-teal-draw-es {
                margin-left: 60px;
                padding-left: 80px;
            }
            .banner-title-es {
                font-size: 1.4rem;
            }
            .date-container-box-es {
                left: 15px;
                transform: translateY(-50%) scale(0.8);
            }
            } 

            /* Footer */
            .bg-light-gray { background-color: #f1f1f1; }
            .grayscale { filter: grayscale(100%); opacity: 0.7; transition: 0.3s; }
            .grayscale:hover { filter: grayscale(0%); opacity: 1; }

            /* Banner FAQ */
            .banner-faq {
            background-color: #f7a631;
            height: 60px;
            position: relative;
            }

            .faq-icon-circle {
            background-color: white;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            position: absolute;
            left: 20px;
            top: -5px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border: 4px solid #f7a631;
            }

            /* Griglia Loghi */
            .border-end-gray {
            border-right: 1px solid #ddd;
            }


            /* Mobile Fix */
            @media (max-width: 768px) {
            .border-end-gray { border: none; margin-bottom: 15px; }
            .faq-icon-circle { width: 50px; height: 50px; top: 5px; }
            .faq-icon-circle svg { width: 25px; }
            }

            @media (min-width: 992px) {
            .border-end-gray-lg {
                border-right: 1px solid #dee2e6;
            }
}
