/*
 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
*/

:root {
   interpolate-size: allow-keywords;
	--col0: #00162c; /* testo blu scuro */
   --col1: #3188eb; /* accent */
   --col2: #0d3a64; /* background */
   --col3: #ffb300; 
	--col4: #e3b16c; /* ORO */
--col5: #00162c; /* dark blue bg */
}

header svg path {
	fill: #fff;
}
header #brxe-wqfyva, #menu-btn {
	color: #fff;     
}
#menu-btn .line {
	background-color: #fff;
}


.darkbg { 
 background-color: var(--col5);
   color:#fff;
}

body.textwhite { 
   color:#fff;
}

.white {
   background-color: #fff;
   color:var(--col0);
}

.white {
	header svg path {
		fill: var(--col0);
	}
	header #brxe-wqfyva, #menu-btn {
		color: var(--col0);     font-weight: 400;
	}
	#menu-btn .line {
		background-color: var(--col0);
		outline: 1px solid rgb(255 255 255 / 30%);
	}
	.linkbtn-white{
		border: 1px solid var(--col0);
		color: var(--col0);
	}
	a:hover { color:var(--col4);}
}

.linkbtn-white,.linkbtn-white.whitebtn{
	border: 1px solid #fff;
	color: #fff;
}

header a:hover { color:var(--col4);} 
*,
*::before,
*::after {
  box-sizing: border-box;
  /*outline: 2px solid lime;*/
}
* {
   margin: 0;
}
body {
  overflow-x:hidden;
  line-height: 1;
  accent-color: var(--col1);
  -webkit-font-smoothing: antialiased;
  font-family: 'Outfit', 'Arial', 'Helvetica', 'Verdana', sans-serif;
  font-weight: 400;
  line-height: 1.3;
	
 color: var(--col0);
  --bg-color: var(--col2);
  background: var(--bg-color);
}
  background: var(--col2);
}
img, picture, video, canvas, svg {
   display: block;
   max-width: 100%;
   height: auto;
}
input, button, textarea, select {
   font: inherit;
}
h1, h2, h3, h4, h5, h6 {
   text-wrap: balance;
   overflow-wrap: break-word;
}
p, li, figcaption {  
   overflow-wrap: break-word;
   text-wrap: pretty; 
}
b, strong {
   font-weight: 700;
}

/* ==============================================================*/
/* # TYPOGRAPHY */
/* ==============================================================*/
:root {
  /* Base font size */
  --base-font-size: 18px;
  
  /* Scaling factors */
  --min-scaling: 1.12;
  --mid-scaling: 1.33;
  --max-scaling: 1.41;
  
  /* Viewport widths for clamp calculations */
  --min-viewport: 320px;
  --max-viewport: 1440px;
}

/* Base font */
body {
  font-size: 18px;
  line-height: 1.3;
}
.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 400;
    line-height: 1.2
}
h6, .h6 {
  font-size: clamp(
    calc(var(--base-font-size) * var(--min-scaling)),
    calc(var(--base-font-size) * var(--mid-scaling)),
    calc(var(--base-font-size) * var(--max-scaling))
  );
}
h5, .h5 {
  font-size: clamp(
    calc(var(--base-font-size) * pow(var(--min-scaling), 2)),
    calc(var(--base-font-size) * pow(var(--mid-scaling), 2)),
    calc(var(--base-font-size) * pow(var(--max-scaling), 2))
  );
}

h4, .h4 {
  font-size: clamp(
    calc(var(--base-font-size) * pow(var(--min-scaling), 3)),
    calc(var(--base-font-size) * pow(var(--mid-scaling), 3)),
    calc(var(--base-font-size) * pow(var(--max-scaling), 3))
  );
}

h3, .h3 {
  font-size: clamp(
    calc(var(--base-font-size) * pow(var(--min-scaling), 4)),
    calc(var(--base-font-size) * pow(var(--mid-scaling), 4)),
    calc(var(--base-font-size) * pow(var(--max-scaling), 4))
  );
}

