 /*
Theme Name: cheers
Author: Studio Indigo
Version: 1.0
Text Domain: cheers
*/

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.6rem;
    line-height: 2.0rem;
    background: #fff;
    color: #000;
    overflow-x: hidden;
}
a {
    color: #3A6D1E;
    text-decoration: underline;
}
a:hover {
    color: #4CA31C;
    text-decoration: none;
}

a:focus,
button:focus,
input:focus {
	border-radius: 5px !important;
	outline: 1px dotted #3A6D1E !important;
}
@media (prefers-reduced-motion: no-preference) {
	:focus {
		background-color: inherit;
		color: inherit;
	}
}

strong, b {
    font-weight: 700;
}


.btn {
    background: #3A6D1E;
    text-decoration: none;
    text-transform: none;
    font-weight: 700;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 12px 20px;
    min-width: inherit;
}
.btn:hover {
    background: #4CA31C;
}
.btn:focus {
    border-radius: 5px !important;
    color: #fff;
}


h1, h2 {
    font-size: 3.8rem;
    line-height: 4.6rem;
    font-weight: 700;
    margin: 2.5rem 0;
    color: #3A6D1E;
}
h3 {
    font-size: 2.4rem;
    line-height: 2.9rem;
    font-weight: 400;
    margin: 2.5rem 0;
}
.home .heroBannerSec h1,
.home .heroBannerSec h2 {
    color: #000;
}


#logoLink {
    margin: 0 0;
    float: left;
}
#logo {
    float: left;
    margin: 10px 0;
	transition: all 0.5s;
	-moz-transition: all 0.5s; /* Firefox 4 */
	-webkit-transition: all 0.5s; /* Safari and Chrome */
	-o-transition: all 0.5s; /* Opera */
}

#page {
    padding-top: 127px;
}

#masthead {
    height: 127px;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
}
#masthead .noMargin {
    margin-top: 5px !important;
}

#menuPrincipale {
    float: right;
    list-style: none;
    margin: 38px 20px 0 0;
    padding: 0;
    font-weight: 700;
}
#menuPrincipale li {
    display: inline-block;
    margin: 0 0 0 15px;
    position: relative;
}
#menuPrincipale li a {
    display: block;
    text-decoration: none;
    padding: 10px 7px;
    color: #000;
}
#menuPrincipale > li:last-child {
    display: none;
}
#menuPrincipale li a:hover,
#menuPrincipale li.current-menu-item a {
    color: #3A6D1E;
}
#menuPrincipale li ul {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 210px;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    top: 70px;
    left: -15px;
}
#menuPrincipale li ul li {
    margin: 0 15px;
    width: calc(100% - 30px);
}
#menuPrincipale li ul::before {
    content: "";
    width: 15px;
    height: 20px;
    display: block;
    position: absolute;
    background: url("assets/images/arrow.svg") no-repeat center center / contain;
    top: -30px;
    left: 45px;
}
#menuPrincipale li ul.menu-lingue::before {
    left: 23px;
}
#menuPrincipale > li > a i {
	background: #000;
	border-radius: 50%;
	padding: 1px;
	color: #fff;
}


#contattaciBtn {
    float: right;
    margin-top: 35px;
}

.green {
    color: #3A6D1E;
}

#colophon {
    background: #F2EFEA;
}
#logoFooter {
    margin-bottom: 50px;
}
#bottom {
    background: #3A6D1E;
    color: #fff;
    text-align: center;
    font-size: 1.3rem;
}
#bottom a {
    color: #fff;
}
/*
#menuSocial {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 3rem;
}
#menuSocial li {
    display: inline-block;
    margin-right: 10px;
}
*/


