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

body {
    background-color: rgb(255,249,213);
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    color: #1a1105;
}

.contenitore-eroe {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #2b1f13;
}

.input-nascosto {
    display: none;
}

.immagine-sfondo {
    position: absolute;
    inset: 0;
    background: url('../assets/multistagione.jpg') center/cover no-repeat;
    z-index: 1;
    clip-path: circle(5% at 50% 50%);
    animation: ingresso-essenza 1.6s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes ingresso-essenza {
    0% { clip-path: circle(5% at 50% 50%); transform: scale(1.05); filter: blur(20px); opacity: 0; }
    50% { opacity: 1; filter: blur(5px); }
    100% { clip-path: circle(150% at 50% 50%); transform: scale(1); filter: blur(0px); opacity: 1; }
}

.quadrante {
    position: absolute;
    width: 25%;
    height: 100%;
    z-index: 10;
}

.quadrante-primavera { top: 0; left: 0; }
.quadrante-estate { top: 0; left: 25%; }
.quadrante-autunno { top: 0; left: 50%; }
.quadrante-inverno { top: 0; left: 75%; }

.selettore-mobile {
    display: none;
}

.quadrante-centrale {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20vw;
    height: 20vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    z-index: 15;
    background: transparent;
}

.immagine-rivelata {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 5;
    pointer-events: none;
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-primavera {
    background-image: url('../assets/primavera.jpg');
    clip-path: polygon(0 0, 0 0, 0 0);
}

.img-estate {
    background-image: url('../assets/estate.jpg');
    clip-path: polygon(100% 0, 100% 0, 100% 0);
}

.img-autunno {
    background-image: url('../assets/autunno.jpg');
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
}

.img-inverno {
    background-image: url('../assets/inverno.jpg');
    clip-path: polygon(0 100%, 0 100%, 0 100%);
}

#hover-primavera:checked ~ .img-primavera { clip-path: polygon(0 0, 200% 0, 0 200%); z-index: 6; }
#hover-estate:checked ~ .img-estate { clip-path: polygon(100% 0, 100% 200%, -100% 0); z-index: 6; }
#hover-autunno:checked ~ .img-autunno { clip-path: polygon(100% 100%, -100% 100%, 100% -100%); z-index: 6; }
#hover-inverno:checked ~ .img-inverno { clip-path: polygon(0 100%, 200% 100%, 0 -100%); z-index: 6; }

.etichetta-titolo {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%) translateX(-40px);
    font-size: 8vw;
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.7);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), -webkit-text-stroke 0.6s ease;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#hover-primavera:checked ~ .img-primavera .etichetta-titolo,
#hover-estate:checked ~ .img-estate .etichetta-titolo,
#hover-autunno:checked ~ .img-autunno .etichetta-titolo,
#hover-inverno:checked ~ .img-inverno .etichetta-titolo {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    color: rgba(255,255,255,0.95);
    -webkit-text-stroke: 0px rgba(255,255,255,0);
    transition-delay: 0.3s;
}

.indicatore-scorrimento {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 30;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    animation: rimbalzo 2s infinite;
}

.indicatore-scorrimento span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.freccia-giu {
    width: 16px;
    height: 16px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

@keyframes rimbalzo {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -7px); }
}

.sezione-acquisto {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #2b1f13 0%, rgb(243,145,0) 25%, rgb(255,249,213) 40%, rgb(255,249,213) 100%);
    padding: 80px 20px;
    z-index: 20;
}

.contenitore-creativo {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, rgb(255,249,213) 0%, rgba(255,249,213,0.85) 100%);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(243,145,0,0.15);
}

.colonna-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, rgb(255,168,0) 0%, rgb(248,153,12) 50%, rgb(243,145,0) 100%);
    color: #fff;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.pattern-decorativo {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
    border-radius: 50%;
}

.colonna-info h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    z-index: 2;
    color: rgb(255,249,213);
}

.colonna-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
    z-index: 2;
    max-width: 90%;
}

