﻿/* Schermi grandi o ad alta risoluzione */
@media screen and (min-width: 1690px) {
    .header-main {
        display: grid;
        grid-template-columns: 10rem auto 18rem 5rem 5rem;
        height: 5rem;
        width: 100%;
        gap: 0.5rem;
        z-index: 1;
        background: #059;
        background: linear-gradient(323deg,rgba(0, 85, 153, 1) 0%, rgba(2, 149, 236, 1) 100%);
        grid-area: head;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        padding: 0.4rem;
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 0;
    }

        .header-logo img {
            height: 3.5rem;
            width: 9rem;
            cursor: pointer;
        }

    .header-parts {
        display: flex;
        flex-direction: row;
        gap: 1.3rem;
        align-items: center;
        justify-content: end;
        order: 1;
    }

    .header-options {
        display: flex;
        flex-direction: row;
        gap: 1.3rem;
        align-items: center;
        justify-content: center;
        order: 2;
    }

        .header-parts > div,
        .header-options > div {
            display: flex;
            height: 4rem;
            width: 10rem;
            text-align: center;
            align-items: center;
            justify-content: center;
        }

        .header-parts > div a,
        .header-options > div a {
            font-family: var(--fuenteLight);
            font-size: 0.9rem;
            color: var(--colorWhite);
            text-decoration: none;
            
        }

    .header-burger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        order: 4;
    }

    .header-buy {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 5rem;
        width: 5rem;
        order: 3;
    }

        .header-buy img {
            height: 2.5rem;
            width: 2.5rem;
        }

        .header-buy > div {
            display: block;
            position: relative;
            top: 0.9rem;
            right: 0.5rem;
            height: 1.5rem;
            width: 1.5rem;
            background-color: var(--color3);
            z-index: 10;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            -o-border-radius: 50%;
            border-radius: 50%;
        }

            .header-buy > div span {
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: var(--fuente);
                font-size: 1rem;
                color: var(--colorWhite);
            }

}

/* Schermi Desktop o Portatili */
@media screen and (min-width: 1280px) and (max-width: 1689px) {
    .header-main {
        display: grid;
        grid-template-columns: 10rem auto 18rem 5rem 5rem;
        height: 5rem;
        width: 100%;
        gap: 0.5rem;
        z-index: 1;
        background: #059;
        background: linear-gradient(323deg,rgba(0, 85, 153, 1) 0%, rgba(2, 149, 236, 1) 100%);
        grid-area: head;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        padding: 0.4rem;
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 0;
    }

        .header-logo img {
            height: 3.5rem;
            width: 9rem;
            cursor: pointer;
        }

    .header-parts {
        display: flex;
        flex-direction: row;
        gap: 1.3rem;
        align-items: center;
        justify-content: end;
        order: 1;
    }

    .header-options {
        display: flex;
        flex-direction: row;
        gap: 1.3rem;
        align-items: center;
        justify-content: center;
        order: 2;
    }

        .header-parts > div,
        .header-options > div {
            display: flex;
            height: 4rem;
            width: 10rem;
            text-align: center;
            align-items: center;
            justify-content: center;
        }

            .header-parts > div a,
            .header-options > div a {
                font-family: var(--fuenteLight);
                font-size: 0.9rem;
                color: var(--colorWhite);
                text-decoration: none;
            }

    .header-burger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        order: 4;
    }

    .header-buy {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 5rem;
        width: 5rem;
        order: 3;
    }

        .header-buy img {
            height: 2.5rem;
            width: 2.5rem;
        }

        .header-buy > div {
            display: block;
            position: relative;
            top: 0.9rem;
            right: 0.5rem;
            height: 1.5rem;
            width: 1.5rem;
            background-color: var(--color3);
            z-index: 10;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            -o-border-radius: 50%;
            border-radius: 50%;
        }

            .header-buy > div span {
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: var(--fuente);
                font-size: 1rem;
                color: var(--colorWhite);
            }
   
}

