/*

In pagina: 
1) Base
font-size: 16px
weight: 400px

2) Base 2
font-size: 20px
weight: 400px

3) Titolo 1 (H1 - 28px)
font-size: 28px
font-weight: 400;

4) Titolo 2 (H2 - 25px)
font-size: 25px
font-weight: 400;

5) Titolo 3 (H3 - 22px)
font-size: 22px
font-weight: 400;

6) Evidente 1 (36px)
font-size: 36px
weight: 400px

7) Evidente 2 (33px)
font-size: 33px
weight: 400px

8) tab verticali
font-size: 38px 
weight: 400px

*/

:root {
    --color-primary: #922E21;
    --color-secondary: #272727;
    --color-light: #F2EDE6;
    --color-lightgray: #c4c4c4;
    --color-white: #fff;
    --color-black: #000;
    --color-primary-rgb: 146, 46, 33;
    --color-secondary-rgb: 39, 39, 39;
    --color-light-rgb: 242, 237, 230;
    --color-lightgray-rgb: 196, 196, 196;
    --color-white-rgb: 255, 255, 255;
    --color-black-rgb: 0, 0, 0;
    --max-width: 1400px;
    --base-gap: 20px;
    --layout-m: 43px;
    --layout-my: 43px 0;
    --layout-mx: 0 43px;
    --font-size1: 16px;
    --font-size2: 20px;
    --font-size3: 22px;
    --font-size4: 25px;
    --font-size5: 28px;
    --font-size6: 33px;
    --font-size7: 36px;
    --font-base: var(--font-size1);
    --font-h1: var(--font-size5);
    --font-h2: var(--font-size4);
    --font-h3: var(--font-size3);
    --font-h4: var(--font-size2);
    --font-h5: var(--font-size2);
    --font-h6: var(--font-size2);
}
@media (max-width:1100px){
    :root {
        --layout-m: 20px;
        --layout-my: 20px 0;
        --layout-mx: 0 20px;
        --font-size2: 16px;
        --font-size3: 19px;
        --font-size4: 20px;
        --font-size5: 23px;
        --font-size6: 26px;
        --font-size7: 30px;
    }
}

body {
    line-height:1.3;
}

/* ================
   ACCESSIBILITY
   ================ */
body a:focus-visible,
body button:focus-visible,
body a.qi-block-button:focus-visible,
body button.qi-block-button:focus-visible,
body [role="button"]:focus-visible,
body [role="tab"]:focus-visible {
    outline: 2px solid var(--color-primary);
}    
body footer a:focus-visible,
body footer button:focus-visible,
body footer a.qi-block-button:focus-visible,
body footer button.qi-block-button:focus-visible,
body footer [role="button"]:focus-visible,
body footer [role="tab"]:focus-visible {
    outline: 2px solid var(--color-white);
}         


*,
body input[type=date], body input[type=email], body input[type=number], body input[type=password], body input[type=search], body input[type=tel], body input[type=text], body input[type=url], body select, body textarea {
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
}

img {
    max-height:100vh;
}


/* =============
   SPECIAL CLASSES
   ============= */
.container-fluid {
    width:100%;
    margin: var(--layout-mx);
}
.container-max {
    width:100%;
    max-width: var(--max-width);
    margin: var(--layout-mx);
}
.w-100 img {
width: 100% !important;
}



/* IMAGE MOVE ON HOVER EFFECT */
.qodef-single-image img {
    display: block;
	object-fit: cover;
}
.qodef-single-image.qodef--has-appear .qodef-m-image {
    clip-path: inset(0 100% 0 0)
}
.qodef-single-image.qodef--has-appear.qodef--appeared .qodef-m-image {
    transition: clip-path 1s cubic-bezier(.57,.18,0,.92) 0s;
    clip-path: inset(0 0 0 0)
}

/* =============
   TYPOGRAPHY CUSTOM
   ============= */
.elementor-widget-text-editor p strong, .elementor-widget-text-editor p b {
  font-weight: unset;
}


/* ======= 
   BUTTONS 
   ======= */
