/* Regole globali per prevenire problemi di scrollbar e flickering */
html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Stabilizza il rendering per prevenire flickering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden; /* Previene la comparsa della scrollbar durante le animazioni */
    position: relative;
}

/* Container - ottimizzato per contenere il layout */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 1;
    min-height: 100vh;
    box-sizing: border-box;
    /* Previene overflow che causa la scrollbar */
    max-height: 100vh;
    overflow: hidden;
}

/* Logo Section */
.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 80px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)) brightness(1.1) contrast(1.1);
    animation: gentleGlow 4s ease-in-out infinite alternate;
    transition: all 0.4s ease;
}

.logo-name-container {
    margin-bottom: 95px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-name {
    width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)) brightness(1.1) contrast(1.1);
    animation: gentleGlow 4s ease-in-out infinite alternate;
    transition: all 0.4s ease;
}

.logo-name-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.6;
}

@keyframes gentleGlow {
    0% { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)) brightness(1.1) contrast(1.1); }
    100% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.7)) brightness(1.2) contrast(1.15); }
}

/* Brand Name */
.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 500;
    color: #d4af37;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    font-style: normal;
    text-transform: lowercase;
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.6;
}

/* Tagline */
.tagline {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
}

.main-phrase {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: 1px;
}

.sub-phrase {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: #d4af37;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: 1px;
}

/* Description */
.description {
    text-align: center;
    margin-bottom: 70px;
    max-width: 650px;
}

.description p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: #e6e6e6;
    line-height: 1.7;
    font-style: italic;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* CTA Section - ottimizzata per prevenire flickering */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* Stabilizza l'elemento per prevenire re-rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.exclusive-message {
    text-align: center;
    margin-bottom: 20px;
}

.exclusive-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #d4af37;
    opacity: 0.9;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Waitlist Button - ottimizzato per prevenire flickering */
.waitlist-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f  50%, #d4af37 100%);
    border: 3px solid #d4af37;
    color: #000000;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 20px 45px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    /* Stabilizza l'elemento per prevenire re-rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.waitlist-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #f4d03f 100%);
    border-color: #f4d03f;
}

.waitlist-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.waitlist-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Submit Button - Stile elegante e regale completamente ridisegnato */
.submit-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 30%, #d4af37 70%, #f4d03f 100%);
    border: 2px solid #d4af37;
    border-radius: 50px;
    color: #000000;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 45px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    align-self: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    background-size: 400% 400%;
    animation: royalShimmer 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    margin-top: 7px;
    margin-bottom: 4px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37, #f4d03f);
    background-size: 300% 300%;
    border-radius: 50px;
    z-index: -1;
    animation: royalBorder 3s ease-in-out infinite;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
    border-color: #f4d03f;
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 30%, #f4d03f 70%, #d4af37 100%);
    color: #000000;
    letter-spacing: 3px;
}

.submit-btn:hover::after {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    transition: all 0.2s ease;
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #777 50%, #666 100%);
    border-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
    animation: none;
}

.submit-btn:disabled::before,
.submit-btn:disabled::after {
    display: none;
}

/* Animazioni regali per il pulsante */
@keyframes royalShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes royalBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Small Text */
.small-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #b8b8b8;
    font-style: italic;
    letter-spacing: 1.5px;
    font-weight: 400;
}

/* Background Particles */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Vintage Background - completamente stabilizzato */
.vintage-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/1751354661207.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Stabilizza il background durante scroll */
    opacity: 0.08;
    filter: sepia(100%) hue-rotate(30deg) saturate(150%) brightness(0.7);
    z-index: -2;
    /* Forzatura completa del layer compositor per eliminare micro-flickering */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform; /* Specifica esattamente cosa può cambiare */
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    /* Ottimizzazioni aggiuntive per stabilità */
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: subpixel-antialiased;
    contain: layout style paint; /* Isola il rendering */
}

.vintage-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
    /* Stabilizzazione completa del pseudo-elemento */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    contain: layout style paint; /* Isola completamente il rendering */
}

.golden-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #d4af37 0%, rgba(212, 175, 55, 0.6) 50%, transparent 80%);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle-3 {
    top: 30%;
    right: 25%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle-4 {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle-5 {
    bottom: 60%;
    right: 30%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-10px) translateX(-15px); opacity: 0.4; }
    75% { transform: translateY(-30px) translateX(5px); opacity: 0.9; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 25px;
    padding-inline: 37px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(15px);
    margin: auto;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #f4d03f;
}

