/*
 Theme Name:	Werther 2020
 Author:		Media Partner
 Author URI:	https://www.mediapartner.it/
 Template:		chaplin
 Text Domain:	werther
 Version:		1.2
*/

/*-----------------------------------------------------------------------------------

	1. 	General
	2. 	Header
	3. 	Elements
	4. 	Homepage
	5.	Content
	6.	Footer
	7.	Getwid
	8.	Other

----------------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------------------------- */
/*	1. General
/* --------------------------------------------------------------------------------------------- */

a {
	text-decoration: none !important;
}
a:hover {
	text-decoration: underline !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 12px;
}
::-webkit-scrollbar-track {
	background-color: #dddddd;
}
::-webkit-scrollbar-thumb {
	background-color: #777777;
}

/* Hide only in one language */
.hide-lang-it:lang(it) {
	display: none;
}
.hide-lang-en:lang(en) {
	display: none;
}

/* --------------------------------------------------------------------------------------------- */
/*	2. Header
/* --------------------------------------------------------------------------------------------- */

.header-inner.is-sticky {
	background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Logo roation effect */
/*
.site-logo img {
	transition: all .3s ease !important;
	-webkit-transition: all .3s ease !important;
}
.site-logo img:hover {
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
}
*/

/* Logo media queries desktop */
@media (min-width: 1000px) {
	.site-logo img {
		max-height: 250px !important;
		position: absolute;
		top: 0;
	}
}
@media (min-width: 1000px) {
	.is-sticky .site-logo img {
		max-height: 120px !important;
		padding: 10px;
		position: static !important;
		top: initial !important;
	}
}
.sticky-adjuster {
	max-height: 90px;
}

/* Logo media queries tablet */
@media (max-width: 999px) {
	.site-logo img {
		max-height: 180px !important;
	}
}
@media (max-width: 999px) {
	.is-sticky .site-logo img {
		max-height: 120px !important;
		padding: 10px;
	}
}

/* Logo media queries mobile */
@media (max-width: 699px) {
	.site-logo img {
		max-height: 120px !important;
	}
}
@media (max-width: 699px) {
	.is-sticky .site-logo img {
		max-height: 100px !important;
		padding: 10px;
	}
}

#site-header {
	padding: 20px 0 !important;
}

/* Navigation menu */
.menu-item-has-children .link-icon-wrapper:hover {
	cursor: pointer;
}
@media (max-width: 999px) {
	#site-header {
		margin-bottom: 0 !important;
	}
}
@media (min-width: 1000px) {
	#site-header {
		margin-bottom: 100px !important;
	}
}
body.admin-bar #site-header, body.admin-bar .is-sticky {
	top: 32px !important;
}
@media (max-width: 782px) {
	body.admin-bar #site-header, body.admin-bar .is-sticky {
		top: 46px !important;
	}
}
@media (max-width: 600px) {
	body.admin-bar .is-sticky {
		top: 0px !important;
	}
}
#site-header .main-menu-alt ul {
	color: #ffffff;
	box-shadow: 0 0 20px rgba(0,0,0,.1);
}

/* Language selector sub-menu */
li#menu-item-wpml-ls-2-it .sub-menu, li#menu-item-wpml-ls-2-en .sub-menu {
	width: 58px;
}

/* Cover header */
.cover-header {
	max-height: 500px;
	min-height: inherit !important;
}
@media (min-width: 700px) {
	.cover-header {
		height: 700px !important;
	}
	.cover-header-inner {
	    padding: 240px 0 160px !important;
		position: absolute;
		top: 0;
	}
}
@media (max-width: 699px) {
	.cover-header-inner {
	    padding: 140px 0 70px !important;
	}
}
.to-the-content-wrapper {
	display: none;
}
.no-touchevents .bg-attachment-fixed {
    background-attachment: inherit !important;
}
@media (min-width: 700px) {
	.cover-header.has-two-lines-title, .cover-header.has-excerpt {
		max-height: 550px;
	}
	.cover-header.has-three-lines-title {
		max-height: 650px;
	}
}

