@import url("../fonts/fonts.css");

/* ESTILS PPP */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

main {
	display: block;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* De l'undescores */
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Afegit PPP */
.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.videowrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

img,
canvas {
	max-width: 100%;
	height: auto;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	content-visibility: auto;
}

.amaga:not(:focus):not(:active) {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

:root {
	--bodytext: #000;
	--accent: #2b6169;
	--bggroc: #fc6;
	--bgverd: #2b6169;
	--bgverd2: #224d54;
	--radius: 8px;
	--shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

/**************************
PPP - Estuctura
***************************/

body,
button,
input,
select,
textarea {
	font-family: "Poppins", arial, sans-serif;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.5;
}

body {
	color: var(--accent);
	min-height: 100vh;
}

/*.landing-container {
  min-height: 100vh;
}*/

.info {
	justify-self: end;
	margin: 0 auto;
}

.logo {
	background-color: #fff;
	padding: 9px 0 6px 0;
}

.logo img {
	max-width: 112px;
	display: block;
	margin: 0 auto;
}

strong {
	font-weight: 700;
}

/* Bloc 1 - Intro */

.bloc1 {
	padding: 30px 8vw 0 8vw;
	background: url(../img/electium_bg_mobil.jpg) no-repeat center bottom;
	min-height: 470px;
	background-size: cover;
	font-weight: 400;
}

h1 {
	font-family: "Crimson Pro", Georgia, serif;
	font-size: 2.25rem;
	font-weight: 900;
	margin: 0;
	line-height: 1.15;
}

h1 span {
	font-size: 1.5rem;
	font-weight: 700;
	display: block;
}

.bloc1 p {
	max-width: 350px;
}

/* Bloc 2 - Llistat Te lo ponemos fácil */

.bloc2 {
	background-color: var(--bggroc);
	padding: 25px 8vw;
}

.bloc2 p,
.webform-submission-form p {
	margin-top: 0;
}

.bloc2 ul {
	margin: 0;
	padding: 0;
}

.bloc2 ul li {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.bloc2 ul li::before {
	content: url("../img/ico_bullet.svg");
	width: 13px;
	height: 13px;
	object-fit: contain;
	display: inline-flex;
	position: relative;
	top: 4px;
}

/* Bloc 3 - Formulari */

.webform-submission-form {
	background-color: var(--accent);
	color: #fff;
	padding: 25px 8vw;
}

form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	grid-column-gap: 16px;
}

label,
.form-composite > legend {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 3px;
}

#edit-provincia,
.form-type-email,
.form-type-tel,
.form-item-terms-of-service,
#edit-actions {
	grid-column: 1/-1;
}

#edit-provincia .form-item {
	margin: 0;
}

select#edit-provincia-select {
	width: 100%;
	border-radius: 4px;
	padding: 5px 12px;
	border: 1px solid #777;
	background-color: #fff;
	line-height: 1;
}

.form-item-email label.js-form-required.form-required {
	white-space: nowrap;
}

input {
	font-size: 0.875rem;
	width: 100%;
	border-radius: 4px;
	border: none;
	padding: 5px 12px;
	background-color: rgba(255, 255, 255, 0.8);
}

input:focus,
input[type="text"]:valid,
input[type="email"]:valid,
input[type="tel"]:valid,
input[type="submit"]:valid {
	background-color: #fff;
	transition: background-color 0.2s ease-in-out;
}

input[type="submit"] {
	color: var(--accent);
	font-weight: 700;
	font-size: 1rem;
	margin-top: 12px;
}

input[type="submit"]::after {
	content: url("../img/ico_fletxa.svg");
}

input[type="submit"]:hover {
	cursor: pointer;
}

#edit-actions.form-actions,
input[type="submit"]#edit-actions-submit {
	margin-top: 0;
}

.form-type-webform-terms-of-service {
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
	display: grid;
	grid-template-columns: 12px 1fr;
	grid-gap: 10px;
	align-items: start;
	align-self: center;
	color: rgba(255, 255, 255, 0.8);
	padding-top: 12px;
	margin-top: 0;
}

.form-type-webform-terms-of-service a,
.form-type-webform-terms-of-service a:visited {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.8);
	text-underline-offset: 3px;
}

form .form-type-webform-terms-of-service label.form-required {
	display: inline-block;
}

input[type="checkbox"] {
	appearance: none;
	width: 12px;
	height: 12px;
	display: block;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 2px;
	background-color: transparent;
	position: relative;
	top: 6px;
}

input[type="checkbox"]:checked {
	appearance: checkbox;
}

form .form-required {
	display: flex;
	align-items: flex-start;
}

form .form-required::after {
	background-image: none;
	content: "*";
	color: #fff;
}

.ui-widget {
	font-family: "Poppins", arial, sans-serif;
}