.colonna-form {
    flex: 1.2;
    min-width: 350px;
    padding: 80px 60px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titolo-form {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.riga-input {
    display: flex;
    gap: 30px;
}

.riga-input .gruppo-input-lineare {
    flex: 1;
}

.gruppo-input-lineare {
    position: relative;
    margin-bottom: 35px;
}

.gruppo-input-lineare input, .gruppo-input-lineare select {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    border: none;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.gruppo-input-lineare label {
    position: absolute;
    top: 14px;
    left: 0;
    font-size: 1.05rem;
    color: rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.gruppo-input-lineare input:focus ~ label,
.gruppo-input-lineare input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 0.85rem;
    color: rgb(243,145,0);
    font-weight: 600;
}

.gruppo-input-lineare input:focus, .gruppo-input-lineare select:focus {
    border-bottom-color: rgb(243,145,0);
}

.gruppo-input-lineare.select-lineare {
    margin-bottom: 45px;
}

.label-statica {
    display: block;
    font-size: 0.85rem;
    color: rgb(243,145,0);
    margin-bottom: 5px;
    font-weight: 600;
    position: static !important;
}

.select-lineare select {
    padding-top: 5px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231a1a1a" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0px center;
}

.bottone-elegante {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 10px;
    width: 100%;
}

.bottone-elegante svg {
    transition: transform 0.3s ease;
}

.bottone-elegante:hover {
    background: rgb(244,153,24);
    border-color: rgb(244,153,24);
}

.bottone-elegante:hover svg {
    transform: translateX(6px);
}

@media (max-width: 900px) {
    .contenitore-eroe {
        height: 100vh;
        display: flex;
        flex-direction: column;
        background-color: #2b1f13;
    }

    .immagine-sfondo, .quadrante, .quadrante-centrale, .selettore-mobile {
        display: none !important;
    }

    .immagine-rivelata {
        position: relative;
        flex: 1;
        width: 100%;
        opacity: 1 !important;
        clip-path: none !important;
        transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
        cursor: pointer;
        z-index: 1 !important;
        inset: auto !important;
        pointer-events: auto;
    }

    .immagine-rivelata:not(:last-child) {
        border-bottom: 2px solid rgba(255,255,255,0.15);
    }
    #hover-primavera:checked ~ .img-primavera,
    #hover-estate:checked ~ .img-estate,
    #hover-autunno:checked ~ .img-autunno,
    #hover-inverno:checked ~ .img-inverno {
        flex: 5;
        z-index: 2 !important;
    }
    .etichetta-titolo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2.2rem;
        text-align: center;
        width: 100%;
        color: rgba(255, 255, 255, 0.8);
        -webkit-text-stroke: 0;
        text-shadow: 0 5px 15px rgba(0,0,0,0.8);
        transition: all 0.5s ease;
        letter-spacing: 2px;
        opacity: 1 !important;
    }

    #hover-primavera:checked ~ .img-primavera .etichetta-titolo,
    #hover-estate:checked ~ .img-estate .etichetta-titolo,
    #hover-autunno:checked ~ .img-autunno .etichetta-titolo,
    #hover-inverno:checked ~ .img-inverno .etichetta-titolo {
        transform: translate(-50%, -50%) scale(1.3);
        color: #ffffff;
        font-weight: 800;
        text-shadow: 0 5px 30px rgba(0,0,0,0.9);
        letter-spacing: 4px;
    }
    .indicatore-scorrimento {
        bottom: 10px;
        transform: translateX(-50%) scale(0.85);
        color: white;
    }

    .contenitore-creativo {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .colonna-info {
        padding: 50px 30px;
        text-align: center;
        min-height: 300px;
    }
    
    .pattern-decorativo {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 150px;
        height: 150px;
    }

    .colonna-form {
        padding: 50px 30px;
    }

    .riga-input {
        flex-direction: column;
        gap: 0;
    }
    
    .colonna-info h2 {
        font-size: 2.8rem;
    }

    .colonna-info p {
        max-width: 100%;
        font-size: 1.05rem;
    }
    
    .titolo-form {
        font-size: 1.5rem;
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .colonna-info h2 {
        font-size: 2.2rem;
    }
    .colonna-form {
        padding: 40px 20px;
    }
    .bottone-elegante {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}
