:root{
    --main-bg-white: #fcfdfd;
    --main-btn-color: #cadfbe;
    /*--main-text-color-w: #fcfdfd;*/
    --main-text-color: #48484b;
    --main-text-black: #0a0a0a;
    --main-font: Arial, Tahoma, Verdana, sans-serif;
    --main-btn-active: #1a962b;
    --main-gradient-bg: rgb(202,223,190);
    --main-gradient-gradient: linear-gradient(9deg, rgba(202,223,190,1) 59%, rgba(111,174,92,1) 100%, rgba(31,162,46,1) 100%);
    --main-gradient-ac-bg :rgb(110,224,44);
    --main-gradient-ac-gradient: linear-gradient(9deg, rgba(110,224,44,1) 43%, rgba(111,174,92,1) 100%, rgba(43,166,57,1) 100%);
    --main-header-bg: #babdb8;
    --main-category-bg: #22b24c;
    --main-category-bg-ac: #4cbf6e;

}

body{
    color: var(--main-text-color);
    font-family: var(--main-font);
    margin: 0;
    font-size: 16px;
    min-height: 100vh;
}
p{
    text-align: justify;
    margin: 1rem 0;
}
h2, h3{
    text-align: center;
    text-transform: uppercase;
}

table, th, td{
    border: 1px solid black;
    border-collapse: collapse;
}
th, td {
    padding: 1rem;
}
.table_title{
    background: var(--main-header-bg);
    text-align: center;
    font-weight: bold;
}
.autorines_table_head{
    background: var(--main-header-bg);
    font-size: 20px;
}
/* header*/
.header{
    width: 100%;
    height: 100px;
    background: var(--main-header-bg);
    display: flex;
    justify-content: space-around;
}
.menu{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    box-sizing: border-box;
}

.menu_item{
    color: var(--main-bg-white);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 1rem 2rem 1rem;
}
.menu_item:hover{
    color: var(--main-text-black);
    cursor: pointer;
}
.logo{
    width: 89px;
    height: 110px;
    object-fit: contain;
    background-image: url("../images/regia.png");
    display: flex;
    align-self: center;
}

.menu_item.active{
    color: var(--main-text-black);
    border-bottom: 2px solid grey;
}

a.btn{
    display: flex;
    align-self: center;
    justify-content: center;
}

/*burger*/
.burger{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}
.patty{
    width: 2.5rem;
    height: 0.35rem;
    background: var(--main-gradient-bg);
}
.burger:hover .patty{
    cursor: pointer;
    background: var(--main-gradient-ac-bg);
    background: var(--main-gradient-ac-gradient);
}
/* modal*/
.modal {
    position: fixed;
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: white;
    justify-content: center;
    align-items: center;
}
.modal>.modal_menu_item{
    color: var(--main-text-black);
    font-size: large;
    padding: 0;
    margin: 2rem 0;
    text-decoration: none;
    text-align: center;
    font-weight: bolder;
}
.close{
    display: flex;
    border-radius: 50%;
    text-align: center;
    width: 3rem;
    height: 3rem;
    align-items: center;
    background: rgba(255, 0, 0, 0.7);
    justify-content: center;
    font-size: larger;
    font-weight: bolder;
    cursor: pointer;
}
.close:hover{
    background: red;
}

/* main */
.main{
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    min-height: 80vh;
    justify-content: space-between;
    padding: 4rem 3rem;
    gap: 2rem;
    background: var(--main-bg-white);
}

.categories{
    display: flex;
    flex-direction: column;
    justify-content:  flex-start;
    align-items: center;
    row-gap: 1rem;
    font-weight: bold;
}

.category{
    /*background: var(--main-btn-color);*/
    box-sizing: border-box;
    background: var(--main-category-bg);
    padding: 1rem 0.5rem;
    text-transform: uppercase;
    width: 20vw;
    text-align: center;
    cursor: pointer;
    color: white;
}
.category:hover{
    /*background: var(--main-btn-active);*/
    background: var(--main-category-bg-ac);
}

.category_active{
    background: var(--main-gradient-ac-bg);
    background: var(--main-gradient-ac-gradient);
}

