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

        :root {
            --color-rosso: #E63946;
            --color-rosso-dark: #A4161A;
            --color-verde: #1D6B4F;
            --color-verde-light: #2A9D6F;
            --color-oro: #F4A261;
            --color-oro-light: #FFD97D;
            --color-bianco: #FFFFFF;
            --color-grigio: #F8F9FA;
            --color-sfondo: #FBF8F3;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, var(--color-sfondo) 0%, #FFF5E6 100%);
            color: #2C3E50;
            line-height: 1.7;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* ===== HEADER HERO ===== */
        .hero {
            background: linear-gradient(135deg, var(--color-rosso) 0%, var(--color-rosso-dark) 40%, var(--color-verde) 100%);
            color: var(--color-bianco);
            padding: 100px 20px 80px;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        }

        .hero::before {
            content: '❄️';
            position: absolute;
            font-size: 120px;
            opacity: 0.08;
            top: -30px;
            left: -20px;
            animation: float 6s ease-in-out infinite;
        }

        .hero::after {
            content: '❄️';
            position: absolute;
            font-size: 80px;
            opacity: 0.08;
            bottom: -20px;
            right: -10px;
            animation: float 8s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

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

        .hero-title {
            font-family: 'Playfair Display', serif;
            font-size: 3.8em;
            font-weight: 800;
            margin-bottom: 15px;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
            letter-spacing: -1px;
            line-height: 1.1;
        }

        .hero-subtitle {
            font-size: 1.5em;
            margin-bottom: 40px;
            opacity: 0.95;
            font-weight: 400;
        }

        .hero-cta {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-block;
            background: linear-gradient(135deg, var(--color-rosso) 0%, var(--color-rosso-dark) 100%);
            color: var(--color-bianco);
            padding: 15px 40px;
            border: none;
            border-radius: 10px;
            font-size: 1em;
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--color-bianco);
            color: var(--color-bianco);
            box-shadow: none;
        }

        .btn-secondary:hover {
            background: var(--color-bianco);
            color: var(--color-rosso);
        }

        /* ===== SECTIONS ===== */
        section {
            margin-bottom: 50px;
            padding: 60px 40px;
            background: var(--color-bianco);
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(230, 57, 70, 0.08);
        }

        section h2 {
            font-family: 'Playfair Display', serif;
            color: var(--color-rosso);
            font-size: 2.8em;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
            font-weight: 800;
            line-height: 1.2;
        }

        section h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--color-oro) 0%, var(--color-verde-light) 100%);
            margin-top: 15px;
            border-radius: 2px;
        }

        section p {
            font-size: 1.05em;
            color: #555;
            margin-bottom: 15px;
            line-height: 1.8;
            position: relative;
            z-index: 1;
        }

        /* ===== PAIN POINTS ===== */
        .pain-points {
            padding: 60px 20px;
            background: linear-gradient(135deg, rgba(244, 162, 97, 0.05) 0%, rgba(29, 107, 79, 0.05) 100%);
        }

        .pain-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .pain-card {
            background: var(--color-bianco);
            padding: 40px 30px;
            border-radius: 16px;
            text-align: center;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .pain-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
            border-color: var(--color-oro);
        }

        .pain-icon {
            font-size: 3.5em;
            margin-bottom: 20px;
            display: inline-block;
        }

        .pain-card h3 {
            font-size: 1.5em;
            color: var(--color-rosso);
            font-family: 'Poppins', sans-serif;
            margin-bottom: 15px;
            font-weight: 700;
        }

        /* ===== COUNTDOWN ===== */
        .countdown-wrapper {
            background: var(--color-bianco);
            border-radius: 16px;
            padding: 40px;
            margin: -50px 20px 50px 20px;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
            position: relative;
            z-index: 10;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            border: 2px solid var(--color-oro-light);
        }

        .countdown-item {
            text-align: center;
            padding: 25px;
            background: linear-gradient(135deg, rgba(244, 162, 97, 0.08) 0%, rgba(29, 107, 79, 0.08) 100%);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .countdown-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .countdown-label {
            font-family: 'Poppins', sans-serif;
            font-size: 0.95em;
            color: var(--color-verde);
            font-weight: 700;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .countdown-text {
            font-size: 2.5em;
            color: var(--color-rosso);
            font-weight: 800;
            font-family: 'Poppins', sans-serif;
        }

        /* ===== FEATURES GRID ===== */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .feature-card {
            background: linear-gradient(135deg, rgba(244, 162, 97, 0.1) 0%, rgba(29, 107, 79, 0.1) 100%);
            padding: 35px;
            border-radius: 12px;
            border-left: 4px solid var(--color-rosso);
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .feature-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
        }

        .feature-card h4 {
            color: var(--color-rosso);
            font-size: 1.3em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        /* ===== FORM SECTION ===== */
        .gift-form {
            background: linear-gradient(135deg, rgba(244, 162, 97, 0.03) 0%, rgba(29, 107, 79, 0.03) 100%);
            padding: 40px;
            border-radius: 16px;
            margin-bottom: 50px;
            border: 2px solid rgba(244, 162, 97, 0.2);
            position: relative;
            z-index: 1;
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 700;
            color: var(--color-verde);
            font-family: 'Poppins', sans-serif;
            font-size: 0.95em;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #E8E8E8;
            border-radius: 10px;
            font-size: 1em;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
            background: var(--color-bianco);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-rosso);
            background: var(--color-bianco);
            box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            font-family: 'Poppins', sans-serif;
        }

        .calendar-preview {
            background: linear-gradient(135deg, var(--color-oro-light) 0%, var(--color-verde-light) 100%);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 25px;
            color: white;
            font-weight: 600;
            display: none;
            position: relative;
            z-index: 1;
        }

        .calendar-preview.show {
            display: block;
            animation: slideDown 0.4s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-message {
            margin-top: 20px;
            padding: 18px;
            border-radius: 10px;
            display: none;
            font-weight: 600;
            animation: slideDown 0.4s ease-out;
            border-left: 4px solid;
            position: relative;
            z-index: 1;
        }

        .form-message.success {
            background-color: #D4EDDA;
            color: #155724;
            border-color: #28A745;
            display: block;
        }

        .form-message.error {
            background-color: #F8D7DA;
            color: #721C24;
            border-color: #F5C6CB;
            display: block;
        }

        /* ===== CALENDARS GRID ===== */
        .calendars-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 40px;
            position: relative;
            z-index: 1;
        }

        .calendar-item {
            background: var(--color-bianco);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            transition: all 0.3s ease;
            border: 1px solid rgba(230, 57, 70, 0.1);
        }

        .calendar-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
        }

        .calendar-header {
            padding: 25px;
            color: white;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .calendar-emoji {
            font-size: 2.5em;
        }

        .calendar-header h4 {
            font-size: 1.3em;
            font-weight: 700;
            line-height: 1.3;
            margin: 0;
        }

        .cinema { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); }
        .musica { background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); }
        .ricette { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); }
        .storie { background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%); }
        .ispirazioni { background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%); }
        .coppie { background: linear-gradient(135deg, #E63946 0%, #A4161A 100%); }

        .calendar-body {
            padding: 25px;
        }

        .calendar-body p {
            font-size: 0.95em;
            line-height: 1.6;
            color: #555;
            margin-bottom: 15px;
        }

        /* ===== FOOTER ===== */
        footer {
            background: linear-gradient(135deg, var(--color-verde) 0%, #0B3D2C 100%);
            color: var(--color-bianco);
            padding: 60px 20px 30px;
            position: relative;
            overflow: hidden;
            margin-top: 80px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }

        .footer-section h4 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.2em;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .footer-section p {
            font-size: 0.95em;
            line-height: 1.6;
            opacity: 0.9;
            margin-bottom: 10px;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 8px;
        }

        .footer-section a {
            color: var(--color-oro-light);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .footer-section a:hover {
            color: var(--color-bianco);
            text-decoration: underline;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 1;
        }

        .footer-bottom p {
            margin: 0;
            font-size: 0.9em;
            opacity: 0.8;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.2em;
            }

            .hero-subtitle {
                font-size: 1.1em;
            }

            .hero-cta {
                flex-direction: column;
            }

            .hero-cta .btn {
                width: 100%;
            }

            .countdown-wrapper {
                margin: -40px 15px 40px 15px;
                padding: 25px;
                grid-template-columns: 1fr;
                gap: 15px;
            }

            section {
                padding: 30px 20px;
                margin-bottom: 30px;
            }

            section h2 {
                font-size: 1.8em;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .gift-form {
                padding: 25px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .calendars-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                gap: 30px;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 60px 15px 50px;
            }

            .hero-title {
                font-size: 1.8em;
            }

            .hero-subtitle {
                font-size: 0.95em;
                margin-bottom: 25px;
            }

            section h2 {
                font-size: 1.5em;
            }

            .pain-card {
                padding: 25px 15px;
            }

            .pain-icon {
                font-size: 2.5em;
            }

            .countdown-text {
                font-size: 2em;
            }

            .btn {
                padding: 12px 30px;
                font-size: 0.9em;
            }
        }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-terms {
    color: #c41e3a;
    font-weight: 600;
}

.link-terms:hover {
    color: #2d5016;
}


/* PREMIUM CALENDARS SECTION */
#premium-calendars {
    margin: 60px 0 40px 0;
    padding: 0;
}

.premium-header {
    text-align: center;
    margin-bottom: 50px;
}

.premium-header h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.premium-header p {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.premium-price {
    font-size: 1.4em !important;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 20px !important;
}

.premium-price strong {
    font-size: 1.6em;
}

/* PREMIUM GRID */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.premium-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.premium-header-card {
    padding: 30px 20px;
    text-align: center;
    color: white;
    font-size: 3.5em;
    font-weight: bold;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color variations for each card */
.premium-header-card.bambini {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.premium-header-card.product-launch {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.premium-header-card.deco {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.premium-header-card.regalo {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.premium-header-card.tradizioni {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.premium-header-card.meditazione {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.premium-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.premium-body h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.premium-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-premium:active {
    transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .premium-header h2 {
        font-size: 1.8em;
    }

    .premium-header p {
        font-size: 1em;
    }

    .premium-price {
        font-size: 1.2em;
    }

    .premium-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .premium-header-card {
        padding: 25px 15px;
        font-size: 2.8em;
    }

    .premium-body {
        padding: 20px 15px;
    }

    .premium-body h3 {
        font-size: 1.1em;
    }

    .premium-description {
        font-size: 0.9em;
    }
}


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
	background: white;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

.cookie-banner-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    opacity: 0.9;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    /*border: none;*/
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .cookie-banner-text h3 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.9rem;
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* ANIMAZIONE HIGHLIGHT */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 212, 96, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(233, 212, 96, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 212, 96, 0);
        transform: scale(1);
    }
}

@keyframes background-flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(233, 212, 96, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

#calendarioScelto.highlight-focus {
    animation: pulse-glow 1s ease-out, background-flash 1s ease-out;
    border-color: #e9d460 !important;
    border-width: 2px !important;
}
/* BOTTONE LINK STILIZZATO */
.link-button {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    transition: all 0.3s ease;
    font-weight: 600;
}

.link-button:hover {
    color: #2563eb;
    text-decoration-thickness: 2px;
}

.link-button:active {
    color: #1d4ed8;
    transform: scale(0.98);
}

.link-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* MOBILE */
@media (max-width: 768px) {
    .link-button {
        display: inline-block;
        padding: 4px 0;
    }
}


/* ===== FORM SECTION ===== */

.gift-form {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.03) 0%, rgba(29, 107, 79, 0.03) 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 50px;
    border: 2px solid rgba(244, 162, 97, 0.2);
    position: relative;
    z-index: 1;
}

/* FORM SECTIONS */
.form-section {
    border: none;
    padding: 0 0 30px 0;
    margin: 0;
    border-bottom: 2px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-legend {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-rosso);
    margin-bottom: 20px;
    display: block;
    padding-bottom: 10px;
}

/* FORM ROW LAYOUT */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Fa stendere il messaggio su tutta la riga */
.form-row .form-group:last-child {
    grid-column: 1 / -1;
}

/* FORM GROUP */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-verde);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--color-bianco);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-rosso);
    background: var(--color-bianco);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    min-height: 100px;
}

/* CALENDAR PREVIEW */
.calendar-preview {
    background: linear-gradient(135deg, var(--color-oro-light) 0%, var(--color-verde-light) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
    display: none;
    position: relative;
    z-index: 1;
}

.calendar-preview.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FORM MESSAGE */
.form-message {
    margin-top: 20px;
    padding: 18px;
    border-radius: 10px;
    display: none;
    font-weight: 600;
    animation: slideDown 0.4s ease-out;
    border-left: 4px solid;
    position: relative;
    z-index: 1;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border-color: #28A745;
    display: block;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
    display: block;
}

/* FORM ACTIONS */
.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-rosso) 0%, var(--color-rosso-dark) 100%);
    color: white;
    padding: 14px 32px;
    font-size: 1.05em;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-note {
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 15px;
    font-style: italic;
}

/* CHECKBOX GROUP */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-rosso);
}

.checkbox-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #555;
}

