/*!
Theme Name: QZR Theme
Theme URI: http://underscores.me/
Author: QZR Studio
Author URI: https://qzrstudio.com
Description: QZR Theme
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: qzrstudio
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

QZR Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,300;1,700&display=swap');


/* FIX */

* {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: 100%;
}

/* DEFAULT */

body{
	overflow-x: hidden;
}
img {
	border: 0;
}
a{
	color: inherit;
	text-decoration: none;
}
.left { 
	float: left; 
}
.right { 
	float: right; 
}
.center {
	position: relative;
	margin: 0 auto;
}
.clear { 
	clear: both; 
}
.cover{
	background-size: cover;
	background-position: center;
	object-fit: cover;
	-o-object-fit: cover;
	object-position: center;
}
.flex{
	display: flex;
}
.flex.space{
	justify-content: space-between;
}
.flex.wrap{
	flex-wrap: wrap;
}
.align-center{
	text-align: center;
}
/* PADDING */

.col-padding {
	padding-left: 1rem;
	padding-right: 1rem;
}
.double-col-padding {
	padding-left: 2rem;
	padding-right: 2rem;
}
.row-padding {
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.double-row-padding {
	padding-top: 2rem;
	padding-bottom: 2rem;
}


/* COLUMNS  */

.main-column {
	clear: both;
	position: relative;
	margin: 0 auto;
	height: auto;
	width: 95%;
}

.column-of-1 { width: 100% }
.column-of-2 { width: 50% }
.column-of-3 { width: 33.33% }
.double-column-of-3 { width: 66.66% }
.column-of-4 { width: 25% }
.column-of-5 { width: 20% }

.columns-1 { width: 8.33% }
.columns-2 { width: 16.66%; }
.columns-3 { width: 25%; }
.columns-4 { width: 33.33%; }
.columns-5 { width: 41.66%; }
.columns-6 { width: 50%; }
.columns-7 { width: 58.3%; }
.columns-8 { width: 66.66%; }
.columns-9 { width: 75%; }
.columns-10{ width: 83.33%; }
.columns-11{ width: 91.66%; }
.columns-12{ width: 100%; }

.column-of-1,
.column-of-2,
.column-of-3,
.double-column-of-3,
.column-of-4,
.column-of-5,
.columns-1,
.columns-2,
.columns-3,
.columns-4,
.columns-5,
.columns-6,
.columns-7,
.columns-8,
.columns-9,
.columns-10,
.columns-11,
.columns-12{
		position: relative;
}

/* TYPOGRAPHY */

html{
    font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
}


/* LAYOUTS */


.qzr-layout{
	padding-top: 4rem;
	padding-bottom: 2rem;
}
.grid-wrapper{
	position: relative;
	width: 100%; 
	margin: 0 auto;
}
.grid-wrapper > .inner{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}
.grid-wrapper .grid{
    position: relative;
    height: 100%;
    width: 100%;
}
.grid-wrapper .grid .group{
	position: relative;
}
.grid-wrapper .grid .group .group-content{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
.grid-wrapper .grid .group .group-content figure a,
.wp-block-column figure a{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 95%;
    transform: translate(-50%,-50%);
    overflow: hidden;
    transition: all 0.2s;
}

.grid-wrapper .grid .group .group-content figure a:hover,
.wp-block-column figure a:hover {
    width: 100%;
    height: 100%;
}
.grid-wrapper .group-content p{
	margin-bottom: 1rem;
}
.grid-wrapper .group-content figure,
.grid-wrapper .group-content img {
	width: 100%;
}
.qzr-layout .wp-block-image figcaption{
	position: absolute;
	top: 100%;
	left: 0;
}
.group-content .wp-block-image{
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
}


/* COLONNE */


.wp-block-column:not(:first-child){
	margin-left: 2rem;
}
.wp-block-columns{
	padding-top: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}
.wp-block-column .wp-block-buttons,
.wp-block-column .wp-block-button,
.wp-block-column .wp-block-button a{
	width: 100%;
}
.wp-block-column .wp-block-image{
	height: 0;
}

/* BUTTONS */
.wp-block-button a{
	background: black;
}
.wp-block-button.is-style-round-button a{
	position: relative;
	width: 270px;
	height: 270px;
	padding: 0;
	font-size: 26px;
	background: black;
	line-height: 30px;
	padding: 0 30px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.wp-block-button a:hover,
.wp-block-button.is-style-round-button a:hover {
	background: #DEDD26;
	color: #000;
}

.wp-block-button.is-style-round-button a:after {
	content : '';
	background-image: url('images/freccia.svg');
	position: absolute;
	width: 30px;
	height: 30px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	margin-top: 65px;
}
.wp-block-button.is-style-round-button a:hover:after {
	filter: invert(100%);
}

.wp-block-button.is-style-round-button a:before {
	content: attr(rel);
	position: absolute;
	text-transform: uppercase;
	font-size:  0.5em;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	margin-top: 30px;
}

@media (max-width: 767px) { 
	.wp-block-button.is-style-round-button {
		transform-origin: center center;
		transform: scale(0.5) translate(0,-50%);
	}
}

/* LOGHI */

.logos{
	padding: 2rem 0;
	display: flex;
	justify-content: center;
}
@media (max-width: 1023px) { 
	.logos.bigger {
		flex-wrap: wrap;
	}
}
@media (max-width: 767px) { 
	.logos {
		flex-wrap: wrap;
	}
}
.logos .logo {
	margin: 0 29px;
	border-left: 3px solid #DEDD20;
	border-right: 3px solid #DEDD20;
	width: 248px;
	height: 113px;
}
.logos.bigger .logo {
	width: 293px;
	height: 373px;
}
@media (max-width: 767px) { 
	.logos .logo {
		width: 210px;
		height: 95px;
	}
	.logos.bigger .logo {
		width: 320px;
		height: 407px;
	}
}
.logos.borderless .logo {
	border: none;
}

.logos .logo img {
	width: 100%;
	height: 100%;
}