/*
========================================================================================
    CSS EQUIPARAZIONE - NonSoloFitness
========================================================================================
    Richiede: css_2026_Variabili_globali.css, css_2026_Default.css
========================================================================================
*/


/* ===== ANIMAZIONI ===== */

@keyframes eqSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes eqToastScende {
    0% {
        opacity: 0;
        transform: translate(-50%, -8px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, 18px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 34px);
    }
}


/* ===== CONTENUTO ===== */

.eq-contenuto {
    opacity: 0;
    animation: eqSlideUp 0.5s ease 0.3s both;
}

.eq-contenuto p {
    line-height: 1.7 !important;
}


/* ===== LISTA PASSI ===== */

.eq-step-list {
    margin: 0 0 10px 0;
    padding: 0 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
}

.eq-step-list li {
    margin-bottom: 8px;
}

.eq-step-list li:last-child {
    margin-bottom: 0;
}


/* ===== NOTA ===== */

.eq-nota {
    font-size: 14px !important;
    padding: 10px 14px;
    background: var(--nsf-gray-100, #f8f9fa);
    border-left: 3px solid var(--nsf-info);
    border-radius: 0 6px 6px 0;
}


/* ===== CTA ===== */

.eq-cta {
    margin-top: 30px;
}


/* ===== TOAST AGGIUNTA TITOLO ===== */

.eq-form-titoli .pulsante_ghost_container_flex {
    position: relative;
}

.eq-titolo-toast {
    position: absolute;
    top: calc(100% - 6px);
    left: 50%;
    transform: translate(-50%, -8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: min(100%, 360px);
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nsf-success-dark), var(--nsf-success-light));
    color: var(--nsf-white);
    box-shadow: 0 10px 24px var(--nsf-black-20);
    font: 600 13px/1.2 'Poppins', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.eq-titolo-toast.eq-titolo-toast-visible {
    animation: eqToastScende 1.8s ease forwards;
}

@media (max-width: 767px) {
    .eq-titolo-toast {
        min-width: 0;
        width: calc(100% - 16px);
        max-width: 320px;
        white-space: normal;
        text-align: center;
    }
}


/* ===== LISTA TITOLI AGGIUNTI ===== */

#eq_lista_titoli {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.eq-titolo-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--nsf-gray-250);
    background: transparent;
}

.eq-titolo-item-testo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.eq-titolo-item-icon {
    width: 22px;
    height: 22px;
    color: var(--nsf-success-alt);
}

.eq-titolo-item-contenuto {
    flex: 1 1 auto;
    min-width: 0;
}

.eq-titolo-item-label {
    display: block;
    overflow: hidden;
    color: var(--nsf-gray-900);
    font: 500 15px/1.4 'Poppins', sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eq-titolo-item-azione {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.eq-btn-rimuovi-titolo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nsf-gray-250);
    border-radius: 999px;
    background: var(--nsf-white);
    color: var(--nsf-gray-700);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.eq-btn-rimuovi-titolo:hover {
    color: var(--nsf-danger);
    border-color: var(--nsf-danger);
    background: var(--nsf-danger-bg);
    transform: scale(1.04);
}

.eq-btn-rimuovi-titolo svg {
    width: 16px;
    height: 16px;
}

.eq-titolo-item-dettaglio {
    display: block;
    color: var(--nsf-gray-600);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
}


/* ===== LISTA TITOLI GRAZIE ===== */

#eq_lista_titoli_grazie {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#eq_lista_titoli_grazie .eq-titolo-item {
    padding: 18px 0;
    cursor: default;
}

#eq_lista_titoli_grazie .eq-titolo-item-label {
    white-space: normal;
}


@media (max-width: 767px) {
    .eq-titolo-item {
        gap: 10px;
        padding: 12px 14px;
    }

    .eq-titolo-item-label {
        font-size: 14px;
    }

    .eq-btn-rimuovi-titolo {
        width: 36px;
        height: 36px;
    }
}
