/* =========================================================
   SALES PAGE — Q4 2026 ROAS
   Ricostruzione pulita dello stile della Sales Q3.
   Valori (colori, spaziature, font-size, breakpoint) presi
   dal foglio di stile originale della Q3.
   ========================================================= */

/* ===== TOKENS ===== */
:root {
    --green-light: #a0d636;
    --green: #8CC126;
    --green-dark: #4E912D;
    --green-darker: #3a7020;
    --green-bg: #f0f9e8;
    --green-soft: #d4eda8;

    --text: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #991b1b;
    --error: #dc2626;

    --gradient-text: linear-gradient(135deg, var(--green), var(--green-dark));
    --gradient-button: linear-gradient(180deg, var(--green-light), var(--green) 40%, var(--green-dark));
}

/* ===== RESET / BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TOP BAR (scadenza + countdown) ===== */
.top-bar {
    background: var(--gradient-text);
    color: #ffffff;
    padding: 14px 24px;
}

.top-bar-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-bar-text {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.top-bar-text .date-highlight {
    font-weight: 800;
    text-transform: uppercase;
}

.timer {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}

.timer-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 52px;
    text-align: center;
}

.timer-block .number {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.timer-block .label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ===== TIPOGRAFIA TITOLI ===== */
.big-headline {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.sub-headline {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 24px 0 16px;
}

.hero--closing {
    padding-top: 10px;
}

.hero--closing .big-headline {
    margin: 24px 0 8px;
}

.hero .main-headline {
    margin: 5px 0;
}

.hero .sub-headline {
    margin-top: 0;
    margin-bottom: 0;
}

.hero .description {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-body);
    max-width: 650px;
    margin: 0 auto 8px;
    line-height: 1.6;
}

.hero .description .highlight {
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== VSL ===== */
.vsl-container {
    max-width: 700px;
    margin: 30px auto 10px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25), 0 8px 20px rgba(15, 23, 42, 0.15);
}

.vsl-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== MOCKUP ===== */
.mockup-placeholder {
    text-align: center;
    padding: 30px 0 10px;
    animation: float 3s ease-in-out infinite;
}

.mockup-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 0 0 30px;
}

.cta-section--in-card {
    margin-top: 40px;
}

