/*
Theme Name: Divi Child
Theme URI: https://www.deltasystem-clima.it/
Description: Child Theme per Divi
Author: Jean
Author URI: https://www.deltasystem-clima.it/
Template: Divi
Version: 1.0.0
*/

/* Font Face replacement */
@font-face {
    font-family: 'LeagueSpartan';
    src: url('fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2'),
        url('fonts/LeagueSpartan-VariableFont_wght.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}
:root {
    --h-L: 5vw;/* clamp(2.8rem, 5.5vw, 7rem); */
    --h-M: 4vw;
    --h-R: 3.5vw;    
    --h-S: 2.5vw;
    --p-L: 1.5vw;
    --p-R: 1.2vw;
    --p-S: 1.1vw; 
    --p-XS: 1vw; 

    --orange:#E46A07;
    --blue:#0099CC;
    --grey:#515151;
    --light-grey:#f5f5f5;
  }
body, body p, input, textarea,.et_pb_timeline_title{font-family: 'LeagueSpartan'!important;font-weight: 400;}
h1,h2,h3,h4,h5,h6,.et_pb_contact_submit{font-family: 'Geologica'!important;}

/* HEADER */
header{
    position: absolute;
    width: 100%;
}
.et_pb_menu__logo{
    padding: 20px 50px 20px 20px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}
header .et_pb_menu__wrap{padding:0 5% 3% 0;}
header .et_pb_menu .et-menu > li{padding: 0 20px;margin-left: 10px!important;}
header .et_pb_menu .et-menu > li::before{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height:0;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    transition: all .5s;
}

header .et_pb_menu .et-menu > li:hover::before,header .et-menu > li.current-menu-item::before{
    height: 100%;
}
header .et-menu li a{
    color:#fff;
    font-size: var(--p-R);
    transition: all .5s;
}
header .et-menu li:hover a,header .et-menu > li.current-menu-item a{
    color: #222;
    opacity: 1;
}
header .et-menu > li.current-menu-item a{
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 7px;
    text-decoration-thickness: 3px;
}
/* Sub Menu */
header .sub-menu{
    background: none!important;
    border: none!important;
    box-shadow: none!important;
    width: auto!important;
}
header .sub-menu li{
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all .5s;
}
header .sub-menu li a{
    width: auto!important;
    padding-left: 0;
    padding-right: 0;
}
header .sub-menu li a:hover{background: none;}
header .sub-menu li:hover{background-color: var(--blue);}
header .sub-menu li:hover a{color: #fff;}

/* HOME */
/* Banner */
#home_banner .et_pb_slide{height: 80vh;}
#home_banner .et_pb_slides .et_pb_slider_container_inner{vertical-align: bottom;}
#home_banner .et_pb_slide_description{padding-top: 0;padding-bottom: 10%;}
#home_banner .et_pb_slide_title{font-weight: 900;font-size:var(--h-R);text-transform: uppercase;}
#home_banner .et_pb_slide_content p{font-size: var(--p-L);line-height: 1.1em;}
#home_banner .et-pb-slider-arrows a, .et_pb_gallery .et-pb-slider-arrows a{
    background-color: rgba(255,255,255,.8);
    color: #555!important;
}
#home_banner .et-pb-slider-arrows a:hover, .et_pb_gallery .et-pb-slider-arrows a:hover{
    background-color: var(--blue);
    color: #fff!important;
}
#home_banner .et-pb-arrow-next, #home_banner .et-pb-arrow-prev{
    padding: 15px;
}
#home_banner .et-pb-arrow-next{right:-100px;border-radius: 10px 0 0 10px;}
#home_banner .et_pb_slider:hover .et-pb-arrow-next, .et_pb_gallery:hover .et-pb-arrow-next{right:0;}
#home_banner .et-pb-arrow-prev{left:-100px;border-radius:0 10px 10px 0;}
#home_banner .et_pb_slider:hover .et-pb-arrow-prev, .et_pb_gallery:hover .et-pb-arrow-prev{left:0;} 
#home_banner .et-pb-controllers{
    text-align: left;
    width: 80%;
    left: 10%;
    display: flex;
    align-items: center;
    bottom: 30px;
}
#home_banner .et-pb-controllers a{
    text-align: center;
    width:14px;
    height: 14px;
    margin: 7px;
    border-radius: 30px;
    transition: all 1s;
    opacity: 1;
}
#home_banner .et-pb-controllers a:hover{background-color: #fff;}
#home_banner .et-pb-controllers .et-pb-active-control{
    width:30px;
    height:30px;
    margin: 0;
}

