.attr-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 15px 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem
}

.attr-intro {
    text-align: center;
    color: var(--text-color);
    opacity: .85;
    line-height: 1.6
}

/* Colore base di ogni scheda: uno di quelli selezionabili nella home (--card-color) */
.attr-card {
    --card-color: var(--primary-color);
    background: #000000bf;
    border: 1px solid color-mix(in srgb, var(--card-color) 30%, transparent);
    border-radius: var(--radius-lg);
    padding: 1.5rem
}

.attr-card h2 {
    color: var(--card-color);
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 1.3rem;
    margin-bottom: .5rem
}

.attr-card p {
    color: var(--text-color);
    opacity: .85;
    line-height: 1.6
}

.attr-card a {
    color: var(--card-color);
    font-weight: 700;
    text-decoration: none
}

.attr-card a:hover {
    text-decoration: underline
}

.attr-card-league {
    border-color: var(--card-color)
}

/* Scheda con icona a sinistra e testo a destra */
.attr-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: attr-rise .6s ease both;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast)
}

.attr-card:nth-child(2) { animation-delay: .05s }
.attr-card:nth-child(3) { animation-delay: .15s }
.attr-card:nth-child(4) { animation-delay: .25s }
.attr-card:nth-child(5) { animation-delay: .35s }
.attr-card:nth-child(6) { animation-delay: .45s }
.attr-card:nth-child(7) { animation-delay: .55s }
.attr-card:nth-child(8) { animation-delay: .65s }
.attr-card:nth-child(9) { animation-delay: .75s }
.attr-card:nth-child(10) { animation-delay: .85s }

.attr-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-color);
    box-shadow: 0 10px 30px #00000080, 0 0 15px color-mix(in srgb, var(--card-color) 20%, transparent)
}

.attr-body {
    flex: 1;
    min-width: 0
}

.attr-icon {
    flex: 0 0 56px;
    display: flex;
    justify-content: center
}

.attr-icon .dynamic-icon {
    width: 48px;
    height: 48px;
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    background-color: var(--card-color)
}

/* Colori delle schede, nell'ordine della pagina (le prime sei sono quelle della home, poi si ripetono) */
.attr-card:nth-child(2) { --card-color: #cfae70 }
.attr-card:nth-child(3) { --card-color: #AEF6CF }
.attr-card:nth-child(4) { --card-color: #FFB7B2 }
.attr-card:nth-child(5) { --card-color: #B2E2F2 }
.attr-card:nth-child(6) { --card-color: #C3B1E1 }
.attr-card:nth-child(7) { --card-color: #C3C3C3 }
.attr-card:nth-child(8) { --card-color: #cfae70 }
.attr-card:nth-child(9) { --card-color: #AEF6CF }
.attr-card:nth-child(10) { --card-color: #FFB7B2 }

@keyframes attr-rise {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:480px) {
    .attr-card {
        gap: .9rem;
        padding: 1.1rem
    }

    .attr-icon {
        flex-basis: 40px
    }

    .attr-icon .dynamic-icon {
        width: 36px;
        height: 36px
    }
}

/* Chi preferisce meno movimento non vede animazioni */
@media (prefers-reduced-motion: reduce) {
    .attr-card {
        animation: none;
        transition: none
    }

    .attr-card:hover {
        transform: none
    }
}