/* Cluttered menu fix for smaller screens */
@media (max-width: 1150px) {
	.main-menu-alt-container {
		margin-left: 230px !important;
	}
}

/* --------------------------------------------------------------------------------------------- */
/*	3. Elements
/* --------------------------------------------------------------------------------------------- */

/* H1 titles */
@media (min-width: 700px) {
	h1 {
  	  font-size: 60px !important;
	}
}
@media (max-width: 699px) {
	h1 {
		font-size: 40px !important;
	}
}
.entry-header {
	text-align: center;
	z-index: auto !important;
}
h1.entry-title {
	margin-bottom: 10px !important;
	line-height: 1.1 !important;
}

/* H2 titles */
@media (max-width: 699px) {
	h2 {
		font-size: 32px !important;
	}
}
h2 {
	margin: 40px 0 !important;
}
h2:first-child {
	margin-top: 0 !important;
}
h2.entry-excerpt {
	font-size: 30px;
	margin-top: 0 !important;
	margin-bottom: 20px !important;
}
@media (max-width: 699px) {
	h2.entry-excerpt {
		font-size: 22px !important;
	}
}

/* Separators */
@media (min-width: 700px) {
	hr {
		margin: 60px 0 !important;
	}
}

/* Lists */
.entry-content ul:not(.blocks-gallery-grid), ol {
	margin-left: 20px !important;
}

/* Table fixes */
table {
	margin: 0 !important;
	font-size: 17px !important;
	table-layout: auto !important; /* mantain 100% width on large screens */

}
.wp-block-table {
	overflow-x: auto; /* add scrollbar when necessary */
	display: block;
}
.wp-block-table:not(:first-child) {
	margin-top: 40px;
}
table td {
	min-width: 100px;
	padding: 10px;
}
/* Tables from mobile */
@media only screen and (max-width: 991px) {
	table tr {
		font-size: 15px;
	}
}

/* Edit post button */
.post-edit-link {
	display: none !important;
}

/* Post content inner */
.post-inner {
	padding-top: 80px !important;
}
.home .post-inner {
	padding-top: 0 !important;
}

/* Google Maps block */
.googlemaps iframe {
	max-height: 500px;
}

/* Gallery block image */
.blocks-gallery-item {
	box-shadow: 0 0 20px rgba(0,0,0,.1) !important;
}
.wp-block-gallery .blocks-gallery-item figcaption {
	color: #000000;
	background: linear-gradient(0deg,rgba(255,255,255,.7),rgba(255,255,255,.3) 70%,transparent);
}

/* Password input */
input[type="password"] {
	max-width: 300px !important;
	margin-bottom: 20px !important;
}

/* --------------------------------------------------------------------------------------------- */
/*	4. Homepage
/* --------------------------------------------------------------------------------------------- */

/* Home header overlay */
.home #site-header {
	margin: 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 2;
}
.home #site-header .header-inner:not(.is-sticky) .menu-item, .home #site-header .header-inner:not(.is-sticky) .toggle {
	color: #ffffff;
}
.home #site-header .header-inner:not(.is-sticky) .sub-menu .menu-item {
	color: #000000;
}

/* H1 title on homepage */
.home .entry-header {
	display: none;
}
.home .home-title {
	line-height: 1.1;
	font-size: 40px !important;
}
.home .home-title::first-line {
	font-size: 100px;
}
@media (max-width: 999px) {
	.home .home-title::first-line {
		font-size: 80px;
	}
	.home .home-title {
		font-size: 35px !important;
	}
}
@media (max-width: 699px) {
	.home .home-title::first-line {
		font-size: 70px;
	}
	.home .home-title {
		font-size: 30px !important;
	}
}
.home hr {
	margin: 20px 0 !important;
	border-top: 2px solid currentColor;
}

