* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: none !important; /* Nasconde il cursore default su tutti gli elementi */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    overflow-x: hidden !important;
    height: 100vh;
    background-color: #fffaef;
}

/* Cursore personalizzato con mandarino */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease-out;
    display: none; /* Nascosto di default, mostrato solo su desktop */
}

@media (min-width: 969px) {
    .custom-cursor {
        display: block;
    }
}

.custom-cursor .cursor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
}

/* Animazione quando passa sopra elementi interattivi */
.custom-cursor.hover-active .cursor-image {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.3));
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fffaef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out;
}

.loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 280px;
    height: auto;
    margin-bottom: 40px;
    filter: invert(0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

html {
    overflow-x: hidden !important;
}

/* Container principale */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Mandarino/Cerchio interattivo */
.mandarin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

.mandarin-button.hide {
    display: none;
}

.mandarin-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.6s ease;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    opacity: 0;
}

.mandarin-button:active .mandarin-image {
    transform: scale(0.95);
}

/* Effetto glow - rimosso */
.glow-effect {
    display: none;
}

/* Testo circolare animato */
.circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    pointer-events: none;
    overflow: visible;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.rotating-text {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: gentleBounce 4s ease-in-out infinite;
}

.circular-letter {
    fill: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Content wrapper */
.content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container video/prodotto */
.video-product-container {
    position: relative;
    width: 60%; /* Dimensione originale del video */
    max-width: 800px;
    height: auto;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-product-container.shift-left {
    transform: translateX(-40%); /* Solo traslazione, niente scale */
}

#transitionVideo {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

#transitionVideo.hide {
    opacity: 0;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.35); /* Leggermente più grande del video */
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out; /* Transizione più morbida */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

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


/* Controlli prodotto */
.product-controls {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out;
}

.product-controls.show {
    opacity: 1;
    visibility: visible;
}

/* Indicatore scroll - nascosto su desktop */
.scroll-indicator {
    display: none;
}

.product-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0.9;
}

.product-title {
    font-size: 2rem;
    font-weight: 300;
    color: #2c2c2c;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-align: center;
    width: 100%;
}