/* Focus About */
#contact_block{
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    width: auto;
    right: 2vw;
    z-index: 2;
}
#focus_about{padding:7vw 0;}
#focus_about h2{font-size: var(--h-L);font-weight: 900;}
#focus_about h3{font-size: var(--p-L);font-weight: 600;}
#focus_about p{font-size: var(--p-R);line-height: 1.2em;}
#focus_about .et_pb_row_2 .et_pb_column{gap:0;}
#focus_about .et_pb_button{white-space: nowrap;font-size: var(--p-L);}
#focus_about .et_pb_button:hover{background-color: #222!important;}
#focus_about .et_pb_space{height: 5px;}

/* Focus Servizi */
#focus_servizi h3,#focus_contatti h3,#about_timeline .et_pb_row_3 h3{
    font-size: var(--h-M);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-decoration: underline;
    text-decoration-thickness: 12px;
    text-underline-offset: 12px;
}
#focus_servizi h3{text-decoration-color: #222;}
#focus_servizi h2{font-size: var(--p-L);font-weight: 600;padding-bottom: 0;}
#focus_servizi .et_pb_text p{font-size: var(--p-S);}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group .et_pb_text p{font-size: var(--p-XS);}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group .et_pb_image .et_pb_button_module_wrapper {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all .5s;
}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group{border-radius: 10px;overflow: hidden;}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group > .et_pb_image img{opacity: 1;transition: all .5s;}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group:hover > .et_pb_image img{opacity: .5;}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group:hover > .et_pb_image .et_pb_button_module_wrapper {
    opacity: 1;
}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group > .et_pb_image .et_pb_button:hover{background-color: var(--blue);}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group .et_pb_heading{
    text-decoration: underline;
    text-decoration-color:var(--blue);
    text-decoration-thickness: 5px;
    text-underline-offset: 5px;
}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group .et_pb_heading,#focus_servizi .et_pb_group_carousel_slide .et_pb_group .et_pb_text{padding: 0 5%;}
#focus_servizi .et_pb_group_carousel_slide .et_pb_group .et_pb_text{padding-bottom: 5%;}
/* Focus Contatti */
#focus_contatti h3,#about_timeline .et_pb_row_3 h3{text-decoration-color:var(--blue);}
#focus_contatti .et_pb_map_container,#focus_contatti .et_pb_map{height: 100%;}
#focus_contatti .et_pb_text p, #focus_contatti input, #focus_contatti textarea{ 
    font-size: var(--p-S);
}
#focus_contatti .et_pb_contact_submit{font-size: var(--p-L);text-transform: uppercase;}

/* PAG INTERNE */
#top_pag .et-pb-parallax-background{
    background-position:center bottom 200px ;
}
#top_pag::before{
    content: '';
    display: block;
    position: absolute;
    background-color: rgba(0,0,0,.2);
    width: 100%;
    height: 100%;
    top:0;
    z-index: 1;
}
#top_pag h2,#top_pag h3{color: #fff;}
#top_pag h2{
    font-size: var(--h-L);
    font-weight: 900;
    text-transform: uppercase;
}
#top_pag h3{
    font-size: var(--p-L);
    font-weight: 600;
}
#intro_pag h2{
    font-size: var(--h-M);
    font-weight: 900;
    text-transform: uppercase;
}
#intro_pag h3{
    font-size: var(--p-R);
    font-weight: 600;
    margin-bottom: 3em;
}
#intro_pag p{font-size: var(--p-S);}

/* Chi Siamo */
.et_pb_timeline_date{
    font-size: var(--h-S);
    font-weight: 600;
    color: #222;
}
.et_pb_timeline_title{
    font-size: var(--p-S);
}
.et_pb_timeline_card{background-color:transparent;transition: all .5s;}
.et_pb_timeline_marker{background-color:#666;transition: all .5s;}
.et_pb_timeline_item:hover > .et_pb_timeline_card{
    background-color: #fff!important;
    border-radius: 10px;
}
.et_pb_timeline_item:hover > .et_pb_timeline_ornament .et_pb_timeline_marker{background-color: var(--blue)!important;}
#about_timeline .et_pb_row_3 h3{color: #222;}

/* FOOTER */
footer h2{font-size: var(--h-S);font-weight: 800;color: #fff;}
footer h3,footer li a{font-size: var(--p-S);}
footer h4{
    font-size: var(--p-L);
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-decoration-color:#222;
    text-underline-offset: 5px;
    text-decoration-thickness: 5px;
}
footer ul{flex-direction: column;}
footer p{ font-size: var(--p-XS);}
footer li a{color: #fff!important;}
footer li a:hover{opacity: 1!important;}
footer p,footer li a:hover{color: #222!important;}
footer .et_pb_row:last-child p{color:#fff!important;}