/*
Theme Name: Mazzeo e Scalia Theme
Description: Theme for Mazzeo e Scalia
Author: BBrothersADV
Author URI: https://www.bbadv.it
Template: twentytwentyfive
Version: 1.0.0
*/
/**
    * CH01 - BASIC RULES
    * CH02 - HEADER & MENU
    * CH03 - MAIN & CONTENT
    * CH04 - FOOTER
    * CH05 - MEDIA QUERIES
**/
/*CH01 - BASIC RULES*/
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.d-block {
    display: block;
}

.d-inblock {
    display: inline-block;
}

.hidden {
    display: none !important;
}

.mobile {
    display: none !important;
}

.flex-end {
    align-items: flex-end;
}

.w-100 {
    width: 100%;
}

.fw-200 {
    font-weight: 200 !important;
}

.fw-300 {
    font-weight: 300 !important;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-900 {
    font-weight: 900 !important;
}

.fw-inter {
    font-family: "Inter", sans-serif !important;
}

.fw-instrument {
    font-family: "Instrument Serif", serif !important;
}

.fw-gloock {
    font-family: "Gloock", serif !important;
}

.fw-josefin {
    font-family: "Josefin Sans", sans-serif !important;
}

.line1 {
    line-height: 1;
}

.line12 {
    line-height: 1.2;
}

.line14 {
    line-height: 1.4;
}

.text-standard {
    font-size: clamp(15px, 1.1vw, 20px);
}

.text-header-big {
    font-size: clamp(32px, 4vw, 75px);
}

.text-little-heading {
    font-size: clamp(14px, 1vw, 18px);
}

.text-morelittle-heading {
    font-size: clamp(13px, 1vw, 16px);
}

.text-middle-heading {
    font-size: clamp(24px, 3.5vw, 50px);
}

.text-big-heading {
    font-size: clamp(28px, 3.5vw, 65px);
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: initial !important;
}

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

.padding-x {
    padding-right: clamp(35px, 9vw, 170px);
    padding-left: clamp(35px, 9vw, 170px);
}

.padding-x-low {
    padding-right: clamp(25px, 4.2vw, 80px);
    padding-left: clamp(25px, 4.2vw, 80px);
}

.padding-x-hi {
    padding-right: clamp(50px, 11.6vw, 220px);
    padding-left: clamp(50px, 11.6vw, 220px);
}

.padding-left {
    padding-left: clamp(35px, 9vw, 170px);
}

.padding-left-low {
    padding-left: clamp(25px, 4.2vw, 80px);
}

.padding-left-hi {
    padding-left: clamp(50px, 11.6vw, 220px);
}

.padding-right {
    padding-right: clamp(35px, 9vw, 170px);
}

.padding-right-low {
    padding-right: clamp(25px, 4.2vw, 80px);
}

.padding-right-hi {
    padding-right: clamp(50px, 11.6vw, 220px);
}

.padding-y {
    padding-top: clamp(30px, 7vw, 140px);
    padding-bottom: clamp(30px, 7vw, 140px);
}

.padding-y-low {
    padding-top: clamp(25px, 2.8vw, 50px);
    padding-bottom: clamp(25px, 2.8vw, 50px);
}

.padding-y-hi {
    padding-top: clamp(50px, 12vw, 240px);
    padding-bottom: clamp(50px, 12vw, 240px);
}

.padding-top {
    padding-top: clamp(30px, 7vw, 140px);
}

.padding-top-low {
    padding-top: clamp(25px, 2.8vw, 50px);
}

.padding-top-hi {
    padding-top: clamp(50px, 12vw, 240px);
}

.padding-bottom {
    padding-bottom: clamp(30px, 7vw, 140px);
}

.padding-bottom-low {
    padding-bottom: clamp(25px, 2.8vw, 50px);
}

.padding-bottom-hi {
    padding-bottom: clamp(50px, 12vw, 240px);
}

.padding-top-title {
    /*padding-top: clamp(15px, 1.4vw, 25px);*/
    padding-top: min(1.4vw, 25px);
}

.padding-bottom-title {
    /*padding-bottom: clamp(15px, 1.4vw, 25px);*/
    padding-bottom: min(1.4vw, 25px);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.ml-0 {
    margin-left: 0;
}

.mr-0 {
    margin-right: 0;
}

.m-0 {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.pt-0 {
    padding-top: 0;
}

.pb-0 {
    padding-bottom: 0;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.p-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.underline,
a.underline {
    text-decoration: underline !important;
}

.color-white {
    color: #FFFFFF !important;
}

.color-dark {
    color: #1A2234 !important;
}

.color-gray {
    color: #757575;
}

.color-sand {
    color: #DDD5C8;
}

.color-darksand {
    color: #B7AE98;
}

.button-ms,
.book-menu-button a span {
    display: inline-block;
    padding: 15px 75px 10px 40px;
    width: max-content;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 0.85vw, 16px);
    color: #FFFFFF;
    text-transform: uppercase;
    background-color: #1A2234;
    background-image: url(/wp-content/uploads/2026/06/white-button-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 30px center;
    background-size: auto 75%;
    line-height: 1;
    border-style: none;
    border-radius: 25px;
    white-space: nowrap;
    transition: 0.25s ease-in-out;
}

.button-ms.white {
    color: #1A2234;
    background-color: #FFFFFF;
    background-image: url(/wp-content/uploads/2026/06/dark-button-arrow.svg);
}

.button-ms:hover {
    transform: scale(1.03);
}

html {
    scrollbar-gutter: stable;
}

body .wp-site-blocks a:focus,
body :where(.wp-site-blocks :focus) {
    outline: none;
}

/*CH02 - HEADER & MENU*/
header {
    min-width: min(calc(100% - clamp(70px, 18vw, 340px)), 2000px);
    position: fixed;
    top: clamp(25px, 3vw, 50px);
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(26, 34, 52, 0.3) 0%, rgba(26, 34, 52, 0) 60%), #1a223460;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(15px, 1.4vw, 25px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: 0.3s ease-in-out;

    .wp-block-site-logo {
        border-right: 1px solid #FFFFFF;
        padding-right: clamp(20px, 2.8vw, 50px);
    }

    .wp-block-navigation {
        margin-left: 0.5vw;
        margin-right: 0.5vw;
    }

    .header-custom {
        padding-left: 30px;
        padding-right: 30px;
    }

    .header-custom a {
        text-decoration: none;
        font-weight: 300;
        text-transform: uppercase;
        font-size: clamp(15px, 1vw, 18px);
    }

    .header-custom a,
    .header-custom a span,
    .header-custom a:visited span {
        color: #FFFFFF;
        transition: 0.25s ease-in-out;
    }

    .header-custom a:hover,
    .header-custom .current-menu-item a {
        color: #FFFFFF;
        font-weight: 500;
    }

    .header-custom a.book-menu-button {
        display: inline-block;
        background-color: #1A2234;
        padding: 15px 40px 10px 40px;
        font-weight: 400;
        font-size: clamp(14px, 0.85vw, 16px);
        line-height: 1;
        border-radius: 25px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-custom a.book-menu-button.white {
        color: #1A2234;
        background-color: #FFFFFF;
    }

    .header-custom a.book-menu-button:hover {
        font-weight: 400;
        transform: scale(1.03);
    }
}

body.single-post header,
body.single-team header {
    background: none, #1A2234;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    .header-custom a.book-menu-button {
        color: #1A2234;
        background-color: #FFFFFF;
    }
}

.header-desktop {
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: none;
    gap: 1rem;

    .wp-block-navigation {
        width: max-content;
    }

    .wp-block-site-logo {
        width: max-content;
        text-align: center;

        img {
            min-width: 190px;
            filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(0%) hue-rotate(205deg) brightness(106%) contrast(101%);
        }
    }

    a span {
        padding-left: 6px;
        padding-right: 6px;
    }

}

.header-mobile {
    display: none !important;
    max-width: none;

    .wp-block-site-logo img {
        filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(0%) hue-rotate(205deg) brightness(106%) contrast(101%);
    }
}

/*CH03 - MAIN & CONTENT*/
main,
.entry-content {
    padding: 0;
    margin: 0;
}

.entry-content {
    max-width: none;
}

section {
    margin-block-start: 0 !important;
}

a {
    text-decoration: none;
}

.header-auto {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: flex-end;
    padding: clamp(60px, 7vw, 140px) clamp(50px, 11.6vw, 220px);

    .header-texts-wrapper {
        z-index: 1;
        margin-bottom: clamp(30px, 3.5vw, 70px);
    }

    .scroll-down {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;
        color: #FFFFFF;
        font-size: 12px;
        cursor: pointer;
        text-align: center;
        z-index: 1;
    }

    .mouse {
        width: 24px;
        height: 40px;
        border: 1px solid #FFF;
        border-radius: 9999px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
    }

    .dot {
        position: relative;
        width: 2px;
        height: 15px;
        background: #fff;
        animation: scroll-arrow 1.2s ease-in-out infinite;
    }

    .scroll-text {
        display: inline-block;
        margin-left: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

.header-auto:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, rgba(217, 217, 217, 0.04) 0%, rgba(26, 34, 52, 0.77) 78%);
    z-index: 0;
}

@keyframes scroll-arrow {
    0% {
        transform: translateY(3px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translateY(20px);
        opacity: 1;
    }

    100% {
        transform: translateY(35px);
        opacity: 0;
    }
}

.section-form-home {
    form {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        font-family: 'Inter', sans-serif;

        .row-form.split {
            display: flex;
            justify-content: space-between;

            .col-form {
                width: 48%;
            }

            .col-form p {
                display: flex;
                flex-direction: column;
                margin-top: 0;
            }
        }

        .row-form.textarea p {
            display: flex;
            flex-direction: column;
            margin-top: 0;
        }

        label {
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        input:not([type=submit]):not([type=checkbox]),
        select,
        textarea {
            width: 100%;
            background-color: transparent;
            padding: 15px 0;
            font-family: "Instrument Serif", serif;
            font-weight: 300;
            color: #ffffff;
            font-size: clamp(15px, 1vw, 18px);
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: 1px solid #FFFFFF;
            box-shadow: none;
            box-sizing: border-box;
            -webkit-appearance: none;
            appearance: none;
        }

        select option {
            color: initial;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline-width: 0 !important;
        }

        input::-webkit-input-placeholder,
        textarea::-webkit-input-placeholder {
            color: #ffffffb9 !important;
        }

        input::placeholder,
        textarea::placeholder {
            color: #ffffffb9 !important;
        }

        .wpcf7-form-control-wrap[data-name="your-type"],
        .wpcf7-form-control-wrap[data-name="your-area"] {
            position: relative;
            display: block;

            &::after {
                content: '▾';
                position: absolute;
                right: 15px;
                top: 50%;
                transform: translateY(-50%);
                pointer-events: none;
                color: #ffffffb9;
            }
        }

        .wpcf7-not-valid-tip {
            margin-top: 5px;
            font-size: clamp(14px, 0.833vw, 16px);
            color: #d10404 !important;
            font-weight: 200;
        }

        .acceptance .wpcf7-list-item,
        .wpcf7 form .wpcf7-response-output {
            margin-left: 0;
            font-size: 0.7em;

            a {
                text-decoration: underline;
            }
        }

        .row-form.submit p {
            padding-top: clamp(15px, 1.6vw, 30px);
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 0;

            .wpcf7-spinner {
                margin-top: 5px;
            }

            input {
                width: fit-content;
                cursor: pointer;
            }
        }
    }
}

/*Home*/
.header-auto.header-home .header-texts-wrapper .col2 {
    margin-bottom: 1em;
}

.bordered-row {
    position: relative;
    border-top: 1px solid #B7AE98;
    border-bottom: 1px solid #B7AE98;
}

.bordered-row.two:after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: #B7AE98;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

ol.roman {
    list-style: none !important;
    counter-reset: items;
    padding: 0;

    li {
        counter-increment: items;
        display: flex;
        align-items: center;
    }

    li:not(:last-of-type) {
        margin-bottom: clamp(5px, 1vw, 20px);
        padding-bottom: clamp(5px, 1vw, 20px);
        border-bottom: 1px solid #B7AE98;
    }

    li::before {
        width: 1.75em;
        flex-shrink: 0;
        content: counter(items, upper-roman) ".";
        font-size: 0.75em;
        font-style: italic;
        color: #B7AE98;
    }

    li,
    a {
        width: 100%;
        color: #1A2234;
        font-family: "Instrument Serif", serif;
        font-style: normal;
        font-size: clamp(16px, 1.5vw, 28px);
        line-height: 1.2;
    }

    a {
        background-image: url(/wp-content/uploads/2026/06/arrow-right.svg);
        background-repeat: no-repeat;
        background-position: right 0.1em center;
        background-size: auto 0.4em;
        transition: 0.25s ease-in-out;
    }

    a:hover {
        background-position: right 0 center;
    }
}

.card-ms {
    width: 100%;
    padding: clamp(20px, 2.5vw, 45px);
    display: flex;
    align-items: stretch;
    background-color: #EAEFF5;
    border-radius: 20px;
    box-sizing: border-box;

    .col1 {
        flex: 1;

        img {
            width: clamp(48px, 4vw, 78px);
            filter: brightness(0) saturate(100%) invert(8%) sepia(55%) saturate(691%) hue-rotate(183deg) brightness(91%) contrast(88%);
        }

        h3 {
            margin-top: 0.6em;
            margin-bottom: 0;
            display: flex;
            align-items: end;
        }

        p {
            margin-top: 0.2em;
        }
    }

    .col2 {
        width: clamp(45px, 3vw, 70px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: end;
    }

    p {
        margin-top: 0;
        margin-bottom: 0;
    }

    .card-ms-link {
        display: inline-block;
        height: clamp(12px, 0.9vw, 20px);
        width: clamp(45px, 3vw, 70px);
        background-image: url(/wp-content/uploads/2026/06/arrow-right.svg);
        background-repeat: no-repeat;
        background-position: right 6px center;
        background-size: contain;
        filter: brightness(0) saturate(100%) invert(8%) sepia(55%) saturate(691%) hue-rotate(183deg) brightness(91%) contrast(88%);
        transition: 0.25s ease-in-out;
    }

    .card-ms-link:hover {
        background-position: right 0 center;
    }
}

.card-ms.sand {
    background-color: #f2eadfcc;
}

.grid-card-ms {
    gap: 2rem;

    .card-ms {
        width: auto;

        .col1 h3 {
            margin-top: 1.2em;
        }

        .col1 p {
            margin-top: 0.8em;
            margin-bottom: 2em;
        }

        .col2 {
            width: 3.2em;
        }

    }
}

.row-hl {

    .col1,
    .col2 {
        border-right: 1px solid #B7AE98;
    }

    .number-hl {
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: "Instrument Serif", serif;
        font-size: clamp(40px, 5vw, 100px);
        line-height: 1;
    }

    .text-hl {
        margin-top: auto;
    }
}

.digit {
    display: inline-block;
    height: 1em;
    line-height: 1em;
    overflow: hidden;
    vertical-align: top;
    position: relative;
}

.digit-column {
    display: flex;
    flex-direction: column;
    transition: none;
}

.digit-column span {
    display: block;
    height: 1em;
    line-height: 1em;
    text-align: center;
}

.team-home-row>div {
    gap: 0;
}

.ms-team-card p {
    margin-top: 0;
    margin-bottom: 0;
}

.team-image {
    border-radius: 2em;
    overflow: hidden;
}

.team-name {
    padding-top: clamp(15px, 1.4vw, 25px);
    font-size: clamp(18px, 1.6vw, 30px);
}

.team-role {
    padding-top: 0.3em;
}

.team-area {
    padding-top: 0.6em;
}

/*Studio*/
.cit-row p {
    padding: clamp(15px, 2.7vw, 50px) clamp(25px, 4.2vw, 80px);
    background-image: url(/wp-content/uploads/2026/06/cit-top-left.svg), url(/wp-content/uploads/2026/06/cit-bottom-right.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right bottom;
    background-size: clamp(20px, 3.2vw, 60px), clamp(20px, 3.2vw, 60px);
}

.border-bottom {
    border-bottom: 1px solid #B7AE98;
}

.mobile-timeline {
    display: none;
}

.timeline {
    display: flex;
    position: relative;
    flex-direction: column;
    box-sizing: border-box;

    .timeline-years {
        display: flex;
        justify-content: space-between;
        padding-bottom: clamp(30px, 5.5vw, 100px);
    }

    .single-year-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timeline-slides {
        margin-right: clamp(25px, 4.2vw, 80px);
        margin-left: clamp(25px, 4.2vw, 80px);
        overflow: hidden;
    }

    .single-slide {
        .image {
            width: 40%;
            padding-right: 2vw;

            img {
                max-width: 100%;
            }
        }

        .text {
            width: 60%;
            padding-left: 2vw;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }
    }
}

.single-year-box.active-year,
.mobile-timeline {
    .year-text {
        opacity: 1;
    }
}

.year-text {
    font-size: clamp(30px, 4.2vw, 80px);
    cursor: pointer;
    opacity: 0.5;
}

.year-text:focus {
    outline: none;
}

/*Timeline Studio*/
.ms-timeline {
    display: flex;
    flex-direction: column;
}

.ms-timeline__years {
    display: flex;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 50px);
    padding-bottom: clamp(30px, 5.5vw, 100px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ms-timeline__years::-webkit-scrollbar {
    display: none;
}

.ms-timeline__year {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.ms-timeline__year .year-text {
    transition: opacity .35s ease;
}

.ms-timeline__year.is-active .year-text,
.ms-timeline__year:focus-visible .year-text {
    opacity: 1;
}

.ms-timeline__track {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ms-timeline .ms-timeline__dots {
    display: none;
    position: static;
    margin-top: 16px;
    text-align: center;
}

.ms-timeline .ms-timeline__dots .swiper-pagination-bullet {
    margin-left: 8px;
    margin-right: 8px;
}

.ms-timeline .ms-timeline__dots .swiper-pagination-bullet-active {
    width: var(--dot-active-width, 30px);
    border-radius: 8px;
    background: #dfbd93;
}

.ms-timeline__track .swiper-slide {
    box-sizing: border-box;
    width: 60%;
    padding-inline: clamp(20px, 2.5vw, 48px);
    color: #757575;
    opacity: .3;
    transition: opacity .45s ease, color .45s ease;
}

.ms-timeline__track .swiper-slide-active {
    color: #1A2234;
    opacity: 1;
}

.ms-timeline__track .swiper-slide p {
    margin: 0;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.6;
    text-align: left;
}

/*Team*/
.lined-title {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0 !important;
    text-align: center;
}

.lined-title:before {
    content: "";
    transform: translateY(-50%);
    height: 1px;
    background-color: #00000080;
    margin-right: clamp(30px, 2.8vw, 50px);
}

.lined-title:after {
    content: "";
    transform: translateY(-50%);
    height: 1px;
    background-color: #00000080;
    margin-left: clamp(30px, 2.8vw, 50px);
}

/*Singolo Articolo*/
.single-blog-content,
.single-team-content,
.custom-top-content {
    padding-top: clamp(90px, 13.2vw, 250px);
    /*padding-top: clamp(60px, 13.2vw, 250px);*/
}

.single-blog-header {
    display: flex;
    align-items: stretch;
}

.single-blog-header-left {
    flex: 1;
    border-right: 1px solid #000000;
    padding-right: clamp(24px, 3vw, 60px);
}

.single-blog-header-left .wp-block-post-title {
    line-height: 1.2;
    margin: 0;
}

.single-blog-header-right {
    flex-shrink: 0;
    width: clamp(200px, 30%, 350px);
    padding-left: clamp(24px, 3vw, 60px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 36px);
}

.single-blog-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;

    .wp-block-post-author-name,
    .wp-block-post-date {
        font-size: clamp(15px, 1.1vw, 20px);
        color: #1A2234;
        text-transform: capitalize;
    }
}

.single-blog-label {
    font-size: clamp(18px, 1.9vw, 36px);
}

.single-blog-featured-image img,
.single-blog-featured-image figure img {
    width: 100%;
    max-height: clamp(300px, 45vw, 580px);
    object-fit: cover;
    display: block;
}

.single-blog-content a {
    color: #1A2234;
    text-decoration: underline;
}

.single-blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #B7AE98;
}

.post-navigation-link-previous a,
.post-navigation-link-next a {
    display: inline-block;
    font-family: "Instrument Serif", serif;
    font-size: clamp(18px, 1.3vw, 22px);
    background-repeat: no-repeat;
    background-size: 1.4em;
    transition: 0.25s ease-in-out;
}

.post-navigation-link-previous a {
    padding-left: 1.8em;
    background-image: url(/wp-content/uploads/2026/06/prev-arrow.svg);
    background-position: left center;
}

.post-navigation-link-previous a:hover {
    margin-left: -6px;
}

.post-navigation-link-next a {
    padding-right: 1.8em;
    background-image: url(/wp-content/uploads/2026/06/next-arrow.svg);
    background-position: right center;
}

.post-navigation-link-next a:hover {
    margin-right: -6px;
}

/*Singolo Team*/
.single-team-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    font-size: clamp(18px, 1.3vw, 22px);
    background-image: url(/wp-content/uploads/2026/06/prev-arrow.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    transition: 0.25s ease-in-out;
}

.single-team-back:hover {
    margin-left: -6px;
}

.single-team-header {
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 3vw, 60px);
}

.single-team-image {
    flex-shrink: 0;
    width: clamp(260px, 32%, 420px);
    border-radius: 2em;
    overflow: hidden;
}

.single-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-team-body {
    flex: 1;
}

.single-team-name {
    margin: 0;
}

.single-team-role {
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2em;
}

.single-team-meta-label {
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3em;
}

.single-team-divider {
    border: none;
    border-top: 1px solid #B7AE98;
    margin: clamp(20px, 2.5vw, 40px) 0;
}

.single-team-bio {
    padding-top: clamp(30px, 5.3vw, 100px) !important;
}

/*Contatti*/
.header-auto.header-contatti {
    justify-content: center;

    .header-texts-wrapper {
        gap: 0;

        figure {
            max-width: 500px;
            width: 65%;

            img {
                width: 100%;
            }
        }
    }
}

.contactinfo-row {
    >div:not(:last-of-type) {
        border-right: 1px solid #1A2234;
    }

    a {
        text-decoration: underline;
        text-underline-offset: 0.4em;
    }

    .link-indicazioni a,
    .link-indicazioni a:visited {
        text-transform: uppercase;

        color: #1a223485;
    }

    .link-indicazioni a:hover {
        color: #1a223485;
    }
}

.logo-commercialisti-global img {
    width: 60%;
    max-width: 400px;
}

/*Singole Expertise*/
ol.roman2 {
    list-style: none !important;
    counter-reset: items;
    padding: 0;
    max-width: 1080px;

    li {
        counter-increment: items;
        display: flex;
        align-items: stretch;
        margin-bottom: 1em;
        margin-top: 0;
    }

    li::before {
        width: 1.60em;
        flex-shrink: 0;
        content: counter(items, upper-roman) ".";
        font-family: "Instrument Serif", serif;
        font-size: clamp(24px, 3.5vw, 50px);
        font-style: italic;
        color: #B7AE98;
        line-height: 1.2;
    }

    h3 {
        margin-top: 0;
        margin-bottom: 0;
    }

    .link-more a,
    .link-more a:visited {
        padding-right: calc(10px + clamp(40px, 2.7vw, 62px));
        font-size: 0.85em;
        font-weight: 500;
        text-transform: uppercase;
        color: #B7AE98;
        background-image: url(/wp-content/uploads/2026/06/arrow-right.svg);
        background-repeat: no-repeat;
        background-position: right 6px center;
        background-size: clamp(40px, 2.7vw, 62px) clamp(11px, 0.8vw, 18px);
        filter: brightness(0) saturate(100%) invert(85%) sepia(19%) saturate(264%) hue-rotate(5deg) brightness(80%) contrast(88%);
        transition: 0.25s ease-in-out;
    }

    .link-more a:hover {
        background-position: right 0 center;
    }
}

ol.roman2 li.border-bottom:not(:last-of-type) {
    margin-bottom: clamp(5px, 1vw, 20px);
    padding-bottom: clamp(5px, 1vw, 20px);
}

.listbox-with-icon {
    max-width: 1080px;
}

.list-with-icon {
    column-gap: 2vw;
    align-items: flex-start;
    margin-bottom: 1em !important;
    justify-content: flex-start;

    .col1 figure {
        margin-top: 1vw;
        width: clamp(48px, 4vw, 78px);

        img {
            width: 100%;
            height: auto;
            display: block;

        }
    }

    .col2 .link-more a,
    .col2 .link-more a:visited {
        font-size: 0.85em;
        text-transform: uppercase;
        color: #757575;
        transition: 0.25s ease-in-out;
    }

    .col2 .link-more a:hover {
        color: #1A2234;
    }

}

ul.twocolumns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5vw;
    padding-left: 0;

    li {
        list-style-type: none;
        border-bottom: 1px solid #B7AE98;
        margin-bottom: clamp(15px, 1.2vw, 30px);
        padding-bottom: clamp(15px, 1.2vw, 30px);
    }

    h3 {
        font-size: clamp(22px, 1.9vw, 35px);
        margin-top: 0;
        margin-bottom: 0;
    }
}

ul.twocolumns.fullborder {
    column-gap: 0;
    border-top: 1px solid #B7AE98;

    a {
        display: block;
        cursor: pointer;
        background-image: url(/wp-content/uploads/2026/06/arrow-right.svg);
        background-repeat: no-repeat;
        background-position: right 0.18em center;
        background-size: auto 0.75em;
        transition: 0.25s ease-in-out;
    }

    a:hover {
        background-position: right 0 center;
    }

    li {
        margin-top: 0 !important;
        margin-bottom: 0;
        padding-top: 1.75vw;
        padding-bottom: 1.75vw;
    }

    li:nth-child(odd) {
        border-right: 1px solid #B7AE98;
        padding-right: 1.75vw;
    }

    li:nth-child(even) {
        padding-left: 1.75vw;
    }
}

ul.twocolumns-b {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5vw;
    padding-left: 0;

    li {
        list-style-type: none;
        border-left: 4px solid #DBD6CB;
        padding-left: clamp(15px, 1.2vw, 30px);
    }

    h3 {
        font-size: clamp(22px, 1.9vw, 35px);
        margin-top: 0;
        margin-bottom: 0;
    }
}

ul.twocolumns-b.noborder li {
    border-left: none;
    padding-left: 0;
}

ul.threecolumns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 3.5vw;
    row-gap: 1.75vw;
    padding-left: 0;

    li {
        list-style-type: none;
        border-left: 4px solid #DBD6CB;
        padding-left: clamp(15px, 1.2vw, 30px);
    }

    h3 {
        font-size: clamp(22px, 1.9vw, 35px);
        margin-top: 0;
        margin-bottom: 0;
    }
}

ol.ol-gridcard-ms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5vw;
    row-gap: 1.5vw;
    padding-left: 0;

    li {
        counter-increment: items;
        display: flex;
        flex-direction: column;
        margin-bottom: 1em;
        margin-top: 0;
        padding: clamp(20px, 2.5vw, 45px);
        background-color: #EAEFF5;
        border-radius: 20px;
    }

    li::before {
        content: counter(items, decimal-leading-zero);
        margin-bottom: 10px;
        font-family: "Instrument Serif", serif;
        font-size: clamp(24px, 3.5vw, 50px);
        color: #CFC5B4;
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(22px, 3.5vw, 35px);
        margin-top: 0;
        margin-bottom: 0;
    }
}

.faq-row {
    border-bottom: 1px solid #B7AE98;
}

.faq-title {
    list-style: none;
    cursor: pointer;
    font-size: clamp(22px, 1.9vw, 35px);
    padding: 1.2em 2.2em 1.2em 0;
    position: relative;
}

.faq-title::-webkit-details-marker {
    display: none;
}

.faq-title:focus {
    outline-color: transparent;
}

.faq-title::after {
    content: "";
    position: absolute;
    right: 1em;
    top: 50%;
    width: 0.7em;
    height: 0.7em;
    background: url(/wp-content/uploads/2026/07/plus-icon.svg) no-repeat center;
    background-size: contain;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
}

details[open] .faq-title::after {
    background: url(/wp-content/uploads/2026/07/close-icon.svg) no-repeat center;
    background-size: contain;
}

.faq-text {
    padding: 0 5em 1.2em 0;

    p {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/*Credits*/
.bblogo {
    text-align: center;
}

.bblogo img {
    width: 280px;

}

/*CH04 - FOOTER*/
footer {
    margin-top: 0;

    p,
    a,
    ul,
    li,
    address {
        font-size: clamp(14px, 1vw, 18px);
        line-height: 1.6;
    }

    .footer-top {

        a,
        a:visited,
        a:focus,
        a:hover {
            color: #1A2234;
        }

        a:hover {
            text-decoration: underline;
        }

        nav ul {
            row-gap: 0 !important;
        }

        address {
            font-style: normal;
        }

        address p {
            margin-top: 0;
            margin-bottom: 0;
        }

        .footer-logosite {
            margin-bottom: 1em;
        }

        .footer-logosite img {
            width: 100%;
            max-width: 250px;
        }

        .logo-commercialisti {
            padding-right: 1vw;
        }
    }

    .footer-bottom {
        padding-top: clamp(15px, 1.9vw, 35px);
        margin-top: clamp(15px, 1.9vw, 35px);
        border-top: 1px solid #B7AE98;

        a,
        a:visited,
        a:focus,
        a:hover {
            color: #B7AE98;
        }

        a:hover {
            text-decoration: underline;
        }

        .col2 p {
            width: 100%;
            display: flex;
            justify-content: end;

            a {
                margin-left: 1em;
            }
        }
    }
}

/*CH05 - MEDIA QUERIES*/
@media screen and (max-width:1600px) {

    /*.header-desktop .wp-block-site-logo img {
        min-width: 200px;
    }*/
}

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

    /*.header-custom {
        padding-left: 30px;
        padding-right: 30px;
    }*/

    .header-desktop {
        /*gap: 0.2rem;*/

        .wp-block-site-logo img {
            min-width: 150px;
        }
    }
}

@media screen and (max-width:1380px) {
    header .header-custom a.book-menu-button {
        padding: 15px 20px 10px 20px;
    }
}

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

    .header-desktop .wp-block-navigation__container {
        gap: 5px;
    }

    header .header-custom {
        padding-left: 20px;
        padding-right: 20px;
    }

}

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


    .header-desktop {
        .wp-block-navigation {
            margin-left: 0;
            margin-right: 0;
        }

        /*a span {
            padding-left: 10px;
            padding-right: 10px;
        }*/
    }

    /*header .header-custom a.book-menu-button {
        padding: 15px 25px 10px 25px;
    }*/
}

@media screen and (max-width:1023px) {
    .header-desktop {
        .wp-block-site-logo img {
            min-width: 120px;
        }
    }

    footer .footer-top {
        flex-wrap: wrap;

        .col1 {
            flex-basis: 100%;
            margin-bottom: 2vw;
            align-items: center;
        }

        .col2 {
            flex-basis: 18%;
        }

        .col3,
        .col4 {
            flex-basis: 35%
        }

        .logo-commercialisti {
            padding-right: 0;
            max-width: 260px;
        }
    }
}

@media screen and (max-width:991px) {
    header {
        min-width: 100%;
        border-radius: 0;
        padding: 0;
        top: 0;
        left: 0;
        transform: none;
        background: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        .wp-block-site-logo {
            border-right: none;
        }
    }

    header::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(26, 34, 52, 0.3) 0%, rgba(26, 34, 52, 0) 60%), #1a223460;
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        backdrop-filter: blur(16px) saturate(140%);
    }

    .header-custom {
        padding-top: 15px;
        padding-bottom: 15px;

        .wp-block-navigation-item:not(.book-menu-button) a span,
        .wp-block-navigation-item:not(.book-menu-button) a:visited span,
        .wp-block-navigation-item:not(.book-menu-button) a:hover span,
        .current-menu-item a {
            font-size: 20px;
            font-weight: 500;
        }

        .book-menu-button {
            margin-top: 15px;
        }
    }

    .header-desktop {
        display: none !important;
    }

    .header-mobile {
        display: flex !important;
        margin-top: 0;


        .wp-block-navigation__responsive-container {

            background-color: rgba(0, 0, 0, 0.25) !important;

        }

        .wp-block-navigation__responsive-container.is-menu-open {
            background: #1a2234cc;
            -webkit-backdrop-filter: blur(16px) saturate(140%);
            backdrop-filter: blur(16px) saturate(140%);
            padding-top: 30px;
            padding-left: 30px;
            padding-right: 30px;
        }

        .wp-block-navigation__container {
            width: 100%;
            align-items: center !important;
            padding-top: 35px;
        }
    }

    .wp-block-site-logo a,
    .wp-block-site-logo img {
        min-width: 160px;
    }

    .wp-block-navigation__responsive-container-close svg,
    .wp-block-navigation__responsive-container-open svg {
        fill: #FFFFFF;
    }

    .header-auto .scroll-down {
        bottom: 15px;
    }

    .section-form-home>div {
        flex-basis: 100%;
    }

    footer .footer-bottom {
        flex-direction: column-reverse;

        .col1,
        .col2 {
            width: 100%;

            p {
                text-align: center;
                justify-content: center;
            }
        }
    }

    .grid-card-ms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contactinfo-row {
        flex-direction: column;

        >div:not(:last-of-type) {
            border-right: none;
            padding-bottom: 1.2rem;
        }
    }

    .single-blog-content>* {
        max-width: 100%;
    }
}

@media screen and (max-width: 800px) {
    .timeline {
        display: none;
    }

    .mobile-timeline {
        display: block;
    }

    /*Su telefono niente sporgenza laterale: dentro il padding di sezione
      resterebbero 9px di testo visibile per lato (impercettibili), e allargarla
      vorrebbe dire stringere la colonna centrale — che avendo altezza riservata
      sul testo piu' lungo farebbe crescere in altezza tutta la sezione.
      Slide a piena larghezza e senza padding: la colonna di testo coincide con
      il padding di sezione, allineata al resto della pagina. La gronda tra una
      slide e l'altra la fa spaceBetween in ms-timeline.js.*/
    .ms-timeline__track .swiper-slide {
        width: 100%;
        padding-inline: 0;
    }
}

@media screen and (max-width:767px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }

    .d-block {
        display: inline;
    }

    .padding-y-low,
    .padding-y-hi,
    .padding-y {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .padding-top-low,
    .padding-top-hi,
    .padding-top {
        padding-top: 30px;
    }

    .padding-bottom-low,
    .padding-bottom-hi,
    .padding-bottom {
        padding-bottom: 30px;
    }

    .padding-x,
    .padding-x-hi,
    .padding-x-low {
        padding-left: 30px;
        padding-right: 30px;
    }

    .padding-left,
    .padding-left-hi,
    .padding-left-low {
        padding-left: 30px;
    }

    .padding-right,
    .padding-right-hi,
    .padding-right-low {
        padding-right: 30px;
    }

    .section-form-home form .row-form.split {
        display: flex;
        flex-direction: column;
        justify-content: center;

        .col-form {
            width: 100%;
        }
    }

    .header-auto {
        padding: 60px 30px;
    }

    .header-auto:not(.header-contatti) {
        justify-content: center;

        .header-texts-wrapper {
            gap: 6vw;
            flex-direction: column;
            align-items: flex-start;
        }
    }

    .section-studio-home,
    .section-expertise-home .bordered-row.two,
    .row-metodo-home,
    .section-numeri-home .row-hl,
    footer .footer-top,
    footer .footer-bottom .col2 p,
    .single-blog-header {
        flex-direction: column;

        >.col1,
        >.col2,
        >.col3,
        >.col4 {
            flex-basis: 100%;
            width: 100%;
        }
    }

    .generazioni-row {
        flex-direction: column-reverse;

        >.col1,
        >.col2,
        >.col3,
        >.col4 {
            flex-basis: 100%;
            width: 100%;
        }
    }

    .section-expertise-home {
        .bordered-row.two .col1 {
            padding-bottom: 2em;
            border-bottom: 1px solid #B7AE98;
        }

        .bordered-row.two p.padding-bottom-low {
            padding-bottom: 0;
        }

        .bordered-row.two:after {
            content: none;
        }
    }

    .home-cit-row {
        padding-bottom: 30px;
        border-bottom: 1px solid #B7AE98;
    }

    .row-hl .col1,
    .row-hl .col2 {
        border-right: none;
        border-bottom: 1px solid #B7AE98;
    }

    footer .footer-bottom .col2 {
        padding-bottom: 1em;
        border-bottom: 1px solid #B7AE98;
    }

    .grid-card-ms {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    ul.twocolumns,
    ul.twocolumns-b,
    ul.threecolumns,
    ol.ol-gridcard-ms {
        grid-template-columns: 1fr;
    }

    ul.twocolumns.fullborder li:nth-child(even),
    ul.twocolumns.fullborder li:nth-child(odd) {
        padding-left: 0;
        padding-left: 0;
        border-right: none;
    }

    /*Singolo Articolo*/
    .ms-single-header {
        flex-direction: column;
    }

    .ms-single-header-left {
        border-right: none;
        border-bottom: 1px solid #B7AE98;
        padding-right: 0;
        padding-bottom: clamp(20px, 2.1vw, 40px);
        width: 100%;
    }

    .ms-single-header-right {
        width: 100%;
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-top * {
        align-items: center;
        text-align: center;
    }

    .footer-top .col2 {
        display: none;
    }

    /*Singolo Articolo*/
    .single-blog-header-left {
        border-right: none;
        border-bottom: 1px solid #000000;
        padding-bottom: clamp(24px, 3vw, 60px);
    }

    .single-blog-header-right {
        padding-left: 0;
    }

    /*Singolo Team*/
    .single-team-header {
        flex-direction: column;
    }

    .single-team-image {
        width: 100%;
    }
}

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

    .credits .d-block {
        display: inline;
    }

    .bblogo img {
        max-width: 170px;
    }

    .footer-logo {
        max-width: 180px;
    }
}

@media screen and (max-width:375px) {
    .header-auto.header-contatti {
        .header-texts-wrapper {
            figure {
                width: 80%;
            }
        }
    }

    .button-ms,
    .book-menu-button a span {
        padding: 15px 40px 10px 20px;
        background-position: right 10px center;
        background-size: auto 60%;
    }

    .ms-card-archive-link:hover {
        margin-left: 0;
    }
}

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

    .button-ms {
        font-size: 13px;
    }
}