/**
 * ---- FONTS ----
 **/
/* INTER - scala tipografica (rispecchia i valori impostati in WeltPixel Frontend
   Options: le regole h1-h6 generate da WeltPixel non risultano collegate a nessun
   selettore in questo tema, quindi vengono applicate qui). */
body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
h1 {
    font-size: 56px;
    line-height: 56px;
}
h2 {
    font-size: 48px;
    line-height: 53px;
}
h3 {
    font-size: 32px;
    line-height: 40px;
}
h4 {
    font-size: 24px;
    line-height: 30px;
}
h5 {
    font-size: 14px;
    line-height: 18px;
}
h6 {
    font-size: 12px;
    line-height: 15px;
}
/* BARLOW */
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-ExtraBold.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-BoldItalic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-Bold.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-Light.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-ExtraLightItalic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-ExtraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-Medium.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-ExtraLight.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-Regular.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-Italic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-SemiBoldItalic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-ExtraBoldItalic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-ExtraBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-LightItalic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-SemiBold.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow/Barlow-MediumItalic.woff2') format('woff2'),
        url('../fonts/Barlow/Barlow-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
/* ALTRI */
@font-face {
    font-family: 'BickhamScriptPro-Regular';
    src: url('../fonts/BickhamScriptPro/BickhamScriptPro-Regular.woff2') format('woff2'),
        url('../fonts/BickhamScriptPro/BickhamScriptPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Baskerville BT';
    src: url('../fonts/BaskervilleBT/BaskervilleBT-Italic.woff2') format('woff2'),
        url('../fonts/BaskervilleBT/BaskervilleBT-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face { 
    font-family: 'Cloister';
    src: url('../fonts/CloisterBlack/CloisterBlack.eot');
    src: url('../fonts/CloisterBlack/CloisterBlack.eot?#iefix') format('embedded-opentype'),
        url('../fonts/CloisterBlack/CloisterBlack.woff2') format('woff2'),
        url('../fonts/CloisterBlack/CloisterBlack.woff') format('woff'),
        url('../fonts/CloisterBlack/CloisterBlack.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* TIMES NEW ROMAN */
/*@font-face {
    font-family: 'Times New Roman MT Std';
    src: url('../fonts/TimesNewRoman/TimesNewRomanMTStd.eot');
    src: url('../fonts/TimesNewRoman/TimesNewRomanMTStd.eot?#iefix') format('embedded-opentype'),
         url('../fonts/TimesNewRoman/TimesNewRomanMTStd.woff2') format('woff2'),
         url('../fonts/TimesNewRoman/TimesNewRomanMTStd.woff') format('woff'),
         url('../fonts/TimesNewRoman/TimesNewRomanMTStd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Times New Roman MT Std';
    src: url('../fonts/TimesNewRoman/TimesNewRomanMTStd-Bold.eot');
    src: url('../fonts/TimesNewRoman/TimesNewRomanMTStd-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/TimesNewRoman/TimesNewRomanMTStd-Bold.woff2') format('woff2'),
         url('../fonts/TimesNewRoman/TimesNewRomanMTStd-Bold.woff') format('woff'),
         url('../fonts/TimesNewRoman/TimesNewRomanMTStd-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}*/

/**
 * ---- STYLE ----
 */
/* GENERALE */
body, h1, h2, h3, h4, h5, h6, p, a, span, ul, ol, li, blockquote, input, textarea, select, button, table, th, td {
    font-family: 'Barlow', Arial, sans-serif;
}
.theme-pearl .columns .column.main {
    padding-bottom: 0px;
}
#pre-div {
    z-index: 9;
}
.theme-pearl .cms-home-page-funari-salumi{
    padding-top: 0px;
}
.theme-pearl.checkout-index-index .header.content .minicart-wrapper{
    display: block !important;
}
/* Nasconde l'Immagine della categoria inserita tramite l'admin, quell'immagine mi serve solo per gli opengraph */
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-main .category-image {
    display: none;
}
/* Nasconde gli ordinamenti nelle liste prodotti */
.theme-pearl.page-products[class*="categorypath-prodotti-"] .toolbar-sorter.sorter {
    display: none;
}
/* Nasconde la scelta di visualizzazione prodotti nelle liste prodotti */
.theme-pearl.page-products[class*="categorypath-prodotti-"] .toolbar.toolbar-products .modes {
    display: none;
}
/* Nasconde il prezzo Privato imponibile nella scheda prodotto nel negozio principale */
.theme-pearl.store-view-default.catalog-product-view .product-info-price span.old-price.sly-old-price.no-display {
    display: none !important;
}
.product-items .product-item .tocart{
    border: 1px solid #6f1517!important;
}
/* SWATCHES */
.theme-pearl .swatch-option.text {
    outline: none !important;
    box-shadow: none !important;
}
.theme-pearl .swatch-option.text.selected {
    outline: none !important;
    box-shadow: none;
    background-color: #6f1517;
    color: #f7f7f7;
}
.products-grid .product-item .swatch-attribute-options .swatch-option.text.selected,
.products-grid .filter-options-item .swatch-attribute-options .swatch-option.text.selected,
.products-grid .product-item .swatch-attribute-options .swatch-option.text:hover,
.products-grid .filter-options-item .swatch-attribute-options .swatch-option.text:hover {
    border: 1px solid #999999 !important;
}
.products-grid .swatch-option{
    width: auto !important;
}
.theme-pearl .swatch-option.text {
    padding: 0 8px !important;
}
}
/* fine SWATCHES */

.page-wrapper .page-header .header-global-promo .global-notification-wrapper {
    border-bottom: 0.5px solid #ffffff;
}

/* LOGO */
@media only screen and (max-width: 768px) {
    :root .theme-pearl .page-wrapper .page-header-v3 .mobile-logo .logo img,
    :root .theme-pearl .page-wrapper .page-header-v3 .mobile-checkout-logo .logo img {
        width: auto;
        height: 64px;
        max-height: 64px;
        object-fit: contain;
    }
    :root .theme-pearl .page-wrapper .mobile-logo .logo{
        margin: 0px;
    }
    :root .theme-pearl .page-wrapper .page-header-v3 .header.content {
        position: relative;
    }
    :root .theme-pearl .page-wrapper .page-header-v3 .mobile-logo {
        top: 0;
        height: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }
    :root .theme-pearl .page-wrapper .page-header-v3 .mobile-logo .logo,
    :root .theme-pearl .page-wrapper .page-header-v3 .mobile-checkout-logo .logo {
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 0;
    }
    :root .theme-pearl .page-wrapper .page-header-v3 .mobile-checkout-logo {
        align-items: center;
        justify-content: center;
    }
    /* PROMO BAR - the rotating "SPEDIZIONI GRATUITE / ..." messages were
       running edge-to-edge with almost no clearance from the prev/next
       arrows (which were also just bare, low-contrast font-icon glyphs),
       so long messages visually collided with them. Give the arrows a
       proper visible button and reserve real padding for the text. */
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper .quoteContainer {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        padding: 0 2px;
    }
    /* .notice-inner{width:90%} was narrower than the text column the plugin's
       own JS sizes itself to (item_width = window.innerWidth - 55), and the
       gap between those two numbers grows with viewport width. #slides could
       only center within the narrower 90% box, so it drifted off-centre and
       the rotating message crept further right under the next arrow the
       wider the screen got. Let it use the full row so the two widths match
       and the text stays centred between the arrows at any width. */
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper .notice-inner {
        width: 100% !important;
    }
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper #slides {
        max-width: none !important;
    }
    /* #carousel (position:relative) was the containing block the arrows'
       left/right were measured against, but its own box is inset and
       narrower than the wrapper (via .notice-inner's 90% width), and not
       symmetrically so - any fixed left/right value drifted further out of
       sync with the text column as the viewport grew. Strip its positioning
       so the arrows anchor to .global-notification-wrapper instead, which is
       the true full-width, symmetric box - left/right then stay accurate at
       any viewport width. */
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper {
        position: relative;
    }
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper #carousel {
        position: static !important;
    }
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper .btn-bar #buttons a {
        width: 24px !important;
        height: 24px !important;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.18);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 10px 10px;
        font-size: 0 !important;
        z-index: 20;
        top: 50% !important;
        transform: translateY(-50%);
    }
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper .btn-bar #buttons a:before {
        content: none !important;
    }
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper .btn-bar #buttons #next {
        left: auto !important;
        right: 4px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    }
    .page-wrapper .page-header .header-global-promo .global-notification-wrapper .btn-bar #buttons #prev {
        left: 4px !important;
        right: auto !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
    }
}
/* HEADER */
.nav-sections-3 .section-item-title[aria-controls="store.settings"],
.nav-sections-3 #store\.settings,
#switcher-store {
    display: none !important;
}
.page-header.page-header-v3 header.page-header {
    background: #000000;
}
/* Homepage only: header floats transparent on top of the hero slider */
.cms-index-index .page-wrapper .page-header.page-header-v3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}
.cms-index-index .page-header.page-header-v3 header.page-header {
    background: transparent;
}
html:not(.nav-before-open) .theme-pearl .page-wrapper,
.theme-pearl.product-page-v4 .page-wrapper,
.theme-pearl .page-wrapper {
    overflow-x: clip !important;
}
/* Keep the off-canvas menu outside the shifted page visible on iOS. */
html.nav-before-open .theme-pearl .page-wrapper {
    overflow: visible !important;
}
.page-header.page-header-v3 .panel.wrapper {
    display: none !important;
}
.page-header.page-header-v3 .header.content .header_right .header.links {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0 0 0 16px;
    padding: 0;
}
.page-header.page-header-v3 .header.content .header_right .header.links > li {
    display: flex;
    align-items: center;
    margin: 0 16px 0 0 !important;
}
.page-header.page-header-v3 .header.content .header_right .header.links > li > a {
    color: #FFFFFF !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.page-header.page-header-v3 .header.content .header_right .header.links > li > a:hover {
    color: #CCCCCC !important;
}
.page-header.page-header-v3 .header.content .header_right .header.links .authorization-link > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    color: #FFFFFF !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.page-header.page-header-v3 .header.content .header_right .header.links .authorization-link > a:hover {
    background: rgba(255, 255, 255, 0.1);
}
.page-header.page-header-v3 .header.content .header_right .header.links a[href*="customer/account/create"] {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    margin-left: 10px;
    background: #6F1517;
    color: #FFFFFF !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 3px;
    white-space: nowrap;
}
.page-header.page-header-v3 .header.content .header_right .header.links a[href*="customer/account/create"]:hover {
    background: #8a1a1c;
}
body.wpx-scrolled-86 .page-header.page-header-v3 .header.content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 999 !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(10, 10, 10, 0.85) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    animation: wpx-header-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
body.wpx-scrolled-86.wpx-scrolled-leaving .page-header.page-header-v3 .header.content {
    animation: wpx-header-fade-out 0.26s ease forwards;
}
/* Keep the fixed quick cart relative to the viewport, not the blurred header. */
.theme-pearl .page-wrapper:has(.quickcart-wrapper.active) {
    overflow: visible !important;
}
body.wpx-scrolled-86 .page-header.page-header-v3 .header.content:has(.quickcart-wrapper.active) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    transform: none !important;
}
body.wpx-scrolled-86 .page-header.page-header-v3 .header.content .header_right,
body.wpx-scrolled-86 .page-header.page-header-v3 .header.content .header_right .header.links,
body.wpx-scrolled-86 .page-header.page-header-v3 .header.content .header_right .header.links > li {
    align-items: center !important;
}
body.wpx-scrolled-86 .page-header.page-header-v3 .header.content .header_right .header.links > li > a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: normal !important;
}
body.wpx-scrolled-86:not(.wpx-scrolled-leaving) #maincontent {
    padding-top: 80px;
}
@keyframes wpx-header-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes wpx-header-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
@media (prefers-reduced-motion: reduce) {
    body.wpx-scrolled-86 .page-header.page-header-v3 .header.content,
    body.wpx-scrolled-86.wpx-scrolled-leaving .page-header.page-header-v3 .header.content {
        animation: none;
    }
}
.theme-pearl .page-wrapper .page-header .header.content {
    flex-wrap: unset;
    max-height: 80px;
    min-height: 80px;
    padding-left: 20px !important;
    padding-right: 20px !important;
    /*padding-bottom: 0px;*/
    box-sizing: border-box;
}
@media only screen and (min-width: 768px) {
    .theme-pearl .page-wrapper .page-header-v3 .header.content {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
}
@media only screen and (max-width: 767px) {
    .theme-pearl .page-wrapper .page-header-v3 .header.content .header_right {
        margin-left: unset;
    }
}
@media only screen and (min-width: 768px) {
    :root .theme-pearl .page-wrapper .page-header.sticky-header .logo img {
        transform: translateY(10px);
    }
    body:not(.mobile-nav) .page-header .navigation ul {
        display: flex;
    }
    .theme-pearl.checkout-index-index .page-wrapper .page-header-v3 .header.content{
        display: block !important;
    }
    .opc-progress-bar{
        margin: 40px 0 20px;
    }
    .theme-pearl .page-wrapper .page-header-v3 .header.content .desktop-logo a.logo img{
        width: 340px !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        object-fit: contain;
    }
    .theme-pearl .page-wrapper .page-header-v3 .header.content .desktop-logo {
        align-self: center;
    }
}
body:not(.mobile-nav) .page-header.sticky-header .nav-sections-item-content,
body:not(.mobile-nav) .page-header.sticky-header .navigation {
    background-color: transparent !important;
    margin-left: 4px;
}

/* SUBMENU */
.nav-sections:not(.nav-mobile) .navigation ul.level0.submenu {
    /*margin-top: 1.5px !important;*/
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari li.submenu-child.right-block-child.ui-menu-item {
    padding: 0 !important;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari li.submenu-child.right-block-child.ui-menu-item .menu-block.right-block.block-container {
    width: 450px !important;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container {
    display: flex;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container a {
    display: flex !important;
    padding: 0;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari ul.level0.submenu.sectioned.has-menu-block.right-block-child {
    padding: 2.5rem;
    display: flex;
    align-items: center;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .left-wrapper {
    writing-mode: vertical-rl;
    flex: 0 0 auto;
    transform: rotate(180deg);
    font-size: 16px;
    white-space: nowrap;
    margin-right: 2rem;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .left-wrapper span {
    text-transform: capitalize;
    display: block;
    line-height: 1.4;
    padding: 4px 2px;
    font-family: 'Baskerville BT';
    font-size: 3.5rem;
    color: #555;
}
@media screen and (max-width: 900px){
    .nav-sections:not(.nav-mobile) #menuprincipale-funari li.submenu-child.right-block-child.ui-menu-item .menu-block.right-block.block-container {
        width: 40vw !important;
    }
    .nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .left-wrapper span {
        font-size: 3.0rem;
    }
    .nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .left-wrapper {
        margin-right: 1vw;
    }
}

/* HOMEPAGE + Pagina Prodotti SLIDER */
.homepage-funari-salumi-slider-01 .custom-slider,
.homepage-funari-salumi-slider-01 .custom-slider .owl-carousel .owl-stage-outer,
.pagina-prodotti-funari-salumi-slider .custom-slider .owl-carousel .owl-stage-outer,
.pagina-prodotti-funari-salumi-slider .custom-slider .owl-carousel .owl-stage-outer {
    padding: 0px;
}
.owl-theme .owl-controls .owl-nav [class*=owl-] {
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
    z-index: 15;
}
.owl-theme .owl-controls .owl-nav [class*=owl-].owl-prev {
    left: 16px;
}
.owl-theme .owl-controls .owl-nav [class*=owl-].owl-next {
    right: 16px;
}
.owl-theme .owl-controls .owl-nav [class*=owl-].owl-prev:before,
.owl-theme .owl-controls .owl-nav [class*=owl-].owl-next:before {
    mask-image: unset;
    webkit-mask-image: unset;
    background-color: unset;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    top: 0px;
    left: 0px;
    width: 44px;
    height: 44px;
    transform: none;
}
.owl-theme .owl-controls .owl-nav [class*=owl-].owl-prev:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}
.owl-theme .owl-controls .owl-nav [class*=owl-].owl-next:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}
.owl-theme .owl-controls .owl-nav [class*=owl-]:hover {
    background: rgba(0, 0, 0, 0.55) !important;
}
@media only screen and (max-width: 767px) {
    .owl-theme .owl-controls .owl-nav [class*=owl-] {
        width: 36px;
        height: 36px;
    }
    .owl-theme .owl-controls .owl-nav [class*=owl-].owl-prev,
    .owl-theme .owl-controls .owl-nav [class*=owl-].owl-next {
        left: 10px;
    }
    .owl-theme .owl-controls .owl-nav [class*=owl-].owl-next {
        left: auto;
        right: 10px;
    }
    .owl-theme .owl-controls .owl-nav [class*=owl-].owl-prev:before,
    .owl-theme .owl-controls .owl-nav [class*=owl-].owl-next:before {
        width: 36px;
        height: 36px;
        background-size: 15px 15px;
    }
}
/*
.homepage-funari-salumi-slider-01 .banner-image img {  
    object-fit: cover;
    height: unset;
    min-height: 810px;
}
*/
.theme-pearl.categorypath-prodotti .banner-image img {
    object-fit: cover;
    min-height: 830px;
}
.theme-pearl.categorypath-prodotti .wp-filters.wp-filters-ajax {
    display: none;
}
.theme-pearl.categorypath-prodotti div.columns {
    padding-top: 0px;
}
#layered-filter-block.filter{
    height: 0px;
}
#layered-filter-block.filter.active{
    height: auto !important;
}
@media only screen and (min-width: 1024px) {
    .homepage-funari-salumi-slider-01 .banner-image,
    .theme-pearl.categorypath-prodotti .banner-image {
        display: block;
        max-height: 1080px;
    }
}
@media only screen and (max-width: 600px) {
    .homepage-funari-salumi-slider-01 .banner-image,
    .theme-pearl.categorypath-prodotti .banner-image {
        /*min-height: 700px;*/
    }
}
.page-layout-category-full-width .page-main{
    width: 100% !important;
    max-width: 100% !important;
}

/* FOOTER */
.page-wrapper > .page-bottom{
    width: 100% !important;
    max-width: 100% !important;
    padding: 0px !important;
}

/* RICETTE - LS_Blog (ex Amasty Blog: regole convertite alle classi del modulo LS_Blog)
   Elenco: body.lsblog-index-index | ricetta: body.lsblog-post-view | entrambe: body.ls-blog-page */
@media only screen and (min-width: 769px) {
    .theme-pearl.lsblog-index-index .columns {
        max-width: 90% !important;
    }
    .theme-pearl.lsblog-index-index .page-title-wrapper {
        max-width: 90% !important;
    }
}
/* Menu principale (regole indipendenti dal blog, prima nello stesso blocco) */
@media only screen and (min-width: 769px) {
    .nav-sections .nav-sections-items .section-item-content{
        background-color: transparent;
    }
    .nav-sections:not(.nav-mobile) .navigation li.megamenu.level0 {
        padding-bottom: 22px;
        padding-top: 22px;
    }
}
.theme-pearl.lsblog-index-index .breadcrumbs {
    display: none;
}
.theme-pearl.lsblog-index-index .page-title-wrapper {
    justify-content: center;
    padding: 2vw;
}
.theme-pearl.ls-blog-page .page-title {
    padding-right: 0px;
}
.theme-pearl.lsblog-index-index .page-wrapper {
    background-image: url("/media/theme_customization/pattern.jpg") !important;
    background-position: center !important;
}
.theme-pearl.ls-blog-page .page-wrapper .breadcrumbs {
    background-color: transparent !important;
}

/* Elenco ricette: griglia e schede */
.theme-pearl .ls-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5vw;
}
@media only screen and (max-width: 600px) {
    .theme-pearl .ls-blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}
.theme-pearl .ls-blog-card {
    margin: 0 0 20px;
}
.theme-pearl .ls-blog-card__image img {
    width: 100%;
}
.theme-pearl .ls-blog-card__title {
    margin: 0 0 18px;
    min-height: 56px;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0px;
    text-transform: inherit;
}
.theme-pearl .ls-blog-card__title a {
    color: #505050;
    text-decoration: none;
}
.theme-pearl .ls-blog-card__title a:hover,
.theme-pearl .ls-blog-card__title a:focus {
    color: #1c8429;
}
.theme-pearl .ls-blog-card__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 1px;
    color: #333;
}
.theme-pearl .ls-blog-card__summary p {
    margin-bottom: 0;
}
.theme-pearl .ls-blog-card__footer {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.theme-pearl a.ls-blog-card__more {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 3px;
    background: #1c8429;
    border: 1px solid #ffffff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.theme-pearl a.ls-blog-card__more:hover,
.theme-pearl a.ls-blog-card__more:focus {
    background: #ffffff !important;
    color: #1c8429 !important;
    border: 1px solid #1c8429 !important;
}

/* Pagina ricetta */
.theme-pearl .ls-blog-post__content {
    padding: 0px;
}
.theme-pearl.lsblog-post-view h1.page-title {
    text-transform: inherit;
}
.theme-pearl.lsblog-post-view h1.page-title span {
    letter-spacing: 0px;
}
.theme-pearl .ls-blog-post__content h2 {
    font-size: 16px;
    letter-spacing: 1px;
}
.theme-pearl .ls-blog-post__content p {
    font-size: 16px;
}

/* Titolo Ricette e titolo ricetta: blocco come le altre titolazioni (font nelle TITOLAZIONI UNIFORMI) */
.theme-pearl.ls-blog-page .page-title-wrapper {
    margin: 0;
    padding: 48px 24px 40px;
    text-align: center;
}
.theme-pearl.ls-blog-page .page-title-wrapper h1.page-title {
    margin: 0;
    padding: 0;
    text-align: center;
}
@media only screen and (max-width: 767px) {
    .theme-pearl.ls-blog-page .page-title-wrapper {
        padding: 32px 18px 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .theme-pearl a.ls-blog-card__more {
        transition: none;
    }
}

/* PAGINA PRINCIPALE PRODOTTI */
.catalog-category-view .swatch-attribute.formato_2:before {
    content: "Formato Kg:";
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}
.theme-pearl.categorypath-prodotti .block-static-block.widget {
    margin-bottom: 0px;
}
.pagina-prodotti-funari-salumi-slider .custom-slider {
    padding: 0;
}
.theme-pearl.categorypath-prodotti .page-wrapper .page-main {
    padding: 0;
}
.theme-pearl.categorypath-prodotti .page-wrapper .category-view {
    display: none;
}
.theme-pearl.categorypath-prodotti .page-wrapper div.page-main {
    display: none;
}
.theme-pearl.categorypath-prodotti .sidebar.sidebar-main {
    display: none;
}
.theme-pearl.categorypath-prodotti div.column.main {
    padding-top: 0px;
}

.theme-pearl.categorypath-prodotti .pagina-prodotti-funari-salumi-slider .custom-slider .buttons a.action.primary {
    font-family: 'Cloister', Times, serif;
    /* background: url('/media/theme_customization/sfondo_pattern_alphato.png') center center; */
    /* background-size: cover; */
    /* clip-path: polygon(1% 2%, 3.5% 0.1%, 8.9% 2.7%, 16.2% 1.2%, 19.7% 0.8%, 24.7% 2%, 31.2% 0%, 35.9% 2.3%, 40.6% 0.5%,
        47.1% 1.8%, 49.9% 1%, 53.8% 2.5%, 62.2% 0.4%, 67.3% 1.2%, 70.3% 0.3%, 75.8% 1.4%, 78.5% 1.7%, 84% 2.6%, 91.1% 0.5%,
        93.6% 2.4%, 97.3% 0.3%, 98.9% 6%, 98.1% 11.4%, 98.6% 15.5%, 97.3% 17.8%, 97.7% 27.4%, 98.3% 28.5%, 99.7% 34.1%,
        98.8% 41.9%, 98.3% 45.7%, 98.4% 50.9%, 98.7% 57.4%, 99.6% 60.4%, 99.4% 66.6%, 99.2% 69.5%, 97.4% 77.1%, 98.1% 82.3%,
        99.9% 83.5%, 98.2% 91.5%, 99.3% 95.3%, 98% 98.6%, 93.6% 97.4%, 90.3% 98.3%, 86.8% 98.3%, 78.6% 98.5%, 76.4% 99.2%,
        69.7% 99.8%, 64.2% 99.3%, 61.8% 99.2%, 57.2% 98.1%, 48.7% 98.3%, 46.8% 99%, 39.6% 98.9%, 33.8% 97.3%, 28.2% 99.4%, 27% 98.3%,
        22.1% 98.6%, 13.1% 97.1%, 8.7% 99.3%, 2.7% 97.4%, 2% 98.2%, 2.1% 94.3%, 0.7% 90.5%, 0.9% 86.3%, 2.2% 78.2%, 0.4% 76.7%, 1.2% 72.1%,
        2% 64%, 1.4% 59.8%, 0.4% 57.3%, 0.3% 49.1%, 2.9% 44.7%, 1.9% 41.3%, 0.8% 35.7%, 2.9% 31.3%, 0.8% 24.9%, 2.7% 20.5%,
        0.8% 17.4%, 2.5% 8.6%, 1.1% 5.5%); */
    color: #ffffff !important;
    border: none !important;
    font-size: 5rem;
    line-height: 5rem;
    letter-spacing: 0px;
    margin: 0;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
    background: transparent;
    filter: drop-shadow(4px 4px 4px #000);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 10px;
}
.theme-pearl.categorypath-prodotti .pagina-prodotti-funari-salumi-slider .custom-slider .buttons a.action.primary:after {
    content: "";
    background: url('/media/theme_customization/icon-arrow-up_white.png') no-repeat center;
    width: 16px;
    height: 40px;
    display: block;
    position: relative;
    animation: popUp 1s ease-in-out infinite;
    filter: drop-shadow(4px 4px 4px black);
    margin: 1rem 0px;
    background-size: contain;
}
@keyframes popUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media only screen and (min-width: 992px) {
    .theme-pearl.categorypath-prodotti .pagina-prodotti-funari-salumi-slider .custom-slider .buttons a.action.primary {
        font-size: 5vw;
        line-height: 5vw;
        padding: 1vw;
    }
}
.theme-pearl.categorypath-prodotti .owl-carousel .banner-item .content_slider {}

.theme-pearl.categorypath-prodotti .pagina-prodotti-funari-salumi-slider .owl-carousel .banner-item .content_slider {
    top: 46% !important;
    transform: translateY(-50%);
}
.hp-newsletter-v1 button.subscribe{
    width: 100%;
    margin-top: 2px;
    background-color: #6f1517;
    border: 1px solid #6f1517;
}

@media (max-width: 768px) {
    .why-funari-salumi h1 {
        padding: 30px 20px 10px 20px !important;
        font-size: 36px !important;
        line-height: 1.1;
        text-align: left;
    }
    .why-funari-salumi .why-funari-salumi-section-01 {
        font-size: 15px !important;
        padding: 10px 20px !important;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .why-funari-salumi h1 {
        padding: 20px 15px 10px 15px !important;
        font-size: 28px !important;
    }
    .why-funari-salumi .why-funari-salumi-section-01 {
        font-size: 14px !important;
        padding: 8px 15px !important;
    }
}

/* SCHEDA PRODOTTO */
.theme-pearl.page-product-configurable button#product-addtocart-button {
    border: 1px solid #6f1517;
}
@media (min-width: 768px) {
    .theme-pearl.product-page-v2 .product-top-main.product_v2 {
        margin-top: 40px;
    }
}
.theme-pearl.page-product-configurable td[data-th="Valori nutrizionali medi"] > table thead tr th  {
    display: table-cell !important;
    padding: 8px !important;
    background-color: #f2f2f2 !important;
    border-bottom: 1px solid #000000 !important;
}
.theme-pearl.page-product-configurable td[data-th="Valori nutrizionali medi"] table > tbody > tr td {
    display: table-cell !important;
}
.theme-pearl.page-product-configurable td[data-th="Valori nutrizionali medi"] table > tbody > tr td:last-child {
    border-bottom: 1px solid #000000 !important;
}
.theme-pearl.page-product-configurable .table-wrapper table.additional-attributes > tbody > tr td[data-th]:before {
    text-transform: uppercase;
}
.theme-pearl.page-product-configurable .table-wrapper table.additional-attributes > tbody > tr {
    padding: 5px 0px;
}
.theme-pearl.page-product-configurable .icona-attributo {
    background-size: 35px 35px;
    background-repeat: no-repeat;
    height: 35px;
    width: 35px;
    display: inline-block;
    float: left;
    opacity: 1;
    margin-right: 20px;
    padding: 0 !important;
    /*-webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;*/
}
.theme-pearl.page-product-configurable .i-a-ingredienti {
    background-image: url('/media/theme_customization/icone-attributi/ingredienti.png');
}
.theme-pearl.page-product-configurable .i-a-imballo {
    background-image: url('/media/theme_customization/icone-attributi/imballo.png');
}
.theme-pearl.page-product-configurable .i-a-shelf-life {
    background-image: url('/media/theme_customization/icone-attributi/shelf_life.png');
}
.theme-pearl.page-product-configurable .i-a-caratteristiche-org {
    background-image: url('/media/theme_customization/icone-attributi/caratteristiche_org.png');
}
.theme-pearl.page-product-configurable .i-a-allergeni {
    background-image: url('/media/theme_customization/icone-attributi/allergeni.png');
}
.theme-pearl.page-product-configurable .i-a-ogm {
    background-image: url('/media/theme_customization/icone-attributi/ogm.png');
}
.theme-pearl.page-product-configurable .i-a-valori-nutrizionali-medi {
    background-image: url('/media/theme_customization/icone-attributi/valori_nutrizionali_medi.png');
}
/* SWATCH OPTIONS */
.theme-pearl.catalog-product-view .swatch-option.text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 1.5rem;
}
.theme-pearl.catalog-product-view .swatch-option.text:before {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

/* CARRELLO */
.popup-authentication .block-authentication .block-new-customer .action.primary span,
.popup-authentication .block-authentication .block-customer-login .action.primary span{
    text-transform: uppercase;
}
.theme-pearl .block.block-minicart .quickcart-content-wrapper button.action span, .theme-pearl .block.block-minicart button.action.primary span{
    font-size: 16px;
}

/* BARRA COOKIE - LS_Cookie (ex Amasty GDPR Cookie: regole convertite alle classi del modulo).
   Colori e testi dei pulsanti si impostano in admin: Contenuti > Cookie e consenso > Configurazione. */
#ls-cookie .ls-cookie-bar__text {
    max-width: 100%;
    padding-right: 60px;
    box-sizing: border-box;
}
#ls-cookie .ls-cookie-bar__actions .ls-cookie-btn {
    flex-basis: auto;
}
#ls-cookie .ls-cookie-bar__close {
    z-index: 2;
}

/* PAGINE DI CATEGORIA */
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper {
    text-align: center;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title {
    margin: 3rem 0px;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title span {
    font-family: 'Cloister', Times, serif;
    text-transform: capitalize;
    font-size: 3.5vw;
    line-height: 3.5vw;
    color: #1c842a;
    letter-spacing: 1rem;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: keep-all;
    white-space: normal !important;
}
.btt-button{
    background: #6f1517;
}
@media only screen and (max-width: 992px) {
    .theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title span {
        font-size: 4rem;
        line-height: 4rem;
    }
    #layered-filter-block.filter-content .filter-options .filter-options-item {
        width: 100% !important;
    }
}
@media only screen and (max-width: 479px) {
    .page-products .products-grid .product-item {
        width: 100% !important;
    }
}

/* BARRA COOKIE - MOBILE FIX (LS_Cookie)
   The bar must stay pinned to the viewport bottom (never in the document flow:
   focusing its buttons would scroll the page and drag the sticky header) and
   scroll internally when the text is taller than the screen. */
@media only screen and (max-width: 999px) {
    #ls-cookie .ls-cookie-bar {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* MOBILE/TABLET/LAPTOP HEADER - below ~1400px the single-row header (logo +
   full nav + account links + search) no longer fits on one line; the account
   links block was overflowing off-screen invisibly instead of wrapping.
   Hide it in that whole range (account access remains via the burger menu
   on narrow screens, and via /customer/account/login directly otherwise)
   until the row gets a proper wrap/compact treatment. */
@media only screen and (max-width: 1399px) {
    .page-header.page-header-v3 .header.content .header_right .header.links {
        display: none !important;
    }
}

/* MOBILE HERO - the title/subtitle/buttons block used top:50% centering,
   which on short mobile hero crops collided with the fixed header above it.
   Anchor it near the bottom of the slide instead and scale text down. */
@media only screen and (max-width: 767px) {
    .homepage-funari-salumi-slider-01,
    .homepage-funari-salumi-slider-01 .custom-slider,
    .homepage-funari-salumi-slider-01 .owl-carousel,
    .homepage-funari-salumi-slider-01 .owl-stage-outer,
    .homepage-funari-salumi-slider-01 .owl-stage,
    .homepage-funari-salumi-slider-01 .owl-item,
    .homepage-funari-salumi-slider-01 .banner-image,
    .homepage-funari-salumi-slider-01 .banner-image img {
        min-height: 620px;
    }
    .hero-intro-content {
        top: 58% !important;
        bottom: auto !important;
        left: 56px !important;
        right: 56px !important;
        transform: translateY(-50%) !important;
        max-width: none;
    }
    .hero-intro-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    .hero-intro-title .hero-line {
        white-space: nowrap !important;
    }
    .hero-intro-subtitle {
        font-size: 19px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    .hero-intro-tagline {
        font-size: 17px !important;
        margin-bottom: 16px !important;
    }
    .hero-intro-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .hero-intro-buttons .hero-btn {
        padding: 16px 24px !important;
        font-size: 16px !important;
        justify-content: center !important;
    }
}

/* HERO BUTTONS - typography.less sets a:visited { color: #000 }, which beats
   the plain .hero-btn-* classes from the CMS block, so once a visitor had
   opened the link (e.g. /customer/account/create) the label turned black. */
a.hero-btn-primary,
a.hero-btn-primary:visited,
a.hero-btn-primary:hover,
a.hero-btn-primary:focus,
a.hero-btn-outline,
a.hero-btn-outline:visited,
a.hero-btn-outline:hover,
a.hero-btn-outline:focus {
    color: #ffffff;
    text-decoration: none;
}

/* PRODOTTI INTRO - the CMS block centers the subtitle with margin: 0 auto,
   but the theme's .block p:last-child { margin: 0 } is more specific and
   left it stuck to the left edge of the header box. */
.ppc2 .ppc2-header .ppc2-subtitle {
    margin: 0 auto;
}

/* CONTACT PAGE ICONS - the icon-4x glyphs (56px) inherited a 22px
   line-height, so they stuck out above their line box and the
   overflow:auto contact container clipped their top. */
.container-wpx-contact i[class*="icon-"] {
    display: inline-block;
    line-height: 1;
}
@media only screen and (max-width: 991px) {
    .container-wpx-contact .col-md-4 + .col-md-4 {
        margin-top: 36px;
    }
}

/* WHATSAPP CHAT BUTTON - the module's default "bottom-left" position sits
   flush against both edges (left:0, bottom:0), so the floating button looked
   stuck to the corner of the screen. Give it normal floating-button breathing
   room. */
#whatsappchat a.bottom-left {
    left: 16px !important;
    bottom: 16px !important;
}
/* Account navigation: readable labels and consistent interactive contrast. */
.account .sidebar-main .block-collapsible-nav .item > a,
.account .sidebar-main .block-collapsible-nav .item > strong,
.account .sidebar-main .account-nav .item > a,
.account .sidebar-main .account-nav .item > strong {
    display: block;
    box-sizing: border-box;
    padding: 12px 18px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
    color: #333333;
    white-space: normal;
    overflow-wrap: break-word;
}
.account .sidebar-main .block-collapsible-nav .item > a:hover,
.account .sidebar-main .block-collapsible-nav .item > a:focus-visible,
.account .sidebar-main .account-nav .item > a:hover,
.account .sidebar-main .account-nav .item > a:focus-visible {
    color: #222222;
    background: #e7e7e7;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.account .sidebar-main .block-collapsible-nav .item > a:focus-visible,
.account .sidebar-main .account-nav .item > a:focus-visible {
    outline: 2px solid #6f1517;
    outline-offset: -2px;
}
.account .sidebar-main .block-collapsible-nav .item.current > a,
.account .sidebar-main .block-collapsible-nav .item.current > strong,
.account .sidebar-main .account-nav .item.current > a,
.account .sidebar-main .account-nav .item.current > strong {
    color: #111111;
    font-weight: 700;
    border-left: 3px solid #6f1517;
    background: #f3eaea;
}

/* Space the shared category section below all customer account pages. */
.account .ls-account-excellence {
    margin-top: 40px;
    clear: both;
    width: 100%;
    background: #FFFFFF;
}
.account .ls-account-excellence .wpx-excellence {
    background: #FFFFFF;
}

/* Keep headings and body copy proportionate on small account screens. */
@media (max-width: 767px) {
    .account .column.main {
        font-size: 16px;
        line-height: 1.55;
        letter-spacing: normal;
    }
    .account .column.main h2 {
        font-size: 24px;
        line-height: 1.25;
        letter-spacing: normal;
    }
    .account .column.main .account-message.custom-message {
        padding: 20px 16px;
    }
    .account .column.main .account-message h2 {
        margin: 0 0 16px;
        text-transform: none;
    }
    .account .column.main p,
    .account .column.main address,
    .account .column.main .box-content,
    .account .column.main .promo-box {
        font-size: 16px;
        line-height: 1.55;
        letter-spacing: normal;
    }
    .account .column.main .promo-box {
        padding: 14px;
    }
    .account .column.main .block .block-title > strong {
        font-size: 20px !important;
        line-height: 1.35;
        letter-spacing: normal;
    }
    .account .column.main .box .box-title > span {
        font-size: 18px !important;
        line-height: 1.4;
        letter-spacing: normal;
    }
}

@media (max-width: 767px) {
    .account .column.main .account-message h2 {
        text-transform: uppercase;
    }
    .account .column.main .customer-taxvat,
    .account .column.main .customer-taxvat *,
    .account .column.main .box-content a,
    .account .column.main .box-content span,
    .account .column.main .box-content div,
    .account .column.main address *,
    .account .column.main .box-actions a,
    .account .column.main .box-actions a span,
    .account .column.main .block-title > .action {
        font-size: 16px !important;
        line-height: 1.55;
        letter-spacing: normal;
    }
    .account .sidebar-main .block-collapsible-nav > .title {
        box-sizing: border-box;
        min-height: 54px;
        padding: 12px 132px 12px 15px;
        border: 1px solid #6f1517;
        border-radius: 4px;
        background: #f3eaea;
        color: #6f1517;
        cursor: pointer;
    }
    .account .sidebar-main .block-collapsible-nav > .title strong {
        display: block;
        margin: 0;
        font-size: 18px;
        line-height: 28px;
        letter-spacing: normal;
    }
    .account .sidebar-main .block-collapsible-nav > .title::before {
        content: 'Apri menù';
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        font-weight: 600;
        letter-spacing: normal;
    }
    .account .sidebar-main .block-collapsible-nav > .title.active::before {
        content: 'Chiudi';
    }
    .account .sidebar-main .block-collapsible-nav > .title::after {
        content: '';
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        right: 18px;
        top: 50%;
        margin: -7px 0 0;
        transform: rotate(45deg);
    }
    .account .sidebar-main .block-collapsible-nav > .title.active::after {
        margin-top: -2px;
        transform: rotate(225deg);
    }
}

/* Let the media shrink to leave the vertical category label its full width. */
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .right-wrapper {
    min-width: 0;
}

/* Stable image preview for the product megamenu. */
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .menu-category-preview-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.nav-sections:not(.nav-mobile) #menuprincipale-funari .megamenu-custom-block-container .right-wrapper {
    flex: 1 1 0%;
}

body.catalog-product-view.page-product-bundle .bundle-options-container .field.qty{
    margin: 0px !important;
    padding: 0px !important;
}

/* Carrello: "−", quantità e "+" sempre sulla stessa riga */
.checkout-cart-index #shopping-cart-table td.col.qty .control-qty-plus-minus label {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 4px;
}
.checkout-cart-index #shopping-cart-table td.col.qty .control-qty-plus-minus .qty-update-plus-minus {
    flex: 0 0 auto;
    margin: 0 !important;
}
.checkout-cart-index #shopping-cart-table td.col.qty .control-qty-plus-minus input.qty {
    flex: 0 0 auto;
    margin: 0 !important;
}
@media (min-width: 768px) {
    .checkout-cart-index #shopping-cart-table td.col.qty {
        white-space: nowrap;
        min-width: 140px;
    }
}

