/* stepped-readmore.css – Stili per il readmore progressivo a capitoli */

.stepped-readmore {
    margin: 1.5rem 0;
}

.step-chapter {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.step-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #eef6fb;
}

.step-content p {
    margin-bottom: 1rem;
}

/* Stile dei bottoni "Leggi di più" e varianti */
.step-btn {
    display: inline-block;
    background: rgba(245, 176, 66, 0.15);
    border: 1px solid rgba(245, 176, 66, 0.6);
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f5b042;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    font-family: inherit;
}

.step-btn:hover {
    background: rgba(245, 176, 66, 0.25);
    border-color: #f5b042;
    transform: translateY(-2px);
}

.step-btn:active {
    transform: translateY(0);
}

/* Bottone finale "Ho letto tutto, grazie" */
.step-btn-final {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.6);
    color: #25d366;
}

.step-btn-final:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: #25d366;
}

/* Animazione di ingresso per i nuovi capitoli */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-chapter:not(:first-child) {
    animation: fadeSlideUp 0.4s ease-out;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .step-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .step-content {
        font-size: 0.9rem;
    }
}

/* Stile per i link mascherati all'interno dei capitoli */
.step-content .masked-link {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
}

.step-content .masked-link:hover {
    text-decoration: underline;
    color: #f5b042;
}