@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

/* Base styles */
body {
    margin: 0;
    color: #111;
    font-family: 'Raleway', sans-serif;
    background-image: url(../images/vigneto-1-smaller.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: 100vh;
}

.main {
    padding: 12px;
    background-color: #fff;
    margin: 0 auto;
    width: 80%;
    transition: margin-top 600ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    border-radius: 4px;
}

/* Form styles */
input[type=text], input[type=email], textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type=submit]:hover {
    background-color: #45a049;
}

h2 {
    margin-top: 1.5em;
}

p {
    margin-top: -0.5em;
}






.wine-list {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
 }

 .wine-item {
    text-align: center;
    max-width: 300px;
    margin-bottom: 2rem;
 }

 .wine-item img {
    width: 100%;
    height: auto;
    border: 4px solid black;
    margin-bottom: 1rem;
 }

 .wine-item h3 {
    margin-top: 0px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
 }

 .wine-item p {
    font-size: 0.9rem;
 }







/* Mobile styles */
@media screen and (max-width: 767px) {
    body {
        background-image: url(../images/vigneto-1-mobile.jpg);
        font-size: 130%;
        line-height: 1.2;
    }

    .overlay {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: 80px;
        background-color: #fff;
    }

    .logo {
        width: 20%;
        height: 100%;
        float: left;
    }

    .logo > a {
        display: block;
        height: 100%;
        width: 100%;
        text-decoration: none;
        position: relative;
    }

    .logo-container {
        position: absolute;
        top: 50%;
        width: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .logo-container img {
        width: 35px;
        height: auto;
    }

    .logo-container h3 {
        font-family: 'Cinzel', serif;
        font-size: 12px;
        margin: 2px 0;
    }

    .menu-toggle {
        cursor: pointer;
        position: absolute;
        right: 45px;
        width: 35px;
        height: 100%;
        border: none;
        background: none;
        padding: 0;
    }

    .menu-toggle img {
        width: 50px;
        padding: 8px;
    }

    .verticalNav {
        font-family: 'Cinzel', serif;
        color: #333;
        background-color: rgba(255, 255, 255, 0.5);
        position: relative;
        top: -198px;
        font-size: 18px;
        box-sizing: border-box;
        transition: top 600ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
        text-align: right;
    }

    .verticalNav[aria-expanded="true"] {
        top: 80px;
    }

    .verticalNav[aria-expanded="true"] ~ .main {
        margin-top: 80px;
    }

    .verticalNav > a {
        display: block;
        color: #111;
        text-decoration: none;
        padding: 10px;
        font-size: 150%;
    }

    .verticalNav a:hover {
        background-color: #fff;
    }

    .main {
        margin-top: -170px;
    }

    .lang_switch {
        font-size: 120%;
        margin: 20px;
        padding-bottom: 3px;
    }

    .lang_switch > a {
        padding: 3px 6px;
        text-decoration: none;
        font-weight: bold;
        text-transform: uppercase;
    }
}

/* Desktop styles */
@media screen and (min-width: 768px) {
    .overlay {
        position: fixed;
        top: 0;
        z-index: 1;
        width: 100%;
        height: 100px;
        background-color: #fff;
    }

    .logo {
        width: 18%;
        height: 100%;
        float: left;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .logo > a {
        display: block;
        height: 100%;
        width: 100%;
        text-decoration: none;
        position: relative;
    }

    .logo-container {
        position: absolute;
        top: 50%;
        width: 130px;
        display: flex;
        flex-direction: column;
        align-items: center;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .logo-container img {
        width: 45px;
        height: auto;
    }

    .logo-container h3 {
        font-family: 'Cinzel', serif;
        font-size: 18px;
        margin: 3px 0;
    }

    .menu-toggle {
        display: none;
    }

    .verticalNav {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: 35px;
        display: flex;
        justify-content: center;
        gap: 30px;
        background: #333;
        font-family: 'Cinzel', serif;
        font-size: 18px;
        text-align: center;
        align-items: center;
        z-index: 1;
    }

    .verticalNav > a {
        display: flex;
        align-items: center;
        color: white;
        text-decoration: none;
        padding: 0 15px;
        height: 35px;
        box-sizing: border-box;
    }

    .verticalNav a:hover {
        background-color: rgba(255,255,255,0.8);
        color: #333;
        height: 35px;
    }

    .main {
        margin-top: 160px;
    }

    .lang_switch {
        position: fixed;
        top: 35px;
        right: 20px;
        margin: 0;
        padding: 5px;
        background: rgba(51, 51, 51, 0.9);
        border-radius: 4px;
    }

    .lang_switch > a {
        padding: 3px 6px;
        text-decoration: none;
        font-weight: bold;
        text-transform: uppercase;
        color: white;
        transition: all 0.3s ease;
    }

    .lang_switch > a:hover {
        background: rgba(255, 255, 255, 0.8);
        color: #333;
        border-radius: 2px;
    }

}