/*
Theme Name: Gholding
Text Domain: Gholding
Version: 1.34
*/
:root {
    --orange: #FCAF23;
    --gray: #6D6E70;
}

* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

html {
    scroll-behavior: smooth;
    font-size: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--orange);
}

p {
    margin-bottom: 1em;
}

h1 {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0;
    text-transform: uppercase;
}

h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0.7em;
    line-height: 1.1;
    position:relative;
}

h3 {
    font-size: 20px;
    margin-bottom: 0.8em;
}
h4{
    font-weight:normal;
    margin-bottom:1em;
}
h5{
    font-size:18px;
    font-weight:bold;
    margin-bottom: 10px;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    color: #6d6e70;
    background: #f2f2f2;
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1170px;
    padding: 0 20px;
    margin: auto;
}

/*menu btn*/
.m-menu {
}

.m-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--orange);
    opacity: 1;
    right: 0;
    border-radius: 2px;
}

.m-menu span:nth-child(1) {
    top: 0;
}

.m-menu span:nth-child(2) {
    top: 8px;
}

.m-menu span:nth-child(3) {
    top: 16px;
}

.m-menu {
    transform: rotate(0);
    transition: 0.5s ease-in-out;
    cursor: pointer;
    z-index: 11;
    position: absolute;
    right: 15px;
    top: 26px;
    display: none;
    text-align: right;
    width: 25px;
}
.m-menu:before{
    width:50px;
    height:50px;
    content:'';
    display:block;
    position:absolute;
    left:-10px;
    top:-15px;
}

.m-menu span {
    transform: rotate(0);
    transition: 0.25s ease-in-out;
}

.mm-open .m-menu span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.mm-open .m-menu span:nth-child(2) {
    opacity: 0;
    right: 60px;
}

.mm-open .m-menu span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}
.mm-open .m-menu:before{
}

#header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 11;
    padding: 20px 0;
    transition:all 0.3s ease;
    background: #fff;
}
.custom-logo{
    width: 145px;
}
#header .container{
    display:flex;
    gap: 50px;
    align-items: center;
}
#header li{
    display:block;
}
#header ul.menu{
    display:flex;
    font-size:15px;
}
#header nav a{
    font-weight:bold;
    color:var(--gray);
    text-transform: uppercase;
    white-space: nowrap;
}
#header nav li.current-menu-item>a,
#header nav li:hover>a{
    color:var(--orange);
}
.is-style-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap: 15px;
}
.main{
    padding-top: 140px;
}
.home .main{
    padding-top:90px;
}
.is-style-hero{
    position:relative;
    padding-top: 40px;
    padding-bottom: 70px;
}
.is-style-hero:before{
    content:'';
        background-color:var(--orange);
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:400px;
    clip-path: polygon(0 61%, 100% 0, 100% 100%, 0% 100%);
}
.is-style-hero>div{
    position:relative;
}
.is-style-hero h2{
    font-size: 33px;
    color:#424242;
	margin-bottom: 140px !important;
}
.is-style-hero .wp-block-cover{
    width:100%;
    padding-top: 100%;
    min-height: 0;
}
.is-style-hero .wp-block-cover__inner-container{
    position:absolute;
    padding: 0 20px;
    bottom: 20px;
    font-size: 18px;
}

/*swiper*/
.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
  }
  .swiper-vertical > .swiper-wrapper {
    flex-direction: column;
  }
  .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box;
  }
.block-editor-iframe__body .swiper-wrapper{
    flex-direction:column;
}
  .swiper-android .swiper-slide,
  .swiper-ios .swiper-slide,
  .swiper-wrapper {
    transform: translate3d(0px, 0, 0);
  }
  .swiper-horizontal {
    touch-action: pan-y;
  }
  .swiper-vertical {
    touch-action: pan-x;
  }
  .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
  }
  .swiper-slide-invisible-blank {
    visibility: hidden;
  }
  /* Auto Height */
  .swiper-autoheight,
  .swiper-autoheight .swiper-slide {
    height: auto;
  }
  .swiper-autoheight .swiper-wrapper {
    align-items: flex-start;
    transition-property: transform, height;
  }
  .swiper-backface-hidden .swiper-slide {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }


.story{
    position:relative;
    padding-top: 22px;
    text-align:center;
    margin-top: 40px;
}
.story:before{
    content:'';
        position:absolute;
    display:block;
    top:30px;
    left:0;
    right:0;
    height:6px;
    background-color:var(--orange);
}
.story h3{
    color:var(--gray);
    font-size:28px;
    position:relative;
    padding-top: 41px;
    margin-bottom: 10px;
}
.story h4{
    font-weight:bold;
    color:var(--gray);
    font-size:20px;
}
.story h3:before{
    content:'';
    position:absolute;
    display:block;
    width:26px;
    height:26px;
    background:#fff;
    border: 8px solid var(--orange);
    border-radius:50%;
    top:-10px;
    left:50%;
    margin-left: -17px;
}
.story .swiper-slide{
    max-width:700px;
    text-align:center;
    cursor: pointer;
	    margin: 0 auto;
}
.story p{
    text-transform:uppercase;
    color:var(--gray);
    font-weight:bold;
    padding:30px 20px 0;
}

