/* Buttons - wp-block-button */

.wp-block-button .wp-block-button__link {
    transition: background-color 120ms ease;
}

.wp-block-button .wp-block-button__link:has(svg) {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xs);
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--wp--preset--color--blue-dark);
    border-color: var(--wp--preset--color--blue-dark);
    transition: all 120ms ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:is(:hover, :focus, :active) {
    background-color: color-mix(in srgb, var(--wp--preset--color--blue-light) 80%, transparent);
    color: color-mix(in srgb, var(--wp--preset--color--blue-dark) 80%, transparent);
    border-color: color-mix(in srgb, var(--wp--preset--color--blue-dark) 80%, transparent);
}

/* Accent button */
.has-background:not(.has-dark-background-color) .wp-block-button .wp-block-button__link {
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--blue-dark);
    background-color: var(--wp--preset--color--blue-dark);
}

.has-background:not(.has-dark-background-color) .wp-block-button .wp-block-button__link:is(:hover, :focus, :active) {
    background-color: var(--wp--preset--color--dark);
    border-color: var(--wp--preset--color--dark);
}

/* Link button */
.wp-block-button.is-style-link .wp-block-button__link {
    color: var(--wp--preset--color--blue-dark);
    transition: all 120ms ease;
    background: none;
    border: none;
    padding-left: 0;
    text-align: left;
}

/* END Buttons - wp-block-button */

/* Read More - wp-block-read-more */
.wp-block-read-more,
.wp-block-button.is-style-link .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xxs);
    color: var(--wp--preset--color--blue-dark);
    font-weight: 700;
    transition: color 120ms ease;
    padding: var(--wp--preset--spacing--xs) 0;
}

.wp-block-read-more:is(:hover, :focus, :active),
.wp-block-button.is-style-link .wp-block-button__link:is(:hover, :focus, :active) {
    color: var(--wp--preset--color--dark);
}

.wp-block-read-more:is(:hover, :focus, :active)::after,
.wp-block-button.is-style-link .wp-block-button__link:is(:hover, :focus, :active)::after {
    filter: brightness(.50);
    margin-left: var(--wp--preset--spacing--xxs);
}

.wp-block-read-more::after,
.wp-block-button.is-style-link .wp-block-button__link::after {
    content: "";
    display: inline-block;
    background-image: url('../images/icons/arrow-right.svg');
    background-size: contain;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 120ms ease;
}

/* END Read More - wp-block-read-more */

.wp-block-cover.deco,
.wp-block-cover.alignfull {
    border-radius: 0;
}

.wp-block-video {
    margin: 0;
    display: flex;
}

.wp-block-cover.deco .wp-block-cover__image-background {
    object-fit: contain;
    object-position: bottom;
}

header .wp-block-navigation .menu {
    display: inline-flex;
    gap: var(--wp--preset--spacing--xs);
}

header .wp-block-navigation .wp-block-navigation-item {
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 120ms ease;
    padding: 0;
}

header .wp-block-navigation .wp-block-navigation-item a {
    display: block;
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
}

header .wp-block-navigation .wp-block-navigation-item.current-menu-item {
    color: var(--wp--preset--color--blue-dark);
    border-color: var(--wp--preset--color--blue-dark);
}

header .wp-block-navigation .wp-block-navigation-item:is(:hover, :focus, :active) {
    color: color-mix(in srgb, var(--wp--preset--color--dark) 80%, var(--wp--preset--color--blue));
    border-color: color-mix(in srgb, var(--wp--preset--color--dark) 80%, var(--wp--preset--color--blue));
}


.wp-block-post-terms {
    color: #228BE6;
}

.wp-block-post-terms .wp-block-post-terms__suffix {
    font-weight: 700;
    color: var(--wp--preset--color--blue-dark);
    display: inline-flex;
}

.wp-block-post-terms .wp-block-post-terms__separator {
    color: var(--wp--preset--color--gray);
}


.wp-block-info-evento {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--xs);
    margin-top: var(--wp--preset--spacing--md);
}

.wp-block-info-evento :is(dd, dt) {
    display: inline-block;
    margin: 0;
}

.wp-block-info-evento dt {
    font-weight: 700;
}

