/*
Theme Name: Care for Rinaldin Group
Description: A child theme of Care for Rinaldin Group
Author: CARE Srl
Author URI: https://www.carecom.it
Version:1.1
Template: care-boilerplate
Text Domain: rinaldin
*/

@font-face {
    font-family: "Raleway";
    src: url("fonts/Raleway-ExtraLight.ttf");
    font-weight: 200;
}
@font-face {
    font-family: "Raleway";
    src: url("fonts/Raleway-Light.ttf");
    font-weight: 300;
}
@font-face {
    font-family: "Raleway";
    src: url("fonts/Raleway-Bold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: "Raleway";
    src: url("fonts/Raleway-ExtraBold.ttf");
    font-weight: 800;
}
@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Regular.ttf");
}
@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Light.ttf");
    font-weight: 300;
}
@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Bold.ttf");
    font-weight: bold;
}

:root {
	--raleway: 'Raleway', sans-serif;
	--roboto: 'Roboto', sans-serif;
	--orange: #af5f00;
	--orange-shadow: #8c4c00;
	--blue: #0094af;
	--blue-shadow: #00768c;
	--green: #6d9b4b;
	--green-shadow: #577c3c;
	--grey: #878787;
	--grey-shadow: #6c6c6c;
	--footer-bg: #e9e9e9;
	--sub_footer-bg: #b6b6b6;
	--form_input-bg: #565656;
	--text-color: #1d1d1b;
	--border-radius: 20px;
	--btn-border: 5px;
	--f12px: 0.750rem;
	--f13px: 0.813rem;
	--f15px: 0.938rem;
	--f16px: 1.000rem;
	--f18px: 1.125rem;
	--f20px: 1.250rem;
	--f22px: 1.375rem;
	--f40px: 2.500rem;
	--f60px: 3.750rem;
	--lh12px: 0.750rem;
	--lh22px: 1.375rem;
	--lh24px: 1.500rem;
	--lh33px: 2.063rem;
	--lh45px: 2.813rem;
	--boxes-gap: 45px;
	--site-padding: 50px;
	--section-border: 30px;
	--box-border: 20px;
	--box-shadow: 0 0 10px rgba(0, 0, 0, .2);
	--header-height: 125px;
}

html {
	font-family: var(--raleway);
	font-size: 16px;
}

p, span {
	font-weight: 300;
}

#page {
	position: relative;
}

.section {
    max-width: none;
    padding: var(--site-padding);
}
.section.no-pad {
	padding: 0;
}
.section.border {
	border-radius: var(--section-border);
	margin-top: calc(var(--site-padding) * -1);
	margin-bottom: calc(var(--site-padding) * -1);
	z-index: 2;
	background: #fff;
}

/* Style reset */
.page-content, .entry-content, .entry-summary {
    margin: 0;
}
#wpadminbar {
	display: none;
}


/* Header */
#masthead {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 30px var(--site-padding);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    margin-bottom: calc(var(--site-padding) * -1);
    box-shadow: var(--box-shadow);
}
#masthead.brand-sticky {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
}
.site-logo img {
    width: 300px;
}
#site-navigation {
    align-self: center;
    text-align: right;
}
.main-navigation ul {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 2.1vw;
}
.main-navigation li {
    display: inline-block;
    padding: 20px 0;
    position: relative;
}
.main-navigation li a {
	font-family: 'Roboto';
	font-weight: 300;
	font-size: 17px;
	color: var(--text-color);
}
.main-navigation li:after {
	height: 9px;
	width: 100%;
	border-radius: 5px;
	position: absolute;
	left: 0;
	bottom: 0;
}
.main-navigation li.green:after {
	content: '';
	background: var(--green);
}
.main-navigation li.orange:after {
	content: '';
	background: var(--orange);
}
.main-navigation li.blue:after {
	content: '';
	background: var(--blue);
}
.main-navigation li.grey:after {
	content: '';
	background: var(--grey);
}

#masthead .menu-item:before {
    width: 6px;
    height: 6px;
    content: '';
    background: var(--text-color);
    position: absolute;
    left: -16px;
    top: 50%;
    border-radius: 50%;
    transform: scaleY(0) translateY(50%);
    transform-origin: bottom;
    transition: transform .25s ease-in-out;
}
#masthead #menu-item-61.menu-item:before {
	background: var(--orange);
}
#masthead #menu-item-68.menu-item:before {
	background: var(--blue);
}
#masthead #menu-item-64.menu-item:before {
	background: var(--green);
}
#masthead #menu-item-65.menu-item:before {
	background: var(--grey);
}
#masthead .current-menu-item:not(.menu-item-298):before, #masthead .menu-item:hover:before {
    transform: scaleY(1) translateY(-50%);
    transform-origin: top;
}

.nav_button {
    justify-self: end;
    align-self: center;
    display: none;
}
@media screen and (max-width: 1480px) {
	#site-navigation {
		display: none;
	}
	.nav_button {
		display: block;
	}
	#site-navigation.open {
	    display: block;
	    position: absolute;
	    top: calc(100% - 20px);
	    left: 0;
	    right: 0;
	    text-align: center;
	    background: #fff;
	    padding: 20px;
	    border-bottom-left-radius: var(--border-radius);
	    border-bottom-right-radius: var(--border-radius);
	    background: #fff;
	    box-shadow: 0 10px 10px rgba(0, 0, 0, .2);
	}
	.main-navigation ul {
	    grid-auto-flow: row;
	    gap: 0;
	}
	.main-navigation li:after {
	    height: 5px;
	}
	.main-navigation li {
	    padding: 16px 0;
	}
	.main-navigation li:after {
	    border-radius: 5px;
	    position: absolute;
	    bottom: 0;
	    right: 0;
	    width: 110%;
	    left: -5%;
	    height: 90%;
	    top: 5%;
	}
	.main-navigation li.grey a,
	.main-navigation li.orange a,
	.main-navigation li.green a,
	.main-navigation li.blue a {
		position: relative;
		z-index: 1;
		color: #fff;
	}
}



