html:nth-of-type(1) { margin-top: 0!important; }
#wpadminbar { transition: .3s; }
#wpadminbar:not(:hover) { opacity: .05; }

.mian_fixed { position: sticky; top: 0; }
.ntes:not(.active) { opacity: 0; }

.ntes .image .elementor-widget-container {
    display: flex;
    justify-content: end;
}

.ntes  > div {
    min-height: 250px;
}

.highlighted {
    --ww: 40px;
    display: inline-block;
    padding: 0 var(--ww);
    border-radius: var(--ww);
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-accent)!important;
}

.highlighted.ml {
    margin-left: calc(-1 * var(--ww));
}

/* Scrolled */
body.scrolled .elementor-location-header,
body.menu-open .elementor-location-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

body:not(.scrolled).show .elementor-location-header,
body.noanim .elementor-location-header {
    transition: 0s!important;
}

body.scrolled:not(.show):not(.menu-open) .elementor-location-header {
    translate: 0 -160px;
    transition: translate .5s ease-out;
}

body.scrolled.show .elementor-location-header {
    translate: 0 0;
    transition: translate .5s ease-in;
}

body.show:not(.scrolled) .header {
    transition: bckground-color 0s;
} 

body.scrolled .header {
    padding: 1vw 0!important;
}

body.scrolled:not(.menu-open) .header {   
    box-shadow: 0 1px 5px 0px rgba(0,0,0,.1);
    background-color: var(--e-global-color-2da2226);
}

.header .logo a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 66px;
}

/* Loghi */
body:not(.home):not(.menu-open) .logo.shrink.alt,
body.home:not(.scrolled) .logo.shrink:not(.alt),
body:not(.scrolled) .logo.extended,
body.scrolled:not(.menu-open) .logo.shrink,
body.menu-open .logo.shrink:not(.alt),
body.menu-open .logo.extended  {
    display: none!important;
}

/* Rules */
.p-0 {
    padding: 0!important;
}

.nowrap {
    white-space: nowrap;
}

.foniasez {
    border-left: 7.35vw solid transparent;
    border-right: 7.35vw solid transparent;
}

.clr-primary {
    color: var(--e-global-color-primary);
}

/* Effetto hover tab */
.ttabs .ttab:not(:hover) p {
    opacity: 0;
    visibility: hidden;
}

.ttabs .ttab h3 {
    transition: .1s;
}

.ttabs .ttab:hover h3:first-of-type {
    color: var(--e-global-color-primary);
}

.ttabs .ttab .zico {
    position: relative;
}

.ttabs .ttab .zico * {
    display: flex;
    aspect-ratio: 1 / 1;
}

.ttabs .ttab:not(:last-of-type) .zico:before,
.ttabs .ttab:not(:last-of-type) .zico:after {
    content: '';
    position: absolute;
    top: 98%;
    left: calc(50% - 5px);
    width: 0.5vw;
    height: 235%;
    transform-origin: 50% 0;
    background-color: var(--e-global-color-secondary);
}

.ttabs .ttab:not(:last-of-type) .zico:after {
    background-color: var(--e-global-color-primary);
    scale: 1 0;
}

.ttabs .ttab:has(~ .ttab.thover) .zico:after {
    scale: 1 1;
}

.ttabs .ttab .zico .elementor-icon {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.ttabs .ttab .zico .elementor-icon:before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: red;
    border-radius: 50%;
    background-image: linear-gradient(180deg, var(--e-global-color-primary) 0%, var(--e-global-color-primary) 0%);
    transform-origin: 50% 0;
    scale: 1 0;
    z-index: 2;
}

.ttabs .ttab:has(~ .ttab.thover) .zico .elementor-icon:before,
.ttabs .ttab.thover .zico .elementor-icon:before {
    scale: 1 1;
}

/* UNO */
.ttabs:has(> .ttab:nth-of-type(1):hover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(1):hover + .ttab.thover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: 0s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(1):hover + .ttab.thover) .ttab:nth-of-type(1) .zico:after {
    scale: 1 0;
    transition: .2s linear .1s;
}

.ttabs:has(> .ttab:nth-of-type(1):hover + .ttab.thover) .ttab:nth-of-type(2) .elementor-icon:before {
    scale: 1 0;
    transition: .1s linear 0s;
}

