/* 
Theme Name: IntegraDesign - Studio MA
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Studio MA team
Author: Studio MA
Author URI: https://manlioma.it/
Template: hello-elementor
Version: 1.0.1
Text Domain: studio-ma
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* HELPERS */

.fl{float: left;}
.fr{float: right;}
.no_display{display:none!important;}
.hidden{width: 0px;height: 0px;visibility: hidden;opacity: 0;overflow: hidden;}
.muto{line-height: 0px;margin: 0px;padding: 0px;text-indent: -999px;font-size: 0px;}
.clear{clear: both;}
a.active{border: none;outline:0;}
*:focus {
/*     outline: none!important;border: none!important;outline:0!important;outline-style: none!important; */
}

.wow {
   visibility: hidden;
}
body.blocked{overflow: hidden!important;padding-right: 20px;}
@media all and (min-width: 768px){ 
	.align_right{text-align: right;}
	.align_left{text-align: left;}
}
.align_center{
	text-align: center
}
body, html{
	-webkit-font-smoothing: antialiased; 
}
body, html{
	overflow-x: hidden;
	overflow-y: auto;
	max-width: 100%;
}
.trans{  
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -ms-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s; 
}

.hyphens_text{
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.text_big{
	font-size: 1.2em;
}
.full-width{
	width: 100%;
	max-width: 100%;
}

body.logged-in .no-log-only{
	display: none;
}
body:not(.logged-in) .log-only{
	display: none;
}

img{
	backface-visibility: hidden;
	max-width: 100%;
	height: auto;
}
table{
	width: 100%;
}
iframe{
	width: 100%
}
a:focus, button:focus{
	outline: none!important;
}

@media (min-width: 768px){
	.picsout_right{
		margin-right: -30px;
	}
	.picsout_left{
		margin-left: -30px;
	}
	.picsout_right_big{
		margin-right: -25%;
	}
	.picsout_left_big{
		margin-left: -25%;
	}
}

.black_overlay:before{
	content: '';
	height: 100%;
	width: 100%;
	position: absolute;
	background: #000;
	opacity: .33;
}
.white_overlay:before{
	content: '';
	height: 100%;
	width: 100%;
	position: absolute;
	background: #FFF;
	opacity: .33;
}

/* safari fonts fix */
/*
body{
	font-kerning: none;
	-webkit-text-rendering: optimizeSpeed;
	text-rendering: optimizeSpeed;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
*/

/* preloader */
/*
#preloader{
    position: fixed;
    top:0;
    z-index: 1000;
    transform: translateZ(200px);
    height:100vh;
    left:0;
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--e-global-color-1d26dde);
}
*/

/*
.elementor-editor-active #preloader{
display: none;
}

#preloader img {
	width: 180px;
    animation: pulsy .6s infinite alternate;
}
@keyframes pulsy{
    from{
        opacity:0.6;
    }
    to{
        opacity:1
    }
}
*/

/*  typography - scale 1.333 */

html {font-size: 112.5%;} /*18px*/

@media(max-width: 1200px){
	html {font-size: 100%;} /*16px*/
}
@media(max-width: 768px){
	html {font-size: 80%;} /*16px*/
}

body {
  color: var(--e-global-color-text);
}

p {
}


/* Typescale Desktop */

/* Headline 1 */
.headline-1 {
  font-family: 'Matiere', sans-serif;
  font-size: 4.5em; /* 72px */
  font-weight: 500;
  line-height: 1.2;
}

/* Headline 2 */
.headline-2 {
  font-family: 'Matiere', sans-serif;
  font-size: 1.2em; /* 48px */
  font-weight: 500;
  line-height: 1.3;
}

/* Headline 3 Regular */
.headline-3 {
  font-family: 'Sohne', sans-serif;
  font-size: 1.375em; /* 22px */
  font-weight: 400;
  line-height: 1.4;
}

/* Headline 4 */
.headline-4 {
  font-family: 'Sohne', sans-serif;
  font-size: 1em; /* 16px */
  font-weight: 400;
  line-height: 1.5;
}

/* Body 1 */
.body-1 {
  font-family: 'Sohne', sans-serif;
  font-size: 2em; /* 32px */
  font-weight: 400;
  line-height: 1.5;
}

/* Body 2 */
.body-2 {
  font-family: 'Sohne', sans-serif;
  font-size: 1.25em; /* 20px */
  font-weight: 400;
  line-height: 1.6;
}

/* Body 3 */
.body-3 {
  font-family: 'Sohne', sans-serif;
  font-size: 1em; /* 16px */
  font-weight: 400;
  line-height: 1.6;
}

/* Button */
.button {
  font-family: 'Sohne', sans-serif;
  font-size: 1.25em; /* 20px */
  font-weight: 400;
  line-height: 1;
}

/* Alternative: CSS Custom Properties (Variables) */
:root {
  --font-matiere: 'Matiere', serif;
  --font-sohne: 'Sohne', sans-serif;
  
  --size-headline-1: 4.5em;
  --size-headline-2: 3em;
  --size-headline-3: 1.375em;
  --size-headline-4: 1em;
  --size-body-1: 2em;
  --size-body-2: 1.25em;
  --size-body-3: 1em;
  --size-button: 1.25em;
}

/* Using CSS Variables */
h1 { font-family: var(--font-matiere); font-size: var(--size-headline-1); font-weight: 500; }
h2,.h2 { font-family: var(--font-sohne); font-size: var(--size-headline-2); font-weight: 400; }
h3,.h3 { font-family: var(--font-sohne); font-size: var(--size-headline-3); font-weight: 400; }
h4,.h4 { font-family: var(--font-sohne); font-size: var(--size-headline-4); font-weight: 400; }
.body-lg { font-family: var(--font-sohne); font-size: var(--size-body-1); font-weight: 400; }
.body-md { font-family: var(--font-sohne); font-size: var(--size-body-2); font-weight: 400; }
.body-sm { font-family: var(--font-sohne); font-size: var(--size-body-3); font-weight: 400; }
body {
	font-family: var(--font-sohne); font-size: var(--size-body-2); font-weight: 300; 
}
.btn { font-family: var(--font-sohne); font-size: var(--size-button); font-weight: 400; }

.h1 :is(h1, h2, h3){ 
	font-family: var(--font-matiere)!important; 
	font-size: var(--size-headline-1)!important; 
	font-weight: 500!important; 
}
p {
    letter-spacing: -0.019em;
    font-weight: 300;
    line-height: 1.333;
}
p > strong, p > b{
	font-weight: 700
}

.squareimg img{
 aspect-ratio:1;
 object-fit:cover;
 object-position:center;
}
.tallimg img{
 object-fit:cover;
 object-position:center;
 aspect-ratio:0.66
}
.elementor-location-header{
  position: fixed;
  z-index: 2000
}

/*  page transition */

/*



.elementor-location-header, #header {
  view-transition-name: header-fixed;
  position: fixed;
  z-index: 2000
}

::view-transition-old(header-fixed),
::view-transition-new(header-fixed) {
  animation: none;
}
*/

body:before{
	content: '';
	display: block;
	position: fixed;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	visibility: visible;
	opacity: 1;
	z-index: 1000;
	background: #fff;
	transition: opacity .8s cubic-bezier(0.39, 0.58, 0.57, 1);
}
body.loaded:before{
	content: '';
	visibility: hidden;
	opacity: 0;
}



/* menu navigation */
#mainMenu .sub-menu {
    font-size: 1em !important;
    position: fixed;
    top: 0 !important;
    display: flex!important;
    justify-content: space-evenly;
/*     left: 0% !important; */
    background: white;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: .3s all ease-in-out;
    height: 100px;
    align-items: center;
    inset-inline-start: auto!important;
}
#mainMenu .sub-menu.on,
#menuMob .sub-menu.on {
	pointer-events: all;
    opacity: 1
}