h2, .h2 {
  font-size: clamp(
    calc(var(--base-font-size) * pow(var(--min-scaling), 5)),
    calc(var(--base-font-size) * pow(var(--mid-scaling), 5)),
    calc(var(--base-font-size) * pow(var(--max-scaling), 5))
  );
}

h1, .h1 {
  font-size: clamp(
    calc(var(--base-font-size) * pow(var(--min-scaling), 6)),
    calc(var(--base-font-size) * pow(var(--mid-scaling), 6)),
    calc(var(--base-font-size) * pow(var(--max-scaling), 6))
  );
}
@media screen and (max-width: 991px) {
  :root {
    --base-font-size: 14px;
  }
}
@media screen and (max-width: 767px) {
  :root {
    --base-font-size: 12px;
  }
}
@media screen and (max-width: 478px) {
  :root {
    --base-font-size: 10px;
  }
}

@media screen and (min-width: 2000px) {
  :root {
    --base-font-size: 20px;
  }
}
/* ==============================================================*/
/* # LENIS */
/* ==============================================================*/
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


/* ==============================================================*/
/* # GENERAL */
/* ==============================================================*/
.grecaptcha-badge { display:none; }

.container {
	--container-width: 1366px;
	--container-padding: 20px;
	margin-inline: auto;
	width: min(var(--max-width), 100% - var(--container-padding));
}


/* scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track{
  background: var(--col2);
}
body::-webkit-scrollbar-thumb {
  background:var(--col0);
}
::-webkit-scrollbar-thumb:hover {
  background:var(--col1);
}

/* text selection */
::-moz-selection {
  background: var(--col4);
  color: #fff;
}
::selection {
  background: var(--col4);
  color: #fff;
}
::-webkit-selection  {
  background: var(--col4);
  color: #fff;
}


/* ==============================================================*/
/* # HOMEPAGE */
/* ==============================================================*/
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
#canvas {
  width: 100vw;
  height: 100vh;
  position: absolute;
  overflow: hidden;
}
#canvas > canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

 .marquee {
	 display: block;
	 font-size: 0;
	 overflow: hidden;
	 white-space: nowrap;
	 width: 100%;
}

.clipped-text {
	display: inline-block;
	font-size: 150px;
	margin-right: 100px;
}


/* ==============================================================*/
/* # ANIMAZIONI */
/* ==============================================================*/
.parimg {
   width: 100%;
   aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}

.parimg img {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  left: 0;
  translate: none;
  rotate: none;
  scale: 1.3;
  transform: translate3d(0px, -20%, 0px);
}


.img_anim_reveal {
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%); 
}

.img_anim_reveal[data-reveal="up"] {
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%); 
}

.img_anim_reveal[data-reveal="right"] {
  clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%); 
}

.img_anim_reveal[data-reveal="down"] {
  clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);;  
} 
.img_anim_reveal img {
  -o-object-fit: cover;
  object-fit: cover;
  transform-origin: center;
}

.textfadein {
    opacity: 0;
}
body[data-builder-window]  .textfadein, .textfadein:has(div) {
    opacity: 1;
}

.gallery--breakout {
	width: min-content;
}

.gallery {
	position: relative;
	width: 100%;
	height: 100%;	
	flex: none;
}
.gallery-wrap {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40vh auto;
	overflow: hidden;
}
.gallery--grid, .gallery__item,
.gallery__item > *, .gallery__item-inner {
    transform-origin: center center !important;
}
.gallery--grid {
  display: grid;
  place-items: center;
}

.gallery-wrap {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40vh auto;
	overflow: hidden;
}

.gallery-wrap--large {
	height: 110vh;
}

.gallery {
	position: relative;
	width: 100%;
	height: 100%;	
	flex: none;
}

.gallery--breakout {
	width: min-content;
}

