/* =========================================================================
   Nouvilas Child — estils base (v0.1)
   Valors extrets de la web original (Hooba): Roboto, teal #00857C
   ========================================================================= */

:root {
	--nv-primary: #00857c;
	--nv-primary-dark: #006d65;
	--nv-primary-light: #17a19a;
	--nv-text: #000;
	--nv-text-soft: #333;
	--nv-muted: #444;
	--nv-line: #e5e5e5;
	--nv-bg-soft: #f6f6f6;
	--nv-container: 1072px;
	--nv-font: 'Roboto', Arial, sans-serif;
}

/* Elementor: que el kit hereti la tipografia i els colors del lloc */
body[class*="elementor-kit-"] {
	--e-global-color-primary: #00857c;
	--e-global-color-secondary: #333333;
	--e-global-color-text: #000000;
	--e-global-color-accent: #17a19a;
	--e-global-typography-primary-font-family: 'Roboto';
	--e-global-typography-secondary-font-family: 'Roboto';
	--e-global-typography-text-font-family: 'Roboto';
	--e-global-typography-accent-font-family: 'Roboto';
	--container-max-width: 100%;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--nv-font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--nv-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--nv-primary); }
h1, h2, h3, h4 { font-family: var(--nv-font); line-height: 1.2; color: var(--nv-text); }

.nv-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: #fff; padding: 8px 14px; color: var(--nv-text);
}
.nv-skip:focus { left: 8px; top: 8px; }

/* Botó -------------------------------------------------------------------- */
a.nv-btn,
button.nv-btn,
.elementor-widget.nv-btn .elementor-button {
	display: inline-block;
	background: var(--nv-primary);
	color: #fff;
	border: 1px solid var(--nv-primary-light);
	border-radius: 0;
	padding: 11px 30px;
	font-family: var(--nv-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease;
}
a.nv-btn:hover,
button.nv-btn:hover,
.elementor-widget.nv-btn .elementor-button:hover { background: var(--nv-primary-dark); color: #fff; }
.nv-btn--header { padding: 14px 30px; font-size: 16px; font-weight: 600; white-space: nowrap; }

/* Capçalera --------------------------------------------------------------- */
.nv-header { background: #fff; position: relative; z-index: 50; }
.nv-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px 60px;
}
.nv-logo { display: block; flex: 0 0 auto; line-height: 0; }
.nv-logo img { display: block; width: 176px; height: auto; }
.nv-logo__text { font-size: 20px; font-weight: 600; color: var(--nv-text); line-height: 1.2; }

.nv-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.nv-nav { flex: 1; display: flex; justify-content: center; }
.nv-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
.nv-menu > li { position: relative; }
.nv-menu a {
	display: block;
	padding: 8px 0;
	color: var(--nv-text-soft);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s ease;
}
.nv-menu a:hover,
.nv-menu .current-menu-item > a,
.nv-menu .current-menu-ancestor > a,
.nv-menu .current-page-ancestor > a { color: var(--nv-primary); }

.nv-menu .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 9px; height: 9px;
	margin: 0 0 3px 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) scale(.8);
}
.nv-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: -16px; min-width: 220px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nv-menu li:hover > .sub-menu,
.nv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nv-menu .sub-menu a { padding: 9px 20px; font-weight: 400; white-space: nowrap; }

.nv-panel__right { display: flex; align-items: center; gap: 28px; }

/* Selector d'idioma */
.nv-lang { position: relative; }
.nv-lang__btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; padding: 8px 0; cursor: pointer;
	font: 500 16px/1 var(--nv-font); color: var(--nv-text-soft);
}
.nv-chev { fill: none; stroke: currentColor; stroke-width: 2.4; }
.nv-lang__list {
	list-style: none; margin: 0; padding: 6px 0;
	position: absolute; top: 100%; right: 0; min-width: 130px;
	background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	display: none; z-index: 10;
}
.nv-lang.is-open .nv-lang__list { display: block; }
.nv-lang__list a {
	display: flex; gap: 10px; align-items: baseline;
	padding: 8px 18px; color: var(--nv-text-soft); text-decoration: none; font-weight: 500;
}
.nv-lang__list a:hover { color: var(--nv-primary); }
.nv-lang__name { font-weight: 400; font-size: 13px; color: var(--nv-muted); }

