/* HUB */
.gp-page-title .elementor-widget.elementor-widget-ghostpool_button {
    z-index: 2;
}
.gp-affiliates-field-row {
    text-align: left;
}
.elementor-widget-container a.customize-unpreviewable, .elementor-widget-container a.customize-unpreviewable a,
.customlinkaffiliate a {
	color: #333;
}
/* Featured image background — force cover (fallback per container/section) */
.gp-featured-section-background {
    height: 100% !important;
    pointer-events: none; /* let clicks pass through to content below */
}
.gp-featured-item-outer .gp-featured-item-inner {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* POSTS */
.single-post .gp-affiliates-title, .gp-affiliates-field, .gp-affiliates-button-field {
    width: auto;
    margin-right: 20px;
}
.single-post .gp-featured-item-outer.gp-featured-section-background,
.single-post .gp-page-title .elementor-section.elementor-top-section {
    max-height: 500px;
}
.featured-box-loop-sp .elementor-column.elementor-col-100.elementor-top-column {
    background-color: #777777;
    z-index: 1;
}
/* CUSTOM PARAGRAPH */
.single-post .entry-content .quotemin p {
    font-size: 18px;
}
.single-post .entry-content .cit-small p {
    font-size: 16px;
}
/* IMAGES */
.alignright.is-resized img, .alignleft.is-resized img {
    margin: 0 auto;
    display: block;
}
.single-post .entry-content figcaption.wp-element-caption {
    display: block;
    text-align: center;
    width: 100%;
}
.gp-element-post-meta span.gp-heading span.gp-post-meta {
    padding-right: 10px;
}
/* Schede tecniche — override Elementor inline styles */
.gp-page-title .gp-featured-item-outer.gp-featured-section-background {
    max-height: none !important;
    overflow: visible !important;
}
.gp-page-title .elementor-section.elementor-top-section {
    max-height: none !important;
    overflow: visible !important;
}
/* Buttons */
.subwaypress-btn a.wp-block-button__link {
    background: #EC3535;
    border-radius: 0;
    padding: 4px 12px 4px 12px;
}
/* LEARN MORE */
a.learn-more {
    z-index: 2;
  position: relative;
}
#moreText {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
#moreText.show {
    max-height: 500px; /* Imposta un valore sufficientemente grande per contenere il testo */
}

@media(max-width:992px) {
    .gp-page-title .elementor-inner-column.elementor-element:first-child {
        display: none;
    }
    .gp-page-title .elementor-column.elementor-col-50.elementor-inner-column.elementor-element {
        width: 100%;
    }
    /* Single post: header più corto su tablet */
    .single-post .gp-featured-item-outer.gp-featured-section-background,
    .single-post .gp-page-title .elementor-section.elementor-top-section {
        max-height: 400px;
        overflow: hidden;
    }
}
@media(max-width:576px) {
    .single-post .entry-content .quotemin p {
        font-size: 16px;
    }
    .single-post .entry-content .cit-small p {
        font-size: 14px;
    }
}
/* MEMBERSHIP */
.gp-element-pmpro-levels.gp-format-columns .gp-level {
    display: inline-block;
    vertical-align: top;
}