/* Homepage top section-slider */
.home .wp-block-getwid-section:first-child {
	z-index: -1;
}
@media (min-width: 700px) {
	.home .wp-block-getwid-section:first-child {
		margin-bottom: -20px;
	}
}
@media (max-width: 700px) {
	.home .wp-block-getwid-section .wp-block-getwid-section__wrapper:first-child {
		min-height: 400px !important;
	}
	.home .wp-block-getwid-section .wp-block-getwid-section__wrapper:first-child .is-bottom-divider svg {
		height: 50px !important;
	}
}
.home .wp-block-getwid-section:first-child h3 {
	margin-top: 20px !important;
}

/* --------------------------------------------------------------------------------------------- */
/*	5. Content
/* --------------------------------------------------------------------------------------------- */

/* Full width fixes */
.entry-content, .wp-block-group {
	max-width: 100% !important;
}
.entry-content > .alignwide {
	max-width: 100% !important;
	width: 100% !important;
}
@media (max-width: 999px) {
	.section-inner {
		width: calc( 100% - 8rem ) !important;
	}
	.entry-content > .alignfull {
		margin-left: -40px !important;
	}
}
@media (max-width: 699px) {
	.entry-content > .alignfull {
		margin-left: -32px !important;
	}
}

/* Always hide feauted image */
.featured-media {
	display: none;
}

/* Post meta */
.post-meta {
    margin: 0 !important;
}
.post-meta li {
	margin: auto !important;
}

/* WP columns */
@media (min-width: 782px) {
	.wp-block-column:not(:first-child) {
		margin-left: 40px;
	}
}

/* PDF download buttons */
.pdf-link .wp-block-button__link:before {
	content: "\f1c1";
	font-family: 'Font Awesome 5 Free';
	font-size: 18px;
	font-weight: 900;
	margin-right: 10px;
	color: #ffffff;
}

/* Extra products section */
.extra-products-section {
	max-width: 50%;
	margin: auto;
	padding-bottom: 20px;
	display: none;
}
@media (max-width: 999px) {
	.extra-products-section {
		max-width: 80%;
	}
}
.extra-products-section figure {
	margin: 0;
}
.extra-products-section a img:hover {
	transform: scale(1.08);
	-webkit-transform: scale(1.08);
}
.extra-products-section a img {
	transition: all .3s ease;
	-webkit-transition: all .3s ease;
	width: 100%;
	box-shadow: 0 0 20px rgba(0,0,0,.1) !important;
}

/* Search and Archive page */
.search .grid-item .preview-media, .archive .grid-item .preview-media {
	box-shadow: 0 0 20px rgba(0,0,0,.1) !important;
}
.search .faux-image, .archive .faux-image {
	background-size: contain !important;
}
.search .archive-header, .archive .archive-header {
	text-align: center;
}
.search .archive-header .intro-text, .archive .archive-header .intro-text {
	margin: 20px auto;
}
.search h2.preview-title, .archive h2.preview-title  {
	color: #ff0000;
	text-align: center;
}
.search .no-search-results-form {
	text-align: center;
}
.search form {
	display: inline-block;
}

/* Catalogues and Videos page */
.catalogues-thumbs img, .videos-thumbs img {
	box-shadow: 0 0 20px rgba(0,0,0,.1);
	width: 100%;
}
.catalogues-thumbs h3, .videos-thumbs h3 {
	margin-top: 20px;
}
.catalogues-thumbs a, .video-link a {
	color: #ff0000 !important;
	font-weight: 500;
}
.catalogues-thumbs .pdf-link:before {
	content: "\f1c1";
	font-family: 'Font Awesome 5 Free';
	font-size: 18px;
	font-weight: 900;
	margin-right: 10px;
	color: #ff0000;
}
.videos-thumbs .video-link:before {
	content: "\f144";
	font-family: 'Font Awesome 5 Free';
	font-size: 18px;
	font-weight: 900;
	margin-right: 10px;
	color: #ff0000;
}
.call-video-popup {
	display: none;
}

