/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* General */

body {
	font-size: 14px;
	color: black;
}
.p-no-margin p {
	margin-bottom: 0;
}
a.elementor-button {
	text-decoration: none;
}
.boto-fletxa span.elementor-button-icon {
	width: 10px;
	height: 10px;
	position: absolute;
	top: 15px;
	right: 20px;
}
.boto-fletxa.petit span.elementor-button-icon {
	width: 8px;
	height: 8px;
	top: 11px;
	right: 11px;
}
.elementor-widget-text-editor ul {
	margin-block-end: .9rem;
}
.elementor-nav-menu .sub-arrow {
	display: none;
}
a.elementor-element, .elementor-widget-post-info a {
	text-decoration: none;
}

@media (max-width: 767px) {
	.text-home-tipus h3 {
		font-size: 21px;
	}
}

.boto-rodo a.elementor-button {
	width: 180px;
	height: 180px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.boto-rodo a.elementor-button .elementor-button-content-wrapper {
	flex-direction: column-reverse !important;
	align-items: center;
}
.boto-rodo span.elementor-button-icon {
	width: 12px;
	height: 12px;
	margin-top: 12px;
	margin-bottom: -34px;
}
@media (min-width: 1024px) {
	.boto-rodo {
		position: absolute;
		right: 40px;
		bottom: 40px;
	}
}

.elementor-element.elementor-pagination-position-outside.slider-frases .swiper {
	border-radius: 10px;
	padding-bottom: 0;
	background-color: white !important;
}
.elementor-element.slider-frases .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
	bottom: -50px;
}
.elementor-widget-image-carousel .swiper .swiper-slide figure {
	line-height: 0 !important;
}

.elementor-element .swiper .swiper-pagination-bullets.swiper-pagination-horizontal, 
.elementor-element.slider-marques .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
	bottom: 10px;
}
@media (min-width: 1024px) {
	.elementor-element .swiper .swiper-pagination-bullets.swiper-pagination-horizontal, 
	.elementor-element.slider-marques .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
		bottom: 40px;
	}
}

.capitalize {
	text-transform: capitalize;
}
.stock-grid-text {
	height: 100%;
}
.rounded-corners .swiper {
	border-radius: 10px;
}
.wp-grid-builder * {
	min-width: 0;
}
.elementor-element.elementor-pagination-position-outside .swiper {
	padding-bottom: 0;
}
.elementor-element.elementor-pagination-position-outside .swiper .elementor-swiper-button {
	top: 50%;
}

.sticker-oferta {
	display: block;
	background: #00B5DD;
	color: white;
	text-align: center;
	padding: 5px;
	width: 110px;
	border-radius: 15px;
	position: absolute;
	z-index: 1;
	right: 10px;
	top: 10px;
}

@media (max-width: 767px) {
	.loop-stock .e-con.e-flex {
		flex-wrap: nowrap;
	}
}

.reserva-visita {
	width: 100%;
	max-width: 100%;
}
.reserva-visita .elementor-button {
	background-color: #FFFFFF;
	font-family: "Inter", Sans-serif;
	font-size: 14px;
	font-weight: 400;
	fill: var(--e-global-color-text);
	color: var(--e-global-color-text);
	border-radius: 100px 100px 100px 100px;
	padding: 12px 16px 12px 16px;
}
.reserva-visita .elementor-button-content-wrapper {
	flex-direction: row-reverse;
}
.reserva-visita .elementor-button:hover, .reserva-visita .elementor-button:focus {
	background-color: var(--e-global-color-text);
	color: #FFFFFF;
}
.reserva-visita .elementor-button:hover svg, .reserva-visita .elementor-button:focus svg {
	fill: #FFFFFF;
}


/* Menus */

@media (max-width: 1024px) {
	ul.elementor-nav-menu--dropdown a, ul.elementor-nav-menu--dropdown a:focus, ul.elementor-nav-menu--dropdown a:hover {
		border-inline-start: none;
	}
	.sub-menu.elementor-nav-menu--dropdown {
		margin-bottom: 10px;
	}
	.elementor-nav-menu--dropdown .elementor-sub-item {
		padding: 0 5px !important;
	}
}


/* Carousel Home */