.product-tagline {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 30px;
    font-style: italic;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* Stili per entrambe le tagline */
.mobile-tagline {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 30px;
    font-style: italic;
    text-align: center;
    width: 100%;
    max-width: 400px;
    display: none;
}

.desktop-tagline {
    display: block;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 200;
    color: #ff6b35;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* Selettore taglie */
.size-selector {
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-label {
    display: block;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.size-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.size-btn {
    flex: 1;
    min-width: 0;
    height: 45px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    color: #2c2c2c;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.size-btn:hover {
    border-color: #ff6b35;
    background-color: #fff5f0;
}

.size-btn.active {
    background-color: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.size-btn.unavailable {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.size-btn.unavailable:hover {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ddd;
}

/* Pulsante aggiungi al carrello */
.add-to-cart {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background-color: #2c2c2c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 20px auto;
    letter-spacing: 0.5px;
}

.add-to-cart:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Info spedizioni */
.shipping-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px auto;
    padding: 12px 20px;
    background-color: rgba(255, 107, 53, 0.08);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #ff6b35;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.shipping-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Dettagli prodotto */
.product-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 400px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-size: 0.9rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.9rem;
    color: #2c2c2c;
}

/* Brand mark */
.brand-mark {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #cccccc;
    text-align: center;
}

/* Animazioni per apparizione elementi */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Mobile-specific elements - nascosti su desktop */
.desktop-only {
    display: flex;
}

.mobile-image-carousel {
    display: none;
}

/* Sezione testo poetico su desktop */
.poetic-text-section {
    display: none; /* Nascosta di default, gestita diversamente su desktop e mobile */
}

/* Desktop: testo poetico su hover dell'immagine */
@media (min-width: 969px) {
    #poeticTextSection {
        display: none;
    }
    
    /* Rimuovo tutto l'overlay hover */
}

/* ========== RESPONSIVE -  PER MOBILE ========== */
@media (max-width: 968px) {
    /* Nascondi/mostra elementi appropriati */
    .desktop-only {
        display: none !important;
    }
    
    /* Mostra tagline mobile, nascondi desktop */
    .mobile-tagline {
        display: block !important;
    }
    
    .desktop-tagline {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .mobile-image-carousel {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out 0.6s;
    }
    
    .video-product-container.shift-left .mobile-image-carousel {
        opacity: 1;
        visibility: visible;
    }
    
    .main-container {
        scroll-snap-type: y mandatory;
        overflow: hidden !important;
        height: 100vh;
        scroll-behavior: smooth;
        touch-action: none;
        display: block; 
    }
    
    /* Abilita scroll quando pronto */
    .main-container.scroll-enabled {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        touch-action: pan-y; /* PERMETTI SOLO SCROLL VERTICALE QUI */
    }
    
    .content-wrapper {
        display: block; 
        height: auto; 
        width: 100%;
        overflow: visible;
        padding: 0;
    }
    
    .video-product-container {
        position: relative;
        width: 100%;
        height: 100vh; 
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: start; 
        transform: none !important; 
    }
    
    .video-product-container #transitionVideo {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.5);
        object-fit: contain;
    }
    
    .video-product-container .product-image {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(2) !important; /* Immagine più grande su mobile */
        object-fit: contain;
    }
    
    /* Indicatore scroll mobile */
    .scroll-indicator {
        display: block;
        position: absolute;
        bottom: 13%; /* Ridotto dal 20% al 13% per più spazio */
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.6s ease-out;
    }
    
    .scroll-indicator.show {
        opacity: 1;
        visibility: visible;
        animation: fadeInOut 3s ease-in-out infinite;
    }
    
    .scroll-text {
        display: block;
        font-size: 14px;
        color: #2c2c2c;
        margin-bottom: 10px;
        font-weight: 300;
        letter-spacing: 0.5px;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
        margin: 0 auto;
        border-right: 2px solid #ff6b35;
        border-bottom: 2px solid #ff6b35;
        transform: rotate(45deg);
        animation: bounce 2s infinite;
    }
    
    @keyframes fadeInOut {
        0%, 100% {
            opacity: 0.4;
        }
        50% {
            opacity: 1;
        }
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: rotate(45deg) translateY(0);
        }
        40% {
            transform: rotate(45deg) translateY(5px);
        }
        60% {
            transform: rotate(45deg) translateY(3px);
        }
    }
    
    .product-controls {
        position: relative;
        width: 100vw;
        height: auto; 
        min-height: 100vh;
        scroll-snap-align: start; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        text-align: center;
        background-color: #fffaef;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        transform: none;
        opacity: 0; 
        visibility: hidden;
    }
    
    .product-controls.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.6s ease;
    }
    
    .product-title {
        font-size: 1.6rem;
        margin-top: 3vh;
    }
    
    /* Sezione testo poetico - solo mobile */
    .poetic-text-section {
        display: flex;
        position: relative;
        width: 100vw;
        min-height: 100vh;
        scroll-snap-align: start;
        align-items: center;
        justify-content: center;
        padding: 60px 30px;
        background: linear-gradient(180deg, #fffaef 0%, rgba(255, 250, 239, 0.95) 100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .poetic-text-section.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.8s ease-out;
    }
    
    .poetic-text-content {
        text-align: center;
        max-width: 380px;
    }
    
    .poetic-title {
        font-size: 2rem;
        font-weight: 300;
        color: #2c2c2c;
        margin-bottom: 40px;
        letter-spacing: -0.5px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 1s ease-out 0.3s forwards;
    }
    
    .poetic-paragraph {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #666666;
        margin-bottom: 30px;
        font-style: italic;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .poetic-paragraph:nth-child(2) {
        animation: fadeInUp 1s ease-out 0.6s forwards;
    }
    
    .poetic-paragraph:nth-child(3) {
        animation: fadeInUp 1s ease-out 0.9s forwards;
        font-size: 1rem;
        font-weight: 500;
        font-style: normal;
        margin-bottom: 20px;
    }
    
    .poetic-paragraph:nth-child(4) {
        animation: fadeInUp 1s ease-out 1.2s forwards;
        font-size: 1rem;
        color: #ff6b35;
        font-style: normal;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
}