:root{
    --background-color: #F8F8FF;
    --main-blue: #0d45a6;
    --ligher-blue: #1756c2;
    --white-text: #F8F8FF;
    --footer-background: #dfe6fd;
    --shadow-blue: #081a6b;
    --grid-dimension: 300px;
}

body{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    min-height: 100vh;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

p{
    text-indent: 2em;
}

.header{
    position: relative;
    background-color: var(--main-blue);
    height: 10vh;
    display: flex;
    align-items: center;
}

.header .logo{
    flex-grow: 2;
    position: relative;
}

.logo img{
    height: 8vh;
    padding: 0 5vw;
}

.continut{
    padding: 13vw 10vw 8vw 10vw;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

#main{
    padding: 0;
    flex-direction: column;
    margin-bottom: 20px;
}

.title{
    color: var(--main-blue);
    align-self: center;
}

.text{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0px;
    flex-grow: 1;
    justify-content: center;
}

.text p{
    margin: 1px 0;
}

.CEO{
    position: relative;
    padding: 15px 25px 30px 25px;
    border-radius: 20px;
    border: 2px solid var(--ligher-blue);
    box-shadow: 7px 4px 0 var(--shadow-blue);
    margin: 10px 0;
}

.CEO h2{
    font-weight: bolder;
    text-transform: uppercase;
    align-self: center;
    color: var(--shadow-blue);
    letter-spacing: 0;
    margin: 15px 0 10px 0;
}

.CEO h4{
    margin: 2px 0;
    padding: 0;
    text-transform: uppercase;
}

.CEO p{
    text-indent: 0;
    padding: 10px 0;
}

#mailuri{
    list-style: none;
    position: absolute;
    bottom: 0.5em;
}

#contact__loc{
    aspect-ratio: 7/4;
}

.footer{
    width: 100%;
    background-color: var(--footer-background);
    border-top: 5px solid var(--shadow-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.footer h1{
    font-weight: bold;
    margin: 5px 0;
    color: var(--main-blue);
}

.footer p{
    margin: 8px 0;
}

#poze__afisare{
    width: 100%;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-dimension), 1fr));
    grid-auto-rows: var(--grid-dimension);
}

.grid__item{
    overflow: hidden;
    transition: all .2s ease; 
    transform: scale(1);
}

.grid__item img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.grid__item:hover{
    transition: all .3s ease; 
    transform: scale(1.2); 
    z-index: 100;
}

.images{
    max-width: 80vw;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.images img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spatiu{
    padding: 15px 0;
}

.spatiu .mic{
    padding: 5px 0;
}

.videoPlayer{
    padding: 20px 0 5px 0;
    max-width: 90vw;
}

.slider__display{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100vw;
}

.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
    height: 30vh;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.mySlides img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 10px;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 2s;
}

.slogan{
    word-spacing: -2px;
    font-weight: bold;
    font-size: 20px;
    width: 100%;
    text-indent: 0;
    text-align: center;
    position: absolute;
    bottom: 20%;
    background-color: rgba(0,0,0,0.2);
    color: white;
    padding: 10px 0;
    z-index: 100;
}

.spatiu__patrate{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    gap: 2vw;
    align-items: center;
}

.spatiu__patrate h2{
    color: var(--main-blue);
}

.patrate{
    height: fit-content;
    padding: 10px 20px;
    width: 80vw;
    border: 3px solid grey;
}

#harta__acasa{
    width: 100%;
    height: 25vh;
    padding-bottom: 10px;
}

#frezare__video{
    flex-grow: 1;
    height: 50vh;
    width: auto;
    overflow: hidden;
    margin: 10px;
}

#utilaje_titlu{
    margin: 20px 15px;
    align-self: self-start;
}

#img__frezare{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80vw;
    margin: 10px auto;
}

#img__frezare img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#img__frezare img:hover{
    transition: all .3s ease; 
    transform: scale(1.2); 
    z-index: 100;
}

#img__strunjire{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80vw;
    margin: 10px auto;
    position: relative;
}

#img__strunjire img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu__web{
    position: relative;
    padding: 0 50px;
    font-size: 22px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    display: none;
}

.menu__web a{
    text-decoration: none;
    color: var(--white-text);
}

.menu__web li{
    padding: 10px 10px;
    margin: 0 1px;
    border-radius: 10px;
}

.menu__web li:hover{
    background-color: rgba(0,0,0,0.3);
}