.content{
    background: var(--main-bg-white);
    box-sizing: border-box;
    flex-grow: 3;
    display: flex;
    justify-content: center;
    width: 45vw;
}

.container{
    display: none;
    flex-direction: column;
    padding: 0 5rem;
    justify-content: flex-start;
    gap: 1rem;

}
.legend_container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 1rem;
    flex-basis: auto;
}

.legend-type{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-width: 20rem;
}
.text{
    font-weight: bold;
    max-width: 10rem;
    text-align: start;
}
.type{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.image{
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.faq_question{
    display: flex;
    background: var(--main-btn-color);
    padding: 1rem;
    font-weight: bold;
    text-align: justify;
    /* justify-content: space-evenly; */
    align-items: center;
    width: 45vw;
    cursor: pointer;
}

svg{
    margin-right: 1rem;
    min-width: 15px;
    max-width: 15px;

}
.faq_question:hover{
    background: var(--main-gradient-ac-bg);
    background: var(--main-gradient-ac-gradient);
}

.faq_question.selected{
    background: var(--main-gradient-ac-bg);
    background: var(--main-gradient-ac-gradient);
}

.faq_question.selected svg{
    transform: rotate(-90deg);
}


.faq_answer{
    display: none;
    width: 40vw;
    padding: 1rem 2rem;
    flex-direction: column;
}

.faq_answer_text{
    text-align: justify;
}

img{
    width: 100%;
    height: 85%;
    object-fit: fill;
    margin: 1rem 0;
}

.selected{
    display: flex;
}
a{
    text-align: center;
}
/*forma*/

.form_text{
    padding: 10px 15px;
    text-align: center;
}
form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin-bottom: 5rem;
}
label{
    display: flex;
    justify-content: center;
    margin: 5px 0px;
    font-weight: bold;
}
input{
    padding: 5px 0 5px 10px;
    width: 100%;
}
input:last-of-type{
    margin-bottom: 2rem;
}

textarea[id = message]{
    padding: 5px 0 5px 10px;
    width: 100%;
    resize: none;
    height: 120px;
}

.btn{
    box-sizing: border-box;
    background: var(--main-category-bg);
    padding: 1rem 0.5rem;
    color: white;
    border: none;
    width: 20vw;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover{
    background: var(--main-category-bg-ac);
}
/*footer*/
.footer{
    background: black;
    color: var(--main-bg-white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

.footer_logo{
    margin: 0 1rem 0 1rem;
    width: 120px;
    height: 42px;
    color: white;
    background-image: url("../images/RC_logo.png");
}
.footer-text{
    padding: 0px 2rem;
    width: 50%;
    margin: 1rem 0;
}
.social_media>a{
    text-decoration: none;
}

.socials img{
    width: 30px;
    height: 30px;
}

/*media query*/
/*tablet*/
@media all and (max-width: 1030px){
    .menu_item{
        color: var(--main-bg-white);
        text-decoration: none;
        text-transform: uppercase;
        font-weight: bold;
        padding: 0 0.5rem 2rem 0.5rem;
    }
}

/*phone*/
@media all and (max-width: 775px){
    .main{
        flex-direction: column;
    }

    /*header*/
    .header{
        box-sizing: border-box;
        justify-content:space-between;
        padding: 0 1.75rem;
    }
    .menu{
        display: none;
    }
    .header>a{
        display: none;
    }
    .burger{
        display: flex;
    }
    /*main*/
    .content{
        width: auto;
    }
    .category{
        width: 80vw;
        padding: 2rem 1rem;
    }
    .container{
        padding: 0;
        text-align: center;
    }
    .container.legend.active{
        align-items: start;
    }

    .faq_question{
        width: 70vw;
    }
    .faq_answer{
        width: 65vw;
    }
    /*footer*/
    .footer{
        flex-direction: column;
        justify-content: space-evenly;
        padding: 1rem 0;
    }

    .footer-text{
        text-align: center;
        width: 80%;
        margin: 1rem 0;
    }
    .social_media{
        display: flex;
        justify-content: space-between;
        min-width: 30vh;
    }
}