body .qodef-qi-button.qodef-layout--filled,
body .qi-block-button.qodef-block.qodef-layout--outlined,
body .qi-block-button.qodef-block.qodef-layout--filled,
body .elementor-widget-button .elementor-button,
body .qodef-m-filter .qodef-m-filter-item,
.wpcf7-form input[type=submit],
.iil-header-button,
.button {
    padding:4px 30px;
    background-color:var(--color-white);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 16px;
    font-size: var(--font-base);
    line-height: initial;
    font-weight: 400;
    text-transform: uppercase;
    text-align:center;
    overflow:hidden;cursor:pointer;
}
body .qodef-qi-button.qodef-layout--outlined,
body .qodef-button.qodef-layout--textual,
body .custom-upload::before,
body .wpcf7-form button[type=submit],
body .elementor-widget-button .elementor-button,
body .login-container-custom [type="submit"] {
    padding:4px 30px;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    background-color: unset;
    border-radius: 16px;
    font-size: var(--font-base);
    line-height: initial;
    font-weight: 400;
    text-transform: uppercase;
    text-align:center;
    overflow:hidden;
}
body .qodef-button.qodef-layout--textual {
    padding:4px 30px !important;
}
body .qodef-button.qodef-layout--textual:hover,
body .qodef-m-filter .qodef-m-filter-item:hover,
body .qodef-qi-button.qodef-layout--outlined:hover,
body .qodef-m-filter .qodef-m-filter-item.qodef--active,
.iil-header-button:hover,
.wpcf7-form button[type=submit]:hover, 
.wpcf7-form input[type=submit]:hover,
.custom-upload:hover::before,
.button:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
body .qodef-qi-button.qodef-layout--outlined:hover {
  border-color: var(--color-secondary);
}
body .qodef-fullscreen-tabs .qodef-button .qodef-m-text {
    padding-bottom: 0;
    background: unset;
}
body .qodef-m-filter .qodef-m-filter-item:before {
    background-color:var(--color-secondary);
} 
/* remove theme effects on buttons */
.qodef-theme-button:hover:after, 
button[type=submit]:hover:after, 
input[type=submit]:hover:after {
    display:none;
}

@media(min-width:768px){
    body .qodef-qi-button.qodef-layout--filled,
    body .qi-block-button.qodef-block.qodef-layout--outlined,
    body .qi-block-button.qodef-block.qodef-layout--filled,
    body .qodef-button.qodef-layout--textual,
    body .elementor-widget-button .elementor-button,
    body .qodef-m-filter .qodef-m-filter-item,
    .iil-header-button,
    .wpcf7-form button[type=submit], 
    .wpcf7-form input[type=submit],
    /*.wpcf7-file::file-selector-button,*/
    .wpcf7-form .wpcf7-form-control-wrap[data-name="curriculum"]::before,
    .custom-button {
        white-space: nowrap;
        text-align:left;
    }
}

/* ================== 
   LINKS HOVER EFFECT 
   ================== */
#menu-trigger span,
.custom-header .main-navigation a > span,
.custom-header .products-navigation a > span,
.custom-header .column.third-column ul.langs li a > span,
footer a,
.qodef-page-inner a,
.breadcrumb a,
a.elementor-element.link-card .elementor-heading-title,
.qodef-blog-item .qodef-e-title > a,
.elementor-widget-private_area_wpdm .private-content .accordion-header span,
div.link-underline a,
a.link-underline,
.qodef-layout--textual span {
    --color-secondary: inherit; 
    text-decoration: none;
    color: inherit;
   /* background-image: linear-gradient(var(--color-secondary), var(--color-secondary));*/
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: 0% 1px;
    padding-bottom:2px;
    transition: background-size 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
    font-weight:400;
    line-height: 1.3;
}

#menu-trigger span:hover,
#menu-trigger.is-active span,
.custom-header .main-navigation a:hover > span,
.custom-header .main-navigation .current-menu-item > a > span,
.custom-header .products-navigation a:hover > span,
.custom-header .products-navigation .current-menu-item > a > span,
.custom-header .column.third-column ul.langs li a:hover > span,
footer a:hover,
.qodef-page-inner a:hover,
.breadcrumb a:hover,
a.elementor-element.link-card:hover .elementor-heading-title,
.qodef-blog-item:hover .qodef-e-title > a,
.elementor-widget-private_area_wpdm .private-content .accordion-header:hover span,
.qodef-layout--textual:hover span {
    background-size: 100% 1px;
}
.elementor-widget-private_area_wpdm .private-content .accordion-header:focus {
  color: var(--e-global-color-text, revert);
}
div.link-underline a,
a.link-underline {
    background-size: 100% 1px;
}
div.link-underline a:hover,
a.link-underline:hover {
    background-size: 0% 1px;
}


/* IMAGE MOUSE HOVER EFFECT */
a.elementor-element.link-card .qodef-m-image {
    overflow:hidden;
}
a.elementor-element.link-card .qodef-m-image img {
    width: calc(100% + 10px);
    transform: translateX(-8px);
    max-width: unset;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.35, 0.94);
    aspect-ratio: 7/5;
    object-fit:cover;
}
a.elementor-element.link-card:hover .qodef-m-image img {
    transform: translateX(0);
}
a.elementor-element.link-card .elementor-heading-title {
    display: inline-block;
}

/* =====================
   OVERRIDE THEME LAYOUT
   ===================== */