/* Investors page */
.investors .pdf-link a:before {
	content: "\f1c1";
	font-family: 'Font Awesome 5 Free';
	font-size: 18px;
	font-weight: 900;
	margin-right: 10px;
	color: #ff0000;
}
.investors ul {
	list-style-type: none;
	margin-left: 0 !important;
}
.investors li {
	margin-left: 0 !important;
}
.investors-statement, .privacy-policy, .page-id-2643 {
	text-align: justify;
}

/* --------------------------------------------------------------------------------------------- */
.page-id-184 .post-nav-links {
	display: none;
}
.catalogues-thumbs img {
	margin: auto;
}
.catalogues-thumbs figcaption {
	text-align: center;
	font-size: 18px;
}
@media (max-width: 781px) and (min-width: 600px) {
	.catalogues-thumbs .wp-block-column {
		margin: auto;
	}
	.catalogues-thumbs .wp-block-column {
		padding: 0 10px 40px;
	}
}
/* --------------------------------------------------------------------------------------------- */

/* Previous-next page buttons */
.previous-page {
	float: left;
	text-align: left;
}
.next-page {
	float: right;
	text-align: right;
}
.previous-page, .next-page, .page-navigation {
	padding-top: 20px;
}

/* --------------------------------------------------------------------------------------------- */
/*	6. Footer
/* --------------------------------------------------------------------------------------------- */

#site-footer {
	background-color: #f8f8f8;
}
.footer-widgets-outer-wrapper {
	border-style: none !important;
	margin-bottom: 40px !important;
}
.widget:first-child {
	border-top: none;
}

/* --------------------------------------------------------------------------------------------- */
/*	6. Getwid
/* --------------------------------------------------------------------------------------------- */

/* ---------- Getwid Slider ----------*/

/* Getwid boxed content */
.wp-block-getwid-section__inner-wrapper {
    max-width: 1120px !important;
}
.wp-block-getwid-section__wrapper {
	padding-left: 30px;
	padding-right: 30px;
}

/* Slider next-prev buttons */
.wp-block-getwid-images-slider .slick-prev, .wp-block-getwid-images-slider .slick-next,
.wp-block-getwid-media-text-slider .slick-prev, .wp-block-getwid-media-text-slider .slick-next {
	text-shadow: none !important;
}
.slick-next:before, .slick-prev:before {
	font-size: 40px;
	opacity: .5;
	transition: all .3s ease;
	-webkit-transition: all .3s ease;
}
.slick-next, .slick-prev {
	width: 40px;
	height: 40px;
	background-color: transparent !important;
}
.wp-block-getwid-media-text-slider .slick-next {
	right: 30px;
}
.wp-block-getwid-media-text-slider .slick-prev {
	left: 30px;
}

/* Max width for slider inner content */
.wp-block-getwid-media-text-slider-slide-content {
    max-width: 1200px;
}

/* Left margin fix for mobile */
@media screen and (max-width: 699px) {
	.getwid-margin-left-none {
		margin-left: -15px !important;
	}
}

/*---------- Getwid Custom Post Type ----------*/

.wp-block-getwid-custom-post-type__post-wrapper {
	display: block !important; /* remove flex to avoid IE bugs */
}
.wp-block-getwid-custom-post-type__post-thumbnail a img {
	box-shadow: 0 0 20px rgba(0,0,0,.1) !important;
}

/* Titles */
.wp-block-getwid-custom-post-type__content-wrapper {
	width: 100%;
	padding-bottom: 30px !important;
}
.wp-block-getwid-custom-post-type h3 {
	font-size: 25px;
	text-align: center;
}

/* Excerpts */
.wp-block-getwid-custom-post-type__post-excerpt {
	display: none;
	text-align: center;
}
.parent-pageid-121 .wp-block-getwid-custom-post-type__post-excerpt,
.parent-pageid-1933 .wp-block-getwid-custom-post-type__post-excerpt {
	display: block !important;
}

