.sgp-read-more {
    --sgp-rm-color: #d02726;
    --sgp-rm-color-hover: #222222;
    --sgp-rm-focus: rgba(208, 39, 38, 0.28);
}

.sgp-read-more__item {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(-4px);
    transition:
        max-height 0.32s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin 0.32s ease;
}

.sgp-read-more__item.is-visible {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
    margin-top: revert !important;
    margin-bottom: revert !important;
}

.sgp-read-more__controls {
    display: flex;
    align-items: center;
    margin: 0;
}

/*
 * Pulsante minimale con la sola linea inferiore,
 * come nella demo originale.
 */
.sgp-read-more__button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    min-height: 0;
    margin: 12px 0 28px;
    padding: 10px 0;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sgp-rm-color);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-align: left;
    text-shadow: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, gap 0.18s ease;
}

.sgp-read-more__button:hover,
.sgp-read-more__button:active {
    gap: 15px;
    border-bottom-color: currentColor !important;
    background: transparent !important;
    color: var(--sgp-rm-color-hover);
}

.sgp-read-more__button:focus {
    background: transparent !important;
}

.sgp-read-more__button:focus-visible {
    outline: 2px solid var(--sgp-rm-color);
    outline-offset: 5px;
    box-shadow: none !important;
}

.sgp-read-more__icon {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.sgp-read-more__icon::before,
.sgp-read-more__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 1px;
    border-radius: 0;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.22s ease;
}

.sgp-read-more__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.sgp-read-more.is-expanded .sgp-read-more__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

@media (max-width: 767px) {
    .sgp-read-more__button {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgp-read-more__item,
    .sgp-read-more__button,
    .sgp-read-more__icon::before,
    .sgp-read-more__icon::after {
        transition: none !important;
    }
}
