/*
Theme Name: Giscorp
Text Domain: promisys
Author: Promisys
Version: 1.0
*/

:root{
	--font-size: 1rem;
	--color: hsl(345, 6%, 12%);
	--site-width: 84rem;

	--yellow: #fed216;
	--lime: #79b928;
	--green: #7f915c;

	--hover: hsl(0, 0%, 25%);
}

body{
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: var(--font-size);
	line-height: 1.4;
	color: var(--color);
}

.wrap{
	width: min(100% - 3rem, var(--site-width));
	margin-inline: auto;
}
main{
	padding-block: 2rem;
}

section.banner{
	height: 800px;
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	transition: height .2s;
}

header{
	--gap: 2rem;
	position: sticky;
	background: #fff;
	top: var(--adminbar-padding, 0);
	align-items: center;
	gap: var(--gap);
	padding: 10px 2rem;
	box-shadow: 0 -10px 10px 10px #0000001a;
	transition: box-shadow 0.2s;
	z-index: 9;
}
header.scroll{
	box-shadow: 0 -6px 18px #0000002b;
}
header > .flex{
	gap: 4rem;
}
header .logo a > *{
	height: 70px;
}


footer{
	background: var(--color);
	padding-block: 1rem;
	margin-top: auto;
	color: #fff;
}
footer .flex{
	align-items: center;
	gap: 1rem;
}
footer svg{
	max-height: 45px;
}
footer .site-info{
	flex: 1;
	gap: .5rem;
	place-content: center;
	flex-direction: column;
}
footer nav ul{
	gap: 1rem;
}
footer nav a{
	color: #ccc;
}
footer nav a:hover{
	color: #fff;
	text-decoration: underline;
}
footer address{
	font-size: .875rem;
	font-weight: 600;
}

.socials{
	gap: 1rem;
}



.wp-block-group.intro .wp-block-media-text{
	gap: 6rem;
}

@media( max-width: 930px ){
	.wp-block-group.intro .wp-block-buttons{
		justify-content: center;
	}
}

section.wp-block-group + section.wp-block-group{
	margin-top: 4rem;
}
section.wp-block-group.has-background{
	position: relative;
	padding-block: 2rem;
}
section.wp-block-group.has-background p:last-child{
	margin-bottom: 0;
}

section.wp-block-group.hero::after{
	content: '';
	background-image: url('assets/img/network.svg');
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	left: -4rem;
	width: 100%;
	height: 120%;
	max-width: 769px;
	max-height: 582px;
	opacity: 5%;
}
section.hero .wp-block-column{
	position: relative;
	background: #fff;
	border-radius: 4px;
	padding: 1.5rem;
	z-index: 1;
}
section.hero .wp-block-column h3{
	margin-bottom: 1rem;
}

svg#logo-cube{
	height: 18rem;
	margin: 0 auto;
	display: block;
}

section.ecotrilogy .wp-block-group{
	border: 1px solid;
	border-radius: 6px;
	padding: 1em 1em 0;
	margin-bottom: 2rem;
	position: relative;
}
section.ecotrilogy .wp-block-group::after{
	content: '';
	width: 45px;
	height: 80px;
	position: absolute;
	bottom: 0;
	z-index: 1;
}
section.ecotrilogy .wp-block-group:nth-child(1)::after{
	translate: 0.5rem 1.4rem;
	right: 0;
	scale: -1 1;
	background: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 17.3 29.4' xml:space='preserve'><polygon fill='%23b2cd6e' points='0,0 0,19.4 17.3,29.4 17.3,24 4.7,16.7 4.7,2.6 '/></svg>") center no-repeat;
}
section.ecotrilogy .wp-block-group:nth-child(2)::after{
	translate: -1.5rem 1.4rem;
	background: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 17.3 29.4' xml:space='preserve'><polygon fill='%23fbf0b2' points='0,0 0,19.4 17.3,29.4 17.3,24 4.7,16.7 4.7,2.6 '/></svg>") center no-repeat;
}
section.ecotrilogy .wp-block-group:nth-child(3)::after{
	translate: 0.5rem 1.4rem;
	right: 0;
	scale: -1 1;
	background: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 17.3 29.4' xml:space='preserve'><polygon fill='%237f915c' points='0,0 0,19.4 17.3,29.4 17.3,24 4.7,16.7 4.7,2.6 '/></svg>") center no-repeat;
}

.products > div{
	--width: 425px;
	max-width: var(--width);
	display: flex;
	gap: 10px;
	flex-direction: column;
}
.products a.thumbnail{
	width: 100%;
	height: 100%;
	max-width: var(--width);
	aspect-ratio: 425 / 260;
	padding: 1rem;
	display: block;	
}
.products a.thumbnail img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0 auto;
}
.products h3 > a{
	display: block;
	text-align: center;
	padding: 1rem;
	border-radius: 6px;
	border: 1px solid #efefef;
}

.product__container{
	gap: clamp(2rem, 20vw, 6rem);
}
.product__container .entry-content{
	flex: 1;
}

/*BLOG*/
aside {
    width: min(100%, 300px);
}
main:has( > aside) {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}
main.posts{
	gap: 4rem;
}
main.posts h2,
.single-post h1{
	margin-bottom: .5rem;
}

.post-img{
	margin-bottom: 2rem;
}
.post-img a{
	display: inline-block;
	height: 24rem;
	width: 100%;
	border-radius: 8px;
}
.content-area .post-img img{
	height: 100%;
	width: 100%;
	object-fit: cover;
}
span.date{
	font-size: .7rem;
	line-height: 1;
}
.single-post article{
	max-width: 75ch;
}

