@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;500;600;700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400&display=swap');

:root {
    font-size: 18px;
    --text-color: #1d1d1d;
    --bg-primary: rgb(255, 255, 255);
    --bg-secondary: #e41818;
    /*--text-color: white;
    --bg-primary: #2f3136;
    --bg-secondary: #202225;*/
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    color: var(--text-color);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Source Sans Pro', sans-serif;
}

body::-webkit-scrollbar {
    width: 0.25rem;
}

body::-webkit-scrollbar-track {
    background: rgb(255, 255, 255)
}

body::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
}

h1 {
    font-size: 3rem;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    text-align: center;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 2rem;
    font-size: 2rem;
    text-align: center;
}

p {
    font-size: 1.2rem;
    font-weight: 200;
    text-align: justify;
}

.color-red {
    color: var(--bg-secondary);
}

.blur {
    filter: blur(32px);
}

.greyscale {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

#load-screen {
    position: fixed;
    z-index: 9999999;
    height: 100vh;
    width: 100%;
    background-color: var(--bg-secondary);
    opacity: 1;
    transition: 500ms;
}

.loader-white {
    border: 0.5rem solid #f3f3f36e;
    border-radius: 50%;
    border-top: 0.5rem solid #ffffff;
    width: 4rem;
    height: 4rem;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.center-v-h {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg) translate(-50%, -50%);
    }

    100% {
        -webkit-transform: rotate(360deg) translate(-50%, -50%);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



#Error-PopUp-overlay {
    position: fixed;
    text-align: center !important;
    top: 0;
    transform: translateY(-100%);
    font-family: 'Raleway', sans-serif;
    height: 100%;
    width: 100%;
    background-color: #a81111a6;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: 700ms;
    z-index: 999999999999999999999;
}

#Error-PopUp-overlay p {
    text-align: center !important;
}

#Error-PopUp-overlay button {
    font-size: 1.2rem !important;
    background-color: transparent;
    color: white;
    display: block;
    border: 3px solid white;
    height: 3rem;
    padding: 0 6rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 200ms;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    margin: auto;
}

#Error-PopUp-overlay button:hover {
    background-color: white;
    color: black;
}




#nav-bar {
    position: fixed;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 60px;
    border: none;
    opacity: 1;
    transition: 700ms;
}

.nav-bar-bg {
    position: fixed;
    top: 0;
    width: 100%;
    border: none;
    z-index: 1000;
    background-color: #ff0000;
    overflow: hidden;
    height: 0px;
    transition: 700ms;
    will-change: height;
}

.HideNav {
    height: 0px;
}

.ShowNav {
    height: 60px;
}

#ExtendNav {
    height: 100%;
}

.navbar-title {
    display: block;
    color: var(--bg-primary);
    font-size: 2rem;
    font-family: 'Raleway', sans-serif;
    transition: 700ms;
    width: fit-content;
    opacity: 0;
}


#nav-bar a:hover {
    color: #bbbbbb;
}

#nav-section {
    position: absolute;
    top: 60px;
    height: calc(100vh - 60px);
    width: 100%;
    background-color: #ffffff;
    z-index: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-banner {
    height: 100%;
    transition: 200ms;
}

.nav-banner:hover {
    z-index: 1000000000;
    transform: scale(1.2);
}

.white-alpha {
    width: 100%;
    height: 100%;
    transition: 200ms;
    color: black;
    mix-blend-mode: screen;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background-color: rgba(255, 0, 0, 0.192);
}

.white-alpha:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.white-alpha:hover {
    background-color: rgba(255, 255, 255, 0.836);
}


.nav-text {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    margin: 0;
    color: white;
}

.white-alpha:hover .nav-text {
    color: black;
}

.centered-text {
    display: inline-block;
    vertical-align: middle;
}


.burger-container {
    top: 10px;
    left: 20px;
    display: inline-block;
    position: fixed;
    cursor: pointer;
    z-index: 100000;
}