/* DUE */
.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(1).thover .zico .elementor-icon:before {
    transition: 0s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(1) .zico:after {
    scale: 1 1;
    transition: .2s linear .1s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(1).thover .zico:after {
    transition: .1s linear .1s;
} 

.ttabs:has(> .ttab:nth-of-type(1):hover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(1) .zico:after {
    scale: 1 1;
    transition: .2s linear .1s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover) .ttab:nth-of-type(2) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear .3s;
}

.ttabs:has(> .ttab:nth-of-type(1).thover + .ttab:hover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: 0s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(1).thover + .ttab:hover) .ttab:nth-of-type(1) .zico:after {
    scale: 1 1;
    transition: .2s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(1).thover + .ttab:hover) .ttab:nth-of-type(2) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear .2s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover + .ttab.thover) .ttab:nth-of-type(1) .zico:after {
    scale: 1 1;
    transition: 0s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover + .ttab.thover) .ttab:nth-of-type(3) .zico .elementor-icon:before {
    scale: 1 0;
    transition: .1s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2):hover + .ttab.thover) .ttab:nth-of-type(2) .zico:after {
    scale: 1 0;
    transition: .2s linear .1s;
}

/* TRE */

.ttabs:has(> .ttab:nth-of-type(3):hover) .ttab:nth-of-type(1) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(3):hover) .ttab:nth-of-type(1) .zico:after {
    scale: 1 1;
    transition: .2s linear .1s;
}

.ttabs:has(> .ttab:nth-of-type(3):hover) .ttab:nth-of-type(2) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear .3s;
}

.ttabs:has(> .ttab:nth-of-type(3):hover) .ttab:nth-of-type(2) .zico:after {
    scale: 1 1;
    transition: .2s linear .4s;
}

.ttabs:has(> .ttab:nth-of-type(3):hover) .ttab:nth-of-type(3) .zico .elementor-icon:before {
    scale: 1 1;
    transition: .1s linear .6s;
}

.ttabs:has(> .ttab:nth-of-type(2).thover + .ttab:hover) .ttab:nth-of-type(1) .zico .elementor-icon:before,
.ttabs:has(> .ttab:nth-of-type(2).thover + .ttab:hover) .ttab:nth-of-type(1) .zico:after,
.ttabs:has(> .ttab:nth-of-type(2).thover + .ttab:hover) .ttab:nth-of-type(2) .zico .elementor-icon:before {
    scale: 1 1;
    transition: 0s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2).thover + .ttab:hover) .ttab:nth-of-type(2) .zico:after {
    scale: 1 1;
    transition: .2s linear 0s;
}

.ttabs:has(> .ttab:nth-of-type(2).thover + .ttab:hover) .ttab:nth-of-type(3) .zico .elementor-icon:before {
    transition: .1s linear .2s;
}

/* SITO */
body:not(.menu-open) .togglemenu.close,
body.menu-open .togglemenu.open {
    display: none!important;
}

body:not(.menu-open) .menu {
    top: -100vh!important;
}

body.menu-open:before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,.8);
    z-index: 6;
}

body.home:not(.scrolled) .togglemenu.open svg rect {
    fill: #fff;
}

/* .menu {
    background-color: var(--e-global-color-primary);
    border-radius: 0 0 10.5vw 0;
} */

.menu {
    transition: .4s!important;
}

.menu .elementor-nav-menu {
    position: relative;
    display: inline-block;
}

.menu .elementor-nav-menu li {
    display: block;
}

.menu .elementor-nav-menu :is(li, a) {
    position: static;
}

.menu .menu-item-has-children .sub-arrow {
    position: relative;
}

.menu .menu-item-has-children .sub-arrow svg {
    width: 2vw;
    margin-top: 5px;
}

.menu .current-menu-item > a:before {
    content: '';
    position: absolute;
    left: -85px;
    width: 62px;
    border: 4px solid var(--e-global-color-accent);
}

.menu .menu-item-has-children .sub-menu {
    top: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    left: 100% !important;
    background-color: transparent;
    width: 33.334vw !important;
    border-left: 2px solid #fff;
    padding-left: 8.33%;
}

.menu .menu-item-has-children .sub-menu a {
    --font-size: 1.6vw;
    --line-height: 2vw;
    font-family: "Sora", Sans-serif;
    font-size: var(--font-size);
    line-height: var(--line-height);
    font-weight: 400;
    color: var(--e-global-color-2da2226);
    background-color: transparent!important;
}

