header.entry-header {
    display: none;
}

header {
    position: fixed;
    width: 100%;
    max-width: 100%;
    padding: 16px 40px;
    top: 0;
    z-index: 999;
    transition: background-color 0.3s ease;
}
.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logos {
    display: flex;
    gap: 16px;
}

.header-left-logo {
    padding-right: 16px;
    border-right: 1px solid #fff;
}

.global-button {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
ul.sub-menu a > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

ul.sub-menu a > div > span {
    color: #6E7073;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 100%;
}






.header-content-open {
    height: 100vh;
    padding: 24px 40px 120px;
    margin-top: 78px;
    position: fixed;
    width: 100%;
    top: 0;
    background: #fff;
    display: none !important;
}
.header-content-open {
    display: flex;
}

.header-top-menuus div ul {
    margin: 0;
}

.header-top-menuus div ul li {
    list-style: none;
    padding-bottom: 12px;
    border-bottom: 1px solid #C6CACC;
}

.header-top-menuus div ul li a {
    color: #231F20;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.22px;
}

.header-top-menuus div ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-menus {
    display: flex;
    gap: 32px;
    flex-direction: column;
    justify-content: space-between;
    width: 35%;
    max-width: 100%;
    flex-shrink: 0;
	overflow: auto;
}
.header-bottom-menus div  ul {
    margin: 0;
}

.header-bottom-menus div ul li {
    list-style: none;
}

.header-bottom-menus div ul li a {
    text-decoration: none;
    color: #231F20;
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.176px;
}

.header-bottom-menus div ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.header-image-background {
    width: 65%;
    transition: all 0.3s ease;
    margin-left: auto;
}
body.submenu-active .header-image-background {
    width: 30%;
}
.header-image-background {
    background: url(//yanmar.addlab.net/wp-content/uploads/2026/01/Frame-114-1.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


.header-content-open.is-active {
    display: flex !important;
    z-index: 99;
}
.no-scroll {
    overflow: hidden;
    height: 100vh;
}
:is(.page-id-9) header.is-scrolled, 
:is(.page-id-9) header.header-is-open {
    background-color: #ffffff !important;
}
:is(.page-id-9) header.header-is-open  .global-button span svg path {
    fill: #000 !important;
}
:is(.page-id-9) header.header-is-open .header-hamburger svg path {
    fill: #000 !important; 
}

:is(.page-id-9) header.header-is-open a.global-button span,
:is(.page-id-9) header.is-scrolled a.global-button span {
    color: #000 !important;
}
:is(.page-id-9, .page-id-238, .page-id-363) .is-scrolled a.global-button .gb-shape svg path{
    fill: #000 !important; 
}


:is(.page-id-9) .is-scrolled .header-hamburger svg path,
:is(.page-id-9) .header-is-open .header-hamburger svg path {
    fill: #1C1C1C !important;
}

:is(.page-id-9) header.header-is-open .header-left-logo,
:is(.page-id-9) header.is-scrolled .header-left-logo {
    border-right: 1px solid #000 !important;
}
:is(.page-id-9) header.header-is-open .header-right-logo svg path,
:is(.page-id-9) header.is-scrolled .header-right-logo svg path {
    fill: rgba(28, 28, 28, 1) !important;
}
.header-social-logos {
    display: flex;
    gap: 24px;
    align-items: center;
}



header.is-scrolled, 
header.header-is-open {
    background-color: #ffffff !important;
}
.header-hamburger svg path {
    fill: #000 !important; 
}
a.global-button span,
a.global-button span {
    color: #000 !important;
}
a.global-button .gb-shape svg path{
    fill: #000 !important; 
}
.header-left-logo,
.header-left-logo {
    border-right: 1px solid #000 !important;
}
.header-right-logo svg path,
.header-right-logo svg path {
    fill: rgba(28, 28, 28, 1) !important;
}

:is(.page-id-9) .header-right-logo svg path,
:is(.page-id-9) .header-right-logo svg path {
    fill: #fff !important;
}
:is(.page-id-9) .header-hamburger svg path {
    fill: #fff !important; 
}
:is(.page-id-9) a.global-button span,
:is(.page-id-9) a.global-button span {
    color: #fff !important;
}
:is(.page-id-9) a.global-button .gb-shape svg path{
    fill: #fff!important; 
}
:is(.page-id-9) .header-left-logo,
:is(.page-id-9) .header-left-logo {
    border-right: 1px solid #fff !important;
}

.header-content-open.is-active {
    pointer-events: auto !important;
}

.header-hamburger .line {
  transition: transform 0.3s ease;
  transform-origin: center; 
}

.header-hamburger.active .line1 {
    transform: rotate(17deg) translate(0px, 4px);
}

.header-hamburger.active .line2 {
  transform: rotate(-17deg) translate(0px, -4px);
}
.menu-header-top-menus-container ul li ul {
    display: none;
}

.header-menus {
    padding-right: 40px;
}
.header-sub-menus {
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

body.submenu-active .header-sub-menus {
  width: 35%;
  opacity: 1;
  pointer-events: auto;
}
.header-sub-menus > ul {
    margin: 0;
}



.header-sub-menus > ul > li {
    list-style: none;
}

.header-sub-menus > ul > li > a {
    font-size: 16px;
    text-decoration: none;
    color: #231f20;
}

li.menu-item-has-children::after {
    width: 16px;
    height: 18px;
    content: '';
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16' fill='none'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M17.5019 7.32295L18.0894 7.91043L11.1497 14.8501L9.97473 13.6751L14.9409 8.70893L0.611398 8.5961L-0.214372 8.5896L-0.227339 6.94291L0.598432 6.94942L14.928 7.06225L9.88294 2.01721L11.0395 0.860595L17.5019 7.32295Z' fill='%23DA1E42'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='16' height='18' fill='white' transform='translate(18) rotate(90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}
li.menu-item-has-children {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.menu-active li.sub-menu {
  padding-left: 8px;
  padding-right: 8px;
}


.header-menus li.has-submenu {
  transition: all 0.3s ease;
}

.header-menus li.has-submenu:hover {
  padding-left: 8px;
  padding-right: 8px;
}

.header-menus li.has-submenu:hover > a {
  color: #DC1E37;
}
.header-menus li.has-submenu.active {
  color: #DC1E37;
  padding-left: 8px;
  padding-right: 8px;
}




.Motori-da-diporto-sub-menus > div > ul > li > a {
  display: none !important;
}


.Motori-da-diporto-sub-menus .sub-menu {
  display: block;
}
.Motori-da-diporto-sub-menus div ul li ul {
    display: flex !important;
    margin: 0;
    flex-direction: column;
    gap: 20px;
}
.Motori-da-diporto-sub-menus div ul li {
    list-style: none !important; 
}
.Motori-da-diporto-sub-menus div ul li ul li a {
    font-size: 16px;
    color: #231F20;
    font-weight: 500;
    text-decoration: none;
}
ul#menu-header-top-menus-1 {
    margin: 0;
}
ul.sub-menu li {
    padding: 15px 0 4px;
    border-bottom: 1px solid rgba(177, 181, 185, 1);
}


.header-sub-menus {
  padding: 0 40px;
  border-left: 1px solid #C6CACC;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.menu-1942-active .header-sub-menus {
  width: 35%;
  opacity: 1;
}


.menu-2010-active .header-sub-menus {
  width: 35%;
  opacity: 1;
}
.menu-2010-active .header-image-background,
.menu-1942-active .header-image-background {
  width: 30%;

}
.Motori-da-diporto-sub-menus div ul li:not(:first-child) ul.sub-menu li {
  display: none;
}

.Motori-profesionale-sub-menus  div ul li ul {
    display: flex !important;
    margin: 0;
    flex-direction: column;
    gap: 20px;
}
.Motori-profesionale-sub-menus  div ul li {
    list-style: none !important; 
}
.Motori-profesionale-sub-menus  div ul li ul li a {
    font-size: 16px;
    color: #231F20;
    font-weight: 500;
    text-decoration: none;
}

.menu-1942-active  .Motori-profesionale-sub-menus {
    display: none !important;
}
.menu-2010-active .Motori-da-diporto-sub-menus {
    display: none;
}
.menu-2010-active .Motori-profesionale-sub-menus {
    display: block !important;
}

.Motori-profesionale-sub-menus > div > ul > li > a {
  display: none !important;
}


.Motori-profesionale-sub-menus .sub-menu {
  display: block;
}
ul#menu-header-top-menus-2 {
    margin: 0;
}
.menu-2010-active li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children.menu-item-1942 {
    display: none;
}
ul.sub-menu li a::after {
    content: '';
    display: inline-block;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='12' viewBox='0 0 11 12' fill='none'%3E%3Cpath d='M10.3298 0H11V8.7738H9.65956V2.49505L1.42143 11.4821L0.946687 12L0 10.9673L0.47474 10.4494L8.71287 1.4623H2.95735V0H10.3298Z' fill='%23DA1E42'/%3E%3C/svg%3E");
    width: 11px;
    height: 12px;
    background-position: center;
    background-repeat: repeat;
}
ul.sub-menu li a {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.mobile-header-content {
    display: none;
    height: calc(100vh - 61px);
    margin-top: 61px;
    position: fixed;
    top: 0;
    background-color: #fff;
    width: 100%;
    z-index: 999;
}
.header-hamburger {
    width: 25%;
}
.dealer-locator {
    width: 25%;
    display: flex;
    justify-content: end;
	gap: 12px;
}
.dealer-locator .global-button {
    transition: all 0.5s ease;
}

ul.sub-menu li:hover {
    padding-right: 8px;
}
ul.sub-menu li {
    transition: all 0.4s ease;
}
.carousel-image-images img {
    border-radius: 4px;
}

.Motori-profesionale-sub-menus > div> ul > li.menu-item.menu-item-type-taxonomy.menu-item-object-product_category.menu-item-has-children.menu-item-1942 {
    display: none !important;
}

.header-bottom-menus > a.dark-button {
	display: none;
}

@media (max-width: 1200px) {
    .header-menus {
        width: 45%;
        padding-right: 15px;
    }
    .header-sub-menus {
        padding: 0 15px;
    }
	.header_right_button_1 {
		display: none !important;
	}
	.header-bottom-menus > a.dark-button {
		margin-top: 8px;
		display: inline-block;
	}
	.header-bottom-menus > a.dark-button span.gb-text {
		color: #231F20 !important;
	}
	body .header-bottom-menus > a.dark-button .gb-shape svg path {
		fill: #000 !important;
	}
}


@media (max-width: 767px) {
    .header-content-open.is-active {
        display: none !important;
    }
    .dealer-locator {
        display: none;
    }

    header {
        padding: 16px 12px;
    }

    .header-left-logo svg {
        width: 107px;
        height: 24px;
    }

    .header-right-logo svg {
        width: 97px;
        height: 24px;
    }

    .header-left-logo {
        padding-right: 10px;
    }

    .header-logos {
        gap: 10px;
    }
    .mobile-header-content.is-active {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 46px 12px 120px;
        gap: 64px;
		overflow: auto;
    }
    .header-social-logos {
        gap: 32px;
    }
    .menu-mobile-header-top-menus-container ul {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .menu-mobile-header-top-menus-container ul li a {
        text-decoration: none;
        font-size: 20px;
        font-weight: 500;
        color: #231F20;
    }
    .menu-mobile-header-top-menus-container ul li {
        padding-bottom: 12px;
        border-bottom: 1px solid #B1B5B9;
        display: flex;
        justify-content: space-between;
    }
    .menu-mobile-header-top-menus-container ul li::after {
        width: 16px;
        height: 18px;
        content: '';
        display: inline-block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: all 0.3s;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16' fill='none'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M17.5019 7.32295L18.0894 7.91043L11.1497 14.8501L9.97473 13.6751L14.9409 8.70893L0.611398 8.5961L-0.214372 8.5896L-0.227339 6.94291L0.598432 6.94942L14.928 7.06225L9.88294 2.01721L11.0395 0.860595L17.5019 7.32295Z' fill='%23DA1E42'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='16' height='18' fill='white' transform='translate(18) rotate(90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    }
    .header-bottom-menus div ul {
        gap: 24px;
    }
    .menu-header-top-menus-container ul {
        margin: 0;
    }
    .Motori-da-diporto-sub-menus {
        margin-top: 61px;
        position: fixed;
        top: 0;
        width: 100%;
        right: -100%;
        background: #Fff;
        overflow: auto;
        z-index: 999;
        height: calc(100vh - 61px);
        transition: all 0.3s ease;
        padding: 34px 12px 120px;
    }
    .Motori-da-diporto-sub-menus.is-open {
        right: 0; 
    }
    .alti-prodoti-sub-menu{
        margin-top: 61px;
        position: fixed;
        top: 0;
        width: 100%;
        right: -100%;
        background: #Fff;
        overflow: auto;
        z-index: 999;
        height: calc(100vh - 61px);
        transition: all 0.3s ease;
        padding: 34px 12px 120px;
    }
    .alti-prodoti-sub-menu.is-open {
        right: 0; 
    }
    button.sub-menu-close-button {
        padding: 0;
        background: unset;
        color: #DC1E37;
        font-size: 16px;
        font-weight: 500;
    }
    button.sub-menu-close-button:hover {
        background-color: transparent;
        color: #DC1E37;
    }
    button.sub-menu-close-button:focus {
        background-color: unset;
    }
    h4.sub-menu-title-mobile {
        font-size: 10px;
        font-weight: 500;
        text-align: end;
        margin: 24px 0;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .Motori-profesionale-sub-menus {
        margin-top: 61px;
        position: fixed;
        top: 0;
        width: 100%;
        right: -100%;
        background: #Fff;
        overflow: auto;
        z-index: 999;
        height: calc(100vh - 61px);
        transition: all 0.3s ease;
        padding: 34px 12px 120px;
    }
    .Motori-profesionale-sub-menus.is-open {
        right: 0 !important; 
    }
    .Motori-profesionale-sub-menus.is-open div ul li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children.menu-item-2010
     {
        display: none;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.is-scrolled, 
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.header-is-open {
        background-color: #ffffff !important;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.header-is-open .header-hamburger svg path {
        fill: #000 !important; 
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.header-is-open a.global-button span,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.is-scrolled a.global-button span {
        color: #000 !important;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .is-scrolled a.global-button .gb-shape svg path{
        fill: #000 !important; 
    }

    header.header-is-open a.global-button .gb-shape {
        display: none;
    }

    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .is-scrolled .header-hamburger svg path,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .header-is-open .header-hamburger svg path {
        fill: #1C1C1C !important;
    }

    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.header-is-open .header-left-logo,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.is-scrolled .header-left-logo {
        border-right: 1px solid #000 !important;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.header-is-open .header-right-logo svg path,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) header.is-scrolled .header-right-logo svg path {
        fill: rgba(28, 28, 28, 1) !important;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .header-right-logo svg path,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .header-right-logo svg path {
        fill: #fff !important;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .header-hamburger svg path {
        fill: #fff !important; 
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) a.global-button span,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) a.global-button span {
        color: #fff !important;
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) a.global-button .gb-shape svg path{
        fill: #fff!important; 
    }
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .header-left-logo,
    :is(.page-id-9, .page-id-238, .page-id-363, .tax-product_category) .header-left-logo {
        border-right: 1px solid #fff !important;
    }
    .menu-mobile-header-top-menus-container ul li .sub-menu {
        display: none;
    }
    .alti-prodoti-sub-menu .menu-mobile-header-top-menus-container ul li .sub-menu {
        display: block;
    }
    .alti-prodoti-sub-menu.is-open div ul .menu-item-840,
    .alti-prodoti-sub-menu.is-open div ul .menu-item-841,
    .alti-prodoti-sub-menu.is-open div ul li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children.menu-item-843 > a {
        display: none;
    }
    .alti-prodoti-sub-menu.is-open div ul li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children.menu-item-843 {
        border: none;
        padding: 0;
    }
    .alti-prodoti-sub-menu.is-open div ul .sub-menu {
        width: 100%;
    }
    .alti-prodoti-sub-menu .menu-mobile-header-top-menus-container ul li::after {
        display: none;
    }
    .alti-prodoti-sub-menu.is-open ul li .sub-menu li a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .sub-menu-close-button::before {
        content: '';
        display: inline-block;
        width: 14px;
        height: 14px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='14' viewBox='0 0 19 14' fill='none'%3E%3Cpath d='M0.587455 7.52715L-3.14583e-05 6.93967L6.93965 -1.59686e-05L8.11462 1.17496L3.14841 6.14117L17.478 6.254L18.3037 6.2605L18.3167 7.90718L17.4909 7.90068L3.16138 7.78785L8.20642 12.8329L7.04981 13.9895L0.587455 7.52715Z' fill='%23DA1E42'/%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }
    button.sub-menu-close-button {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .alti-prodoti-sub-menu li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-1241 {
        display: none;
    }

    .alti-prodoti-sub-menu li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-1242 {
        display: none;
    }

    .alti-prodoti-sub-menu li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children.menu-item-1243 > A {
        display: none;
    }

    .alti-prodoti-sub-menu li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children.menu-item-1243 {
        border: none;
    }
    .alti-prodoti-sub-menu.is-open > div > ul > .menu-item-1895 {
		display: none !important;
	}
	.mobile-header-top-menus .sub-menu {
		display: none;
	}

	.mobile-header-top-menus .sub-menu.is-open {
		display: block;
	}

	.submenu-header {
		display: flex;
		align-items: center;
		gap: 10px;
	}


	.mobile-submenu-wrapper {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		pointer-events: none;
	}


	.mobile-menu-subs {
		position: absolute;
		top: 0;
		left: 100%;
		width: 100%;
		height: 100%;
		background: #fff;
		transition: transform 0.3s ease;
		pointer-events: auto;
	}


	.mobile-menu-subs.is-open {
		transform: translateX(-100%);
	}



	.sub-menu-title-mobile {
		margin: 10px;
	}
	.mobile-menu-subs {
		margin-top: 62px;
		height: calc(100vh - 62px);
		padding: 46px 12px 20px;
		z-index: 9999;
	}

	.mobile-header-top-menus .menu-item > a {
		display: block;
		width: 100%;
	}

	ul.sub-menu {
		margin: 0;
	}

	ul.sub-menu li {
		list-style: none;
	}

	ul.sub-menu li a {
		text-decoration: none;
		font-size: 20px;
		font-weight: 500;
		color: #231F20;
	}

	.mobile-menu-subs.is-open .sub-menu {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.mobile-menu-subs.is-open ul li {
		padding: 0 0 12px 0 !important;
	}
	
	.header-bottom-menus > a.dark-button {
		margin-top: 26px;
	}

}