.cta-section .spots {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 800;
    color: var(--danger);
    margin-top: 10px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.cta-button {
    display: block;
    width: 100%;
    background: var(--gradient-button);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    padding: 22px 40px;
    border-radius: 9999px;
    border: none;
    border-bottom: 6px solid var(--green-darker);
    cursor: pointer;
    transition: all 0.2s;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(78, 150, 50, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 40px rgba(78, 150, 50, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:active {
    transform: translateY(3px) scale(0.98);
}

.final-cta {
    padding-bottom: 60px;
}

/* ===== CARD CON IMMAGINE (Benefici / Checklist / Target) ===== */
.benefits-section {
    padding: 40px 0;
}

.checklist-section,
.target-section {
    padding: 50px 0;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0 40px;
}

.benefit-card {
    background: var(--green-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.benefit-card-img {
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
}

.benefit-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.benefit-card-body {
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.benefit-check {
    flex-shrink: 0;
    font-size: 1.4rem;
    margin-top: 3px;
    color: var(--green-dark);
}

.benefit-card-body p,
.money-card p {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.benefit-card-body p strong,
.money-card p strong {
    color: var(--green-dark);
    font-size: 1.35em;
    line-height: 1.2;
    display: inline-block;
}

/* card senza immagine a tutta larghezza (5° beneficio) */
.benefit-card--wide {
    grid-column: 1 / -1;
}

.section-closing {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    text-align: center;
}

/* ===== BLOCCHI OFFERTA (Co-Pilota / Macchina del Guadagno / Garanzia) ===== */
.offer-block {
    background: var(--green-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-top: 30px;
}

.offer-block-img {
    background: var(--green-soft);
}

/* contain: l'immagine del Co-Pilota non va ritagliata */
.offer-block-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

.offer-block-body {
    padding: 28px 28px 30px;
}

.offer-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 900;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 20px;
}

.offer-block-body > p {
    font-size: clamp(1.15rem, 3vw, 1.3rem);
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 12px;
}

.offer-block .benefit-cards {
    margin: 24px 0 0;
}

.offer-block .benefit-card {
    background: #ffffff;
}

/* ===== BOX VERDI (Money / Testimonianze / Steps) ===== */
.money-section,
.testimonials-section,
.steps-section {
    background: var(--green-bg);
    border-radius: 16px;
    padding: 50px 36px;
    margin: 50px 0;
}

.money-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.money-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ===== TESTIMONIANZE ===== */
.testimonials-section {
    text-align: center;
}

.testimonials-section .section-label {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    margin: 30px -36px;
}

.slider-wrapper::before,
.slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--green-bg), transparent);
}

.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--green-bg), transparent);
}

.slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* padding = gap: le due metà del track sono identiche e il loop a -50% non "salta" */
.slider-track.is-looping {
    padding-right: 16px;
}

.slider-track img {
    height: 500px;
    width: auto;
    border-radius: 12px;
    flex-shrink: 0;
}

.slider-wrapper--compact .slider-track img {
    height: 320px;
}

.slider-top {
    animation: scroll-left 30s linear infinite;
    margin-bottom: 16px;
}

.slider-bottom {
    animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===== STEPS (Come funziona) ===== */
.step-cards {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.step-card .step-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(78, 145, 45, 0.15);
    line-height: 0.85;
    letter-spacing: -0.05em;
    flex-shrink: 0;
}

.step-card .step-content {
    flex: 1;
}

.step-card .step-title {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.step-card .step-desc {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--text-body);
}

.step-card .step-desc p + p {
    margin-top: 10px;
}

/* ===== FAQ ===== */
.faq-section {
    margin: 50px 0 60px;
}

.faq-section .big-headline {
    margin-bottom: 12px;
}

.faq-intro {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 600;
    color: var(--text-body);
    text-align: center;
    margin-bottom: 32px;
}

.faq-section details {
    background: var(--gradient-button);
    border: none;
    border-radius: 8px;
    border-bottom: 4px solid var(--green-darker);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(78, 150, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.faq-section details:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(78, 150, 50, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.faq-section details[open] {
    background: #ffffff;
    border-bottom: 4px solid var(--border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: none;
}

.faq-section summary {
    padding: 20px 24px;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.faq-section details[open] summary {
    color: var(--green-dark);
    text-shadow: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    transition: transform 0.2s;
}

.faq-section details[open] summary::after {
    content: '-';
    color: var(--green-dark);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: clamp(1.15rem, 3vw, 1.25rem);
    color: var(--text-body);
    line-height: 1.7;
    text-align: left;
}

/* ===== GARANZIA ===== */
.guarantee-section {
    padding: 50px 0;
}

.guarantee-box {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.guarantee-box .guarantee-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guarantee-box .guarantee-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CHIUSURA ("Fermati un secondo...") ===== */
.closing-section {
    max-width: 650px;
    margin: 10px auto 40px;
}

.closing-section p {
    font-size: clamp(1.2rem, 3.2vw, 1.35rem);
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ===== MODAL CANDIDATURA ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.modal-overlay.open {
    display: flex;
    animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: modal-slide-up 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.modal-subtitle {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.modal-subtitle strong {
    color: var(--green-dark);
}

.modal-field {
    margin-bottom: 16px;
}

.modal-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-body);
    margin-bottom: 6px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.modal-input:focus {
    border-color: var(--green-dark);
    background: #ffffff;
}

.modal-input.error {
    border-color: var(--error);
}

.phone-row {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    flex: 0 0 auto;
    width: 118px;
    padding: 14px 8px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    background: #f8fafc;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.phone-prefix:focus {
    border-color: var(--green-dark);
}

.phone-row .modal-input {
    flex: 1;
    min-width: 0;
}

.modal-error-msg {
    display: none;
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 600;
    margin: -6px 0 12px;
}

.modal-error-msg.visible {
    display: block;
}

.modal-success-msg {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--green-bg);
    border: 2px solid var(--green);
    border-radius: 12px;
    color: var(--green-dark);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.4;
}

.modal-success-msg.visible {
    display: block;
    animation: modal-fade-in 0.25s ease;
}

.modal-submit {
    width: 100%;
    margin-top: 8px;
    background: var(--gradient-button);
    color: #ffffff;
    border: none;
    border-bottom: 5px solid var(--green-darker);
    border-radius: 9999px;
    padding: 18px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(78, 150, 50, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.modal-submit:hover {
    transform: scale(1.02);
}

.modal-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

body.modal-open {
    overflow: hidden;
}

/* ===== RESPONSIVE (breakpoint Q3: 770px) ===== */
@media (max-width: 770px) {
    .top-bar {
        padding: 10px 14px;
    }

    .top-bar-inner {
        gap: 10px;
    }

    .top-bar-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .timer {
        gap: 4px;
    }

    .timer-block {
        min-width: 40px;
        padding: 4px 6px;
        border-radius: 6px;
    }

    .timer-block .number {
        font-size: 0.95rem;
    }

    .timer-block .label {
        font-size: 0.5rem;
    }

    .big-headline {
        font-size: 10vw;
        line-height: 1.05;
    }

    .hero .main-headline {
        margin: 8px 0;
    }

    .benefit-cards,
    .money-cards {
        grid-template-columns: 1fr;
    }

    .benefits-section,
    .checklist-section,
    .target-section {
        padding: 20px 0 0;
    }

    .benefit-cards {
        margin: 20px 0 10px;
    }

    .cta-button {
        padding: 18px 28px;
        font-size: 2rem;
        line-height: 1.1;
    }

    /* box verdi a tutta larghezza su mobile */
    .money-section,
    .testimonials-section,
    .steps-section {
        padding: 24px;
        margin: 20px -24px;
        border-radius: 0;
    }

    .money-card {
        padding: 18px 16px;
    }

    .slider-wrapper {
        margin: 30px -24px;
    }

    .slider-track img {
        height: 520px;
    }

    .slider-wrapper--compact .slider-track img {
        height: 340px;
    }

    .step-card {
        padding: 22px;
    }

    .step-card .step-number {
        font-size: 5rem;
    }

    .faq-section {
        margin: 24px 0 30px;
    }

    .guarantee-section {
        padding: 20px 0;
    }

    .guarantee-box {
        padding: 30px 24px;
    }

    .offer-block-body {
        padding: 22px 14px 24px;
    }

    /* card annidate nella Macchina del Guadagno: piu' spazio al testo */
    .offer-block .benefit-card-body {
        padding: 14px 12px;
    }

    .closing-section {
        margin-bottom: 24px;
    }
}
