/*
Theme Name: ABTM
Author: The Box srl
Author URI: https://theboxitaly.com
Version: 1.0
*/

/*
Index

  Site wide
  Typography
  Header
  Footer
  Pulsanti

  Pagine
    Home
      Slider home
      Sezione Step
      Scrolling Text
      Steps
    Full Image
    Eventi e news
    Progetti ricerca e sviluppo
    Consorzio
    Visita acetaia

  Default template
  Single ricetta
  Single Article
  Single progetto
  Time line

  Moduli
    Modulo Titolo Testo
    Modulo Faq
    Gallery
    Galleria loghi

  Gradient background
*/


/* Site Wide */
@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1360px;
    }

    .col-xxl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

}

.otgs-development-site-front-end {
    display: none;
}

body {
    background-color: var(--wp--preset--color--abtm-nero, #140D0A);
    font-family: 'Jost', sans-serif;
}

#content.site-content {
    padding: 0;
}


.page-id-177 #content.site-content,
.page-id-2316 #content.site-content,
.page-template-template-default #content.site-content,
.single #content.site-content,
.page-template-default #content.site-content,
.error404 #content.site-content,
.search #content.site-content,
.post-type-archive-progetti #content.site-content {
    padding-top: 280px;

    .row {
        margin-left: 0;
    }
}

@media screen and (max-width: 767px) {

    .page-id-177 #content.site-content,
    .page-id-2316 #content.site-content,
    .page-template-template-default #content.site-content,
    .single #content.site-content,
    .page-template-default #content.site-content,
    .error404 #content.site-content,
    .search #content.site-content,
    .post-type-archive-progetti #content.site-content {
        padding-top: 180px;
    }

}

#content>.row {
    margin-right: 0;
    justify-content: center;
}

@media screen and (max-width: 767px) {}

.site {
    position: relative;
    overflow: hidden;
}

.button-main {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    border: 1px solid rgba(184, 162, 88, 0.4);
    text-transform: uppercase;
    padding: 9px 30px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 300;
    font-size: 15px;
    transition: all .2s ease-in;
}

.button-main.inverted {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
}

.button-main:hover,
.button-main.inverted {
    background-color: var(--wp--preset--color--abtm-oro, #B8A258);
    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
    text-decoration: none;
}

.button-main::after {
    background-image: url(inc/assets/images/arrow-right.png);
    background-repeat: no-repeat;
    width: 16px;
    height: 18px;
    display: inline-block;
    content: '';
    margin-left: 25px;
    vertical-align: middle;
    transition: all .2s ease-in;
}

.button-main:hover::after,
.button-main.inverted::after {
    filter: brightness(0%);
}

body.noscroll {
    overflow: hidden;
}

.iniziative-container:has(.abtm-no-results) {
    /* Override inline-grid when showing no results */
    display: block;
    margin-top: 70px;
}

.abtm-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    text-align: center;
}

.abtm-no-results p {
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* Typography */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
}

h1 {
    font-size: 60px;
    font-weight: 400;

}

h2 {
    font-size: 38px;
    font-weight: 400;

}

h3 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 8px;
}

h4 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 5px;
}

p {
    font-size: 22px;
    font-weight: 400;
}

a {
    text-transform: uppercase;
}

.news-cta a {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    font-size: inherit;
    text-transform: uppercase;
}

p a {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    font-size: inherit;
    text-transform: none;
    text-decoration: underline;
}

p a:hover {
    color: var(--wp--preset--color--abtm-bianco, #fff);
    padding: 0 6px;
    margin: 0 -6px;
    transition: background-color 0.4s ease;
    background-color: rgba(184, 162, 88, 0.5);
}

ul br,
ol br {
    display: none;
}

.nav>li>a:focus,
.nav>li>a:hover {
    text-decoration: underline;
    background-color: transparent;
}

nav a,
.widget_nav_menu a {
    text-decoration: none !important;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown-click a:focus,
.wpml-ls-legacy-dropdown-click a:hover {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 23px;
        letter-spacing: 5px;
    }

    h4 {
        font-size: 16px;
    }

    p {
        font-size: 16px;
    }
}

/* Header */

header#masthead {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    padding: 40px;

}

header#masthead:not(.sticky) {
    transform: none !important;
    z-index: unset;
}


.navbar {

    position: fixed;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: #E2DACA;
    z-index: 2;

}

.navbar.open {
    -webkit-animation: slide 0.5s forwards;
    animation: slide 0.5s forwards;
}

@-webkit-keyframes slide {
    100% {
        left: 0;
    }
}

@keyframes slide {
    100% {
        left: 0;
    }
}

.navbar .submenu-container {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding-top: 10%;

    &.right-column {
        flex-wrap: wrap;
    }

    ul,
    .main-menu-actions-container {
        padding: 0 0 0 25%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-content: stretch;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 20px;
    }

    .main-menu-actions-container {
        flex-direction: row;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 50px;
        padding-right: 15%;

        .social-menu {
            display: flex;
            gap: 25px;
        }

        .language-switcher ul li a {
            color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
        }
    }

    ul.menu li {
        list-style: none;

        a {

            font-size: 32px;
            color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
            letter-spacing: 10px;
            display: inline-block;
            align-items: center;
            padding-left: 0;
            position: relative;
            background-color: #E2DACA;

            &:hover {
                color: var(--wp--preset--color--abtm-oro, #B8A258);
                transition: color .2s ease-in-out;

                &:before {}
            }

            &:before {
                left: -32px;
                content: "";
            }
        }
    }

    ul.menu li {
        display: flex;
        align-items: center;
        overflow-x: clip;
        position: relative;
        height: 67px;
        width: 100%;

        .item-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .item-wrapper::after {
            content: '';
            display: block;
            width: 0;
            height: 2px;
            background: var(--wp--preset--color--abtm-oro, #B8A258);
            transition: width .2s ease-in;
            position: absolute;
            bottom: 0;
        }

        a {}

        .menu-arrow {
            transition: left .5s ease-in-out;
            background: url(inc/assets/images/menu-arrow.png) no-repeat;
            background-size: contain;
            width: 32px;
            height: 29px;
            display: inline-block;
            margin-right: 20px;
            overflow-x: clip;
            opacity: 1;
            position: absolute;
        }

        &.active {
            a {
                color: var(--wp--preset--color--abtm-oro, #B8A258);
                padding: 0;
                padding-bottom: 15px;


            }

            .item-wrapper::after {
                width: 100%;
            }

            .menu-arrow {
                transform: rotate(-45deg);
                transition: transform .2s ease-in-out;
            }
        }


    }

    ul.menu li .item-wrapper:hover a {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
    }

    .main-menu {
        flex-wrap: wrap;
        align-content: flex-start;
        padding-bottom: 0px;
        width: 100%;
        display: flex !important;
    }

    .secondary-menu {
        align-content: flex-start;
        flex-wrap: wrap;
        display: flex !important;
    }

    .secondary-menu ul li a {
        font-size: 22px;
        color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
        letter-spacing: 5px;
        text-transform: none;
    }
}

.button-menu-container {
    position: relative;
    width: 40px;
    height: 36px;
    top: 2px;
    display: flex;
    margin-right: auto;
    justify-content: flex-start;
    flex: 1;
    z-index: 3;
    align-items: center;
}

#menu-secondary-menu li>ul {
    display: none;
}

.dropdown-toggle::after {
    transform: rotate(-90deg);
}

.social-menu a i {
    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
    font-size: 26px;
}

.navbar .submenu-container.right-column {
    background-color: var(--wp--preset--color--abtm-oro, #B8A258);
    right: -150vw;

    .right-menu-container {
        display: none;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;

        &.show {
            display: flex;
            height: 100%;
            justify-content: flex-start;
            flex-wrap: wrap;
            flex-direction: column;
            padding-top: 10px;
        }

        ul {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0;
            list-style: none;
            gap: 54px;

            li {
                a {
                    font-size: 22px;
                    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
                    letter-spacing: 5px;
                    text-transform: none;
                }
            }
        }
    }
}

#hamburger-menu {
    position: relative;
    width: 40px;
    height: 36px;
    top: 2px;
    display: flex;
    margin-right: auto;
    justify-content: flex-start;
    flex: 1;
    z-index: 3;
    align-items: center;
}

#hamburger-menu:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

#hamburger-menu.closed {
    transition: transform .5s ease-in-out;
    transition-delay: .3s;
}

#hamburger-menu.closed .icon-bar.top-bar {
    top: 0;
    width: 40px;
    opacity: 1;
}

#hamburger-menu .icon-bar {
    position: absolute;
    display: block;
    height: 2px;
    width: 100%;
    background: var(--wp--preset--color--abtm-bianco, #fff);
    transition: all .3s ease-in-out;
}

#hamburger-menu.closed .icon-bar.middle-bar {
    top: 50%;
    width: 40px;
    opacity: 1;
}


#hamburger-menu.closed .icon-bar.bottom-bar {
    width: 25px;
    top: 100%;
    opacity: 1;
}


#hamburger-menu.navbar-toggler.show {
    position: absolute;
    padding: 15px 0 !important;
}

#hamburger-menu.show .icon-bar {
    background: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
}

#hamburger-menu.show .icon-bar.top-bar {
    transform: rotate(45deg);
    width: 40px;
}

#hamburger-menu.show .icon-bar.middle-bar {
    left: -100px;
}

#hamburger-menu.show .icon-bar.bottom-bar {
    width: 40px;
    transform: rotate(-45deg);
}

#hamburger-menu .menu-label {
    color: var(--wp--preset--color--abtm-bianco, #fff);
    margin-left: 55px;
    font-size: 18px;
    text-transform: uppercase;
}

#hamburger-menu.show .menu-label {
    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);

}

.navbar-brand {
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    z-index: 1;

    a {
        text-align: center;
    }
}

.right-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    color: var(--wp--preset--color--abtm-bianco, #fff);
    margin-left: auto;
    justify-content: flex-end;
    flex: 1;
    z-index: 1;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle span {
    font-size: 18px;
    display: block;
    width: 100%;
    text-align: right;
}

.wpml-ls-legacy-dropdown-click {
    width: 3.7em;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
    position: relative;
    padding-right: calc(10px + 1em);
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.wpml-ls-legacy-dropdown-click a {
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    border: none;
    background-color: transparent;
    padding: 5px 0;
    font-size: 18px;

}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after,
.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle::before {
    content: "";
    vertical-align: middle;
    display: inline-block;
    border: none;
    border-right: 2px solid;
    position: absolute;
    right: 10px;
    top: 50%;
    height: 8px;
    width: 0;
    transform: rotate(45deg);
    margin-top: -8px;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after {
    margin-top: -8px;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(135deg);
    right: 15px;
}

header#masthead.sticky {
    position: fixed;
    z-index: 9;
    background-color: var(--wp--preset--color--abtm-nero, #140D0A);
    box-shadow: none;
    transform: translate(0px, -130px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    align-items: center;

    .navbar-brand img {
        width: 80px;
        object-fit: contain;
    }
}

header#masthead.sticky-open {
    background-color: transparent;

    .navbar-brand,
    .right-header {
        display: none;
    }
}

.mobile-submenu-header {
    display: none;
}

.mobile-menu-top {
    position: absolute;
    top: 0;
    height: 100px;
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-content: center;
    flex-wrap: wrap;
    padding-right: 35px;
    z-index: 11;
    left: 10%;

    .mobile-language-switcher {
        margin-right: calc(50vW - 35px);
        transform: translateX(100%);

        a {
            color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);

            &:before {
                right: -5px;
            }

            &::after {
                right: 0px;
            }
        }
    }
}


@media screen and (max-width: 767px) {
    header#masthead {
        padding: 22px;

        &.sticky {
            padding: 15px 20px;
            align-items: flex-start;
        }
    }

    #hamburger-menu.closed .icon-bar.top-bar {
        width: 30px;
    }

    #hamburger-menu.closed .icon-bar.middle-bar {
        width: 30px;
    }

    #hamburger-menu.closed .icon-bar.bottom-bar {
        width: 18px;
    }

    #hamburger-menu {
        height: 20px;
        margin-top: 15px;
    }

    .right-header {
        margin-top: 20px;
    }

    .language-switcher {
        display: none;
    }

    .navbar-brand {
        margin: 0;

        img {
            width: 75%;
        }
    }

    #hamburger-menu .menu-label {
        font-size: 13px;
        margin-left: 40px;
    }
}

@media screen and (max-width: 1199px) {
    .navbar .submenu-container {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: nowrap;
        padding-top: 10%;
        align-content: space-between;

        ul {
            padding: 0 0 0 10%;
        }

        &.right-column {
            .right-menu-container {
                ul {
                    align-content: flex-start;
                    justify-content: flex-start;
                    padding-left: 35px;
                }
            }
        }
    }
}