/* Tablet in modalità horizontal */
@media screen and (min-width: 737px) and (max-width: 1279px) {
    .header-main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: 9rem;
        width: 100%;
        gap: 0.3rem;
        z-index: 1;
        background: #059;
        background: linear-gradient(323deg,rgba(0, 85, 153, 1) 0%, rgba(2, 149, 236, 1) 100%);
        grid-area: head;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        padding: 0.4rem;
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        order: 0;
    }

        .header-logo img {
            height: 2.5rem;
            width: 7rem;
            cursor: pointer;
        }

    .header-parts {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: calc(1fr / 3);
        height: 2.5rem;
        grid-column-start: span 3;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-options {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        width: calc(1fr / 3);
        height: 2.5rem;
        grid-column-start: span 3;
        align-items: center;
        justify-content: center;
        order: 4;
    }

        .header-parts > div,
        .header-options > div {
            display: flex;
            height: 100%;
            width: 100%;
            text-align: center;
            align-items: center;
            justify-content: center;
        }

            .header-parts > div a,
            .header-options > div a {
                font-family: var(--fuenteLight);
                font-size: 0.7rem;
                color: var(--colorWhite);
                text-decoration: none;
            }

    .header-burger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        gap: 1.5rem;
        order: 2;
    }

    .header-buy {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        order: 1;
    }

        .header-buy img {
            height: 2.5rem;
            width: 2.5rem;
        }

        .header-buy > div {
            display: block;
            position: relative;
            top: 0.9rem;
            right: 0.5rem;
            height: 1.5rem;
            width: 1.5rem;
            background-color: var(--color3);
            z-index: 10;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            -o-border-radius: 50%;
            border-radius: 50%;
        }

            .header-buy > div span {
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: var(--fuente);
                font-size: 1rem;
                color: var(--colorWhite);
            }
}

/* Tablet in modalità verticale */
@media screen and (min-width: 481px) and (max-width: 736px) {
    .header-main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: 9rem;
        width: 100%;
        gap: 0.3rem;
        z-index: 1;
        background: #059;
        background: linear-gradient(323deg,rgba(0, 85, 153, 1) 0%, rgba(2, 149, 236, 1) 100%);
        grid-area: head;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        padding: 0.4rem;
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        order: 0;
    }

        .header-logo img {
            height: 2.5rem;
            width: 7rem;
            cursor: pointer;
        }

    .header-parts {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: calc(1fr / 3);
        height: 2.5rem;
        grid-column-start: span 3;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-options {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: calc(1fr / 3);
        height: 2.5rem;
        grid-column-start: span 3;
        align-items: center;
        justify-content: center;
        order: 4;
    }

        .header-parts > div,
        .header-options > div {
            display: flex;
            height: 100%;
            width: 100%;
            text-align: center;
            align-items: center;
            justify-content: center;
        }

            .header-parts > div a,
            .header-options > div a {
                font-family: var(--fuenteLight);
                font-size: 0.7rem;
                color: var(--colorWhite);
                text-decoration: none;
            }

    .header-burger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        gap: 1.5rem;
        order: 2;
    }

    .header-buy {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        order: 1;
    }

        .header-buy img {
            height: 2.5rem;
            width: 2.5rem;
        }

        .header-buy > div {
            display: block;
            position: relative;
            top: 0.9rem;
            right: 0.5rem;
            height: 1.5rem;
            width: 1.5rem;
            background-color: var(--color3);
            z-index: 10;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            -o-border-radius: 50%;
            border-radius: 50%;
        }

            .header-buy > div span {
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: var(--fuente);
                font-size: 1rem;
                color: var(--colorWhite);
            }
}

/* Smartphone o piccoli Tablet */
@media screen and (max-width: 480px) {
    .header-main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: 9rem;
        width: 100%;
        gap: 0.3rem;
        z-index: 1;
        background: #059;
        background: linear-gradient(323deg,rgba(0, 85, 153, 1) 0%, rgba(2, 149, 236, 1) 100%);
        grid-area: head;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
        padding: 0.4rem;
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        order: 0;
    }

        .header-logo img {
            height: 2.5rem;
            width: 7rem;
            cursor: pointer;
        }

    .header-parts {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: calc(1fr / 3);
        height: 2.5rem;
        grid-column-start: span 3;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-options {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        width: calc(1fr / 3);
        height: 2.5rem;
        grid-column-start: span 3;
        align-items: center;
        justify-content: center;
        order: 4;
    }

        .header-parts > div,
        .header-options > div {
            display: flex;
            height: 100%;
            width: 100%;
            text-align: center;
            align-items: center;
            justify-content: center;
        }

            .header-parts > div a,
            .header-options > div a {
                font-family: var(--fuenteLight);
                font-size: 0.7rem;
                color: var(--colorWhite);
                text-decoration: none;
            }

    .header-burger {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        gap: 1.5rem;
        order: 2;
    }

    .header-buy {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: calc(1fr / 3);
        grid-column-start: span 1;
        order: 1;
    }

        .header-buy img {
            height: 2.5rem;
            width: 2.5rem;
        }

        .header-buy > div {
            display: block;
            position: relative;
            top: 0.9rem;
            right: 0.5rem;
            height: 1.5rem;
            width: 1.5rem;
            background-color: var(--color3);
            z-index: 10;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            -o-border-radius: 50%;
            border-radius: 50%;
        }

            .header-buy > div span {
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: var(--fuente);
                font-size: 1rem;
                color: var(--colorWhite);
            }
}