/* Footer */
#footer {
    background: var(--footer-bg);
    padding-top: calc(60px + 65px + var(--site-padding)); /* Add logo height */
    padding-bottom: calc(60px + 52px); /* Add footer payoff height */
    position: relative;
}
.footer--payoff {
	position: absolute;
	color: #fff;
	background: var(--sub_footer-bg);
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	text-align: center;
}
.footer--payoff span {
	color: #fff;
}
.info-mail {
	display: inline-grid;
	grid-template-columns: 1fr 32px;
	align-items: center;
	justify-items: end;
}
.info-mail svg {
	width: 20px;
}
.footer--header {
	text-align: center;
	margin-bottom: 70px;
}
.footer--header img {
	width: 190px;
}
.footer--grid {
	display: inline-grid;
	grid-template-columns: 1fr auto auto;
	gap: 20px;
	margin: 0 auto;
}
.col--title,
.col--title a {
	font-size: var(--f16px);
	font-weight: 900;
	color: var(--text-color);
}
.col--content span,
.col--content a {
	color: var(--text-color);
	text-decoration: none;
	font-size: var(--f13px);
	font-weight: normal;
}
.col--content a {
	transition: .5s color;
}
.col--content a:hover {
	color: var(--mainColor);
}
.col--content span {
	line-height: var(--lh24px);
	display: block;
}
.col--content ul li a {
	font-size: var(--f12px);
}
.footer--col {
	text-align: left;
	position: relative;
}
#footer-logo {
	position: absolute;
	right: 0;
	top: -70px;
	width: 300px;
	padding-left: var(--site-padding);
}
.footer--col.right {
	text-align: right;
}
.col--content ul li {
	padding-bottom: 7px;
}
.footer--content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--site-padding);
    box-sizing: content-box;
}
.col--content {
    margin-top: 10px;
}
.col--content:first-child {
    margin-top: 23px;
}
.footer--col:not(:first-child) {
	margin-left: 10px;
}
.footer--col:not(:first-child) .col--content {
	border-left: 1px solid #d2d2d2;
	padding-left: 30px;
}
.footer--col:not(:first-child) .col--title {
	padding-left: 30px;
}
.footer--payoff span {
	padding: 20px 0;
	display: block;
	font-size: var(--f12px);
	line-height: var(--lh12px);
}
.footer--payoff span a {
	color: #fff;
}
.footer--content {
	text-align: center;
}

.discover-more {
	align-self: center;
	padding: 2em;
	display: none;
}
.social--links {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, 18px);
    gap: 12.5px;
    margin-top: 20px;
}

.credits {
	display: inline-block;
	margin-top: 20px;
}

@media screen and (max-width: 860px) {
	.footer--grid {
		grid-template-columns: auto;
		grid-template-areas: 'main main'
							'sitemap info';
		row-gap: 40px;
	}
	#footerMain {
		grid-area: main;
	}
	#footerSitemap {
		grid-area: sitemap;
	}
	#footerInfo {
		grid-area: info;
	}
	.footer--col.right {
	    text-align: left;
	}
	#footer-logo {
	    right: auto;
	    left: 0;
	    padding-left: 0;
	}
}
@media screen and (max-width: 480px) {
    :root {
        --site-padding: 24px;
    }
    #masthead {
    	gap: 30px;
    }
}
@media screen and (max-width: 420px) {
	#footer-logo {
		width: 100%;
		max-width: 300px;
	}
	.footer--grid {
	    grid-template-areas:
	        'main'
	        'sitemap'
	        'info';
	}
	#footerSitemap ul {
		columns: 2;
	}
}


/* Home Slider */
.slider {
	max-height: 434px;
	overflow: hidden;
	position: relative;
	padding: var(--site-padding) 0;
    box-sizing: content-box;
    background: #fff;
}
.slider.green {
    background: var(--green);
}
.slider.orange {
	background: var(--orange);
}
.slider.blue {
	background: var(--blue);
}
.slider.grey {
	background: var(--grey);
}
.slider--curve {
	width: 50%;
	position: relative;
	z-index: 1;
	min-width: 954px;
}
.slider--content {
	padding: 90px var(--site-padding);
	position: relative;
	z-index: 1;
}
.slider--image {
	position: absolute;
	height: 100%;
	width: 70%;
	right: 0;
	top: 0;
	line-height: 0;
}
.slider--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 79%;
}
.slider--content h2 {
	font-size: 40px;
	line-height: 37px;
	color: #fff;
	text-transform: uppercase;
}
strong, b {
	font-weight: 800;
}
.slider--content span {
	font-size: 26px;
	line-height: normal;
	color: #fff;
	display: block;
	margin: 18px 0 29px;
}
.slider--content p, .slider--content p strong {
	color: #fff;
}
.btn {
	position: relative;
	display: inline-grid;
    grid-template-columns: auto 7px;
    align-items: center;
    border-radius: var(--btn-border);
    padding: 11px 20px;
    background: #fff;
    text-decoration: none;
    gap: 14px;
}
.btn svg {
	width: 7px;
}
/*
.btn.green,
.btn.green:visited {
	color: var(--green);
}
.btn.orange,
.btn.orange:visited {
	color: var(--orange);
}
.btn.blue,
.btn.blue:visited {
	color: var(--blue);
}
.btn.grey,
.btn.grey:visited {
	color: var(--grey);
}
*/
.btn.green,
.btn.green:visited,
.btn.orange,
.btn.orange:visited,
.btn.blue,
.btn.blue:visited,
.btn.grey,
.btn.grey:visited {
	color: #212121;
}

