/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/************ RESET ****************/
/* Josh Comeau - 2021 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
	font-size: 100%;
	background-color: var(--cor-background);
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

#root,
#__next {
	isolation: isolate;
}

/************  END RESET  ****************/

h1 {
	font: 900 2rem var(--font-um);
}

h2 {
	font: 900 1.5rem var(--font-um);
	margin: 2rem 0 1rem;
}

p,
li {
	font: 300 1rem/1.5 var(--font-um);
	margin-bottom: 2rem;
}

.logo img {
	position: absolute;
	display: block;
	width: calc(3 * var(--pixel));
	height: auto;
	left: 4.54%;
	top: 4%;
}

/* vertical / top-left */
.nav-1 {
	/* display: none; */
	position: absolute;
	top: 2rem;
	left: 2rem;
	bottom: 100px;
	;
	width: auto;
	/* height: var(--nav-height); */
	z-index: 1;
}

.nav-1>ul {
	list-style: none;
}

.nav-1 ul li a {
	font-size: .9rem;
	background: var(--cor-verde);
	width: 100px;
	color: #000;
	text-decoration: none;
	padding: 3px 8px;
	margin: 1rem 0;
	line-height: 2rem;
}

.nav-1 a img,
.nav-1>a {
	width: 90px;
	margin: 1rem 0;
}

.nav-2 {
	display: none;
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc(15 * var(--pixel));
}

@media (max-width: 1140px) {
	.nav-1 {
		display: none;
	}

	/* ? Ligar? */
	.nav-2 {
		display: block;
	}
}

.nav-2 ul {
	position: absolute;
	top: -20px;
	left: 0;
	display: flex;
	flex-direction: row;
	gap: var(--pixel);
	list-style: none;
	width: 100%;
	/* left: -40px; para alinhar o menu à esquerda exacta da imagem pixelizada */
}

.nav-2 ul li a {
	color: #FFF;
	font-size: .9rem;
	background: #000;
	text-decoration: none;
	padding: 3px 8px;
	margin: 1rem 0;
	line-height: 2rem;
	font: 100 .7rem var(--font-um);
	text-transform: uppercase;
}

#video_inicial {
	position: relative;
	left: 0;
	top: 0;
	transform: translate(0 -100px);
	/* height: calc(98.9vh - 80px - 5rem); */
	height: 95vh;
	object-fit: contain;
	aspect-ratio: 16/9;
}

/*! todo : Ía aumentar o vídeo e cortá-lo de lado (telemóveis) */

@media (min-width: 350px) and (orientation: portrait) {}

.mib-pixelizado {
	/* position: relative; :: ao tentar alinhar o nav-2 ao fundo. Não funcionou */
	margin: 10vh 0 0 16vw;
	display: none;
	width: 60%;
	/* ? max-width: 1000px; */
	aspect-ratio: 2/1;
	background: url("/wp-content/themes/bricks-child/assets/img/mib-bkg_22x11.png") no-repeat top left / cover;
	image-rendering: pixelated;
	position: relative;
	opacity: 1;
	animation: mib-up .3s cubic-bezier(0, 1.04, 0.65, 1.15);
	z-index: 1;
}

@keyframes mib-up {
	0% {
		transform: translate(0, 100%);
	}

	100% {
		transform: translate(0, 0);
	}
}

@keyframes mib-cresce {
	0% {
		opacity: 0;
		filter: saturate(0) brightness(0);
		transform: scale(2%) translate(0, 0);
	}

	30% {
		opacity: 1;
		filter: saturate(0) brightness(0);
		transform: scale(2%) translate(0, 0);
	}

	40% {
		opacity: 1;
		/* filter: contrast(100); */
		transform: scale(2%) translate(0, 0);
	}

	100% {
		transform: scale(100%) translate(0, 0);
		opacity: 1;
	}
}

.img-grelha::before {
	content: '';
	display: block;
	background-color: var(--cor-verde);
	mix-blend-mode: hue;
	filter: hue-rotate(0deg);
	width: auto;
	height: 100%;
	/*animation: hue-rotate 5s linear infinite;  * Efeito caleidoscópico */
}

/* @keyframes hue-rotate {
   from {
      filter: hue-rotate(0deg);
   }
   to {
      filter: hue-rotate(359deg);
   }
}
@keyframes hue-rotate {
   0% {
      filter: hue-rotate(0deg);
   }
   33% {
      filter: hue-rotate(0deg);
   }
   80% {
      filter: hue-rotate(359deg);
   }
   100% {
      filter: hue-rotate(0deg);
   }
} */

.img-grelha:nth-of-type(1) {
	width: calc(1 * var(--pixel));
	aspect-ratio: 1/1.01;
	left: calc(1 * var(--pixel));
	top: calc(8 * 9.1%);
	/*animation: img-grelha-slides 9s infinite; */
}

.img-grelha:nth-of-type(2) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1/1.01;
	left: calc(2 * var(--pixel));
	top: calc(5 * 9.0909%);
}

.img-grelha:nth-of-type(3) {
	width: calc(3 * var(--pixel));
	aspect-ratio: 1/1;
	left: calc(4 * var(--pixel));
	top: calc(7 * 9.0909%);
}

.img-grelha:nth-of-type(4) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1/1.01;
	left: calc(7 * var(--pixel));
	top: calc(2 * 9.0909%);
}

.img-grelha:nth-of-type(5) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1/1.005;
	left: calc(9 * var(--pixel));
	top: calc(6 * 9.0909%);
}

.img-grelha:nth-of-type(6) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1 / 1.005;
	left: calc(12 * var(--pixel));
	top: calc(1 * 9.0909%);
}

.img-grelha:nth-of-type(7) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1/1.005;
	left: calc(15 * var(--pixel));
	top: calc(3 * 9.0909%);
}

.img-grelha:nth-of-type(8) {
	width: calc(3 * var(--pixel));
	aspect-ratio: 1/1;
	left: calc(15 * var(--pixel));
	top: calc(7 * 9.0909%);
}

.img-grelha:nth-of-type(9) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1/1.005;
	left: calc(18 * var(--pixel));
	top: calc(2 * 9.0909%);
}

.img-grelha:nth-of-type(10) {
	width: calc(2 * var(--pixel));
	aspect-ratio: 1/1.005;
	left: calc(19 * var(--pixel));
	top: calc(7 * 9.0909%);
}

.grelha {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	margin: 5rem 0 0;
	z-index: 99;
}

#btn_skip {
	cursor: pointer;
	margin: auto;
}

ul.projecto-areas {
	margin: 0;
	padding: 0;
}

li.projecto-areas {
	color: #fff;
	font-size: .8rem;
	text-transform: uppercase;
	background-color: #9e9e9e;
	display: inline-block;
	margin-inline-end: 0.1rem;
	padding-inline: 8px;
}

.ods-box {
	display: flex;
	color: var(--cor-background);
	height: 60px;
	/* height: 100%; */
	aspect-ratio: 1;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.ods-num {
	font-size: .8rem;
	font-weight: 700;
	align-self: end;
	padding: 2px 6px;
	line-height: 1;
}

.ods-box img {
	max-height: 35px;
	max-width: 35px;
	display: block;
	padding-block-end: 13px;
}




/********* TESTING SVG ANIMATION */

.teste-olho {
	width: 200px;
	height: 100px;
	background: url("sugo/img/teste-olho.svg") center / contain, #BA265D;
}

.borboleta_svg {
	width: 160px;
	height: 63px;
}

/* END TESTING SVG ANIMATION */








/******** WP Styles   */