body #qodef-page-inner {
    margin: unset;
    padding:unset;
}
body #qodef-page-inner.qodef-content-grid {
    width: unset;
    max-width: unset;
}
body #qodef-back-to-top {
    display:none !important;
}

/* ===============
   HEADER NAVIGATION
   =============== */
.admin-bar .custom-header {
    top: 32px;
}
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; 
    z-index: 1000;
    background-color: rgba(var(--color-white-rgb), 0.6); 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
body .custom-header button:hover,
body .custom-header a:hover,
body .custom-header button:focus,
body .custom-header a:focus,
body .custom-header button:active,
body .custom-header a:active {
    color:inherit;
}
#dropdown_menu.dropdown-menu:after,
.custom-header .main-navigation li.menu-item-has-children > ul.sub-menu:after,
.custom-header .column.third-column ul.langs .sub-menu:after,
.custom-header:after {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

#qodef-page-header-inner.inner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-header .column {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}
.custom-header .column.second-column { justify-content: center; }
.custom-header .column.third-column { justify-content: flex-end; gap: var(--base-gap); }


.custom-header .column.first-column .custom-logo,
.custom-header .column.first-column .main-navigation { 
    width: 50%; 
}

/* --- MAIN NAVIGATION --- */
.custom-header .main-navigation {
    position: relative;
    margin-left: 20px; 
    height: 100%;
    display: flex;
    align-items: center;
}
#menu-trigger {
    background: none;
    border: none;
    border-radius:0;
    font-size: var(--font-base);
    font-weight: 400;
    cursor: pointer;
    padding:0;
}
#dropdown_menu.dropdown-menu,
.custom-header .main-navigation li.menu-item-has-children > ul.sub-menu,
.custom-header .column.third-column ul.langs .sub-menu {
    display: none; 
    position: absolute;
    background-color: rgba(var(--color-white-rgb), 0.6); 
    box-shadow: 0 4px 6px rgba(var(--color-secondary-rgb), 0.2);
    padding: 10px 0;
    min-width: 260px;
}
#dropdown_menu.dropdown-menu {
    top: 100%;
    left: 0;
    z-index: 999;
}
#dropdown_menu.is-open {
    display: block;
}
.custom-header .main-navigation ul,
.custom-header .products-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.custom-header .main-navigation li { position: relative; }
.custom-header .main-navigation a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: var(--font-base);
    transition: all 0.2s;
}
.custom-header .main-navigation li.menu-item-has-children > ul.sub-menu {
    top: 0;
    left: 100%; 
}
.custom-header .main-navigation li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}
.custom-header .main-navigation li.menu-item-has-children.is-focused > .sub-menu,
.custom-header .main-navigation li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

.custom-header .main-navigation li.menu-item-has-children > a::after {
    content: '↱'; 
    font-size: var(--font-base);
    margin-left: 10px;
}
.custom-header .products-navigation {
    width:100%;
}
.custom-header .products-navigation ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: var(--base-gap);
}
/* remove Hiroshi theme arrows */
.main-navigation svg, 
.main-navigation .qodef-menu-item-arrow, 
.main-navigation .qodef-svg--menu-arrow {
    display: none !important;
}
.custom-header .qodef-widget-holder {
    display:flex;
    align-items:center;
    gap:var(--base-gap);
}
.custom-header #qodef-page-header-inner .qodef-widget-holder .widget {
    margin:0;
}