.btn.green.shadow {
	box-shadow: 0px 2px 1px var(--green-shadow);
}
.btn.orange.shadow {
	box-shadow: 0px 2px 1px var(--orange-shadow);
}
.btn.blue.shadow {
	box-shadow: 0px 2px 1px var(--blue-shadow);
}
.btn.grey.shadow {
	box-shadow: 0px 2px 1px var(--grey-shadow);
}

/*
.btn.green svg path {
	fill: var(--green);
}
.btn.orange svg path {
	fill: var(--orange);
}
.btn.blue svg path {
	fill: var(--blue);
}
.btn.grey svg path {
	fill: var(--grey);
}
*/
.btn.green svg path,
.btn.orange svg path,
.btn.blue svg path,
.btn.grey svg path {
	fill: #212121;
}

.btn:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    mix-blend-mode: multiply;
    border-radius: var(--btn-border);
    opacity: .25;
    transition: width .5s ease-in-out;
}

a.btn.blue:before {
    background: var(--blue);
}

a.btn.green:before {
    background: var(--green);
}

a.btn.orange:before {
    background: var(--orange);
}

a.btn.grey:before {
    background: var(--grey);
}

a.btn:hover:before {
    width: 100%;
}

#curve {
	position: absolute;
    height: calc(100% * 4.2);
    right: -10%;
    bottom: calc(var(--site-padding) * -1);
}
#curve path {
	transition: fill .5s ease-in-out;
}
.slider.green #curve path {
	fill: var(--green);
}
.slider.orange #curve path {
	fill: var(--orange);
}
.slider.blue #curve path {
	fill: var(--blue);
}
.slider.grey #curve path {
	fill: var(--grey);
}

.slider--actions {
    position: absolute;
    right: var(--site-padding);
    top: 50%;
    transform: translateY(-50%);
}
.slider--action {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background .5s;
}
.slider--action:hover {
	background: rgba(0,0,0,0.5);
}
.slider--actions a svg {
    width: 20px;
}

@media screen and (max-width: 1320px) {
	.slider {
		max-height: none;
	}
	.slider--curve #curve {
		display: none;
	}
	.slider--content {
		background: #fff;
	}
	.slider--image {
		position: relative;
		width: 100%;
		margin-top: -5%;
	}
	.slider--image img {
		height: 110%;
		object-position: center;
	}
	.slider:not(.only-image) .slider--image img {
		height: 300px;
	}
	.slider--curve {
		min-width: auto;
		width: 100%;
	}
	.slider--content {
		padding-top: 45px;
		padding-bottom: 45px;
	    border-radius: var(--section-border);
    	margin-top: calc(var(--site-padding) * -.5);
	}
	.slider.green .slider--content {
		background: var(--green);
	}
	.slider.orange .slider--content {
		background: var(--orange);
	}
	.slider.blue .slider--content {
		background: var(--blue);
	}
	.slider.grey .slider--content {
		background: var(--grey);
	}
}
@media screen and (max-width: 480px) {
	.slider--content {
    	margin-top: calc(var(--site-padding) * -1);
	}
}



/* Home Categories */
#sectionCategories {
    padding-bottom: calc(var(--site-padding) + 19px); /* Add btn offset */
}
.section--content.center .section--header {
	text-align: center;
}
h1 {
	font-size: 40px;
	text-transform: uppercase;
	line-height: normal;
}
h1, h2, h3, h4, h5, span, p, strong, b, i {
	color: var(--text-color);
}
.categories--boxes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--boxes-gap);
	margin-top: var(--site-padding);
}
.categories--boxes h3,
.categories--boxes span,
.categories--boxes span b {
	color: #fff !important;
}
.section--header {
	display: grid;
	grid-auto-flow: row;
	gap: 30px;
}
.section--header span {
	font-size: 30px;
}
.box {
	color: #fff;
	position: relative;
	box-shadow: var(--box-shadow);
	background: transparent;
	display: grid;
	grid-template-rows: auto 1fr;
	border-radius: var(--box-border);
}
.box.orange .box--content {
	background: var(--orange);
}
.box.blue .box--content {
	background: var(--blue);
}
.box.green .box--content {
	background: var(--green);
}
.box.grey .box--content {
	background: var(--grey);
}
.box--content {
	padding: 35px 30px 50px;
	border-bottom-left-radius: var(--box-border);
	border-bottom-right-radius: var(--box-border);
}
.box .box--content h3 {
	text-transform: uppercase;
	font-size: 35px;
	line-height: 32px;
	margin-bottom: 20px;
	font-weight: 800;
}
.box .box--content span {
	font-size: 16px;
	font-family: var(--roboto);
	font-weight: 300;
	line-height: 24px;
	color: var(--text-color);
}
.box .box--img img {
	width: 100%;
	height: 100%;
	border-top-left-radius: var(--box-border);
	border-top-right-radius: var(--box-border);
	object-fit: cover;
}
.box .btn {
	position: absolute;
    bottom: -19px;
    left: 30px;
    color: var(--text-color);
    box-shadow: none;
}
.box .btn:after {
    content: '';
    z-index: -1;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    position: absolute;
    top: -5px;
    left: -5px;
    border-radius: var(--btn-border);
    box-shadow: var(--box-shadow);
}
.box.orange .btn:after {
	background: var(--orange);
}
.box.blue .btn:after {
    background: var(--blue);
}
.box.green .btn:after {
	background: var(--green);
}
.box.grey .btn:after {
	background: var(--grey);
}

