:root{
    --radius: 30px;
}
.only_mobile{
    display: none;
}
.w_def, .w_def_desktop{
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.radius{
    padding: 30px;
}
.title{
    font-size: 60px;
    margin-bottom: 60px;
}
.title.resized{
    font-size: 37px;
}
.title.first{
    margin: 40px 0;
}
.pd_left{
    padding-left: 200px;
}
.eq > div, .eq > .item{
    flex: 1;
}


/********* HEADER **********/
header{
    padding: 10px;
}
header .logo{
    width: 200px;
}
header .wrap_ico_menu{
    display: none;
}
header .has_submenu{
    position: relative;
}
header .products_submenu{
    position: absolute;
    top: calc(100% + 20px);
    left: -24px;
    z-index: 20;
    width: 510px;
    padding: 22px;
    border: 1px solid rgba(216,195,165,.6);
    border-radius: 18px;
    background-color: #f7f3ed;
    box-shadow: 0 15px 40px rgba(32,50,43,.18);
}
header .products_submenu::before{
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 21px;
}
header .submenu_categories{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
header .submenu_category{
    flex-direction: column;
    padding: 14px 14px 18px;
}
header .submenu_category figure{
    height: 120px;
    margin-bottom: 16px;
}
header .submenu_info{
    padding-right: 12px;
}
header .submenu_arrow{
    position: absolute;
    right: 12px;
    bottom: 49px;
}
@media screen and (max-width: 1200px){
    header .w_def{
        width: 98%;
    }
    header .menu{
        gap: 18px;
    }
}
/********* END HEADER **********/

/********* SUBHEADER **********/
.subheader{
    margin-top: -30px;
}
.subheader .info{
    min-height: calc( 100svh - 30px );
}
.subheader h1{
    font-size: 50px;
}
.subheader p.up{
    font-size: 22px;
}

/********* END SUBHEADER **********/

/********* prod_preview_box **********/
.prod_preview_box .title_box{
    flex: 4;
}
@media screen and (max-width: 1200px){
    .prod_preview_box .title_box{
        flex: 3;
    }
}
.prod_preview_box .cards_box{
    flex: 6;
}
.prod_preview_box.reverse{
    flex-direction: row-reverse;
}
/********* END prod_preview_box **********/

/********* HOME CATEGORIE *********/
.home_production{
    width: 100%;
    max-width: none;
    margin-bottom: 10px;
}
.home_production > .title{
    margin-left: max(5%, calc((100% - 1300px) / 2));
}
.home_categories{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.category_preview figure{
    height: 340px;
}
.category_preview .info{
    padding: 24px 36px 30px;
}
.category_preview .title{
    font-size: 48px;
}
/********* END HOME CATEGORIE *********/

/********* FOOTER *********/
footer .grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
/********* END FOOTER *********/

/********* ABOUT ***********/
.about.box1 > div:nth-child(1){
    flex: 3.3;
}   
.about.box1 > div:nth-child(2){
    flex: 6.7;
}   
.about.box2 > div:nth-child(1){
    flex: 6.7;
}   
.about.box2 > div:nth-child(2){
    flex: 3.3;
}   
.about.box3 > div:nth-child(1), .about.box3 > div:nth-child(2), .about.box3 > div:nth-child(3){
    flex: 1 0 0;
}   
@media screen and (max-width: 1200px){
    .about.box3{
        flex-wrap: wrap;
    }
    .about.box3 > div:nth-child(1), .about.box3 > div:nth-child(3) {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: 0;
    }
    .about.box3 > div:nth-child(2) {
        flex: 0 0 100%;
        order: -1; 
    }
}
.about.box4 > div:nth-child(1){
    flex: 3.3;
}   
.about.box4 > div:nth-child(2){
    flex: 6.7;
}   
/*
LAYOUT FOTO-TESTO-FOTO (decommenterò la regola successiva per applicare questo layout)
.about.box4 > div:nth-child(1), .about.box4 > div:nth-child(2), .about.box4 > div:nth-child(3){
    flex: 1 0 0;
} */  

/********* END ABOUT ***********/

/********* PRODUCT LIST *********/
.product_list{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
@media screen and (max-width: 1200px){
    .product_list{
        grid-template-columns: repeat(4, 1fr);
    }
}
/********* END PRODUCT LIST *********/

/********* PRODUCT CARD **********/
.product_card{
   gap: 70px;
}
.product_card .format{
    grid-template-columns: 200px 1fr 200px;
    grid-template-columns: 1fr 100px 1fr;
    gap: 20px;
}
.qty_addcart_wrap > div:first-of-type{
    flex: 0 0 auto;
}
.qty_addcart_wrap > div:last-of-type{
    flex: 1 1 auto;
    min-width: 300px;
}
.wrap_btns{
    display: flex; 
    gap: 20px;
}
/********* END PRODUCT CARD **********/
.banner_info{
    grid-template-columns: auto 1fr; 
}
