/* ==========================================================================
   LANDING PAGE BLACK FRIDAY - REGALI MIGLIORI
   Template ottimizzato per conversione su mobile-first
   ========================================================================== */

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER - Mantiene il branding "Regali Migliori"
   ========================================================================== */

.site-header {
    background-color: #c44032;
    color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

/* ==========================================================================
   HERO SECTION - Above the fold ottimizzato
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #c44032 50%, #2d2d2d 100%);
    color: #ffffff;
    padding: 32px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.02) 10px, rgba(255,255,255,.02) 20px);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Black Friday Badge */
.bf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

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

.bf-icon {
    font-size: 18px;
}

/* Hero Title */
.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.hero-title .highlight {
    color: #FFD700;
    display: block;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #4CAF50;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   PRODUCTS SECTION - Sezione prodotti semplificata
   ========================================================================== */

.products-section {
    padding: 40px 0 48px;
    background-color: #f8f9fa;
}

.section-intro {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* ==========================================================================
   PRODUCT CARD - Ottimizzata per conversione
   ========================================================================== */

/* Product wrapper - Contains badge + card for integrated animation */
.product-wrapper {
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.product-wrapper:hover {
    transform: translateY(-4px);
}

.product-wrapper:hover .product-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.product-card {
    background-color: #ffffff;
    border-radius: 0 16px 16px 16px; /* No top-left radius for badge integration */
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

/* Prima Card in Evidenza - HOT DEAL */
.product-card:first-of-type {
    border: 3px solid #FFD700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.product-card:first-of-type::before {
    content: "🔥 HOT DEAL";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(90deg);
    background: linear-gradient(135deg, #ff4444 0%, #ff6b00 100%);
    color: #ffffff;
    padding: 8px 24px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.5);
    z-index: 10;
}

.product-card:first-of-type:hover {
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-choice {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #ffffff;
}

.badge-bestseller {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
}

.badge-premium {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: #ffffff;
}

.badge-discount {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    font-size: 18px;
    padding: 10px 16px;
    text-align: center;
    animation: pulse-badge 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.5);
}

.site-footer {
    padding: 0!important;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 28px rgba(255, 68, 68, 0.7);
    }
}

/* Price tier pill */
.tier-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tier-entry {
    background: linear-gradient(135deg, #44d7b6, #1ca188);
}

.tier-mid {
    background: linear-gradient(135deg, #ffc86b, #ff8f3f);
}

.tier-premium {
    background: linear-gradient(135deg, #9fa8ff, #6c79ff);
}

/* Product Image */
.product-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background-color: #ffffff;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Recommendation Badge - Tab sitting on top of card */
.product-recommendation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0; /* No gap with card below */
    position: relative;
    z-index: 5;
}

.badge-icon {
    font-size: 16px;
    line-height: 1;
}

.badge-text {
    line-height: 1;
    white-space: nowrap;
}

.badge-top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 -2px 8px rgba(255, 165, 0, 0.3);
}

.badge-mid {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 -2px 8px rgba(76, 175, 80, 0.3);
}

.badge-entry {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 -2px 8px rgba(33, 150, 243, 0.3);
}

/* Product Content */
.product-content {
    padding: 24px;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    color: #c44032;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.stars-empty {
    color: #ddd;
}

.stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #FFD700;
}

.rating-text {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffd54f 100%);
    border-radius: 12px;
    border: 3px solid #FF9800;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.25);
    position: relative;
}

.product-pricing::before {
    content: "💰";
    position: absolute;
    top: -18px;
    left: 20px;
    font-size: 32px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.price-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.price-current {
    font-size: 32px;
    font-weight: 800;
    color: #c44032;
    font-family: 'Poppins', sans-serif;
}

.price-save {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
}

/* Product Description */
.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #FFD700;
}

/* Product Trust Badges */
.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    background-color: #e8f5e9;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    transition: all 0.2s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.trust-item svg {
    flex-shrink: 0;
}

/* CTA Button - Stile Amazon con Shimmer */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    border: 1px solid #a88734;
    border-radius: 8px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        transform: rotateZ(60deg) translate(5em, -7.5em);
    }
}

