/* 
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.2
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;
    display: block
}

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;
}

/*  desk menu */

@media(min-width:1024px){
	#mainMenu ul:after {
	    content: none;
	}
	
	#mainMenu ul {
	    justify-content:space-between;
	}
	#mainMenu ul > li{
	    flex-grow:0
	}
	#mainMenu ul > li a span{
	    display: none
	}
	.wpml-ls-legacy-list-horizontal{
		padding: 0px
	}
	#header a {
	    font-size: 16px;
	    border: 0px;
	}
}
/* mobile ham */
#ham{
	cursor: pointer
}
#ham svg{
	transition: .3s all ease-in-out;
}
#ham.open svg{
    transform: rotate(45deg);
}


#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;
}

@media(min-width:769px){
	.cardLoop2 {
	    margin-top: 12vw;
	}

	.titleCard {
	    transform: scale(2)!important;
	    transform-origin: bottom left;
	    width: 100vw;
	    position: absolute;
	    opacity: 0!important;
	    padding:10px;
	    display:block;
	    overflow: hidden;
	    transition:all .5s ease-out
	}
	.e-loop-item > div:hover .titleCard {
	    transform: scale(1)!important;
	    transform-origin: bottom left;
	    width: auto;
	    position: absolute;
	    opacity: 1!important;
	}
}

.single-post .elementor-widget-text-editor {
    font-size: 22px;
    font-weight: 400;
    word-spacing: normal;
    -webkit-font-smoothing: antialiased;
      font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
     text-rendering: optimizeSpeed;
    -webkit-text-rendering: optimizeSpeed;
    font-kerning: none;
    -webkit-font-kerning: none;
}
.single-post .elementor-widget-text-editor h2,
.single-post .elementor-widget-text-editor span.h2{
    font-size: 30px;
    font-weight: 600;
    display:inline;
    margin:0;
    white-space: pre-wrap;
}
.single-post .elementor-widget-text-editor h2::after {
    content: "\00a0"; /* spazio non-breaking dopo l'h2 */
}
.single-post .elementor-widget-text-editor {
    font-variant-ligatures: no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual;
    -webkit-font-variant-ligatures: no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual;
    font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0;
    -webkit-font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0;
}

@media(max-width:768px){
	.projectLoop .e-loop-item > div{
	    aspect-ratio: 3/4!important;
	    width: 66%;
	    align-self: self-start;
	    margin-left: 0;
	}
	.projectLoop .e-loop-item > div img{
		aspect-ratio: 3/4!important;
		object-fit:cover;
	}
	.projectLoop .e-loop-item > .cardLoop2 {
	    aspect-ratio: 3/4!important;
	    width: 66%;
	    align-self: self-end;
	    margin-right: 0;
	    margin-left:auto
	}
	.projectLoop .e-loop-item > .cardLoop2 img{
	    aspect-ratio: 3/4!important;
	    object-fit:cover
	}
	.projectLoop .e-loop-item > div h2 a{
		font-size: 25px!important;
		margin-left: 10px;
	}
	footer ul#menu-1-c3485a4 {
	    width: 100%;
	}
	footer ul#menu-1-c3485a4 li{
	    width: 50%;
	}
	.single-post .elementor-widget-text-editor,
	.single-post .elementor-widget-text-editor h2 {
    	font-size: 18px;
    }
    
    .home #lottis{
/* 	    transform: scale(1.8) */
    }
    
}
@media (max-width: 768px) {
  #lottis.elementor-widget-lottie {
        width: 180vw;
        margin-left: -40vw !important;
        max-width: 180vw !important;
  }
}

/* new desk menu */
#topMenu .mainItem{
    position: absolute!important;
    left: 50%;
    transform: translateX(-50%);
}
.subItem,
#topMenu.activesub .mainItem,
:is(.page-id-47, .page-id-238) #topMenu .mainItem{
    opacity:0;
    z-index: -1
}

#topMenu.activesub .subItem,
:is(.page-id-47, .page-id-238) #topMenu .subItem{
    opacity:1!important;
    pointer-events:all;
}

.projectLoop .e-loop-item {
    overflow: hidden;
}
