/*
Theme Name:     Subtheme
Theme URI:
Description:    Divi child theme.
Author:         Me
Author URI:
Template:       Divi
Version:        0.1.0
*/

/* sfondo: #439fc1 */

h1 {
  text-align: left;
}
h2 {
  font-weight: 600;
}
h3 {
  font-weight: 400 !important;
  text-align: center;
}
.h3-bordered h3 {
  display: inline-block;
  margin-bottom: 25px;
  padding: 0.15em 25px;
	font-size: 22px;
	/* font-weight: 700 !important; */
	color: #fff;
	background-color: #439fc1;
	border-radius: 20px;
}
h2>span.before {
  font-weight: 400;
  display: block;
}
.h-bordered h2,
.h-bordered h3 {
  display: inline-block;
  margin-bottom: 1.2em;
  padding: 0.15em 1.2em;
	/* font-weight: 700 !important; */
	color: #fff;
	background-color: #439fc1;
	border-radius: 1em;
}



/* applicato a colonna in cui centrare il contenuto */
.contenuto-al-centro {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* numero di telefono di contatti */
.numero-telefonico {
	margin: 0.5em 0;
	white-space: nowrap;
	display: inline-block;
	padding: 10px 10px 10px 40px;
	font-size: 1.4rem;
	font-weight: 700;
	border-radius: 0.75rem;
	background-color: #439fc1;
	color: #fff;
	background-image: url(/wp-content/uploads/2019/07/tel.png);
	background-repeat: no-repeat;
	background-size: 25px;
	background-position: 8px center;
}



#et-top-navigation {
  width: 100%;
  padding-left: 100px !important;
}
#top-menu, .fullwidth-menu, nav#top-menu-nav, nav.fullwidth-menu-nav {
  float: none;
  text-align: center;
}
#menu-principale.fullwidth-menu {
	padding: 20px 0 0 !important;
	line-height: 1em;
}
.fullwidth-menu li {
  line-height: 0;
}
.fullwidth-menu li > a {
  padding-bottom: 20px;
}
.current_page_item a {
  /* text-decoration: underline; */
}
.et_mobile_menu li a {
  text-transform: uppercase;
  text-align: center;
}


.et_pb_menu .et_pb_menu__menu > nav > ul {
  height: 54px;
  justify-content: center;
  align-items: center;
}



#logo {
	max-height: 90%;
}


@media only screen and (max-width: 980px) {
  .et_pb_menu .et_mobile_nav_menu {
    margin: 8px 40px;
  }
  .et_pb_menu .et_pb_menu_inner_container {
    display: flex;
    justify-content: end;
  }
  .et_pb_menu .et_mobile_menu li ul.sub-menu {
    display: none !important;
  }

  .a-left-on-mobile {
    text-align: left !important;
  }
}

/* Hide the header on desktop only */
@media only screen and (min-width: 981px) {

  header .et_pb_section {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    /* padding-top: 30px; */
  }

  #et-main-area {
		padding-top: 210px !important;
	}

  .et_pb_menu_0_tb_header.et_pb_menu .nav li ul.sub-menu {
    columns: 2;
    width: auto !important;
    max-height: none;
    background-color: #fff !important;
  }

  .et-l--header .et_pb_menu_0_tb_header.et_pb_menu ul.sub-menu li a {
    line-height: 1.2em;
    color: #444f58 !important;
    font-style: italic;
  }
  .et-l--header .et_pb_menu_0_tb_header.et_pb_menu ul.sub-menu li a[href] {
    color: #444f58 !important;
    font-style: normal;
  }
  .et-l--header .et_pb_menu_0_tb_header.et_pb_menu ul.sub-menu li.current-menu-item a {
    color: #444f58 !important;
  }
  .et-l--header .et_pb_menu_0_tb_header.et_pb_menu ul.sub-menu li.current-menu-item a[href] {
    color: #439fc1 !important;
  }

}


/* SOCIAL */

.et-social-icon {
  padding-right: 10px !important;
  top: 3px;
}
.et-social-icon a {
  color: rgba(255, 255, 255, 0.83);
  font-size: 28px;
  visibility: hidden;
  font-size: 0;
}
.et-social-icon a:hover {
  color: #fff;
}
.et-social-icon a::before {
	visibility: visible;
	font-size: 26px;
	line-height: 0;
	top: 5px;
	position: relative;
}
.et-social-skype a::before {
  content: "\e0b9";
}
.et-social-youtube a::before {
  content: "\e0ba";
}
.et-social-google-plus a::before {
  content: "\e0ad";
}
.et-social-facebook a::before {
    content: "\e0aa";
}
.et-social-instagram a::before {
    content: "\e0b1";
}
@media all and (max-width: 980px) {
  .et-social-icon {
    padding: 0 !important;
    text-align: center;
  }
  .et-social-icon a::before {
  	font-size: 32px;
  	top: 10px;
  }
  .et-social-icon > a {
    position: relative;
    display: inline-block !important;
    width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .et-social-facebook > a {
    right: 45px;
  }
  .et-social-instagram {
    height: 0;
  }
  .et-social-instagram > a {
    top: -44px;
    left: 15px;
  }
}


.maggiori-info.et_pb_button {
  font-size: 18px;
  color: #fff;
}


.et_pb_section.sezione-titolo {
  margin: 20px 0;
  padding: 0;
}
.sezione-titolo .et_pb_row {
  padding: 0;
}
.sezione-titolo h2 {
  line-height: 1.5em;
  padding: 0;
}

#icone {

}
#icone > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 20px;
}