/* Controls mòbil (amagats a escriptori) */
.nv-mobile { display: none; align-items: center; gap: 6px; margin-left: auto; }
.nv-icon { display: inline-flex; padding: 8px; color: #bebebe; }
.nv-icon:hover { color: var(--nv-text-soft); }
.nv-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nv-burger { background: none; border: 0; padding: 10px; cursor: pointer; display: inline-flex; flex-direction: column; gap: 5px; }
.nv-burger span { display: block; width: 24px; height: 2px; background: var(--nv-text-soft); transition: transform .2s ease, opacity .2s ease; }
.nv-header.is-open .nv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nv-header.is-open .nv-burger span:nth-child(2) { opacity: 0; }
.nv-header.is-open .nv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Molla de pa ----------------------------------------------------------- */
.nv-breadcrumb { max-width: var(--nv-container); margin: 0 auto; padding: 8px 24px 0; font-size: 13px; }
.nv-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.nv-breadcrumb li { color: var(--nv-text-soft); }
.nv-breadcrumb li + li::before { content: '>'; margin: 0 8px; color: var(--nv-text-soft); }
.nv-breadcrumb a { color: var(--nv-primary); text-decoration: none; }
.nv-breadcrumb a:hover { text-decoration: underline; }

.nv-main { min-height: 40vh; }

/* Peu ------------------------------------------------------------------- */
.nv-footer__main {
	background: var(--nv-primary);
	color: #fff;
	text-align: center;
	padding: 44px 24px 38px;
}
.nv-footer__main a { color: #fff; text-decoration: none; }
.nv-footer__logo { display: inline-block; line-height: 0; margin-bottom: 14px; }
.nv-footer__logo img { width: 220px; height: auto; }
.nv-footer__name { margin: 0 0 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.nv-footer__line { margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.nv-footer__line svg { fill: currentColor; stroke: currentColor; stroke-width: 0; vertical-align: -2px; margin-right: 6px; }

.nv-footer__bar { background: #000; color: #fff; }
.nv-footer__bar-inner {
	max-width: 1440px; margin: 0 auto; padding: 26px 58px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.nv-legal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: 520px; }
.nv-legal__list a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.nv-legal__list a:hover { text-decoration: underline; }
.nv-kd { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 16px; }
.nv-kd img { display: block; height: 40px; width: auto; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1023px) {
	.nv-header__inner { padding: 18px 20px; gap: 12px; }
	.nv-logo img { width: 120px; }
	.nv-mobile { display: flex; }

	.nv-panel {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-top: 1px solid var(--nv-line);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
		padding: 8px 20px 24px;
		max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.nv-header.is-open .nv-panel { display: flex; }

	.nv-nav { justify-content: flex-start; }
	.nv-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.nv-menu > li { border-bottom: 1px solid var(--nv-line); }
	.nv-menu a { padding: 14px 0; }
	.nv-menu .menu-item-has-children > a::after { display: none; }
	.nv-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; padding: 0 0 8px 16px; min-width: 0;
	}
	.nv-menu .sub-menu a { padding: 9px 0; }

	.nv-panel__right { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 18px; }
	.nv-lang__btn { padding: 4px 0; }
	.nv-lang__list { position: static; box-shadow: none; padding: 4px 0 0 0; }
	.nv-lang.is-open .nv-lang__list { display: flex; gap: 6px 24px; flex-wrap: wrap; }
	.nv-lang__list a { padding: 6px 0; }
	.nv-btn--header { text-align: center; }

	.nv-breadcrumb { padding: 4px 20px 0; }
	.nv-footer__bar-inner { padding: 22px 20px; flex-direction: column; align-items: flex-start; }
	.nv-kd img { height: 34px; }
}

/* =========================================================================
   Contingut d'Elementor (plantilles generades per build-pages.mjs)
   ========================================================================= */
.elementor .nv-h1 .elementor-heading-title {
	font-family: var(--nv-font); font-size: 30px; font-weight: 400; line-height: 1.2;
	color: #000; text-transform: none; margin: 0;
}
.elementor .nv-h2 .elementor-heading-title {
	font-family: var(--nv-font); font-size: 28px; font-weight: 400; line-height: 1.2; color: #000; margin: 0;
}
.elementor .nv-center,
.elementor .nv-center .elementor-heading-title { text-align: center; }
.elementor .nv-lead { font-size: 16px; line-height: 1.5; color: #000; }
.elementor .nv-lead p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: #000; }
.elementor .nv-lead p:last-child { margin-bottom: 0; }

/* Galeria: 1 foto gran + 9 miniatures amb lightbox */
.nv-gallery { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.nv-gallery a { display: block; overflow: hidden; line-height: 0; }
.nv-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nv-gallery__main { aspect-ratio: 1 / 1; }
.nv-gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nv-gallery__thumb { aspect-ratio: 1 / 1; }
@media (max-width: 767px) {
	.nv-gallery { grid-template-columns: 1fr; }
	.nv-gallery__thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* Carrusel genèric (serveis i valoracions) */
.nv-carousel { position: relative; padding: 0 44px; }
.nv-carousel__track {
	list-style: none; margin: 0; padding: 0; display: flex;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.nv-carousel__track::-webkit-scrollbar { display: none; }
.nv-carousel__track > li { flex: 0 0 calc(100% / var(--per, 4)); scroll-snap-align: start; padding: 0 8px; box-sizing: border-box; }
.nv-carousel__btn {
	position: absolute; top: 45%; transform: translateY(-50%);
	width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.nv-carousel__btn::before {
	content: ''; display: block; width: 14px; height: 14px;
	border-left: 2px solid var(--nv-primary); border-bottom: 2px solid var(--nv-primary);
}
.nv-carousel__btn--prev { left: 0; }
.nv-carousel__btn--prev::before { transform: rotate(45deg); }
.nv-carousel__btn--next { right: 0; }
.nv-carousel__btn--next::before { transform: rotate(-135deg); }
.nv-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.nv-carousel__dots span { width: 9px; height: 9px; border-radius: 50%; background: #e5e5e5; }
.nv-carousel__dots span.is-active { background: var(--nv-primary); }
.nv-carousel.is-static { padding: 0; }
.nv-carousel.is-static .nv-carousel__btn,
.nv-carousel.is-static .nv-carousel__dots { display: none; }

.nv-amen__item { text-align: center; }
.nv-amen__item img { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto; }
.nv-amen__item p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--nv-primary-light); }
.nv-amen__note { margin: 12px 0 0; text-align: center; font-size: 14px; color: #000; }
.nv-reviews__item img { display: block; width: 100%; height: auto; }

/* Dues imatges (Activitats) */
.nv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nv-pair img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 767px) { .nv-pair { grid-template-columns: 1fr; } }

/* Targetes del llistat d'apartaments */
.nv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nv-card a { position: relative; display: block; overflow: hidden; line-height: 0; text-decoration: none; }
.nv-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.nv-card a:hover img { transform: scale(1.04); }
.nv-card h3 {
	position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .32); color: #fff; font-size: 22px; font-weight: 500; line-height: 1.2; text-align: center;
}
@media (max-width: 1023px) { .nv-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nv-cards { grid-template-columns: 1fr; } }

/* =========================================================================
   Inici
   ========================================================================= */
.elementor .nv-hero { padding: 0; }
.nv-hero__link { display: block; line-height: 0; }
.nv-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 617; object-fit: cover; }
.elementor .nv-hero-card { position: relative; z-index: 2; }
.elementor .nv-hero-card > .e-con-inner {
	margin-top: -120px; background: #f6f6f6; padding: 40px 40px 48px; text-align: center; align-items: center;
}
.elementor .nv-hero-h1 .elementor-heading-title {
	font-family: var(--nv-font); font-size: 40px; font-weight: 600; line-height: 1.2; text-transform: uppercase; color: #333; text-align: center; margin: 0;
}
.nv-homegrid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 20px; max-width: 1320px; margin: 0 auto; }
.nv-homegrid__big { overflow: hidden; line-height: 0; }
.nv-homegrid__big img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nv-homegrid__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nv-tile { position: relative; display: block; line-height: 0; overflow: hidden; aspect-ratio: 1 / 1; text-decoration: none; }
.nv-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.nv-tile:hover img { transform: scale(1.04); }
.nv-tile::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.nv-tile__title {
	position: absolute; z-index: 1; left: 0; right: 0; top: 36%; text-align: center;
	color: #fff; font-size: 26px; font-weight: 500; line-height: 1.2;
}
.nv-tile__go {
	position: absolute; z-index: 1; left: 50%; top: 60%; transform: translateX(-50%);
	width: 30px; height: 30px; border-radius: 50%; background: var(--nv-primary-light); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; line-height: 1;
}
@media (max-width: 767px) {
	.elementor .nv-hero-card > .e-con-inner { margin-top: -50px; padding: 28px 20px 32px; }
	.elementor .nv-hero-h1 .elementor-heading-title { font-size: 26px; }
	.nv-homegrid { grid-template-columns: 1fr; }
	.nv-tile__title { font-size: 20px; }
	.elementor .nv-homegrid-wrap { padding-left: 20px; padding-right: 20px; }
}

/* Bloc de contacte (inici i pàgina de contacte) */
.nv-contactlines p { margin: 0 0 6px; display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: #000; }
.nv-contactlines svg { flex: 0 0 16px; margin-top: 4px; fill: #333; }
.nv-contactlines a { color: var(--nv-primary); text-decoration: none; }
.nv-contactlines__name { font-weight: 500; text-transform: uppercase; display: block !important; }
.nv-contactlines.nv-center p { justify-content: center; text-align: center; }
.nv-map { aspect-ratio: 4 / 3; background: #e5e5e5; }
.nv-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.nv-contact-band .nv-formcard { background: #fff; padding: 28px 34px 36px; }

/* =========================================================================
   Entorn, text, mapa web
   ========================================================================= */
.elementor .nv-h1--light .elementor-heading-title { font-weight: 300; font-size: 32px; }
.elementor .nv-band-title .elementor-heading-title { color: #fff; font-size: 28px; font-weight: 300; text-align: center; margin: 0; }
.elementor .nv-h3 .elementor-heading-title { font-size: 22px; font-weight: 400; line-height: 1.25; margin: 0; color: #000; }
.elementor .nv-leadbig p { font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
.elementor .nv-h2--lead .elementor-heading-title { font-size: 28px; }

.nv-legaltext h2 { font-size: 22px; font-weight: 500; line-height: 1.25; margin: 28px 0 8px; }
.nv-legaltext h3 { font-size: 18px; font-weight: 500; margin: 20px 0 6px; }
.nv-legaltext p, .nv-legaltext li { font-size: 15px; line-height: 1.55; color: #000; }
.nv-legaltext p { margin: 0 0 12px; }
.nv-legaltext ul, .nv-legaltext ol { margin: 0 0 14px; padding-left: 22px; }
.nv-legaltext a { color: var(--nv-primary); }
.nv-sitemap ul { list-style: none; margin: 0; padding-left: 22px; }
.nv-sitemap > ul { padding-left: 0; }
.nv-sitemap li { margin: 6px 0; font-size: 16px; }
.nv-sitemap a { color: var(--nv-text-soft); text-decoration: none; }
.nv-sitemap a:hover { color: var(--nv-primary); }

/* =========================================================================
   Formularis (Forminator): estil pla com a l'original
   ========================================================================= */
.nv-formcard .forminator-ui { font-family: var(--nv-font); }
.nv-formcard .forminator-row { margin: 0 0 16px; }
.nv-formcard label,
.nv-formcard .forminator-label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 400; color: #000; }
.nv-formcard input[type="text"],
.nv-formcard input[type="email"],
.nv-formcard input[type="number"],
.nv-formcard input[type="tel"],
.nv-formcard textarea,
.nv-formcard select {
	width: 100%; box-sizing: border-box; padding: 8px 10px; background: #fff; color: #000;
	border: 1px solid #ccc; border-radius: 1px; font: 400 16px/1.2 var(--nv-font);
}
.nv-formcard textarea { min-height: 110px; }
.nv-formcard input[type="file"] { width: 100%; font: 400 13px var(--nv-font); }
.nv-formcard .forminator-radio,
.nv-formcard .forminator-checkbox { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.nv-formcard .forminator-radio label,
.nv-formcard .forminator-checkbox label { margin: 0; }
.nv-formcard .forminator-description { margin-top: 3px; font-size: 11px; font-style: italic; color: #777; }
.nv-formcard .forminator-error-message { display: block; margin-top: 4px; font-size: 13px; color: #c0392b; }
.nv-formcard .forminator-button-submit,
.nv-formcard .forminator-button-next {
	background: var(--nv-primary); color: #fff; border: 1px solid var(--nv-primary-light); border-radius: 0;
	padding: 11px 30px; font: 700 15px/1.5 var(--nv-font); text-transform: uppercase; cursor: pointer;
}
.nv-formcard .forminator-button-submit:hover,
.nv-formcard .forminator-button-next:hover { background: var(--nv-primary-dark); }
.nv-formcard .forminator-button-back { background: none; border: 0; padding: 6px 0; font: 400 14px var(--nv-font); color: #000; cursor: pointer; }
.nv-formcard .forminator-response-message { margin: 0; padding: 0; font-size: 15px; }
.nv-formcard .forminator-response-message.forminator-show { margin: 0 0 16px; padding: 12px 14px; }
.nv-formcard .forminator-response-message.forminator-success.forminator-show { background: #e6f4f3; color: #00574f; }
.nv-formcard .forminator-response-message.forminator-error.forminator-show { background: #fbeaea; color: #8a1f17; }
.nv-formcard .forminator-response-message p { margin: 0; }
/* la casella de privacitat no porta títol a l'original */
.nv-formcard .forminator-field-gdprcheckbox > .forminator-label { display: none; }
/* peu dels passos: [Continuar] 1 / 4, i "Volver" a sota */
.nv-docform .forminator-pagination-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 8px; }
.nv-docform .forminator-pagination-footer > * { order: 2; }
.nv-docform .forminator-button-next,
.nv-docform .forminator-button-submit { order: 1; }
.nv-docform .nv-step { order: 1; }
.nv-docform .forminator-button-back { order: 3; flex-basis: 100%; text-align: left; margin-top: 6px; }
.nv-formlegal, .nv-formlegal p { font-size: 11px; line-height: 1.5; color: #000; margin: 0 0 4px; }
.nv-formlegal a { color: #000; text-decoration: underline; }
.nv-formh { margin: 8px 0 6px; font-size: 28px; font-weight: 400; line-height: 1.2; color: #000; }
.nv-step { display: inline-block; margin-left: 16px; font-size: 16px; color: #000; }

/* =========================================================================
   v0.3 — ajustos respecte a l'original (mesurats a apartamentsnouvilas.com)
   ========================================================================= */

/* Marges laterals: 96 px a tot el web (només esquerra/dreta; el top i el bottom no es toquen) */
:root { --nv-side: 96px; }
.elementor .nv-sec { padding-left: var(--nv-side); padding-right: var(--nv-side); }
.elementor .nv-hero,
.elementor .nv-homegrid-wrap { padding-left: 32px; padding-right: 32px; }
.nv-breadcrumb { max-width: none; padding-left: var(--nv-side); padding-right: var(--nv-side); }
@media (max-width: 1023px) { :root { --nv-side: 48px; } }
@media (max-width: 767px)  { :root { --nv-side: 20px; } .elementor .nv-hero, .elementor .nv-homegrid-wrap { padding-left: 16px; padding-right: 16px; } }

/* Capçalera (escriptori): quadrícula de 12 columnes com l'original */
@media (min-width: 1024px) {
	.nv-header__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0; max-width: none; padding: 16px 32px; }
	.nv-logo { grid-column: 1 / span 2; padding: 16px; }
	.nv-logo img { width: 200px; height: auto; }
	.nv-panel, .nv-panel__right { display: contents; }
	.nv-nav { grid-column: 5 / span 4; justify-content: center; }
	.nv-lang { grid-column: 9 / span 2; justify-self: end; padding: 0 16px; }
	.nv-panel__right > li { grid-column: 11 / span 2; justify-self: end; padding: 0 16px; list-style: none; }
}
.nv-menu { gap: 4px; }
.nv-menu a { padding: 6.4px 12.8px; font-weight: 700; color: #000; }
.nv-menu a:hover,
.nv-menu .current-menu-item > a,
.nv-menu .current-menu-ancestor > a,
.nv-menu .current-page-ancestor > a { color: var(--nv-primary); }
.nv-menu .sub-menu a { font-weight: 500; padding: 9px 20px; }
.nv-lang__btn { font-weight: 700; color: #000; }
.nv-lang__list { min-width: 74px; }
.nv-lang__list a { color: #000; font-weight: 700; padding: 8px 18px; }
.nv-btn--header,
a.nv-btn.nv-btn--header { padding: 12px 32px; font-size: 16px; font-weight: 700; line-height: 22.4px; border-color: var(--nv-primary); }

/* Inici: targeta del títol sobre el hero (-100px, #f6f6f6, 32px 64px) */
.elementor .nv-hero-card > .e-con-inner,
.elementor .nv-hero-card.e-con-full { background: #f6f6f6; margin-top: -100px; padding: 32px 64px; align-items: center; text-align: center; position: relative; z-index: 2; }
.elementor .nv-hero-card.e-con-full { padding-bottom: 32px; }
.elementor .nv-hero-h1 .elementor-heading-title { font-size: 40px; font-weight: 600; line-height: 1.2; color: #000; text-transform: uppercase; text-align: center; margin: 0; }
.elementor .nv-hero-card .nv-lead,
.elementor .nv-hero-card .nv-lead p { font-size: 18px; line-height: 1.4; }

/* Inici: graella de la façana i els 4 apartaments (cel·les amb 16px de marge) */
.nv-homegrid { display: grid; grid-template-columns: 1fr 1fr; max-width: none; gap: 0; }
.nv-homegrid__big { padding: 16px; display: flex; }
.nv-homegrid__big img { width: 100%; height: 100%; object-fit: cover; }
.nv-homegrid__tiles { display: grid; grid-template-columns: 1fr 1fr; }
.nv-tile { margin: 16px; }
.nv-tile__title { font-size: 30px; font-weight: 500; }

/* Inici: franja de contacte i bloc formulari + mapa que se li superposa 200px */
.elementor .nv-h2--xl .elementor-heading-title { font-size: 40px; font-weight: 600; line-height: 1.2; }
.elementor .nv-contact-form { position: relative; z-index: 2; }
.elementor .nv-formcol { background: #fff; padding: 32px 32px 32px 32px; }
.elementor .nv-mapcol { padding-left: 16px; }
.nv-contact-band .nv-formcard { background: transparent; padding: 0; }

@media (max-width: 767px) {
	.elementor .nv-hero-card > .e-con-inner,
	.elementor .nv-hero-card.e-con-full { margin-top: -50px; padding: 24px 20px; }
	.elementor .nv-hero-h1 .elementor-heading-title { font-size: 26px; }
	.nv-homegrid { grid-template-columns: 1fr; }
	.nv-tile__title { font-size: 22px; }
	.elementor .nv-mapcol { padding-left: 0; }
	.elementor .nv-contact-form { margin-top: -120px; }
}

/* v0.3.1 — afinat de la targeta del hero i la graella (mesures de l'original) */
.elementor .nv-hero-card { padding-bottom: 96px; }
.elementor .nv-hero-card > .e-con-inner,
.elementor .nv-hero-card.e-con-full { padding: 60px 64px; gap: 16px; }
.elementor .nv-hero-card .elementor-widget-button { margin-top: 16px; }
.elementor .nv-hero-card .elementor-widget { width: 100%; }
.nv-homegrid__tiles { gap: 0; }
@media (max-width: 767px) {
	.elementor .nv-hero-card > .e-con-inner,
	.elementor .nv-hero-card.e-con-full { padding: 28px 20px; }
}

/* Documentació: [Continuar] 1 / 4  i  "‹ Volver" a sota (l'estil en línia de Forminator es pisa amb !important) */
.nv-docform .forminator-pagination-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; gap: 6px 0; margin-top: 8px; }
.nv-docform .forminator-pagination-footer .forminator-button-next { order: 1; }
.nv-docform .forminator-pagination-footer .nv-step { order: 2; margin-left: 16px; }
.nv-docform .forminator-pagination-footer .forminator-button-back { order: 3; flex-basis: 100%; text-align: left; }
.nv-docform .forminator-button-back::before { content: '\2039\00a0'; }
.nv-docform .forminator-button-back.forminator-hidden { display: none; }

/* v0.3.2 — peu com l'original: la barra negra en UNA fila (quadrícula 6 / 4 / 2) */
.nv-footer__main { padding: 31px 24px 31px; }
.nv-footer__logo { margin-bottom: 29px; }
.nv-footer__name { font-size: 14.4px; font-weight: 600; line-height: 23px; margin: 0 0 3px; }
.nv-footer__line { font-size: 14.4px; font-weight: 400; line-height: 20.16px; margin: 0 0 4px; }
.nv-footer__bar-inner {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
	max-width: none; padding: 16px 32px; gap: 0; min-height: 127px;
}
.nv-legal { grid-column: 1 / span 6; padding-left: 14px; }
.nv-legal__list { display: flex; flex-wrap: wrap; gap: 0 4px; max-width: none; }
.nv-legal__list a { display: block; padding: 0 14.4px; line-height: 32px; font-size: 14.4px; font-weight: 400; color: #fff; }
.nv-kd { grid-column: 7 / span 4; padding-left: 16px; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nv-kd img { height: auto; }
.nv-kd li:nth-child(1) img { width: 198px; }
.nv-kd li:nth-child(2) img { width: 103px; margin-left: 19px; }
.nv-kd li:nth-child(3) img { width: 180px; }
@media (max-width: 1023px) {
	.nv-footer__bar-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; min-height: 0; }
	.nv-legal { padding-left: 0; }
	.nv-kd { padding-left: 0; }
}
@media (max-width: 767px) {
	.nv-kd li:nth-child(1) img { width: 140px; }
	.nv-kd li:nth-child(2) img { width: 73px; margin-left: 12px; }
	.nv-kd li:nth-child(3) img { width: 127px; }
}

/* v0.4 — afinat del peu (mesures de l'original) */
.nv-legal__list a { padding: 0 11.5px; }
.nv-footer__main { padding-bottom: 26px; }

/* v0.4.1 — correccions després de la revisió mòbil */
/* l'etiqueta "Privacy" del camp RGPD no ha de sortir (l'original només té la casella) */
.nv-formcard .forminator-field-gdprcheckbox > .forminator-field > .forminator-label { display: none; }
/* el botó Documentación de la capçalera va dins d'un <li>: sense vinyeta, i a ample complet al menú mòbil */
.nv-panel__right > li { list-style: none; }
@media (max-width: 1023px) {
	.nv-panel__right > li { width: 100%; }
	.nv-panel__right > li a.nv-btn--header { display: block; text-align: center; }
}

/* =========================================================================
   v0.5 — marges laterals: la home manté 96 px; la resta de pàgines usen la
   caixa centrada de l'original (contingut de 1068 px dins un contenidor de 1100)
   ========================================================================= */
:root { --nv-wide: 1068px; --nv-side-min: 24px; }
body:not(.home) .elementor .nv-sec,
body:not(.home) .nv-breadcrumb {
	padding-left: max(var(--nv-side-min), calc((100% - var(--nv-wide)) / 2));
	padding-right: max(var(--nv-side-min), calc((100% - var(--nv-wide)) / 2));
}
@media (max-width: 1023px) { :root { --nv-side-min: 32px; } }
@media (max-width: 767px)  { :root { --nv-side-min: 20px; } }

/* galeria de la fitxa: mateixes mides que l'original (foto gran 528 px, miniatures 171 px) */
@media (min-width: 768px) {
	.nv-gallery { grid-template-columns: minmax(0, 528fr) minmax(0, 524fr); gap: 16px; }
	.nv-gallery__thumbs { gap: 7px; }
}


/* =========================================================================
   v0.6 — mòbil/tauleta com l'original: capçalera fixa de 56 px, calaix lateral,
   submenú en acordió i barra d'idiomes fixa a baix (punt de canvi: 1023 px)
   ========================================================================= */
.nv-langbar, .nv-drawer-legal, .nv-sub-toggle { display: none; }

@media (max-width: 1023px) {
	html { scroll-padding-top: 56px; }
	body { padding-top: 56px; padding-bottom: 44px; }
	body.admin-bar .nv-header { top: 46px; }
	.nv-header { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1000; background: #fff; border-bottom: 1px solid #e5e5e5; }
	.nv-header__inner { height: 56px; padding: 0 0 0 16px; gap: 0; max-width: none; }
	.nv-logo img { width: 80px; height: 40px; object-fit: contain; }
	.nv-mobile { gap: 0; align-items: stretch; height: 56px; }
	.nv-icon { width: 36px; height: 56px; padding: 0; align-items: center; justify-content: center; color: #bebebe; }
	.nv-burger { width: 55px; height: 56px; padding: 0; margin-left: 4px; align-items: center; justify-content: center; border-left: 1px solid transparent; background: transparent; }
	.nv-header.is-open .nv-burger { background: #f7f7f7; border-left-color: #e5e5e5; }

	/* calaix des de la dreta */
	.nv-panel {
		display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
		position: fixed; top: 56px; right: 0; bottom: 0; left: auto; width: min(375px, 100%);
		max-height: none; padding: 0 0 44px; overflow-y: auto; background: #fff;
		border-top: 1px solid #e5e5e5; box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
		transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
	}
	body.admin-bar .nv-panel { top: 102px; }
	.nv-header.is-open .nv-panel { transform: none; visibility: visible; transition: transform .25s ease; }
	body.nv-nav-open { overflow: hidden; }

	.nv-nav { display: block; }
	.nv-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.nv-menu > li { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid #e5e5e5; }
	.nv-menu > li > a { flex: 1 1 0; min-width: 0; padding: 0 0 0 24px; line-height: 56px; font-size: 16px; font-weight: 400; text-transform: uppercase; color: #000; }
	.nv-sub-toggle { display: inline-flex; flex: 0 0 48px; width: 48px; height: 56px; padding: 0; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #000; }
	.nv-sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
	.nv-menu > li.is-expanded > .nv-sub-toggle svg { transform: rotate(180deg); }
	.nv-menu .sub-menu { display: none; flex: 0 0 100%; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; margin: 0; padding: 0 0 8px; list-style: none; background: #fff; }
	.nv-menu > li.is-expanded > .sub-menu { display: block; }
	.nv-menu .sub-menu a { display: block; padding: 0 0 0 28.8px; line-height: 40px; font-size: 14.4px; font-weight: 400; text-transform: none; color: #000; }

	.nv-panel__right { display: block; padding: 16px 24px 8px; }
	.nv-panel__right .nv-lang { display: none; }
	.nv-panel__right > li { width: 100%; }

	.nv-drawer-legal { display: block; padding: 8px 0 0; }
	.nv-drawer-legal__list { list-style: none; margin: 0; padding: 0; }
	.nv-drawer-legal__list a { display: block; padding: 0 24px; line-height: 40px; font-size: 14.4px; font-weight: 400; color: #000; text-decoration: none; }

	/* barra d'idiomes fixa a baix */
	.nv-langbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; height: 44px; background: #fff; border-top: 1px solid #e5e5e5; }
	.nv-langbar .nv-lang__btn { width: 100%; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; background: #f7f7f7; border: 0; font-size: 14.4px; font-weight: 400; color: #000; cursor: pointer; }
	.nv-langbar .nv-globe { fill: none; stroke: currentColor; stroke-width: 1.6; }
	.nv-langbar .nv-chev { margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; }
	.nv-langbar .nv-lang__list { display: none; position: absolute; bottom: 44px; left: 0; right: 0; top: auto; margin: 0; padding: 0; list-style: none; background: #fff; box-shadow: 0 -6px 16px rgba(0, 0, 0, .1); min-width: 0; }
	.nv-langbar.is-open .nv-lang__list { display: block; }
	.nv-langbar .nv-lang__list a { display: block; padding: 0 16px; line-height: 44px; font-size: 14.4px; font-weight: 400; color: #000; text-decoration: none; border-top: 1px solid #e5e5e5; }

	/* marges laterals de contingut com l'original (contenidor 1100 + 16 px) */
	:root { --nv-side-min: 16px; }
}

@media (max-width: 767px) {
	.elementor .nv-h1 .elementor-heading-title { font-size: 32px; }
	.elementor .nv-hero-h1 .elementor-heading-title { font-size: 25px; }
	.nv-tile__title { font-size: 30px; }
	.nv-gallery { grid-template-columns: 1fr; gap: 8px; }
	.nv-gallery__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
	.elementor .nv-btn-full .elementor-button, .elementor .nv-discover .elementor-button { display: block; width: 100%; text-align: center; }

	/* peu */
	.nv-footer__main { padding: 16px; }
	.nv-footer__bar-inner { min-height: 84px; padding: 12px 16px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
	.nv-kd { flex-wrap: nowrap; align-items: center; }
	.nv-kd li:nth-child(1) img { width: 45px; height: auto; margin: 0; }
	.nv-kd li:nth-child(2) img { width: 26px; height: auto; margin-left: 12px; }
	.nv-kd li:nth-child(3) img { width: 45px; height: auto; margin-left: 12px; }
	.nv-legal__list a { padding: 0 11.5px 0 0; }
}

/* =========================================================================
   v0.6.1 — retocs mòbil: graella en una columna, targeta sense sobreposar,
   calaix a pàgina completa (barra d'idiomes només amb el menú obert) i
   targetes d'apartaments amb franja verda
   ========================================================================= */
@media (max-width: 1023px) {
	body { padding-bottom: 0; }
	.nv-panel { width: 100%; padding-bottom: 44px; box-shadow: none; }
	.nv-nav { flex: 0 0 auto; }
	.nv-panel__right { display: none; }
	.nv-langbar { display: none; }
	body.nv-nav-open .nv-langbar { display: block; }
}
@media (max-width: 767px) {
	/* home: caixes d'apartaments en una sola columna */
	.nv-homegrid__tiles { grid-template-columns: 1fr; }
	.nv-tile { margin: 16px 0 0; }
	.nv-homegrid__big { padding: 16px 0 0; }

	/* targeta del hero just sota la imatge, sense sobreposar ni retallar */
	.elementor .nv-hero-card > .e-con-inner,
	.elementor .nv-hero-card.e-con-full { margin-top: 0; }
	.elementor .nv-hero-card { padding-bottom: 0; }
	.elementor .nv-hero { overflow: visible; }

	/* /apartamentos/: foto + franja verda a sota amb el nom */
	.nv-cards { grid-template-columns: 1fr; gap: 16px; }
	.nv-card h3 {
		inset: auto 0 0 0; height: 44px; justify-content: flex-start; padding: 0 12px;
		background: rgba(0, 150, 136, .88); color: #fff; font-size: 18px; font-weight: 400; text-align: left;
	}
}

/* =========================================================================
   v0.7 — Contacte en una sola pantalla (escriptori) amb els camps nous
   ========================================================================= */
.nv-formcard .forminator-row-last, .nv-formcard .forminator-row { margin-bottom: 14px; }
.nv-formcard select { width: 100%; }
.nv-formcard .forminator-row > .forminator-col { padding-right: 12px; }
.nv-formcard .forminator-row > .forminator-col:last-child { padding-right: 0; }
@media (min-width: 1024px) {
	.nv-contactpage .nv-leadbig p { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
	.nv-contactpage .nv-h1 { margin-bottom: 4px; }
	.nv-contactpage .nv-formcard .forminator-row { margin-bottom: 8px; }
	.nv-contactpage .nv-formcard .forminator-label { margin-bottom: 3px; font-size: 14px; }
	.nv-contactpage .nv-formcard input[type="text"],
	.nv-contactpage .nv-formcard input[type="email"],
	.nv-contactpage .nv-formcard input[type="number"],
	.nv-contactpage .nv-formcard select { padding-top: 7px; padding-bottom: 7px; }
	.nv-contactpage .nv-formcard textarea { min-height: 64px; height: 64px; }
	.nv-contactpage .nv-formlegal, .nv-contactpage .nv-formlegal p { font-size: 10.5px; line-height: 1.3; margin: 0 0 2px; }
	.nv-contactpage .nv-map { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
	.nv-formcard .forminator-row > .forminator-col { padding-right: 0; }
}

/* =========================================================================
   v0.7.1 — formularis compactes (Contacte i Documentació) i quadres grisos
   ========================================================================= */
.nv-ph { display: block; background: #dcdcdc; }
.nv-gallery .nv-ph { width: 100%; }
.nv-ph--card { aspect-ratio: 4 / 3; width: 100%; }
.nv-ph--review { aspect-ratio: 4 / 3; width: 100%; }

@media (min-width: 1024px) {
	.nv-contactpage .nv-formcard .forminator-ui.forminator-custom-form .forminator-row:not(:last-child),
	.nv-contactpage .nv-formcard .forminator-row { margin-bottom: 8px !important; }

	.nv-docform .forminator-ui.forminator-custom-form .forminator-row:not(:last-child),
	.nv-docform .forminator-row { margin-bottom: 8px !important; }
	.nv-docform .forminator-label { margin-bottom: 3px; font-size: 14px; }
	.nv-docform input[type="text"], .nv-docform input[type="email"], .nv-docform input[type="number"], .nv-docform select { padding-top: 7px; padding-bottom: 7px; }
	.nv-docform .forminator-radio { margin: 0 14px 0 0; }
	.nv-docform .forminator-field-radio .forminator-field { display: flex; flex-wrap: wrap; gap: 0 4px; }
	.nv-docform .forminator-field-radio .forminator-field > .forminator-label { flex-basis: 100%; }
	.nv-docform .forminator-button-upload { padding: 6px 12px; min-height: 0; }
	.nv-docform .forminator-description { margin-top: 2px; font-size: 10.5px; line-height: 1.25; }
	.nv-docform .nv-formh { margin: 0 0 4px; font-size: 20px; }
	.nv-docform .forminator-field-html p { margin: 0 0 4px; font-size: 13px; line-height: 1.35; }
	.nv-docform .nv-formlegal, .nv-docform .nv-formlegal p { font-size: 10.5px; line-height: 1.3; margin: 0 0 2px; }
	.nv-docform .forminator-pagination-footer { margin-top: 4px; }
	.nv-docform .forminator-button-next, .nv-docform .forminator-button-submit { padding-top: 10px; padding-bottom: 10px; }
}
.nv-docform .forminator-row > .forminator-col { padding-right: 12px; }
.nv-docform .forminator-row > .forminator-col:last-child { padding-right: 0; }
@media (max-width: 767px) { .nv-docform .forminator-row > .forminator-col { padding-right: 0; } }


/* =========================================================================
   v0.8 — el botó "Documentación" surt de la capçalera (ara és al peu, amb els enllaços legals)
   ========================================================================= */
@media (min-width: 1024px) {
	.nv-lang { grid-column: 11 / span 2; }
}
