/*
Theme Name: Hello Child
Template: hello-elementor
Author: Edera digital
Version: 1.0
Description: Child Theme per Hello Elementor
*/

/*HEADER */
body.home #site-header {
    position: absolute !important;
    top: 0 !important;
    z-index: 100 !important;
    left: 0 !important;
}
#site-header {
    width: 100% !important;
    padding-top: 0;
    padding-bottom: 0;
}
#site-header .header-inner {
    justify-content: flex-start;
    align-items: flex-end;
}
#site-header .site-navigation {
    margin-left: 30px;
    margin-right: 30px;
}
body.home:has(#wpadminbar) #site-header {
    top: 20px !important;
}
body.home .site-header .site-navigation ul.menu li a {
    color: #ffffff;
}
body.home #open-search-modal{
    background-color: #77977A;
}
body.home #open-search-modal svg{
    fill: #582D1A;
}
#open-search-modal{
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #582D1A;
    margin-bottom: 8px;
    border-radius: 50%;
    cursor: pointer;
}
#open-search-modal svg{
    fill: #ffffff;
}

/* Stile modale */
.search-modal {
    display: none; /* Nascosta di default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.search-modal .search-form label{
    width: 100%;
}
/* Contenuto modale */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.search-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    max-width: 768px;
}
.search-modal-content form{
    width: 100%;
    position: relative;
}
.search-modal-content form .search-field{
    font-weight: 600 !important;
    font-size: 20px !important;
    padding-right: 40px;
}
.search-modal-content form .search-field:focus{
    outline: none;
}
.search-modal-content form .search-submit{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #582D1A;
    padding: 0;
}

/* Pulsante chiusura */
#close-search-modal {
    color: #ffffff;
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 54px;
    font-weight: bold;
    cursor: pointer;
}
.search-modal-close:hover {
    color: black;
}
/* END HEADER */

/* GENERAL */
.extra_padding {
    padding: 100px;
}
/* END GENERAL */

.mouse .scroll {
    -webkit-animation-name: scroll;
    animation-name: scroll;
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
    -webkit-animation-timing-function: cubic-bezier(0.65, -0.55, 0.25, 1.5);
    animation-timing-function: cubic-bezier(0.65, -0.55, 0.25, 1.5);
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-transform-origin: 50% 20.5px;
    transform-origin: 50% 20.5px;
    will-change: transform, opacity;
    opacity: 1;
}
.swiper-wrapper {
    margin-bottom: 40px;
}
/* SWIPER RISERVA NATURALE */
#riserva-naturale .swiper-button-prev,
#riserva-naturale .swiper-button-next {
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border: 2px solid #77977A;
    display: flex;
    align-items: center;
    justify-content: center;
}
#riserva-naturale .swiper-button-prev:hover,
#riserva-naturale .swiper-button-next:hover {
    background-color: #77977A;
}
#riserva-naturale .swiper-button-prev svg path,
#riserva-naturale .swiper-button-next svg path {
    fill: #77977A;
}
#riserva-naturale .swiper-button-prev:hover svg path,
#riserva-naturale .swiper-button-next:hover svg path {
    fill: #ffffff;
}
#riserva-naturale .swiper-button-prev svg,
#riserva-naturale .swiper-button-next svg {
    width: 8px;
}
/* SWIPER RISERVA NATURALE */

/* SWIPER NEWS EVIDENZA */
#news-evidenza .swiper-button-prev,
#news-evidenza .swiper-button-next {
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
#news-evidenza .swiper-button-prev:hover,
#news-evidenza .swiper-button-next:hover {
    background-color: #ffffff;
}
#news-evidenza .swiper-button-prev:hover svg path,
#news-evidenza .swiper-button-next:hover svg path {
    fill: #77977A;
}
#news-evidenza .swiper-button-prev svg,
#news-evidenza .swiper-button-next svg {
    width: 8px;
}
#news-evidenza h5,
#news-evidenza h6{
    color: #ffffff;
}
#news-evidenza h6{
    padding-bottom: 16px;
    margin-bottom: 8px;
}
#news-evidenza p{
    color: #582D1A;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 16px;
}
#news-evidenza .read-more{
    color: #582D1A;
}
/* SWIPER NEWS EVIDENZA */