.menu .menu-item-has-children .sub-menu .mini.f {
    margin-top: 2.4vw;
}

.menu .menu-item-has-children .sub-menu .mini > a {
    --font-size: 1.2vw;
    --line-height: 1.3vw;
    font-size: var(--font-size);
    line-height: var(--line-height);
}

.menu .menu-item-has-children .sub-menu a:hover {
    /* font-weight: 600; */
    color: var(--e-global-color-accent);
}

.menu .menu-item-has-children .sub-menu a:before {
    content: '';
    position: absolute;
    left: 10px;
    width: 0;
    height: 3px;
    background-color: var(--e-global-color-accent);
    transition: .2s;
}

.menu .menu-item-has-children .sub-menu a:hover:before {
    width: 38px;
    max-width: 3vw;
}

/* End menu */

.posts .elementor-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12.5%;
}

.posts .elementor-posts-container > article {
    width: calc((100% / 3) - 8.334%);
    margin-bottom: 5vw;
}

.posts .elementor-posts-container > article .elementor-post__title {
    margin-bottom: 1vw;
}

.posts .elementor-posts-container > article .elementor-post__text {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.posts .elementor-posts-container > article .elementor-post__text .elementor-post__title { order: 1; }
.posts .elementor-posts-container > article .elementor-post__text .elementor-post__meta-data { width: 45%; order: 3; }
.posts .elementor-posts-container > article .elementor-post__text .elementor-post__excerpt { order: 2; }
.posts .elementor-posts-container > article .elementor-post__text .elementor-post__read-more { position: relative; order: 4; }

.posts .elementor-posts-container > article .elementor-post__read-more:before {
    content: '';
    position: absolute;
    width: 1.1vw;
    aspect-ratio: 1/1;
    top: 2px;
    right: 20px;
    background-image: url(/wp-content/uploads/2024/10/arrow-fonia-accent.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.single-post .posts .elementor-posts-container > article .elementor-post__read-more:before {
    background-image: url(/wp-content/uploads/2024/10/arrow-fonia-primary.svg);
}

/* Contact form */
.wpcf7-form {
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
}

.wpcf7-form :is(p:nth-of-type(1), p:nth-of-type(2)) {
    width: 40%;
}


.wpcf7-form p:nth-of-type(2) ~ p {
    width: 100%;
}

.wpcf7-form > p {
    margin-bottom: 2.10vw;
}

.wpcf7-form p span {
    font-family: "BlauerNue", Sans-serif;
    font-weight: 600;
}

.wpcf7-form p span:not(.wpcf7-not-valid-tip) {
    font-size: max(1.2vw, 1.3rem);
    color: var(--e-global-color-primary);
}

.wpcf7-form p :is(input, textarea, select) {
    display: block;
    border: none;
    border-bottom: 1px solid var(--e-global-color-primary);
    border-radius: 0;
    outline: none;
    padding: 8px 0;
    resize: none;
}

.wpcf7-form .semail {
    display: none!important;
}

.wpcf7-form .wpcf7-acceptance input {
    display: inline;
    width: auto;
}

.wpcf7-form .wpcf7-acceptance span {
    font-size: calc(1vw + 1rem);
    font-weight: 400;
    margin: 0;
}
.wpcf7-form p:has(.wpcf7-submit) {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin: 0!important;
}

.wpcf7-form:not(.submitting) .wpcf7-spinner {
    display: none!important;
}

.mybtn,
.wpcf7-form .wpcf7-submit {
    display: inline;
    padding: 14px 32px;
    border-radius: 0 21px;
    background-color: var(--e-global-color-primary);
    font-family: "BlauerNue", Sans-serif;
    font-size: max(1.1vw, 1.2rem);
    font-weight: 400;
    color: #fff;
    outline: none!important;
    border: none!important;
}

.mybtn:hover,
.wpcf7-form .wpcf7-submit:not([disabled]):hover {
    background-color:  var(--e-global-color-accent);
    color:  var(--e-global-color-primary);
}

.wpcf7-form .wpcf7-submit[disabled] {
    opacity: .5;
}

.elementor-post-date {
    white-space: nowrap;
}

.hero {
    height: 100vh;
}

/* Responsive */
@media (width < 992px) {
    .hero {
        height: auto;
        aspect-ratio: 16/9;
    }

    .hero video {
        margin-top: 0!important;
    }
}

/* form registra nuovo rivenditore */
#wppb-register-user :is(h4, label > span) {
    display: none!important;
}

#wppb-register-user .wppb-form-field {
    display: flex;
    flex-direction: column;
}

#wppb-register-user li:not(.wppb-send-credentials-checkbox) label {
    width: 100%;
    font-size: 1.20vw;
    color: var(--e-global-color-primary);
    font-family: "BlauerNue", Sans-serif;
    font-weight: bold;
    
}

