/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

body .ml-container .ml-form-container { flex-direction: column !important; }

.single-faq #main-content { background-color: #f8f8f9; }

.section-chat-inner { max-width: 1140px !important; }

/* Typography */
/* p { font-weight: 400; } */
.bold { font-weight: bold; }
.normal { font-weight: normal; }
.h3-nomargin h3 { margin: 0 !important; padding: 0; }
.h2-no-padding h2 {padding: 0 !important; }

/* Breadcrumb */
.fbc-page .fbc-wrap { padding-left: 10px; }
.fbc-page .fbc-wrap .fbc-items { font-family:'Montserrat', sans-serif !important; }
.fbc-page .fbc-wrap .fbc-items li { padding-left: 10px; padding-right: 10px; }
.fbc-page .fbc-wrap .fbc-items li:first-child { padding-left: 0; }
.page-id-13391 .subheader { display: none; } 
.page-id-17585 .subheader { display: none; } 
body.fornitori .subheader { display: none; } 

/* General */
.home #main-header .subheader { display: none; }
.page-template-page-download #main-content { background-color: #f3f3f3; }
#main-header { box-shadow: none; }
.img-border { border: 1px solid #eee; }

/* Fix */
.page .et_pb_section_0 .et_pb_text_inner { display: none; }
.page-id-17585 .et_pb_section_0 .et_pb_text_inner { display: block; }

/* Header */
.header-menu .et_pb_menu_inner_container { width: 100%; }
.header-menu li { height: 49px; margin: 0 !important; display: flex; align-items: center !important; }
.header-menu li a { padding-bottom: 0 !important; }
.header-menu > li.current-menu-item { border-bottom: 2px solid #006240; }
.header-menu .et-menu.nav { margin: 0 !important }
.header-menu .sub-menu li { padding-left: 0; padding-right: 0; display: flex; align-items: center; text-align: left !important; }
.et_mobile_menu li { text-align: left !important; }
.header-menu .sub-menu li a:hover { background: #fff; }
.header-menu .sub-menu { border-radius: 3px; box-shadow: rgba(15, 15, 15, 0.08) 0px 4px 12px, rgba(15, 15, 15, 0.2) 0px 9px 24px; }
.header-menu .et-menu li li.menu-item-has-children>a:first-child:after { top: 6px; transform: rotate(-90deg); }
.header-menu .et_pb_fullwidth_menu .et-menu-nav>ul ul, .et_pb_menu .et-menu-nav>ul ul { padding: 10px 0; }
.header-menu .et-menu li li a { width: 240px; }
.nav li li { line-height: 1.4em; }
.nav li ul { width: 260px; }
.preheader .nav li ul { width: 200px; }
.preheader .et_pb_menu .et_pb_menu__menu>nav>ul>li>ul { left: initial !important; right: 0; }
.et-menu li li.menu-item-has-children>a:first-child:after { right: 0; }

/* Home Media Room */
.media-room article { /* display: grid; */ grid-template-columns: 23% 75%; grid-template-rows: repeat(3, auto); grid-column-gap: 2%; grid-row-gap: 0px; border-bottom: 1px solid #eee !important; margin-bottom: 20px; padding-bottom: 20px; }
.media-room article:last-child { border-bottom-width: 0px !important; margin-bottom: 0; padding-bottom: 0; }
.media-room .entry-featured-image-url { grid-area: 1 / 1 / 4 / 2; margin-bottom: 0; pointer-events: none; width: 100%; max-width: 100%; display: block; padding-bottom: 56%; }
.media-room .entry-featured-image-url img { border: 1px solid #eee !important; position: absolute; object-fit: cover; width: 100%; height: 100%; }
.media-room .entry-title { grid-area: 2 / 2 / 3 / 3; font-size: 20px; }
.media-room .post-meta { grid-area: 1 / 2 / 2 / 3; font-size: 14px !important; }
.media-room .post-content { grid-area: 3 / 2 / 4 / 3; font-weight: 400; }
.media-room .post-content p { padding-bottom: 7px; }
.media-room .post-content p:last-child { padding-bottom: 0; }
.media-room .entry-title a { pointer-events: none; }
.media-room .post-content a { font-weight: bold; }

/* Page search */
.menu-cerca { position: absolute !important; right: 0 !important; font-size: 0; }
.menu-cerca a { font-size: 0; line-height: 0; }
.menu-cerca a:after {
	content: '';
	background: url('https://www.todis.it/affiliati/wp-content/themes/Todis/imgs/search-icon-menu.png');
	background-size: cover;
	width: 16px;
	height: 16px;
	display: block;
	font-size: 0;
}
.section-search { margin: -20px 0 30px 0; background: #fff; }
.section-search-inner { width: 80%; max-width: 1080px; margin: 0 auto; padding: 20px 0; }
.section-search form {
	margin-top: 10px;
  position: relative;
  display: table;
  border-collapse: separate;
}

.section-search input { 
	border: 1px solid #d1d1d1;
  display: inline-block; 
  border-radius: 3px;
  margin: 0 0.5em 0 0;     
  outline: none; -moz-box-shadow: inset 0 2px 0 0 #f6f6f6;
  -webkit-box-shadow: inset 0 2px 0 0 #f6f6f6;
	box-shadow: inset 0 2px 0 0 #f6f6f6;     position: relative;
	z-index: 2;
	float: left;
  width: 100%;
  height: 46px;
  padding: 10px 16px;
  line-height: 1.33333;
  color: #006240;
  font-size: 1.25em;
  font-weight: bold;
}

.section-search .input-group-btn {
  position: relative;
  font-size: 0;
  white-space: nowrap;
  vertical-align: middle;
  width: 1%;
  display: table-cell;
  box-sizing: border-box;
  border-collapse: separate;
  line-height: 1.3;
  color: #606060;
}

.section-search .btn-blue {
  color: #fafafa;
  border-color: #006240;
  background: #006240;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  padding: 0;
  height: 46px;
  width: 46px;
  font-size: 18px;
  position: relative;
	line-height: 1;
  border-radius: .3rem;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -webkit-appearance: button;
  cursor: pointer;
  margin-left: -1px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

/* Page download */
.page-template-page-download #main-content .container:before { display: none; }
.page-template-page-download.et_right_sidebar #left-area { width: 100%; }
.section-download { margin: 0 0 30px 0; background: #fff; }
.section-download-inner { width: 80%; max-width: 1140px; margin: 0 auto; padding: 20px 0; }
table { border: 1px solid rgba(222, 222, 222, 0.7); width: 100%; background: #fff; position: relative; z-index: 1; }
table tr { display: flex; align-items: center; flex-wrap: wrap; border-bottom: 1px solid rgba(222, 222, 222, 0.7); }
table tr:first-child { background: #f4f4f4; }
table td { padding: 15px 10px; word-break: break-word; }
table td p { font-weight: 300; }
table td:nth-child(2) { width: 45%; order: 1; }
table td:nth-child(1) { width: 14%; order: 2; text-align: center; }
table td:nth-child(3) { width: 15%; order: 3; text-align: center;  }
table td:nth-child(4) { width: 13%; order: 4; text-align: center;  }
table td:nth-child(5) { width: 13%; order: 5; text-align: center; }
.download-icon img { width: 20px; }

.table-home table tr { display: flex; align-items: center; flex-wrap: wrap; border-bottom: 1px solid rgba(222, 222, 222, 0.7); }
.table-home table tr:nth-child(1) { background: #f3f3f3; }
.table-home table td:nth-child(2) { width: 60%; order: 1; border: none; }
.table-home table td:nth-child(1) { width: 20%; order: 2; text-align: center; border: none; }
.table-home table td:nth-child(3) { display: none; }
.table-home table td:nth-child(4) { display: none; }
.table-home table td:nth-child(5) { width: 20%; order: 5; text-align: center; border: none; }

.section-download-inner { position: relative; }
.section-download-inner table { z-index: 1; position: relative; background: #fff; }
.section-download-inner:after { content: 'Nessun download disponibile al momento.'; position: absolute; top: 100px; z-index: 0; }


/* Cambia password */
.uwp_page .card-title { font-size: 20px; margin-bottom: 15px !important; }
.uwp-change-form input { border-radius: 3px !important; font-weight: 400 !important; font-size: 14px !important; }
.uwp-footer-links { display: none; }
.uwp-change-form .btn-block { background-color: #2a2e35; text-transform: initial !important; font-weight: 400 !important; }

/* Footer */
#main-footer {width: 100%; margin: 0 auto; border-top: 1px solid #dedede; font-weight: 400; }
#main-footer .container { width: 100%; }
#footer-info { display: flex; justify-content: space-between; width: 100%; }
#footer-info .footer-left { text-align: left; margin-right: 15px; }
#footer-info .footer-right { text-align: right; margin-left: 15px; }

/* Page */
.page .entry-content { font-weight: 400; color: #666; font-size: 15px; }
.page .entry-content h2, .page .entry-content h3 { padding-top: 0; padding-bottom: 0; }
.page .entry-content { padding-bottom: 20px; }
.page.home .entry-content { padding-bottom: 0; }
.page .et_pb_section_0 { padding: 35px 0; }
.page.home .et_pb_section_0 { padding: 0; }

/* Tablets in landscape mode (981-1100px) */
@media only screen and ( min-width: 981px ) and ( max-width: 1100px ) { 
    #footer-info { padding-left: 15px; padding-right: 15px; }
}

/* Tablets in portrait mode (768-980px) */
@media only screen and ( min-width: 768px ) and ( max-width: 980px ) {
  #footer-info { padding-left: 15px; padding-right: 15px; }
  .user-menu { top: -35px !important; }
	.user-menu .et_pb_menu_1_tb_header { transform: translateX(-15%); }
	.user-menu .et_pb_menu__wrap .mobile_menu_bar { transform: translateY(30%); }
	.user-menu .et_mobile_nav_menu { width: 200px; display: flex; justify-content: flex-end; }
	.mobile-header .et_pb_column { margin-bottom: 0; }
	
	.mobile-main-menu .et_mobile_nav_menu { display: none; }
	.mobile-main-menu .et_pb_menu__menu { display: block; }
	.mobile-main-menu .header-menu li { height: 35px; }
	
	.header-menu .et-menu li li a { width: 180px; }
	.header-menu .nav li ul { width: 180px; }
	
	.header-menu .et-menu li li.menu-item-has-children>a:first-child:after { display: none; }
}

/* Smartphones in landscape mode (480-768px) */
@media all and (max-width: 980px) {
    .section-download-inner, .section-search-inner { width: 90%; }
}

/* Smartphones in portrait mode (0-479px) */
@media only screen and ( max-width: 479px ) {
	header { overflow-x: clip; }
	.header-menu .et-menu li li a { padding: 6px 10px; }
	.fbc-page .fbc-wrap { padding-left: 0; }
	.fbc-page .fbc-wrap .fbc-items li { padding-left: 5px; padding-right: 5px; }
	.section-download-inner { width: 95%; }
	table tr { padding: 10px 0; }
	table tr:nth-child(1) { display: none; }
	table td { padding: 10px 10px; }
	table td:nth-child(2) { width: 100%; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }
	table td:nth-child(2) a { font-size: 110%; }
	table td:nth-child(1) { width: 33%; text-align: left; padding: 0 10px 10px; font-weight: 300; }
	table td:nth-child(3) { width: 33%; padding: 0 10px 10px; font-weight: 300; }
	table td:nth-child(4) { display: none; }
	table td:nth-child(5) { width: 33%; text-align: right; padding: 0 10px 10px; }
	#footer-info { padding-left: 15px; padding-right: 15px; }
	#footer-bottom .container { width: 100% !important; }
	
	.table-home table td:nth-child(2) { width: 100%; padding: 10px !important; }
	.table-home table td:nth-child(1) { width: 50%; text-align: left; }
	.table-home table td:nth-child(5) { width: 50%; text-align: right; }
	
	.user-menu { top: -35px !important; }
	.user-menu .et_pb_menu_1_tb_header { transform: translateX(-15%); }
	.user-menu .et_pb_menu__wrap .mobile_menu_bar { transform: translateY(30%); }
	.user-menu .et_mobile_nav_menu { width: 200px; display: flex; justify-content: flex-end; }
	.mobile-header .et_pb_column { margin-bottom: 0; }
	
	.mobile-main-menu .et_mobile_nav_menu { display: none; }
	.mobile-main-menu .et_pb_menu__menu { display: block; }
	.mobile-main-menu .header-menu li { height: 35px; }
	
	.header-menu .et-menu li li a { width: 180px; }
	.header-menu .nav li ul { width: 180px; }
	.header-menu .et-menu li { padding-left: 6px; padding-right: 6px; }
	
	.header-menu .et-menu li li.menu-item-has-children>a:first-child:after { display: none; }
	
	.media-room article { grid-template-columns: 100%; grid-template-rows: repeat(4, auto); }
	.media-room .entry-featured-image-url { grid-area: 1 / 1 / 2 / 2; margin-bottom: 15px; }
	.media-room .entry-title { grid-area: 3 / 1 / 4 / 2; }
	.media-room .post-meta { grid-area: 2 / 1 / 3 / 2 ; }
	.media-room .post-content { grid-area: 4 / 1 / 5 / 2; }
	
	.section-search-inner { width: 90%; }
}

.singolo-post-foto img { width: 100%; }