/* ==========================================================================
   Spezieria - Contenuti Calendarizzati - Frontend
   Style-guide Spezieria. Prefisso: .spz-calcont
   ========================================================================== */

/* --- Card container --- */

.spz-calcont {
    max-width: 720px;
    margin: 2em auto;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

/* --- Particles layer (behind content) --- */

.spz-calcont-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.spz-calcont-particle {
    position: absolute;
    color: #daa520;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    animation: spzParticleFloat linear infinite;
    font-size: 14px;
    line-height: 1;
}

@keyframes spzParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    5% {
        opacity: 0.18;
    }
    85% {
        opacity: 0.18;
    }
    100% {
        opacity: 0;
        transform: translateY(-800px) rotate(60deg);
    }
}

/* --- Image wrap (relative for badge + button overlay) --- */

.spz-calcont-image-wrap {
    margin-bottom: 1.2em;
    text-align: center;
    position: relative;
    z-index: 1;
}

.spz-calcont-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* --- Badge (top-left on image) --- */

.spz-calcont-badge {
    position: absolute;
    bottom: 16px;
    left: 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #121212;
    background-color: #daa520;
    padding: 4px 12px;
    border-radius: 3px;
    z-index: 3;
    line-height: 1.3;
}

/* --- Button (bottom-right on image) --- */

.spz-calcont-button {
    position: absolute;
    bottom: 16px;
    right: 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2e6b3a;
    padding: 8px 16px;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 3;
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.spz-calcont .spz-calcont-button:hover,
.spz-calcont a.spz-calcont-button:hover {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
}

/* --- Title H2 --- */

.spz-calcont-title {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.8em;
    margin-bottom: 0.6em;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* --- Body text --- */

.spz-calcont-text {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #e0e0e0;
    text-align: left;
    position: relative;
    z-index: 1;
}

.spz-calcont-text strong {
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================================================
   MOBILE — max-width: 768px
   ========================================================================== */

@media (max-width: 768px) {

    .spz-calcont {
        margin: 1.5em 0;
        padding: 16px 14px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* Badge */
    .spz-calcont-badge {
        font-size: 11px;
        padding: 3px 9px;
        bottom: 12px;
        left: 8px;
    }

    /* Button */
    .spz-calcont-button {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 12px;
        right: 8px;
    }

    /* Title */
    .spz-calcont-title {
        font-size: 24px;
        line-height: 30px;
        margin-top: 0.6em;
        margin-bottom: 0.5em;
    }

    /* Body */
    .spz-calcont-text {
        font-size: 15px;
        line-height: 22px;
    }

    /* Particles: smaller on mobile */
    .spz-calcont-particle {
        font-size: 11px;
    }
}

/* ==========================================================================
   SMALL MOBILE — max-width: 375px
   ========================================================================== */

@media (max-width: 375px) {

    .spz-calcont {
        padding: 12px 10px;
    }

    .spz-calcont-title {
        font-size: 22px;
        line-height: 28px;
    }

    .spz-calcont-button {
        font-size: 10px;
        padding: 5px 10px;
        bottom: 8px;
        right: 6px;
    }
}
