@import url('https://fonts.cdnfonts.com/css/elegant-2');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ELEGANT', sans-serif;
    background-color: #745033;
    color: #ffffff;
}

img{
    width: 300px;
    object-fit: cover;
}

.hidden {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity, transform 0.9s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER */

.header {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url("assets/headerImage.jpeg");
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.35)
    );
}

/* NAVBAR */

.navbar {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 90px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 80px;
    z-index: 2;
}

.logo {
    font-family: "Pacifico", cursive;
    font-size: 2rem;
    padding: 10px;
    color: #bdff53;
    justify-self: start;
}

.links-ul,
.connections-ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.links-ul {
    justify-self: center;
}

.connections-ul {
    justify-self: end;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #affa37;
    transform: translateY(-2px);
}

/* HERO CONTENT */

.header-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-content h5 {
    font-size: 1.8rem;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.header-content h1 {
    font-size: 7.5rem;
    margin-bottom: 15px;
}

.header-content p {
    font-family: "Oswald", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 3px;
    opacity: 0.95;
}

/* PRODUCTS */

.container-products {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 90px;
}

.container-products h1 {
    font-size: 3.2rem;
    font-weight: 300;
}

.container-products p {
    font-family: "Oswald", sans-serif;
    letter-spacing: 2px;
    font-size: 1.4rem;
    max-width: 900px;
    margin-top: 20px;
    text-align: center;
}

.cards {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.card{
    width: 480px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.gastronomy-section{
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url("assets/gastronomy-headerImage.jpeg");
    background-size: cover;
    background-position: center;
}

.gastronomy-section-content{
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gastronomy-section-content h1 {
    font-size: 5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.gastronomy-section-content p {
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #ffffff;
    opacity: 0.95;
}

/* GASTRONOMY OVERLAY */

.container-gastronomy{
    padding-top: 80px;
    padding-left: 40px;
    padding-right: 40px;
    background-color: #2E343D;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.container-gastronomy h1 {
    font-size: 3.2rem;
    font-weight: 300;
}

.cards-gastronomy{
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-gastronomy{
    width: 480px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-gastronomy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-gastronomy:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ABOUT */

.container-about {
    padding: 120px 40px;
    background-color: #2E343D;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.container-about h1 {
    font-size: 3.2rem;
    font-weight: 300;
}

.about {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.card-about {
    width: 680px;
    height: 440px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.container-about p {
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    line-height: 1.7;
    max-width: 700px;
}

.reviews {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reviews h1 {
    font-size: 3.2rem;
    font-weight: 300;
}

.reviews p, span{
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-align: center;
}

.review-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.reviews-viewport {
    width: 450px;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.6s ease;
}

.card-review {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

/* FRECCE */
.arrow {
    width: 50px;
    height: 50px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: black solid 1px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1,5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.arrow:hover {
    color: #affa37;
    transform: scale(1.2);
}

.arrow-left {
    position: absolute;
    left: -60px;
}

.arrow-right {
    position: absolute;
    right: -60px;
}

.reviews-container{
    position: relative;
    width: 400px;
    height: auto;
    max-height: 250px;
    border-radius: 20px;
    background-color: white;
    overflow: hidden;
}

.info{
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    color:black;
}

.top{
    padding-top: 15px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stars{
    color: #F6BB06;
    display: flex;
    font-size: 30px;
}

.stars-recensione{
    padding: 0 20px;
    color: #F6BB06;
    display: flex;
    font-size: 20px;
}

.profile-img{
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.review p{
    color: black;
    text-align: left;
    letter-spacing: normal;
    padding: 5px 15px;
}

footer {
    display: flex;
    width: 100%;
    background-color: #1C1F23;
    align-items: top;
    justify-content: space-between;
    padding: 20px 150px;
    text-align: center;
    color: #ffffff;
    font-size: 1.2rem;
}

footer h1{
    color: #d4d3d3;
    margin-bottom: 15px;
}

.right-footer p, .center-footer p {
    margin-top: 5px;
    text-align: left;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease
}

.right-footer p a, .center-footer p a {
    cursor: pointer;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.right-footer p:hover, .right-footer p a:hover , .center-footer p:hover, .center-footer p a:hover {
    color: #affa37;
}

footer img {
    width: 200px;
    margin: 0 10px;
}

@media (max-width: 1024px) {

    .navbar {
        padding: 0 30px;
    }

    img{
        width: 200px;
    }

    .header-content h1 {
        font-size: 6rem;
    }

    .cards,
    .cards-gastronomy {
        gap: 40px;
    }

    .card,
    .card-gastronomy {
        width: 380px;
        height: 260px;
    }

    .about {
        gap: 40px;
    }
    .about p{
        text-align: center;
    }

    footer {
        padding: 40px 30px;
        gap: 20px;
    }

    .right-footer p, .center-footer p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
    }

    /* NAVBAR */
    .navbar {
        display: flex;
        height: auto;
        gap: 15px;
        text-align: center;
        align-items: center;
        justify-content: space-around;
    }

    .navbar a{
        font-size: 1.2rem;
    }

    .logo img{
        width: 170px;
    }

    .logo{
        width: 200px;
    }

    .links-ul{
        display: none;
    }

    .connections-ul {
        justify-content: center;
        gap: 20px;
    }

    /* HERO */
    .header-content h5 {
        font-size: 1.2rem;
    }

    .header-content h1 {
        font-size: 3.5rem;
    }

    .header-content p {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    /* PRODUCTS */
    .container-products {
        gap: 50px;
        padding: 60px 0px;
    }

    .container-products h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .container-products p{
        font-size: 1.0rem;
    }

    .card,
    .card-gastronomy {
        width: 100%;
        max-width: 340px;
        height: 220px;
    }

    .gastronomy-section .gastronomy-section-content h1{
        font-size: 4rem;
    }

    .gastronomy-section .gastronomy-section-content p{
        display: none;
    }

    /* GASTRONOMY HERO */
    .gastronomy-section-content h1 {
        font-size: 3rem;
    }

    .gastronomy-section-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .container-gastronomy h1{
        text-align: center;
    }

    /* ABOUT */
    .card-about {
        width: 100%;
        height: auto;
    }

    .container-about p {
        font-size: 1.2rem;
        text-align: center;
    }

    /* REVIEWS */

    .reviews{
        padding: 0;
        margin: 0;
        max-width: 300px;
    }

    .reviews-viewport {
        width: 100%;
        max-width: 450px;
        overflow: hidden;
    }

    .arrow{
        display: none;
    }

    .reviews-container{
        width: 300px;
        font-size: 1.2rem;
    }
    .review p {
        font-size: 0.9rem;
        text-align: left;
    }

    /* FOOTER */
    footer {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    footer img{
        display: none;
    }

    .right-footer p,
    .center-footer p {
        text-align: center;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {

    img{
        width: 90px;
    }

    .navbar{
        padding: 5px;
        gap: 0;
    }

    .navbar ul{
        gap: 18px;
    }

    .navbar a{
        font-size:1.1rem;
    }

    .navbar a i{
        font-size: 1.3rem;
    }

    .header-content h1 {
        font-size: 4rem;
    }

    .container-products h1,
    .container-gastronomy h1,
    .container-about h1,
    .reviews h1 {
        font-size: 2rem;
    }

    footer img {
        width: 150px;
    }
}