body:not(.elementor-editor-active) .home-carousel .e-n-carousel,
body:not(.elementor-editor-active) .home-carousel .swiper,
body:not(.elementor-editor-active) .home-carousel .swiper-wrapper {
  overflow: visible !important;
}
body:not(.elementor-editor-active) .home-carousel .swiper-wrapper {
  position: relative !important;
}
body:not(.elementor-editor-active) .home-carousel .swiper-wrapper > .swiper-slide {
  position: relative;
  z-index: 1;
}
body:not(.elementor-editor-active) .home-carousel .home-carousel-ghost-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
body:not(.elementor-editor-active) .home-carousel .home-carousel-ghost-layer .swiper-slide {
  pointer-events: none;
}
body:not(.elementor-editor-active) .home-carousel .swiper .swiper-slide {
	transition: opacity 0.3s;
	opacity: 0.25;
}
body:not(.elementor-editor-active) .home-carousel .swiper .swiper-slide-visible {
	opacity: 1;
}
body:not(.elementor-editor-active) .home-carousel-ghost-layer .swiper-slide > .elementor-element {
	height: 100%;
}

@media (min-width: 768px) {
	.home-carousel-text {
		height: 100%;
	}
}


/* Carousel Stock */

html[lang="ca"] .carousel-stock .e-loop-nothing-found-message::before {
	content: "En aquest moment no disposem de vehicles en estoc.";
}
html[lang="es-ES"] .carousel-stock .e-loop-nothing-found-message::before {
	content: "En este momento no disponemos de vehículos en stock.";
}
html[lang="en"] .carousel-stock .e-loop-nothing-found-message::before {
	content: "We do not currently have any vehicles in stock.";
}


/* Slider Vehicles */

.thumbnail-slider {
	width: 100%;
}
.thumbnail-slider .swiper {
	position: relative;
	background-color: rgba(0, 0, 0, .05);
}
.thumbnail-slider .swiper-slide {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.thumbnail-slider .swiper-slide img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.thumbnail-slider .carousel-thumbnails {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	overflow-x: hidden;
	cursor: grab;
	user-select: none;
}
.thumbnail-slider .carousel-thumbnails .thumb-slide {
	flex: 0 0 auto;
	cursor: pointer;
}
.thumbnail-slider .carousel-thumbnails img {
	flex: 0 0 auto;
	width: 100px;
	height: 77px;
	object-fit: cover;
	cursor: pointer;
	opacity: 0.5;
	border: 5px solid transparent;
	transition: opacity 0.3s;
	display: block;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}
.thumbnail-slider .carousel-thumbnails img:first-child {
	border-left: 0;
}
.thumbnail-slider .carousel-thumbnails img.active {
	opacity: 1;
}

@media (min-width: 768px) {
	.thumbnail-slider .carousel-thumbnails {
		margin-top: 22px;
	}
	.thumbnail-slider .carousel-thumbnails img {
		width: 150px;
		height: 115px;
	}
}

.stock.disponibilitat-venuda .venut-slider {
	position: absolute;
	aspect-ratio: 4 / 3;
	pointer-events: none;
}
.stock.disponibilitat-venuda .venut-slider .e-con-inner {
	justify-content: center;
}
.stock.disponibilitat-venuda .venut-slider .e-con-inner p {
	position: absolute;
	left: 50%;
	top: calc(50% - 45px);
	transform: translateX(-50%) rotate(-20deg);
	border: 3px solid rgba(255, 0, 0, 0.5);
	padding: 0.2em 0.8em;
}


/* Graella vehicles */

.carousel-grid .elementor-image-carousel.swiper-wrapper {
	max-width: 347px;
	aspect-ratio: 3 / 2;
}
.e-loop-nothing-found-message .e-loop-nothing-found-message__text {
	text-align: center;
	padding: 40px 20px;
	font-size: 14px;
}
.wpgb-facet-7 {
	text-align: center;
}
.wpgb-facet button.wpgb-button.wpgb-load-more {
	font-size: 0;
	color: transparent;
	background: transparent;
	position: relative;
	pointer-events: none;
}
.wpgb-facet button.wpgb-button.wpgb-load-more::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(0,0,0,0.2);
	border-top-color: #333;
	border-radius: 50%;
	animation: wpgb-spin 0.6s linear infinite;
}
.elementor-element .wpgb-facet .wpgb-range-facet .wpgb-range-slider {
	margin: 0 0 6px 0;
}
.elementor-widget-wpgb-facet {
	margin-block-end: 10px !important;
}