@media screen and (max-width: 1460px) {
	.categories--boxes {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	:root {
		--boxes-gap: 18px; /* home boxes */
	}
	#sectionCategories {
	    padding-bottom: calc(var(--site-padding) + 19px);
	}
	.categories--boxes {
	    grid-template-columns: repeat(4, 1fr);
	    gap: var(--boxes-gap);
	    overflow-x: scroll;
	    width: 100vw;
	    margin-left: calc(var(--site-padding) * -1);
	    padding: 0 var(--site-padding);
	    scroll-snap-type: x mandatory;
	    padding-bottom: 40px;
	}
	#sectionCategories .box {
	    width: calc(100vw - var(--site-padding) * 2);
	    scroll-snap-align: center;
	}
	.box .box--content h3 {
	    font-size: 24px;
	}

}


/* Section Services */
#sectionServices {
	background-image: url(/wp-content/uploads/2023/06/section-services-bg.jpg);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
    padding: calc(var(--site-padding) * 2) var(--site-padding);
}
#sectionServices .section--content {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 11.45vw;
	position: relative;
	z-index: 1;
}
.services--boxes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--boxes-gap);
}
#sectionServices .section--header {
    place-self: center;
    gap: 20px;
}
.section--header h2 {
	font-size: 40px;
	margin-bottom: 0;
	text-transform: uppercase;
}
#sectionServices .section--header h2,
#sectionServices .section--header span,
#sectionServices .section--header span b {
	color: #fff;
}
.services--boxes .box {
	color: var(--text-color);
}
.services--boxes .box--content {
	background: #fff;
}
.services--boxes .box--content h4 {
	font-size: 25px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.services--boxes .btn.grey{    color: #fff;
    background-color: var(--form_input-bg);}
.services--boxes .btn.grey svg path{fill:#fff}
#sectionServices .box .btn {
	background-color: var(--form_input-bg);
	color: #fff;
}

#sectionServices .box .btn svg path {
	fill: #fff;
}

#sectionServices .box .btn:after {
	background-color: #fff;
}

@media screen and (max-width: 1650px) {
	#sectionServices .section--content {
    	grid-template-columns: 1fr;
	    gap: var(--site-padding);
	}
	#sectionServices .section--header {
	    place-self: start;
	    gap: 20px;
	}
	.services--boxes {
	    grid-template-columns: repeat(3, 1fr);
	}
	.services--boxes .box--content h4 {
		word-break: break-all;
	}
}
@media screen and (max-width: 768px) {
	#sectionServices .box {
	    width: calc(100vw - var(--site-padding) * 2);
        scroll-snap-align: center;
	}
	.services--boxes {
	    width: 100vw;
	    margin: 0 calc(var(--site-padding) * -1);
	    padding: 0 var(--site-padding) 40px;
	    overflow-x: scroll;
	    scroll-snap-type: x mandatory;
	}
	.services--boxes .box--content h4 {
		font-size: 21px;
	}
}

/* Rentals section */
#sectionRentals {
	background: var(--green);
	padding-bottom: calc(var(--site-padding) * 2);
	color: #fff;
}
#sectionRentals .section--content {
	text-align: left;
}
.rental--box {
	display: grid;
    grid-template-areas: 'title img'
    					'desc img';
    column-gap: 40px;
    row-gap: 20px;
    max-width: 1260px;
    margin: 0 auto;
    text-align: left;
}
.rental--box .section--header {
	grid-area: title;
}
.rental--box .section--content {
	grid-area: desc;
}
.rental--box .rental--img {
	grid-area: img;
}
.rental--box .section--header h2 {
	font-weight: bold;
}
.rental--box .section--header h2,
.rental--box .section--header span {
	color: #fff;
}
.rental--box .section--content p {
	font-size: 16px;
    font-family: var(--roboto);
    font-weight: 300;
    line-height: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.rental--box .section--content p strong {
	color: #fff;
}

.rental--box.formazione{
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
}
.rental--box.formazione .col{}
.rental--box.formazione .section--header{
    margin-bottom: 30px;
}

@media screen and (max-width: 1180px) {
	.rental--box {
	    grid-template-areas: 'title'
	    					'desc'
	    					'img';
	}
	.rental--img {
		place-self: center;
	}
	.rental--box.formazione{
    grid-template-columns: 1fr;
    row-gap: 60px;
}
}





/* News Section */
#sectionNews .section--content {
	text-align: center;
}
.news--box {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1260px;
    margin: 0 auto;
    text-align: left;
}
.news--img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}
.news--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news--content {
	padding: 25px 0;
}
.news--content span {
	text-transform: uppercase;
	font-size: 20px;
	font-weight: 300;
}
.news--content h5 {
	text-transform: uppercase;
	margin-top: 35px;
	margin-bottom: 25px;
	font-size: 30px;
	font-weight: 300;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;  
	overflow: hidden;
}
.news--content p {
	font-family: var(--roboto);
	font-size: 16px;
	line-height: 26px;
	margin-bottom: 25px;
	display: -webkit-box;
	line-clamp: 4;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;  
	overflow: hidden;
}
.news--content .btn {
    box-shadow: 0 2px 1px #d9d9d9;
    background: var(--form_input-bg);
    color: #fff !important;
}
.news--content .btn svg path {
	fill: #fff !important;
}

