/*
Theme Name: Crema Outdoor
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.grecaptcha-badge{z-index:1000;}

.wpcf7-mail-sent-ok{
	display:none !important;
}
.wpsm-content-hide {
	overflow: hidden!important;
    	max-height: 0!important;
	display:block!important;
}
.wpsm-show, .wpsm-hide {
	text-decoration:underline;
}
.home-ricerca {
	background-color: #0069B4;
	color:#fff;
	padding:8px 12px; 
}
a.home-ricerca:hover {
	color:#fff;
}
.social-icons:before {
    content: ''!important;
}
li.wpml-ls-item .nav-dropdown {
    padding: 5px;
    min-width: 50px;
    text-align: center;
}
li.wpml-ls-item .nav-dropdown li a{
	padding: 0;
}
.swatch-item-wrapper {
    display: inline-block;
}
.store-locator-map div .gm-style div .gmnoprint .gm-style-mtc {
    display: none!important;
}
#iubenda_policy  .box_primary{
	padding:10px !important;
}
.box-text .blog-post-inner h5,
.blog-post-inner p.from_the_blog_excerpt {
    min-height: 53px;
}

/*************** NUOVE MODIFICHE 2023  ***************/
html {
    scroll-behavior:smooth;
}

.c__lowercase a {
    text-transform: unset!important;
}

.c__product-button {
    display: inline-block!important;
    margin-top: 30px;
}

.c__richiedi-informazioni-section {
    padding: 50px;
	position: relative;
	color: #FFF!important;
}

.c__richiedi-informazioni-overlay-form {
	position: absolute;
	top: 0;
	left: -400px;
	bottom: 0;
	right: 0;
	min-width: 2000px!important;
	background-color: #488ed6;
	z-index: -1;
}

.c__richiedi-informazioni-section h4 {
    text-align: center;
    font-weight: bold;
	color: #FFF!important;
}

.c__richiedi-informazioni-section form {
    margin-bottom: 0;
}

.c__richiedi-informazioni-section form label,
.c__richiedi-informazioni-section form .wpcf7-list-item-label,
.c__richiedi-informazioni-section form span,
.c__richiedi-informazioni-section form a {
	color: #FFF!important;
}

.c__richiedi-informazioni-section form .wpcf7-submit {
	border: 1px solid #FFF;
}

:target {
    scroll-margin-top: 50px;
}

.ca__text-shadow {
    text-shadow: 0px 1px 3px #000;
}

body.single #portfolio-content {
	padding-top: 0!important;
}

.portfolio-featured-title {
	min-height: 50vh!important;
	background: white!important;
	order:1;
}

.portfolio-featured-title .title-overlay {
	background-color: rgba(0,0,0,0.25)!important;
}

.ca__home-link-to-showroom a {
	font-size: 30px;
	line-height: 30px;
}

.ca__home-link-to-showroom p a:last-of-type {
	margin-top: 15px!important;
	display: inline-block;
}

.portfolio-page-wrapper.portfolio-archive.page-featured-item{
	display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.portfolio-page-wrapper.portfolio-archive.page-featured-item #content{
order: 3;
}
.portfolio-page-wrapper.portfolio-archive.page-featured-item .container {
    order: 1;
}
#header .menu-item a {
    line-height: 1.2rem!important;
}
.sidebar-wrapper ul li a{
	text-transform: uppercase;
}

header:not(.transparent) .header-main .social-icons, .header-main .cart-icon strong, 
header:not(.transparent) .header-main .menu-title, 
header:not(.transparent) .header-main .header-button > .button.is-outline, 
header:not(.transparent) .header-main .nav > li > a > i:not(.icon-angle-down) {
    color: #374046 !important;
}
header:not(.transparent) .stuck .header-main .nav > li > a > i:not(.icon-angle-down) {
    color: #fff !important;
}

.crema-product-icon a {
    border: 2px solid transparent;
    display: block;
    border-radius: 20px;
}
.crema-product-icon a:hover {
    border: 2px solid #488ed6;
}

#slider-2-slide-1-layer-9,
#slider-4-slide-3-layer-9 {
	font-size: clamp(30px, 2.865vw, 55px)!important;
	line-height: clamp(30px, 2.865vw, 55px)!important;
}


/*************** NUOVA SEZIONE GALLERY VIDEO ************/
.crema-container-gallery {
	background-color: rgb(241, 244, 247)!important;
	padding: 30px 0 50px;
}

.title-video-gallery {
	width: 100%;
	text-align: center;
	margin: 0 auto;
	margin-bottom: 0.2em;
	color: #374046;
	font-weight: bold;
}

.video-gallery,
.lightbox-gallery {
	max-width: 1440px;
	margin: 0 auto;
}

.lightbox-gallery {
	padding: 100px;
}

@media all and (max-width: 1080px) {
	.lightbox-gallery {
		padding: 100px 50px;
	}
}