.custom-header .column.third-column .desktop-header-part {
    display:flex;
    gap:var(--base-gap);
}
.custom-header .column.third-column .mobile-header-part {
    display:none;
}
/* Langs */
.custom-header .column.third-column ul.langs {
    list-style: none !important;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.custom-header .column.third-column ul.langs > li.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.custom-header .column.third-column .current-lang {
    font-weight: 600;
    font-size: var(--font-base);
    color: var(--color-secondary);
    text-decoration: none;
    cursor: pointer;
    padding: 10px 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.custom-header .column.third-column ul.langs .sub-menu {
    list-style: none !important;
    top: 100%; 
    right: 50%;  
    left: auto; 
    min-width:40px; 
    padding:0;
    margin-top:5px;
    transform:translateX(50%);  
}

.custom-header .column.third-column ul.langs .sub-menu.is-open {
    display: block !important;
}

.custom-header .column.third-column ul.langs .sub-menu li a {
    display: block;
    padding: 8px 20px;
    text-align: center;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: var(--font-base);
    font-weight: 500;
    transition: all 0.2s ease;
}
.custom-header .column.third-column .current-lang > span {
    position:relative;
}
.custom-header .column.third-column .current-lang > span:after {
    content: "";
    position: absolute;
    top:4px;
    width: 12px;
    /*height: 7px;*/
    height: 60%;
    display: inline-block;
    margin-left:5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5303 0.530273L5.53027 5.53027L0.530273 0.530273' stroke='%23272727' stroke-width='1.5'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

.custom-header .column.third-column .current-lang.is-active > span:after {
    transform: rotate(180deg);
}

.custom-header .mobile-menu-drawer {
    display:none;
}

@media screen and (max-width: 1100px) {
    .custom-header {
        height: 60px;
    }
    #qodef-page-header-inner.inner-header {
        flex-direction: row;
        padding: 0 20px;
        gap: 0;
        height: 60px;
    }
    .custom-header .column.first-column,
    .custom-header .column.second-column {
        display: none;
    }
    .custom-header .custom-header .column.third-column {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .custom-header .column.third-column .desktop-header-part {
        display:none;
    }
    .custom-header .column.third-column .mobile-header-part {
        display:block;
        width:100%;
    }
    .custom-header .column.third-column .custom-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
    }
    /* Hamburger menu button */
    .custom-header .mobile-menu-toggle {
        position:relative;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
        height: 30px;
        justify-content: center;
    }
    .custom-header .mobile-menu-toggle:hover,
    .custom-header .mobile-menu-toggle:focus,
    .custom-header .mobile-menu-toggle:active {
        background: none;
        border: none;
        cursor: pointer;
    }
    .custom-header .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-secondary);
        transition: all 0.3s ease;
    }
    .custom-header .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .custom-header .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .custom-header .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Side Drawer Menu */
    .custom-header .mobile-menu-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: rgba(var(--color-white-rgb), 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: right 0.3s ease-out;
        overflow-y: auto;
        padding: 80px 0 30px 0;
    }
    .custom-header .mobile-menu-drawer.is-open {
        right: 0;
    }
    /* Overlay */
    .custom-header .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .custom-header .mobile-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
    /* Main Navigation */
    .custom-header .mobile-menu-drawer .main-navigation {
        width: 100%;
        height: auto;
        margin: 0;
        display: block;
    }
    .custom-header .mobile-menu-drawer #menu-trigger {
        display: none;
    }
    .custom-header .mobile-menu-drawer #dropdown_menu.dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        min-width: auto;
    }
    .custom-header .mobile-menu-drawer .dropdown-second-inner {
        padding: 0;
    }
    .custom-header .mobile-menu-drawer .main-navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .custom-header .mobile-menu-drawer .main-navigation > nav > div > div > ul > li {
        border-bottom: 1px solid rgba(var(--color-secondary-rgb), 0.1);
    }
    .custom-header .mobile-menu-drawer .main-navigation a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
        color: var(--color-secondary);
        text-decoration: none;
        font-size: var(--font-base);
        border-bottom: none;
    }
    /* Submenu - slide down */
    .custom-header .mobile-menu-drawer .main-navigation li.menu-item-has-children > ul.sub-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(var(--color-secondary-rgb), 0.05);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .custom-header .mobile-menu-drawer .main-navigation li.menu-item-has-children.is-open > ul.sub-menu {
        max-height: 500px;
    }
    .custom-header .mobile-menu-drawer .main-navigation li.menu-item-has-children > a::after {
        content: "";
        width: 12px;
        height: 7px;
        display: inline-block;
        margin-left:5px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5303 0.530273L5.53027 5.53027L0.530273 0.530273' stroke='%23272727' stroke-width='1.5'/%3E%3C/svg%3E");
        transition: transform 0.3s ease;
    }
    .custom-header .mobile-menu-drawer .main-navigation li.menu-item-has-children.is-open > a::after {
        transform: rotate(180deg);
    }
    /*.custom-header .mobile-menu-drawer .main-navigation li.menu-item-has-children:hover > ul.sub-menu {
        display: none;
    }*/
    .custom-header .mobile-menu-drawer .main-navigation ul ul a {
        padding-left: 40px;
        font-size: var(--font-base);
    }
    /* Widget and Langs */
    .custom-header .mobile-menu-drawer .drawer-widgets {
        padding: 20px 0;
        border-top: 1px solid rgba(var(--color-secondary-rgb), 0.1);
        margin-top: 20px;
    }
    .custom-header .mobile-menu-drawer .qodef-widget-holder {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    .custom-header .mobile-menu-drawer .qodef-widget-holder .widget {
        width: 100%;
        padding: 0 20px;
        margin:0 0 10px;
    }
    .custom-header .mobile-menu-drawer .qodef-widget-holder .widget .qi-block-button {
        width: 100%;
    }
    /* Langs */
    .custom-header .mobile-menu-drawer ul.langs {
        list-style-type: none;
        margin: 40px 0 0 0;
        padding: 0 20px;
        display:flex;
        justify-content: center;
    }
    .custom-header .mobile-menu-drawer ul.langs li:not(:last-child) {
        margin-right: 10px;
        padding-right: 10px;
        border-right: 1px solid var(--color-secondary);
    }
    .custom-header .mobile-menu-drawer ul.langs li.menu-item.menu-item-has-children {
        display:flex;
    }
    .custom-header .mobile-menu-drawer ul.langs li .current-lang {
        font-weight: 700;
    }
    .custom-header .mobile-menu-drawer ul.langs .sub-menu {
        list-style-type: none;
        display:flex;
        margin-left: 10px;
        padding-left: 10px;
        border-left: 1px solid var(--color-secondary);
    }

    /* Hide products navigation */
    .custom-header .products-navigation {
        display: none;
    }
}