.bar1,
.bar2,
.bar3 {
    width: 35px;
    height: 2px;
    background-color: var(--bg-primary);
    margin: 9px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

#account-button {
    top: 6px;
    right: 10px;
    position: fixed;
    z-index: 100000;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 25px;
    border: 2px solid var(--bg-primary);
    overflow: hidden;
    height: 2.4rem;
    width: fit-content;
    cursor: pointer;
    transition: 400ms;
}

#account-button:hover {
    cursor: default;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
}

#account-button:hover #login-info {
    margin-top: 0.2rem;
    transform: translateX(-43%);
}

#login-info {
    height: 2.4rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: 400ms;
}

#login-info span {
    margin: 0.5rem 1rem;
}

#account-icon {
    background-color: var(--bg-secondary);
    color: white;
    border-radius: 100px;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--bg-secondary);
}

#login-form {
    display: none;
}

#info-tab {
    display: none;
}

#info-tab hr {
    width: 80%;
    margin: 0.5rem auto;
}

#info-tab p {
    text-align: left;
    margin: 0.5rem auto;
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#info-tab span {
    font-weight: 400;
}

#info-tab button {
    width: 50%;
    background-color: var(--bg-secondary);
    color: white;
    display: block;
    padding: 10px 15px;
    border: none;
    margin: auto;
    margin-top: 1rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 200ms;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
}

#info-tab button:hover {
    width: 60%;
    background-color: #c91919;
}

#info-tab a {
    font-size: 2rem;
    transition: 200ms;
    cursor: pointer;
}

#info-tab a:hover {
    color: #e41818;
}

#qrcontainer {
    margin: 0.7rem auto;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#main-logo {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    z-index: 1;
    transition: 1000ms;
    opacity: 0;
}


#main-div {
    position: relative;
    width: 100%;
    height: 100%;
    /* Set the height to match that of the viewport. */
    height: 100vh;
    overflow: hidden;
    /* Set the width to match that of the viewport. */
    margin: 0;
}

#main-bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    /* Set the height to match that of the viewport. */
    height: 100vh;
    /* Set the width to match that of the viewport. */
    margin: 0;
    background-image: url("../Immagini/BG-2-dark.jpg");
    background-position: 50% 10%;
    transition: 2000ms;
    z-index: -1;
    transform: scale(1.3);
}

#scorri-container {
    display: flex;
    width: 70%;
    height: 100%;
    margin: auto;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-end;
    transition: 300ms;
}

#scorri-container h3 {
    padding: 0 0 2rem 1rem;
    font-size: 1.7rem;
    font-weight: 300;
    color: white;
    border-left: 2px solid white;
    vertical-align: text-top;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.row {
    width: 100%;
    /* Set the width to match that of the viewport. */
    margin: 0;
    background-color: var(--bg-primary);
    padding: 3.5rem 0;
}

.art {
    width: 70%;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}


.flex-row {
    display: flex;
    flex-direction: row;
    margin: auto;
}

.flex-50 {
    flex: 50%;
    overflow-y: hidden;
}

.flex-33 {
    flex: 33%;
}


.price-cards {
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.price-cards h1 {
    font-family: 'Montserrat', sans-serif;
    padding: 1rem 0;
    font-size: 2.4rem;
    color: white;
    background-color: var(--bg-secondary);
}

.price-cards h2 {
    font-family: 'Montserrat', sans-serif;
    padding-top: 1rem;
    font-size: 2rem;
    margin: 0;
}

.price-cards hr {
    margin: 0;
}

.price-cards a {
    color: #e41818;

}

.price-cards p {
    text-align: center;
    padding: 0 1.2rem;
}

#price-row {
    margin-top: 3.5rem;
    justify-content: center;
}

#first-row {
    padding-bottom: 4rem;
}


form {
    margin-top: 3.7rem;
    margin-left: 5rem;
}

input {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
}