#menuMob .sub-menu{
	font-size: 1.7em !important;
    position: fixed;
    top: 0px !important;
    display: flex !important;
    justify-content: space-evenly;
    flex-direction: column;
    width: 100% !important;
    height: calc(100vh - 100px);
    background: white;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: .3s all ease-in-out;
    left: 0;
    align-items: center;
}
#menuMob ul li a {
    font-size: 20px;
    font-weight: 500;
}

body.home,
html:has(body.home) {
    overflow: hidden!important;
}

a.elementor-item.elementor-item-active,
.current-menu-ancestor a,
.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu .elementor-item:focus{
    font-weight: 400 !important;
}


.home #header{
	transform: translateY(-100%);
}
.home.loaded #header{
	transform: translateY(0%);
	transition: transform 1s ease-out 2s;
}
.home #lottis{
	margin-top:-100px;
}
.loaded #lottis{
	margin-top: 0px;
	transition: margin 1s ease-out 2s;
}

/* mobile ham */
#ham{
	cursor: pointer
}
#ham.open svg path{
	transition: .3s all ease-in-out;
}
#ham.open svg path:nth-child(1){
    transform: rotate(336deg) translate(2px, 2px);
    left: 0px;
    top:0px;
    transform-origin: bottom left;
}
#ham.open svg path:nth-child(2){
	opacity: 0
}
#ham.open svg path:nth-child(3){
    transform: rotate(24deg) translate(-4px, 0px);
    left: 0px;
    top:0px;
    transform-origin: bottom left;
}

#menuCont{
	transform: translateY(-100%);
}

.home #footer{
	display: none
}
main#content {
    min-height: calc(100vh - 286px);
}

/*  mobile */
/* titoli progetti */
@media(max-width:425px){
	.h1 :is(h1, h2, h3){ 
		font-family: var(--font-matiere)!important; 
		font-size: 32px!important; 
		font-weight: 500!important; 
	}
}


/*  gallery mobile */
.mobile-gallery-1{
    max-width:100%;
    overflow:hidden;
}
.mobile-gallery-1 > div{
    max-width:auto;
    overflow-x:scroll;
}
.mobile-gallery-1 .gallery{
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    flex-direction: row;
    gap: 1em;
    align-items: flex-start;
    position:relative;
    padding-right:1em;
}
.mobile-gallery-1 .gallery-item {
    max-width: 100%!important;
    flex-grow: 0;
    flex-shrink: 0;
}
.mobile-gallery-1 .gallery-item img{
    width: 100%;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 1) {
    width: 75vw!important;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 1) img {
    aspect-ratio:1.5;
    object-fit:cover;
    object-position:center;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 2) {
    width: 100vw!important;
    margin-top: calc(75vw / 1.5)!important;
    margin-bottom: calc((75vw / 1.5) / 2)!important;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 2) img {
    aspect-ratio:0.66;
    object-fit:cover;
    object-position:center;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 3) {
    width: 75vw!important;
    margin-top: calc((75vw / 1.5) / 2)!important;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 3) img {
    aspect-ratio:1.5;
    object-fit:cover;
    object-position:center;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 4) {
    width: 75vw!important;
    position:absolute;
    bottom: 0;
    right: 0;
}
.mobile-gallery-1 .gallery-item:nth-child(4n + 4) img {
    aspect-ratio:1.5;
    object-fit:cover;
    object-position:center;
}