/* ============= 
   CUSTOM FOOTER 
   ============= */
.custom-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--layout-m);
}
.custom-footer a,
.custom-footer a:hover {
    color: var(--color-white);
}
.custom-footer a:before {
    background-color: var(--color-white);
}
body .custom-footer .qi-block-button.qodef-block.qodef-layout--outlined:hover,
body .custom-footer .qi-block-button.qodef-block.qodef-layout--filled:hover,
.custom-footer .qodef-social-icons-group a:hover {
    background-size: 0;
}

.custom-footer .footer-logo-area {
    margin-bottom: 60px;
}
.custom-footer .footer-top-area {
    display:flex;
    gap:var(--base-gap);
}
.custom-footer .footer-top-area .footer-item {
    flex:1;
}
.custom-footer .widget:not(.widget_hiroshi_core_title_widget),
.custom-footer .widget:not(.widget_hiroshi_core_title_widget) p,
.custom-footer .widget:not(.widget_hiroshi_core_title_widget) a {
    margin: 0;
    line-height: normal;
}

@media(max-width:768px) {
    .custom-footer .footer-top-area {
        flex-direction: column;         
    }
}


/* ============== 
   FOOTER BUTTONS 
   ============== */

body .custom-footer .qi-block-button.qodef-block.qodef-layout--outlined,
body .custom-footer .qi-block-button.qodef-block.qodef-layout--filled {
    border:0;
}
.custom-footer .qodef-social-icons-group a:before,
.custom-footer .qi-block-button:before {
    display:none 
}
.custom-footer .qodef-social-icons-group a:hover {
    color:var(--color-black);
} 

/* =============  
   CUSTOM SWIPER 
   ============= */

.cis-swiper {
    padding-bottom:100px;
}
.cis-swiper .cis-meta {
    margin-top:10px;
}
.cis-swiper .cis-slide-inner img {
    width:100%;
    height:auto;
    object-fit: cover;
}
.cis-swiper .cis-nav-btn {
    background: none;
    border:none;
    width: auto;
    height: auto;
    margin: 0 0 10px 0 !important;
    padding:0;
    color: inherit;
    font-size: 26px;
    transition: transform .2s ease-out;    
}
.cis-swiper .cis-nav-btn:hover,
.cis-swiper .cis-nav-btn:focus,
.cis-swiper .cis-nav-btn:focus-visible {
    background: none;
    border:none;
}
.cis-swiper .cis-prev.cis-nav-btn:hover,
.cis-swiper .cis-prev.cis-nav-btn:focus-visible  {
    transform: translateX(-4px);
}
.cis-swiper .cis-next.cis-nav-btn:hover,
.cis-swiper .cis-next.cis-nav-btn:focus-visible {
    transform: translateX(4px);
}
body .swiper-container-horizontal>.swiper-pagination-bullets, 
body .swiper-horizontal>.swiper-pagination-bullets,
.cis-swiper .cis-pagination {
    position: absolute !important;
    margin-top: 0 !important;
    bottom: 0 !important;
    height: 40px;
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom:10px;
}

