/*
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;
}

@font-face {
  font-style: normal;
  font-weight: 100 900; /* Rango típico de fuente variable */
  font-display: swap;
}



#hide_header {
	top: 0;
	width: 100%;
	z-index: 999;
	transition: all 0.3s ease;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

#hide_header.sticky-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	animation: slideDown 0.3s ease-out;
}

/* Animación sólo al aparecer */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-100px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


.menu-principal-- li a:focus-visible {
	    outline: none;
}

.menu-principal-- .elementor-nav-menu--dropdown .elementor-sub-item {
	font-size: 16px !important;
}

.link-primary a {
	color: var(--e-global-color-primary) !important;
}







.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;
	}
}




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

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

.relative {
	position: relative;
}


.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 – GENERAL
====================================================== */

.formulari p {
	margin: 0;
}

.formulari a {
	color: #000;
}

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

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


/* ======================================================
   ERRORES (Contact Form 7)
====================================================== */

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


/* ======================================================
   DERECHOS / ACEPTACIÓN
====================================================== */

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

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

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

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


/* Checkbox personalizado */

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

.wpcf7-acceptance input[type="checkbox"]:checked {
	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;
}


/* ======================================================
   FORMULARI – CAMPOS
====================================================== */

.formulari .form-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.formulari .form-group .label,
.formulari .form-textarea .label {
	display: block;
	white-space: nowrap;
	margin-bottom: 8px;
	font-size: 12px;
	line-height: 1.1;
}

.formulari .form-group .wpcf7-form-control,
.formulari .wpcf7-textarea {
	border: 1px solid #111;
	border-radius: 0;
	background-color: transparent;
	padding: 4px 8px;
	font-size: 14px;
	min-height: 30px;
}

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


/* Textarea */

.formulari .form-textarea {
	width: 100%;
	margin-top: 10px;
}

.formulari .form-textarea .wpcf7-form-control-wrap {
	display: block;
}




/* ======================================================
   BOTÓN ENVIAR
====================================================== */

.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;
}


/* ======================================================
   GRID
====================================================== */

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



/* ======================================================
   OTROS
====================================================== */

.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-partners .swiper-wrapper {
    -webkit-transition-timing-function: linear !important;
    -o-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}

.slide-partners img {
	max-width: 150px !important;
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.slide-partners .elementor-image-carousel-wrapper {
	overflow: visible;
}


.foto-dreta {
	position: relative;
}

.foto-dreta img {
	position: relative;
	z-index: 2;
	background-color: var(--e-global-color-primary);
}

.foto-dreta:before {
	content: '';
	width: 100%;
	height: 100%;
	background-color: var(--e-global-color-secondary);
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
}