ul.order{
    text-align:center;
    font-weight:bold;
    color:var(--gray);
    height:30px;
    z-index: 3;
    position:relative;
    display: flex;
    flex-direction: column;
}
ul.order li{
    padding:10px;
    display: none;
    background-color:#f2f2f2;
    cursor: pointer;
    justify-content: center;
    gap: 10px;
    order: 11;
}
ul.order li.active{
    display: flex;
    cursor: initial;
    order: 0;
}
ul.order li.active:after{
    content:'';
    display:block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 192'%3E%3Cpath fill='%236d6e70' d='M176,192c-4.09,0-8.19-1.56-11.31-4.69L4.69,27.31C-1.56,21.06-1.56,10.94,4.69,4.69s16.38-6.25,22.62,0L176,153.38,324.69,4.69c6.25-6.25,16.38-6.25,22.62,0s6.25,16.38,0,22.62L187.31,187.31c-3.12,3.12-7.22,4.69-11.31,4.69h0Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    width: 15px;
    height: 21px;
    margin-right: -20px;
}
ul.order:hover li{
    display: flex;
}
ul.order li:not(.active):hover{
    color:var(--orange);
}
.block-editor-iframe__body ul.order li{
    display:block;
}

.wpcf7 {
    border-radius:50px;
    background-color:#424242;
    padding: 70px 90px 20px;
    margin-top: 50px;
}
.wpcf7 h2{
            text-align:center;
            font-size: 35px;
            font-weight: bold;
            color: #fff;
    margin-bottom:1.5em;
}
.crow{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}
.wpcf7 input{
    width:100%;
    height:50px;
    font-weight:bold;
    font-size:18px;
    padding:0 20px;
    border:none;
    margin-bottom:30px;
    max-width:600px;
}
.wpcf7 textarea{
    padding:20px;
    font-weight:bold;
    font-size:18px;
    width:100%;
    height:200px;
    margin-bottom:30px;
}
.wpcf7-form-control-wrap{
    display:block;
}
.wpcf7 input.wpcf7-submit{
    width:200px;
    margin:auto;
    display:block;
    border-radius:40px;
    border:2px solid var(--orange);
    background-color:transparent;
    color:var(--orange);
    font-size:16px;
}


.wp-block-post-template{
    gap:30px 60px;
}

li.wp-block-post{
    display:flex;
    flex-direction:column;
    border-bottom: 1px solid #D9D9D9;
    padding: 0px 0 30px 0;
    position: relative;
    gap: 20px;
}
li.wp-block-post:before{
    content:'';
    display:block;
    position:absolute;
    left:-30px;
    top:0;
    bottom:30px;
    width:1px;
    background:#D9D9D9;
}
a.wp-block-read-more{
    margin-top:auto;
    border:2px solid var(--orange);
    padding:15px 40px;
    border-radius:50px;
    font-weight:bold;
    font-size:14px;
    margin-left: auto;
    margin-right: auto;
}
a.wp-block-read-more:hover{
    background:var(--orange);
    color:#333;
}
.wp-block-post-date{
    font-size:16px;
    font-weight: 500;
    color:var(--gray);
    margin-bottom: 10px;
}
h3.wp-block-post-title, h3.wp-block-post-title a{
    color:var(--gray);
    text-transform:uppercase;
    font-size: 18px;
    line-height:1.1em;
}
h3.wp-block-post-title a:hover{
    color:var(--orange);
}

li.wp-block-post:nth-child(4n+1):before{
    display:none;
}
.wp-block-post-excerpt{
    margin-top:-20px;
}
.post_header{
    text-align:center;
    padding-bottom:50px;
}
.single-post-content{
    padding-bottom:50px;
}
.post_header h5{
        color:var(--orange);
}
.single h1{
    font-weight:900;
    margin-bottom:0.5em;
}


.wheel{
    width: 75vh !important;
    position:relative;
    max-width: 800px !important;
    height: 75vh;
    max-height: 800px;
    margin-bottom: 50px !important;
}
.wheel .wp-block-cover__image-background{
    position:absolute;
    left:0;
    top:0;
    right: 0;
    bottom: 0;
    display: block;
    animation: rotate 80s linear infinite;
    width: 100%;
}
.wheel .wp-block-cover__inner-container{
    /* position:absolute; */
    text-align: center;
}
.wheel .wp-block-cover__inner-container img{
    width: 59%;
    margin-bottom: 20px;
}
.wheel .wp-block-cover__background{
    display:none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}












