.elementor-kit-6{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1920px;}.e-con{--container-max-width:1920px;--container-default-padding-top:0px;--container-default-padding-right:0px;--container-default-padding-bottom:0px;--container-default-padding-left:0px;}.elementor-widget:not(:last-child){--kit-widget-spacing:0px;}.elementor-element{--widgets-spacing:0px 0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//* ANIMAZIONI .......*/

@keyframes kdlnSlideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Classe base per Intersection Observer */
.kdln-animate {
    opacity: 0;
    transform: translateY(180px);
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.kdln-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide da destra */
.kdln-slideinright {
    animation: kdlnSlideInRight 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Delay */
.kdln-delay-1 { animation-delay: 0.1s; }
.kdln-delay-2 { animation-delay: 0.2s; }
.kdln-delay-3 { animation-delay: 0.3s; }
.kdln-delay-4 { animation-delay: 0.4s; }
.kdln-delay-5 { animation-delay: 0.5s; }

/* Editor Elementor — tutto visibile */
.elementor-editor-active .kdln-animate,
.elementor-editor-active .kdln-slideinright {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* ============================================
   HEADER BASE
   ============================================ */
    #header-main {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        background: hsla(0, 0%, 90%, .35) 0 0 no-repeat padding-box;
        transition: background-color 0.4s ease, height 0.4s ease;
        /* overflow: hidden !important; */
        height: 92px;
        max-height: 100vh;
    }
    
    #header-main::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }
    
    #header-main.header-scrolled {
        background: hsla(0, 0%, 90%, .35) 0 0 no-repeat padding-box;
    }
    
    #header-main.header-scrolled::before {
        opacity: 1;
    }
    
    #header-main.panel-open {
        background: hsla(0, 0%, 90%, .35) 0 0 no-repeat padding-box;
        height: auto !important;
    }
    
    /* Submenu → forza 100vh */
    #header-main.submenu-open {
        height: 100vh !important;
    }
    
    /* Search → altezza auto */
    #header-main.search-open {
        height: auto !important;
    }
    
    #header-main.panel-open::before {
        opacity: 1;
    }

/* ============================================
   PANNELLO GENERICO (submenu + search)
   ============================================ */
    .header-panel {
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
        padding: 30px 0 40px 0;
    }
    
    .header-panel.panel-visible {
        opacity: 1;
        pointer-events: all;
    }
    
/* ============================================
   SUBMENU
============================================ */
    #header-second_col .top-menu-margin{
        padding-top: 25px !important;
    }
    
    #header-second_col .sub-menu{
        margin-left: -8px !important;
    }
    
    #header-second_col .elementor-nav-menu--dropdown {
        z-index: 9999 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    /* Underline animato sui link del submenu */
    #header-second_col .elementor-nav-menu--dropdown .elementor-sub-item,
    #header-second_col .elementor-item{
        position: relative;
        display: inline-block;
        text-decoration: none;
    }
    
    #header-second_col .elementor-nav-menu--dropdown .elementor-sub-item::after, 
    #header-second_col .elementor-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
    background-image: linear-gradient(#000000, #000000) !important;
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #header-second_col .elementor-nav-menu--dropdown .elementor-sub-item:hover::after,
     #header-second_col .elementor-item:hover::after {
       background-size: 100% 2px;
    }
    
    .elementor-widget-nav-menu .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:after {
        background-color: transparent !important;
    }
    
    /* Blocca apertura hover SmartMenus quando header è chiusa */
    #header-second_col .sub-menu {
        display: none !important;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    #header-second_col .sub-menu.sm-open {
        display: block !important;
        opacity: 0;
        transition: opacity 0.4s ease !important;
        pointer-events: none;
    }
    
    #header-second_col .sub-menu.sm-visible {
        opacity: 1 !important;
        pointer-events: all;
    }
        

/* OTTIMIZZAZIONE HEADER ------------------ */

        @media screen and (max-width: 1330px) and (min-width: 1025px){
            
            #header-first_col { width: 20%; }
            #header-third_col { width: 10%; }
            #header-second_col { width: 70%; }
            
            #main-menu_block {
                left: 50% !important;
                margin-left: -298px !important;
            }
        
            /* Search allineata orizzontalmente al main menu */
            #search-panel {
                margin-left: auto;
                margin-right: auto;
                width: 552px !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                left: 37px;
            }
        }



