.hero-temi_pronti {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: rgb(255, 255, 255);
}

.hero-temi_pronti::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.623);
    z-index: 1;
}

.hero-temi_pronti::before {
    position: absolute;
    content: '';
    bottom: 0;
    height: 1px;
    width: 100%;
    background-color: var(--separatore-color-after);
    box-shadow: var(--separatore-color-shadow);
    z-index: 2;
}

.hero-temi_pronti .hero-temi_pronti-descrizione {
    height: 100%;
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    z-index: 2;
}

.hero-temi_pronti .hero-titolo,
.hero-temi_pronti .hero-paragrafo {
    text-align: center;
}

.hero-temi_pronti .hero-titolo {
    font-size: 4.5rem;
    font-weight: 800;
}

.hero-temi_pronti .hero-paragrafo {
    font-size: 3rem;
    font-weight: 500;
}

.tema-card--nascosta {
    display: none;
}

.temi-sezione {
    margin-bottom: 80px;
}

.temi-vuoto {
    width: 100%;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.85;
}

.temi-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px 48px;
    margin-top: 0;
}

.temi-load-more {
    min-width: 280px;
}

.temi-grid {
    padding: 24px;
    max-width: 1400px;
    margin: 80px auto 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.tema-card {
    display: flex;
    flex-direction: column;
    background-color: rgb(5, 5, 5);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.active .tema-card {
    background-color: rgb(245, 245, 245);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tema-card:hover {
    transform: translateY(-6px);
    border-color: rgba(173, 0, 0, 0.35);
    box-shadow: 0 18px 48px var(--accent-glow);
}

.tema-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: rgb(20, 20, 20);
}

body.active .tema-card__media {
    background-color: rgb(230, 230, 230);
}

.tema-card__media .tema-card__img,
.tema-card__media .tema-card__img--placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.tema-card__media .tema-card__img--placeholder {
    background:
        linear-gradient(135deg, rgba(173, 0, 0, 0.15), rgba(255, 255, 255, 0.04)),
        rgb(20, 20, 20);
}

body.active .tema-card__media .tema-card__img--placeholder {
    background:
        linear-gradient(135deg, rgba(173, 0, 0, 0.1), rgba(0, 0, 0, 0.04)),
        rgb(230, 230, 230);
}

.tema-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgb(173, 0, 0), rgb(120, 0, 0));
    box-shadow: 0 4px 16px rgba(173, 0, 0, 0.35);
}

.tema-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 22px 22px 24px;
}

.tema-card__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

body.active .tema-card__title {
    color: rgb(0, 0, 0);
}

.tema-card__description {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

body.active .tema-card__description {
    color: rgba(0, 0, 0, 0.72);
}

.tema-card__features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.tema-card__features li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

body.active .tema-card__features li {
    color: rgba(0, 0, 0, 0.78);
}

.tema-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.tema-card__footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tema-card__price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

body.active .tema-card__price {
    color: rgb(0, 0, 0);
}

.tema-card__cta {
    margin-left: auto;
    min-width: 150px;
    text-align: center;
    padding-inline: 18px;
    font-size: 0.92rem;
}

@media screen and (max-width: 1024px) {
    .hero-temi_pronti {
        background-attachment: unset;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-temi_pronti .hero-titolo {
        font-size: var(--size-titoli-hero-device);
        font-weight: 800;
    }

    .hero-temi_pronti .hero-paragrafo {
        font-size: var(--size-sottotitolo-hero-device);
    }

    .temi-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 691px) {
    .temi-grid {
        gap: 32px;
        padding-inline: 16px;
    }

    .tema-card__body {
        padding: 18px 18px 20px;
    }

    .tema-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tema-card__cta {
        margin-left: 0;
        width: 100%;
    }
}