/* SWIPER ARTICOLI  */
.article-content .elementor-swiper-button-prev,
.article-content .elementor-swiper-button-next {
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border: 2px solid #77977A ;
    display: flex;
    align-items: center;
    justify-content: center;
    top: unset !important;
    bottom: 0;
    transition: all 0.2s linear;
}
.article-content .elementor-swiper-button-prev svg,
.article-content .elementor-swiper-button-next svg {
    fill: #77977A !important;
    height: 15px !important;
    width: 15px !important;
}
.article-content .elementor-swiper-button-prev:hover,
.article-content .elementor-swiper-button-next:hover {
    border: 2px solid #77977A;
    background-color: #77977A;
}
.article-content .elementor-swiper-button-prev:hover svg,
.article-content .elementor-swiper-button-next:hover svg {
    fill: #ffffff !important;
}
/* END SWIPER ARTICOLI  */
.d-none{
    display: none !important;
}
.elementor-html .d-none{
    display: unset !important;
}
.overflow-hidden{
    overflow: hidden !important;
}
#bus-animate .line1{
    -webkit-animation: linego 1s linear infinite;
    animation: linego 1s linear infinite;
}
/* SINGLE ARTICLE */
.bg-header-single{
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.bg-header-single .inner-content{
    max-width: 1140px;
    margin: auto;
}
.bg-header-single .title-container{
    padding: 48px 15px;
    width: 50%;
}
.bg-header-single .spacer-100{
    width: 100%;
    height: 100px;
}
.bg-header-single .title-container h1{
    font-size: 35px;
}
.bg-header-single .title-container .line{
    width: 100%;
    height: 3px;
    background-color: #ffffff;
}
.article-content{
    max-width: 1360px;
    margin: auto;
    padding: 48px 15px 0 15px;
}
.article-content .article-infos{
    display: flex;
    margin-bottom: 30px;
}
.article-content a{
    color: #77977A;
}
.article-content .article-infos .views{
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.article-content .article-infos .views svg{
    margin-right: 10px;
}
.article-content .article-infos .author a{
    color: #77977A;
}
.tag-container{
    margin-top: 50px;
    display: flex;
    color: #000000;
}
.tag-container .tag-list{
    display: flex;
    flex-wrap: wrap;
    color: #000000;
}
.tag-container .title{
    margin-right: 10px;
}
.tag-container a{
    color: #77977A;
    margin-right: 3px;
    margin-left: 3px;
}
.end-page-line{
    width: 100%;
    height: 3px;
    background-color: #77977A;
    margin-top: 20px;
}
.attached-media{
    margin-top: 40px;
}
/* END SINGLE ARTICLE */

/* CATEGORY PAGE */
.category-posts .post-item{
    margin-bottom: 40px;
}
.category-posts .post-item a{
    color: #77977A;
}
.child-category-item .title {
    margin-bottom: 40px;
}
.child-category-item .title a{
    color: #77977A;
}
/* END CATEGORY PAGE */

/* ERROR PAGES */

.error-page .category-posts .post-item{
    text-align: center;
}
.error-page .search-seciton-cont form {
    display: flex;
}
.error-page .search-seciton-cont label {
    width: 100%;
}
.error-page .search-seciton-cont label input{
    border-bottom: 3px solid #582D1A !important;
    color: #582D1A !important;
    font-size: 22px !important;
}
.error-page .search-seciton-cont label input:focus{
    outline: none;
}
.error-page .search-seciton-cont .search-submit {
    background-color: #77977A;
    border-radius: 50%;
}
/* END ERROR PAGES */

/* CONTACT FORM 7 */
.wpcf7 form label{
    width: 100%;
}
.wpcf7 form p:has(.wpcf7-submit){
    margin-top: 25px;
    text-align: end;
}
.wpcf7 form .wpcf7-submit{
    min-width: 150px;
}
/* END CONTACT FORM 7 */

/* PAGINATION */
.navigation .nav-links {
    display: flex;
    align-items: center;
}
.navigation .nav-links .page-numbers:not(.next):not(.prev) {
    background-color: #77977A;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    color: #ffffff;
    font-weight: 800;
    transition: all 0.2s linear;
    border: 2px solid transparent;
}
.navigation .nav-links .page-numbers:not(.next):not(.prev):not(.current):hover {
    background-color:  #582D1A;
    text-decoration: none;
}
.navigation .nav-links .page-numbers.current:not(.next):not(.prev) {
    color: #582D1A;
    border-color: #582D1A;
}
.navigation .nav-links .page-numbers.prev {
    margin-right: 10px;
}
.navigation .nav-links .page-numbers.prev,
.navigation .nav-links .page-numbers.next {
    border: 2px solid #77977A;
    padding: 5px 10px;
    border-radius: 32px;
    font-weight: 700;
    color: #77977A;
    transition: all 0.2s linear;
}
.navigation .nav-links .page-numbers.prev:hover,
.navigation .nav-links .page-numbers.next:hover {
    background-color:  #77977A;
    color: #ffffff;
    text-decoration: none;
}
/* END PAGINATION */

/* FOOTER */
.whatsapp-link {
    background-color: #77977A;
    color: white;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 15px;
    right: 58px;
    z-index: 9999;
    border-radius: 50px;
    transition: all 0.2s linear;
}
.whatsapp-link:hover{
    background-color: #77977A;
    color: white !important;
    transform: scale(1.10);
}
.newsletter-section{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.newsletter-section .newsletter-footer-title{
    padding-bottom: 24px;
    margin-bottom: 8px;
}
.contact-section{
    width: 100%;
    background-color: #77977A;
}
.contact-section .line-divider{
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    margin-bottom: 28px;
}
.contact-section .inner-content{
    width: 100%;
    display: flex;
}
.contact-section .inner-content .contact-col,
.contact-section .inner-content .social-col{
    width: 50%;
}
.contact-section .inner-content .contact-col h2{
    color: #ffffff;
}
.contact-section .inner-content p{
    color: #ffffff;
}
.contact-section .inner-content a{
    color: #ffffff;
}
.contact-section .inner-content a:hover{
    color: #582D1A;
}
.contact-section .inner-content .social-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.contact-section .inner-content .social-col h2{
    color: #ffffff;
}
.contact-section .inner-content .social-col .social-icons{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 15px;
}
.contact-section .inner-content .social-col .social-icons .social-icon {
    background: white;
    color: #77977A;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 22px;
    margin-left: 5px;
    transition: all 0.2s linear;
}
.contact-section .inner-content .social-col .social-icons .social-icon {
    background: #ffffff;
    color: #77977A;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 22px;
    margin-left: 5px;
}
.contact-section .inner-content .social-col .social-icons .social-icon:hover{
    background: #582D1A;
}
.footer-copyright{
    margin-top: 45px;
    padding-top: 8px;
    padding-bottom: 50px;
    border-top: 3px solid #77977A;
    text-align: center;
    color: #77977A;
}
.footer-copyright a{
    color: #77977A;
}
.footer-copyright a:hover{
    color: #582D1A !important;
}
#pec_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}
#pec_modal .inner-container {
    background: #77977A;
    padding: 20px 40px;
    border-radius: 10px;
    border: 5px solid #ffffff;
    max-width: 768px;
    margin: auto;
    text-align: center;
    color: #ffffff;
}
#pec_modal .inner-container .title{
    color: #ffffff;
}
#pec_modal .inner-container #pec_address{
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}
#pec_modal .inner-container #closeModal{
    color: #ffffff;
}
#pec_modal .inner-container #closeModal:hover{
    color: #582D1A;
}
/* FOOTER */
/* >992px */
@media (min-width: 1270px) {
    #menu-header-menu .sub-menu .inner-sub{
        max-width: 1270px;
        border-left: 2px solid #dcdcdc;
        border-right: 2px solid #dcdcdc;
    }
}
@media (min-width: 992px) {
   #site-header{
       transition: background-color 0.2s linear;
   }
    body.home #site-header:has(.menu-item.menu-item-has-children:hover) .sub-menu{
       background-color: transparent;
   }
    body.home #site-header:has(.menu-item.menu-item-has-children:hover) .sub-menu .inner-sub{
        background: #77977A;
        opacity: 0.8;
   }
    body.home #site-header:has(.menu-item.menu-item-has-children:hover) .sub-menu .inner-sub a{
        color: #ffffff !important;
   }
   #site-header:has(.menu-item.menu-item-has-children:hover){
       background-color: #ffffff;
   }
   #site-header:has(.menu-item.menu-item-has-children:hover) .menu-item.menu-item-has-children a{
       position: relative;
   }
   #site-header:has(.menu-item.menu-item-has-children:hover) .menu-item.menu-item-has-children:hover a:before{
       content: "";
       position: absolute;
       bottom: calc(-50% - 5px);
       left: 50%;
       transform: rotate(45deg) translate(-50%, -50%);
       width: 20px;
       height: 20px;
       background-color: #ffffff;
       z-index: 101;
   }
    #site-header:has(.menu-item.menu-item-has-children:hover) .menu-item.menu-item-has-children :not(.menu-item.menu-item-has-children) a:before{
        content: none;
    }
   #site-header:has(.menu-item.menu-item-has-children:hover) a{
       color: #582D1A !important;
   }
   #site-header:has(.menu-item.menu-item-has-children:hover) a{
       color: #582D1A !important;
   }

    #site-header:has(.menu-item.menu-item-has-children:hover) ul.menu li.menu-item-has-children:after {
        border-color: #582D1A;
    }
    .site-navigation ul.menu li.menu-item-has-children:after {
        content: "" !important;
        display: inline-block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #582D1A;
        border-bottom: 2px solid #582D1A;
        align-self: center;
        transform: rotate(45deg) translate(-10px, 5px);
        margin-left: 8px;
        vertical-align: middle;
    }
    body.home .site-navigation ul.menu li.menu-item-has-children:after {
        border-right: 2px solid white;
        border-bottom: 2px solid white;
    }
    body:not(.home) #site-header:has(.menu-item.menu-item-has-children:hover) .sub-menu .inner-sub{
        border: 2px solid #eaeaea;
    }
    #site-header:has(.menu-item.menu-item-has-children:hover) .sub-menu .inner-sub a{
        color: #77977A !important;
    }
    #menu-header-menu .sub-menu{
        width: 100vw;
        background-color: #E5E5E5;
        z-index: 100;
    }
    #menu-header-menu .menu-item.menu-item-has-children{
        position: unset;
    }
    #menu-header-menu .sub-menu .inner-sub{
        max-width: 975px;
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        padding: 48px 0;
        background-color: #E5E5E5;
        border-left: 0;
        border-right: 0;
    }
    #menu-header-menu .sub-menu .inner-sub .menu-item{
        width: 33.33%;
        padding: 20px 12px;
        border: none;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    #menu-header-menu > .menu-item:nth-child(5) .sub-menu .inner-sub .menu-item{
        width: 25%;
    }
    #menu-header-menu .sub-menu .inner-sub .menu-item a{
        color: #77977A;
    }
}
@media (max-width: 1300px) {
    .site-navigation {
        margin: 0 !important;
    }
    #menu-header-menu > li:not(.sub-menu li) > a {
        padding: 8px 12px !important;
    }
}
@media (max-width: 1200px) {
    #site-header .header-inner {
        justify-content: space-between;
        align-items: flex-end;
    }
    #menu-header-menu > li:not(.sub-menu li) > a {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    .site-navigation ul.menu li.menu-item-has-children {
        padding-inline-end: 0 !important;
    }
    #site-header {
        padding-left: 0;
    }
    .site-logo {
        width: 200px !important;
    }
    .site-logo img{
        width: 240px !important;
    }

}
@media (max-width: 992px) {
    #site-header{
        background-color: #ffffff;
    }
    .site-navigation-toggle-holder{
        margin-left: auto;
    }
    .site-navigation-toggle-holder .site-navigation-toggle {
        border: 2px solid #77977A !important;
        border-radius: 50% !important;
        width: 50px;
        height: 50px;
    }
    .site-navigation-toggle-holder .site-navigation-toggle-icon:before {
        box-shadow: none !important;
        margin-block-end: .5rem;
    }
    .site-navigation-toggle-holder .site-navigation-toggle-icon:after,
    .site-navigation-toggle-holder .site-navigation-toggle-icon:before {
        display: block;
        height: 3px;
        border-radius: 3px;
    }
    .site-navigation-dropdown ul.menu li a {
        background: #77977A !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }
    .site-navigation-dropdown ul.menu li.current_page_item a ,
    .site-navigation-dropdown ul.menu li.current-menu-item a {
        background: #582D1A !important;
    }
    .site-navigation-dropdown ul.menu li.current-menu-ancestor a{
        -webkit-box-shadow: inset 5px 0px 0px 0px #582D1A !important;
        box-shadow: inset 5px 0px 0px 0px #582D1A !important;
    }
    .site-navigation-dropdown ul.menu li.current-menu-ancestor :not(.sub-menu) a{
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }
    .site-navigation-dropdown ul.menu li.menu-item.menu-item-has-children:after {
        content: '';
        position: absolute;
        top: 18px;
        right: 20px;
        width: 10px;
        height: 10px;
        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        transform: rotate(45deg);
        margin: 5px;
        z-index: 100;
        transition: all 0.2s linear;
    }
    .site-navigation-dropdown ul.menu li.menu-item.menu-item-has-children.elementor-active:after {
        top: 22px;
        transform: rotate(225deg);
    }
    .menu-header-menu-container .menu-item.menu-item-has-children.elementor-active .sub-menu {
        padding-left: 40px;
        background-color: #77977A;
    }
    .menu-header-menu-container .menu-item.menu-item-has-children.elementor-active .inner-sub li {
        transform: scaleY(1);
        max-height: unset;
    }
    .menu-header-menu-container .menu-item.menu-item-has-children.elementor-active .inner-sub li a{
        background-color: #77977A;
        color: #ffffff ;
    }
    #open-search-modal {
        width: 50px;
        height: 50px;
    }
    #open-search-modal svg{
        width: 20px;
        height: 20px;
    }
    #open-search-modal svg path{
        fill: #ffffff;
    }
}