/* ============================================
   SEARCH PANEL
   ============================================ */
   
        #search-icon-btn {
            cursor: pointer;
        }
        
        #search-panel {
            position: relative;
            z-index: 10000;
            padding: 30px 0 40px 0;
        }
        
        #search-input-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        #search-input {
            width: 100%;
            background: transparent;
            border: none;
            border-bottom: 2px solid #000;
            outline: none;
            font-family: "Neue Haas Unica W1G Medium", Sans-serif;
            font-size: 20px;
            font-weight: 600;
            line-height: 30px;
            border-radius: 0;
            color: #000;
        }
        
        #search-input::placeholder {
            color: #999;
            text-transform: uppercase;
        }
        
        #search-results {
            margin-top: 40px;
            list-style: none;
            padding: 0;
            width: 100%;
            max-height: calc(100vh - 250px);
            overflow-y: auto;
        }
        
        #search-results li {
            border-bottom: 2px solid rgba(0,0,0,1);
        }
        
        #search-results li a {
            display: block;
            padding: 8px 0;
            color: #000;
            font-family: "Neue Haas Unica W1G Medium", Sans-serif;
            font-size: 20px;
            font-weight: 600;
            line-height: 30px;
            text-decoration: none;
            transition: opacity 0.2s ease;
        }
        
        #search-results li a:hover {
            opacity: 0.5;
        }
        
        #search-results .search-no-results {
            padding: 8px 0;
            color: #999;
            font-family: "Neue Haas Unica W1G Medium", Sans-serif;
            font-size: 20px;
            font-weight: 600;
            line-height: 30px;
        }
        

/* Popup mobile - animazioni custom */
    .popup-menu a:focus,
    .popup-menu img:focus,
    .popup-menu .elementor-widget-image a:focus {
        outline: none !important;
    }

    .popup-menu .dialog-widget-content {
        animation: none !important;
    }
    
    .popup-menu.elementor-popup-entrance #close-popup-btn,
    .popup-menu.elementor-popup-entrance #primary-mmenu-container,
    .popup-menu.elementor-popup-entrance #secondary-mmenu-container {
        animation: popupFadeIn 0.5s ease forwards;
    }
    
    .popup-menu.elementor-popup-exit #close-popup-btn,
    .popup-menu.elementor-popup-exit #primary-mmenu-container,
    .popup-menu.elementor-popup-exit #secondary-mmenu-container {
        animation: popupFadeOut 0.5s ease forwards;
    }
    
    @keyframes popupFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    
    @keyframes popupFadeOut {
        from { opacity: 1; }
        to   { opacity: 0; }
    }
    
      /* Nascondi sul desktop */
        @media screen and (min-width: 1025px) {
            #close-popup-btn {
                display: none !important;
            }
        }   


    /* Nascondi di default sul mobile, appare solo quando popup è aperto */
        @media screen and (max-width: 1024px) {
            
        
            
            #header-main.popup-is-open::before {
                opacity: 1 !important;
            }
        
            
            #hamburger-btn {
                transition: opacity 0.35s ease;
            }
            
            .popup-is-open #hamburger-btn{
                opacity: 0 !important;
                pointer-events: none !important;
            }
        }

    
/* MOBILE MENU ---------------- */

    #mobile-menu .sub-menu{
        position: relative !important;
        margin: 16px 0 16px 54px !important;
        padding: 0 !important;
        background-color: transparent !important;
    }
    
    #mobile-menu .sub-menu .top-menu-margin{
        margin-top: 26px;
    }
    
    #mobile-menu .sub-menu .top-menu-margin.no-top-mobile{
        margin-top: 0 !important;
    }

    #mobile-menu .sub-menu .bottom-margin-mobile{
        margin-bottom: 40px;
    }
    
    #mobile-menu a{
        display: inline-block;
    }


    #mobile-menu .elementor-nav-menu li{
        line-height: 39px;
    }
    
    
   /* #mobile-menu a{
        display: inline-block;
        padding: 0;
        margin-left: 5px;
    } 
    
   #mobile-menu .highlighted > a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #000000;
        opacity: 1;
        transition: opacity 0.25s ease;
    } */
    