@media screen and (max-width: 768px) {
	.news--box {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.news--content {
		padding-top: 0;
	}
	.news--content h5 {
		font-size: 24px;
		margin: 20px 0;
	}
}
@media screen and (max-width: 480px) {
	#sectionNews {
	    margin-top: 25px;
	}
}


/* Contact form */
#sectionContact {
    text-align: center;
}
#sectionContact .section--content {
    max-width: 1024px;
    margin: 0 auto;
}
#sectionContact .wpcf7 {
	margin-top: 60px;
}
.form--fields {
    grid-template-areas:
        'name surname msg'
        'email tel msg';
    display: grid;
    gap: 10px 18px;
}
.form--fields input[type="text"],
.form--fields input[type="email"],
.form--fields input[type="tel"],
.form--fields textarea { width: 100%; }


@media screen and (max-width: 992px) {
	.form--fields {
		grid-template-areas: 'name surname' 'email tel' 'msg msg';
	}
}
@media screen and (max-width: 767px) {
	.form--fields {
		grid-template-areas:
		'name'
		'surname'
		'email'
		'tel'
		'msg';
	}
}

#formName {
    grid-area: name;
}

#formSurname {
    grid-area: surname;
}

#formEmail {
    grid-area: email;
}

#formTel {
    grid-area: tel;
}

#formCompany {
    grid-area: company;
}

#formPosition {
    grid-area: position;
}

#formMsg {
    grid-area: msg;
}

textarea {
	height: 100%;
}

.form--privacy {
    max-width: 400px;
    display: grid;
    margin: 25px auto;
    gap: 15px;
}

.form--send {
	text-align: center;
}

.form--privacy label {
    display: grid;
    grid-template-columns: auto 1fr;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
}
.form--checkbox .wpcf7-list-item-label {
    font-size: 13px;
    color: var(--text-color);
    text-align: left;
}

#sectionContact input,
#sectionContact textarea {
	padding: 14px 12px;
	border-radius: 5px;
	border: none;
	box-shadow: var(--box-shadow);
	background: var(--form_input-bg);
	color: #fff;
}

#sectionContact .wpcf7-spinner {
    display: block;
    position: relative;
    margin: 8px auto 0;
}
#sectionContact input::-webkit-input-placeholder,
#sectionContact textarea::-webkit-input-placeholder {
	font-family: var(--roboto);
	font-size: var(--f15px);
	color: #fff;
}
#sectionContact input:-ms-input-placeholder,
#sectionContact textarea:-ms-input-placeholder {
	font-family: var(--roboto);
	font-size: var(--f15px);
	color: #fff;
}
#sectionContact input::-ms-input-placeholder,
#sectionContact textarea::-ms-input-placeholder {
	font-family: var(--roboto);
	font-size: var(--f15px);
	color: #fff;
}
#sectionContact input::placeholder,
#sectionContact textarea::placeholder {
	font-family: var(--roboto);
	font-size: var(--f15px);
	color: #fff;
}

#sectionContact .btn {
    border: none;
    display: inline-block;
    position: relative;
    padding: 13px 37px;
    font-size: var(--f13px);
    color: #fff;
    text-transform: uppercase;
    background-color: var(--form_input-bg);
    box-shadow: var(--box-shadow);
    font-weight: bold;
    cursor: pointer;
}
#sectionContact .btn:hover {
    background-color: var(--form_input-bg);
}
#sectionContact input.wpcf7-not-valid,
#sectionContact textarea.wpcf7-not-valid {
	border-color: #dc3232;
}
#sectionContact .form--row:not(.form--send) .wpcf7-not-valid-tip {
	display: none;
}



/* Chi siamo */
.description {
	font-size: 20px;
	line-height: 34px;
}
.description a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}
#whoAreWe .description,
#services .description {
    max-width: 1024px;
    margin: 0 auto;
}

#whoAreWe #strengths,
#services #strengths {
    max-width: 1240px;
    margin: 80px auto 0;
}

.content-short {
	overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 4;
           line-clamp: 4; 
   -webkit-box-orient: vertical;
}
.content-short.expanded {
	overflow: visible;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	display: block;
}

.btn-expand {
    color: var(--blue);
    text-decoration: none;
    display: inline-grid;
    grid-template-columns: auto auto;
    place-items: center;
    transition: color .5s ease-in-out;
    position: absolute;
    bottom: 15px;
    right: 35px;
}
.btn-expand:visited {
	color: var(--blue);
}

.btn-expand svg {
    width: 24px;
    transition: transform .5s ease-in-out;
}

.btn-expand svg path {
    fill: var(--blue);
    transition: fill .5s ease-in-out;
}

.btn-expand:hover {
    color: var(--blue-shadow);
}