#icone > div .servizio {
  flex: 1 1 auto;
  width: 100px;
  text-align: center;
}
#icone .servizio::before {
  content: '';
  display: block;
  width: 100%;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
}
#icone .servizio-1::before { background-image: url(/wp-content/themes/subtheme/images/icone-01.png); }
#icone .servizio-2::before { background-image: url(/wp-content/themes/subtheme/images/icone-02.png); }
#icone .servizio-3::before { background-image: url(/wp-content/themes/subtheme/images/icone-03.png); }
#icone .servizio-4::before { background-image: url(/wp-content/themes/subtheme/images/icone-04.png); }
#icone .servizio-5::before { background-image: url(/wp-content/themes/subtheme/images/icone-05.png); }
#icone .servizio-6::before { background-image: url(/wp-content/themes/subtheme/images/icone-06.png); }


#elenco-servizi ul {
  columns: 2;
  margin-left: 60px;
}
#elenco-servizi ul li {
  font-size: 15px;
  line-height: 1.5em;
}

@media all and (max-width: 980px) {
  #icone > div {
    padding: 0;
  }
  #icone .servizio::before {
    margin: 10px;
  }
}
@media all and (min-width: 479px) and (max-width: 800px) {
  #icone > div .servizio {
    width: 33%;
  }
}
@media all and (max-width: 767px) {
  #elenco-servizi {
    text-align: left;
    padding: 20px !important;
  }
  #elenco-servizi ul {
  	columns: auto;
  	display: inline-block;
  }
  #elenco-servizi ul li {
    text-align: left;
  }
}
@media all and (max-width: 479px) {
  #elenco-servizi {
    padding: 10px !important;
  }
  #elenco-servizi ul {
    margin-left: 0;
  }
  #icone > div .servizio {
    width: 50%;
  }

}


/* Barra di info */

/* ._section-fixed {
  position: fixed;
  z-index: 9999;
  width: 100%;
  top: 0;
}

._section-fixed:nth-child(2) {
	top: 169px;
}
.fixed-header ._section-fixed:nth-child(2) {
  top: 89px;
}
 */



.bar-info {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  margin: 50px 0;
  color: #444f58;
  transition: .2s;
}

.bar-info .info-item {
  padding-left: 70px;
  position: relative;
	background-size: 60px;
	background-position: left center;
	background-repeat: no-repeat;
  max-width: 245px;
	font-size: 13px;
	line-height: 1.3em;
	height: 70px;
  flex: 1 0 auto;
}
.bar-info .info-item::before {
	content: '';
	width: 0;
	height: 100%;
	position: absolute;
	left: 70px;
}
.bar-info .info-item p {
  margin: 1.2em 0;
  padding: 0 12px;
}
.bar-info .logo {
  flex-grow: 1;
  position: relative;
}
.bar-info .logo img {
  max-width: 130px;
  max-height: 130px;
  width: 100%;
}
.bar-info .logo a {
	position: absolute;
	top: -30px;
	height: 130px;
	width: 130px;
  transition: 0.3s;
}
.bar-info .info-item-time {
  background-image: url(/wp-content/themes/subtheme/images/icona-barra-time.png);
  max-width: 410px;
}
.bar-info .info-item-tel {
  background-image: url(/wp-content/themes/subtheme/images/icona-barra-tel.png);
}
.bar-info .telnum {
  font-size: 16px;
  line-height: 1.3em;
  font-weight: 700;
  color: inherit;
}


.fixed-header .bar-info {
  margin: 10px 0;
}
.fixed-header .bar-info .logo img {
  max-height: 85px;
}
.fixed-header .bar-info .logo a {
  top: -8px;
  height: 85px;
  width: 85px;
}


/* Box consulenza */

.box-consulenza {
  background-color: #2b689d;
  padding: 20px;
  display: flex;
  color: #fff;
}
.box-consulenza > div {
  flex: 1;
}
.box-consulenza h4, h5 {
  color: #fff;
  padding-bottom: 5px;
  font-size: 22px;
}
.box-consulenza h5 {
  font-size: 22px;
}
.box-consulenza p {
  font-size: 14px;
  line-height: 1.3em;
}
.box-consulenza .numero {
	background-color: #fff;
	color: #2b689d;
	border-radius: 1em;
	display: inline-block;
	padding: 0.2em 0.5em !important;
	line-height: 1em;
	font-weight: 700;
	font-size: 1.3em;
	white-space: nowrap;
}
.box-consulenza > div.immagine {
  flex: 110px 0 0;
  background-image: url(/wp-content/themes/subtheme/images/icona-consulenza.png);
  background-size: contain;
  background-repeat: no-repeat;
  min-height: 100px;
}
.box-consulenza > div.testo {
  flex: 2;
  margin: 0 0 0 15px;
  display: flex;
  align-items: center;
}
.home .box-consulenza > div.testo {
  margin: 0 0 0 15px;
}
.box-consulenza > div.azione {
  text-align: center;
  margin-left: 20px;
}