@media screen and (min-width: 1200px) {
    .home .heroBannerSec {
        aspect-ratio: 1 / 0.469;
    }
}
.heroBannerSec {
    position: relative;
    display: flex;
    min-height: 450px;
    align-items: center;
}
.heroBannerSec .contentInside {
    position: relative;
}
.heroBannerSec::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    z-index: 0;
    background: -webkit-linear-gradient(left, #F2EFEA, transparent);
    background: -o-linear-gradient(left, #F2EFEA, transparent);
    background: linear-gradient(to right, #F2EFEA, transparent);
}
.heroBannerSec .contentInside .column6-12 > p:first-child,
.heroBannerSec .contentInside .column6-12 > h3:first-child {
    margin-top: 0;
}
body:not(.home) .heroBannerSec::before {
    width: 50%;
}

body:not(.home) .heroBannerSec .column6-12 {
    box-sizing: border-box;
    padding-right: 10%;
}

.heroBannerSec.noImage {
    min-height: 140px;
}



.iconeList {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.iconeList li {
    width: calc(50% - 15px);
    text-align: center;
    margin: 20px auto 30px;
}
.iconeList li .iconaBox img {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
}
.iconeList li h3 {
    color: #4CA31C;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 2.6rem;
}
.iconeList li p {
    max-width: 390px;
    margin: 0 auto;
}



.testoFotoSec {
    position: relative;
    min-height: 500px;
    display: flex;
}
.testoFotoSec:not(.inBox) .immagineFT {
    position: absolute;
    width: 50%;
    height: 100%;
    right: 0;
    top: 0;
}
.textFT :first-child {
    margin-top: 0;
}
.testoFotoSec .contentInside {
    display: flex;
    align-items: center;
}
.testoFotoSec.reverse .contentInside {
    flex-direction: row-reverse;
}
.testoFotoSec.reverse .immagineFT {
    right: inherit;
    left: 0;
}
.testoFotoSec.inBox {
    padding: 65px 0;
    min-height: 400px;
}
.testoFotoSec.inBox .imgFT,
.testoFotoSec.inBox .imgFT .immagineFT {
    height: 100%;
}



.wpcf7 {
    max-width: 528px;
    margin: 0 auto;
}
.wpcf7 .left {
    width: calc(50% - 15px);
    float: left;
}
.wpcf7 .right {
    width: calc(50% - 15px);
    float: right;
}
.wpcf7 .center {
    clear: both;
    margin: 14px 0;
}
.wpcf7 p {
    margin: 0;
}
.wpcf7 label {
    margin: 7px 0;
}
.wpcf7 select {
    width: 100%;
    margin-top: 2px;
}
.wpcf7-list-item {
  display: inline-block;
  margin: 2px 0 2px 0;
}
.wpcf7-acceptance {
    font-size: 1.3rem;
    margin: 10px 0;
    display: block;
}
.wpcf7 input[type="submit"] {
    background: #718C44;
    min-width: inherit;
    padding: 12px 20px;
    float: right;
}
.wpcf7 form .wpcf7-response-output {
    clear: both;
    display: block;
    margin: 30px 0;
    text-align: center;
    padding: 20px;
}


.teamSec .contentFlex {
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.teamSec .columnFlex {
    min-width: 346px;
    max-width: 346px;
    text-align: center;
}
.teamSec h2 {
    font-size: 2.4rem;
    line-height: 2.9rem;
    margin-bottom: 10px;
}
.teamSec .mansione {
    color: #3A6D1E;
    min-height: 40px;
}
.imgTeam {
    position: relative;
}
.imgTeam a {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2.8rem;
}



.newsItem {
    display: flex;
    padding: 25px 0;
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
    min-height: 400px;
} /* 
.newsSec .contentInside .newsItem:nth-child(even) {
    flex-direction: row-reverse;
} */
.newsItem .column6-12 {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
}
.imgFT .immagineFT,
.newsItem a {
    height: 100%; /* Allunga l'immagine all'altezza del genitore */
    width: 100%; /* Assicura che riempia tutto lo spazio */
}

.newsItem h1 {
    font-size: 2.4rem;
    line-height: 2.9rem;
}
.newsItem h1 a {
    text-decoration: none;
}


.thumbImg img {
    margin: 0 auto;
}



.wp-pagenavi a,
.wp-pagenavi span {
    padding: 8px 14px;
}






	
@-webkit-keyframes fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}


@-webkit-keyframes slideInFromLeft {
	from {
		transform: translateX(-100px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}
@keyframes slideInFromLeft {
	from {
		transform: translateX(-100px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}


.heroBannerSec {
	animation: fade 2s 0s forwards;
}

.heroBannerSec .column6-12 {
	animation: slideInFromLeft 2s 0s forwards;
}




.digit {
	opacity: 0;
    transition: all 0s ease-out;
}

.editorSec .contentInside.digit {
    transform: translateY(150px);
    transition: all 0.5s ease-out;
}
.editorSec .contentInside.visible {
    opacity: 1;
    transform: none;
}

.editorSec.digit {
    transform: translateY(150px);
    transition: all 0.5s ease-out;
}
.editorSec.digit.visible {
    opacity: 1;
    transform: none;
}


.shortcutBox.digit {
    transform: translateX(-50px);
    transition: all 0.5s ease-out;
}
.shortcutBox.visible {
    opacity: 1;
    transform: none;
}





.iconeList li:nth-child(odd) {
    transform: translateX(-50px);
    transition: all 0.5s ease-out;
}
.iconeList li:nth-child(even) {
    transform: translateX(50px);
    transition: all 0.5s ease-out;
}
.iconeList li.visible {
    opacity: 1;
    transform: none;
}

.textFT {
    transform: translateX(-50px);
    transition: all 0.5s ease-out;
}
.immagineFT {
    transform: translateX(50px);
    transition: all 0.5s ease-out;
}
.textFT.visible,
.immagineFT.visible {
    opacity: 1;
    transform: none;
}



@media screen and (max-width: 790px) {
          
    #burger {
        width: 32px;
        height: 32px;
        float: right;
        margin-top: 20px;
        position: relative;
        z-index: 999;
        clear: right;
    }
    #burger .close {
        display: none;
    }
    #burger.active .open {
        display: none;
    }
    #burger.active .close {
        display: block;
    }
    
    .menu-menu-principale-container {
        height: 100%;
    }
    #navigation {
        position: fixed;
        z-index: 999;
        background: rgba(256, 256, 256, 0.98);
        width: 100%;
        left: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        top: 127px;
        height: calc(100% - 127px);
    }  
    #menuPrincipale {
        display: flex;
        flex-wrap: wrap;
        justify-content: inherit;
        padding: 0;
        margin: 5vh 0;
        list-style: none;
        text-transform: uppercase;
        font-weight: 700;
        height: calc(100% - 20vh);
        vertical-align: middle;
        align-items: center;
        text-align: center;
    }
    #menuPrincipale li {
        width: 100%;
        font-size: 2.0rem;
        padding: 2vw 10vw;
        margin: 0;
    }
    #menuPrincipale li ul {
        position: relative;
        top: inherit;
        width: 100%;
        left: inherit;
        padding: 20px 0 25px;
        text-align: center;
    }
    #menuPrincipale li ul li {
        padding: 1vw 0 0;
    }
    #contattaciBtn {
        display: none;
    }
    #menuPrincipale > li:last-child {
        display: block;
    }
    
    
    .home .heroBannerSec {
        background-position: bottom right !important;
        background-size: 180% !important;
        padding-bottom: 250px !important;
    }
    body:not(.home) .heroBannerSec {
        min-height: 250px;
    }
    body:not(.home) .heroBannerSec::before {
        width: 100%;
    }
    body:not(.home) .heroBannerSec.noImage {
        min-height: 150px;
    }
    
    
    h1, h2 {
        font-size: 3.0rem;
        line-height: 3.4rem;
        margin: 2.0rem 0;
    }
    h3 {
        font-size: 2.1rem;
        line-height: 2.9rem;
        margin: 2.0rem 0;
    }
    .home .heroBannerSec h3 {
        letter-spacing: -0.1rem;
    }
    .iconeList li {
        width: 100%;
    }
    .testoFotoSec {
        min-height: inherit;
        display: block;
    }
    .testoFotoSec .contentInside {
        display: block;
        padding-top: 280px;
    }
    .testoFotoSec:not(.inBox) .immagineFT {
        width: 100%;
        height: 300px;
        right: 0;
        top: 0;
    }
    #bottom {
        padding: 20px 10px;
    }
    
    .spazioSec + .spazioSec {
        display: none;
    }
    .teamSec .mansione {
        min-height: inherit;
        margin: 10px 0;
    }
    .shortcutBox {
        margin-bottom: 60px;
    }
    
    
    .newsItem {
        display: block;
        min-height: inherit;
    }
    .newsItem .column6-12 {
        display: block;
        height: auto;
    }
    .imgFT .immagineFT {
        height: 160px;
    }
    
    
    .testoFotoSec.inBox {
        padding: 35px 0;
        min-height: inherit;
    }
    .testoFotoSec.inBox .imgFT,
    .testoFotoSec.inBox .imgFT .immagineFT {
        height: 300px;
    }
    .testoFotoSec.inBox .contentInside {
        padding-top: 0;
    }
    
    
    .page-id-122 .heroBannerSec + .spazioSec {
        display: none;
    }

    
}