.link-terms {
    color: var(--color-rosso);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-terms:hover {
    color: var(--color-rosso-dark);
    text-decoration: underline;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .gift-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row .form-group:last-child {
        grid-column: 1;
    }

    .form-legend {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 0.9em;
    }

    .form-section {
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .gift-form {
        padding: 15px;
    }

    .form-legend {
        font-size: 1em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Previene zoom su iOS */
    }

    .form-group textarea {
        min-height: 80px;
    }

    .form-actions {
        padding-top: 20px;
    }
}

/* BOTTONE LINK STILIZZATO */
.link-button {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    transition: all 0.3s ease;
    font-weight: 600;
}

.link-button:hover {
    color: #2563eb;
    text-decoration-thickness: 2px;
}

.link-button:active {
    color: #1d4ed8;
    transform: scale(0.98);
}

.link-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ANIMAZIONE HIGHLIGHT */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 212, 96, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(233, 212, 96, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 212, 96, 0);
        transform: scale(1);
    }
}

@keyframes background-flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(233, 212, 96, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

#giftForm.highlight-focus {
    animation: pulse-glow 0.6s ease-out, background-flash 1s ease-in-out;
    border-color: #e9d460 !important;
}

/* PARTICELLE CONFETTI */
.particle {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
}

@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
        filter: blur(4px);
    }
}

.particle-animate {
    animation: particle-float 2s ease-out forwards;
    --tx: calc((Math.random() - 0.5) * 200px);
    --ty: calc((Math.random() - 0.5) * 200px - 100px);
}

@media (max-width: 768px) {
    .particle {
        font-size: 1.2rem;
    }

    @keyframes particle-float {
        0% {
            opacity: 1;
            transform: translate(0, 0) scale(1) rotate(0deg);
        }
        100% {
            opacity: 0;
            transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
            filter: blur(2px);
        }
    }

    #giftForm.highlight-focus {
        border: 2px solid #e9d460;
    }
}

/* Animazione di highlight e zoom del fieldset */
@keyframes highlightZoom {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(192, 21, 47, 0.3), 
                0 4px 15px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(192, 21, 47, 0.2);
  }
}

.highlight-focus {
  animation: highlightZoom 0.8s ease-in-out 2;
  border: 2px solid #c0152f !important;
  border-radius: 8px;
  padding: 20px;
}