@keyframes wpgb-spin {
	to { transform: rotate(360deg); }
}

/* Gravity Forms */

span.ginput_price {
	position: absolute;
	right: 0;
}
.gform-theme--framework .gform-field-label--type-inline {
	padding-right: 100px;
}
.gform-theme.gform-theme--framework:where(:not(.gform_editor)) .gfield--type-section {
	border-block-end: none;
}
/*.gform-theme--framework .gfield--type-choice .gchoice:nth-child(odd) {
	background-color: rgba(0, 0, 0, .1);
}*/
a.toggle-details {
	border: 1px solid;
	font-size: 10px;
	padding: 0 5px;
	border-radius: 10px;
	margin: 0 10px;
	white-space: nowrap;
}
a.toggle-details:hover {
	background-color: transparent;
}
.gfield_label.gform-field-label {
	font-weight: 600 !important;
}
.configurador-form {
	position: relative;
	width: 100%;
	margin-bottom: 60px;
}
.gform_confirmation_wrapper {
	margin: 60px 0;
}
.gform_confirmation_message {
	text-align: center;
}
.gform_required_legend {
	display: none;
}
h3.gsection_title {
	font-weight: 400;
	text-align: center;
}

.gform-theme--framework .gform_footer input[type="submit"].gform_button,
.gform-theme--framework .gform_page_footer input[type="submit"].gform_button {
	--gf-ctrl-btn-bg-color-primary: #00B5DD;
	--gf-ctrl-btn-color-primary: #000000;
	--gf-ctrl-btn-bg-color-hover-primary: #FFFFFF;
	--gf-ctrl-btn-color-hover-primary: #000000;
	--gf-ctrl-btn-radius: 100px;
	--gf-ctrl-btn-font-size: 14px;
	--gf-ctrl-btn-font-weight: 400;
	width: 100% !important;
	border-width: 1px !important;
	border-color: #000000 !important;
}
.gform-theme--foundation .gform_footer, .gform-theme--foundation .gform_page_footer {
	margin-block-start: 45px !important;
}
.gform-theme-button, .gform_button {
	color: black !important;
	background-color: white !important;
	border: 1px solid black !important;
	border-radius: 100px !important;
}
.gform-theme-button span, .gform_button span {
	display: none !important;
}
.gform_drop_area::before {
	color: #00B5DD !important;
}
legend.gfield_label.gform-field-label, .gfield--type-textarea.readonly-paragraph label.gfield_label.gform-field-label {
	font-weight: 600 !important;
	border-bottom: 1px solid #D9D9D9;
	width: 100%;
	padding-bottom: 6px;
}

.gform-theme--foundation .gfield.readonly-paragraph textarea {
	pointer-events: none;
	resize: none;
	border: none;
	outline: none;
	background: transparent;
	padding: 0;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	cursor: default;
	box-shadow: none;
	min-block-size: unset !important;
	height: auto;
	field-sizing: content;
	font-size: 16px;
}
@media (min-width: 768px) {
	.gform-theme--foundation .gfield.readonly-paragraph textarea {
		font-size: 14px;
	}
}