@media screen and (max-width: 991px) {
    .navbar .submenu-container {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        padding-top: 20%;
        padding-bottom: 40px;

        ul,
        .main-menu-actions-container {
            padding: 0 0 0 5%;
        }

        .main-menu-actions-container {
            flex-direction: row;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding-bottom: 50px;
            padding-right: 15%;
            gap: 50px;
            flex-wrap: nowrap;
        }

        ul.menu {
            li a {
                font-size: 23px;
            }
        }

        .secondary-menu ul li a {
            font-size: 18px;
        }
    }

    .navbar .submenu-container.right-column {
        .right-menu-container {
            ul {
                align-content: flex-start;
                justify-content: flex-start;
                padding-left: 35px;

                li a {
                    font-size: 18px;
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    .navbar .submenu-container {
        flex: 0 0 100%;
        padding-top: 20%;

        ul,
        .main-menu-actions-container {
            padding: 15px 35px;
            gap: 0;

            .search {
                display: none;
            }
        }

        ul.menu {
            li {
                border-bottom: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
                padding: 25px 0;

                &::after {
                    content: "";
                    background-image: url(inc/assets/images/menu-arrow.png);
                    background-size: contain;
                    background-repeat: no-repeat;
                    width: 32px;
                    height: 32px;
                    position: absolute;
                    right: 0;
                    top: 50%;
                    transform: translateY(-50%);
                }

                a {
                    font-size: 23px;
                    letter-spacing: 6px;
                }
            }
        }
    }

    #hamburger-menu.navbar-toggler.show {}

    .navbar .submenu-container.right-column {
        left: 200%;
        z-index: 9;
        display: flex;
        top: 0;
        position: absolute;
        width: 100%;
        background-color: #E2DACA;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-top: 0;
        flex-direction: column;
        flex-wrap: nowrap;

        .right-menu-container {
            background-color: var(--wp--preset--color--abtm-oro, #B8A258);
            padding-top: 20% !important;

            ul {
                padding-left: 35px;

                li {
                    a {
                        letter-spacing: 2px;
                    }
                }
            }
        }

        .mobile-submenu-header {
            height: 100px;
            display: flex;

            .back-menu {
                border: none;
                background: transparent;
                font-size: 45px;
            }
        }
    }
}

@media screen and (max-width: 390px) {
    .navbar .submenu-container {
        & ul.menu {
            li {
                border-bottom: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
                padding: 15px 0;

                a {
                    font-size: 20px;
                }
            }
        }
    }
}

@media screen and (min-width: 1200px) and (max-height: 846px) {
    .navbar .submenu-container {
        padding-top: 6%;
        flex-wrap: nowrap;
    }
}

@media screen and (min-width: 1200px) and (max-height: 630px) {
    .navbar .submenu-container {

        ul,
        .main-menu-actions-container {
            gap: 0px;
        }
    }
}

/* Footer */

#footer-widget {
    margin-top: 120px;
    border-radius: 24px 24px 0 0;
    background-color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    padding: 80px 0 110px 0;
}

.page-id-1225 {
    #footer-widget {
        margin-top: -35px;
        position: relative;
    }

    .site-footer {
        position: relative;
    }
}

#footer-widget.has-related {
    margin-top: -30px;
}

footer#colophon.site-footer {
    background-color: var(--wp--preset--color--abtm-bronzo, #62512E) !important;
    border-radius: 24px 24px 0 0;
    margin-top: -30px;
    padding: 100px 0 0 0;
}

#footer-widget .container .row {
    align-items: center;

    .center-widget {
        border-left: 2px solid #9D9D9C;
        border-right: 2px solid #9D9D9C;
    }

    &>div {
        padding: 0 35px;
    }
}

#footer-widget .widget {
    text-align: center;

    figure img {
        width: 100%;
    }
}

.footer-widget-container {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;

    .menu-item {
        .sub-menu {
            display: none;
        }

        a {
            color: var(--wp--preset--color--abtm-avorio, #F5F5EA) !important;
            font-size: 22px;
            padding-top: 0;
            padding-left: 0;
        }
    }

    .menu.nav a {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        font-size: 20px;
        text-transform: none;
        padding-bottom: 12px;
    }

    p {
        font-size: 18px;
        color: #DBD8AF;
    }

    .social .widget_media_image {
        display: inline-block;
        margin-right: 20px;

    }

    &>.widget_media_image {
        flex: 1;

        figure {
            margin-top: 0;
        }
    }
}

.footer-widget-container.right-part {
    justify-content: flex-end;
    gap: 55px;
}

.site-footer .container {
    display: flex;
}

.copyright p {
    font-size: 14px;
}

.footer-menu-container {
    display: flex;
    justify-content: space-between;
}

.copyright {
    margin-top: 40px;
}

.text-copyright {
    text-align: left;
    padding-left: 37px;
}

.second-footer {
    position: relative;
    border-bottom: 10px solid #DBD8AF;
    background-color: var(--wp--preset--color--abtm-bronzo, #62512E);
    border-top: 1px solid #DBD8AF;

    .container {
        display: flex;
    }

    .arrow-up {
        position: absolute;
        right: 0;
        top: 0;
        width: 75px;
        height: 100%;
        background: url(inc/assets/images/arrow-up.png) no-repeat;
        background-size: contain;
        cursor: pointer;
        border-left: 1px solid #DBD8AF;
        padding: 20px 25px;
        background-size: auto;
        display: flex;
        align-items: center;
        vertical-align: middle;
        background-position: center center;
        z-index: 99;
        /* FG 2025 03 18 stay on top if second footer menu overlaps */
    }

    .second-footer-menu {
        max-width: 80%;

        .widget {
            margin: 0;
        }

        ul {
            display: flex;
            justify-content: flex-start;
            list-style: none;
            padding: 0;
            flex-direction: column;
            padding-left: 7px;

            li {
                a {
                    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
                    font-size: 16px;
                    text-transform: uppercase;
                }
            }
        }
    }
}

.widget_social-links {
    display: flex;
    justify-content: flex-start;

    gap: 25px;

    i {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        font-size: 34px;
    }
}

@media screen and (min-width: 576px) {
    .second-footer {
        .second-footer-menu {
            max-width: 100%;

            ul {
                flex-direction: row !important;
            }
        }
    }
}

@media screen and (max-width: 1399px) {
    footer#colophon.site-footer {
        & .container {
            flex-direction: column;

            .footer-widget-container {
                flex-direction: row;
            }
        }
    }

    .footer-widget-container.right-part {
        justify-content: space-evenly;
        margin-top: 30px;
    }
}

@media screen and (max-width: 991px) {
    #footer-widget {
        padding: 35px 0 50px 0;

        .container .row {
            &>div {
                padding: 0 15px;
            }

            .center-widget {
                border-left: none;
                border-right: none;
                padding: 0 45px;
            }
        }
    }

    .widget_social-links {

        justify-content: center;


    }

    footer#colophon.site-footer {
        padding: 50px 0 0 0;

        .container {
            flex-direction: column;

            .footer-widget-container {
                flex-direction: column;

                .footer-menu-container {
                    justify-content: space-around;
                }

                .footer-logo {
                    text-align: center;
                    margin-bottom: 20px;

                    img {
                        width: 35%;
                    }
                }

                .menu-footer-primary-menu-container {
                    a {
                        font-size: 16px;
                    }
                }

                .menu-footer-secondary-menu-container {
                    a {
                        font-size: 14px;
                    }
                }

                .menu-item {
                    text-align: center;
                    margin-bottom: 20px;
                }

                &.right-part {
                    text-align: center;
                    margin-top: 60px;

                    .social {
                        .widget_text {
                            p {
                                font-size: 13px;
                            }
                        }
                    }

                    .widget_text {
                        p {
                            font-size: 13px;
                        }
                    }
                }
            }
        }

        .copyright {
            .text-copyright {
                padding-left: inherit;
                text-align: center;

                p {
                    font-size: 11px;
                }
            }
        }
    }

    .second-footer {
        .second-footer-menu {
            ul li a {
                font-size: 12px;
            }
        }
    }
}

@media screen and (max-width:400px) {
    .second-footer {
        .second-footer-menu {
            ul li a {
                font-size: 10px;
                padding: 10px;
            }
        }
    }

}


/* Pulsanti */
.abtm-button-outline {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    border: 1px solid rgba(184, 162, 88, 0.4);
    text-transform: uppercase;
    padding: 9px 30px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 300;
    font-size: 15px;
    transition: all .2s ease-in;
}

.abtm-button-outline:hover {
    background-color: var(--wp--preset--color--abtm-oro, #B8A258);
    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
    border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
}


/* Slider home */

.slider {
    height: 100vh;
    width: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    height: calc(100vh - 80px);
}



.slider-data {
    position: absolute;
    height: 100vh;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 60%;
    padding-left: 50px;
}

.data-object {
    display: flex;
    align-items: flex-end;
}

.data-titles {
    display: flex;
    flex-direction: column;
    padding-left: 30px;

    h1 {
        margin-bottom: 50px;
    }

    h3 {
        line-height: 1.15;
    }
}

.vertical-text {
    writing-mode: vertical-rl;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    transform: rotate(-180deg);
    text-transform: uppercase;
}

.scroll-actions {
    position: relative;

    .arrow-down {
        position: absolute;
        left: calc(46px + 40px);
        top: -22px;
    }
}

.news-element {
    position: absolute;
    bottom: 0;
    right: 0;
}

.swiper {
    width: 550px;
    height: 300px;
}

.news-element-inside {

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    height: 100%;
    justify-content: center;
    gap: 5px;
}

.news-element-inside>h4,
.news-element-inside>p {
    background-color: var(--wp--preset--color--abtm-bronzo, #62512E);
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    width: 100%;
    padding: 20px 15px;
    text-wrap: balance;
    padding-right: 30%;
}

.news-element-inside>h4 a {
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    text-transform: none;
}

.news-image {
    position: absolute;
    right: 0;
    top: -30px;

    a img {
        min-height: 200px;
        object-fit: cover;
        margin-right: 0;
    }
}

p.news-excerpt {
    font-size: 18px;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    position: relative;

    &::after {
        content: "";
        height: 4px;
        width: 80%;
        background-color: rgb(184, 162, 88);
        display: block;
        position: absolute;
        bottom: 0px;
        left: 0;
    }
}

.swiper-pagination-bullet {
    border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258) !important;
    background: transparent !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--wp--preset--color--abtm-oro, #B8A258) !important;
}

.swiper-pagination-bullet {
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 12px)) !important;
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 12px)) !important;

}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 15px) !important;
}

.swiper-horizontal>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    display: none !important;
}

.mobile-news-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-end;
    justify-content: space-between;
    position: relative;
    margin-top: 35px;

    .arrow-down {
        top: 0;
    }
}

@media screen and (max-width: 768px) {
    .slider {
        height: auto;
    }

    .slider-image {
        height: 45vh;
        background-position: right;
    }

    .slider-data {
        max-width: 85%;
        padding-left: 0;
        flex-direction: column;
        position: relative;
        height: auto;
    }

    .vertical-text {
        writing-mode: unset;
        transform: none;
        display: block;
        margin-top: -40px;
        padding-bottom: 60px;
        text-shadow: 1px 1px 1px #000;
    }

    .data-object {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 35px;
    }

    .data-titles {
        padding-left: 0;

        h1 {
            margin-bottom: 25px;
        }
    }

    .news-element {
        position: relative;
        margin-bottom: 36px;

        .news-image {
            position: absolute;
            right: 0;
            top: -60px;
            max-width: 110px;
            height: 100%;

            img {
                max-width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }
    }

    .news-element-inside>h4 {
        padding-right: 105px;
    }

    .news-element-inside>h4 a {
        letter-spacing: 2px;
    }

    .news-excerpt {
        display: none;
    }

    .scroll-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;

        .arrow-down {
            position: relative;
            left: 0;
        }
    }

    .swiper {
        width: 75vw;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: var(--swiper-pagination-bottom, 60px) !important;
    }

    .swiper-pagination-bullet {
        width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px)) !important;
        height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px)) !important;
    }
}

@media screen and (min-width: 768px) and (max-height:980px) {}

@media screen and (min-width: 768px) and (max-height:810px) and (max-width: 1146px) {
    .swiper {
        width: 470px;
        height: 300px;

        .news-excerpt {
            display: none;
        }
    }

    .slider-data {
        max-width: 65%;
    }
}



@media screen and (min-width: 768px) and (max-height:610px) {
    .navbar-brand img {
        height: 100px;
        width: auto;
    }

    .data-titles h1 {
        font-size: 40px;
    }

    .data-titles h3 {
        font-size: 20px;
    }

    .data-object {
        align-items: flex-start;
    }

    .swiper {
        height: 260px;
    }
}

@media screen and (min-width: 768px) and (max-height:500px) {
    .data-object {
        align-items: center;

        h1 {
            margin-bottom: 15px;
        }
    }
}


/* Sezione Step */