.btn-expand:hover svg path {
    fill: var(--blue-shadow);
}

.btn-expand.toggle svg {
	transform: rotate(180deg);
}

.whoarewe--rows {
    display: grid;
    gap: 40px;
}

.stripe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    gap: 50px;
}

.stripe.reverse .box--content {
    order: -1;
    text-align: right;
}

.stripe .box--img img {
    width: 100%;
}

.stripe .box--img {
    width: 100%;
}

.row-separator {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 8px;
    margin: 0 auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.orange {
    background: var(--orange);
}

.dot.blue {
    background: var(--blue);
}

.dot.green {
    background: var(--green);
}

.dot.grey {
    background: var(--grey);
}

.stripe .box--content h4 {
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.stripe .box--content span {
    font-size: 16px;
    font-family: var(--roboto);
    font-weight: 300;
    line-height: 24px;
    color: var(--text-color);
}
#stripe-certificazioni{
    grid-template-columns: 1fr;
}
#stripe-certificazioni h2{font-size: 40px;
    text-transform: uppercase;
    line-height: normal; text-align:center}
.stripe-certificazioni-cont{}
.stripe-certificazioni-2col{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
}
.stripe-certificazioni-2col>div:nth-child(1){
    text-align: right;
}
.stripe-certificazioni-2col .btn.cert {
    box-shadow: 0 2px 1px #d9d9d9;
    background: var(--form_input-bg);
    color: #fff !important;
}
.stripe-certificazioni-2col .btn.cert svg path {
    fill: #fff !important;
}
@media screen and (max-width: 860px) {
	.stripe {
	    grid-template-columns: 1fr;
	    gap: 25px;
	}
	.stripe.reverse .box--content {
	    order: 0;
	    text-align: left;
	}
	.stripe .box--content {
		padding: 0;
	}
}

@media screen and (max-width: 767px) {

	.stripe-certificazioni-2col{grid-template-columns: 1fr;}
	.stripe-certificazioni-2col>div:nth-child(1) {
		text-align: left;
	}
}

/* News listing */
.news--listing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: var(--site-padding);
}
#sectionNewsListing .news--content h5 {
    font-size: 25px;
}
@media screen and (max-width: 680px) {
    .news--listing {
        grid-template-columns: 1fr;
    }
    .page-id-56 .slider,
    .single .slider {
    	display: none;
    }
    #newsListing,
    .single #primary {
    	padding-top: 80px;
    }
}





/* Contatti */
#map {
    min-height: calc(434px + var(--site-padding));
    margin-top: calc(var(--site-padding) / 2 * -1);
}



/* Pagine categoria */
.cat-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    max-width: 1560px;
    margin: 0 auto;
    gap: 40px;
}

.cat-title {
    font-weight: 800;
}
.cat-title.orange {
	color: var(--orange);
}
.cat-title.green {
	color: var(--green);
}
.cat-title.blue {
	color: var(--blue);
}
.cat-title.grey {
	color: var(--grey);
}

.cat-subtitle {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 8px;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    max-width: 1560px;
    margin: 0 auto;
}

.subcategories .box {
	grid-template-rows: auto;
    grid-template-columns: .65fr 1fr;
}

.subcategories .box .box--img img {
	border-top-right-radius: 0;
	border-bottom-left-radius: var(--border-radius);
}

.brand--list {
    margin-bottom: 20px;
}
.cat-brand .brand--list {
	margin-top: 20px;
	margin-bottom: 0;
}
.brand--list a {
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
    margin-bottom: 8px;
    transition: background .5s;
}
.cat-brand .brand--list a {
	font-size: 18px;
	line-height: normal;
}
.brand--list a.green {
	background: var(--green);
}
.brand--list a.orange {
	background: var(--orange);
}
.brand--list a.blue {
	background: var(--blue);
}
.brand--list a.grey {
	background: var(--grey);
}
.brand--list a.green:hover {
	background: var(--green-shadow);
}
.brand--list a.orange:hover {
	background: var(--orange-shadow);
}
.brand--list a.blue:hover {
	background: var(--blue-shadow);
}
.brand--list a.grey:hover {
	background: var(--grey-shadow);
}

.subcategories .box--content h4 {
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.subcategories.agricoltura .box--content h4 {
	color: var(--orange);
}
.subcategories.industriale .box--content h4 {
	color: var(--grey);
}
.subcategories.robotica .box--content h4 {
	color: var(--blue);
}

.subcategories .box .btn {
	background-color: var(--form_input-bg);
	color: #fff;
}
.subcategories .box .btn.orange {
	background-color: var(--orange);
}
.subcategories .box .btn.blue {
	background-color: var(--blue);
}
.subcategories .box .btn.green {
	background-color: var(--green);
}
.subcategories .box .btn.grey {
	background-color: var(--grey);
}

.subcategories .box .btn svg path {
	fill: #fff;
}

.catalogs-btn{
    margin-top: 20px;
}
.catalogs-btn .btn{
    position: relative;
    left: auto;
    bottom: auto;
    margin-bottom: 10px;
}
.catalogs-btn .btn:before{}
.catalogs-btn .btn:after{
    display: none;
}

.subcategories .box .btn:after,
.products .box .btn:after {
	background-color: #fff;
	box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.2);
}

