<!DOCTYPE html>

<html lang="it">

<head>

  <meta charset="UTF-8" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

  <title>Inizia una nuova carriera nel 2026</title>


  <link rel="preconnect" href="https://fonts.googleapis.com">

  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@700&display=swap" rel="stylesheet">


  <!-- Tailwind CDN -->

  <script src="https://cdn.tailwindcss.com"></script>


  <style>

    :root {

      --primary: #000000;

      --accent:  #FFCA1B;

      --danger:  #ef4444;

    }

    body {

      font-family: 'Roboto', system-ui, sans-serif;

      background: #0f0f0f;

      color: white;

      margin: 0;

      line-height: 1.5;

    }

    h1, h2 {

      font-family: 'Roboto Slab', serif;

      font-weight: 700;

    }

    .countdown-digit {

      background: black;

      color: var(--accent);

      font-size: 2.5rem;

      font-weight: bold;

      padding: 0.5rem 1.2rem;

      border-radius: 8px;

      min-width: 70px;

      text-align: center;

    }

    .locked {

      opacity: 0.6;

      cursor: not-allowed;

      background: #4b5563;

    }

    .unlocked {

      background: linear-gradient(90deg, #22c55e, #16a34a);

      box-shadow: 0 0 25px rgba(34,197,94,0.5);

    }

    .pulsing {

      animation: pulse 1.2s infinite;

    }

    @keyframes pulse {

      0%,100% { transform: scale(1); }

      50%     { transform: scale(1.08); }

    }

    .countdown-danger {

      color: var(--danger) !important;

      animation: flash 0.8s infinite;

    }

    @keyframes flash {

      0%,100% { opacity: 1; }

      50%     { opacity: 0.4; }

    }

  </style>

</head>

<body class="min-h-screen bg-black text-white">


  <!-- Header – completamente neutro -->

  <header class="py-6 text-center border-b border-gray-800">

    <!-- Nessun logo / titolo / brand name -->

  </header>


  <main class="max-w-5xl mx-auto px-4 py-10">


    <!-- Titolo principale -->

    <h1 class="text-4xl md:text-5xl font-bold text-center leading-tight mb-6">

      Inizia una nuova carriera nel 2026<br>

      <span class="text-yellow-400">Sblocca lo STEP 2 guardando il video fino alla fine</span>

    </h1>


    <div class="text-center text-xl md:text-2xl text-gray-300 mb-10">

      Scopri come migliaia di persone stanno cambiando vita grazie a questo nuovo modello di business

    </div>


    <!-- Freccia animata -->

    <div class="flex justify-center my-8">

      <img 

        src="https://titany.co/wp-content/uploads/2023/04/animated-arrow-down.gif" 

        alt="" 

        class="w-24 h-24"

      />

    </div>


    <!-- Video Vimeo -->

    <div class="aspect-video bg-black rounded-xl overflow-hidden shadow-2xl mx-auto max-w-4xl mb-10">

      <iframe 

        id="vimeo-player"

        src="https://player.vimeo.com/video/1061517848?h=&badge=0&autopause=0&player_id=0&app_id=58479"

        frameborder="0" 

        allow="autoplay; fullscreen; picture-in-picture" 

        allowfullscreen

        class="w-full h-full"

      ></iframe>

    </div>


    <!-- Countdown + Bottone -->

    <div class="text-center mb-12">

      <div id="timer" class="flex justify-center items-center gap-6 mb-6">

        <div>

          <div id="minutes" class="countdown-digit">00</div>

          <div class="text-sm text-gray-400 mt-1">Minuti</div>

        </div>

        <div class="text-4xl font-bold">:</div>

        <div>

          <div id="seconds" class="countdown-digit">00</div>

          <div class="text-sm text-gray-400 mt-1">Secondi</div>

        </div>

      </div>


      <button 

        id="unlockBtn"

        class="locked px-10 py-5 text-xl font-bold rounded-2xl flex items-center gap-3 mx-auto transition-all duration-300"

        disabled

      >

        <span id="btnText">SBLOCCO DEL TASTO ALLA FINE DEL VIDEO...</span>

        <svg class="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24">

          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 11c0-1.1-.9-2-2-2s-2 .9-2 2m4 0c0-1.1-.9-2-2-2s-2 .9-2 2m4 0v6m-4-6v6m6-6c0-1.1-.9-2-2-2s-2 .9-2 2m4 0v6m-4-6v6" />

        </svg>

      </button>


      <div id="tooltip" class="hidden mt-4 text-yellow-300 font-medium">

        🔒 Guarda tutto il video per sbloccare il prossimo step!

      </div>

    </div>


  </main>


  <!-- Script di controllo timer + unlock -->

  <script src="https://player.vimeo.com/api/player.js"></script>

  <script>

    const iframe = document.getElementById('vimeo-player');

    const player = new Vimeo.Player(iframe);


    const minutesEl = document.getElementById('minutes');

    const secondsEl = document.getElementById('seconds');

    const btn       = document.getElementById('unlockBtn');

    const btnText   = document.getElementById('btnText');

    const tooltip   = document.getElementById('tooltip');


    let duration = 0;

    let unlocked = false;


    player.ready().then(() => {

      player.getDuration().then(d => {

        duration = Math.floor(d);

        updateTimer(duration);

      });


      player.on('timeupdate', data => {

        const remaining = Math.floor(duration - data.seconds);

        updateTimer(remaining);


        if (data.percent >= 0.60 && !unlocked) {

          unlocked = true;

          btn.disabled = false;

          btn.classList.remove('locked');

          btn.classList.add('unlocked', 'hover:scale-105');

          btnText.textContent = " STEP 2 SBLOCCATO Inizia ora";

        }

      });


      player.on('ended', () => {

        if (!unlocked) {

          unlocked = true;

          btn.disabled = false;

          btn.classList.remove('locked');

          btn.classList.add('unlocked');

          btnText.textContent = " VIDEO COMPLETATO Procedi";

        }

      });

    });


    function updateTimer(remaining) {

      const m = Math.floor(remaining / 60);

      const s = remaining % 60;

      minutesEl.textContent = m.toString().padStart(2,'0');

      secondsEl.textContent = s.toString().padStart(2,'0');


      if (remaining <= 60) {

        minutesEl.classList.add('countdown-danger', 'pulsing');

        secondsEl.classList.add('countdown-danger', 'pulsing');

      }

    }


    btn.addEventListener('click', () => {

      if (!unlocked) {

        tooltip.classList.remove('hidden');

        setTimeout(() => tooltip.classList.add('hidden'), 4000);

        iframe.scrollIntoView({ behavior: 'smooth', block: 'center' });

      } else {

        window.location.href = "https://titany.co/vai-al-questionario-software/"; // Cambia questo URL se necessario

      }

    });

  </script>


</body>

</html>