body .qodef-qi-swiper-container .swiper-button-next svg, 
body .qodef-qi-swiper-container .swiper-button-prev svg, 
body .qodef-qi-swiper-container~.qodef-swiper-together-nav .swiper-button-next svg, 
body .qodef-qi-swiper-container~.qodef-swiper-together-nav .swiper-button-prev svg, 
body .qodef-qi-swiper-container~.swiper-button-next svg, 
body .qodef-qi-swiper-container~.swiper-button-prev svg {
    stroke: unset ;
    fill: unset;
}
body .qodef-swiper-pagination-outside.swiper-pagination {
    top: -30px;
    bottom: unset;
    left: 0;
    margin-left: -15px;
}
body .swiper-pagination-bullets {
    top: 0;
    left:0;
}
body .swiper-pagination .swiper-pagination-bullet {
    background:none !important;
    transform: unset !important;
}
body .swiper-pagination-bullets .swiper-pagination-bullet,
body .qodef--pagination-numbers>.swiper-pagination-bullets .swiper-pagination-bullet, 
body .qodef--pagination-numbers~.swiper-pagination-bullets .swiper-pagination-bullet {
    height: auto;
    background-color: transparent;
    border-radius:0 !important;
}
.custom-slider .swiper-button-prev,
.custom-slider .swiper-button-next {
    padding:0 !important;
    font-size: 30px;
   /* margin-bottom: -5px !important;*/
}
.swiper-button-next svg, 
.swiper-button-prev svg {
    width:30px;
}
.custom-slider,
.custom-slider.qodef-navigation--inside.qodef-pagination--outside.qodef--pagination-numbers {
    padding-bottom: 60px;
}
/* news slider / project-slider */
.custom-slider.news-slider,
.custom-slider.project-slider .swiper {
    padding-bottom:60px;
}
.custom-slider.news-slider img {
    aspect-ratio: 16/10;
    object-fit: cover;
}
.custom-slider.news-slider .swiper-button-prev,
.custom-slider.project-slider .swiper-button-prev {
    right:83px !important;
}
.custom-slider.news-slider .swiper-button-next,
.custom-slider.project-slider .swiper-button-next {
    right:43px !important;
}
/* slider without navigation and pagination */
.custom-slider.no-navigation {
    padding-bottom: 0 !important; 
}
@media(max-width:1100px){
    .custom-slider,
    .custom-slider.news-slider,
    .custom-slider.qodef-navigation--inside.qodef-pagination--outside.qodef--pagination-numbers {
        padding-bottom: 80px;
    }    
    .custom-slider.news-slider img {
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    .custom-slider.news-slider .swiper-button-prev {
        right:40px !important;
    }
    .custom-slider.news-slider .swiper-button-next {
        right:0px !important;
    }
    /* slider without navigation and pagination */
    .custom-slider.no-navigation {
        padding-bottom: 0 !important; 
    }
}
@media(max-width:768px){
    body .swiper-horizontal>.swiper-pagination-bullets, 
    body .swiper-pagination-bullets.swiper-pagination-horizontal, 
    body .swiper-pagination-custom, .swiper-pagination-fraction,
    body .swiper-container-horizontal>.swiper-pagination-bullets,
    .cis-swiper .cis-pagination {
        width:100%;
        bottom: 40px !important;
    }
}

/* ================================
   CUSTOM WIDGETS AND THEME MODULES
   ================================ */

/***************/
/* breadcrumbs */
/***************/
.elementor-widget-custom_breadcrumb {
    z-index:9;
}
ul.breadcrumb {
    list-style-type: none;
    display:flex;
    margin:0;
    padding:0;
    color: var(--color-secondary);
    gap:5px;
}
ul .breadcrumb a {
    color: var(--color-secondary);
}
ul.breadcrumb li.breadcrumb-item {
    display:inline-flex;
}
ul .breadcrumb-item+.breadcrumb-item::before {
    content: '→';
    margin-right:5px;
}

/* Custom CPT (Cuustom Post Template) Grid */
body .custom-cpt-grid.qodef--loading .qodef-m-pagination-spinner {
	visibility: visible;
	z-index: 1;
}
body .custom-cpt-grid.qodef-grid>.qodef-grid-inner {
    min-height: 200px;
    display: grid;
    margin: 0 -10px;
}
body .custom-cpt-grid.qodef-grid>.qodef-grid-inner>.qodef-grid-item {
    padding: 10px;
}
body .custom-cpt-grid.qodef-grid .qodef-e-title {
    margin: 5px 0 10px 0;
}
body .custom-cpt-grid.qodef-grid .qodef-e-info {
    display: flex;
    gap: 10px;
}
body .custom-cpt-grid.qodef-grid .qodef-e-info>* {
    font-family: inherit;
    letter-spacing: normal;
    font-size: 16px;
}
body .custom-cpt-grid.qodef-grid .qodef-e-info .qodef-e-category {
    display:flex;
    gap:5px;    
}
body .custom-cpt-grid.qodef-grid .qodef-e-info .qodef-e-category:before {
    content:'';
    width:12px;
    height:12px;
    background-color: var( --e-global-color-text );
    border-radius:50%;
}
body .custom-cpt-grid .qodef-shortcode {
    position: relative;
}
body .custom-cpt-grid .qodef-grid-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 5;
}
body .custom-cpt-grid.qodef--loading .qodef-grid-loader {
    opacity: 1;
    visibility: visible;
}
body .custom-cpt-grid .qodef-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
body .custom-cpt-grid .qodef-e { transition: clip-path 1s cubic-bezier(.57,.18,0,.92) 0s; clip-path: inset(0 0 0 0); }
body .custom-cpt-grid .qodef-e:nth-child(1) { transition-delay: calc((1 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(2) { transition-delay: calc((2 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(3) { transition-delay: calc((3 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(4) { transition-delay: calc((4 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(5) { transition-delay: calc((5 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(6) { transition-delay: calc((6 - 1) * .1s)}
body .custom-cpt-grid .qodef-e:nth-child(7) { transition-delay: calc((7 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(8) { transition-delay: calc((8 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(9) { transition-delay: calc((9 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(10) { transition-delay: calc((10 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(11) { transition-delay: calc((11 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(12) { transition-delay: calc((12 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(13) { transition-delay: calc((13 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(14) { transition-delay: calc((14 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(15) { transition-delay: calc((15 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(16) { transition-delay: calc((16 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(17) { transition-delay: calc((17 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(18) { transition-delay: calc((18 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(19) { transition-delay: calc((19 - 1) * .1s) }
body .custom-cpt-grid .qodef-e:nth-child(20) { transition-delay: calc((20 - 1) * .1s) }
body .custom-cpt-grid.qodef--loading .qodef-e { clip-path: inset(0 100% 0 0) }

body .menu-products.qodef-interactive-link-showcase,
body .menu-products.qodef-interactive-link-showcase.qodef-layout--list .qodef-m-items {
    position: relative;
    height: auto !important;
}
body .menu-products.qodef-interactive-link-showcase .qodef-m-item,    
body .menu-products.qodef-interactive-link-showcase .qodef-m-item:last-of-type {
    font-size: var(--font-h2);
    margin:0;
    padding: 0 5px 1px;
}
body .qodef-interactive-link-showcase .qodef-m-item .qodef-e-title:before {
    left: -5px;
}

/****************/
/* Custom Image */
/****************/
body .elementor-widget-custom_image .qodef-single-image {
    height: 100%;
}

/*******************/
/* Fullscreen Tabs */
/*******************/

body .qodef-fullscreen-tabs .qodef-m-tab::after {
  height: 29px;
  top: 8px;
  clip-path: inset(-1px 0);
  transition: clip-path .35s, opacity .35s;
}

body .qodef-fullscreen-tabs .qodef-m-tab:hover:after {
  clip-path: inset(6px 0);
}

.qodef-fullscreen-tabs .qodef-m-tab:hover:before {
  clip-path: inset(-1px 4px -1px 6px);
}


@media only screen and (min-width: 1025px) {
    body .qodef-fullscreen-tabs .qodef-m-tab:not(.active-tab) {
        width: 90px !important; 
        flex: 0 0 90px !important;
    }
}
@media only screen and (min-width: 769px) {
	.qodef-fullscreen-tabs .qodef-e-content-inner {
    	padding: 0 20px;
	}
    body .qodef-fullscreen-tabs .qodef-m-tab.active-tab {
        width: 100% !important;
        flex: 1 !important;
    }
    body .qodef-fullscreen-tabs .qodef-m-tab.active-tab .qodef-tab-wrapper,
    body .qodef-fullscreen-tabs .qodef-m-tab.active-tab .qodef-m-content {
        width: 100% !important;
        max-width: 100% !important; 
        right: 0 !important; 
        left: 0 !important;
    }
    body .qodef-fullscreen-tabs .qodef-m-tab.active-tab .qodef-e-content-inner {
        width: 100% !important;
    }
    .qodef-fullscreen-tabs .qodef-e-image {
        margin-left: 10%;
    }
    body .qodef-fullscreen-tabs .qodef-e-image img, 
    body .qodef-fullscreen-tabs .qodef-e-mobile-image img {
        object-fit: cover;
    }
    body .qodef-fullscreen-tabs .qodef-m-title-vertical {
        bottom: -35px;
        right: -40px;
        left:unset;
    }
}
@media only screen and (max-width:768px) {
    body .qodef-fullscreen-tabs .qodef-m-tab, 
    body .qodef-fullscreen-tabs .qodef-m-tab:not(.active-tab), 
    body .qodef-fullscreen-tabs .qodef-tab-wrapper, 
    .qodef-fullscreen-tabs div.qodef-m-title {
        padding-bottom:30px;
    }
	body .qodef-fullscreen-tabs .qodef-m-tab::after {
    	height: 29px;
    	top: 31px;
	}

}

/*************/
/* Accordion */
/*************/
@media (max-width: 768px) {
    body .ui-accordion-content img {
        max-height:65vh;
        object-fit: cover;
    }
}

/*************
    NEWS
**************/

/*** NEWS LISTING PAGE ***/
.blog-listing .qodef-e-media-image img.wp-post-image {
    aspect-ratio: 16 / 10;
	object-fit: cover;
  	object-position: 45%;
}

/*** SINGLE POST PAGE ***/
.post-header__title {
    margin:0;
    padding:0 0 10px 0;
}
.post-header__meta,
.post-header__categories {
    position:relative; 
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-header__categories:before {
    content: '';
    width:10px;
    height:10px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}
@media(max-width:768px){    
    body .qodef-m-filter .qodef-m-filter-items {
        flex-direction: row;
        /*flex-wrap: wrap;*/
        gap: 5px;
    }
    body .qodef-m-filter .qodef-m-filter-items .qodef-m-filter-item {
        /*width:49%;*/
		padding-inline: 5%;
    	flex-grow: 1;
		display: flex;
  		justify-content: center;
    }
}

/********
   FORM
*********/

/* custom checkbox*/
.wpcf7-form input[type="radio"],
.wpcf7-form input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0 !important;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 1px solid var(--color-secondary) !important;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    transition: background 0.2s ease;
}
.wpcf7-form input[type="radio"] {
    border-radius: 50%;
}
.wpcf7-form input[type="checkbox"] {
    border-radius: 0;
}
/* (Checked) */
.wpcf7-form input[type="radio"]:checked,
.wpcf7-form input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.wpcf7-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

/* placeholder */
.wpcf7-form input::placeholder {
  color: #999;
}
.wpcf7-form textarea::placeholder {
  color: #999;
}
.wpcf7-form input[type=date], 
.wpcf7-form input[type=email], 
.wpcf7-form input[type=number], 
.wpcf7-form input[type=password], 
.wpcf7-form input[type=search], 
.wpcf7-form input[type=tel], 
.wpcf7-form input[type=text], 
.wpcf7-form input[type=url], 
.wpcf7-form select, 
.wpcf7-form textarea {
    border-bottom: 1px solid var(--color-secondary);
}
.wpcf7-form .wpcf7-textarea {
    height: 200px; 
}

/* privacy section*/
.wpcf7-form .privacy {
    margin-top:20px;
}
.wpcf7-form .privacy .wpcf7-list-item {
    margin: 0;
}
.wpcf7-form .privacy .wpcf7-list-item input[type="checkbox"].privacy-policy {
    margin-right: 5px;
}
/* footer form */
.wpcf7-form .footer-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap:40px;
}
.wpcf7-form button[type=submit], 
.wpcf7-form input[type=submit] {
    text-transform: uppercase;
}

/* custom upload file */
.custom-upload {
    position: relative;
    /*display: inline-block;*/
    display:flex;
    align-items: center;
}
.custom-upload .wpcf7-form-control-wrap {
    position: static;
    display: contents; 
}
.custom-upload .custom-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.custom-upload::before {
    display: inline-block;
    content: attr(data-label);
    cursor: pointer;
    z-index: 1;   
}
.custom-upload::after {
    content: attr(data-file);
    margin-left: 10px;
    font-size: 14px;
}

/* Complaints Form */
.complaints-form .form-block {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.complaints-form .form-block .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}
.complaints-form .form-block .wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    gap: .5rem;
}
.complaints-form .form-block .wpcf7-date {
    padding-top: 0;
}

/*********************************************************************************************** 
* NON PIÙ USATO, IL PLUGIN NINJA FORMS È STATO RIMOSSO PERCHÈ NON PERMETTE UPLOAD GRATUITAMENTE
************************************************************************************************
.custom-ninja-form-wrapper input[type=date], 
.custom-ninja-form-wrapper input[type=email], 
.custom-ninja-form-wrapper input[type=number], 
.custom-ninja-form-wrapper input[type=password], 
.custom-ninja-form-wrapper input[type=search], 
.custom-ninja-form-wrapper input[type=tel], 
.custom-ninja-form-wrapper input[type=text], 
.custom-ninja-form-wrapper input[type=url], 
.custom-ninja-form-wrapper select, 
.custom-ninja-form-wrapper textarea {
    font-family: inherit;
    font-size: var(--font-base);
    font-weight: inherit;
    text-transform: unset;
    border-color:rgba(var(--color-secondary-rgb), 0.3);
    letter-spacing: unset;
}
.custom-ninja-form-wrapper .nf-field-container {
    margin:0;
}

.custom-ninja-form-wrapper .ninja-forms-req-symbol {
    color: inherit;
}
.custom-ninja-form-wrapper .nf-error .ninja-forms-field, 
.custom-ninja-form-wrapper .nf-error.listimage-wrap .nf-field-element ul {
    border-color: #e80000;
    padding:10px;
}
.custom-ninja-form-wrapper .nf-error-msg, .ninja-forms-req-symbol {
    color: #e80000;
}
.custom-ninja-form-wrapper input[type=submit] {
    margin-top: 20px;
    padding-left:100px;
    padding-right:100px;
    text-transform: uppercase;
    font-family: inherit;
    font-weight: inherit;
}*/