.gallery--grid {
	height: auto;
	display: grid;
	grid-template-columns: repeat(3,auto);
	grid-template-rows: repeat(3,auto);
	row-gap: 2.5vw;
	column-gap: 3vw;
}

.gallery--switch.gallery--grid {
	gap: 0;
}

.gallery__item {
	background-position: 50% 50%;
	background-size: cover;	
	flex: none;
	border-radius: 6px;
	position: relative;
	filter: brightness(1);
}

.gallery--grid .gallery__item {
	height: 30vh;
	width: 30vw;
}

.gallery--switch.gallery--grid .gallery__item {
	height: 110vh;
	width: 110vw;
	filter: brightness(0.65);
}

.gallery__item-cut { 
	overflow: hidden;
	display: grid;
	place-items: center;
}

.gallery__item-inner {
	width: 100%; 
	height: 100%;
	background-position: 50% 50%;
	background-size: cover;	
	background-repeat: no-repeat;
}

.caption {
	/*font-size: clamp(1rem, 3vw, 1.75rem);*/
	z-index: 101;
	color: var(--color-caption);
	font-weight: 400;

	max-width: 100%;
    padding: 20px;
    width: 800px;
    text-align: center;
}

.gallery--grid .caption {
	position: absolute;
	width: 100vw;
	height: 100vh;
	padding: 0;
	top: 50%;
	left: 50%;
	margin-top: 50vh;
	margin-left: -50vw;
	display: grid;
	place-items: center;
	max-width: none;
	opacity: 0;
}

.gallery--switch.gallery--grid .caption {
	margin-top: -40vh;
	opacity: 1;
}

.gallery--grid .caption p {
	padding: 50vh 30vw 10vh 10vw;
}

.gallery--switch.gallery--grid .caption p {
	margin-top: 0;
}



@media (max-width: 991px) {
	.clipped-text {
		font-size: 100px;
	}
}
@media (max-width: 630px) {
	.clipped-text {
		font-size: 80px;
	}
}
@media (max-width: 460px) {
	.clipped-text {
		font-size: 50px;
	}
}










.brxe-text ul { margin-block: 10px;     padding-left: 35px;     margin-left: 25px; }
.brxe-text li { position:relative; list-style:none; }
.brxe-text li::before {
    position: absolute;
    left: -30px;
    content: url('data:image/svg+xml;utf8,<svg fill="%23e3b16c" stroke="%23e3b16c" stroke-width="3" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M5 16.577l2.194-2.195 5.486 5.484L24.804 7.743 27 9.937l-14.32 14.32z"/></svg>');
	 width: 20px;
}

.linkbtn {
    color: #e3b16c;
    display: inline-block;
    padding: 5px 10px 10px;
    border: 1px solid #e3b16c;
    border-radius: 20px;
    line-height: 1;
    margin: 10px;
	transition: 0.3s ease;
}
.linkbtn:hover {
    color: #fff;
}

.linkbtn-white {
  padding: 7px 20px;
    border: 1px solid #fff;
    border-radius: 20px;
	cursor:pointer;
	color:#fff;
}
.linkbtn-white:hover  {
   color: #e3b16c;
}


header, footer, main {

	button, .white-btn { 
		position: relative;
		background: transparent;
		border: 1px solid #fff;
		color: #fff;
		border-radius: 20px;
		padding: 8px 50px; cursor:pointer;
		z-index: 1; overflow: hidden; text-transform:uppercase;
	}
	button::before , .white-btn:before {
				content: '';
				position: absolute;
				bottom: -50%;
				left: -10%;
				width: 120%;
				height: 150%;
				background: #fff;
				border-radius: 50%;
				transform: translateY(100%);
				transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
				z-index: -1;
			}

	button:hover::before , .white-btn:hover:before {
				transform: translateY(-10px); border-radius: 
				  20%;
			}

	button:hover, .white-btn:hover {
				color: var(--col2);
			}
}