.container-configurador {
	display: flex;
	gap: 10px;
}
.elementor .imatge-configurador {
	display: block;
	width: 32%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.elementor .imatge-configurador img {
	max-width: 346px;
	min-width: 0;
	border-radius: 10px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
@media (min-width: 768px) {
	.container-configurador {
		gap: 20px;
	}
}

.gform-theme--framework .gfield_consent_description_text {
	border: none !important;
	padding: 5px 0 !important;
}
.contact-form .gform_button {
	background-color: #00B5DD !important;
	width: 100% !important;
}
.contact-form .gform_button:hover {
	background-color: #FFFFFF !important;
}

@media (max-width: 767px) {
	.gform-theme.gform-theme--foundation .gform_fields {
		row-gap: 20px;
	}
}

.gfield--input-type-total_tax_field label, .gfield--input-type-total_tax_field input {
	font-size: 22px !important;
}
.gform-theme--framework input[type].gform-text-input-reset {
	transition: none !important;
}
.gform-theme--framework input[type].gform-text-input-reset:focus {
	border: none;
	outline: none;
	padding: 1px;
}

.gfield.matriculacion .ginput_container, .gfield.descuento .ginput_container {
	max-width: 258px;
}


/* Equipaments */

.menu-equipaments ul {
	gap: 10px;
}
.menu-equipaments a {
	background-color: white;
	border: 1px solid black;
	border-radius: 30px;
	padding: 6px 12px !important;
}
.menu-equipaments a:hover {
	background-color: black;
	color: white !important;
}
.menu-equipaments .current-menu-item a {
	background-color: #00B5DD !important;
	color: black !important;
}
.header-carousel {
	border-radius: 10px;
	overflow: hidden;
}
.image-with-caption.elementor-widget-image .widget-image-caption {
	display: flex;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: white !important;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	font-size: 28px;
	font-style: normal;
}
.text-desplegable {
	overflow: hidden;
	margin-bottom: 50px;
	transition: max-height 0.4s ease;
}
.text-desplegable p {
	margin-bottom: 0;
}
.desplega-text {
	cursor: pointer;
}
.desplega-text.obert .e-fas-plus {
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

@media (max-width: 767px) {

	.filtro-movil .e-filter {
		display: none;
		flex-direction: column;
	}
	.filtro-movil.abierto .e-filter {
		display: flex;
	}
	.filtro-movil {
		width: 100% !important;
	}
	.filtro-movil .filtro-toggle {
		display: block;
		width: 100%;
		border: none;
		padding: 4px 8px;
		text-align: left;
		cursor: pointer;
		position: relative;
		color: black;
	}
	.filtro-movil .filtro-toggle:hover {
		background-color: transparent;
	}
	.filtro-movil .filtro-toggle::after {
		content: "▼";
		font-size: 10px;
		position: absolute;
		top: 6px;
		right: 8px;
		transition: transform .3s;
	}
	.filtro-movil.abierto .filtro-toggle::after {
		transform: rotate(180deg);
	}
  
}

@media (min-width: 768px) {
  .filtro-movil .filtro-toggle { display: none; }
}


/* Blog */

.blog-post-content {
	font-size: 18px;
}
.blog-post-content h2 {
	font-size: 28px;
	font-weight: 500;
	color: #00B5DD;
	margin-block-start: 2rem;
}
.blog-post-content h3 {
	font-size: 18px;
	font-weight: 700;
}
.blog-post-content ul, .blog-post-content ol {
	margin-block-end: 1rem;
}
.blog-post-content img {
	border-radius: 10px;
	margin-block-start: 2rem;
	margin-block-end: 1rem;
}
.blog-post-content .wp-caption-text {
	font-size: 18px;
	text-align: right;
	margin-top: -10px;
}

.botons-menu.elementor-widget-n-menu .e-n-menu-heading {
	flex-wrap: nowrap;
	column-gap: 10px;
	row-gap: 10px;
}
.botons-menu.elementor-widget-n-menu li.e-n-menu-item {
	width: 25%;
	margin-inline-end: 0 !important;
	max-width: 100%;
}
.botons-menu.elementor-widget-n-menu li.e-n-menu-item a {
	text-decoration: none;
}

@media (max-width: 1023px) {
	.botons-menu.elementor-widget-n-menu .e-n-menu-title-text {
		font-size: 12px;
	}
}

html[lang="ca"] .botons-menu.elementor-widget-n-menu .e-n-menu-toggle::before {
	content: 'Categories';
}
html[lang="es-ES"] .botons-menu.elementor-widget-n-menu .e-n-menu-toggle::before {
	content: 'Categorías';
}
html[lang="en"] .botons-menu.elementor-widget-n-menu .e-n-menu-toggle::before {
	content: 'Categories';
}
.botons-menu.elementor-widget-n-menu .e-n-menu-toggle::before {
	margin-right: 10px;
}
.botons-menu.elementor-widget-n-menu .e-n-menu-toggle svg {
	width: 10px;
}
.botons-menu.elementor-widget-n-menu .e-n-menu-toggle span.e-close {
	margin-left: -10px;
	height: auto;
	position: relative;
	width: auto;
}

@media (max-width: 767px) {
	.botons-menu.elementor-widget-n-menu .e-n-menu-title-text {
		font-size: 14px;
	}
	.botons-menu.elementor-widget-n-menu .e-n-menu-heading {
		flex-direction: column;
		padding: 20px;
	}
}