.ui-widget-overlay.ui-front {
	background-color: rgba(0, 0, 0, 0.3);
	opacity: 1;
}

.ui-widget.ui-widget-content {
	border: none;
	border-radius: var(--radius);
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

.ui-widget.ui-dialog .ui-dialog-titlebar {
	border: none;
	background: transparent;
	font-family: "Poppins", arial, sans-serif;
}

.ui-dialog .ui-dialog-titlebar-close {
	right: 12px;
	top: 12px;
	margin-top: 0;
}

.ui-button-icon-only .ui-icon.ui-icon-closethick {
	background-image: url(../img/ico_close.svg);
	background-size: 14px 14px;
	background-position: center center;
}

.ui-dialog .ui-dialog-titlebar {
	padding: 20px 30px 10px 30px;
}

.ui-dialog .ui-dialog-content {
	padding: 0 30px 20px 30px;
}

/* Footer */

footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-content: space-between;
	align-items: center;
}

.link_privacidad {
	padding: 6px 0;
}

.link_privacidad a,
.link_privacidad a:visited {
	font-size: 0.625rem;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 400;
	text-decoration: none;
}

.link_privacidad a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.link_privacidad {
	grid-column: 1/-1;
	grid-row: 2/3;
	padding: 5px 8vw;
	background-color: var(--bgverd2);
	text-align: center;
}

footer p {
	margin: 0;
}

footer img {
	display: block;
}

.logo_footer {
	grid-column: 1/2;
	grid-row: 1/2;
	width: 97px;
	height: 26px;
	background: url(../img/logo_electium.svg) no-repeat center center;
	background-size: contain;
	text-indent: -999em;
	display: block;
	margin: 20px 8vw;
}

ul.xxss {
	grid-column: 2/3;
	grid-row: 1/2;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: start;
	gap: 20px;
	list-style-type: none;
	padding: 20px 8vw;
	justify-self: end;
}

ul.xxss li:hover {
	opacity: 0.9;
	transition: opacity 0.2s ease-in-out;
}

.logo_fb a,
.logo_ig a,
.logo_wa a {
	width: 20px;
	height: 20px;
	text-indent: -999em;
	display: block;
}

.logo_fb a {
	background: url(../img/logo_fb.svg) no-repeat center center;
	background-size: contain;
}

.logo_ig a {
	background: url(../img/logo_ig.svg) no-repeat center center;
	background-size: contain;
}

.logo_wa a {
	width: 23px;
	height: 23px;
	background: url(../img/logo_whatsapp3.svg) no-repeat center center;
	background-size: contain;
}

/* Popup politica privacidad */

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
}

.popup-content {
	width: 95%;
	height: 80vh;
	background-color: #fff;
	padding: 3vw 5vw;
	position: fixed;
	top: 10vh;
	left: 2.5%;
	overflow: auto;
	font-weight: 400;
}

.close {
	position: absolute;
	top: calc(10vh + 6px);
	right: calc(2.5% + 6px);
	z-index: 2;
	cursor: pointer;
	width: 30px;
	height: 30px;
	background: url(../img/ico_close.svg) no-repeat center center rgba(255, 255, 255, 0.8);
	background-size: auto;
	background-size: 14px 14px;
	text-indent: -999em;
	background-color: #fff;
	border-radius: 40px;
}

@media (min-width: 500px) {
	.form-type-email,
	.form-type-tel,
	.form-item-terms-of-service,
	#edit-actions {
		grid-column: span 1;
	}

	#edit-actions.form-actions,
	input[type="submit"]#edit-actions-submit,
	.form-type-webform-terms-of-service {
		margin-top: 1em;
	}
}

/* ANCHOR 600 */

@media (min-width: 660px) {
	.bloc1 {
		min-height: 500px;
	}
}

/* ANCHOR 768 */

@media (min-width: 768px) {
	body,
	button,
	input,
	select,
	textarea {
		font-size: 1rem;
	}

	/* Bloc 1 - Intro */

	.bloc1 {
		min-height: 590px;
		background-position: center bottom;
	}

	.bloc1 p {
		max-width: 400px;
	}

	h1 {
		font-size: 3rem;
	}

	h1 span {
		font-size: 1.625rem;
	}

	.popup-content {
		width: 80%;
		left: 10%;
	}

	.close {
		top: calc(10vh + 30px);
		right: calc(10% + 40px);
		background-size: 20px 20px;
	}
}

/* ANCHOR 900 */