.cta-button:hover {
    background: linear-gradient(to bottom, #f5d78e 0%, #edb932 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(213, 217, 217, 0.9);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(213, 217, 217, 0.5);
}

.cta-text {
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   FOOTER - Minimale
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 32px 0 24px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.footer-disclaimer strong {
    color: #ffffff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: #ccc;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFD700;
}

.footer-copyright {
    font-size: 13px;
    color: #999;
}

/* ==========================================================================
   RESPONSIVE - TABLET & DESKTOP
   ========================================================================== */

@media (min-width: 768px) {
    /* Container */
    .container {
        padding: 0 40px;
    }

    /* Header Logo */
    .logo-image {
        height: 50px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 38px;
    }

    .hero-features {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }

    /* Section Title */
    .section-title {
        font-size: 28px;
    }

    /* Product Card - Layout orizzontale su tablet/desktop */
    .product-card {
        display: grid;
        grid-template-columns: 40% 60%;
        gap: 0;
    }

    .product-image-wrapper {
        padding-top: 0;
        height: 100%;
        min-height: 350px;
    }

    .product-content {
        padding: 32px;
    }

    .product-title {
        font-size: 22px;
    }

    .price-current {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    /* Hero Section */
    .hero-title {
        font-size: 44px;
    }

    .hero-features {
        gap: 48px;
    }

    .feature-item {
        font-size: 16px;
    }

    /* Section Title */
    .section-title {
        font-size: 32px;
    }

    /* Product Card */
    .product-content {
        padding: 40px;
    }

    .product-title {
        font-size: 24px;
    }

    /* CTA Button - Hover più evidente su desktop */
    .cta-button {
        font-size: 18px;
        padding: 20px 32px;
    }
}

/* ==========================================================================
   UTILITIES & ANIMATIONS
   ========================================================================== */

/* Scroll Padding per anchor links */
html {
    scroll-padding-top: 80px;
}

/* Loading state per immagini */
/*.product-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}*/

.product-image.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .site-header,
    .quick-nav,
    .site-footer,
    .cta-button {
        display: none;
    }

    .product-card {
        page-break-inside: avoid;
    }
}

/* Accessibilità: Focus states */
a:focus,
button:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* Riduzione movimento per accessibilità */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
            --christmas-deep-green: #0D5C4D;
            --christmas-soft-gold: #D4AF37;
            --christmas-burgundy: #8B1538;
            --christmas-ice-blue: #E3F2FD;
            --christmas-warm-white: #FAF9F6;
            --gift-ribbon-red: #C41E3A;
            --christmas-forest: #228B22;
        }

        /* Header Christmas Theme */
        .site-header {
            background: linear-gradient(135deg, #0D5C4D 0%, #01796F 100%);
            border-bottom: 3px solid #D4AF37;
        }

        /* Christmas Urgency Bar */
        .christmas-urgency-bar {
            background: linear-gradient(135deg, #8B1538 0%, #C41E3A 100%);
            color: #ffffff;
            padding: 16px 24px;
            text-align: center;
            animation: urgent-pulse 2s ease-in-out infinite;
            position: sticky;
            top: 0;
            z-index: 1100;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
        }

        @keyframes urgent-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.95; }
        }

        .urgency-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .urgency-icon {
            font-size: 20px;
        }

        .urgency-text {
            font-size: 15px;
            font-weight: 600;
        }

        .urgency-text strong {
            font-weight: 800;
        }

        .delivery-deadline {
            font-size: 13px;
            opacity: 0.95;
            margin-left: 8px;
        }

        /* Hero Section Christmas */
        .hero-section {
            background: linear-gradient(135deg, #0D5C4D 0%, #1a4d3e 25%, #2d5a4d 50%, #1a4d3e 75%, #0D5C4D 100%);
        }

        .hero-section::before {
            background-image:
                radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px),
                radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
            background-size: 50px 50px, 80px 80px;
            background-position: 0 0, 40px 40px;
        }

        .hero-section::after {
            background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
        }

        /* Christmas Badge */
        .christmas-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
            color: #0D5C4D;
            padding: 8px 20px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 1px;
            margin-bottom: 24px;
            box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4),
                        inset 0 1px 0 rgba(255,255,255,0.5);
            animation: gentle-glow 3s ease-in-out infinite;
            border: 2px solid #0D5C4D;
        }

        @keyframes gentle-glow {
            0%, 100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
            50% { box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6); }
        }

        .christmas-icon {
            font-size: 18px;
        }

        /* Gift Badge Colors */
        .badge-gift-entry {
            background: linear-gradient(135deg, #01796F 0%, #0D5C4D 100%);
            box-shadow: 0 -2px 8px rgba(13, 92, 77, 0.3);
        }

        .badge-gift-mid {
            background: linear-gradient(135deg, #B87333 0%, #D4AF37 100%);
            box-shadow: 0 -2px 8px rgba(184, 115, 51, 0.3);
        }

        .badge-gift-premium {
            background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
            box-shadow: 0 -2px 8px rgba(212, 175, 55, 0.3);
            color: #0D5C4D;
            font-weight: 800;
        }

        /* Tier Pills Christmas */
        .tier-gift-entry {
            background: linear-gradient(135deg, #01796F, #0D5C4D);
        }

        .tier-gift-mid {
            background: linear-gradient(135deg, #B87333, #D4AF37);
        }

        .tier-gift-premium {
            background: linear-gradient(135deg, #D4AF37, #FFD700);
            color: #0D5C4D;
        }

        /* HOT DEAL -> BEST SELLER */
        .product-card:first-of-type::before {
            content: "🌟 BEST SELLER NATALE";
            background: linear-gradient(135deg, #8B1538 0%, #C41E3A 100%);
        }

        .product-card:first-of-type {
            border: 3px solid #D4AF37;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
        }

        /* CTA Button Christmas */
        .cta-button {
            background: linear-gradient(to bottom, #C41E3A 0%, #8B1538 100%);
            border: 2px solid #D4AF37;
            box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
            color: #ffffff !important;
        }

        .cta-button .cta-text {
            color: #ffffff !important;
        }

        .cta-button:hover {
            background: linear-gradient(to bottom, #D4244F 0%, #A01330 100%);
            transform: translateY(-3px);
            box-shadow: 0 6px 28px rgba(196, 30, 58, 0.6);
            color: #ffffff !important;
        }

        /* Pricing Box Christmas */
        .product-pricing {
            background: linear-gradient(135deg, #FAF9F6 0%, #E3F2FD 50%, #FAF9F6 100%);
            border: 3px solid #D4AF37;
            box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
            text-align: center;
        }

        .product-pricing .price-main {
            justify-content: center;
        }

        .product-pricing .price-save {
            text-align: center;
        }

        .product-pricing::before {
            content: "🎁";
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 24px;
        }

        /* Feature Icons Christmas */
        .feature-icon {
            background-color: #228B22;
        }
