/* Popup avviso TR Space - vedi inc/promo.php */
.trspace-promo {
    position: fixed;
    right: 72px; /* lascia liberi i puntini di navigazione delle sezioni in home */
    bottom: 24px;
    z-index: 9990;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    color: var(--black, #1d1d1b);
    box-shadow: 0 12px 40px rgba(29, 29, 27, 0.22);
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, var(--cyan, #058daa), var(--yellow, #fff042)) 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-family: 'PT Sans', sans-serif;
}

.trspace-promo[hidden] {
    display: none;
}

.trspace-promo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trspace-promo__media img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.trspace-promo__body {
    padding: 18px 20px 20px;
}

.trspace-promo p {
    margin: 0;
}

.trspace-promo__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan, #058daa);
    margin-bottom: 4px !important;
}

.trspace-promo__title {
    font-family: 'Antonio', sans-serif;
    font-size: 1.6rem;
    line-height: 1.15;
    color: var(--black, #1d1d1b);
    margin-bottom: 8px !important;
}

.trspace-promo__text {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 14px !important;
}

a.trspace-promo__button {
    display: inline-block;
    background: var(--cyan, #058daa);
    color: #fff;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: 2px solid var(--cyan, #058daa);
    transition: 0.3s;
}

a.trspace-promo__button:hover,
a.trspace-promo__button:focus-visible {
    background: #fff;
    color: var(--cyan, #058daa);
}

.trspace-promo__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--black, #1d1d1b);
    font-size: 22px;
    line-height: 32px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.trspace-promo__close:hover,
.trspace-promo__close:focus-visible {
    background: var(--yellow, #fff042);
}

/* Mobile: piu' compatto, senza immagine, non copre il contenuto */
@media (max-width: 768px) {
    .trspace-promo {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-width: none;
    }

    .trspace-promo__media {
        display: none;
    }

    .trspace-promo__body {
        padding: 14px 48px 16px 16px;
    }

    .trspace-promo__title {
        font-size: 1.3rem;
    }

    .trspace-promo__text {
        font-size: 0.9rem;
        margin-bottom: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trspace-promo {
        transition: none;
    }
}