aside .posts{
	flex-direction: column;
	gap: .8rem;
}
aside .posts li{
	display: flex;
	flex-flow: row;
	align-items: center;
	gap: 1rem;
}
aside .posts li a{
	font-size: 0.9rem;
	color: var(--color);
}
aside .posts a:last-child{
	flex: 1;
}
aside .posts li:hover a{
	color: var(--primary);
	text-decoration: none;
}
aside .posts li img{
	width: 60px;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	max-width: initial;
}


p{
	margin-bottom: 1rem;
	max-width: 75ch;
}


a{
	color: var(--color);
	text-decoration: none;
}
a:hover{
	color: color-mix(in lab, currentColor 50%, white);
	text-decoration: underline;
}
a.btn,
a.wp-block-button__link{
	font-family: "mostra-nuova", sans-serif;
	font-weight: 700;
	font-style: normal;
	color: #fff;
	padding: 1em 2em;
	font-size: var(--font-size);
	background: #333;
	border-radius: 8px;
	display: inline-flex;
	border: 1px solid var(--color);
}
a.btn:hover,
a.wp-block-button__link:hover{
	color: #fff;
	text-decoration: none;
	background: var(--hover);
}

a.btn.alt,
.alt a.wp-block-button__link{
	background: #fff;
	color: var(--color);
}
a.btn.alt,
.alt a.wp-block-button__link:hover{
	color: var(--hover);
	background: #fafafa;
	border-color: #9c9c9c;
}
a.btn.ter{
	background: none;
	color: #fff;
	border-color: currentColor;
}
a.btn.ter:hover{
	background: #313131;
}


h1, h2, h3{
	font-family: "mostra-nuova", sans-serif;
	font-weight: 700;
	font-style: normal;
	line-height: 1.2;
	text-wrap: balance;
}
h1, .home h2{
	font-size: clamp(1.3rem, 2.5vw, 2rem);
	margin-bottom: .5em;
	color: var(--color);
}
h2{
	font-size: clamp(1.1rem, 2.5vw, 1.6rem);
	margin-bottom: 1rem;
}
h3{
	font-size: clamp(1rem, 2.5vw, 1.4rem);
}
h1, .home h2{
	font-size: clamp(1.3rem, 2.5vw, 2rem);
}
:is(h1, h2, h3) > a:hover{
	text-decoration: none;
}

.contact__wrapper{
	gap: 4rem;
}
.contact__wrapper .entry-content{
	flex: 1;
}
aside .contact-info{
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-weight: 500;
}

strong{
	font-weight: 500;
}
.content-area img{
	display: block;
	font-style: italic;
	max-width: 100%;
	height: auto;
	width: auto;
}

a:has( > img){
	display: block;
	width: fit-content;
	overflow: hidden;
}
a img{
	transition: scale 0.2s
}
a:hover img{
	scale: 1.05;
}

svg.fa-map-pin{
	color: var(--yellow);
}
svg.fa-hand-holding-seedling{
	color: var(--lime);
}
svg.fa-magnifying-glass-chart{
	color: var(--green);
}

input,
button,
textarea,
select{
	font: inherit;
}
button{
	background: none;
	border: none;
}
address{
	font-style: normal;
}

blockquote{
	padding-block: 2rem;
	background: #e6f1d9;
	margin-bottom: 2rem;
	position: relative;
}
blockquote *{
	max-width: 55ch;
	margin: 0 auto;
}
blockquote::before,
blockquote::after{
	content: '';
	--bg: #fff;
	--size: 40px;
	display : inline-block;
	height : 0;
	width : 0;
	border-top : var(--size) solid var(--bg);
	border-right : var(--size) solid transparent;
	position: absolute;
}
blockquote::before{
	top: 0;
	left: 0;
}
blockquote::after{
	bottom: 0;
	right: 0;
	rotate: 180deg;
}

.wp-block-list{
	padding-left: 18px;
	margin-bottom: 1rem;
}

.flex{
	display: flex;
	flex-wrap: wrap;
}
.flex.column{
	flex-direction: column;
}

.grid{
  --min-column-size: 200px;
  --column-count: 3;
  --gap: 2rem;
  
  --breakpoint: calc(var(--min-column-size) * var(--column-count) + (var(--gap) * (var(--column-count) - 1)) );
  --column-size: calc((100% / var(--column-count)) - var(--gap));
  
  display: grid;
  gap: var(--gap);
  
  grid-template-columns: repeat(auto-fit, minmax(
      min(max(var(--column-size), (100% - var(--breakpoint)) * -999 ), 100%), 
      1fr));
}

*:has( > [class*="svg-inline"]){
	display: flex;
	gap: 5px;
	align-items: center;
}

.card{
	border: 1px solid #efefef;
	padding: 2rem;
	border-radius: 1rem;
	max-width: max-content;
	margin: 0 auto;
}
.card p:last-child{
	margin-bottom: 0;
}

@media(max-width: 1024px){
	header{
		--header-height: 70px;
		display: flex;
		padding: 0.4rem 1rem;
		height: var(--header-height);
	}
	header .wrap{
		width: 100%;
	}
	header .logo a > *{
		max-height: 40px;
	}

}

@media(max-width: 768px){
}

.loader{
	display: flex;
	gap: 0.25rem;
	justify-content: center;
}
.loader > *{
	width: 0.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--color);
	animation: bounce 0.5s infinite alternate;
}
.loader > *:nth-child(2){
	content: '';
	animation-delay: 100ms;
}
.loader > *:nth-child(3){
	content: '';
	animation-delay: 200ms;
}

@keyframes bounce{
	to{
		translate: 0 -0.25rem;
	}
}