/* ===================================
   RESET E IMPOSTAZIONI GENERALI
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #1a3d4a;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

/* ===================================
   TIMER HEADER
   =================================== */
.timer-header-section {
    background: linear-gradient(180deg, #2a5a6b 0%, #1a3d4a 100%);
    padding: 5px 0;
}

.timer-container-full {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 10px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.timer-text-full {
    font-size: 18px;
    font-weight: 900;
    color: #f5fbef;
    margin: 0;
    line-height: 1.3;
    flex-shrink: 0;
    text-align: left;
}

.timer-boxes-full {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.timer-box-full {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 65px;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    gap: 0;
}

.timer-number-full {
    font-size: 24px;
    font-weight: 700;
    color: #00445e;
    line-height: 1;
    display: block;
    margin: 0;
}

.timer-label-full {
    font-size: 8px;
    font-weight: 700;
    color: #00445e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background-color: #f5fbef;
    padding: 20px 20px;
    /* Ridotto padding verticale */
    text-align: center;
}

/* Quiz Badge */
.quiz-badge-container {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
}

.quiz-badge {
    background: linear-gradient(135deg, #5dfaad 0%, #6ffbb4 100%);
    color: #00445e;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 12px 40px;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(30, 58, 74, 0.4);
    -webkit-text-stroke: 0.75px #00445e;
}

/* Headline */
.headline-container {
    margin: 20px 0;
    padding: 0 10px;
}

.headline-image {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    padding: 10px 15px 0 15px;
    /* Ridotto padding inferiore */
    flex-wrap: wrap;
}

.social-proof-icon img {
    width: 40px;
    height: auto;
}

.social-proof-text {
    display: flex;
    gap: 7px;
    color: #00445e;
    font-size: 16px;
    line-height: 1.4;
}

.social-proof-number {
    font-weight: 700;
}

/* Video */
.video-container {
    margin: 5px auto 60px auto;
    /* Compresso spazio superiore */
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder {
    background: #e1e5e6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Ombra nera intensa */
}

.video-cover-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Ombra nera intensa */
}

/* ===================================
   UNLOCK SECTION (RICERCA IN CORSO)
   =================================== */
.unlock-section {
    background: linear-gradient(180deg, #2a5a6b 0%, #1a3d4a 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    max-width: 700px;
    margin: 60px auto;
    /* Aumentato spazio per tutti i formati */
    border: 3px solid #40f99b;
    box-shadow: 0 8px 20px rgba(64, 249, 155, 0.3);
}

.unlock-main-title {
    margin-top: 10px;
    font-size: 48px;
    font-weight: 900;
    color: #f5f1e3;
    margin-bottom: 25px;
    line-height: 1.1;
    -webkit-text-stroke: 1px #f5f1e3;
}

.unlock-main-title i {
    margin-right: 12px;
    font-size: 0.9em;
    animation: spin 5s linear infinite;
    background: conic-gradient(from 0deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 12.5%,
            rgba(255, 255, 255, 0.6) 25%,
            rgba(255, 255, 255, 0.4) 37.5%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.15) 62.5%,
            rgba(255, 255, 255, 0.1) 75%,
            rgba(255, 255, 255, 0.05) 87.5%,
            rgba(255, 255, 255, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.unlock-title {
    font-size: 24px;
    font-weight: 400;
    color: #f5fbef;
    margin-bottom: 30px;
    line-height: 1.3;
}

.unlock-timer-boxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.unlock-timer-box {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    border-radius: 16px;
    padding: 30px 50px;
    min-width: 200px;
}

.unlock-timer-number {
    font-size: 64px;
    font-weight: 700;
    color: #00445e;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    -webkit-text-stroke: 1.5px #00445e;
}

.unlock-timer-label {
    font-size: 16px;
    font-weight: 700;
    color: #00445e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   PHASE LOCKED (RICERCA TERMINATA)
   =================================== */
.phase-locked {
    background: linear-gradient(180deg, #2a5a6b 0%, #1a3d4a 100%);
    border-radius: 20px;
    padding: 0 25px;
    text-align: center;
    max-width: 680px;
    margin: 60px auto;
    /* Aumentato spazio per tutti i formati */
    border: 3px solid #40f99b;
    box-shadow: 0 8px 20px rgba(64, 249, 155, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.phase-locked-title {
    font-size: 40px;
    font-weight: 900;
    color: #f5f1e3;
    margin-bottom: 30px;
    line-height: 1.1;
    -webkit-text-stroke: 1px #f5f1e3;
}

.phase-locked-subtitle {
    font-size: 26px;
    color: #f5f1e3;
    margin-bottom: 35px;
    line-height: 1.4;
}

.phase-locked-subtitle strong {
    font-weight: 700;
}

/* CTA Button */
.cta-button-wrapper {
    margin-top: 60px;
    margin-bottom: 60px;
}

.phase-locked .cta-button-wrapper {
    margin: 0;
    width: 100%;
}

.cta-button {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    color: #00445e;
    font-weight: 700;
    text-transform: uppercase;
    padding: 25px 40px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 630px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(64, 249, 155, 0.4);
    transition: transform 0.3s ease;
    animation: bounce 2s infinite;
    position: relative;
    user-select: none;
}

.cta-button:hover {
    transform: scale(1.02);
}

.cta-button-main {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
    text-align: center;
    -webkit-text-stroke: 1.5px #00445e;
}

.cta-button-subtitle {
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
    opacity: 1;
    letter-spacing: 0;
    text-align: center;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* Spots Section */
.spots-section {
    margin-top: 0;
}

.spots-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
    color: #f5f1e3;
    letter-spacing: 0.5px;
}

.spots-icon {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    color: #00445e;
    min-width: 54px;
    height: 54px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.spots-text {
    text-align: left;
    line-height: 1.3;
    font-weight: 400;
    color: #f5fbef;
    text-transform: uppercase;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    max-width: 630px;
    margin: 0 auto;
    background: #0f2830;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid #1a3d4a;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #5dfaad 0%, #40f99b 100%);
    border-radius: 15px;
    transition: width 0.6s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(64, 249, 155, 0.6);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===================================
   BENEFITS SECTION
   =================================== */
.benefits-section {
    background-color: #1a3d4a;
    padding: 40px 20px;
}

.challenge-banner {
    background-color: transparent;
    padding: 30px 20px;
    text-align: center;
    margin: 0;
}

.challenge-top-text {
    font-size: 60px;
    font-weight: 900;
    color: #f5fbef;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.challenge-highlight-box {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    border-radius: 15px;
    padding: 35px 50px;
    display: inline-block;
    margin: 0;
}

.challenge-main-text {
    font-size: 80px;
    font-weight: 900;
    color: #00445e;
    text-transform: uppercase;
    margin: 0;
    line-height: 0.95;
    letter-spacing: -2px;
    -webkit-text-stroke: 1px #00445e;
}

/* Benefits Image */
.benefits-image-container {
    text-align: center;
    margin: 30px 0;
}

.benefits-image {
    max-width: 100%;
    width: 600px;
    margin: 0 auto;
    border-radius: 12px;
}

/* Achievements */
.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.achievement-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #5dfaad;
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(93, 250, 173, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 250, 173, 0.25);
}

.achievement-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #5dfaad;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.achievement-icon::after {
    content: "✓";
    color: #00445e;
    font-size: 20px;
    font-weight: bold;
}

.achievement-text {
    flex: 1;
    color: #2c5f6f;
    font-size: 17px;
    line-height: 1.6;
}

.achievement-text strong {
    font-weight: 700;
    color: #00445e;
}

/* CTA Compact */
.phase-compact {
    padding: 40px 25px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-compact-wrapper {
    margin-bottom: 0;
}

.cta-compact-button {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    color: #00445e;
    font-weight: 700;
    text-transform: uppercase;
    padding: 25px 40px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 630px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(64, 249, 155, 0.4);
    transition: transform 0.3s ease;
    animation: bounce-compact 2s infinite;
    position: relative;
    user-select: none;
}

.cta-compact-button:hover {
    transform: scale(1.02);
}

.cta-compact-main {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
    text-align: center;
    -webkit-text-stroke: 1.5px #00445e;
}

.cta-compact-subtitle {
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
    opacity: 1;
    letter-spacing: 0;
    text-align: center;
}

@keyframes bounce-compact {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer-section {
    background-color: #1a3d4a;
    padding: 40px 20px;
    text-align: center;
}

.footer-divider {
    width: 65%;
    max-width: 800px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.16);
    margin: 0 auto 30px;
}

.footer-logo {
    max-width: 200px;
    margin: 0 auto 20px;
}

.footer-text {
    color: #f5fbef;
    font-size: 14px;
    margin: 0;
}

/* ===================================
   MODAL POPUP
   =================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 61, 74, 0.85);
    z-index: 9998;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.modal-backdrop::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.modal-popup {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 50px 40px 40px 40px;
    max-width: 600px;
    width: 90%;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 15px auto;
    /* Spazio sopra e sotto durante lo scroll */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #00445e;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #40f99b;
}

/* Spots Section Popup */
.spots-section-popup {
    margin: 0 0 25px 0;
}

.spots-header-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    color: #2a5a6b;
    letter-spacing: 0.5px;
}

.spots-icon-popup {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    color: #00445e;
    min-width: 60px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    flex-shrink: 0;
    -webkit-text-stroke: 0.75px #00445e;
}

.spots-text-popup {
    text-align: left;
    line-height: 1.3;
    font-weight: 400;
    text-transform: uppercase;
}

/* Ricerca Terminata Box */
.ricerca-terminata-box {
    background: transparent;
    border-radius: 0;
    padding: 20px 0px;
    text-align: center;
    border: none;
    box-shadow: none;
}

.ricerca-terminata-heading {
    font-size: 48px;
    font-weight: 900;
    color: #00445e;
    margin-bottom: 30px;
    line-height: 1.1;
    -webkit-text-stroke: 1px #00445e;
    text-transform: none;
}

.ricerca-terminata-subheading {
    font-size: 16px;
    font-weight: 500;
    color: #2a5a6b;
    margin-top: -20px;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.ricerca-terminata-text {
    font-size: 26px;
    color: #00445e;
    margin-bottom: 0;
    line-height: 1.4;
}

.ricerca-terminata-text strong {
    font-weight: 700;
}

/* Form */
.lead-form {
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #00445e;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #40f99b;
}

/* CTA Popup Button */
.cta-popup-wrapper {
    margin-bottom: 40px;
}

.cta-popup-button {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    color: #00445e;
    font-weight: 700;
    text-transform: none;
    padding: 25px 40px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(64, 249, 155, 0.4);
    transition: transform 0.3s ease;
    animation: bounce-popup 2s infinite;
    font-family: 'Roboto', sans-serif;
}

.cta-popup-button:hover {
    transform: scale(1.02);
}

.cta-popup-main,
.cta-whatsapp-text {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
    text-align: center;
    -webkit-text-stroke: 1.5px #00445e;
    text-transform: none;
}

.cta-popup-subtitle {
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
    opacity: 1;
    letter-spacing: 0;
    text-align: center;
}

/* WhatsApp button specific height */
.whatsapp-section .cta-popup-button {
    padding: 40px 40px;
}

@keyframes bounce-popup {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* ===================================
   FORM EMAIL INTEGRATION
   =================================== */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 630px;
    margin: 0 auto;
}

.cta-form input[type="email"] {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid #5dfaad;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
    background: white;
}

.cta-form input[type="email"]:focus {
    outline: none;
    border-color: #40f99b;
    box-shadow: 0 0 0 3px rgba(93, 250, 173, 0.2);
}

/* Form Messages */
.form-message {
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.loading,
.form-message.success,
.form-message.error {
    display: block;
}

.form-message.loading {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #1976d2;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #c62828;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (max-width: 1024px) {
    .challenge-top-text {
        font-size: 50px;
    }

    .challenge-main-text {
        font-size: 65px;
    }

    .challenge-highlight-box {
        padding: 30px 40px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 768px) {

    /* Timer Header */
    .timer-container-full {
        gap: 10px;
        padding: 5px 15px;
    }

    .timer-text-full {
        font-size: 20px;
    }

    .timer-boxes-full {
        gap: 6px;
    }

    .timer-box-full {
        padding: 4px 5px;
        width: 62px;
        min-width: 62px;
        gap: 0;
    }

    .timer-number-full {
        font-size: 22px;
        line-height: 1;
        margin: 0;
    }

    .timer-label-full {
        font-size: 7px;
        margin: 0;
        line-height: 1;
    }

    .timer-header-section {
        border-bottom: 3px solid #40f99b;
        box-shadow: 0 4px 15px rgba(64, 249, 155, 0.3);
    }

    /* Hero */
    .hero-section {
        padding: 30px 15px;
        /* Spazio per gli altri elementi */
    }

    .headline-container {
        padding: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .quiz-badge {
        font-size: 20px;
        padding: 10px 30px;
    }

    .social-proof-text {
        font-size: 14px;
    }

    .social-proof-icon img {
        width: 32px;
    }

    .headline-image {
        width: 100%;
        max-width: none;
    }

    /* Timer Header Detail */
    .timer-container-full {
        justify-content: space-between;
        align-items: center;
    }

    .timer-text-full {
        text-align: left;
    }

    .timer-boxes-full {
        justify-content: flex-end;
    }

    .unlock-main-title {
        font-size: 36px;
        margin-bottom: 22px;
    }

    .unlock-title {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .unlock-timer-box {
        padding: 25px 40px;
        min-width: 150px;
    }

    .unlock-timer-number {
        font-size: 48px;
    }

    .unlock-timer-label {
        font-size: 14px;
    }

    /* Phase Locked */
    .phase-locked {
        padding: 40px 18px 30px;
        border: 2px solid #40f99b;
    }

    .phase-locked-title {
        font-size: 32px;
        margin-bottom: 22px;
    }

    .phase-locked-subtitle {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .cta-button {
        padding: 22px 30px;
        border-radius: 14px;
        gap: 6px;
    }

    .cta-button-wrapper {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .cta-button-main {
        font-size: 34px;
    }

    .cta-button-subtitle {
        font-size: 13px;
    }

    .spots-header {
        font-size: 16px;
        gap: 10px;
        margin-bottom: 15px;
    }

    .spots-icon {
        min-width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .progress-bar-container {
        height: 25px;
    }

    .footer-text {
        font-size: 10px !important;
    }

    /* Benefits */
    .challenge-banner {
        padding: 20px 15px;
    }

    .challenge-top-text {
        font-size: 40px;
    }

    .challenge-main-text {
        font-size: 50px;
    }

    .challenge-highlight-box {
        padding: 25px 30px;
    }

    .achievements-container {
        padding: 15px;
        gap: 12px;
    }

    .achievement-box {
        padding: 16px 18px;
        gap: 12px;
    }

    .achievement-icon {
        width: 24px;
        height: 24px;
    }

    .achievement-icon::after {
        font-size: 15px;
    }

    .achievement-text {
        font-size: 15px;
    }

    /* CTA Compact */
    .phase-compact {
        padding: 30px 18px;
    }

    .cta-compact-button {
        padding: 22px 30px;
    }

    .cta-compact-main {
        font-size: 34px;
    }

    .cta-compact-subtitle {
        font-size: 13px;
    }

    /* Modal */
    .modal-popup {
        padding: 40px 20px 30px 20px;
    }

    .ricerca-terminata-heading {
        font-size: 36px;
        margin-bottom: 22px;
    }

    .ricerca-terminata-text {
        font-size: 18px;
    }

    .spots-header-popup {
        font-size: 16px;
        gap: 10px;
    }

    .spots-icon-popup {
        min-width: 48px;
        height: 28px;
        font-size: 16px;
    }

    .cta-popup-button {
        padding: 22px 30px;
    }

    .cta-popup-main {
        font-size: 34px;
    }

    .cta-popup-subtitle {
        font-size: 13px;
    }

    /* Form responsive */
    .cta-form input[type="email"] {
        padding: 15px 18px;
        font-size: 14px;
    }

    .form-message {
        font-size: 13px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {

    /* Timer Header */
    .timer-container-full {
        gap: 8px;
    }

    .timer-text-full {
        font-size: 12px;
    }

    .timer-boxes-full {
        gap: 5px;
    }

    .timer-box-full {
        padding: 10px;
        width: 52px;
        min-width: 52px;
    }

    .timer-number-full {
        font-size: 20px;
    }

    .timer-label-full {
        font-size: 6px;
    }

    /* Hero */
    .hero-section {
        padding: 20px 15px;
    }

    .quiz-badge {
        font-size: 16px;
        padding: 8px 25px;
    }

    /* Unlock Section */
    .unlock-section {
        padding: 35px 14px 25px;
        margin: 60px auto;
        /* Forza distanziamento anche su mobile */
    }

    .unlock-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .unlock-title {
        font-size: 15px;
    }

    .unlock-timer-box {
        padding: 20px 30px;
        min-width: 130px;
    }

    .unlock-timer-number {
        font-size: 40px;
    }

    .unlock-timer-label {
        font-size: 12px;
    }

    /* Phase Locked */
    .phase-locked {
        padding: 40px 18px 30px;
        border: 2px solid #40f99b;
        margin: 60px auto;
        /* Forza distanziamento anche su mobile */
    }

    .phase-locked-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .phase-locked-subtitle {
        font-size: 16px;
    }

    .cta-button-wrapper {
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 18px 24px;
    }

    .cta-button-main {
        font-size: 28px;
    }

    .cta-button-subtitle {
        font-size: 12px;
    }

    .spots-header {
        font-size: 13px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .spots-icon {
        min-width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .spots-text {
        text-align: center;
    }

    .progress-bar-container {
        height: 20px;
    }

    /* Benefits */
    .challenge-banner {
        padding: 15px 5px;
    }

    .challenge-top-text {
        font-size: 28px;
        margin: 0 0 5px 0;
    }

    .challenge-main-text {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .challenge-highlight-box {
        padding: 10px 15px;
        width: calc(100% - 10px);
    }

    .achievement-text {
        font-size: 13px;
    }

    /* CTA Compact */
    .phase-compact {
        padding: 25px 14px;
    }

    .cta-compact-button {
        padding: 18px 24px;
    }

    .cta-compact-main {
        font-size: 28px;
    }

    .cta-compact-subtitle {
        font-size: 12px;
    }

    /* Modal */
    .modal-popup {
        padding: 40px 15px 30px 15px;
    }

    .ricerca-terminata-heading {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .ricerca-terminata-text {
        font-size: 15px;
    }

    .spots-header-popup {
        font-size: 13px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .spots-icon-popup {
        min-width: 38px;
        height: 22px;
        font-size: 13px;
    }

    .spots-text-popup {
        text-align: center;
    }

    .cta-popup-button {
        padding: 18px 24px;
    }

    .cta-popup-main,
    .cta-whatsapp-text {
        font-size: 28px;
    }

    /* WhatsApp button specific mobile fix */
    .whatsapp-section .cta-whatsapp-text {
        font-size: 20px;
        -webkit-text-stroke: 0 !important;
    }

    .cta-popup-subtitle {
        font-size: 12px;
    }

    /* WhatsApp button specific mobile height */
    .whatsapp-section .cta-popup-button {
        padding: 25px 30px;
    }
}

/* ===================================
   THANK YOU PAGE STYLES
   =================================== */
.thank-you-page {
    background-color: #f5fbef;
}

.thank-you-page .timer-header-section {
    background: linear-gradient(180deg, #2a5a6b 0%, #1a3d4a 100%);
}

.ty-timer-text {
    font-size: 18px;
    font-weight: 900;
    color: #f5fbef;
    margin: 0;
    line-height: 1.3;
    flex-shrink: 0;
    text-align: left;
}

.ty-content-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ty-headline-box {
    margin-bottom: 40px;
}

.ty-main-title {
    font-size: 48px;
    font-weight: 900;
    color: #00445e;
    line-height: 1.1;
    margin-bottom: 20px;
    -webkit-text-stroke: 1px #00445e;
    text-transform: none;
}

.ty-subtitle {
    font-size: 24px;
    color: #1a3d4a;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.ty-subtitle strong {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: #00445e;
}

.ty-calendly-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Responsive TY */
@media (max-width: 768px) {
    .ty-main-title {
        font-size: 36px;
    }

    .ty-subtitle {
        font-size: 20px;
    }

    .ty-timer-text {
        font-size: 14px;
    }

    .ty-content-section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .ty-main-title {
        font-size: 28px;
        -webkit-text-stroke: 0 !important;
    }

    .ricerca-terminata-heading {
        font-size: 28px;
        margin-bottom: 20px;
        -webkit-text-stroke: 0 !important;
    }

    .ty-subtitle {
        font-size: 16px;
    }

    .ty-timer-text {
        font-size: 12px;
    }

    .ty-calendly-wrapper {
        padding: 10px;
    }
}

/* ===================================
   REFINED THANK YOU PAGE (V2)
   =================================== */
.thank-you-page-v2 {
    background-color: #1a3d4a;
    /* ClickFunnels background */
    margin: 0;
    padding: 0;
}

.ty-header {
    background: linear-gradient(180deg, #2a5a6b 0%, #1a3d4a 100%);
    padding: 5px 0;
}

.ty-timer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.ty-timer-text {
    font-size: 18px;
    font-weight: 900;
    color: #f5fbef;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    flex-shrink: 0;
}

.ty-timer-boxes {
    display: flex;
    gap: 8px;
}

.ty-timer-box {
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 65px;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    gap: 0;
}

.ty-timer-number {
    font-size: 24px;
    font-weight: 700;
    color: #00445e;
    line-height: 1;
}

.ty-timer-label {
    font-size: 8px;
    font-weight: 700;
    color: #00445e;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* Main Content */
.ty-main-content {
    background-color: #f5fbef;
    padding: 40px 20px;
    min-height: 100vh;
}

.ty-headline-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.ty-headline-title {
    font-size: 48px;
    font-weight: 900;
    color: #00445e;
    line-height: 1.1;
    margin-bottom: 30px;
    -webkit-text-stroke: 1px #00445e;
    text-transform: uppercase;
}

.ty-headline-subtitle {
    font-size: 26px;
    color: #00445e;
    line-height: 1.4;
}

.ty-headline-subtitle strong {
    font-weight: 700;
}

/* Widget Container */
.ty-widget-container {
    background: #ffffff;
    border-radius: 10px;
    border: 3px solid #40f99b;
    box-shadow: 0 8px 20px rgba(64, 249, 155, 0.3);
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendly-inline-widget {
    width: 100%;
}

/* Footer v2 */
.ty-footer {
    background-color: #1a3d4a;
    padding: 40px 20px;
    text-align: center;
    color: #f5fbef;
}

.ty-footer-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.ty-footer-links {
    font-size: 16px;
    margin-bottom: 20px;
}

.ty-footer-info {
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.ty-footer-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .ty-header {
        border-bottom: 3px solid #40f99b;
        box-shadow: 0 4px 15px rgba(64, 249, 155, 0.3);
    }

    .ty-timer-container {
        gap: 10px;
        padding: 5px 15px;
    }

    .ty-timer-text {
        font-size: 16px;
    }

    .ty-timer-boxes {
        gap: 6px;
    }

    .ty-timer-box {
        padding: 10px;
        width: 52px;
        min-width: 52px;
        gap: 0;
    }

    .ty-timer-number {
        font-size: 20px;
    }

    .ty-timer-label {
        font-size: 7px;
        margin: 0;
        line-height: 1;
    }

    .ty-headline-title {
        font-size: 34px;
    }

    .ty-headline-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ty-timer-container {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }

    .ty-timer-text {
        text-align: left;
        font-size: 14px;
    }

    .ty-headline-title {
        font-size: 28px;
    }

    .ty-headline-subtitle {
        font-size: 16px;
    }

    .ty-footer-links {
        font-size: 14px;
    }

    .ty-footer-info {
        font-size: 12px;
    }

    .ty-widget-container {
        padding: 5px;
    }

    .ty-footer-disclaimer {
        font-size: 11px;
    }
}

/* Stile Comune per i Box */
.custom-status-box-layout {
    background: linear-gradient(180deg, #2a5a6b 0%, #1a3d4a 100%);
    border: 3px solid #40f99b;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 8px 20px rgba(64, 249, 155, 0.3);
    margin: 10px auto 60px auto;
    /* Più vicino alla VSL cover */
    text-align: center;
    width: 95%;
    max-width: 700px;
    /* Larghezza uniforme */
}

/* Box 1: IL TUO INGLESE E' BLOCCATO - Più basso */
.status-box-blocked {
    padding: 25px 20px !important;
}

/* Box 2: PLACE HOLDER + PROGRESS BAR */
.status-box-working {
    padding: 30px 20px !important;
    /* Ridotta altezza per renderlo più compatto */
}



.dynamic-state-engine {
    margin: 0;
    max-width: none;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-phase-container {
    width: 100%;
    text-align: center;
}

.status-phase-text {
    color: #f5fbef;
    /* Bianco/Crema per box scuro */
    font-size: 28px;
    /* Aumentato considerevolmente per desktop */
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;

    /* Centratura Verticale */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    /* Altezza minima per centratura desktop */
    line-height: 1.1;
}

/* Margin solo se c'è qualcosa sotto (come la progress bar) */
.status-box-working .status-phase-text {
    margin-bottom: 20px;
    /* Spazio leggermente aumentato per bilanciare */
}

.status-phase-text .mobile-text {
    display: none;
}

/* Progress Bar Wrapper - Molto più larga */
.custom-progress-wrapper {
    width: 100%;
    max-width: 630px;
    /* Larghezza simile al pulsante CTA */
    background-color: rgba(225, 229, 230, 0.2);
    height: 35px;
    /* Più imponente */
    border-radius: 12px;
    /* Corner radius piccolo, simile ai pulsanti */
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(64, 249, 155, 0.3);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Progress Bar Fill - Sfumatura pulsante CTA */
.custom-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(180deg, #5dfaad 0%, #40f99b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s linear;
    position: relative;
    overflow: hidden;
}

/* Effetto Shimmer Dinamico */
.custom-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer-effect 2s infinite;
}

@keyframes shimmer-effect {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.custom-progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Gradient logic controlled by JS --grad-p */
    background-image: linear-gradient(to right, #00445e var(--grad-p, 0%), #ffffff var(--grad-p, 0%));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;

    font-size: 13px;
    font-weight: 300;
    /* Light weight base (restored) */
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    white-space: nowrap;
    /* Prevent wrapping */
}

.loading-text {
    font-weight: 300 !important;
    /* Inherit gradient from parent */
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loading-dots::after {
    content: '';
    display: inline-block;
    width: 14px;
    /* Aumentato width per 3 puntini */
    text-align: left;
    animation: loading-dots-anim 1.5s infinite steps(4, end);
    /* Inherit gradient */
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes loading-dots-anim {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* MEDIA QUERIES PER MOBILE */
@media (max-width: 800px) {
    .dynamic-state-engine {
        min-height: 100px;
    }

    #phase-status-blocked .status-phase-text {
        font-size: 20px;
        /* Scritta BLOCCATO più grande su mobile */
        line-height: 1.2;
    }

    .status-phase-text {
        min-height: 40px;
        /* Altezza ridotta per mobile */
    }

    .status-phase-text .desktop-text {
        display: none;
    }

    .status-phase-text .mobile-text {
        display: inline;
        font-size: 16px;
    }

    .custom-progress-wrapper {
        max-width: 90%;
    }

    .custom-status-box-layout {
        margin: 5px auto 40px auto;
        /* Ancora più vicino su mobile */
    }
}

/* Media Query for Desktop Subheadline */
@media (min-width: 768px) {
    .ricerca-terminata-subheading {
        font-size: 20px;
    }
}