/* Media queries for columns */
.getwid-columns.getwid-columns-4 > *, .getwid-columns.getwid-columns-3 > * {
	width: 100% !important;
	padding-left: 15px;
	padding-right: 15px;
}
@media screen and (min-width: 700px) {
	.getwid-columns.getwid-columns-4 > *, .getwid-columns.getwid-columns-3 > * {
		width: 50% !important;
	}
}
@media screen and (min-width: 1000px) {
	.getwid-columns.getwid-columns-4 > * {
		width: 25% !important;
		margin-bottom: 0;
	}
	.getwid-columns.getwid-columns-3 > * {
		width: calc(100% / 3) !important;
		margin-bottom: 0;
	}
}

/* Hover effect */
.wp-block-getwid-custom-post-type__post-thumbnail a img:hover {
	transform: scale(1.08);
	-webkit-transform: scale(1.08);
}
.wp-block-getwid-custom-post-type__post-thumbnail a img {
	transition: all .3s ease;
	-webkit-transition: all .3s ease;
}
.wp-block-getwid-custom-post-type {
	overflow: visible !important;
}

/* --------------------------------------------------------------------------------------------- */
/*	8. Other
/* --------------------------------------------------------------------------------------------- */

/* Breadcrumbs */
#breadcrumbs {
	transition: all .3s ease;
	-webkit-transition: all .3s ease;
	opacity: .8;
}
#breadcrumbs:hover {
	opacity: 1;
}

/* WP Popups fixes */
@media (min-width: 1000px) {
	.spu-box {
		height: 400px !important;
	}
}
@media (max-width: 999px) {
	.spu-box {
		max-width: 60% !important;
	}
}
@media (min-width: 999px) {
	.spu-box {
		position: fixed !important;
		margin: auto 0;
		left: auto !important;
		right: 0 !important;
	}
}
a.spu-close {
	top: 10px;
	right: 10px;
}

a.spu-close:hover {
	text-decoration: none !important;
}

/* Cookie notice */
#cn-notice-text, .cn-button {
	font-family: "Roboto", sans-serif !important;
	font-size: 15px !important;
}
.cn-button {
	color: #000000 !important;
	background: #dddddd !important;
	min-height: 0;
}
@media (max-width: 1200px) {
	.cookie-notice-container #cn-notice-text {
		display: block;
		margin-bottom: 15px;
	}
}
#cookie:before {
	content: '';
	display: block;
	height: 180px;
	margin-top: -180px;
}
.cn-close-icon:after, .cn-close-icon:before {
	background-color: #ffffff !important;
}

/* ---------- Cookie Notice v2 ---------- */
#moove_gdpr_cookie_info_bar, .gdpr_lightbox {
	z-index: 999999 !important;
}
.moove-gdpr-info-bar-container {
	padding: 30px !important;
    border-radius: 5px;
}
.moove-gdpr-cookie-notice span {
	font-size: 14px !important;
}
#moove-gdpr-menu li button {
	background-color: #ffffff !important;
}
#moove-gdpr-menu .menu-item-selected button {
	background-color: #f1f1f1 !important;
}
.moove-gdpr-cookie-notice h2 {
	margin-bottom: 15px !important;
}
.moove-gdpr-modal-content button {
	border-width: 2px !important;
}
.moove-gdpr-tab-main-content {
	overflow: visible !important;
}
.moove-gdpr-branding-cnt {
	display: none;
}
@media (max-width: 767px) {
	.moove-gdpr-info-bar-container {
		margin: 0 20px;
	}
	.moove-gdpr-modal-right-content {
		padding: 30px !important;
	}
	.moove-gdpr-button-holder {
		flex-wrap: nowrap !important;
	}
	.moove-gdpr-company-logo-holder {
		text-align: center !important;
	}
	.gdpr-svg-icon svg {
		margin: auto;
	}
}

/* Contact Form 7 */
.wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