.twocols-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    height: 100vh;



    .figure {
        height: 100%;

        img {
            object-fit: cover;
            height: 80%;
            width: 100%;
        }
    }

    .header,
    .figure {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;

    }

    .counter {
        display: flex;
        justify-content: left;
        align-items: center;
        font-size: 20px;
        color: var(--wp--preset--color--abtm-oro, #B8A258);

        .separator {
            margin: 0 10px;
            width: 100px;
            height: 1px;
            background-color: var(--wp--preset--color--abtm-oro, #B8A258);
        }
    }


}

.sezione {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    margin-top: 20px;
    font-size: 24px;
}

.header {
    padding: 40px 0;

    h2.titolo {
        max-width: 60%;
        text-wrap: wrap;
        margin-bottom: 30px;
    }

    p {
        max-width: 90%;
    }
}


@media screen and (max-width: 991px) {
    .twocols-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        height: auto;

    }

}

.slide {
    padding: 35px;
}


@media screen and (max-width: 991px) {
    .twocols-container {
        flex-direction: column;
        gap: 0;
        padding: 0;

        &.slide {
            margin-bottom: 140px;

            .step-top {
                margin-bottom: 80px;
            }

            .step-bottom {
                margin-bottom: 50px;
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    #steps {

        margin-top: 0px;
        width: auto;
        padding: 35px 20px 35px 35px;

        .twocols-container {
            align-items: unset;

            .header {
                padding: 0;
            }

            h2.titolo {
                max-width: 100%;
            }

            p {
                max-width: 100%;
            }

            figure {
                position: relative;

                &::after {
                    content: "";
                    display: block;
                    padding-bottom: 100%;
                }

                img {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                }
            }
        }
    }
}

.nopin {
    #steps {
        .twocols-container {}
    }
}


/* Scrolling Text */

.scrolling-text {
    position: relative;
    width: 100vw;
    height: 15%;
    min-height: 150px;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    padding: 0;

}

.scrolling-text-inside {
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    padding: 20px;
    font-size: clamp(100px, 12vw, 280px);
    overflow: hidden;
    height: 100%;
    white-space: nowrap;
    animation: scrollText 10s infinite linear;
    margin: 0;

    display: inline-block;

    &>span {
        display: inline-block;
        min-width: 100vw;
        margin: 0;
        padding: 0;

        span {
            color: var(--wp--preset--color--abtm-oro, #B8A258);
        }
    }
}

@media screen and (min-width: 1200px) {
    .scrolling-text-inside {
        animation: scrollText 16s infinite linear;
    }
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 991px) {
    .scrolling-text {
        margin-left: 15px;
    }
}

/* Full Image */
@media screen and (max-width: 991px) {
    .full-image {
        padding: 35px 20px 25px 35px;
    }

}

/* Eventi e news */
.twocols-container.eventi-news {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    padding: 140px 0;

    .sezione {
        font-size: 24px;
    }

    .header {
        display: flex;
        flex-direction: column;
        padding: 0;
        flex-wrap: nowrap;
        flex: 1;
        align-items: stretch;

        .step-top {
            padding-bottom: 80px;
        }

        .step-bottom {
            flex: 1;

            p {
                padding-bottom: 30px;
            }
        }
    }

    .eventi-news-inside {
        flex: 1;

        .news {
            padding: 30px 0;
            border-bottom: 1px solid #D1C897;

        }

        .news-inside {
            display: flex;
            gap: 50px;
            justify-content: flex-start;

            .news-cta {
                display: flex;
                align-items: center;
            }

            .news-text h4 {
                color: #D1C897;
                letter-spacing: 0px;
                font-weight: 300;
                line-height: 1.25;

                span {
                    text-transform: uppercase;
                    font-size: 18px;
                    padding-top: 10px;
                    display: inline-block;
                }

                .eventi-acetaia-name {
                    color: var(--wp--preset--color--abtm-oro, #B8A258);
                    text-transform: none;
                }
            }

            .news-counter {
                border: 1px solid #D1C897;
                border-radius: 50%;
                width: 40px;
                height: 40px;
                color: var(--wp--preset--color--abtm-bianco, #fff);
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 20px;
            }

            .news-text {
                flex: 1;
            }
        }
    }
}

@media screen and (max-width: 991px) {
    .twocols-container.eventi-news {
        flex-direction: column;
        padding: 35px 20px 80px 35px;
        width: auto;

        .header {
            margin-bottom: 60px;

            .step-top {
                padding-bottom: 35px;
            }

            .step-bottom {
                .testo {
                    padding: 25px 0;
                }

            }

            .sezione {
                font-size: 24px;
            }
        }

        .eventi-news-inside {
            .news-inside {
                gap: 20px !important;

                .news-text h4 span {
                    font-size: 13px !important;
                }

                .news-text h4 span.eventi-acetaia-name {
                    font-size: 13px !important;
                }

                .news-counter {
                    width: 30px;
                    height: 30px;
                    padding: 15px;
                }
            }


        }
    }

    .mobile-news-wrapper .news-cta {
        margin-top: 15px;
    }
}

/* Consorzio */

#consorzio {
    display: flex;
    position: relative;
    background-size: cover;
    flex-direction: column;
    padding: 80px 0;
    background-position: top;

    figure {
        margin: 0;
    }

    .consorzio-inside {
        display: flex;
        flex: 1;
        width: 100%;
        align-content: space-around;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;

        align-items: center;
        height: 45vh;

        .step-top .sezione {
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            margin-bottom: 80px;
        }

        .header {
            display: flex;
            flex-direction: column;
            align-items: center;
            align-content: center;
            height: 100%;
            flex-wrap: wrap;
            justify-content: center;
            padding-bottom: 5%;

            .step-top {
                flex: 1;
                display: flex;
                align-content: center;
                align-items: center;
            }

            .step-bottom {
                display: flex;
                flex-direction: column;
                align-items: center;
                flex: 1;
                justify-content: space-between;
            }
        }
    }

    .header {
        padding: 40px 0;

        .sezione {
            font-size: 18px;
        }

        h2.titolo {
            max-width: 100%;
            text-wrap: wrap;
            margin-bottom: 30px;
        }

        p {
            max-width: 100%;
        }
    }
}

@media screen and (max-width: 767px) {
    #consorzio {
        margin-top: 80px;
        height: auto;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: bottom;
        padding: 100px 0;

        .consorzio-inside {
            .header {
                flex-direction: column;
                align-items: center;
                align-content: space-around;
                padding: 20% 7% 20% 11%;
                height: auto;

                .step-top {
                    flex: 1;
                    display: flex;
                    align-content: center;
                    align-items: center;
                    margin-bottom: 50px;
                }

                .step-bottom {
                    text-align: center;
                }
            }
        }
    }
}


/* Steps */


/*
@media screen and (max-width: 991px) {
    .steps-block .slide {
        left: 0;
        transform: none;
        max-width: none;
        bottom: 0;
        top: auto;
        height: calc(100vh - 140px);
    }
}
*/

@media screen and (min-width: 992px) {
    body:not(.nopin) {
        .steps-block {
            position: relative;
            overflow: hidden;
            position: relative;
            height: 100vh;
        }

        .steps-block .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            left: 50%;
            transform: translateX(-50%);
            max-width: 1340px;
            padding-right: 20px;

            .container-btn {
                position: relative;
            }
        }


        .steps-block .slide-0 .figure,
        .steps-block .slide-1 .figure,
        .steps-block .slide-2 .figure {
            transition: all 0.3s ease-in-out;
        }

        .steps-block.step-0 .slide-0 {
            z-index: 1;
        }

        .steps-block.step-1 .slide-1 {
            z-index: 1;
        }

        .steps-block.step-2 .slide-2 {
            z-index: 1;
        }

        .steps-block.step-3 .slide-3 {
            z-index: 1;
        }

        .steps-block.step-0 .slide-0 .header {
            opacity: 1;
            z-index: 1;
        }

        .steps-block.step-0 .slide-0 .figure {
            opacity: 1;
            transform: translateY(0);
            z-index: 2;
        }

        .steps-block.step-0 .slide-0 .container-btn {
            opacity: 1;
            transform: translateX(0);
            z-index: 3;
        }


        .steps-block.step-0 .slide-1 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-0 .slide-1 .figure {
            opacity: 0;
            transform: translateY(-200px);
            z-index: 2;
        }

        .steps-block.step-0 .slide-1 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-0 .slide-2 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-0 .slide-2 .figure {
            opacity: 0;
            transform: translateY(-200px);
            z-index: 2;
        }

        .steps-block.step-0 .slide-2 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-0 .slide-3 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-0 .slide-3 .figure {
            opacity: 0;
            transform: translateY(-200px);
            z-index: 2;
        }

        .steps-block.step-0 .slide-3 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-1 .slide-0 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-1 .slide-0 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-1 .slide-0 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-1 .slide-1 .header {
            opacity: 1;
            z-index: 1;
        }

        .steps-block.step-1 .slide-1 .figure {
            opacity: 1;
            transform: translateY(0);
            z-index: 2;
        }

        .steps-block.step-1 .slide-1 .container-btn {
            opacity: 1;
            transform: translateX(0);
            z-index: 3;
        }

        .steps-block.step-1 .slide-2 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-1 .slide-2 .figure {
            opacity: 0;
            transform: translateY(-200px);
            z-index: 2;
        }

        .steps-block.step-1 .slide-2 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-1 .slide-3 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-1 .slide-3 .figure {
            opacity: 0;
            transform: translateY(-200px);
            z-index: 2;
        }

        .steps-block.step-1 .slide-3 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-2 .slide-0 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-2 .slide-0 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-2 .slide-0 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-2 .slide-1 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-2 .slide-1 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-2 .slide-1 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-2 .slide-3 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-2 .slide-3 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-2 .slide-3 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-2 .slide-2 .header {
            opacity: 1;
            z-index: 1;
        }

        .steps-block.step-3 .slide-0 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-3 .slide-0 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-3 .slide-0 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-3 .slide-1 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-3 .slide-1 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-3 .slide-1 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-3 .slide-2 .header {
            opacity: 0;
            z-index: 1;
        }

        .steps-block.step-3 .slide-2 .figure {
            opacity: 0;
            transform: translateY(200px);
            z-index: 2;
        }

        .steps-block.step-3 .slide-2 .container-btn {
            opacity: 0;
            transform: translateX(-1000px);
            z-index: 3;
        }

        .steps-block.step-3 .slide-3 .header {
            opacity: 1;
            z-index: 1;
        }

        .steps-block.step-2 .slide-2 .figure {
            opacity: 1;
            transform: translateY(0);
            z-index: 2;
        }

        .steps-block.step-3 .slide-3 .figure {
            opacity: 1;
            transform: translateY(0);
            z-index: 2;
        }

        .steps-block .header .subtitle {
            margin-top: 0.5rem;
        }

        .steps-block .header .text {
            margin-top: 0.5rem;
        }
    }
}


body:not(.nopin) .steps-block.step-2 .slide-2 .container-btn {
    opacity: 1;
    transform: translateX(0);
    z-index: 3;
}

@media screen and (min-width: 768px) {
    body:not(.nopin) .steps-block.step-2 .slide-2 .container-btn {
        transform: translateX(-50%);
    }
}

@media screen and (min-width: 992px) {
    body:not(.nopin) .steps-block.step-2 .slide-2 .container-btn {
        transform: translateX(0);
    }
}


@media screen and (min-width: 992px) {
    body:not(.nopin) .steps-block .figure {
        transform: translateX(-50%);
    }
}

@media screen and (min-width: 768px) {
    body:not(.nopin) .steps-block.step-0 .slide-0 .container-btn {
        transform: translateX(-50%);
    }
}

@media screen and (min-width: 992px) {
    body:not(.nopin) .steps-block.step-0 .slide-0 .container-btn {
        transform: translateX(0);
    }
}


/* Visita acetaia */

#introduction {
    text-align: center;

    .sezione {
        text-transform: uppercase;
    }

    .intro-pagina {
        padding: 80px;
    }

    .descrizione-pagina {
        padding: 180px 80px;
    }

    figure {
        position: relative;
        width: 100%;

        img {
            width: 100%;
            transform: translate(-15px, -15px);
        }

        .border-overlay {
            position: absolute;
            border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
    }

    /* Video YouTube intro */
    .figure-container--video {
        display: flex;
        justify-content: center;
    }

    .video-figure {
        position: relative;
        width: 100%;
        max-width: 1330px;
    }

    .video-wrapper {
        position: relative;
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        transform: translate(-15px, -15px);

        /* Poster frame: immagine mostrata durante caricamento video */
        .video-poster {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

        /* Overlay messaggio cookies (visibile se consenso non dato) */
        .video-cookie-notice {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3;
            text-align: center;
            padding: 20px;

            p {
                color: var(--wp--preset--color--abtm-bianco, #fff);
                font-size: 1.1rem;
                line-height: 1.6;
                margin: 0;

                small {
                    opacity: 0.8;
                }
            }
        }

        /* Mostra overlay se cookies non accettati */
        &.cookies-required .video-cookie-notice {
            display: flex;
        }

        /* YouTube player container */
        .youtube-player {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
        }

        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
            opacity: 0;
            transition: opacity 0.4s ease-in-out;
        }

        /* Video pronto: mostra iframe e nasconde poster */
        &.video-ready iframe {
            opacity: 1;
        }

        &.video-ready .video-poster {
            visibility: hidden;
        }
    }

    .video-figure .border-overlay {
        pointer-events: none;
    }
}

@media screen and (max-width: 991px) {
    #introduction {
        text-align: left;

        .descrizione-pagina {
            padding: 80px 0;
        }

        .intro-pagina {
            padding: 80px 0;

        }
    }
}

#mappa-acetaia {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    align-content: stretch;
    padding: 0;

    .mappa-steps {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        text-align: right;

        ul {
            list-style-type: none;

            li {
                padding: 20px 0;
                display: flex;
                flex-direction: row;
                justify-content: flex-end;
                align-items: center;
                gap: 30px;

                .mappa-counter {
                    border: 1px solid var(--wp--preset--color--abtm-avorio, #F5F5EA);
                    border-radius: 50%;
                    width: 40px;
                    height: 40px;
                    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 20px;
                }
            }
        }
    }

    figure {
        img {
            width: 100%;
        }
    }
}

/* Guida acetaie */

.guida-acetaie {
    padding-bottom: 180px;
    text-align: center;
}

.guida-card {
    background-color: #D9D5CB;
    border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
    margin: 0 auto 60px;
    padding: 40px 60px 24px;
}

.guida-card-image {
    position: relative;
    max-width: 420px;
    margin: 0 auto;

    img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        max-height: 340px;
        object-fit: contain;
    }
}