/*
.video-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 20px;
	max-width: 1440px;
	margin: 0 auto;
}

.video-gallery .media-item.image {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.video-gallery .media-item.image img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

@media all and (max-width: 1440px) {
	.video-gallery {
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media all and (max-width: 1080px) {
	.video-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media all and (max-width: 500px) {
	.video-gallery {
		grid-template-columns: repeat(1, 1fr);
	}
}

.video-gallery .video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }
.video-gallery .video iframe, .video-gallery .video object, .video-gallery .video embed { position: absolute; top: 0; left: 0; width: 100%!important; height: 100%; }
*/

.crema-container-gallery .video-gallery .flickity-slider .media-item{
	width: 33%!important;
	margin-right: 10px;
	position: relative;
	aspect-ratio: 16 / 10;
	height: auto;
	overflow: hidden;
}

@media screen and ( max-width: 768px ) {
  .crema-container-gallery .video-gallery .flickity-slider .media-item{ width: 50%!important; }
}

@media screen and ( max-width: 500px ) {
  .crema-container-gallery .video-gallery .flickity-slider .media-item{ width: 100%!important; }
}

.lightbox-gallery .flickity-slider .media-item {
	width: 100%!important;
	position: relative;
	aspect-ratio: 16 / 10;
	height: auto;
	overflow: hidden;
}


.crema-container-gallery .video-gallery .flickity-slider .media-item img,
.lightbox-gallery .flickity-slider .media-item img {
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.crema-container-gallery .video-gallery .flickity-slider .media-item img:hover {
	cursor: pointer;
}

/* position outside */
.crema-container-gallery .video-gallery .flickity-prev-next-button.previous {
  left: -40px;
}
.crema-container-gallery .video-gallery .flickity-prev-next-button.next {
  right: -40px;
}

.video-gallery .video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }
.video-gallery .video iframe, .video-gallery .video object, .video-gallery .video embed { position: absolute; top: 0; left: 0; width: 100%!important; height: 100%; }

.video-gallery .video .video-overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9;
}

.flickity-prev-next-button {
    opacity: .4;
	top: 0;
	bottom: 0;
	background-color: #FFF;
	width: 35px;
	color: #488ed6;
}

.lightbox-gallery .flickity-prev-next-button {
	background-color: transparent;
	color: #FFF;
	opacity: 1;
}

.video-gallery:hover .flickity-prev-next-button {
	opacity: 1;
}

@media all and (max-width: 1440px) {
	.video-gallery {
		padding-left: 40px;
		padding-right: 40px;
	}
	.flickity-prev-next-button.previous {
		left: -5px!important;
	}
	.flickity-prev-next-button.next {
		right: -5px!important;
	}
}

/* Stile per il lightbox */
.crema-gallery-lightbox {
	display: none;
	opacity: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	transition: all ease-in-out .3s;
}

.crema-gallery-lightbox.lightbox-active {
	display: block;
	opacity: 1;
}

.crema-gallery-lightbox iframe {
	display: block;
	margin: 0 auto;
	max-width: 90%;
	max-height: 90%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

@media all and (max-width: 1080px) {
	.crema-gallery-lightbox iframe {
		max-width: 100%;
		max-height: 100%;
	}
}

.crema-gallery-lightbox .lightbox-close {
	position: absolute;
	top: 50px;
	right: 50px;
	color: #FFF;
	font-size: 30px;
}

@media all and (max-width: 1080px) {
	.crema-gallery-lightbox .lightbox-close {
		top: 30px;
		right: 30px;
		z-index: 1;
	}
}

.crema-gallery-lightbox .lightbox-close:hover {
	cursor: pointer;
}

.footer-social.footer-desktop {
	padding-bottom: 30px;
}
.footer-social.footer-desktop ul {
	margin-bottom: 10px!important;
}

.footer-social.footer-mobile {
	display: none;
}


/*************** ADD MOBILE ONLY CSS HERE  ***************/


@media only screen and (max-width: 48em) {


}



@media only screen and (max-width: 1280px) {
	.grf-contatti .col-inner{padding-right: 40px !important;}
	}


.crema-tabs ul.nav li.tab:nth-child(3) {
    display: none;
}

@media only screen and (max-width: 850px) {
	.crema-tabs ul.nav li.tab:nth-child(2) {
		display: none;
	}
	.crema-tabs ul.nav li.tab:nth-child(4) {
		display: none;
	}
	.crema-tabs ul.nav li.tab:nth-child(3) {
		display: block;
	}
	
	.footer-social.footer-mobile ul {
		margin-top: 10px!important;
		margin-bottom: 10px!important;
	}
	
	.footer-social.footer-mobile ul li:first-of-type {
		margin-left: -7px;
	}

	.footer-social.footer-mobile {
		display: block;
	}
	.footer-social.footer-desktop {
		display: none!important;
	}
}