/* TITOLAZIONI UNIFORMI - stile 1 (Cloister, centrato) */
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title span,
.theme-pearl.ls-blog-page .page-title-wrapper h1.page-title span {
    font-family: 'Cloister', Times, serif;
    font-weight: 400;
    text-transform: none;
    color: #1c842a;
    letter-spacing: 0;
    font-size: clamp(42px, 4.5vw, 112px);
    line-height: 1.08;
}

.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title {
    text-align: center;
}

@media only screen and (max-width: 992px) {
    .theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title span,
    .theme-pearl.ls-blog-page .page-title-wrapper h1.page-title span {
        font-size: clamp(36px, 8vw, 64px);
        line-height: 1.1;
    }
}

/* BLOCCO TITOLO CATEGORIA (sottocategorie di Prodotti + Regali di Natale)
   Il div.page-main che contiene .page-title-wrapper viene reso a tutta
   larghezza senza padding: il blocco crema occupa l'intera viewport senza
   offset negativi e titolo + descrizione restano centrati sull'asse pagina. */
.theme-pearl.page-products[class*="categorypath-prodotti-"] div.page-main,
.theme-pearl.page-products.category-regali div.page-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgb(245, 241, 232);
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] div.page-main > .page.messages,
.theme-pearl.page-products.category-regali div.page-main > .page.messages {
    padding: 0 15px;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper,
.theme-pearl.page-products.category-regali .page-title-wrapper {
    position: static;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 72px 24px;
    box-sizing: border-box;
    background: rgb(245, 241, 232) !important;
    text-align: center;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title,
.theme-pearl.page-products.category-regali .page-title-wrapper h1.page-title {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    text-align: center;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title::after,
.theme-pearl.page-products.category-regali .page-title-wrapper h1.page-title::after {
    content: none;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title span,
.theme-pearl.page-products.category-regali .page-title-wrapper h1.page-title span,
.theme-pearl.ls-blog-page .page-title-wrapper h1.page-title span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 400;
    color: #231f1b;
    letter-spacing: 0;
    text-transform: none;
}
.theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper .category-description,
.theme-pearl.page-products.category-regali .page-title-wrapper .category-description {
    position: static;
    left: auto;
    width: 100%;
    max-width: 700px !important;
    margin: 22px auto 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    color: #6d6c66;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: .04em;
    text-align: center;
}
@media only screen and (max-width: 768px) {
    .theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper,
    .theme-pearl.page-products.category-regali .page-title-wrapper {
        padding: 52px 18px;
    }
    .theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper h1.page-title span,
    .theme-pearl.page-products.category-regali .page-title-wrapper h1.page-title span,
    .theme-pearl.ls-blog-page .page-title-wrapper h1.page-title span {
        font-size: clamp(36px, 10vw, 56px);
    }
    .theme-pearl.page-products[class*="categorypath-prodotti-"] .page-title-wrapper .category-description,
    .theme-pearl.page-products.category-regali .page-title-wrapper .category-description {
        font-size: 16px;
    }
}


/* PRODOTTI (blocco CMS blocco_pagina_prodotti, .ppc2): intestazione con lo
   stesso stile del blocco titolo delle sottocategorie/Ricette/Azienda.
   Sovrascrive lo <style> inline del blocco CMS. */
.theme-pearl .ppc2 {
    background: rgb(245, 241, 232);
    padding: 0 0 60px;
}
.theme-pearl .ppc2 .ppc2-header {
    max-width: none;
    margin: 0;
    padding: 72px 24px;
    text-align: center;
}
.theme-pearl .ppc2 .ppc2-header .ppc2-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 400;
    color: #231f1b;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}
.theme-pearl .ppc2 .ppc2-header .ppc2-subtitle {
    display: block;
    max-width: 700px;
    margin: 22px auto 0;
    color: #6d6c66;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: .04em;
    text-align: center;
}
@media only screen and (max-width: 768px) {
    .theme-pearl .ppc2 .ppc2-header {
        padding: 52px 18px;
    }
    .theme-pearl .ppc2 .ppc2-header .ppc2-title {
        font-size: 28px !important;
    }
    .theme-pearl .ppc2 .ppc2-header .ppc2-subtitle {
        font-size: 16px;
    }
}

/* AZIENDA e LA NOSTRA STORIA (CMS) - "Chi siamo oggi" / "Dal 1952...": stessa tipografia del titolo categoria/Ricette */
.theme-pearl.cms-azienda .azienda-header-wrapper,
.theme-pearl.cms-la-nostra-storia .story-header-wrapper {
    text-align: center;
}
.theme-pearl.cms-azienda .azienda-header-wrapper h2.h-title,
.theme-pearl.cms-la-nostra-storia .story-header-wrapper h2.h-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 400;
    color: #231f1b;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}
.theme-pearl.cms-azienda .azienda-header-wrapper .h-sub-title,
.theme-pearl.cms-la-nostra-storia .story-header-wrapper .h-sub-title {
    display: block;
    margin: 22px auto 0;
    color: #6d6c66;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: .04em;
    text-align: center;
}
@media only screen and (max-width: 768px) {
    /* allineato alla scala mobile del tema per gli H1 (28px), come i titoli categoria */
    .theme-pearl.cms-azienda .azienda-header-wrapper h2.h-title,
    .theme-pearl.cms-la-nostra-storia .story-header-wrapper h2.h-title {
        font-size: 28px !important;
    }
    .theme-pearl.cms-azienda .azienda-header-wrapper .h-sub-title,
    .theme-pearl.cms-la-nostra-storia .story-header-wrapper .h-sub-title {
        font-size: 16px;
    }
}

/* CONTATTACI - titoli "Informazioni" e "Contattaci": stessa tipografia dei titoli categoria/Prodotti/Ricette/Azienda */
.theme-pearl.contact-index-index .contact-v2 h1.contact-details,
.theme-pearl.contact-index-index .contact-v2 h1.title-contact {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 400;
    color: #231f1b;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}
@media only screen and (max-width: 768px) {
    .theme-pearl.contact-index-index .contact-v2 h1.contact-details,
    .theme-pearl.contact-index-index .contact-v2 h1.title-contact {
        font-size: 28px !important;
    }
}

/* PUNTI VENDITA - blocco titolo con lo stesso stile di Azienda / La nostra storia */
.theme-pearl.cms-punti-vendita .page-title-wrapper {
    margin: 0;
    padding: 60px 24px;
    text-align: center;
}
.theme-pearl.cms-punti-vendita .page-title-wrapper h1.page-title {
    margin: 0;
    padding: 0;
    text-align: center;
}
.theme-pearl.cms-punti-vendita .page-title-wrapper h1.page-title,
.theme-pearl.cms-punti-vendita .page-title-wrapper h1.page-title span {
    /* !important: il LESS di LS_Maps forza Cloister 3.5vw con !important */
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 56px !important;
    line-height: 1.08;
    font-weight: 400;
    color: #231f1b;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
@media only screen and (max-width: 768px) {
    .theme-pearl.cms-punti-vendita .page-title-wrapper {
        padding: 40px 18px;
    }
    .theme-pearl.cms-punti-vendita .page-title-wrapper h1.page-title,
    .theme-pearl.cms-punti-vendita .page-title-wrapper h1.page-title span {
        font-size: 28px !important;
    }
}

/* MAPPA PUNTI VENDITA (LS_Maps) - il box "Cerca clienti..." è sticky solo dentro
   la sidebar: con z-index 10/1000 finiva sopra l'header fisso (stacking context
   .page-header z-index 10). Basta stare sopra l'elenco della sidebar. */
#mappa-sidebar .cerca-autocomplete {
    z-index: 2 !important;
}
