/*Menu*/

body a,
body button,
body #bottone1 {
    cursor: pointer;
}

body strong {
    font-weight: 800;
}

nav {
    display: none;
}

@media only screen and (max-width: 975px) {
    
    
    menu .prodotti{
        margin-left: 20px;
    }
    nav {
        display: block;
        background-color: var(--rosso);
        width: 100%;
        height: 100px;
    }

    nav h1 {
        display: none;
    }

    nav img {
        width: 70px;
        height: 70px;
        position: absolute;
        right: 30px;
        top: -25px;
        z-index: 3;
    }

    nav a,
    nav div {
        text-decoration: none;
        color: white;
        transition: color 0.3s ease;
    }

    nav a:hover {
        color: white;
    }

    nav #menuToggle {
        display: block;
        position: relative;
        top: 38px;
        margin-left: 50px;
        z-index: 1;
        user-select: none;
    }

    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
    }

    #menuToggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: white;
        border-radius: 3px;
        z-index: 2;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
    }

    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    #menuToggle input:checked~span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: white;
    }

    #menuToggle input:checked~span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked~span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menu {
        position: absolute;
        width: calc(100% - 50px);
        margin: -100px 0 0 -50px;
        padding: 50px;
        padding-top: 125px;
        background: var(--rosso);
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    #menu li {
        padding: 10px 0;
        font-size: 22px;
        z-index: 2;
    }

    #menuToggle input:checked~ul {
        transform: none;
    }

    nav .onclick-menu:focus {
        pointer-events: none;
    }

    nav .onclick-menu:focus .onclick-menu-content {
        opacity: 1;
        visibility: visible;
        display: inherit;
        pointer-events: auto;
    }

    nav .onclick-menu-content {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: visibility 0.5s;
    }

    nav .onclick-menu-content li {
        list-style: none;
        margin-left: 30px;
        margin-top: 5px;
    }

    nav .onclick-menu-content li a {
        z-index: 3;
    }
}


header {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    background-color: var(--rosso);
    color: white;
    font-size: 15px;
    z-index: 2;
    position: sticky;
    top: 0;
    -webkit-font-smoothing: antialiased;
}

header div {
    width: 40%;
    display: flex;
    margin-left: 10%;
    align-items: center;
    z-index: 1;
}

header div img {
    height: 80px;
}

header h1 {
    margin-left: 8px;
}

header>ul {
    display: flex;
    flex-direction: row;
    width: 40%;
    margin-right: 10%;
    justify-content: center;
    align-items: center;
    margin-left: 5%;
}

header ul>li {
    width: 25%;
    height: 50px;
}

header ul>li>a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-transform: uppercase;
}

header ul>li a:hover {
    text-decoration: underline;
    background-color: white;
    color: var(--rosso);
}

header .prodotti {
    background-color: var(--rosso);
    flex-direction: column;
    display: none;
}

header .prodotti li {
    width: 100%;
}

header li:hover .prodotti {
    display: flex;
    justify-content: center;
    align-items: center;
}

header div:last-child {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
}

header input {
    display: none;
}

header button:hover {
    cursor: pointer;
}

@media only screen and (max-width: 1500px) {
    header .prodotti {
        width: 150%;
    }
}

@media only screen and (max-width: 975px) {
    header {
        display: none;
    }
}

/* ------------------------------------------------ */
/* Sezione iniziale */

.header_sec {
    height: 640px;
    width: 80%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 45px;
}

.header_sec .circles {
    position: absolute;
    height: 100px;
    width: 320px;
    right: calc(30% - 230px);
    top: calc(60px + 90px);
    display: flex;
    justify-content: space-between;
}

.header_sec .circles img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    z-index: 1;
}

.header_sec #hex {
    display: flex;
    justify-content: end;
    top: 90px;
    right: 0;
    position: absolute;
    width: 100%;
}

.header_sec #hex .rettangolo {
    width: 30%;
    height: 650px;
    background-color: #D22E2D;
}

.header_sec #hex .triangle_sx {
    width: 0;
    height: 0;
    border-top: 325px solid transparent;
    border-bottom: 325px solid transparent;
    border-right: 150px solid #D22E2D;
}

.header_sec #sec_dex {
    width: calc(30% + 100px);
    height: 100px;
    color: white;
    text-align: right;
    right: calc(8%);
    top: calc(120px + 91px + 80px);
    position: absolute;
}

.header_sec #sec_dex p {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.header_sec #sec_dex h1 {
    font-size: 45px;
    font-family: Anton;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.header_sec #sec_dex h1 span {
    font-size: 38px;
}

.header_sec #sec_dex button {
    margin-top: 28px;
    padding: 0 10px;
    text-transform: uppercase;
    height: 40px;
    color: #D22E2D;
    background-color: white;
    font-weight: 800;
    font-size: 18px;
    border: none;
    border-radius: 25px;
}

@media only screen and (max-width: 975px) {
    .header_sec {
        height: 430px;
        width: 100%;
        justify-content: center;
        display: flex;
        margin-bottom: 300px;
    }

    .header_sec #hex {
        flex-direction: column;
    }

    .header_sec #hex .triangle_sx {
        width: 0;
        height: 0;
        border-bottom: 10vh solid #D22E2D;
        border-right: 50vw solid transparent;
        border-left: 50vw solid transparent;
    }

    .header_sec #hex .rettangolo {
        width: 100%;
        height: 320px;
        background-color: #D22E2D;
    }

    .header_sec #sec_dex {
        width: 100%;
        top: calc(355px + 91px + 80px);
        right: 0;
        text-align: center;
    }

    .header_sec .circles {
        height: 100px;
        width: 220px;
        right: 0;
        top: calc(300px + 90px);
        display: flex;
        justify-content: space-around;
    }

    .header_sec .circles img {
        height: 100px;
        width: 100px;
        border-radius: 50%;
        z-index: 1;
    }

    .header_sec .circles img {
        display: none;
    }
}