.wp-block-info-evento dt::after {
    content: ": ";
}

/* GROUP VARIATIONS - wp-block-group */

/* Underline heading */
@media (max-width: 767px) {
    .wp-block-heading.is-style-underline {
        text-align: left;
    }
}

/* Section Blue */
.is-style-section-blue .wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
}

.is-style-section-blue:not(.has-dark-background-color) .is-style-underline {
    text-decoration-color: var(--wp--preset--color--yellow);
    -webkit-text-decoration-color: var(--wp--preset--color--yellow);
}

/* Section Subtle */
.is-style-section-subtle:not(.alignfull) {
    border-left: 4px solid var(--wp--preset--color--blue);
}

.has-white-background-color :is(.wp-block-heading, p, a:where(:not(.wp-element-button))) {
    color: var(--wp--preset--color--dark);
}

.has-white-background-color a:is(.wp-element-button, .wp-block-read-more) {
    color: var(--wp--preset--color--blue-dark) !important;
}

.has-white-background-color .wp-block-post-terms>a {
    color: var(--wp--preset--color--gray);
}

/* END GROUP VARIATIONS - wp-block-group */



/* SECTIONS */
/* Newsletter section */
.lgt-airc-section-newsletter {
    background-image: url('../images/BG-newsletter-mobile.png');
    min-height: 600px;
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    padding-top: 10vw;
    padding-bottom: 10vw;
}

@media (min-width: 768px) {
    .lgt-airc-section-newsletter {
        background-image: url('../images/BG-newsletterV02.png');
        background-size: cover;
        /* min-height: 580px; */
    }
}

/* QUERY EVENTI */
.lgt-airc-query-eventi .teaser-card {
    background-image: url('../images/BG-teaser_cardV02.png');
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    padding-right: var(--wp--preset--spacing--xl);
}

.wp-block-post-template .wp-block-post .wp-block-post-featured-media {
    border-radius: var(--wp--custom--border-radius--lg);
    background-color: #F1F3F5;
    aspect-ratio: 187 / 166;
    display: block;
    overflow: hidden;
    width: 100%;
}

.wp-block-post-template .wp-block-post .wp-block-post-featured-media:not(:has(>:is(figure, video))) {
    background-image: url('../images/teaser-card-eventi_00V02.png');
    background-position: center;
    background-size: 60%;
    background-repeat: no-repeat;
}

.wp-block-post-template .wp-block-post:nth-child(3n+1) .wp-block-post-featured-media:not(:has(>:is(figure, video))) {
    background-image: url('../images/teaser-card-eventi_01V02.png');
}

.wp-block-post-template .wp-block-post:nth-child(3n+2) .wp-block-post-featured-media:not(:has(>:is(figure, video))) {
    background-image: url('../images/teaser-card-eventi_02V02.png');
}

/* QUERY POST in evidenza */
.lgt-airc-banner-highlight {
    background-image: url('../images/BG-teaser_highlight.png');
    margin: var(--wp--preset--spacing--xxxl) 0;
    
}

/* STEP SECTION */
.lgt-airc-section-step .column-step>p:last-child {
    padding: var(--wp--preset--spacing--xl) 0;
    font-size: var(--wp--preset--font-size--md);
    text-align: right;
}

.lgt-airc-section-step .column-step>p:last-child a {
    text-decoration: underline;
}

.lgt-airc-section-step .column-step :where(ol, ul) {
    display: flex;
    flex-direction: row;
    gap: var(--wp--preset--spacing--md);
    counter-reset: count;
    padding: 0;
}

.lgt-airc-section-step .column-step li {
    counter-increment: count;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: var(--wp--preset--spacing--sm);
    max-width: 33%;
}

.lgt-airc-section-step .column-step li::before {
    content: counter(count);
    font-size: var(--wp--preset--font-size--heading-lg);
    font-weight: 700;
    display: block;
    padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md);
    height: fit-content;
    color: var(--wp--preset--color--dark);
    background-color: var(--wp--preset--color--yellow);
    border-radius: 3ch 0 0 3ch;
}

