/* Hero Offerta - Full Viewport Conversion Section */
.hero-offerta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Assicura che le immagini di sfondo sovrascrivano il gradient di default */
.hero-offerta[style*="background-image"] {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    /* Disabilita fixed background su mobile per performance */
    .hero-offerta[style*="background-image"] {
        background-attachment: scroll;
    }
}

/* .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
} */



.hero-fader {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: url(../img/white-fader.png);
    background-size: 1px 40px;
    background-repeat: repeat-x;
}

/* Badge Prezzo Top-Left */


.hero-price-badge-topleft .price-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-align: center;
    line-height: 1.2;
}



.hero-price-badge-topleft .price-currency {
    font-size: 1.2rem;
    margin-left: 0.1rem;
}





.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: brightness(1.05) contrast(1.1);
    border-radius: 20px;
}

.hero-offerta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
}

/* Colonna Destra - Card Offerta */


.card-header {
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: white;
}

.countdown-timer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 20px 0;
}

.timer-unit {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.timer-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-right: 0.25rem;
    font-weight: 600;
    color: white;
}

.offer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.cta-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.4);
}

.legal-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    text-align: start;
}

/* Responsive Design */
@media(max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-price-badge-topleft {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 4rem;
        margin-bottom: 2rem;
        align-self: flex-start;
    }
}

@media(max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    section.hero-offerta .hero-image {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 300px;
        max-height: 300px;
        aspect-ratio: auto;
        margin: 1rem auto 2rem;
    }

    section.hero-offerta .hero-img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    .offer-card {
        margin: 0;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .countdown-timer {
        justify-content: center;
    }

    .hero-price-badge-topleft {
        padding: 0.8rem 1rem;
        min-width: 100px;
        top: 1rem;
        left: 1rem;
        margin: 0;
    }

    .hero-price-badge-topleft .price-amount {
        font-size: 1.4rem;
    }

    .hero-price-badge-topleft .price-currency {
        font-size: 1rem;
    }

    .row:has(.offer-card) {
        margin-top: 0;
    }
}

@media(max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-copy {
        margin-bottom: 2rem;
    }
}