.guida-cta {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    background-color: var(--wp--preset--color--abtm-oro, #B8A258);
    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.05em;
    padding: 12px 36px;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.2s ease-in;
    text-decoration: none;
    z-index: 1;

    &:hover {
        background-color: #a08c42;
        color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
        text-decoration: none;
    }
}

.guida-card-label {
    display: block;
    margin-top: 16px;
    color: var(--wp--preset--color--abtm-vinaccia, #a9594d);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
}

/* Steps */

.guida-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.guida-steps-line {
    position: absolute;
    top: 70px;
    left: 80px;
    right: 80px;
    height: 1px;
    background-color: rgba(184, 162, 88, 0.4);
}

.guida-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.guida-step-number {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(245, 245, 234, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    font-weight: 300;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    background-color: var(--wp--preset--color--abtm-nero, #140d0a);
    position: relative;
    z-index: 1;
}

.guida-step h3 {
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.guida-step-text {
    background-color: var(--wp--preset--color--abtm-nero, #140d0a);
    position: relative;
    z-index: 1;
}

.guida-step p {
    color: rgba(245, 245, 234, 0.6);
    font-size: 15px;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .guida-acetaie {
        padding: 60px 0;
    }

    .guida-card {
        padding: 30px 20px 20px;
    }

    .guida-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 10px;
    }

    .guida-steps-line {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 1px;
        height: 100%;
    }

    .guida-step {
        padding: 30px 0;
    }

    .guida-step-number {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }
}

.figure-container {
    display: flex;
    justify-content: space-evenly;
    /* align-content: flex-start; */
    flex-wrap: nowrap;
    flex-direction: row;
}

.page-id-177 #eventi-news {
    .news-inside {
        align-items: center;
    }
}

@media screen and (min-width: 991px) {
    .page-id-177 #eventi-news {
        padding-top: 0;
    }
}

#acetaie-list {
    background-color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
    width: 100dvw;
    margin: 0 auto;
    padding-top: 100px;
    margin-top: 180px;

    h2 {
        text-align: center;
        padding-bottom: 60px;
    }

    p {
        text-align: center;
        padding: 0 80px 80px 80px;
        font-size: 20px;
    }
}

.acetaie-list,
.acetaie-link {
    display: flex;
    flex-direction: column;
}

.acetaie-cta {
    text-align: center;
    margin: 80px 0;

    .acetaie-list-toggle,
    .acetaie-list-toggle-mobile {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        text-transform: uppercase;
        border-bottom: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
        font-size: 16px;
        padding: 5px 0;

        &::after {
            background-image: url(inc/assets/images/arrow-down.png);
            background-repeat: no-repeat;
            width: 15px;
            height: 22px;
            display: inline-block;
            content: '';
            margin-left: 25px;
            vertical-align: middle;
            transition: all .2s ease-in;
            background-size: contain;
        }

        &:hover {
            text-decoration: none;
        }
    }
}

.acetaie-list-wrapper {
    display: flex;

    font-size: 18px;

    .acetaie-list-inside {
        display: flex;
        flex-direction: row;
        max-height: 400px;
        overflow: hidden;
        position: relative;

        &::after {
            content: "";
            position: absolute;
            height: 120px;
            bottom: 0;
            background: rgb(43, 30, 19);
            background: linear-gradient(180deg, rgba(43, 30, 19, 0) 0%, rgba(43, 30, 19, 1) 100%);
            width: 100%;
        }
    }

    .acetaie-comunali,
    .acetaie-familiari {
        font-size: 22px;
        display: inline-block;
        margin-bottom: 60px;
    }

    .acetaie-familiari {
        color: var(--wp--preset--color--abtm-oro, #B8A258);

    }

    .acetaie-comunali {
        color: #E6E6C9;

    }

    &.opened {

        .acetaie-list-inside {

            max-height: 100%;
            overflow: hidden;
            position: relative;

            &::after {
                content: "";
                position: absolute;
                height: 0;
                bottom: 0;
                background: none;

                width: 0;
            }
        }
    }
}

.acetaie-item {
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    font-size: 18px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    a {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        text-decoration: none;
        text-transform: uppercase;

        &:hover {
            text-decoration: underline;
        }
    }

    span {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        text-transform: uppercase;
        text-wrap: wrap;
    }

    .acetaie-item-details {
        text-transform: none;
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);

        a {
            text-transform: none;
        }
    }
}

.acetaie-alfabetico {
    font-size: 18px;
}

.acetaie-alfa-search {
    margin-bottom: 30px;

    input {
        width: 50%;
        padding: 10px 15px 10px 40px;
        font-size: 16px;
        border: 1px solid rgba(184, 162, 88, 0.5);
        border-radius: 8px;
        background-color: transparent;
        background-image: url(inc/assets/images/search.png);
        background-repeat: no-repeat;
        background-position: 12px center;
        background-size: 18px 18px;
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);

        &:focus {
            outline: none;
            border-color: var(--wp--preset--color--abtm-oro, #B8A258);
        }

        @media screen and (max-width: 768px) {
            width: 100%;
            margin-top: 30px;
        }
    }
}

.acetaie-alfa-noresults {
    color: rgba(245, 245, 234, 0.7);
    font-size: 18px;
    margin-bottom: 20px;
}

.acetaie-alfa-group {
    margin-bottom: 20px;
}

.acetaie-alfa-letter {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(184, 162, 88, 0.3);
    padding-bottom: 5px;
}

.acetaie-list-toggle.opened::after,
.acetaie-list-toggle-mobile.opened::after {
    transform: rotate(180deg);
    top: 2px;
    position: relative;
    vertical-align: unset;
}


.acetaie-link {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    border-radius: 24px 24px 0 0;
    background-color: var(--wp--preset--color--abtm-nero, #140D0A);
    padding-bottom: 150px;
    margin-top: -30px;

    .links-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }


    .acetaie-link-img {
        width: 100%;
        height: 450px;
        object-fit: cover;
        position: relative;
        border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);

        img {
            width: 100%;
            object-fit: cover;
            height: 100%;
            filter: brightness(0.4);
        }

        .acetaie-link-text {
            position: absolute;
            top: 0;
            color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
            font-size: 22px;
            text-transform: none;
            text-align: left;
            padding: 25px;
            max-width: 75%;

        }

        .acetaie-link-cta {
            position: absolute;
            bottom: 0;
            padding: 25px;
        }
    }

    .sezione {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    .acetaie-link {
        flex-direction: column;
        padding: 80px 0;
    }

    .acetaie-list-wrapper {
        flex-direction: column;

        .acetaie-list-inside {
            flex-direction: column;
            max-height: none;

            .acetaie-mobile-wrapper {
                padding: 0 20px !important;
                max-height: 400px;
                overflow: hidden;

                &.opened {
                    max-height: none;
                }
            }
        }
    }

    .acetaie-associate {
        .acetaie-list-wrapper {
            flex-direction: column;

            .acetaie-list-inside {
                display: grid;
                flex-direction: column;
                max-height: none;

                .acetaie-mobile-wrapper {
                    padding: 0 20px !important;
                    max-height: 415px;
                    overflow: hidden;

                    &.opened {
                        max-height: none;
                    }
                }
            }
        }
    }

}

@media screen and (max-width: 991px) {
    .acetaie-link-cta {
        a.button-main {
            padding: 9px;

            &::after {
                margin-left: 10px;
            }
        }
    }

    .acetaie-link {
        .acetaie-link-img {
            height: 250px;

            .acetaie-link-text {
                max-width: 100%;
            }
        }
    }
}

@media screen and (max-width: 768px) {
    #introduction {
        padding-right: 0;

        .sezione {
            font-size: 18px;
        }

        .intro-pagina {
            padding: 30px 0px;

            h2 {
                font-size: 25px;
                line-height: 38px;
            }
        }

        .figure-container {
            justify-content: space-between;
        }

        figure {
            position: relative;
            width: 100%;

            img {
                width: 100%;
                transform: translate(-5px, -15px);
            }

            .border-overlay {
                position: absolute;
                border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
                width: 100%;
                height: 100%;
                top: 0;
                left: 10px;
            }
        }

        .descrizione-pagina {
            padding: 80px 0px 20px 0;
        }

        /* Video YouTube responsive - mobile */
        .figure-container--video {
            .video-wrapper {
                transform: translate(-5px, -15px);
            }
        }
    }

    .ricette {
        .single-ricetta-figure {
            figure {
                position: relative;
                width: 100%;

                img {
                    width: 100%;
                    transform: translate(-5px, -15px);
                }

                .border-overlay {
                    position: absolute;
                    border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 10px;
                }
            }
        }
    }

    #mappa-acetaia {
        flex-direction: column;
        padding-bottom: 80px;

        .mappa-steps {
            padding: 0 20px;
            align-items: flex-start;
            text-align: left;

            ul {
                padding-left: 15px;

                li {
                    justify-content: flex-end;
                    flex-flow: row-reverse;
                    display: flex;
                    font-size: 1.35rem;
                    gap: 15px;
                }
            }
        }
    }

    #acetaie-list {
        background-color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
        width: 100vw;
        margin: 0 auto;
        margin-right: 0px;
        padding-top: 100px;

        p {
            padding: 0 20px 80px 20px;
        }
    }

    .acetaie-list-wrapper .acetaie-list-inside::after {
        content: "" !important;
        position: absolute !important;
        height: 0 !important;
        bottom: 0 !important;
        background: none !important;
        width: 0 !important;
    }

    .acetaie-link {
        padding-top: 40px;

        .acetaie-link-img {
            height: 250px;
            overflow: hidden;
        }
    }

}

@media screen and (max-width: 768px) and (min-width: 768px) {
    #mappa-acetaia .mappa-steps {
        flex-direction: row;
        width: 100% !important;
        flex: 1 !important;
        max-width: 100% !important;

        ul {
            display: flex;
            gap: 21px;
            justify-content: space-around;
            align-items: center;
            align-content: center;
        }
    }

    .acetaie-list-wrapper {
        .acetaie-list-inside {
            flex-direction: row;
            max-height: none;
        }
    }

    .acetaie-link {
        flex-direction: row;

        .acetaie-link-img {
            height: 250px;

            .acetaie-link-text {
                max-width: 100%;
            }
        }
    }
}

@media screen and (max-width: 406px) {
    .mappa-cta a {
        padding: 9px 10px;

        &::after {
            margin-left: 10px;
        }
    }
}


/* Default template */
.repeater-two-columns {
    padding-bottom: 20px;
}

.repeater-two-columns-element {
    display: flex;
    align-items: center;
    margin-bottom: 220px;

    &:last-child {
        /*margin-bottom: 0px */
    }

    h3 {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        margin-bottom: 60px;
        max-width: 75%;
        line-height: 40px;
        width: 100%;
    }

    p {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        line-height: 35px;
        max-width: 75%;
    }

    &.even {
        flex-direction: row-reverse;

        .right-content {
            display: flex;
            justify-content: flex-end;
        }

        .left-content {
            justify-content: center;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            align-content: flex-end;
            align-items: flex-end;
        }

    }
}