.modal-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 18px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 2px;
}

.modal-content p {
    font-family: 'Cormorant Garamond', serif;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.2rem;
    font-style: italic;
}

/* Form Styles */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-input {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 18px 25px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.email-input::placeholder {
    color: #999999;
    font-style: italic;
}

/* Textarea per la motivazione */
.motivation-input {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 18px 25px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.motivation-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.motivation-input::placeholder {
    color: #999999;
    font-style: italic;
}

/* Contatore caratteri */
.char-counter {
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: #b0b0b0;
    font-style: italic;
    margin-top: -10px;
}

.char-counter.over-limit {
    color: #ff6b6b;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.checkbox-label:hover {
    opacity: 0.8;
}

/* Hidden default checkbox */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkbox */
.checkbox-custom {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #d4af37;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Checked state */
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

/* Focus state */
.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Miglioramento della visibilità del focus sul checkbox */
.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    border-color: #d4af37;
    outline: 3px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

/* Checkbox text */
.checkbox-text {
    color: #e0e0e0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.4;
    flex: 1;
}

/* Required asterisk styling */
.required-asterisk {
    color: #ff6b6b;
    font-weight: 600;
    margin-left: 2px;
}

/* Error state for checkbox */
.checkbox-label.error {
    outline: 2px solid #ff6b6b !important;
    border-radius: 4px;
    padding: 5px;
    margin: -5px;
    background: rgba(255, 107, 107, 0.1);
}

.checkbox-label.error .checkbox-text {
    color: #ff9999;
}

/* Stile aggiuntivo per errori GDPR critici */
.form-error strong {
    color: #ff4444;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.checkbox-label.error .checkbox-custom {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.3) !important;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6) !important;
}

/* Form error message - migliorato per massima visibilità */
.form-error {
    color: #ff6b6b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    animation: errorPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.form-error::before {
    content: '⚠️';
    font-size: 1.2rem;
    margin-right: 8px;
    display: inline-block;
}

@keyframes errorPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
        transform: scale(1.02);
    }
}

.privacy-text {
    font-size: 0.95rem !important;
    margin-top: 16px !important;
    margin-bottom: 0px !important;
}

/* Disclaimer Styles */
.disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.disclaimer p {
    color: #b8b8b8;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.disclaimer a {
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.disclaimer a:hover {
    color: #f4d03f;
    border-bottom-color: #f4d03f;
}

/* Responsive Design - Eleganza su ogni dispositivo */

/* Tablet Landscape (1024px - 768px) */
@media (max-width: 1024px) {
    .main-phrase,
    .sub-phrase {
        font-size: 2.4rem;
        line-height: 1.3;
    }
    
    .description p {
        font-size: 1.4rem;
        line-height: 1.6;
    }
    
    .container {
        padding: 35px 25px;
    }
    
    .tagline {
        margin-bottom: 55px;
    }
    
    .description {
        margin-bottom: 65px;
    }
}

/* Tablet Portrait (768px - 600px) */
@media (max-width: 768px) {
    .brand-name {
        font-size: 3.5rem;
        letter-spacing: 3px;
        margin-bottom: 45px;
    }
    
    .main-phrase,
    .sub-phrase {
        font-size: 2.2rem;
        line-height: 1.35;
        letter-spacing: 0.8px;
    }
    
    .description p {
        font-size: 1.35rem;
        line-height: 1.65;
        letter-spacing: 0.4px;
    }
    
    .logo {
        width: 75px;
        height: 105px;
    }
    
    .logo-name {
        width: 100px;
    }
    
    .logo-name-container {
        margin-bottom: 80px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    .tagline {
        margin-bottom: 50px;
        max-width: 95%;
    }
    
    .description {
        margin-bottom: 60px;
        max-width: 90%;
    }
    
    .cta-section {
        gap: 25px;
    }
    
    .exclusive-message p {
        font-size: 1.1rem;
        letter-spacing: 1.2px;
        line-height: 1.4;
    }
    
    .waitlist-btn {
        font-size: 1rem;
        padding: 18px 40px;
        letter-spacing: 1.8px;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 18px 40px;
        letter-spacing: 1.8px;
        max-width: 280px;
    }
    
    .small-text {
        font-size: 0.95rem;
        letter-spacing: 1.3px;
    }
    
    .modal {
        padding: 35px 25px;
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-content h2 {
        font-size: 2rem;
        letter-spacing: 1.8px;
    }
    
    .modal-content p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .motivation-input {
        min-height: 80px;
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .char-counter {
        font-size: 0.85rem;
    }
    
    .vintage-background {
        opacity: 0.06;
    }
}

/* Mobile Large (600px - 480px) */
@media (max-width: 600px) {
    .main-phrase,
    .sub-phrase {
        font-size: 2rem;
        line-height: 1.4;
        letter-spacing: 0.6px;
    }
    
    .description p {
        font-size: 1.25rem;
        line-height: 1.7;
    }
    
    .logo {
        width: 70px;
        height: 98px;
    }
    
    .logo-name {
        width: 95px;
    }
    
    .logo-name-container {
        margin-bottom: 75px;
    }
    
    .tagline {
        margin-bottom: 45px;
    }
    
    .description {
        margin-bottom: 55px;
    }
    
    .exclusive-message p {
        font-size: 1.05rem;
        line-height: 1.45;
        padding: 0 10px;
    }
    
    .waitlist-btn {
        padding: 16px 35px;
        font-size: 0.95rem;
        letter-spacing: 1.6px;
    }
    
    .submit-btn {
        padding: 16px 35px;
        font-size: 0.95rem;
        letter-spacing: 1.6px;
        max-width: 260px;
    }
    
    .vintage-background {
        opacity: 0.05;
    }
}

/* Mobile Standard (480px - 375px) */
@media (max-width: 480px) {
    .brand-name {
        font-size: 2.8rem;
        letter-spacing: 2px;
        margin-bottom: 40px;
    }
    
    .main-phrase,
    .sub-phrase {
        font-size: 1.8rem;
        line-height: 1.45;
        letter-spacing: 0.5px;
    }
    
    .description p {
        font-size: 1.2rem;
        line-height: 1.75;
        letter-spacing: 0.3px;
    }
    
    .logo {
        width: 65px;
        height: 91px;
    }
    
    .logo-name {
        width: 85px;
    }
    
    .logo-name-container {
        margin-bottom: 70px;
    }
    
    .container {
        padding: 25px 15px;
    }
    
    .tagline {
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .description {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .cta-section {
        gap: 22px;
    }
    
    .exclusive-message {
        margin-bottom: 15px;
    }
    
    .exclusive-message p {
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: 1px;
        padding: 0 5px;
    }
    
    .waitlist-btn {
        padding: 15px 30px;
        font-size: 0.9rem;
        letter-spacing: 1.4px;
        gap: 12px;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 0.9rem;
        letter-spacing: 1.4px;
        gap: 12px;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }
    
    .small-text {
        font-size: 0.9rem;
        letter-spacing: 1.2px;
    }
    
    .modal {
        padding: 30px 20px;
        width: 95%;
        margin: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    
    .modal-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .motivation-input {
        min-height: 90px;
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .char-counter {
        font-size: 0.85rem;
        margin-top: -8px;
    }
    
    .email-input {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 1rem;
        letter-spacing: 1.3px;
    }
    
    .privacy-text {
        font-size: 0.9rem;
        margin-top: 20px;
        line-height: 1.4;
    }
    
    .vintage-background {
        opacity: 0.04;
    }
}

/* Mobile Small (375px - 320px) */
@media (max-width: 375px) {
    .main-phrase,
    .sub-phrase {
        font-size: 1.65rem;
        line-height: 1.5;
        letter-spacing: 0.4px;
    }
    
    .description p {
        font-size: 1.15rem;
        line-height: 1.8;
    }
    
    .logo {
        width: 60px;
        height: 84px;
    }
    
    .logo-name {
        width: 80px;
    }
    
    .logo-name-container {
        margin-bottom: 65px;
    }
    
    .container {
        padding: 20px 12px;
    }
    
    .tagline {
        margin-bottom: 35px;
    }
    
    .description {
        margin-bottom: 45px;
    }
    
    .exclusive-message p {
        font-size: 0.95rem;
        line-height: 1.55;
        letter-spacing: 0.8px;
    }
    
    .waitlist-btn {
        padding: 14px 25px;
        font-size: 0.85rem;
        letter-spacing: 1.2px;
        gap: 10px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 0.85rem;
        letter-spacing: 1.2px;
        gap: 10px;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
    
    .small-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
        line-height: 1.3;
    }
    
    .modal {
        padding: 25px 15px;
        margin: 15px;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        font-size: 1.6rem;
        letter-spacing: 1.2px;
    }
    
    .modal-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .motivation-input {
        min-height: 90px;
        font-size: 1.1rem;
        line-height: 1.4;
        padding: 16px 20px;
    }
    
    .char-counter {
        font-size: 0.85rem;
        margin-top: -8px;
    }
    
    .email-input {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 1rem;
        letter-spacing: 1.3px;
    }
    
    .privacy-text {
        font-size: 0.9rem;
        margin-top: 20px;
        line-height: 1.4;
    }
    
    .vintage-background {
        opacity: 0.04;
    }
}

/* Mobile Extra Small (320px e sotto) */
@media (max-width: 320px) {
    .main-phrase,
    .sub-phrase {
        font-size: 1.5rem;
        line-height: 1.55;
        letter-spacing: 0.3px;
    }
    
    .description p {
        font-size: 1.1rem;
        line-height: 1.85;
    }
    
    .logo {
        width: 55px;
        height: 77px;
    }
    
    .logo-name {
        width: 75px;
    }
    
    .logo-name-container {
        margin-bottom: 60px;
    }
    
    .container {
        padding: 18px 10px;
    }
    
    .exclusive-message p {
        font-size: 0.9rem;
        line-height: 1.6;
        letter-spacing: 0.6px;
        padding: 0 2px;
    }
    
    .waitlist-btn {
        padding: 13px 22px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .submit-btn {
        padding: 13px 22px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .small-text {
        font-size: 0.8rem;
        letter-spacing: 0.8px;
    }
    
    .vintage-background {
        opacity: 0.03;
    }
}

/* Ottimizzazioni specifiche per mobile e touch */

/* Miglioramento dell'area di touch per i pulsanti */
@media (max-width: 768px) {
    .waitlist-btn {
        min-height: 48px; /* Area di touch ottimale secondo le linee guida */
        touch-action: manipulation; /* Previene zoom accidentali */
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
    
    .submit-btn {
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
    
    /* Miglioramento scrolling per modal mobile */
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        justify-content: center;
    }
    
    .modal {
        margin-top: 20px;
        margin-bottom: 20px;
        overflow-y: auto;
    }
    
    /* Ottimizzazione scroll e viewport su mobile */
    .container {
        /* Migliora il comportamento su Safari iOS */
        -webkit-overflow-scrolling: touch;
        /* Assicura che il contenuto sia sempre visibile */
        min-height: -webkit-fill-available;
        min-height: fill-available;
    }
    
    /* Gestione elegante dell'orientamento */
    .tagline {
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .description p {
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    /* Ottimizzazione particelle per mobile */
    .golden-particle {
        animation-duration: 8s; /* Rallenta leggermente le animazioni */
    }
}

/* Orientamento landscape su mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 15px 20px;
        justify-content: flex-start;
        padding-top: 10px;
    }
    
    .logo-name-container {
        margin-bottom: 40px;
    }
    
    .tagline {
        margin-bottom: 25px;
    }
    
    .description {
        margin-bottom: 30px;
    }
    
    .main-phrase,
    .sub-phrase {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .description p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .logo {
        width: 50px;
        height: 70px;
    }
    
    .logo-name {
        width: 70px;
    }
}

/* Smooth entrance animation - ottimizzata per prevenire flickering */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animazioni di entrata specifiche per sezione per evitare conflitti */
.hero {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.cta-section {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    /* Rimuove animazioni multiple che causano flickering */
    will-change: auto;
}

/* Checkbox Group Styles - Responsive */
@media (max-width: 768px) {
    .checkbox-group {
        gap: 12px;
        margin: 20px 0;
    }
    
    .checkbox-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .checkbox-custom {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }
    
    .checkbox-custom::after {
        top: 1px;
        left: 5px;
        width: 3px;
        height: 7px;
    }
}

/* Disclaimer Styles - Responsive */
@media (max-width: 768px) {
    .disclaimer {
        padding: 15px;
        margin: 15px 0;
    }
    
    .disclaimer p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}