input[type=text],
input[type=email],
input[type=password] {
    width: 80%;
    padding: 12px 20px;
    margin: 0.4rem auto;
    display: block;
    border: 2px solid #ccc;
    border-radius: 40px;
    box-sizing: border-box;
    outline: none;
    transition: 200ms;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus {
    border: 2px solid #838383;
}

input[type=submit] {
    width: 45%;
    background-color: var(--bg-secondary);
    color: white;
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: 200ms;
    border: 2px solid var(--bg-secondary);
}

input[type=submit]:hover {
    background-color: #c91919 !important;
    border: 2px solid #c91919;
    width: 50%;
}

#LoginButtonsDiv {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#LoginSignUpButt {
    background-color: transparent;
    border: 2px solid var(--bg-secondary);
    color: black;
}

#LoginSignUpButt:hover {
    background-color: var(--bg-secondary) !important;
    color: white;
}

#second-row {
    background-image: url("../Immagini/BG-3.jpg");
    color: var(--bg-primary);
}

#cesto {
    display: block;
    max-height: 100%;
    max-width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}



/*Scroll on top button*/
#goto_top_button {
    display: block;
    position: fixed;
    bottom: -100px;
    right: 30px;
    z-index: 99;
    border: 2px solid white;
    outline: none;
    background-color: white;
    cursor: pointer;
    border-radius: 100%;
    text-align: center;
    height: 50px;
    width: 50px;
    overflow-y: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
    transition: 0.4s;
}

#goto_top_button:hover {
    border: 2px solid var(--bg-secondary);
}

.arrow_part {
    border: solid black;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 5px;
    height: auto;
    position: relative;
    margin-top: 18px;
}

#up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}


.card img {
    display: block;
    margin: auto;
    max-width: 100%;
}


#CardsRow {
    margin-top: 4rem !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    align-content: center;

}


.card {
    color: var(--text-color);
    background-color: var(--bg-primary);

    width: 30%;
    height: 100% !important;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.card-bg {
    background-image: url("../Immagini/BG-4.jpg");
    padding: 1rem 0;
}

.card p {
    margin: 2rem;
}

.card-text {
    color: black;
    font-weight: 300 !important;
}


.attive-button {
    width: 50%;
    background-color: var(--bg-secondary);
    color: white;
    display: block;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    margin: auto;
    border-radius: 40px;
    cursor: pointer;
    transition: 200ms;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
}

.attive-button:hover {
    width: 60%;
    background-color: #c91919;
}

.white-button {
    width: 50%;
    background-color: white;
    border: 3px solid #e41818;
    color: black;
    display: block;
    padding: 12px 13px;
    margin: 8px 0;
    box-sizing: border-box;
    margin: auto;
    border-radius: 40px;
    cursor: pointer;
    transition: 200ms;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
}

.white-button:hover {
    width: 60%;
    color: white;
    background-color: #e41818;
}




#prod-art {
    max-width: 100%;
    width: 80%;
}

.prod-card {
    margin: 2.5rem 0;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
}

.prod-card h2 {
    text-align: center;
}

.prod-grid {
    display: grid;
    margin: auto;
    margin: 1rem;
    gap: 1rem 1rem;
}


.prod-grid div img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.prod-grid div {
    overflow: hidden;
    border-radius: 20px;
}



.tile1 {
    grid-area: tile1;
}

.tile2 {
    grid-area: tile2;
}

.tile3 {
    grid-area: tile3;
}

.tile4 {
    grid-area: tile4;
}

.tile5 {
    grid-area: tile5;
}

.tile6 {
    grid-area: tile6;
}

.tile7 {
    grid-area: tile7;
}

.tile8 {
    grid-area: tile8;
}

.tile9 {
    grid-area: tile9;
}

.tile10 {
    grid-area: tile10;
}

.tile11 {
    grid-area: tile11;
}

.tile12 {
    grid-area: tile12;
}





#succhi-grid {
    grid-template-columns: repeat(6, 2fr);
    grid-template-rows: repeat(2, 2fr);
    grid-template-areas:
        "tile1 tile2 tile3 tile4 tile5 tile6"
        "tile7 tile8 tile9 tile10 tile11 tile12";
}