.cat-content {
    margin: 0 auto;
    display: grid;
    grid-auto-flow: row;
    gap: 40px;
    margin-top: calc(var(--site-padding) * 2);
}
.cat-content:not(.main-content) {
	max-width: 1560px;
}
.main-content .brands {
	margin: 0 auto;
	max-width: 1560px;
}
.brand-header:not(.rentals-header) {
    text-align: center;
    position: sticky;
    top: var(--header-height);
    padding: 1em;
    background: #fff;
    z-index: 10;
    margin-left: calc(var(--site-padding) * -1);
    margin-right: calc(var(--site-padding) * -1);
}
.brand-header.sticky {
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border-top: 2px solid #e5e5e5;
}

.cat-content h3 {
    font-size: 30px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
    transition: font-size .5s ease-in-out;
}
.cat-content .sticky h3 {
    font-size: 22px;
}

.brand-header {
	text-align: center;
}

.cat-header > div:first-child {
    justify-self: start;
}

.brands {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--site-padding) * 2);
}

.brand--logos a {
    display: inline-block;
}

.antonio_carraro img {
    max-width: 129px;
}

.landini img {
    width: 160px;
}

a.kioti img {
    width: 45px;
}

.berti img {
    width: 150px;
}

.ideal img {
    width: 110px;
}

.agrex img {
    width: 160px;
}

.campagnola img {
    width: 175px;
}

.amas img {
    width: 140px;
}

.bmv img {
    width: 65px;
}

.arrizza img {
    width: 180px;
}

.brand--logos {
    display: flex;
    align-items: center;
    justify-items: start;
    gap: 25px;
    align-self: end;
}

.volvo img {
    width: 150px;
}

.dieci img {
    width: 145px;
}

.agxeed img {
    width: 170px;
}

.echo img {
    width: 95px;
}

.honda img {
    width: 145px;
}

.cub_cadet img {
    width: 150px;
}

.robomow img {
    width: 125px;
}

.subcategories .box--content {
	display: grid;
	gap: 25px;
}
.brand--list {
	display: none;
}

.rossetto_f.lli img {
}

.rossetto_flli img {
    width: 150px;
}

.dondi img {
    width: 125px;
}

.amazone img {
    width: 250px;
}

.roga img {
    width: 150px;
}

.zaccaria img {
    width: 150px;
}

.feltrina_srl img {
    width: 160px;
}

.francini img {
    width: 150px;
}

.bonsegna img {
    width: 135px;
}

.box.macchine_per_la_viticoltura .brand--logos {
    width: fit-content;
    grid-template-columns: auto auto auto auto;
}

.brand-thumbnail img {
    min-width: 300px;
}
@media screen and (max-width: 480px) {
	.brand-thumbnail img {
	    min-width: 180px;
	}
}

.typologies {
    display: grid;
    grid-auto-flow: row;
    gap: 40px;
    margin-top: 40px;
}

.typology h5 {
    font-size: 24px;
    font-weight: bold;
}
.typology > h5 {
    margin-bottom: 1em;
}

.products {
    margin-left: -40px;
    margin-right: -40px;
}
@media screen and (max-width: 480px) {
    .products {
	    margin-left: 0;
	    margin-right: 0;
	}
}

.products .box {
    display: inline-block;
    max-width: calc(25% - 60px);
    margin-left: 40px;
    margin-bottom: 65px;
    transform: translate(0px, 0px);
    vertical-align: top;
}

.products .box--content h5 span {
    display: block;
    margin-top: 8px;
}

.products .box--content > span {
    margin-top: 16px;
}

.products .box .btn {
	background-color: var(--form_input-bg);
	color: #fff;
}
.products .box .btn.orange {
	background-color: var(--orange);
}
.products .box .btn.blue {
	background-color: var(--blue);
}
.products .box .btn.green {
	background-color: var(--green);
}
.products .box .btn.grey {
	background-color: var(--grey);
}

.products .btn svg path {
	fill: #fff;
}

.dropdowns {
    display: inline-grid;
    grid-auto-flow: column;
    place-items: center;
    margin: 20px auto 0;
    gap: 20px;
}
.dropdown select {
    padding: 8px 32px 8px 16px;
    font-family: var(--raleway);
    font-size: 17px;
    appearance: none;
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z' fill='%23212121'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    border-radius: 2px;
    max-width: calc(100vw - var(--site-padding) * 2);
    word-wrap: break-word;
    text-overflow: ellipsis;
    transition: font-size .5s ease-in-out;
}
.cat-content .sticky .dropdown select {
    font-size: 15px;
}

@media screen and (max-width: 1180px) {
	.products .box {
	    max-width: calc(33% - 60px);
	}
}
@media screen and (max-width: 960px) {
	.products .box {
	    max-width: calc(50% - 60px);
	}
}

@media screen and (max-width: 768px) {
	.cat-header {
		grid-template-columns: 1fr;
	}
	.dropdowns {
		grid-auto-flow: row;
	}
}

@media screen and (max-width: 650px) {
	.products .box {
	    max-width: 100%;
        margin: 0 var(--site-padding) 65px;
	}
}




/* Dettaglio prodotto */
.prod-header {
    text-align: center;
    margin-bottom: var(--site-padding);
}
[data-anim="reveal"] .overlay {
 background-color: var(--text-color);
}
.product-page #sectionContact {
    margin-top: var(--site-padding);
}
.breadcrumb {
    max-width: 1560px;
    margin: 0 auto;
    margin-bottom: 2em;
    font-size: 18px;
}
.breadcrumb a, .breadcrumb a:visited {
    color: var(--text-color);
    text-decoration: none;
    transition: border .5s;
}
.breadcrumb a:hover {
	border-bottom: 1px solid var(--text-color);
}
.only-image .slider--image {
	z-index: 2;
	width: 100%;
}
.slider.only-image {
	height: 434px;
}
.only-image .slider--image img {
    object-position: center 65%;
}
.slider.only-image .slider--actions {
	display: none;
}

