:root{
    --primary-txt-color: #283618;
    --secondary-txt-color: #384c22;
    --primary-bg-color: #bcf2a4;
    --secondary-bg-color: rgba(65, 113, 43, 0.495);
    --hover-menu: #5c7b3c;
    --primary-button-color: rgb(255, 119, 0);
    --secondary-button-color: rgb(255, 170, 0);
}

html{
    overflow-x: hidden;
}

body{
    margin: 0;
    background-color: var(--primary-bg-color);
    color: var(--primary-txt-color);
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: normal;
    overflow-x: hidden;
    width: 100vw;
}

.vertical-line{
    height: 80%;
    border-radius: 10px;
    width: 3px;
    background-color: var(--primary-bg-color);
    margin: 0 30px;
}

/***  HEADER - MENU  ***/
header{
    width: 100vw;
    background-color: var(--primary-txt-color);
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 999;
}

.menu-logo{
    margin-left: 30px;
    width: 100px;
    display: flex;
}

.menu-container{
    display: flex;
}

.menu-element{
    margin-left:10px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background-color: var(--secondary-bg-color);
    border-radius: 0 20px 0 10px;
    transition: 250ms;
    font-size: 20px;

    font-family: "Poetsen One", serif;
    font-weight: 400;
    font-style: normal;
}

.menu-element:first-child{
    margin-left:0;
}

.menu-element:hover{
    transition: 400ms;
    background-color: var(--hover-menu);
    color: white;
}

#menu-element-selected{
    background-color: var(--hover-menu);
}

.gift-container {
    position: absolute; /* Cambia da absolute a relative */
    right: 80px;
}

.gift-button{
    display: inline-block; 
    background-color: var(--primary-button-color);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 500ms;
    font-size: 25px;
    transition: 400ms;
    width: 120px;
    text-align: center;
}

/* Ingrandisce il bottone quando ci si passa sopra */
.gift-button:hover {
    transition: 500ms;
    color: white;
    background-color: var(--secondary-button-color);
    transform: scale(1.1); /* Scala del 110% */
}

/***  MAIN  ***/
main{
    margin: 130px 5% 50px 5%;
    width: 90%;
    min-height: calc(100vh - 130px - 30px - 50px); /* 100vh - (altezza header) - (altezza footer) - (margine main) */
}

h1{
    font-family: "Poetsen One", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    font-size: 50px;
}

h2{
    font-family: "Poetsen One", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    font-size: 40px;
}

h1, h2, h3{
    text-align: center;
}

p{
    font-size: 20px;
    text-align: center;
}

a{
    color: var(--primary-txt-color);
    transition: 100ms;
}

a:hover{
    transition: 100ms;
    color: var(--primary-bg-color);
    background-color: var(--primary-txt-color);
}

/***  FOOTER  ***/
footer{
    background-color: var(--primary-txt-color);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

footer p{
    margin: 0;
    color: var(--primary-bg-color);
}

footer a{
    color: var(--primary-bg-color);
    transition: 100ms;
}

footer a:hover{
    transition: 100ms;
    color: var(--primary-txt-color);
    background-color: var(--primary-bg-color);
}

.invertOn{
    filter: invert;
}

.invertOff{
    filter: none;
}

@media screen and (max-width: 1111px){
    h1{
        font-size: 35px;
    }
    h2{
        font-size: 25px;
    }
    h3{
        font-size: 20px;
    }

    p{
        font-size: 18px;
    }

    header .vertical-line{
        display: none;
    }

    .menu-logo{
        margin-left: 20px;
    }

    #menu-container{
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100px;
        height: 100vh;
        backdrop-filter: blur(8px);
        width: 100vw;
        align-items: center;
    }

    .menu-element{
        margin: 20px 0;
        text-align: center;
        align-content: center;
        width: 300px;
        height: 50px;
    }

    .menu-element:first-child{
        margin: 20px;
    }

    #burger-menu{
        position: absolute;
        right: 40px;
    }

    #burger-menu{
        cursor: pointer;
    }

    .line-menu{
        display: block;
        width: 60px;
        height: 5px;
        margin: 10px 0;
        border-radius: 10px;
        background-color: var(--primary-bg-color);
    }

    .gift-container{
        margin: 0 calc(50vw - 160px);
    }

    .menuAperto{
        display: block;
        transform: translate(0);
        transition: 300ms ease-out;
    }

    .menuChiuso{
        transition: 500ms ease-out;
        transform: translate(+100vw);
        display: none;
    }

    #span1.burgerAperto{
        transform: rotate(45deg) translate(15px, 5px);
        transition: 500ms;
    }
    
    #span2.burgerAperto{
        opacity: 0; /* Nasconde il secondo span */
        transition: opacity 200ms ease; /* Aggiunge transizione per scomparsa */
    }
    
    #span3.burgerAperto{
        transform: rotate(-45deg) translate(15px, -5px);
        transition: 500ms;
    }

    .burgerChiuso{
        transition: 500ms;
    }
}