/* RESET */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    color: black;
    font-family: "Open Sans", sans-serif;
    background: #FFF;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ocupă tot ecranul chiar dacă e puțin text */
}


a {
    text-decoration: none;
}

h4 {
    font-family: "Baskerville", serif;
    color: #841639;
    font-size: 24px;
    font-weight: 600;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    /* centrează perfect pe verticală */
    justify-content: space-between;

    /*        INALTIMEA MENIULUI             */
    height: 85px;
}

.logo a {
    display: flex;
    text-decoration: none;
    height: 100%;
    align-items: center;
    gap: 20px;
}

.logo-img {
    height: 42px;
    /* ajustează după logo */
    width: auto;
}

.logo-text {
    font-family: "Baskerville", serif;
    color: #841639;
    font-size: 24px;
    font-weight: 600;
}

/* MENU */
.menu {
    display: flex;
    justify-content: space-evenly;
    font-family: "Baskerville", serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    list-style: none;
    gap: 30px;
}

.menu ul,
.menu li,
.menu a,
.menu span {
    /* display: flex; */
    text-decoration: none;
    list-style: none;
    color: #000;
    /* align-items: center; */
    text-align: center;
    /* justify-content: center; */
}

.menu li a:hover,
.menu li span:hover {
    color: #841639;
}

/* SUBMENU */
.has-submenu {
    position: relative;

}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    background: white;
    border: 1px solid #ddd;
    padding: 10px 0;
    list-style: none;
    display: none;
    min-width: 200px;
}

.submenu li a {
    padding: 6px 12px;
    margin: 0;
    white-space: nowrap;
    display: block;
    text-align: center;
    height: auto;
    /* suprascrie height: 85px */
    line-height: 1.4;
    /* înălțime normală de text */

}

.has-submenu:hover .submenu {
    display: block;
}

/* MOBILE */
.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    height: 100%;
    align-items: center;
}

/* CONTINUTUL PAGINII */

main {
    flex: 1;
    /* Această linie „împinge” footer-ul la fundul paginii */
    margin: auto;
    text-align: justify;
    width: 100%;
    /* Asigură-te că ocupă toată lățimea */
}

.ascuns {
    width: 100%;
    height: 86px;
    color: #FFF;
    text-align: center;
}


/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    perspective: 1000px;
    /* Adaugă asta pentru efectul flip */
}

/* .carousel-degustari {
    position: relative;
    width: 100%;
    height: 1000px;
    overflow: hidden;
    perspective: 1000px;}
    /* Adaugă asta pentru efectul flip */


.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Aceasta întinde poza să umple totul și taie din laterale */
    object-position: center;
    /* Menține centrul pozei (unde ești tu) mereu vizibil */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;



    /* inset: 0; */


    /* object-fit: contain; */
    /* Forțează imaginea să încapă întreagă fără să fie tăiată */


    /* transform: none; */
    /* transition: opacity 1s ease-in-out, transform 1s ease-in-out; */
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}



/* EFECTE TRANZITIE */
/* slide from right */
.effect-slide-right {
    transform: translateX(100%);
}

.slide.active.effect-slide-right {
    transform: translateX(0);
}

/* slide from left */
.effect-slide-left {
    transform: translateX(-100%);
}

.slide.active.effect-slide-left {
    transform: translateX(0);
}

/* from bottom */
.effect-bottom {
    transform: translateY(100%);
}

.slide.active.effect-bottom {
    transform: translateY(0);
}

/* from top */
.effect-top {
    transform: translateY(-100%);
}

.slide.active.effect-top {
    transform: translateY(0);
}

/* flip */
.effect-flip {
    transform: rotateY(90deg);
}

.slide.active.effect-flip {
    transform: rotateY(0);
}

/* zoom */
.effect-zoom {
    transform: scale(1.3);
}

.slide.active.effect-zoom {
    transform: scale(1);
}

/* fade */
.effect-fade {
    opacity: 0;
}

.slide.active.effect-fade {
    opacity: 1;
}




