/*
Theme Name: ONLINE VALLES
Template: hello-elementor

*/


/* Theme admin customization starts here
-------------------------------------------------------------- */
.sbi_notice,
.trp-notice.error,
.sbi_notice.sbi_review_notice_step,
.trp-notice.trp-narrow.notice.notice-info,
.trp-notice.trp-narrow {
	display: none;
}

.grecaptcha-badge {
	visibility: hidden !important;
}



/* Theme customization starts here
-------------------------------------------------------------- */
body {
	overflow-x: hidden;
}

.burguer-menu .elementor-button .elementor-button-content-wrapper {
	display: flex;
	align-items: center;
}


.burguer-menu .elementor-button .elementor-button-icon {
	font-size: 20px;
}

@media (max-width: 766px) {
	.burguer-menu .elementor-button .elementor-button-text {
		display: none;
	}
}

.align-center {
	display: flex;
	align-items: center;
}

.align-center .elementor-icon-wrapper {
	display: flex;
	align-items: center;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
	margin-top: 1.5em;
	/* Margen por defecto */
	margin-bottom: 0.5em;
}

/* Si un heading sigue a otro heading, sin margen */
.post-content :is(h2, h3, h4, h5, h6)+ :is(h2, h3, h4, h5, h6) {
	margin-top: 0;
}

/* 1) Si el heading es el primer elemento dentro de .post-content → sin margen */
.post-content> :is(h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}


.post-content ul,
.post-content ol {
	margin-bottom: 1.5em;
}

.post-content .wp-block-image,
.post-content .wp-block-embed,
.post-content .wp-block-table {
	margin: 1.5em auto;
}

.post-content a {
	text-decoration: underline !important;
}




.post-content table td,
.post-content table th {
	padding: 6px 6px;
	font-size: 10px;
	line-height: 1.2;
}

@media (min-width: 1024px) {

	.post-content table td,
	.post-content table th {
		padding: 8px 16px;
		font-size: 12px;
	}
}