@media (max-width: 767px) {
    .lgt-airc-section-step .column-step ol {
        flex-direction: column;
        gap: var(--wp--preset--spacing--lg);
        padding: var(--wp--preset--spacing--md) 0;
    }

    .lgt-airc-section-step .column-step li {
        max-width: 100%;
    }

    .lgt-airc-section-step .column-step li::before {
        padding: calc(var(--wp--preset--spacing--sm) * .75) var(--wp--preset--spacing--xs);
    }
}

@media (min-width: 768px) {
    .lgt-airc-section-step .column-cta {
        background-image: url('../images/BG-step_ctaV02.png');
        background-size: contain;
        background-position: right bottom;
        background-repeat: no-repeat;
    }
}

/* SLIDER */
.lgt-airc-section-slider {
    background-image: url('../images/BG-slider.png');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto 70%;
}


/* HERO WIDE */
.lgt-airc-hero-wide :is(.wp-block-cover__image-background, .wp-block-cover__video-background) {
    z-index: -2;
}

.lgt-airc-hero-wide .wp-block-cover__inner-container .content {
    position: relative;
    max-width: 80%;
    margin-left: 0 !important;
    padding-bottom: var(--wp--preset--spacing--md);
}


.lgt-airc-hero-wide .wp-block-cover__inner-container .content::before {
    content: "";
    display: block;
    box-sizing: content-box;
    width: 120%;
    height: 100%;
    background-color: var(--wp--preset--color--blue-dark);
    position: absolute;
    pointer-events: none;
    border-top-right-radius: 99ch;
    border-bottom-right-radius: 99ch;
    z-index: -1;
    top: calc(var(--wp--preset--spacing--xl) * -1);
    left: calc(var(--wp--preset--spacing--xl) * -1);
    padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--lg);
}

@media (min-width: 768px) {
    .lgt-airc-hero-wide .wp-block-cover__inner-container .content {
        max-width: 50%;
        padding-bottom: var(--wp--preset--spacing--xl);
    }

    .lgt-airc-hero-wide .wp-block-cover__inner-container .content::before {
        border-radius: 99ch;
        top: calc(var(--wp--preset--spacing--xxxl) * -1);
        left: calc(var(--wp--preset--spacing--xxxl) * -1 - 20%);
        padding: var(--wp--preset--spacing--xxxl) var(--wp--preset--spacing--xxxl) var(--wp--preset--spacing--xxl);
    }
}

/* HERO CAMPAGNE */
.lgt-airc-hero.hero-campagna {
    position: relative;
}

.lgt-airc-hero.hero-campagna .hero-campagna-info {
    position: relative;
}

.lgt-airc-hero.hero-campagna .hero-campagna-info::before {
    content: "";
    display: block;
    width: 300px;
    height: 300px;
    background-image: url('../images/BG-campagna_evento.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: calc(var(--wp--preset--spacing--xxxl) * -1);
    left: calc(var(--wp--preset--spacing--xl) * -1);
    z-index: -1;
}

@media (max-width: 767px) {
    .lgt-airc-hero.hero-campagna .hero-campagna-info::before {
        display: none;
    }
}

.lgt-airc-section-campagne-teaser .wp-block-cover {
    align-items: flex-end;
    padding: var(--wp--preset--spacing--lg);
}

.lgt-airc-section-campagne-teaser .wp-block-cover:not(.deco) .wp-block-cover__background {
    background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
    background-color: unset !important;
    opacity: 1 !important;
}

.lgt-airc-section-campagne-teaser .wp-block-cover .wp-block-button .wp-block-button__link {
    background: unset;
    padding-left: 0;
    color: var(--wp--preset--color--white);
}

.lgt-airc-section-campagne-teaser .wp-block-cover .wp-block-button .wp-block-button__link svg {
    transition: margin-left 120ms ease;
}

.lgt-airc-section-campagne-teaser .wp-block-cover .wp-block-button .wp-block-button__link:is(:hover, :active, :focus) svg {
    margin-left: var(--wp--preset--spacing--xxs);
}


.lgt-airc-section-campagne-cta .cta-form {
    border-radius: var(--wp--custom--border-radius--xl);
    outline: 8px solid var(--wp--preset--color--blue);
    padding: var(--wp--preset--spacing--md);
    overflow: hidden;
}

/*  */