@media (min-width: 900px) {
	body {
		font-size: 1rem;
	}

	.landing-container {
		padding: 3vh 0 90px 0;
		display: grid;
		grid-template-columns: 5vw minmax(400px, 620px) 1fr 5vw;
		grid-template-columns: 5vw 1fr 1fr 5vw;
		grid-template-areas: ". info logo .";
		justify-content: center;

		position: relative;
		z-index: 1;
	}

	.logo {
		grid-area: logo;
		justify-self: end;
		background-color: transparent;
		padding: 0;
	}

	.logo img {
		max-width: 100%;
		margin: 0;
	}

	.info {
		max-width: 620px;
		grid-area: info;
		margin: 0;
	}

	/* Bloc 1 - Intro */

	.bloc1 {
		margin-bottom: 20px;
		padding: 30px 0 0 0;
		background-image: none;
		min-height: 0;
	}

	.bloc1 p {
		max-width: none;
		text-shadow: 0 0 8px #fff;
	}

	h1 {
		font-size: 3.5rem;
	}

	h1 span {
		font-size: 1.75rem;
	}

	/* Bloc 2 - Llistat Te lo ponemos fácil */

	.bloc2 {
		padding: 30px;
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		margin-bottom: 10px;
	}

	.bloc2 ul li {
		gap: 18px;
		display: flex;
		align-items: flex-start;
	}

	.bloc2 ul li::before {
		width: auto;
		height: auto;
	}

	/* Bloc 3 - Formulari */

	.webform-submission-form {
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		padding: 30px;
	}

	/* Footer */

	footer {
		display: grid;
		grid-template-columns: 110px 1fr 110px;
		align-items: center;
		padding: 12px 5vw 10px 5vw;
		background-color: var(--bgverd2);
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 2;
	}

	.link_privacidad {
		padding: 0;
		grid-column: 2/3;
		grid-row: 1/2;
		text-align: center;
	}

	.link_privacidad a,
	.link_privacidad a:visited {
		font-size: 0.8125rem;
	}

	.logo_footer {
		grid-column: 1/2;
		grid-row: 1/2;

		width: 97px;
		height: 26px;
		background: url(../img/logo_electium_footer.svg) no-repeat center center;
		background-size: contain;
		text-indent: -999em;
		display: block;
		margin: 0;
	}

	ul.xxss {
		grid-column: 3/4;
		grid-row: 1/2;
		padding: 0;
	}

	.logo_fb a {
		background: url(../img/logo_fb_white.svg);
	}

	.logo_ig a {
		background-image: url(../img/logo_ig_white.svg);
	}
}

/* ANCHOR 1200 */

@media (min-width: 1200px) {
	body {
		font-size: 1.125rem;
	}

	/* Bloc 1 - Intro */

	.bloc1 {
		margin-bottom: 50px;
	}

	h1 {
		font-size: 4.5rem;
	}

	h1 span {
		font-size: 2.25rem;
	}

	/* Bloc 2 - Llistat Te lo ponemos fácil */

	.bloc2 {
		padding: 35px 40px;
	}

	/* Bloc 3 - Formulari */

	.webform-submission-form {
		padding: 35px 40px;
	}
}

/* ANCHOR 1400 */

@media (min-width: 1400px) {
	footer {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		text-align: left;
	}

	.link_privacidad {
		grid-column: 1/2;
	}

	.logo_footer {
		grid-column: 2/3;
		justify-self: center;
	}
}

/* FONS */

@media (min-width: 900px) {
	body.page-node-type-landing {
		background: url(../img/electium_bg.jpg) no-repeat center center;
		background-size: cover;
		background-attachment: fixed;
	}
}

@media (min-aspect-ratio: 16/9) {
	body.page-node-type-landing {
		background: url(../img/electium_bg_mig.jpg) no-repeat center 70%;
		background-size: cover;
		background-attachment: scroll;
	}
}

/* Pàgina confirmació */

#page-confirmacion .info {
	min-height: calc(100vh - 130px);
	display: flex;
	align-items: start;
	justify-content: center;
}

#page-confirmacion .field--name-body {
	background-color: #fff;
	padding: 12px 24px;
	border-radius: var(--radius);
	width: 80%;
	max-width: 500px;
	margin: 0 auto;
	margin-top: 30px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

#page-confirmacion .field--name-body p {
	margin: 0.5em 0;
}

@media (max-width: 900px) {
	#page-confirmacion .info {
		background: url(../img/electium_bg_mobil.jpg) no-repeat center bottom;
		background-size: cover;
	}
}

@media (min-width: 900px) {
	#page-confirmacion .landing-container {
		grid-template-areas:
			". logo . ."
			". info . .";
	}

	#page-confirmacion .logo {
		justify-self: start;
	}

	#page-confirmacion .info {
		align-items: center;
		max-width: 510px;
		min-height: 70vh;
	}

	#page-confirmacion .field--name-body {
		width: 100%;
		max-width: none;
		padding: 30px 40px;
		margin: 0;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	}
}

/*
#edit-provincia {
	display: none;
}*/