.product-content .elementor-widget-text-editor> :is(h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

.product-content h2,
.product-content h3,
.product-content h4,
.product-content h5,
.product-content h6 {
	color: var(--e-global-color-primary);
}


.product-content table strong,
.product-content table b {
	color: var(--e-global-color-primary);
}





.product-image a {
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	position: relative;
}

.product-image a img {
	height: 100%;
	width: auto;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	object-fit: cover;
}



ul.menu-shortcode {
	list-style: none;
	margin: 0;
	padding: 0;
}





.encima {
	position: relative;
	z-index: 10;
}

.overflow-x-h,
.econ.overflow-x-h {
	overflow-x: hidden !important;
}

.relative {
	position: relative;
}

b,
strong {
	font-weight: bold !important;
}

.align-top {
	margin-bottom: auto !important;
}

.align-right {
	margin-left: auto !important;
}

.align-bottom {
	margin-top: auto !important;
}

.align-left {
	margin-right: auto !important;
}






/* elementor */
.boton-100 .elementor-button-link {
	width: 100%;
}

.boton-100 .elementor-button-content-wrapper {
	width: 100%;
	display: flex;
	justify-content: space-between;
}





/* formulari */
.hola {
	text-align: center;
	font-size: 14px;
}

@media (min-width: 1024px) {
	.hola {

		font-size: 18px;
	}
}

.formulari .wpcf7-not-valid-tip {
	position: absolute;
}

.formulari p.drets,
.drets {
	text-align: center;
	font-size: 10px;
	line-height: 1.1;
	margin: 5px auto;
}

.drets label {
	line-height: 1.1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.drets .wpcf7-list-item {
	margin: 0;
	width: 100%;
}

.drets .wpcf7-list-item-label {
	width: auto;
	text-align: left;
}


.wpcf7-acceptance [type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid #1e1e1c;
	background: transparent;
	border-radius: 0;
	position: relative;
	cursor: pointer;

}

.wpcf7-acceptance input[type="checkbox"]:checked {
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' viewBox='0 0 24 24' width='20' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px;
}


.subscriute .wpcf7-not-valid-tip,
.formulari .wpcf7-not-valid-tip {
	display: none !important;
}






.subscriute p {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.subscriute label {
	display: none;
}


.subscriute input[type=email] {
	border-radius: 0;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border-bottom: 1px solid #111;
	background-color: transparent;
	line-height: 1;
	padding: 8px 10px;
}

.subscriute input[type=email].wpcf7-not-valid {
	border-bottom: 1px solid red;
}

.subscriute [type=submit] {
	border-radius: 20px;
	border: 1px solid #111;
	color: #111;
	background-color: transparent;
	text-transform: none;
	line-height: 1;
	padding: 10px 24px;
	font-size: 16px;
	font-weight: 600;
}

.subscriute [type=submit]:hover,
.subscriute [type=submit]:focus {
	border-color: #111;
	color: #fff;
	background-color: #111;
}


.subscriute .wpcf7-spinner {
	display: none;
}




.formulari a {
	color: #000;
}

.formulari a:hover {
	color: #222;
}

.formulari .form-group {
	display: flex;
	align-items: center;
}

.formulari .form-group .label {
	display: block;
	white-space: nowrap;
	margin-right: 8px;
	font-size: 16px;

}

.formulari p {
	margin: 0;
}

.formulari .form-group .wpcf7-form-control {
	border-radius: 0;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border: 1px solid #111;
	background-color: transparent;
	padding: 4px 8px;
}

.formulari .form-textarea {
	width: 100%;
}

.formulari .form-textarea .wpcf7-form-control-wrap {
	display: block;
	margin-top: 10px;
}

.formulari.contacte .label {
	font-size: 16px;
	padding: 4px 8px;
	display: none;
}


.formulari .wpcf7-textarea {
	border-radius: 0;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border: 1px solid #111;
	background-color: transparent;
}

.formulari .wpcf7-form-control-wrap {
	width: 100%;
}

.formulari .enviar {
	text-align: center;
}

.formulari .enviar .wpcf7-submit {
	border-radius: 50px;
	background-color: transparent;
	color: #111;
	padding: 8px 32px;
	text-transform: uppercase;
	border: 1px solid #111;
	font-weight: 600;
	margin-top: 20px;

}

.formulari .enviar .wpcf7-spinner {
	display: none;
}




.formulari-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 10px;
}

.formulari .hide-text {
	display: none;
}



.hide-text .elementor-button-text {
	display: none;
}

.elementor-kit-6 a.skip-link {
	color: #000;
}


.imagen-avanzada {
	width: 100%;
	overflow: hidden;
}

/* Proporciones aplicadas directamente a la imagen */
.imagen-avanzada.land43 img {
	aspect-ratio: 4 / 3;
}

.imagen-avanzada.land32 img {
	aspect-ratio: 3 / 2;
}

.imagen-avanzada.land169 img {
	aspect-ratio: 16 / 9;
}

.imagen-avanzada.land21 img {
	aspect-ratio: 2 / 1;
}

.imagen-avanzada.land31 img {
	aspect-ratio: 3 / 1;
}

.imagen-avanzada.land41 img {
	aspect-ratio: 4 / 1;
}

.imagen-avanzada.port34 img {
	aspect-ratio: 3 / 4;
}

.imagen-avanzada.port23 img {
	aspect-ratio: 2 / 3;
}

.imagen-avanzada.square img {
	aspect-ratio: 1 / 1;
}

.imagen-avanzada img {
	width: 100%;
	height: auto;
	/* importante */
	object-fit: cover;
	display: block;
	transition: transform 300ms ease-in-out;
}



.slide-overflow .elementor-loop-container {
	overflow: visible;
}

.slide-overflow .elementor-swiper-button-prev,
.slide-overflow .elementor-swiper-button-next {
	width: 30px;
	height: 30px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-overflow .elementor-swiper-button-prev .icon {
	padding-right: 3px;
}

.slide-overflow .elementor-swiper-button-next .icon {
	padding-left: 3px;
}




.loop-projecte .project-title {
	opacity: 0;
	transition: transform 300ms ease-in-out;
}

.loop-projecte:hover .project-title {
	opacity: 1;
}



@media (min-width: 766px) {
	.slide-overflow .elementor-loop-container {
		overflow: visible;
	}
}

.slide-overflow .elementor-swiper-button-prev, 
.slide-overflow .elementor-swiper-button-next {
	width: 30px;
	height: 30px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-overflow .elementor-swiper-button-prev .icon {
	padding-right: 3px;
}

.slide-overflow .elementor-swiper-button-next .icon {
	padding-left: 3px;
}