html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    /* Optional: removes default spacing */
    padding: 0;
    scroll-behavior: auto;
}

.index, .index_v2, .index_v3, .space, .services, .aboutUs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
    filter: brightness(0.5);
}

.index,
.aboutUs{
    background: url("../media/fundo.0b855c954ebc.png") no-repeat center center;
    background-size: cover;
}

.index_v2{
    background: url("../media/wines.493e2c6602be.png") no-repeat center center;
    background-size: cover;
}

.index_v3{
    background: url("../media/takeaway.2baeaa49c13b.png") no-repeat center center;
    background-size: cover;
}

.space{
    background: url("../media/1.b1d158453c6a.png") no-repeat center center;
    background-size: cover;
}

.services{
    background: url("../media/2.29ab5381bb4b.png") no-repeat center center;
    background-size: cover;
}

header,
main,
footer {
    /*border-top:  1px solid black;*/
    width: 100%;
    padding: 0;
}

.arrowContainer {
    z-index: 1000;
    position: fixed;
    top: 93%;
    left: 93%;
    display: none;
    cursor: pointer;
    user-select: none;
}

.navContainer,
.mainHeader,
.footerContainer,
.footerContainer_v2,
.menuContainer,
.wineCellarContainer,
.takeawayIntroContainer,
.restaurantIntroContainer,
.partiesContainer,
.weddingReceptionContainer,
.snackBarContainer{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.navbar {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
}

.nav-links {
    width: 100%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5rem;
    margin: 0;
    padding: 40px;
}

.nav-links a {
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.logo{
    width: 20%;
    text-align: center;
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.logoPlaceHolder{
    font-size: 48px;
    font-family: 'Great Vibes', cursive;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slogan{
    margin-top: 1%;
    font-size: 16px;
}

.mainHeader {
    color: white;
    gap: 3rem;
    margin-bottom: 40vh;
}

.title {
    margin-top: 15rem;
    /*font-family: 'Great Vibes', cursive;*/
    font-style: italic;
    font-size: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titleMessage {
    font-size: 22px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.mainButtonsContainer {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    /* Align rows to the bottom of the container */
    justify-content: center;
    align-items: center;
    gap: 3rem;
    font-size: 24px;
}

.mainButtonsContainer div {
    padding: 0.8rem;
    border: 3px solid white;
    background-color: rgba(0, 0, 0, 0.5);
    min-width: 15rem;
    text-align: center;

    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mainButtonsContainer div:hover {
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 1);

    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.introContainer,
.introContainer_v2 {
    color: white;
    padding-bottom: 20rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8rem;

    background-color: rgba(0, 0, 0, 0.4);
}

.introContainer{
    padding-top: 20rem;
    /*background-color: rgba(0, 0, 0, 0.205);*/
}

.introContainer_v2{
    padding-top: 10rem;
    /*background: url("../media/pond.bf3db7d331c5.png") no-repeat center center;*/
    /*background-color: rgba(0, 0, 0, 0.205);
    background-size: cover;*/
}

.introTitle {
    font-size: 36px;
    font-style: italic;
}

.introText {
    width: 50%;
    text-align: center;
    font-size: 24px;

    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.introPictureGallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
}

.introPictureContainer {

    max-height: 35vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.introPictureContainer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.introEnding {
    font-size: 24px;
    font-style: italic;
}

.introTitle,
.introEnding {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.menuSection:nth-child(1),
.menuSection:nth-child(3),
.menuSection:nth-child(5),
.menuSection:nth-child(7) {
    background: linear-gradient(180deg, rgb(0, 27, 6) 0%, rgba(0, 0, 0, 1) 100%);
}

.menuSection:nth-child(2),
.menuSection:nth-child(4),
.menuSection:nth-child(6),
.menuSection:nth-child(8) {
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgb(0, 27, 6) 100%);
}

.wineCellarSection:nth-child(1),
.wineCellarSection:nth-child(3),
.wineCellarSection:nth-child(5),
.wineCellarSection:nth-child(7) {
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgb(0, 27, 6) 100%);
}

.wineCellarSection:nth-child(2),
.wineCellarSection:nth-child(4),
.wineCellarSection:nth-child(6),
.wineCellarSection:nth-child(8) {
    background: linear-gradient(180deg, rgb(0, 27, 6) 0%, rgba(0, 0, 0, 1) 100%);
}

.menuSection,
.wineCellarSection {
    width: 100%;
    padding-top: 20rem;
    padding-bottom: 50rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10rem;
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.sectionTitle {
    font-size: 4rem;

    font-family: 'Georgia', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.entriesContainer {
    width: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 3rem;
    border-radius: 50px;
}

.menuEntry {
    width: 100%;
    display: flex;
    justify-content: space-between;

    font-family: 'Segoe UI', sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

.entryDescription {
    font-size: 1.2rem !important;
    margin-bottom: 2rem;
    padding-bottom: 5px;
    width: 100%;
    border-bottom: 1px solid white;
}

.wineCellarContainer,
.takeawayIntroContainer{
    padding-top: 30rem;
    padding-bottom: 30rem;
    gap: 5rem;
    color: white;
}

.restaurantIntroContainer,
.partiesContainer,
.weddingReceptionContainer,
.snackBarContainer {
    display: flex;
    justify-content: center;
    min-height: 102vh;
    gap: 5rem;
    color: white;
}

.takeawayIntroContainer {
    padding-top: 40rem;
}

.wineType {
    font-size: 2.5rem !important;
    margin-bottom: 5rem;
    margin-top: 5rem;

    font-style: italic;
    color: #ffd700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.wineRegion {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.footerContainer,
.footerContainer_v2 {
    padding-top: 5rem;
    padding-bottom: 5rem;
    color: white;
    gap: 5rem;
}

.footerContainer{
    background-color: rgb(0, 27, 6);
}

.footerContainer_v2{
    background-color: rgba(0, 0, 0, 1);
}

.footerGrid {
    width: 70%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20rem;
    grid-template-rows: 1fr;
}

.footerGridElement {
    width: 100%;
    display: flex;
    align-items: center;
    /*border: 1px solid white;*/
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-size: 1.2rem;
    text-align: center;

    font-family: 'Segoe UI', sans-serif;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footerGridElement:nth-child(2){
    gap: 1.5rem !important;
}

.input-wrapper{
    width: 100%;
}

.input-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="email"] {
    text-align: center;
    width: 50%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="email"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

input[type="email"]::placeholder {
    color: #aaa;
}

input[type="email"],
textarea {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.footerGridElement textarea{
    font-size: 1.2rem;
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
    min-height: 10rem;
}

.spacesGrid{
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    column-gap: 5rem;
    margin-bottom: 5rem;
    margin-top: 5rem;
}

.spacesGrid div{
    border: 1px solid white;
    height: 30rem;
}

.iframeHolder{
    width: 90vw;
    height: 90vh;
}

.galleryGridsContainer{
    width: 200%;
    height: 98%;
    display: flex;
    align-items: baseline;
    justify-content: left;
    flex-direction: column;
    gap: 0;
}

.galleryGridsContainer :nth-child(1){
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 2fr 1fr 3fr;
    grid-template-rows: 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
}

.galleryGridsContainer :nth-child(2){
    display: grid;
    grid-template-columns: 3fr 2fr 3fr 2fr 3fr 2fr;
    grid-template-rows: 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
}

.galleryGridsContainer div div, 
.galleryGridsContainer div div{
    width: 100%;
    height: 100%;
    border: 1px solid white;
}

.oneFractionDiv{
    width: 100%;
    height: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
}

.oneFractionDiv div{
    width: 100% !important;
    height: 100% !important;
    border: 1px solid white !important;
}

.restaurantIntroContainer{
    background: url("../media/restaurant.5b7f2befdcf7.jpg") no-repeat center center;
    background-size: cover;
}

.partiesContainer{
    background: url("../media/party.1e1f3e8a7a31.png") no-repeat center center;
    background-size: cover;
}

.weddingReceptionContainer{
    background: url("../media/casamento.a39ab832fa9c.png") no-repeat center center;
    background-size: cover;
}

.snackBarContainer{
    background: url("../media/snackBar.91d11eeb9696.png") no-repeat center center;
    background-size: cover;
}

.aboutUsText{
    width: 50%;
    text-align: center;
    font-size: 1.5rem;
}

#menuGallery:nth-child(1){
    
}

@media (max-width: 2000px) {
    .title{
        margin-top: 8rem;
        font-size: 36px;
    }

    .logoPlaceHolder{
        font-size: 36px;
    }

    .nav-links{
        padding: 0;
    }

    .nav-links a{
        font-size: 22px;
    }

    .wineCellarContainer{
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .takeawayIntroContainer {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

@media (max-width: 1366px) {
    .mainHeader {
        margin-bottom: 40vh;
    }
    .title {
        margin-top: 5rem;
    }
    .introPictureContainer {
        min-width: 20vw;
        min-height: 20vh;
    }    
    .entriesContainer {
        width: 70%;
    }

    .footerGrid {
        width: 70%;
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 5rem;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 785px){

    .nav-links {
        gap: 4rem;
        padding: 20px;
    }
}

@media (max-width: 520px){

    .logo{
        width: 60%;
    }

    .logoPlaceHolder{
        font-size: 36px;
    }

    .nav-links{
        display: none !important;
    }

    .title{
        margin-top: 1rem;
        font-size: 22px;
    }

    .titleMessage {
        font-size: 12px;
    }

    .mainHeader {
        margin-bottom: 10vh;
    }

    .introContainer,
    .introContainer_v2 {
        padding-bottom: 20rem;
        gap: 8rem;
    }

    .introContainer{
        padding-top: 5rem;
    }

    .introTitle {
        width: 80%;
        font-size: 16px;
        font-style: italic;
    }
    
    .introText{
        width: 80%;
        font-size: 16px; 
    }

    .introPictureGallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .introPictureContainer {
        max-height: 50vh;
    }

    .mainButtonsContainer div {
        max-width: 15rem;
    }

    .sectionTitle {
        font-size: 2rem;
    }

    .arrowContainer {
        top: 90%;
        left: 80%;
    }
}