.swiper-wrapper {
    display: inline-block;
    transition: transform 0.5s ease-in-out;
}
.reverse-animation {
}



.wp-element-button:hover, .wp-block-button__link:hover{
        background-color:var(--orange);
    color:#222;
}




.footer{
    font-weight:bold;
    color:#222;
    padding: 70px 0;
    background: #fff;
}
.footer a{
    color:#222;
}
.footer a:hover{
    color:var(--orange);
}
.footer ul{
    margin-top:40px;
    border-left:5px solid #d9d9d9;
    padding:10px 0 10px 30px;
}
.footer li{
    font-size:25px;
    display:block;
    line-height:1.8em;
}
    .fborder{
        border-left:5px solid #d9d9d9;
        padding:10px 0 10px 30px;
    }
.flink{
    font-size:13px;
    padding-top:50px;
}
iframe{max-width:100%}
.date{font-weight:600; color:var(--orange);}
.page-numbers{border:1px solid var(--orange); padding:3px; display: inline-block; margin:5px; min-width:25px;text-align:center;border-radius:3px;}
.page-numbers.current{background-color:var(--orange);}
.wp-block-query-pagination{padding-top:30px}

@media(max-width:1100px){
    #header nav{
        position:absolute;
        left:0;
        right:0;
        top:100%;
        background-color:#fff;
        padding:20px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    .mm-open #header nav{
        opacity:1;
        visibility:visible;
        pointer-events:all;
    }
    #header ul.menu{
        flex-direction:column;
        gap:15px;
    }
    .m-menu{
        display:block;
    }
}


@media(max-width:767px){
    h1{
        font-size:35px;
    }
    #header{
        padding:10px 0;
    }
    .footer li{
        font-size:20px;
    }
    .footer ul,
    .fborder{
        border-width:2px;
    }
    .home .main{
        padding-top:40px;
    }
    .story .swiper-slide{
        max-width:70vw;
    }
    .story p{
        font-size:12px;
    }
    .wheel{
        width: 90vw !important;
        height: 90vw;
        align-items: center;
        padding: 0;
    }
    li.wp-block-post:before{
        display:none;
    }
    .wheel .wp-block-cover__image-background{
        width:90vw;
        height:90vw;
    }
    .wpcf7{
        padding: 40px 20px 20px;
        border-radius:20px;
    }
    .wpcf7 h2{
        font-size:16px;
    }
    .crow{
        grid-template-columns:1fr;
        gap: 0;
    }
}


.riga-casa {max-width: 1200px;margin: 0 auto;}



/* Stile di base per il menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
}

/* Nasconde il sottomenu */
nav ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff; /* Cambia il colore di sfondo secondo le tue esigenze */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Mostra il sottomenu al passaggio del mouse */
nav ul li:hover > ul.sub-menu {
    display: block;
}

/* Stile per i link nel sottomenu */
nav ul li ul.sub-menu li {
    display: block;
}

nav ul li ul.sub-menu li a {
    padding: 10px;
    white-space: nowrap;
    color: var(--gray);
}

nav ul li ul.sub-menu li a:hover {
    color: var(--orange);
}

@media (max-width: 1100px) {
    #header nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background-color: #fff;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    .mm-open #header nav {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    #header ul.menu {
        flex-direction: column;
        gap: 15px;
    }
    .m-menu {
        display: block;
    }

    /* Modifica per i dispositivi mobili */
    nav ul li {
        display: block;
    }

    nav ul li ul.sub-menu {
        position: relative;
        top: 0;
        box-shadow: none;
    }

    nav ul li:hover > ul.sub-menu {
        display: none; /* Disabilita l'hover su mobile */
    }

    nav ul li > a:focus + ul.sub-menu,
    nav ul li > a:active + ul.sub-menu {
        display: block;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 35px;
    }
    #header {
        padding: 10px 0;
    }
    .footer li {
        font-size: 20px;
    }
    .footer ul,
    .fborder {
        border-width: 2px;
    }
    .home .main {
        padding-top: 40px;
    }
    .story .swiper-slide {
        max-width: 70vw;
    }
    .story p {
        font-size: 12px;
    }
    .wheel {
        width: 90vw !important;
        height: 90vw;
        align-items: center;
        padding: 0;
    }
    li.wp-block-post:before {
        display: none;
    }
    .wheel .wp-block-cover__image-background {
        width: 90vw;
        height: 90vw;
    }
    .wpcf7 {
        padding: 40px 20px 20px;
        border-radius: 20px;
    }
    .wpcf7 h2 {
        font-size: 16px;
    }
    .crow {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


