/*!
Theme Name: Serena Gallorini
Theme URI: http://underscores.me/
Author: Mamma Studio
Author URI: https://mammastudio.it
Description: Description
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: serenagallorini
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/




/* general */

html, body {
	height: 100%;
	width: 100%;
	overflow: hidden;
	font-size: 1px;
	font-family: 'Poppins', sans-serif;
	font-style: normal;
	font-weight: 400;
	margin: 0;
}

html {
	background: white;
}

main {
	opacity: 0;
	height: 100%;
	-webkit-clip-path: circle(0.0% at 50% 50%);
	        clip-path: circle(0.0% at 50% 50%);
	transition: all 3s cubic-bezier(0.25,0,0,1);
}

main.active {
	opacity: 1;
	-webkit-clip-path: circle(100.0% at 50% 50%);
	        clip-path: circle(100.0% at 50% 50%);
}



/* bg + logo */

.background {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	z-index: -1;
	-o-object-fit: cover;
	   object-fit: cover;
}

.logo, .logo-lottie {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, calc(-50% + 50rem));
	width: 60vw;
	height: auto;
}

.logo-lottie {
	transform: translate(-50%, calc(-50% + 12rem));
}

.logo-img {
	width: 100%;
	height: auto;
}

.payoff {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	-webkit-margin-before: 50rem;
	        margin-block-start: 50rem;
}

.payoff p, .content#contact a {
	font-size: 25rem;
	color: white;
	margin: 0 !important;
	line-height: 100%;
}



/* logo dots */

.logo-dot {
	width: 2%;
	height: auto;
	aspect-ratio: 1/1;
	background: white;
	border-radius: 100%;
	position: fixed;
	top: 0;
	right: 0;
	transform: scale(1);
	transition: transform 1.5s cubic-bezier(0.5,0,0,1);
	transition-delay: 1s;
}

.logo-dot#contact, .logo-dot#tutto {
	top: auto;
	bottom: 75rem;
}

.logo-dot#work, .logo-dot#tutto {
	right: 11.65%;
}

.logo-dot.active {
	transform: scale(0);
	transition-delay: 0s;
}




/* button */

.home-button {
	position: fixed;
	cursor: pointer;
	border-radius: 100%;
	border: solid 1px #ffffffff;
	color: white;
	width: 100rem;
	height: 100rem;
	font-family: 'Poppins', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 20rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-transform: lowercase;
	background: transparent;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	transition: all 2s cubic-bezier(0.5,0,0,1);
	opacity: 1;
	transform: translateX(-200%);
}

.home-button.active {
	border: solid 1px #ffffff00;
}

.home-button.hidden {
	pointer-events: none;
	opacity: 0;
}

.home-button#work {
	top: 75rem;
	left: 75rem;
}

.home-button#art {
	top: 75rem;
	right: 75rem;
}

.home-button#tutto {
	bottom: 75rem;
	left: 75rem;
}

.home-button#contact {
	bottom: 75rem;
	right: 75rem;
}

.home-button span {
	transition: color 2s cubic-bezier(0.7,0,0,1);
	z-index: 100;
}

.home-button#work.active span {
	color: black;
}

.home-button#tutto.active span {
	color: black;
}

.home-button#art, .home-button#contact {
	transform: translateX(200%);
}

main.active .home-button#work,
main.active .home-button#art,
main.active .home-button#tutto,
main.active .home-button#contact {
	transform: translateX(0);
}

.home-button-repeater {
	z-index: 101 !important;
	opacity: 1 !important;
	transform: none !important;
	border: none !important;
	color: black !important;
	pointer-events: none !important;
}

.home-button-repeater#art {
	color: white !important;
}




/* buttons circle (content bg) */

.home-button .bg-circle {
	z-index: 98;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100vw;
    height: auto;
    aspect-ratio: 1 / 1;
    transition: transform 2s cubic-bezier(0.7,0,0,1);
    background: black;
	border-radius: 100%;
}

