html.macro-homepage-motion {
    scroll-behavior: auto;
}

.macro-homepage-ready {
    --macro-red: #db2d43;
}

.macro-homepage-ready .macro-site-header {
    border-bottom-color: transparent !important;
}

.macro-homepage-ready .macro-site-header[id="home"]::after,
.macro-homepage-ready .macro-floating-header::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: -5px;
    width: 0;
    height: 5px;
    background-color: var(--macro-red);
    animation: macro-expand-bar 0.6s ease-in-out 0.4s forwards;
    pointer-events: none;
    content: '';
}

.macro-homepage-ready .macro-floating-header {
    position: fixed;
    top: -4.56px;
    left: 0;
    z-index: 999;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 10px #efefef;
    transform: translateY(-400px);
    transition: transform 0.8s ease-in-out;
    pointer-events: none;
}

.admin-bar .macro-homepage-ready .macro-floating-header {
    top: calc(var(--wp-admin--admin-bar--height, 32px) - 4.56px);
}

@media (max-width: 600px) {
    .admin-bar .macro-homepage-ready .macro-floating-header {
        top: -4.56px;
    }
}

.macro-homepage-ready .macro-floating-header.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.macro-homepage-ready .macro-floating-header::after {
    bottom: 0;
}

.macro-homepage-ready .macro-floating-header > .macro-site-header {
    width: min(95%, 1280px);
    margin-inline: auto;
}

.macro-homepage-ready .macro-brand {
    flex-wrap: nowrap;
    overflow: hidden;
}

.macro-homepage-ready .macro-brand .elementor-heading-title {
    white-space: nowrap;
}

.macro-homepage-ready .macro-brand > .elementor-widget {
    opacity: 0;
    animation: macro-appear-from-left 0.4s ease-in-out forwards;
}

.macro-homepage-ready .macro-brand > .elementor-widget:nth-child(2) {
    animation-delay: 0.2s;
}

.macro-homepage-ready .macro-brand > .elementor-widget:nth-child(3) {
    animation-delay: 0.4s;
}

.macro-homepage-ready .macro-brand > .elementor-widget:nth-child(4) {
    animation-delay: 0.6s;
}

.macro-homepage-ready .macro-nav a.elementor-button {
    color: #9d8f8f !important;
    opacity: 0;
    animation: macro-appear-from-right 0.2s ease forwards;
}

.macro-homepage-ready .macro-nav a.elementor-button.is-current {
    color: var(--macro-red) !important;
}

.macro-homepage-ready .macro-nav a.elementor-button:hover,
.macro-homepage-ready .macro-nav a.elementor-button:focus-visible {
    color: #4e4949 !important;
}

.macro-homepage-ready .macro-native-menu,
.macro-homepage-ready .macro-menu-toggle {
    display: none !important;
}

.macro-homepage-ready .macro-homepage-hero {
    opacity: 0;
    animation: macro-appear 0.8s ease 1s forwards;
}

.macro-homepage-ready .macro-parallax-scene {
    position: absolute;
    inset: -20px;
    z-index: 0;
    pointer-events: none;
}

.macro-homepage-ready .macro-parallax-scene > .macro-hero-photo {
    position: absolute !important;
    top: -20px !important;
    left: -20px !important;
    width: calc(100% + 40px) !important;
    height: calc(100% + 40px);
    min-height: 0;
    transition: none;
}

.macro-homepage-ready .macro-hero-cta {
    inset-inline-start: 50% !important;
    width: max-content;
    min-width: 120px;
    height: 80px;
    overflow: hidden;
    transform: translateX(-50%);
    cursor: pointer;
}

.macro-homepage-ready .macro-hero-cta:hover {
    opacity: 0.8;
}

.macro-homepage-ready .macro-hero-cta > .elementor-widget-button {
    transform: translateY(-4px);
}

.macro-homepage-ready .macro-hero-cta .macro-cta-line {
    position: absolute;
    bottom: 0;
    transition: bottom 0.4s ease;
}

.macro-homepage-ready .macro-hero-cta:hover .macro-cta-line,
.macro-homepage-ready .macro-hero-cta:focus-within .macro-cta-line {
    bottom: -20%;
}

.macro-homepage-ready .macro-heading-line {
    visibility: hidden !important;
    animation: none !important;
}

.macro-homepage-ready .macro-section-mark .elementor-heading-title {
    position: relative;
    display: inline-block;
}

.macro-homepage-ready .macro-section-mark .elementor-heading-title::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: -7px;
    width: 0;
    height: 4px;
    background-color: var(--macro-red);
    transition: width 1s ease;
    content: '';
}

.macro-homepage-ready .macro-section-mark.is-underlined .elementor-heading-title::after {
    width: 110%;
}

.macro-homepage-ready .macro-circular-card,
.macro-homepage-ready .macro-circular-archive {
    border-left-color: transparent !important;
}

.macro-homepage-ready .macro-circular-card::after,
.macro-homepage-ready .macro-circular-archive::after {
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 100%;
    background-color: var(--macro-red);
    transition: left 0.2s ease, width 0.2s ease;
    pointer-events: none;
    content: '';
}

.macro-homepage-ready .macro-circular-card:is(:hover, :focus-visible)::after,
.macro-homepage-ready .macro-circular-archive:is(:hover, :focus-within)::after {
    left: 0;
    width: 20px;
}