.sub__menu{
    display: none;
    z-index: 110;
}

.sub__menu dl{
    list-style-type: none;
}

.menu__web li:hover .sub__menu{
    display: block;
    position: absolute;
    right: 45%;
    top: 100%;
    background-image: linear-gradient(var(--main-blue), var(--ligher-blue));
    border-radius: 0 0 15px 15px;
}

.menu__web li:hover .sub__menu dl{
    display: block;
    margin: 10px;
}

.menu__web li:hover .sub__menu dl li{
    padding: 5px 10px;
    margin: 10px 10px;
}

.nav__mobile{
    position: fixed;
    top: 0;
    right: -100%;
    background-image: linear-gradient(to bottom, var(--main-blue), var(--ligher-blue), var(--ligher-blue));
    width: 70%;
    height: 100vh;
    padding: 2rem 0;
    z-index: 200;
    transition: .5s;
    overflow-y: auto;
}

.nav__menu ul{
    list-style-type: none;
}

#nav-menu{
    margin: 0;
    padding: 0;
}

.nav__menu a{
    text-decoration: none;
    color: var(--white-text);
}

.bg-grid{
    max-width: 60%;
    display: grid;
    grid-template-columns: 100%;
    margin: 0 1.5rem;
}

#header-toggle{
    position: relative;
    font-size: 2.5rem;
    padding: 10px;
    right: 0;
    top: 50%;
    z-index: 300;
}

.nav__content{
    position: absolute;
    top: 30%;
    display: flex;
    flex-direction: column;
}

.nav__item{
    margin: 0 0 2rem 0;
}

.show{
    right: 0;
}

.dropdown__link{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown__item{
    margin: 1rem 0;
}

.dropdown__icon{
    font-size:1.5rem;
    transition: .5s;
}

.dropdown__menu{
    display: none;
}

.dropdown__menu ul{
    margin: 0.5rem 0 0 1rem;
}

.dropdown:hover > .dropdown__menu{
    display: block;
}

.dropdown:hover .dropdown__icon{
    transform: rotate(180deg);
}

@keyframes fade {
    from {opacity: .6}
    to {opacity: 1}
}

@media (min-width: 413px) {
    #mailuri{
        bottom: 1.7em;
    }
}

@media (min-width: 1100px) {
    .continut{
        flex-direction: row;
        padding: 5vh 5vw;
    }
    #contact__loc{
        aspect-ratio: 16/9;
        width: 50vw;
    }
    #mailuri{
        bottom: -0.27em;
    }
    .images{
        max-width: 30vw;
    }
    .text{
        padding: 0 30px;
        gap: 0px;
    }
    .text p{
        padding: 0;
        margin: 0;
    }
    .spatiu{
        padding: 30px 0;
    }
    .spatiu .mic{
        padding: 10px 0;
    }
    .pagina__servicii{
        padding: 15px 13vw;
    }
    .videoPlayer{
        width: 70vw;
    }
    #debitare{
        flex-direction: column;
    }
    #debitare .images{
        flex-direction: row;
        transform: translate(-50%);
    }
    .prev, .next{
        padding: 16px;
        border-radius: 0 6px 6px 0;
    }
    .next{
        border-radius: 6px 0 0 6px;
    }
    .dot{
        height: 15px;
        width: 15px;
    }
    .slideshow-container{
        height: 50vh;
    }
    .prev:hover, .next:hover {
        background-color: rgba(0,0,0,0.4);
    }
    .slogan{
        position: absolute;
        font-size: 30px;
        bottom: 20%;
        background-color: rgba(0,0,0,0.2);
        color: white;
        padding: 10px 0;
        z-index: 100;
    }
    .spatiu__patrate{
        padding: 0 10vw;
        flex-direction: row;
        font-size: 22px;
    }
    .patrate{
        width: 20vw;
    }
    #frezare__video{
        width: 50vh;
        height: auto;
    }
    #img__frezare{
        flex-direction: row;
        height: 15vw;
    }
    #img__strunjire{
        flex-grow: 1;
        display: grid;
        grid-template-columns: 250px 250px 250px;
        grid-template-rows: 200px;
        width: 50vw;
    }
    #img__strunjire img:hover{
        transition: all .3s ease; 
        transform: scale(1.2); 
        z-index: 100;
    }
    .menu__web{
        display: flex;
    }
    .nav__mobile{
        display: none;
    }
    .herader_toggle{
        display: none;
    }
}