#wppb-register-user li.wppb-send-credentials-checkbox label {
    font-size: 1.10vw;
    color: var(--e-global-color-primary);
    font-family: "Sora", Sans-serif;
}

#wppb-register-user .wppb-form-field input:not(#send_credentials_via_email) {
    border: none;
    border-bottom: 2px solid var(--e-global-color-primary);
    margin-bottom: 3.57vw;
    height: 2.46vw;
}

#wppb-register-user #register {
    font-family: "BlauerNue", Sans-serif;
    font-size: 1.20vw;
    font-weight: 400;
    background-color: var(--e-global-color-primary);
    border-radius: 00px 21px 0px 21px;
    padding: 0.6vw 2.6vw 0.6vw 2.6vw;
    border: none;
    color: #fff;
}

.btnarrow :is(a, svg *) {
    transition: .2s;
}

.btnarrow:hover a,
.btnarrow:hover svg * {
    color: var(--e-global-color-accent)!important;
    fill: var(--e-global-color-accent)!important;
}

/* Documenti generici */
.gendoc .link-template-default .media {
    display: flex;
    align-items: center;
}

.gendoc .link-template-default .media :is(div:has(img), .media-body > div) {
    display: none!important;
}

.gendoc .link-template-default {
    background-color: var(--main-bg);
    border: 3px solid var(--e-global-color-primary);
    
}

.gendoc .link-template-default .package-title a {
    font-family: "Sora", Sans-serif;
    color: var(--main-clr);
    font-weight: bold;
    font-size: 1.10vw;
    line-height: 1.3;
    text-decoration: none;
}

.gendoc .link-template-default .wpdm-download-link {
    font-size: 0;
    background-image: url(/wp-content/uploads/2024/08/downlaod-arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    aspect-ratio: 16 / 24;
    width: 0.84vw;
    background-color: transparent;
    border: none;
    box-shadow: none;
    filter: var(--main-filter);
    padding: 0;
}

.gendoc .link-template-default {
    --main-bg: transparent;
    --main-clr: var(--e-global-color-primary);
    --main-filter: none;
    transition: .3s;
}

.gendoc .link-template-default:hover {
    --main-bg: var(--e-global-color-primary);
    --main-clr: #fff;
    --main-filter: brightness(0) invert(1);
}

/* Document gallery */
.document-gallery {
    border: 1px solid var(--e-global-color-secondary);
}

.document-gallery .document-icon-row {
    display: flex;
}

.document-gallery .document-icon {
    --main-clr: var(--e-global-color-primary);
    --main-filter: none;

    display: flex;
    flex-direction: column;
    aspect-ratio: 1/1;
    border: 1px solid var(--e-global-color-secondary);
    min-width: 25%;
    max-width: 25%;
    margin: 0;
    padding: 0.42vw;
    transition: .3s;
}

.document-gallery .document-icon img {
    display: none!important;
}

.document-gallery .document-icon .title {
    font-family: 'Sora', sans-serif;
    font-size: 0.63vw;
    color: var(--main-clr);
    word-break: break-word;
}

.document-gallery .document-icon:has(img[data-ext])::before {
    content: '';
    display: flex;
    width: 1.73vw;
    aspect-ratio: 11 / 12;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
    filter: var(--main-filter);
}

.document-gallery .document-icon:has(img[data-ext="pdf"])::before {
    background-image: url(/wp-content/uploads/2024/08/pdf-file.svg);
}

.document-gallery .document-icon:has(img[data-ext="doc"])::before {
    background-image: url(/wp-content/uploads/2024/08/doc-file.svg);
}

.document-gallery .document-icon:has(img[data-ext="xls"])::before {
    background-image: url(/wp-content/uploads/2024/08/xls-file.svg);
}

.document-gallery .document-icon:hover {
    --main-clr: #fff;
    --main-filter: brightness(0) invert(1);
    background-color: var(--e-global-color-primary);
}

.navfon :is(p, svg *) {
    transition: .2s!important;
}

.navfon:hover :is(p, svg *) {
    color: var(--e-global-color-primary)!important;
    fill:  var(--e-global-color-primary);
}

@media (min-width: 1440px) {
    .video video {
        margin-top: calc((100vh - 56.22%) / 2)!important;
    }
}

@media (min-width:768px) {
    body.home .header {
        position: absolute;
    }

    .menu .menu-item-has-children .sub-menu a {
        padding: 8px 20px!important;
    }
}

@media (max-width:767px) {
    body.home .header {
        background-color: var(--e-global-color-primary);
    }

    .cgall .fgallery .img {
        min-width: 100%;
    }

    .document-gallery .document-icon-row {
        flex-wrap: wrap;
    }

    .document-gallery .document-icon:has(img[data-ext])::before {
        width: 9vw;
    }
   
    .document-gallery .document-icon .title {
        font-size: 4vw;
        line-height: 1;
    }

    .document-gallery .document-icon {
        min-width: 50%;
    }

    .gendoc .link-template-default .package-title a,
    #wppb-register-user li.wppb-send-credentials-checkbox label {
        font-size: 4vw;
    }
    
    #wppb-register-user #register {
        padding: 4vw 12vw!important;
        font-size: 6vw;
    }

    .gendoc .link-template-default .wpdm-download-link {
        width: 4vw;
    }

    #wppb-register-user li:not(.wppb-send-credentials-checkbox) label {
        font-size: 6vw;
    }

    #wppb-register-user .wppb-form-field input:not(#send_credentials_via_email) {
        height: 11vw;
    }

    body.scrolled:not(.show):not(.menu-open) .elementor-location-header  {
        translate: 0 0;
    }
}