/* SECTION1 */
.section1 {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: justify;
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.section1 img {
    width: 50%;
    /* Lățimea dorită de tine */
    min-width: 500px;
    /* Forțează browserul să nu coboare sub această valoare */
    height: auto;
    max-height: 50%;
    /* Păstrează proporția corectă a înălțimii */
    object-fit: cover;
    /* Opțional: asigură un aspect curat dacă proporțiile diferă */
    flex-shrink: 0;
    /* Esențial: previne Flexbox-ul din a "strivi" imaginea */
}

.section1 p {
    font-size: 20px;
    font-weight: 400;
}

/* STILIZARE BUTON AFLA MAI MULT */
.section1 .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: transparent;
    border: 2px solid #841639;
    /* Culoarea visinie folosita in logo si h4 */
    color: #841639;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.section1 .btn h3 {
    margin: 0;
    font-family: "Baskerville", serif;
    font-size: 18px;
    font-weight: 600;
}

.section1 .btn:hover {
    background-color: #841639;
    color: #ffffff;
    transform: translateY(-2px);
    /* Efect de ridicare la hover */
    box-shadow: 0 4px 8px rgba(132, 22, 57, 0.2);
}









/* FOOTER */
.footer {
    width: 100%;
    background: #841639;
    color: white;
    padding: 0 20px;
    /* margin: 0 auto; */
    flex-shrink: 0;
    /* Previne comprimarea footer-ului */
}

.footer-grid {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
    margin: 0 auto;
    /* justify-content: space-between; */
    text-align: center;

}

.footer-card {
    padding: 30px;

}

.footer-card p {
    margin: 0 auto;
    padding-top: 10px;
    color: #fff;
}

.footer-card h2 {
    margin: 0 auto;
}

.footer-card a {
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.footer-card a:link {
    color: #fff;
    text-decoration: none;
}

.footer-card a:visited {
    color: #fff;
    text-decoration: none;
}

.footer-card a:hover {
    color: #CEA769;
    text-decoration: none;
}




.footer-bottom {
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 5px;
    font-size: 14px;
    color: #CEA769;
}

.footer-bottom a {
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    color: #CEA769;
}

.footer-bottom a:link {
    color: #CEA769;
    text-decoration: none;
}

.footer-bottom a:visited {
    color: #CEA769;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: none;
}

.auriu {
    color: #CEA769;
}









/* RESPONSIVE */
@media (max-width: 1030px) {
    .menu {
        position: fixed;

        /* top: 70px; */
        right: -260px;
        /* înlocuiește -100% */
        width: 250px;

        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 0px;
        gap: 2px;
        transition: 0.3s ease;
    }

    .menu li a,
    .menu li span {
        justify-content: center;
        text-align: center;
        height: 50px;
        /* suprascrie height: 85px */
        line-height: 1.4;
        /* înălțime normală de text */


    }

    .menu.open {
        right: 0;
    }

    .mobile-toggle {
        display: flex;

    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .submenu {
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;

    }


    .has-submenu .submenu {
        position: static;
        border: none;
        /* padding: 6px 12px; */
        display: none;

    }

    .has-submenu.open .submenu {
        display: block;
        padding: 6px 0;
        height: auto;
        /* suprascrie height: 85px */
        line-height: 1.4;
        /* înălțime normală de text */

    }

    .section1 {
        flex-direction: column;
        /* Pune imaginea deasupra textului pe mobil */
        align-items: center;
    }

    .section1 img {
        width: 100%;
        /* Imaginea ocupă lățimea ecranului */
        max-width: 400px;
        /* Dar nu mai mult de 400px pentru a nu fi uriașă */
        height: auto;
    }


    .section1 div {
        width: 100%;
    }

    .carousel {
        height: 300px;
        /* Reducem înălțimea caruselului pe mobil pentru a arăta mai bine */
    }

    .carousel .slide {
        object-fit: cover;
        /* Continuă să taie din margini pentru a umple ecranul telefonului */
        object-position: center;
        /* Garantează că nu se vede doar fundalul verde, ci centrul imaginii */
    }

    /* .carousel-degustari {
        height: 500px;}
        /* Reducem înălțimea caruselului pe mobil pentru a arăta mai bine */

}