#mobile-menu a {
    display: inline-block;
    padding: 0;
    margin-left: 5px;
    position: relative;
    padding-bottom: 2px;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu a:hover {
    background-size: 100% 2px;
}
    
    /* 
        #mobile-menu .highlighted > a {
            display: inline;
            position: relative;
            padding-bottom: 2px;
            background-image: linear-gradient(currentColor, currentColor);
            background-size: 0% 2px;
            background-repeat: no-repeat;
            background-position: left bottom;
            transition: background-size 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        #mobile-menu .highlighted > a {
            background-size: 100% 2px;
        } 
    
    */


    /* Blocca animazione nativa SmartMenus nel menu mobile */
    #mobile-menu .sub-menu {
        display: block !important;
        max-height: 0;
        overflow: hidden !important;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease !important;
        position: relative !important;
        left: auto !important;
        margin-left: 65px !important;
        margin-top: 0 !important;
        min-width: unset !important;
        max-width: unset !important;
        width: auto !important;
    }
    
    #mobile-menu .sub-menu.mob-visible {
        max-height: 600px !important;
        opacity: 1 !important;
    }
    
    
/* Search mobile nel popup */
    #mobile-search-panel {
        display: none;
        padding: 0 20px;
    }
    
    #mobile-search-panel.mob-search-visible {
        display: block !important;
        animation: mobSearchFadeIn 0.35s ease forwards;
        position: absolute;
        top: 220px;
        left: 0;
        z-index: 10;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;     
    }
    
    
    @keyframes mobSearchFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    
    #mobile-search-close {
        display: block;
        cursor: pointer;
        /* font-size: 24px;
        font-weight: 300; */
        position: absolute;
        right: 0px;
        top: 0px;
        width: 70px;
        text-align: right;
        height: 52px;
        line-height: 52px;
        padding-right: 20px;
        font-size: 13px;
        font-weight: bold;
        text-transform: uppercase;
        font-family: "Neue Haas Unica W1G Medium", Sans-serif;
    }
    
    #mobile-search-input {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 2px solid #000;
        outline: none;
        font-family: "Neue Haas Unica W1G Medium", Sans-serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 30px;
        border-radius: 0;
        color: #000;
        padding: 10px 0;
    }
    
    #mobile-search-input::placeholder {
        color: #999;
        text-transform: uppercase;
    }
    
    #mobile-search-results {
        margin-top: 30px;
        list-style: none;
        padding: 0;
        max-height: 250px;
        overflow: scroll;
    }
    
    #mobile-search-results li {
        border-bottom: 2px solid #000;
    }
    
    #mobile-search-results li a {
        display: block;
        padding: 8px 0;
        color: #000;
        font-family: "Neue Haas Unica W1G Medium", Sans-serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 30px;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }
    
    #mobile-search-results li a:hover {
        opacity: 0.5;
    }
    
    #mobile-search-results .search-no-results {
        padding: 8px 0;
        color: #999;
        font-family: "Neue Haas Unica W1G Medium", Sans-serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 30px;
    }
    
    /* Menu mobile - fadeout quando search è aperta */
    #mobile-menu.mob-hidden {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }
    
    #mobile-menu {
        transition: opacity 0.35s ease;
    }


/* ISCRIZIONE NEWSLETTER --------------------- */
    .mailup-tmmtg-message {
        font-family: "Neue Haas Unica W1G", Sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 30px;
        padding-top: 20px;
    }
    
    .mailup-tmmtg-success {
        color: #2e7d32; /* verde */
    }
    
    .mailup-tmmtg-error {
        color: #c62828; /* rosso */
    }
    
    
    @media screen and (max-width: 1024px) {
        .mailup-tmmtg-message {
            font-size: 18px;
            line-height: 24px;
        }
    }
    
    
    @media screen and (max-width: 767px) {
        .mailup-tmmtg-message {
            font-size: 12px;
            line-height: 15px;
            
        }
        
        
        
    }/* End custom CSS */