@media (max-width: 1024px) {
    #wpadminbar {
        display: none!important;
    }

    .menu .menu-item-has-children .sub-menu a {
        --font-size: 2vw;
        --line-height: 2.3vw;
    }

    .menu .menu-item-has-children .sub-menu .mini > a {
        --font-size: 2vw;
        --line-height: 2.2vw;
    }

    .posts .elementor-posts-container > article {
        width: calc((100% / 2) - 8.334%);
    }
}

@media (max-width: 991px) {
    .menu .menu-item-has-children .sub-menu a {
        --line-height: 1.8vw;
    }

    .menu .menu-item-has-children .sub-menu .mini > a {
        --line-height: 1.1;
    }
}


@media (max-width: 767px) {
    .menu .menu-item-has-children .sub-arrow:before {
        width: 4vw;
    }

    .posts .elementor-posts-container > article {
        width: 100%;
    }
}

@media (max-width:640px) {
    .menu .menu-item-has-children .sub-menu {
        padding-left: 3.334%;
    }

    .elementor-nav-menu--main .elementor-nav-menu a {
        padding: 7px 10px!important;
    }

    .menu .menu-item-has-children .sub-menu a {
        --font-size: 4.5vw;
        --line-height: 5vw;
    }

    .menu .menu-item-has-children .sub-menu .mini > a {
        --font-size: 4vw;
    }
}

.lavorigall article {
    position: relative;
}

.lavorigall article > a {
    margin: 0!important;
}

.lavorigall article > div:before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--e-global-color-secondary);
    opacity: .4;
}

.lavorigall article > div {
    position: absolute;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    opacity: 0;
    transition: .4s;
}

.lavorigall article:hover > div {
    opacity: 1;
}

.lavorigall article > div * {
    position: relative;
    text-shadow: 3px 3px 11px rgba(0,0,0,.9);
    z-index: 2;
}

.lavorigall article .elementor-post__title {
    user-select: none;
    pointer-events: none;
}

.cgall .elementor-post__thumbnail img {
    top: 0!important;
    left: unset!important;
    transform: none!important;
    transition: var(--sec)!important;
}

.cgall .elementor-post__thumbnail__link {
    user-select: none;
    pointer-events: none;
}

.cgall article:hover .elementor-post__thumbnail img {
    top: calc(var(--hh) * -1px)!important;
}