.home-button.active .bg-circle {
	transform: translate(-50%, -50%) scale(2.5);
}

.home-button#work .bg-circle {
	background: white;
}

.home-button#tutto .bg-circle {
	background: white;
}




/* content */

.content#contact a {
	text-decoration: none;
}

.content {
	/* background: black; */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-y: scroll;
	overflow-x: hidden;
	transition: opacity 2s cubic-bezier(0.7,0,0,1);
	pointer-events: none;
	opacity: 0;
	z-index: 99;
}

.content.active {
	opacity: 1;
	pointer-events: all;
}

.content#work {
	/* background: white; */
	display: grid;
    grid-template-columns: repeat(2, calc(calc(100% - 50rem) / 2));
    gap: 50rem;
    padding: 200rem;
    box-sizing: border-box;
}

.content#work img:not(.close img) {
	width: 100%;
	height: auto;
	display: block;
}

.content#contact {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10rem;
}

/*
.content#tutto {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 100rem;
	box-sizing: border-box;
	gap: 50rem;
}
*/

.content#tutto {
	height: 100%;
	width: 100%;
	overflow-y: scroll;
}

.content#tutto img {
	max-width: 250rem;
	max-height: 250rem;
	width: auto;
	height: auto;
	display: block;
}

.content#art {
	/* background: white; */
	display: grid;
    grid-template-columns: repeat(2, calc(calc(100% - 50rem) / 2));
    gap: 50rem;
    padding: 200rem;
    box-sizing: border-box;
}

.content#art img:not(.close img) {
	width: 100%;
	height: auto;
	display: block;
}



/* content close button */

.close {
	position: fixed !important;
	top: 110rem;
	right: 110rem;
	height: 30rem;
	width: 30rem;
	cursor: pointer;
	pointer-events: all;
}

.close img {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.content#art .close, .content#contact .close {
	left: 110rem;
	right: auto;
}

.content#tutto .close, .content#contact .close {
	bottom: 110rem;
	top: auto;
}

.content .close {
	pointer-events: none;
}

.content.active .close {
	pointer-events: all;
}



/* animation */

.content img[data-scroll]:not(.close img), .content img[data-scroll="out"]:not(.close img) {
	opacity: 0;
	transition: opacity 2.5s cubic-bezier(0.15,0,0,1);
}

.content img[data-scroll="in"]:not(.close img) {
	opacity: 1;
}





/* mobile */

@media (orientation: portrait) {
	
	body, html {
		font-size: 0.75px;
		margin: 0px;
	}

	.home-button#work, .home-button-repeater#work {
		top: 50rem;
		left: 50rem;
	}
	
	.home-button#art, .home-button-repeater#art {
		top: 50rem;
		right: 50rem;
	}
	
	.home-button#tutto, .home-button-repeater#tutto {
		bottom: 50rem;
		left: 50rem;
	}
	
	.home-button#contact {
		bottom: 50rem;
		right: 50rem;
	}

	.content#work {
		grid-template-columns: 100%;
		padding: 75rem;
		gap: 30rem;
		padding-top: 150rem;
	}

	.content#art {
		grid-template-columns: 100%;
		padding: 75rem;
		gap: 30rem;
		padding-top: 150rem;
	}

	.close {
		top: 80rem;
		right: 80rem;
	}

	.content#art .close, .content#contact .close {
		left: 80rem;
		right: auto;
	}
	
	.content#tutto .close, .content#contact .close {
		bottom: 80rem;
		top: auto;
	}

	.logo, .logo-lottie {
		width: 80vw;
	}

	.logo-lottie {
		transform: translate(-50%, calc(-50% + 17rem));
	}

	.payoff p {
		font-size: 15rem;
	}

	.logo-dot#contact, .logo-dot#tutto {
		top: auto;
		bottom: 65rem;
	}

	.content#tutto {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		padding: 50rem;
		box-sizing: border-box;
		gap: 10rem;
	}

	.home-button .bg-circle {
		height: 100vh;
		width: auto;
	}

}