@media (max-width: 767px) {

    .extra_padding {
        padding: 30px;
    }
    #bus-animate {
        bottom: unset;
        top: 107px;
    }
    #news-evidenza .swiper-wrapper {
        padding-bottom: 20px;
    }
    #news-evidenza .swiper-button-prev{
        left: calc(50% - 60px) !important;
        transform: translateX(-50%);
    }
    #news-evidenza .swiper-button-next {
        left: calc(50% + 60px) !important;
        transform: translateX(-50%);
    }
    .bg-header-single .inner-content {
        display: flex;
        justify-content: center;
        padding: 0 30px;
    }
    .bg-header-single .title-container {
        padding: 48px 0;
        width: 540px;
    }
    .bg-header-single .spacer-100{
        display: none;
    }
    .article-content .article-infos {
        padding: 0 24px;
    }
}
@media (max-width: 575px) {

    #riserva-naturale .swiper-button-prev{
        left: calc(50% - 60px) !important;
        transform: translateX(-50%);
    }
    #riserva-naturale .swiper-button-next {
        left: calc(50% + 60px) !important;
        transform: translateX(-50%);
    }
    .bg-header-single .title-container h1 {
        font-size: 22px;
    }
    /* FOOTER */
    .contact-section .inner-content {
        flex-direction: column;
    }
    .footer-contact-title{
        text-align: center;
    }
    .contact-section .inner-content .contact-col,
    .contact-section .inner-content .social-col{
        width: 100%;
    }
    .contact-section .inner-content .social-col {
        align-items: center;
        border-top: 3px solid #ffffff;
        margin-top: 25px;
    }
    .contact-section .inner-content .social-col .social-icons {
        justify-content: space-evenly;
        margin-bottom: 30px;
    }
    /* END FOOTER */
}
@media (max-width: 400px) {
    #open-search-modal {
        width: 40px;
        height: 40px;
    }
    #open-search-modal svg{
        width: 20px;
        height: 20px;
    }
    .site-navigation-toggle-holder .site-navigation-toggle {
        width: 40px;
        height: 40px;
    }
}


@keyframes scroll {
    0%, 20% {
        transform: translateY(0) scaleY(1);
    }

    100% {
        transform: translateY(36px) scaleY(2);
        opacity: 0;
    }
}

@keyframes linego {
    0% {
        bottom: 0%;
    }
    100% {
        bottom: 50%;
    }
}