/* Dealers map */
#map tspan {
	display: none !important;
}
#map {
	margin-top: 50px;
}
.simplemaps {
	color: #999999;
	font-size: 15px;
}
@media (max-width: 981px) {
	.simplemaps {
		font-size: 10px;
	}
}
.tt_sm h3, .tt_sm h4, .tt_sm h5 {
	margin-top: 0;
	margin-bottom: 0;
}
.tt_sm {
	border-radius: 10px !important;
	border: solid 3px #666666;
	box-shadow: none !important;
	padding: 15px !important;
	font-family: "Roboto", sans-serif !important;
	font-size: inherit !important;
	line-height: inherit !important;
	width: max-content;
	max-width: 340px;
}
@media (max-width: 981px) {
	#tt_sm_map .tt_sm {
			transform: scale(0.8);
	}
	.tt_sm {
			transform: scale(0.8);
			transform-origin: top center;
	}
}
.tt_name_sm {
	padding-bottom: 10px;
	text-transform: uppercase;
	font-size: 22px;
}
.tt_custom_sm {
	overflow-y: auto !important;
	max-height: 400px;
}
.tt_custom_sm img {
	border-radius: 25px !important;
/*	border: solid 4px #ff0000; */
	margin-bottom: 10px;
	box-shadow: 5px 5px 10px rgba(0,0,0,.2);
}
.tt_custom_sm hr {
	margin: 25px 0 !important;
}
.tt_sm .wp-block-image {
	margin-bottom: 0;
}
.wp-block-group.tt_sm {
	width: max-content;
	margin: auto;
}
.manager_railway_1 {
	margin-right: 30px !important;
}
.manager_railway_2 {
	margin-left: 30px !important;
}

/* Custom filters */
.filtered-grid,
.unfiltered-grid-1,
.unfiltered-grid-2,
.unfiltered-grid-3 {
	display: none;
	margin-top: 30px !important;
}
.show {
	display: block !important;
}
.filtered-grid img {
	box-shadow: 0 0 20px rgba(0,0,0,.1);
	transition: all .3s ease;
	-webkit-transition: all .3s ease;
}
.filtered-grid .pt-cv-content-item, .filtered-grid .pt-cv-ifield {
	overflow: visible;
}
.filtered-grid .pt-cv-content-item {
	padding-bottom: 60px;
}
.filtered-grid img:hover {
	transform: scale(1.08);
	-webkit-transform: scale(1.08);
}
.cvp-live-filter select {
	padding: 8px;
}
.pt-cv-pagination-wrapper {
	display: none;
}
.pt-cv-pagination-wrapper a:hover {
	text-decoration: none !important;
}
div.cvp-live-filter:before {
	font-size: 18px;
	font-weight: 500;
	display: block;
	margin-bottom: 8px;
}
.cvp-live-filter {
	margin-bottom: 30px;
}
div.cvp-live-filter[data-name="capacity"]:lang(en):before {
	content: 'Capacity';
}
div.cvp-live-filter[data-name="technology"]:lang(en):before {
	content: 'Technology';
}
div.cvp-live-filter[data-name="maxcapacity"]:lang(en):before {
	content: 'Max. Capacity';
}
div.cvp-live-filter[data-name="measurements"]:lang(en):before {
	content: 'Measurements';
}
div.cvp-live-filter[data-name="capacity"]:lang(it):before {
	content: 'Portata';
}
div.cvp-live-filter[data-name="technology"]:lang(it):before {
	content: 'Tecnologia';
}
div.cvp-live-filter[data-name="maxcapacity"]:lang(it):before {
	content: 'Capacità Max.';
}
div.cvp-live-filter[data-name="measurements"]:lang(it):before {
	content: 'Misurazioni';
}
.cvp-live-filter .checkbox, .cvp-live-filter .radio {
	display: inline-block;
	width: auto;
	margin-right: 30px;
}
@media (max-width: 499px) {
	.cvp-live-filter .checkbox, .cvp-live-filter .radio {
		width: 100%;
	}
}