@media screen and (max-width: 991px) {

    .repeater-two-columns-element,
    .repeater-two-columns-element.even {
        flex-direction: column-reverse;
        margin-bottom: 140px;

        .left-content,
        .right-content {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            margin-top: 20px;
        }

        h3,
        p {
            max-width: 100%;
        }

        h3 {
            margin-bottom: 40px;
        }

        .acetaie-link-img {
            width: 100%;

            img {
                width: 100%;
                max-height: 500px;
                object-fit: cover;
                object-position: center;
            }
        }
    }

    .repeater-two-columns {
        padding-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    .repeater-two-columns {
        padding-bottom: 20px;

        p {
            line-height: 1.5;
        }
    }

    .repeater-two-columns-element,
    .repeater-two-columns-element.even {
        margin-bottom: 80px;

    }
}

@media screen and (min-width:576px) and (max-width: 1199px) {
    .acetaie-link-img {
        margin: 0.5em;
    }
}

@media screen and (min-width: 991px) and (max-width: 1199px) {
    .acetaie-link .acetaie-link-img {
        height: 280px;
    }
}

/* Time line */

.timeline {
    position: relative;

    margin: 0 auto;

    h4 {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        font-size: 26px;
        line-height: 30px;
        font-weight: 400;
    }

    p {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        font-size: 20px;
    }

    &::after {
        content: '';
        position: absolute;
        width: 1px;
        background-color: var(--wp--preset--color--abtm-oro, #B8A258);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -4px;
        height: calc(100% - 220px);
    }


    .container {
        padding: 10px 40px;
        position: relative;
        background-color: inherit;
        width: 50%;
        margin: 0;
    }


    .container::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        right: -9px;
        background-color: var(--wp--preset--color--abtm-oro, #B8A258);
        border: 6px solid var(--wp--preset--color--abtm-nero, #140D0A);
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    }


    .left-timeline {
        left: 0;
    }


    .right-timeline {
        left: 50%;
    }





    .right-timeline::after {
        left: -16px;
    }


    .content {
        padding: 0 30px 20px 30px;
        background-color: none;
        position: relative;
        border-radius: 6px;
    }
}


@media screen and (max-width: 991px) {

    .timeline {
        &::after {
            left: 46px;
        }

        .content {
            padding: 0 20px 15px 0px;

        }

        .container {
            width: 100%;

            padding: 10px 25px 30px 70px;
        }


        .container::before {
            left: 60px;
            border: medium solid white;
            border-width: 10px 10px 10px 0;
            border-color: transparent white transparent transparent;
        }


        .left-timeline::after,
        .right-timeline::after {
            left: 15px;
        }

        /* Make all right containers behave like the left ones */
        .right-timeline {
            left: 0%;
        }
    }
}

@media screen and (max-width: 768px) {

    .timeline {
        .content {

            h4 {
                font-size: 21px;
            }

            p {
                font-size: 16px;
            }
        }
    }
}


/* Modulo Titolo Testo */
.titolo-testo {
    padding: 80px;
    font-size: 16px;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);

    .titolo-testo__titolo {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        max-width: 100%;
        padding-bottom: 80px;
        line-height: 40px;
    }

    .titolo-testo__testo {

        /* Tipografia per il modulo */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            letter-spacing: normal;
            line-height: normal;
            margin-top: 48px;
            margin-bottom: 16px;
        }

        h1 {
            font-size: 32px;
        }

        h2 {
            font-size: 25px;
        }

        h3 {
            font-size: 20px;
        }

        h4 {
            font-size: 18px;
        }

        p {
            margin-top: 24px;
            margin-bottom: 24px;
        }

        p:first-of-type {
            margin-top: 0;
        }
    }

    &.with-background {
        background-color: #3B2D1B;
        position: relative;
        margin-bottom: 80px;

        &::after {
            content: '';
            position: absolute;
            width: 100vw;
            height: 100%;
            background-color: #3B2D1B;
            top: 0;
            right: 0;
            z-index: -1;
            left: 50%;
            transform: translateX(-50%);
        }

        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
            top: 10px;
            left: 10px;
            z-index: 1;
        }

        p {
            padding: 35px;
        }
    }

    &.no-padding {
        padding: 15px;
        padding-bottom: 80px;
    }

    li {
        font-size: 16px;
    }
}

@media screen and (min-width: 768px) {
    .titolo-testo {

        .titolo-testo__testo {

            /* Tipografia per il modulo */
            h1 {
                font-size: 44px;
            }

            h2 {
                font-size: 35px;
            }

            h3 {
                font-size: 28px;
            }

            h4 {
                font-size: 18px;
            }

            p {
                font-size: 22px;
                margin-top: 32px;
                margin-bottom: 32px;
            }

            li {
                font-size: 22px;
            }
        }

        &.no-padding {
            padding: 80px;

            .titolo-testo__titolo {
                max-width: 50%;
            }
        }

        &.with-background {
            padding-bottom: 0;

            p {
                padding: 0;
            }

            &::before {
                top: 25px;
                left: 25px;
            }
        }
    }
}


/* Modulo Faq */