#formaggi-grid {
    grid-template-columns: repeat(4, 2fr);
    grid-template-rows: repeat(1, 2fr);
    grid-template-areas:
        "tile1 tile2 tile3 tile4";
}


#pasta-grid {
    grid-template-columns: repeat(8, 2fr);
    grid-template-rows: repeat(1, 2fr);
    grid-template-areas:
        "tile1 tile2 tile3 tile4 tile5 tile6 tile7 tile8";
}




#footer {
    background-color: var(--bg-secondary);
    text-align: center;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 100;
    font-size: 2.5rem;

    width: 100%;
    /* Set the width to match that of the viewport. */
    margin: 0;
    padding: 2rem 0;
}

.social {
    margin: 0 1rem;
    color: white;
    transition: 200ms;
}

.social:hover {
    color: #bbbbbb;
}


.fa-sign-out-alt {
    transform: translateY(0.1rem);
}










































@media only screen and (max-width: 1280px) {
    :root {
        font-size: 16px;
    }

    .art {
        width: 90%;
        margin: auto;
    }

    .card {
        width: 32%;
    }

    #succhi-grid {
        grid-template-columns: repeat(3, 2fr);
        grid-template-rows: repeat(3, 2fr);
        grid-template-areas:
            "tile1 tile2 tile3"
            "tile5 tile6 tile7"
            "tile9 tile10 tile11";
    }

    #succhi-grid .tile4 {
        display: none;
    }

    #succhi-grid .tile8 {
        display: none;
    }

    #succhi-grid .tile12 {
        display: none;
    }

    #account-button {
        top: 11px;
        right: 10px;
    }
}








@media only screen and (max-width: 1000px) {

    :root {
        font-size: 14px;
    }

    .art {
        width: 85%;
        margin: auto;
    }

    .card {
        margin: 1rem 0;
        width: 100%;
    }

    #GAS_title {
        font-size: 1.9rem;
    }

    .navbar-title {
        display: none;
    }

    .flex-row {
        flex-direction: column;
    }

    #main-bg {
        transform: scale(1);
    }

    #price-row {
        margin-top: 2rem;
    }

    #left-price-card {
        margin: 1rem;
    }

    #left-price-card button {
        width: 70%;
    }

    #left-price-card button:hover {
        width: 80%;
    }


    #right-price-card button {
        width: 70%;
    }

    #right-price-card button:hover {
        width: 80%;
    }

    .price-cards p {
        text-align: center;
        padding: 0 3rem;
    }

    #prod-art {
        max-width: 100%;
    }

    .prod-card {
        margin: 3rem 0.5rem;
    }

    #succhi-grid {
        grid-template-columns: repeat(2, 2fr);
        grid-template-rows: repeat(2, 2fr);
        grid-template-areas:
            "tile1 tile2"
            "tile3 tile4";
    }

    #succhi-grid .tile4 {
        display: block;
    }

    #succhi-grid .tile5 {
        display: none;
    }

    #succhi-grid .tile6 {
        display: none;
    }

    #succhi-grid .tile7 {
        display: none;
    }

    #succhi-grid .tile8 {
        display: none;
    }

    #succhi-grid .tile9 {
        display: none;
    }

    #succhi-grid .tile10 {
        display: none;
    }

    #succhi-grid .tile11 {
        display: none;
    }

    #succhi-grid .tile12 {
        display: none;
    }

    #formaggi-grid {
        grid-template-columns: repeat(2, 2fr);
        grid-template-rows: repeat(2, 2fr);
        grid-template-areas:
            "tile1 tile2"
            "tile3 tile4";
    }

    #pasta-grid {
        grid-template-columns: repeat(4, 2fr);
        grid-template-rows: repeat(2, 2fr);
        grid-template-areas:
            "tile1 tile2 tile3 tile4"
            "tile5 tile6 tile7 tile8";
    }

    .social {
        margin: 0 1rem;
        margin-top: 1rem;
    }

    #qrcontainer {
        margin: 4rem auto;
    }
}