/* Setto le variabili CSS */
:root {
    --primary-color: #1b914c;
    --secondary-color: #75ce00;
    --dark-color: #000000;
    --light-color: #ffffff;

    --font-display: "Bodoni Moda", serif;
    --font-text: "Roboto", sans-serif;

    --xs: 5px;
    --s: 10px;
    --m: 15px;
    --l: 20px;
    --xl: 30px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
}

/* Utility */
li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* wrapper */
.wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */

header.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: transparent;
    transition: 0.4s ease;
}

header.cover.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

header.cover div.wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    gap: 100px;
}

/* Menu */
.main-menu {
    display: flex;
    gap: 50px;
}

.main-menu a,
.main-menu a:visited,
.main-menu a:active {
    color: var(--light-color);
}

.main-menu a:hover {
    color: var(--primary-color);
}

/* Hambyrger */
.cover__hb {
    font-size: 30px;
    color: var(--light-color);
    cursor: pointer;
    transition: 0.3s;
}

.cover__hb:hover {
    transform: scale(1.2);
}

/* Switch icone */
.cover__hb i {
    transition: 0.3s ease;
}

/* stato normale */
.cover__hb i:last-child {
    display: none;
}

/* quando attivo */
.cover__hb.active i:first-child {
    display: none;
}

.cover__hb.active i:last-child {
    display: block;
}

/* Hero */

.hero {
    min-height: 100vh;

    background-image: url("img/Landing_Img.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    position: relative;
}

/* overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* contenuto sopra overlay */
.hero h1,
.hero p,
.cta-group {
    position: relative;
    z-index: 2;
}

/* font titolo */
.hero h1 {
    font-family: var(--font-display);
    font-size: 60px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 25px;
}

/* CTA */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Bottoni */
.btn {
    padding: 12px 22px;
    font-size: 18px;
    border-radius: 6px;
    font-weight: bold;
    width: 140px;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    transform: scale(1.1);
}

.btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn.secondary:hover {
    transform: scale(1.1);
}

/* OVERLAY MENU */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.9);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-menu {
    text-align: center;
}

.overlay-menu li {
    margin: 20px 0;
}

.overlay-menu a {
    color: white;
    font-size: 40px;
}

/* Storia del ristorante */

.about {
    padding: 100px 20px;
    background: #fff;
}

.about__container {
    max-width: 1000px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 60px;
}

.about__text {
    flex: 1;
}

.about__text h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about__text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.about__image {
    flex: 1;
}

.about__image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}


/* Cibo */

.menu {
    padding: 100px 20px;
    background: #f7f7f7;
    text-align: center;
}

.menu__container {
    max-width: 1000px;
    margin: 0 auto;
}

.menu h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 10px;
}

.menu p {
    margin-bottom: 40px;
    color: #555;
}

.menu__grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.menu__card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.menu__card:hover {
    transform: translateY(-10px);
}

.menu__card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu__card h3 {
    margin: 15px 0 5px;
}

.menu__card p {
    padding: 0 10px 20px;
    font-size: 14px;
    color: #666;
}


/* Vino */


.wine-single {
    padding: 100px 20px;
    background: #fff;
}

.wine-single__container {
    max-width: 1000px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 60px;
}

/* immagine */
.wine-single__image {
    flex: 1;
}

.wine-single__image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* testo */
.wine-single__text {
    flex: 1;
}

.wine-single__text h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 20px;
}

.wine-single__text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

/* Contatti */

.contact {
    padding: 100px 20px;
    background: var(--primary-color);
    color: white;
}

.contact__container {
    display: flex !important;
    flex-direction: row !important;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Sinistra */
.contact__image {
    flex: 1;
}

.contact__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Destra */
.contact__info {
    flex: 1;
}

.contact__info h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 20px;
}

.contact__info p {
    margin-bottom: 10px;
    color: var(--light-color);
    font-size: 16px;
}


/* MOBILE */

.cover__menu {
    display: block;
}

.cover__hb {
    display: none;
}

@media (max-width: 768px) {

    .cover__menu {
        display: none;
    }

    .cover__hb {
        display: block;
        font-size: 28px;
    }

    .about__container {
        flex-direction: column;
        text-align: center;
    }

    .about__text h2 {
        font-size: 32px;
    }
}

/* Contatti */

.contact__container {
        flex-direction: column;
        text-align: center;
    }

    .contact__info h2 {
        font-size: 32px;
    }

    