[id^="domande-frequenti"] {
    display: flex;
    position: relative;

    .domande-frequenti-element {
        margin-bottom: 250px;
    }

    .accordion {
        cursor: pointer;
        width: 100%;
        text-align: left;
        border: none;
        outline: none;
        transition: 0.4s;
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        line-height: 30px;
        font-weight: 300;

        &::after {
            content: '';
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            background-image: url(inc/assets/images/plus.png);
            font-size: 35px;
            float: right;
            margin-left: 0px;
            border: 2px solid;
            border-radius: 100%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            text-align: center;
            padding: 0;
            margin: 0;
            line-height: normal;
            justify-content: center;
            letter-spacing: normal;
            background-repeat: no-repeat;
            background-position: center;
        }

        &.active::after {
            content: '';
            background-image: url(inc/assets/images/minus.png);
        }
    }

    .panel {
        display: none;
        overflow: hidden;
    }

    .domande-frequenti-text {
        font-size: 24px;
        color: var(--wp--preset--color--abtm-oro, #B8A258);

    }

    .elenco-domande {
        margin-top: 20px;

        .single-question {
            padding: 80px 0;
            border-bottom: 1px solid var(--wp--preset--color--abtm-avorio, #F5F5EA);

            span {
                max-width: 90%;
                display: inline-block;
            }

            .single-question-risposta {
                p {
                    padding-top: 40px;
                }
            }
        }
    }
}

[id^="domande-frequenti"]::after {
    position: absolute;
    content: '';
    background: rgb(20, 13, 10);
    background: -moz-linear-gradient(180deg, rgba(20, 13, 10, 1) 0%, rgba(84, 58, 37, 1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(20, 13, 10, 1) 0%, rgba(84, 58, 37, 1) 100%);
    background: linear-gradient(180deg, rgba(20, 13, 10, 1) 0%, rgba(84, 58, 37, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="var(--wp--preset--color--abtm-nero, #140d0a)", endColorstr="#916540", GradientType=1);
    display: block;
    width: 100vw;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    left: 50%;
    margin: 0 auto;
    transform: translateX(-50%);
}

/* Gradient background */
.gradient-bg {
    position: relative;
}

.gradient-bg::after {
    position: absolute;
    content: '';
    background: rgb(20, 13, 10);
    background: -moz-linear-gradient(180deg, rgba(20, 13, 10, 1) 0%, rgba(84, 58, 37, 1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(20, 13, 10, 1) 0%, rgba(84, 58, 37, 1) 100%);
    background: linear-gradient(180deg, rgba(20, 13, 10, 1) 0%, rgba(84, 58, 37, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="var(--wp--preset--color--abtm-nero, #140d0a)", endColorstr="#916540", GradientType=1);
    display: block;
    width: 100vw;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    left: 50%;
    margin: 0 auto;
    transform: translateX(-50%);
}

/* Gallery */
.single .gallery {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.splide__slide img {
    width: 100%;
    height: 65vh;
    object-fit: cover;
}

.splide__list {
    cursor: pointer;
}

.splide__arrows .splide__arrow {
    height: 3em;
    width: 3em;
    background: var(--wp--preset--color--abtm-oro, #B8A258);
    top: 100px;
}

@media screen and (max-width: 768px) {
    .splide__slide img {
        height: 30vh;
    }
}

@media screen and (max-width: 767px) {
    .domande-frequenti {
        margin-top: 125px;
    }
}

/* galleria loghi */
.galleria-loghi {
    margin: 2rem 0;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-item img {
    height: 90px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

@media (max-width: 768px) {
    .logo-item img {
        height: 65px;
    }

    .logos-container {
        gap: 1rem;
    }
}


.acetaie-associate {
    padding: 0 80px;

    .acetaie-list-inside {
        width: 100%;

        &::after {
            content: "";
            position: absolute;
            height: 120px;
            bottom: 0;
            background: var(--wp--preset--color--abtm-nero, #140D0A);
            background: linear-gradient(180deg, rgba(20, 13, 10, 0) 0%, rgba(20, 13, 10, 1) 100%);
            width: 100%;
        }
    }
}

@media screen and (max-width: 767px) {
    .acetaie-associate {
        padding: 0;
    }
}

/* Youtube video */

.wp-block-embed.is-type-video.is-provider-youtube {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-block-embed.is-type-video.is-provider-youtube::before {
    content: "\25B6" "\A" "Qui c'è un filmato: per vederlo è necessario accettare i cookies." "\A\A" "Premi il pulsante 'Accetta' o l'icona della serratura in basso nella pagina.";
    white-space: break-spaces;
    position: absolute;
    color: white;
    background-color: #3b2d1b;
    padding: 40px 20px;
    font-size: 18px;
    text-align: center;
    width: 75%;
    z-index: 0;
    pointer-events: none;
}


/* Single ricetta */

article.ricette .entry-content,
.ricetta-steps {
    padding-top: 80px;
    margin: auto;
}

.ricetta-title {
    font-size: 32px;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    letter-spacing: 6px;
    margin-bottom: 35px;
}

.ricetta-meta {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    text-transform: uppercase;
    letter-spacing: 3px;

    .tempi_ricetta,
    .persone_ricetta,
    .difficolta_ricetta {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.difficolta_ricetta {
    display: flex;
    gap: 10px;
    align-items: center;

    .difficolta_ricetta_list {
        display: flex;
        gap: 10px;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
}

.single-title {
    font-size: 20px;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: flex;
    line-height: normal;
}

.ricetta-content {
    display: flex;
}

.ricetta-steps {
    .step-item {
        padding-bottom: 35px;

        .step-number {
            font-size: 20px;
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            letter-spacing: 3px;
            margin-bottom: 15px;
            background-color: #3B2D1B;
            display: inline-flex;
            border-radius: 20px;
            padding: 5px 45px;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            flex-direction: row;
            gap: 10px;
            margin-bottom: 35px;

            span {
                border: 1px solid;
                border-radius: 100%;
                display: flex;
                width: 20px;
                height: 20px;
                font-size: 12px;
                text-align: center;
                flex-wrap: wrap;
                flex-direction: row;
                align-content: center;
                align-items: center;
                justify-content: space-around;
                letter-spacing: 0;
            }
        }
    }
}

.consiglio-cucina {
    background-color: #3B2D1B;
    padding: 35px;

    .single-title::before {
        content: "";
        width: 32px;
        height: 32px;
        background-image: url("inc/assets/images/cookbook.png");
        background-repeat: no-repeat;
        background-size: contain;
        display: inline-block;
        margin-right: 15px;
    }

    .consiglio-cucina-text {
        padding-left: 50px;
    }
}

.prova-anche {
    padding-top: 80px;
    padding-bottom: 120px;

    .splide__slide img {
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .splide__slide .difficolta_ricetta img {
        height: auto;
        object-fit: contain;
        width: 20px;
    }
}

.prova-anche-items {
    display: flex;
    list-style-type: none;
    padding: 0;


    &>li {
        padding: 15px;
        margin: 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        background-color: var(--wp--preset--color--abtm-nero, #140D0A);
        flex-direction: column;
        border-radius: 0.5em;

        .prova-anche-item-term {
            font-size: 16px;
            color: #f5f5f5;
            letter-spacing: 3px;
            margin-bottom: 15px;
            display: inline-flex;
            line-height: normal;
            text-transform: uppercase;
        }

        .prova-anche-item-title {
            min-height: 140px;
        }

        .prova-anche-item-title a {
            font-size: 20px;
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            letter-spacing: 3px;
            margin-bottom: 15px;
            display: inline-flex;
            line-height: normal;
            text-decoration: none;
            text-transform: none;
        }

        .prova-anche-item-excerpt {
            font-size: 18px;
            color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
            min-height: 100px;
        }

        .prova-anche-item-meta {
            display: flex;
            flex-direction: row;
            font-size: 14px;
            color: #f5f5f5;
            text-transform: uppercase;
            letter-spacing: 3px;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: space-between;
            width: 100%;

            span {
                font-size: 12px;
                text-transform: lowercase;
            }

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


.ricette-list {
    display: flex;
    flex-direction: column;

    h3 {
        line-height: 80px;
        color: var(--wp--preset--color--abtm-oro, #B8A258);
    }

    .ricette-container {
        display: inline-grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 50px;

        .ricette-item {
            display: flex;
            flex-direction: column;

            a img {
                border-radius: 10px;
                height: 170px;
                object-fit: cover;
            }

            .ricette-title a {
                font-size: 26px;
                color: var(--wp--preset--color--abtm-oro, #B8A258);
                letter-spacing: 3px;
                margin-bottom: 15px;
                display: inline-flex;
                line-height: normal;
                text-decoration: none;
                text-transform: none;
            }

            .ricetta-meta {
                font-size: 14px;
                justify-content: space-between;
                margin: 25px 0;
                text-transform: lowercase;

                .tempi_ricetta {
                    flex-wrap: nowrap;

                    span {
                        text-wrap: nowrap;
                    }
                }
            }

            .ricette-excerpt {
                font-size: 18px;
            }
        }
    }
}

.single-ricette .ricetta-meta {
    gap: 60px;
}

.ricette-list-container {
    margin-bottom: 8rem;
}

.ricette-list-container .acetaie-list-inside:after {
    display: none;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .ricetta-meta {
        flex-direction: column;
        gap: 15px !important;
    }
}

@media screen and (max-width: 991px) {
    .ricetta-content {
        flex-direction: column;
    }

    .preparazione-ricetta {
        margin-top: 80px;
    }

    .ricetta-steps {
        padding-top: 20px;
    }

    .ricette-list {
        .ricette-container {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@media screen and (max-width: 767px) {
    .ricetta-meta {
        flex-direction: column;
        gap: 20px !important;
    }

    .ricette-list-container {
        padding: inherit;

        .acetaie-list-inside {
            max-height: none !important;
        }

        .ricette-list {
            max-height: none !important;

            .ricette-container {
                grid-template-columns: repeat(1, 1fr);

                .ricette-item {
                    margin-bottom: 60px;

                    &:last-child {
                        margin-bottom: 0;
                    }
                }

                .ricetta-meta {
                    flex-direction: row;
                }
            }
        }
    }

    .wp-block-spacer {
        height: 80px !important;
    }
}

.eventi-iniziative {
    .filters {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        margin-top: 80px;

        .filters-left,
        .filters-right {
            gap: 24px;
            display: flex;
            align-items: center;
        }

        .filter-button {
            border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            font-size: 16px;
            letter-spacing: 3px;
            background-color: transparent;
            padding: 12px 24px 12px 24px;

            &.active {
                background-color: #D1C897;
                color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
            }
        }

        .filter-select {
            border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            font-size: 16px;
            letter-spacing: 3px;
            background-color: transparent;
            padding: 12px 24px 12px 24px;

            &.active {
                background-color: #D1C897;
                color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
            }
        }
    }
}

.iniziative-container {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 150px;

    .iniziative-item {
        display: flex;
        flex-direction: column;

        img {
            border-radius: 10px;
            height: 300px;
            object-fit: cover;
        }

        .iniziative-img {
            position: relative;

            .term-label {
                position: absolute;
                right: 1.2rem;
                top: 1.2rem;
                color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
                background-color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
                padding: 0.2rem 0.6rem;
                text-transform: uppercase;
                line-height: normal;
                letter-spacing: 2px;
            }
        }

        .inizative-img img {
            width: 100%;
        }

        .iniziative-title {
            font-size: 28px;
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            letter-spacing: 3px;
            margin-bottom: 15px;
            display: inline-flex;
            line-height: normal;
            text-decoration: none;
            text-transform: none;
        }

        .iniziative-excerpt {
            font-size: 18px;
            color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
            min-height: 100px;
        }

        .iniziative-meta {
            font-size: 14px;
            justify-content: space-between;
            margin: 10px 0;

            .iniziative-title a {
                color: var(--wp--preset--color--abtm-oro, #B8A258);
                text-decoration: none;
                font-size: 24px;
                text-transform: none;
            }

            .iniziative-cta a {
                font-size: 16px;
                color: var(--wp--preset--color--abtm-oro, #B8A258);
                letter-spacing: 3px;
                margin-bottom: 15px;
                display: inline-flex;
                line-height: 22px;
                text-decoration: none;
                text-transform: uppercase;

                &::after {
                    background-image: url(inc/assets/images/arrow-right.png);
                    background-repeat: no-repeat;
                    width: 16px;
                    height: 18px;
                    display: inline-block;
                    content: '';
                    margin-left: 25px;
                    vertical-align: middle;
                    transition: all .2s ease-in;
                    background-position: center;
                    margin-top: 2px;
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    .wp-block-group {
        padding-bottom: 80px;
    }

    .iniziative-container {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 80px;
    }

    .eventi-iniziative {
        .filters {
            flex-direction: column;
            gap: 20px;
            margin-top: 40px;

            .filters-left,
            .filters-right {
                gap: 12px;
                display: flex;
                align-items: center;
                flex-direction: row;
                flex-wrap: wrap;

                .filter-button {
                    padding: 5px 9px 5px 9px;
                    font-size: 14px;
                }

                .filter-select {
                    padding: 5px 9px 5px 9px;
                    font-size: 14px;
                }

                span {
                    display: inline-block;
                    width: 70px;
                }
            }
        }
    }

    .iniziative-cta {
        margin-top: 35px;
    }
}

/* Single Article */

#post-1127.single-iniziativa .entry-meta {
    /* 2025 02 12 temp hack per nascondere la data da news finanziamenti */
    display: none;
}

.single-iniziativa {

    .titolo-testo,
    .titolo-testo.no-padding {
        padding-bottom: 40px;
    }

    .titolo-testo.with-background,
    .gallery {
        margin-bottom: 40px;
    }

    .titolo-testo.with-background+.wp-block-image {
        margin-top: 65px;
    }

    .wp-block-image {
        margin-top: 0;
        margin-bottom: 40px;
    }

    .wp-block-image:first-child {
        position: relative;
        margin-bottom: 80px;

        .border-overlay {
            position: absolute;
            border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
            width: 100%;
            height: 100%;
            top: -10px;
            left: 6px;
        }
    }

    h1 {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        letter-spacing: 3px;
        font-size: 32px;
        margin-bottom: 0;
    }

    .entry-meta {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        /* margin-bottom: 100px; */
        font-size: 16px;
        letter-spacing: 3px;
        display: inline-flex;
        gap: 25px;
        text-transform: uppercase;

        span {
            color: #D1C897;
        }
    }

    .entry-content {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);

        h3 {
            line-height: normal;
        }
    }

    .titolo-testo br {
        display: inline;
    }
}

@media screen and (max-width: 512px) {
    .single-iniziativa {
        .entry-meta {
            flex-direction: column;
            gap: 15px;

            .sep {
                display: none;
            }
        }
    }
}

@media screen and (min-width: 768px) {
    .single-iniziativa {
        .titolo-testo {
            padding: 40px 80px;

            &.with-background {
                margin-top: 40px;
                margin-bottom: 65px;
                padding: 80px;
            }
        }

        h1 {
            margin-bottom: 80px;
        }

        .entry-content .wp-block-image {
            padding-left: 80px;
            padding-right: 80px;
        }
    }
}



.ricette-list-container .acetaie-list-inside {
    max-height: none;

    &::after {
        background: none;
    }
}

.ricette {
    .single-ricetta-figure {
        display: flex;

        justify-content: space-evenly;

        flex-wrap: nowrap;
        flex-direction: row;
    }

    figure {
        position: relative;
        width: 100%;

        img {
            width: 100%;
            transform: translate(-15px, -15px);
        }

        .border-overlay {
            position: absolute;
            border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
    }
}

.entry-header {
    margin-top: 40px;
}

.entry-header>span {
    display: inline-block;
    margin-bottom: 80px;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    font-size: 14px;
    text-transform: uppercase;

    a {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        text-transform: uppercase;
        text-decoration: none;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .gallery {
        margin-bottom: 80px;
    }

    .prova-anche {
        max-width: 100vw;
    }

    .prova-anche-item {
        gap: 0;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .repeater-two-columns .repeater-two-columns-element .acetaie-link-img img {
        object-position: center;
    }
}

.prova-anche-item-image {
    display: flex;

}

.single-post {
    h3 {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        letter-spacing: 3px;
        font-size: 28px;
        padding: 40px 0px;
    }
}

.post.hentry {
    padding-bottom: 4rem;
}

.related-news {
    margin-top: 80px;

    .single-title {
        margin-bottom: 60px;
    }

    .related-news-content {
        .related-news-items {
            .related-news-item {
                display: flex;

                .entry-meta {
                    margin-bottom: 30px;
                }

                .related-news-item-image {
                    img {
                        width: 100%;
                        height: 200px;
                        border-radius: 7px;
                        margin-bottom: 15px;
                    }
                }

                .related-news-item-title {
                    margin-bottom: 20px;

                    a {
                        color: var(--wp--preset--color--abtm-oro, #B8A258);
                        letter-spacing: 3px;
                        font-size: 20px;
                        margin-bottom: 30px;
                        text-decoration: none;
                        text-transform: none;
                    }
                }

                .related-news-item-excerpt {
                    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
                    font-size: 18px;

                    p {
                        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
                        font-size: 18px;
                    }
                }

                .related-news-item-cta {
                    margin-top: 20px;
                    flex: 1;
                    display: flex;
                    align-content: flex-end;
                    align-items: flex-end;

                    a {
                        color: var(--wp--preset--color--abtm-oro, #B8A258);
                        letter-spacing: 3px;
                        font-size: 16px;
                        text-decoration: none;
                        text-transform: uppercase;
                        line-height: 40px;

                        &::after {
                            background-image: url(inc/assets/images/arrow-right.png);
                            background-repeat: no-repeat;
                            width: 16px;
                            height: 18px;
                            display: inline-block;
                            content: '';
                            margin-left: 25px;
                            vertical-align: middle;
                            transition: all .2s ease-in;
                            background-position: unset;
                        }
                    }
                }
            }
        }
    }
}

.li-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.single .wp-block-columns {
    margin: 80px 0;
}

.button-secondary {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    letter-spacing: 3px;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 40px;

    &:hover {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        text-decoration: underline;
    }

    &::after {
        background-image: url(inc/assets/images/arrow-right.png);
        background-repeat: no-repeat;
        width: 16px;
        height: 18px;
        display: inline-block;
        content: '';
        margin-left: 25px;
        vertical-align: middle;
        transition: all .2s ease-in;
        background-position: unset;
    }
}

.button-main-container {
    display: flex;
    justify-content: center;
}

.full-image-container {
    width: 100vw;
    left: 0;
    position: relative;

    img {
        width: 100%;
    }
}

.error-404 {
    height: 100ch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.sala-stampa {
    margin-top: 2rem;

    .sala-stampa-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;

        .sala-stampa-title {
            max-width: 80%;
            display: flex;
            flex-direction: column;
        }

        .sala-stampa-date {
            color: var(--wp--preset--color--abtm-oro, #B8A258);
        }

        span a {
            color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
            font-size: 16px;
            letter-spacing: 3px;
        }

        a {
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            letter-spacing: 3px;
            font-size: 16px;
            text-decoration: none;
            text-transform: uppercase;
            line-height: 40px;
        }
    }
}

@media screen and (max-width: 991px) {
    .page-id-1507 h2.wp-block-heading {
        padding-left: 15px;
    }

    .sala-stampa {

        .sala-stampa-title {
            font-size: 16px;
            max-width: none !important;

            .sala-stampa-date {
                font-size: 16px;
                line-height: 40px;
            }

            a {
                line-height: normal;
            }
        }

        .sala-stampa-item {
            margin-top: 10px;
            flex-direction: column;
            align-items: flex-start;
        }
    }
}

.wpml-ls-sub-menu {
    margin-top: 8px !important;

    li {
        margin-top: 8px !important;
    }
}

/* Sovrascrive #wpml-ls-submenu-click-default { background-color: var(--wp--preset--color--abtm-bianco, #fff) }
   dal plugin WPML (style.css del legacy-dropdown-click).
   L'ID è direttamente sulla <ul> del submenu, non su un parent. */
#wpml-ls-submenu-click-default {
    background-color: transparent;
}

.search-item {
    display: flex;
    margin-bottom: 35px !important;
    padding-bottom: 0 !important;

    .search-item-terms {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        text-transform: uppercase;
        letter-spacing: 3px;
        font-size: 16px;
        line-height: 40px;
    }

    .entry-summary {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
        margin-top: 0;
    }

    h2.entry-title {
        border-bottom: none;
        font-size: 1.5rem;
    }
}

.page-search-title {
    margin-bottom: 50px;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    letter-spacing: 3px;
    font-size: 22px;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
}

.page-search-term {
    text-align: center;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    font-size: 2.5rem;
    line-height: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 80px;
}

@media screen and (max-width: 991px) {
    .search-item {
        flex-direction: column;
    }
}

.searchwp-modal-form-default .searchwp-modal-form__container,
.searchwp-modal-form-default .searchwp-modal-form__overlay {
    background-color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13) !important;
}

.searchwp-modal-form-default .searchwp-modal-form__content {
    background-color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13) !important;
}

.searchwp-modal-form-default .searchwp-modal-form__close:before {
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA) !important;
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form label input {
    background-color: transparent;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    font-size: 3rem;
    border: none;
    border-bottom: 1px solid;
}

@media screen and (max-width:991px) {
    .searchwp-modal-form-default .searchwp-modal-form__content .search-form label input {
        font-size: 2rem;
    }
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form .search-submit {
    display: none;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    border: 1px solid rgba(184, 162, 88, 0.4);
    text-transform: uppercase;
    padding: 9px 30px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 300;
    font-size: 24px;
    transition: all .2s ease-in;
    margin-top: 3rem;

    &:hover {
        background-color: var(--wp--preset--color--abtm-oro, #B8A258);
        color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
        text-decoration: none;
    }

    &::after {
        background-image: url(inc/assets/images/arrow-right.png);
        background-repeat: no-repeat;
        width: 16px;
        height: 18px;
        display: inline-block;
        content: '';
        margin-left: 25px;
        vertical-align: middle;
        transition: all .2s ease-in;

        &:after {
            filter: brightness(0%);
        }
    }
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form {
    flex-direction: column;
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form label {
    width: 100% !important;
}

.searchwp-modal-form__close {
    display: none !important;
}

.iniziative-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;

    .date {
        color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    }

    span {
        color: #D1C897;
        text-transform: uppercase;
    }
}

.navigation.posts-navigation {
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 60px 0 80px 0;

    .nav-links a {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        text-decoration: underline !important;
    }
}

.posts-navigation .nav-previous {
    width: 100%;
}

@media screen and (max-height:430px) {

    .navbar .submenu-container {
        margin-top: 85px;
        justify-content: flex-start;
        padding-top: 0;
        overflow: scroll;

        &.right-column {
            padding-top: 10%;
            margin-top: -85px;
            justify-content: center;
        }

        ul {
            gap: 12px;
        }
    }
}

@media screen and (max-height:430px) and (max-width:768px) {
    .navbar .submenu-container {
        &.right-column {
            padding-top: 0px !important;
            margin-top: 0;
            justify-content: center;
            height: 100%;

            .right-menu-container {
                padding-top: 0px !important;
                justify-content: center !important;

                ul {
                    gap: 30px;
                }
            }
        }
    }
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form label {
    position: relative;
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form .search-submit.search-icon-button {
    position: absolute;
    right: 25px;
    display: block;
    top: 0;
    padding: 0;
    background-image: url(inc/assets/images/search-icon.svg);
    width: 40px;
    color: var(--wp--preset--color--abtm-bianco, #fff);
    background-repeat: no-repeat;
    text-indent: -999999px;
    border: none;
    background-size: contain;
    filter: invert(1);
    bottom: 0;
    padding: 0;
    margin: 0;
    background-position: center;

    &:hover {
        background-color: transparent;
    }
}

.searchwp-modal-form-default .searchwp-modal-form__content .search-form label input {
    padding-right: 60px;
}

@media screen and (max-width: 768px) {
    .searchwp-modal-form-default .searchwp-modal-form__content .search-form .search-submit.search-icon-button {
        width: 30px;
        height: 30px;
        height: 100%;
    }
}

@media (min-width: 768px) and (max-width:1200px) {
    .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after {
        right: 2px;
    }

    .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle::before {
        right: -3px;
    }
}

.wp-block-file {
    a {
        color: var(--wp--preset--color--abtm-oro, #B8A258);
        font-size: inherit;
        text-transform: none;
        text-decoration: underline;
        font-size: 22px;

        &:hover {
            color: var(--wp--preset--color--abtm-bianco, #fff);
            padding: 0 6px;

            transition: background-color 0.4s ease;
            background-color: rgba(184, 162, 88, 0.5);
        }

        &.wp-block-file__button {
            color: var(--wp--preset--color--abtm-oro, #B8A258);
            border: 1px solid rgba(184, 162, 88, 0.4);
            text-transform: uppercase;
            padding: 9px 30px;
            display: inline-block;
            margin-top: 20px;
            font-weight: 300;
            font-size: 15px;
            transition: all .2s ease-in;
            background: none;
            border-radius: inherit;
            text-decoration: none;

            &:hover {
                transition: none;
                background-color: var(--wp--preset--color--abtm-oro, #B8A258);
                color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
                text-decoration: none;

                &::after {
                    filter: brightness(0%);
                }
            }

            &::after {
                background-image: url(inc/assets/images/arrow-right.png);
                background-repeat: no-repeat;
                width: 22px;
                height: 20px;
                display: inline-block;
                content: '';
                margin-left: 25px;
                vertical-align: middle;
                transition: all .2s ease-in;
                transform: rotate(90deg);
            }
        }
    }
}

.wp-block-file *+.wp-block-file__button {
    margin-left: 1.75em;
}

@media screen and (max-width:767px) {
    .wp-block-file {
        a {
            margin: 0 15px;
            font-size: 16px;
        }

        .wp-block-file__button {
            font-size: 15px;
            margin-left: 15px !important;
        }
    }
}


/* SHORTCODE Progetti ricerca e promozione */

.progetti-archive {
    margin-bottom: 20px;
}

/* Filters Section */
.progetti-filters {
    background-color: transparent;
    padding: 40px 20px 40px 10px;
    border-radius: 0;
    margin-bottom: 40px;
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .progetti-filters {
        margin-top: 60px;
    }
}

.progetti-filters .row {
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.progetti-filters .col-6 {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
}

.progetti-filters label {
    color: var(--wp--preset--color--abtm-bianco, #ffffff);
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progetti-filters select {
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    border-radius: 0;
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    padding: 8px 16px;
    font-size: 14px;
    min-width: 150px;
    min-height: 38px;
    text-transform: uppercase;
}

.progetti-filters select:focus {
    border-color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    box-shadow: 0 0 0 0.2rem rgba(198, 183, 124, 0.25);
    background-color: transparent;
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
}

.progetti-filters select option {
    background-color: var(--wp--preset--color--abtm-nero, #140D0A);
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
}

.progetti-list {
    color: var(--wp--preset--color--abtm-bianco, #ffffff);
}

.progetto-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 25px;
    border-left: 4px solid var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    transition: all 0.3s ease;
    position: relative;
}

.progetto-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.progetto-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.progetto-date {
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    font-weight: 400;
    font-size: 14px;
}

.progetto-type {
    margin-left: auto;
    padding-right: 0;
}

.progetto-type .badge {
    background-color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    color: var(--wp--preset--color--abtm-nero, #140D0A);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
}

.progetto-title a {
    color: var(--wp--preset--color--abtm-bianco, #ffffff);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: none;
}

.progetto-title a:hover {
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    text-decoration: none;
}

.progetto-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 15px 0;
}

.progetto-cta .btn-outline-primary {
    border: none;
    background: transparent;
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0;
    line-height: 1;
    position: relative;
    transition: all 0.3s ease;
}

.progetto-cta .btn-outline-primary:after {
    background-image: url(inc/assets/images/arrow-right.png);
    background-repeat: no-repeat;
    width: 16px;
    height: 18px;
    display: inline-block;
    content: '';
    margin-left: 10px;
    vertical-align: middle;
    transition: all .2s ease-in;
    background-position: center;
    margin-top: -2px;
    transition: margin-left 0.3s ease;
}

.progetto-cta .btn-outline-primary:hover {
    background: transparent;
    border: none;
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    text-decoration: none;
}

.progetto-cta .btn-outline-primary:hover:after {
    margin-left: 20px;
}

.progetto-cta .btn-outline-primary:focus {
    box-shadow: none;
    background: transparent;
    border: none;
}


/* SINGLE POST Progetti ricerca e promozione */

.single-progetti #content.site-content {
    padding-top: 280px;
}

@media screen and (max-width: 767px) {
    .single-progetti #content.site-content {
        padding-top: 180px;
    }
}

.progetto-single {
    color: var(--wp--preset--color--abtm-bianco, #ffffff);
}

.progetto-single .progetto-meta {
    display: block;
    margin-bottom: 20px;
}

.progetto-single .progetto-meta .badge,
.progetto-single .progetto-date {
    background-color: transparent;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.progetto-single .entry-title {
    color: var(--wp--preset--color--abtm-oro, #B8A258);
    letter-spacing: 3px;
    font-size: 32px;
    border-bottom: none;
    margin-bottom: 2rem;
    ;
}

.progetto-featured-image {
    margin-top: 4rem;
    text-align: center;
}

.progetto-single .entry-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 20px;
}

.progetto-single .entry-content h2,
.progetto-single .entry-content h3,
.progetto-single .entry-content h4 {
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    margin-top: 40px;
    margin-bottom: 20px;
}

.progetto-navigation .btn {
    border: none;
    background: transparent;
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.progetto-navigation .btn:hover {
    background: transparent;
    border: none;
    color: var(--wp--preset--color--abtm-oro-chiaro, #C6B77C);
    text-decoration: none;
}

.progetto-navigation .btn:focus {
    box-shadow: none;
    background: transparent;
    border: none;
}

.no-progetti-found {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-progetti-found p {
    font-size: 18px;
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .progetto-item {
        padding: 20px;
    }

    .progetto-title a {
        font-size: 18px;
    }

    .progetto-single .entry-title {
        font-size: 2rem;
    }

    .progetti-filters .row {
        gap: 10px;
    }

    .progetti-filters .col-6 {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        margin-bottom: 0;
        padding-left: 0;
    }

    .progetto-single .nav-next {
        margin-top: 2rem;
    }

    .progetto-single .titolo-testo {
        padding: 20px;
    }

    .progetto-single .gallery {
        margin-bottom: 20px;
    }

    .progetto-single .galleria-loghi {
        margin-top: 0;
    }


}

/* ==========================================================================
   Cookie Consent Overlay per Mappe Google
   Messaggio mostrato quando Iubenda blocca gli script delle mappe.
   Riusa lo stesso pattern visivo di .video-cookie-notice.
   ========================================================================== */

.abtm-map-cookie-wrapper {
    position: relative;
    min-height: 300px;

    /* Overlay messaggio cookies (nascosto di default) */
    .abtm-map-cookie-notice {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 3;
        text-align: center;
        padding: 20px;

        p {
            color: var(--wp--preset--color--abtm-bianco, #fff);
            font-size: 1.1rem;
            line-height: 1.6;
            margin: 0;

            small {
                opacity: 0.8;
            }
        }
    }

    /* Mostra overlay se cookies non accettati */
    &.cookies-required .abtm-map-cookie-notice {
        display: flex;
    }
}


/* ==========================================================================
   HERO HOME (.abtm-hero)

   Due composizioni scelte per ORIENTAMENTO, non per larghezza (soglia 1,1):
   orizzontale = mappa | testi | bottiglia | verticale
   verticale   = titolo, scritta, card con mappa e richiamo

   La bottiglia sta dentro la foto di sfondo, quindi non e' un elemento:
   le si riserva una colonna larga quanto lo spazio che occupa. I numeri
   ricorrenti sono qui sotto, misurati una volta sull'immagine caricata.
   ========================================================================== */

.abtm-hero {
    /* posizione della bottiglia dentro la foto (2082x1368, rapporto 1,522) */
    --bottiglia-sx: 65.8%;      /* bordo sinistro, in frazione di larghezza */
    --bottiglia-dx: 34.2vw;     /* cio' che resta a destra                  */
    --bottiglia-dx-alt: 52.1vh; /* lo stesso, quando comanda l'altezza      */
    --logo-fine: 235px;         /* il logo del Consorzio finisce a y=221    */
    --mappa-rapporto: 0.734;    /* larghezza/altezza del PNG mappa          */

    position: relative;
    /* il wrapper .row del tema ha margin-left:-15px e trascina fuori
       dal viewport tutto cio' che non e' una .col-* */
    margin-left: 15px;
    width: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--wp--preset--color--abtm-nero, #140D0A);
}

.abtm-hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-size: cover;
}

.abtm-hero__grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    align-items: center;
}

/* i grid item nascono con min-width:auto e si rifiutano di scendere sotto
   la larghezza del contenuto: e' da li' che nascono le sovrapposizioni */
.abtm-hero__grid > * {
    min-width: 0;
}

.abtm-hero__map      { grid-area: map; }
.abtm-hero__titles   { grid-area: titles; }
.abtm-hero__cta      { grid-area: cta; }
.abtm-hero__bottle   { grid-area: bottle; }
.abtm-hero__vertical { grid-area: vert; }

.abtm-hero__map-link { display: block; }

.abtm-hero__map-img {
    display: block;
    width: 100%;
    height: auto;
}

.abtm-hero__frame,
.abtm-hero__scroll {
    display: none;
}


/* --------------------------------------------------------------------------
   Tipografia — valori base, poi rivisti per fascia
   -------------------------------------------------------------------------- */

.abtm-hero__title {
    margin: 0 0 clamp(0.4rem, 1vw, 0.9rem);
    font-size: clamp(1.5rem, 2.6vw, 3rem);
    line-height: 1.12;
    overflow-wrap: break-word;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
}

.abtm-hero__subtitle {
    margin: 0;
    font-size: clamp(0.75rem, 1.05vw, 1rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
}

.abtm-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.1rem, 0.5vh, 0.4rem);
}

.abtm-hero__divider {
    display: block;
    width: clamp(120px, 16vw, 260px);
    height: 1px;
    margin: clamp(0.6rem, 2vh, 1.8rem) 0 clamp(0.5rem, 1.4vh, 1.2rem);
    background-color: var(--wp--preset--color--abtm-oro, #B8A258);
}

.abtm-hero__eyebrow {
    font-size: clamp(0.7rem, 0.9vw, 0.88rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
}

.abtm-hero__cta-title,
.abtm-hero__cta-subtitle {
    margin: 0;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
}

.abtm-hero__cta-title    { font-size: clamp(0.9rem, 1.2vw, 1.25rem); }
.abtm-hero__cta-subtitle { font-size: clamp(0.85rem, 1.15vw, 1.15rem); font-style: italic; }

.abtm-hero__button-wrap {
    margin: clamp(0.5rem, 1.5vh, 1.3rem) 0 clamp(0.2rem, 0.7vh, 0.6rem);
}

.abtm-hero__button-wrap .button-main {
    text-transform: none;
    white-space: nowrap;
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
    border-color: #F7CE46;
}

.abtm-hero__button-wrap .button-main::after { display: none; }

.abtm-hero__button-wrap .button-main:hover {
    background-color: var(--wp--preset--color--abtm-oro, #B8A258);
    color: var(--wp--preset--color--abtm-testa-di-moro, #2B1E13);
}

.abtm-hero__map-caption {
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    color: var(--wp--preset--color--abtm-avorio, #F5F5EA);
}

.abtm-hero__vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.6rem, 0.75vw, 0.78rem);
    white-space: nowrap;
    color: var(--wp--preset--color--abtm-oro, #B8A258);
}

/* sotto i 1200px il pulsante puo' andare a capo: con nowrap sbordava
   dalla colonna e finiva sulla bottiglia */
@media screen and (max-width: 1199.98px) {
    .abtm-hero__button-wrap .button-main { white-space: normal; }
}

/* fascia intermedia, entrambi gli orientamenti */
@media screen and (min-width: 768px) and (max-width: 1138px) {
    .abtm-hero__title        { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
    .abtm-hero__subtitle     { font-size: clamp(0.85rem, 1.75vw, 1.2rem); }
    .abtm-hero__eyebrow      { font-size: clamp(0.75rem, 1.45vw, 1rem); }
    .abtm-hero__cta-title    { font-size: clamp(0.95rem, 1.95vw, 1.35rem); }
    .abtm-hero__cta-subtitle { font-size: clamp(0.9rem, 1.85vw, 1.3rem); }
    .abtm-hero__map-caption  { font-size: clamp(0.85rem, 1.7vw, 1.15rem); }
    .abtm-hero__button-wrap .button-main { font-size: clamp(0.85rem, 1.5vw, 1.05rem); }
}


/* ==========================================================================
   COMPOSIZIONE ORIZZONTALE  (proporzione >= 1,1)
   ========================================================================== */

@media screen and (min-aspect-ratio: 11/10) {

    .abtm-hero__grid {
        grid-template-areas:
            "map titles titles vert"
            "map cta    bottle vert";
        /* prima riga sul contenuto, la seconda assorbe il resto: cosi' il
           richiamo resta attaccato al titolo invece di scivolare in basso */
        grid-template-rows: min-content 1fr;
        /*
         * Fascia riservata alla bottiglia. Con "cover" ancorato a destra
         * l'immagine e' larga max(larghezza, altezza x 1,522) e a destra
         * della bottiglia resta il 34,2% di quella larghezza; si sottraggono
         * padding destro e testo verticale.
         */
        grid-template-columns:
            minmax(0, auto)
            minmax(0, 1fr)
            calc(max(var(--bottiglia-dx), var(--bottiglia-dx-alt)) - 1.5vw - 20px)
            auto;
        column-gap: 0;
        row-gap: clamp(0.2rem, 1vh, 0.8rem);
        padding: var(--logo-fine) clamp(1.25rem, 3vw, 3.5rem) clamp(0.75rem, 3vh, 2.5rem);
    }

    .abtm-hero__titles,
    .abtm-hero__cta {
        align-self: start;
        padding-left: clamp(0.6rem, 4.1vw, 5rem);
    }

    /* il titolo passa sopra al COLLO della bottiglia, come nell'artboard;
       il richiamo no, perche' piu' in basso c'e' la pancia */
    .abtm-hero__titles { max-width: calc(37vw + 4.1vw); }

    .abtm-hero__map      { align-self: start; justify-self: start; margin: -182px 0 0 -16px; }
    .abtm-hero__vertical { justify-self: end; align-self: center; }

    /* il limite di larghezza va espresso come limite di ALTEZZA: height e
       max-width insieme deformerebbero l'immagine */
    .abtm-hero__map-img {
        width: auto;
        height: min(92vh, calc(100vh - 80px), 47.9vw);
    }

    /*
     * Barra scura in fondo, com'era nella hero precedente (80px). Non piu'
     * alta di quanto lo spazio consenta: il bordo superiore della bottiglia
     * cade a 0,787 dell'altezza della foto, che con "cover" vale
     * larghezza/1,522, quindi le servono almeno 51,7vw.
     */
    .abtm-hero__bg {
        bottom: max(0px, min(80px, calc(100vh - 51.7vw)));
        background-position: right 88%;
    }

    .abtm-hero__scroll {
        /* nella hero precedente stava nel flusso subito sotto l'immagine,
           alta calc(100vh - 80px); la freccia e' poi posizionata dalla
           regola .arrow-down del tema, che qui non si tocca */
        display: block;
        position: absolute;
        left: 0;
        top: calc(100% - 80px);
        width: 100%;
        height: 0;
        /* z-index 1 come la griglia: passa sopra a questa ma resta sotto
           al menu aperto, che nel tema sale a 3 */
        z-index: 1;
    }

    .abtm-hero__title        { font-size: clamp(1.6rem, 3.6vw, 3.35rem); }
    .abtm-hero__subtitle     { font-size: clamp(0.8rem, 1.5vw, 1.15rem); }
    .abtm-hero__eyebrow      { font-size: clamp(0.75rem, 1.45vw, 1.1rem); }
    .abtm-hero__cta-title    { font-size: clamp(0.95rem, 1.95vw, 1.6rem); }
    .abtm-hero__cta-subtitle { font-size: clamp(0.9rem, 1.85vw, 1.45rem); }
    .abtm-hero__map-caption  { font-size: clamp(0.85rem, 1.7vw, 1.25rem); }
    .abtm-hero__vertical     { font-size: clamp(0.7rem, 0.9vw, 0.95rem); }
    .abtm-hero__button-wrap .button-main { font-size: clamp(0.85rem, 1.5vw, 1.15rem); padding: 12px 34px; }
}

/* sotto i 1200px la colonna e' stretta: meno padding, altrimenti il testo
   arriva a toccare la bottiglia */
@media screen and (min-aspect-ratio: 11/10) and (max-width: 1199.98px) {
    .abtm-hero__titles,
    .abtm-hero__cta { padding-left: clamp(0.6rem, 2.2vw, 2.5rem); }
}

/* finestre basse: si stringe il ritmo, altrimenti la hero sfora la piega */
@media screen and (min-aspect-ratio: 11/10) and (max-height: 820px) {
    .abtm-hero__grid         { padding-bottom: 0.5rem; }
    .abtm-hero__title        { font-size: clamp(1.4rem, 2.7vw, 2.25rem); }
    .abtm-hero__cta-title,
    .abtm-hero__cta-subtitle { font-size: clamp(0.95rem, 1.4vw, 1.2rem); }
}


/* ==========================================================================
   COMPOSIZIONE VERTICALE  (proporzione < 1,1)
   ========================================================================== */

@media screen and (max-aspect-ratio: 11/10) {

    .abtm-hero { align-items: flex-start; }

    /*
     * La foto occupa la fascia alta e sfuma nel fondo: con una sfumatura
     * corta restava una banda scura netta sopra la card.
     */
    .abtm-hero__bg {
        bottom: auto;
        height: min(128vw, 55vh);
        background-position: 87% top;
        -webkit-mask-image: linear-gradient(to bottom,
            #000 42%, rgba(0, 0, 0, 0.65) 68%, rgba(0, 0, 0, 0.25) 86%, transparent 100%);
                mask-image: linear-gradient(to bottom,
            #000 42%, rgba(0, 0, 0, 0.65) 68%, rgba(0, 0, 0, 0.25) 86%, transparent 100%);
    }

    .abtm-hero__grid {
        grid-template-areas:
            "titles bottle"
            "vert   bottle"
            "map    map"
            "cta    cta";
        grid-template-columns: 70% 30%;
        align-items: start;
        row-gap: 0;
        column-gap: 0;
        padding: 236px 15px 16px;
    }

    .abtm-hero__titles { align-self: start; }

    /* fondale della card: unico elemento piazzato di proposito sulle stesse
       celle di mappa e richiamo, ma decorativo e sotto di loro */
    .abtm-hero__frame {
        display: block;
        position: relative;
        z-index: 0;
        align-self: stretch;
        grid-column: 1 / -1;
        grid-row: 3 / 5;
        border: 1px solid var(--wp--preset--color--abtm-oro, #B8A258);
        border-radius: 4px;
        background-color: rgba(20, 13, 10, 0.92);
    }

    .abtm-hero__map,
    .abtm-hero__cta { position: relative; z-index: 1; }

    /* il limite in vh evita che la mappa cresca con la larghezza dello
       schermo e faccia sforare la hero sui tablet */
    .abtm-hero__map {
        width: min(76%, 33vh);
        justify-self: center;
        padding-top: 1.25rem;
        margin: 0;
    }

    .abtm-hero__map-img { width: 100%; height: auto; }

    .abtm-hero__cta {
        align-items: center;
        text-align: center;
        padding: 0.4rem 1rem 1.25rem;
    }

    .abtm-hero__divider { display: none; }

    /* qui la scritta e' orizzontale sotto al sottotitolo, non ruotata */
    .abtm-hero__vertical {
        writing-mode: horizontal-tb;
        transform: none;
        text-transform: none;
        letter-spacing: 0.02em;
        align-self: start;
        justify-self: start;
        margin-top: 0.5em;
    }
}

/* telefoni */
@media screen and (max-aspect-ratio: 11/10) and (max-width: 767.98px) {
    .abtm-hero__grid {
        grid-template-rows: auto minmax(calc(min(128vw, 55vh) - 300px), auto) auto auto;
        padding-top: 185px;
    }

    .abtm-hero__title        { font-size: clamp(23px, 7.2vw, 34px); line-height: 1.18; }
    .abtm-hero__subtitle     { font-size: clamp(10.5px, 3.1vw, 14px); letter-spacing: 0.06em; }
    .abtm-hero__eyebrow      { font-size: clamp(10px, 2.9vw, 12px); letter-spacing: 0.1em; }
    .abtm-hero__cta-subtitle { font-size: clamp(11px, 3.1vw, 13px); }
    .abtm-hero__map-caption  { font-size: clamp(11px, 3.1vw, 13px); }
    .abtm-hero__vertical     { font-size: clamp(9px, 2.6vw, 12px); }

    /* nell'artboard mobile e' oro maiuscolo, non bianco minuscolo */
    .abtm-hero__cta-title {
        font-size: clamp(10px, 2.9vw, 12px);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--wp--preset--color--abtm-oro, #B8A258);
    }

    /* bordo della card al 50%: solo sui telefoni */
    .abtm-hero__frame { border-color: rgba(184, 162, 88, 0.5); }

    .abtm-hero__button-wrap { width: 100%; }

    .abtm-hero__button-wrap .button-main {
        display: block;
        width: 100%;
        font-size: clamp(12px, 3.4vw, 14px);
        padding: 13px 12px;
        margin-top: 0;
    }
}

/* tablet in verticale: la larghezza li distingue dai telefoni, la
   proporzione no (sono verticali entrambi) */
@media screen and (max-aspect-ratio: 11/10) and (min-width: 768px) {
    .abtm-hero__grid {
        grid-template-rows: auto minmax(calc(min(128vw, 55vh) - 320px), auto) auto auto;
    }

    .abtm-hero__vertical { font-size: clamp(10px, 1.4vw, 14px); }
}

/* verticale su finestra bassa: la mappa e' la voce che pesa di piu' */
@media screen and (max-aspect-ratio: 11/10) and (max-height: 900px) {
    .abtm-hero__map { width: min(76%, 21vh); }
    .abtm-hero__cta { padding: 0.3rem 1rem 0.9rem; }
}