@media all and (max-width: 800px) {
  .box-consulenza {
    flex-wrap: wrap;
  }
  .box-consulenza > div.azione {
  	text-align: left;
  }
}



/* footer */

#main-footer {
  margin-top: 0;
}

#footer-bottom {
  display: none;
}

/* .footer-widget {

}
.footer-widget:nth-child(1) .fwidget {

}
.footer-widget:nth-child(2) {
  display: flex;
}
.footer-widget:nth-child(3) {
}

.footer-widget:nth-child(2) .fwidget {
}
.footer-widget:nth-child(2) .fwidget:nth-child(1) {
}
.footer-widget:nth-child(2) .fwidget:nth-child(2) {
  top: -38px;
  position: relative;
  flex: 0 1 120px;
  margin: 0 25px;
} */

footer .et_pb_row {
  padding: 3% 0;
}
footer .et_pb_column {
  display: flex;
  align-items: center;
  margin-right: 0 !important;
  width: 100% !important;
}
footer .et_pb_column .et_pb_module {
  margin-bottom: 0 !important;
  white-space: nowrap;
  color: #fff;
}
footer a {
  color: #fff !important;
}
footer .et_pb_column .et_pb_module:nth-child(1) {
  flex: 1;
  margin-bottom: 1em !important;
}
footer .et_pb_column .et_pb_module:nth-child(2) {
  flex: 0 0 350px;
}
footer .et_pb_column .et_pb_module:nth-child(3) {
  flex: 0 0 120px;
}
footer .et_pb_column .et_pb_module:nth-child(3) img {
  max-width: 120px !important;
}
@media all and (max-width: 980px) {
  footer .et_pb_column {
    flex-direction: column-reverse;
    text-align: center;
  }
  footer .et_pb_column .et_pb_module:nth-child(2) {
    flex: 0 1 auto;
    margin-bottom: 2em !important;
  }
}
@media all and (max-width: 479px) {

}




.et_pb_gallery.flex .et_pb_gallery_items {
	display: flex;
  justify-content: space-between;
}
.mfp-gallery figcaption {
    display: none;
}



/* -------479-------767/768-------782-------980/981-------1100-------1405------- */

@media all and (min-width: 981px) and (max-width: 1100px) {
  #section-vecchietti .et_pb_slider .et_pb_slide_0 {
  	background-position: -50px center;
  }
}

@media all and (max-width: 980px) {
  .et_pb_section {
    padding: 0;
  }
}

@media all and (min-width: 768px) and (max-width: 980px) {
  #section-vecchietti-2 .et_pb_slider .et_pb_slide_1 {
  	background-position: center;
  }
}


@media all and (max-width: 767px) {
  /* .home .et_pb_slide_0 .et_pb_container {
    width: 100% !important;
  }
  .home .et_pb_slides .et_pb_slider_container_inner {
  	vertical-align: bottom;
  }
  .home .et_pb_slide_description {
    text-align: center !important;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
  }
  .home .et_pb_slide_description h2.et_pb_slide_title {
    font-size: 20px !important;
    color: #fff;
  } */
}


@media all and (min-width: 479px) and (max-width: 800px) {
}


/*                                                                   1405------- */
/* Responsive Styles Large Desktop And Above */
@media all and (min-width: 1405px) {}

/*                                                        1100-------1405        */
/* Responsive Styles Standard Desktop Only */
@media all and (min-width: 1100px) and (max-width: 1405px) {}

/*                                              981-------1100-------1405        */
/* Responsive Styles Standard Desktop Only */
@media all and (min-width: 981px) and (max-width: 1405px) {}

/*                                              981-------1100-------1405------- */
/* Responsive Styles Desktop Only */
@media all and (min-width: 981px) {}

/*                                              981-------1100                   */
/* Responsive Styles 981px - 1100px */
@media all and (min-width: 981px) and (max-width: 1100px) {}

/* -------479-------767/768-------782-------980                                  */
/* Responsive Styles Tablet And Below */
@media all and (max-width: 980px) {}

/* -------479-------767/768-------782                                            */
/* Responsive Styles 782px */
@media screen and (max-width: 782px) {}

/* -------479-------767                                                          */
/* Responsive Styles Smartphone Only */
@media all and (max-width: 767px) {}

/* -------479                                                                    */
/* Responsive Styles Smartphone Portrait */
@media all and (max-width: 479px) {}

/* -------479-------767/768                                                      */
/* Responsive Styles Tablet Portrait And Below */
@media all and (max-width: 768px) {}

/*                      768-------782-------980                                  */
/* Responsive Styles Tablet Only */
@media all and (min-width: 768px) and (max-width: 980px) {}