.macro-homepage-ready .macro-card-label {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.macro-homepage-ready .macro-circular-card:is(:hover, :focus-visible) .macro-card-label {
    opacity: 1;
}

.macro-homepage-ready .macro-card-arrow,
.macro-homepage-ready .macro-circular-archive .elementor-button-icon {
    display: inline-block;
    transition: transform 0.4s ease;
}

.macro-homepage-ready .macro-circular-card:is(:hover, :focus-visible) .macro-card-arrow {
    transform: translateX(20px);
}

.macro-homepage-ready .macro-circular-archive .elementor-button-icon {
    transition-duration: 0.5s;
}

.macro-homepage-ready .macro-circular-archive:is(:hover, :focus-within) .elementor-button-icon {
    transform: translateX(10px);
}

.macro-homepage-ready .macro-contact-links a {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.macro-homepage-ready .macro-contact-links .macro-pec-link:is(:hover, :focus-visible) {
    background-color: var(--macro-red);
}

.macro-homepage-ready .macro-pec-link .elementor-heading-title {
    transition: color 0.2s ease;
}

.macro-homepage-ready .macro-pec-link:is(:hover, :focus-visible) .elementor-heading-title {
    color: #fff;
}

@media (768px < width <= 1400px) {
    .macro-homepage-ready .macro-homepage-hero > .elementor-widget-heading {
        width: 600px !important;
        max-width: 600px !important;
    }

    .macro-homepage-ready .macro-homepage-hero > .elementor-widget-heading h1.elementor-heading-title {
        font-size: 44.8px;
        letter-spacing: 3.36px;
    }
}

@media (768px < width <= 1200px) {
    .macro-homepage-ready .macro-site-header .macro-nav a.elementor-button {
        font-size: 14.4px;
    }
}

@media (767px < width <= 768px) {
    .macro-homepage-ready .e-con.e-flex {
        --flex-wrap: var(--flex-wrap-mobile);
    }

    .macro-homepage-ready .elementor-hidden-mobile {
        display: none;
    }

    .macro-homepage-ready .elementor-widget.elementor-hidden-tablet:not(.elementor-hidden-mobile) {
        display: block;
    }
}

@media (480px < width <= 768px) {
    .macro-homepage-ready .elementor-hidden-mobile:has(> .macro-mark-contatti) {
        display: flex;
        padding-inline-start: 0;
    }
}

@media (max-width: 768px) {
    .macro-homepage-ready .macro-brand {
        width: max-content;
    }

    .macro-homepage-ready .macro-homepage-hero > .elementor-widget-heading {
        width: min(600px, calc(80% + 32px)) !important;
        max-width: min(600px, calc(80% + 32px)) !important;
    }

    .macro-homepage-ready .macro-site-header .macro-nav {
        position: absolute;
        inset-inline-start: 0;
        top: calc(100% + 5px);
        z-index: 2;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        width: 100%;
        max-height: 0;
        padding-inline: 19.68px;
        overflow: hidden;
        background-color: #fff;
        transition: max-height 0.4s ease-in-out;
    }

    .macro-homepage-ready .macro-site-header .macro-nav.is-open {
        max-height: 300px;
    }

    .macro-homepage-ready .macro-site-header .macro-nav > :first-child {
        margin-top: 21.28px;
    }

    .macro-homepage-ready .macro-site-header .macro-nav > :last-child {
        margin-bottom: 21.28px;
    }

    .macro-homepage-ready .macro-site-header .macro-nav .elementor-button-wrapper {
        display: flex;
    }

    .macro-homepage-ready .macro-site-header .macro-nav a.elementor-button {
        display: block;
        width: 100%;
        color: #000 !important;
        font-size: 14.4px;
        line-height: 1.45;
    }

    .macro-homepage-ready .macro-site-header .macro-nav a.elementor-button.is-current {
        color: var(--macro-red) !important;
    }

    .macro-homepage-ready .macro-site-header .macro-nav a.elementor-button:is(:hover, :focus-visible) {
        color: #4e4949 !important;
    }

    .macro-homepage-ready .macro-floating-header .macro-nav {
        inset-inline-start: calc((100% - 100vw) / 2);
        width: 100vw;
    }

    .macro-homepage-ready .macro-floating-header .macro-nav.is-open {
        border-bottom: 3px solid var(--macro-red);
    }

    .macro-homepage-ready .macro-site-header .macro-menu-toggle {
        position: absolute;
        z-index: 3;
        top: 26px;
        inset-inline-end: 8px;
        display: grid !important;
        place-items: center;
        width: 28px;
        height: 32px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--macro-red);
        cursor: pointer;
    }

    .macro-homepage-ready .macro-menu-toggle:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

    .macro-homepage-ready .macro-menu-toggle::before {
        width: 20px;
        height: 3px;
        background-color: currentColor;
        box-shadow: 0 -7px currentColor, 0 7px currentColor;
        content: '';
    }

    .macro-homepage-ready .macro-card-label {
        opacity: 1;
    }
}

@media (min-width: 480px) and (max-width: 768px) and (orientation: landscape) {
    .macro-homepage-ready .macro-hero-brand {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .macro-homepage-ready *,
    .macro-homepage-ready *::before,
    .macro-homepage-ready *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes macro-expand-bar {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes macro-appear-from-left {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes macro-appear-from-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes macro-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}