.prod-desc {
	display: grid;
	gap: 15px;
}
.prod-desc ul {
    list-style: disc;
    list-style-position: inside;
}

.prod-img,
.prod-img img {
	width: 100%;
}


@media screen and (max-width: 1320px) {
	.slider.only-image {
	    height: 300px;
	    margin-bottom: calc(var(--site-padding) * -2.25);
	}

}



/* Pagina Noleggio */
.no-results {
    padding-top: 80px;
    font-size: 19px;
}


.box h5 {
	text-transform: uppercase;
}
.rentals .box {
	display: inline-block;
    max-width: calc(25% - 60px);
    margin-left: 40px;
    transform: translate(0px, 0px);
    vertical-align: top;
    height: 100%;
}

@media screen and (max-width: 1180px) {
	.rentals .box {
	    max-width: calc(33% - 60px);
	}
}
@media screen and (max-width: 960px) {
	.rentals .box {
	    max-width: calc(50% - 60px);
	}
}

@media screen and (max-width: 650px) {
	.rentals .box {
	    max-width: 100%;
        margin: 0 var(--site-padding) 65px;
        height: auto;
	}
}

.rental-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1560px;
}
.rentals {
	margin-left: -40px;
	margin-right: -40px;
}
@media screen and (max-width: 480px) {
    .rentals {
	    margin-left: 0;
	    margin-right: 0;
	}
}
.rentals .box h5 {
	font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.content-points {
    display: grid;
    grid-auto-flow: row;
    gap: 5px;
    margin-top: 16px;
}

.content-points span {
    position: relative;
    padding-left: .85em;
    margin-left: .25em;
}

.content-points span:before {
    content: '';
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    position: absolute;
}


.rentals .box .btn {
	background-color: var(--form_input-bg);
	color: #fff;
}
.rentals .box .btn.orange {
	background-color: var(--orange);
}
.rentals .box .btn.blue {
	background-color: var(--blue);
}
.rentals .box .btn.green {
	background-color: var(--green);
}
.rentals .box .btn.grey {
	background-color: var(--grey);
}
.rentals .btn svg path {
	fill: #fff;
}

.box .box--content .content-price {
    position: absolute;
    top: 10px;
    background: var(--green);
    width: 100%;
    left: 0;
    top: 0;
    padding: 0.5em 1em;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    color: #fff;
    text-align: center;
}
.box .content-price b {
	color: #fff;
}

.rentals .box--img {
    padding-top: 40px;
}



/* Servizi */
#services .services--boxes .box--content h4 {
    word-break: normal;
}
@media screen and (max-width: 1194px) {
	#services .services--boxes {
	    grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (max-width: 680px) {
	#services .services--boxes {
	    grid-template-columns: repeat(1, 1fr);
	}
}




/* General media queries */
@media screen and (max-width: 420px) {
	.section--header h2,
	.slider--content h2,
	h1 {
	    font-size: 34px;
	    text-align: left;
	}
	.section--header span {
		text-align: left;
	}
	#sectionContact .section--header {
		gap: var(--site-padding);
	}
	#sectionContact .wpcf7 {
	    margin-top: var(--site-padding);
	}
	.slider--content {
		padding-top: 25px;
		padding-bottom: 25px;
	}
}


@media screen and (max-width: 1024px) {
	.subcategories .box {
	    grid-template-rows: auto auto;
	    grid-template-columns: 1fr;
	}
	.subcategories .box .box--img img {
	    border-top-right-radius: var(--border-radius);
	    border-bottom-left-radius: 0;
	}
}
@media screen and (max-width: 680px) {
	.brand--logos {
		display: none !important;
	}
	.brand--list {
		display: block !important;
	}
}


#audioBars {
	position: absolute;
	bottom: 49px;
	right: 35px;
	z-index: 999;
    height: 30px;
    width: 40px;
    cursor: pointer;
}

.bar {
   background: #fff;
    bottom: 1px;
    height: 3px;
    position: absolute;
    width: 3px;      
    animation: sound 2500ms -1200ms ease-in-out infinite alternate;
}

@keyframes sound {
    0% {
       opacity: .35;
        height: 12px; 
    }
    100% {
        opacity: 1;       
        height: 28px;        
    }
}

.bar:nth-child(1)  { left: 1px; animation-duration: 474ms; }
.bar:nth-child(2)  { left: 5px; animation-duration: 433ms; }
.bar:nth-child(3)  { left: 9px; animation-duration: 407ms; }
.bar:nth-child(4)  { left: 13px; animation-duration: 458ms; }
.bar:nth-child(5)  { left: 17px; animation-duration: 400ms; }
.bar:nth-child(6)  { left: 21px; animation-duration: 427ms; }
.bar:nth-child(7)  { left: 25px; animation-duration: 441ms; }
.video--container {
    height: 100%;
    width: 100%;
    position: relative;
    min-height: 200px;
}

#wtVideo {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
}
.video--overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	z-index: 2;
}



@media screen and (max-width: 480px) {
	#audioBars {
		bottom: 23px;
	}
}