/* ====================================================
   CARRELLO E CHECKOUT
==================================================== */

/* ---- WRAPPER CENTRATO ---- */

.CartCont {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- STEP INDICATOR ---- */

.StepBar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.StepItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.StepNum {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d0e4f0;
    color: #888;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.StepItem.Attivo .StepNum {
    background: #1a4a7a;
    color: white;
}

.StepItem.Fatto .StepNum {
    background: #5bb8d4;
    color: white;
}

.StepLabel {
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.StepItem.Attivo .StepLabel { color: #1a4a7a; font-weight: 700; }
.StepItem.Fatto .StepLabel  { color: #5bb8d4; }

.StepLine {
    width: 60px;
    height: 2px;
    background: #d0e4f0;
    margin-bottom: 18px;
}

.StepLine.Fatto { background: #5bb8d4; }

/* ---- TITOLI SEZIONE ---- */

.CartTitolo {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a4a7a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #5bb8d4;
}

/* ---- MESSAGGIO CARRELLO VUOTO ---- */

.CartVuoto {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1rem;
}

.CartVuoto a {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #e8a020;
    color: white;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* ---- ARTICOLO CARRELLO ---- */

.CartItem {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e8f0f8;
}

.CartItem:last-child { border-bottom: none; }

.CartItemImg img {
    width: 60px;
    height: 80px;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.12);
}

.CartItemInfo {
    flex: 1;
    min-width: 0;
}

.CartItemTitolo {
    font-weight: 700;
    color: #1a4a7a;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.CartItemAutore {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 4px;
}

.CartItemStato {
    font-size: 0.72rem;
    color: #5bb8d4;
    font-weight: 700;
    text-transform: uppercase;
}

.CartItemPrezzo {
    font-size: 0.9rem;
    font-weight: 900;
    color: #1a4a7a;
    margin-top: 6px;
}

.CartItemAzioni {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.CartItemQta {
    font-size: 0.8rem;
    color: #555;
}

.CartItemQta select {
    margin-left: 6px;
    padding: 3px 6px;
    border: 1px solid #1a4a7a;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #1a4a7a;
    cursor: pointer;
}

.BotElimina {
    padding: 4px 12px;
    background: #fff;
    color: #c0392b;
    border: 1px solid #c0392b;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 700;
}

.BotElimina:hover { background: #c0392b; color: white; }

/* ---- TOTALE CARRELLO ---- */

.CartTotale {
    background: #f5f9fc;
    border: 1px solid #d0e4f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.CartTotaleRiga {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #555;
}

.CartTotaleImporto {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0 0;
    margin-top: 8px;
    border-top: 2px solid #1a4a7a;
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a4a7a;
}

/* ---- WIZARD NAVIGATION ---- */

.CartNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #e0e8f0;
}

.BotCart {
    padding: 11px 28px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.15s;
}

.BotCartProsegui {
    background: #e8a020;
    color: white;
}

.BotCartProsegui:hover { background: #d4911a; }

.BotCartIndietro {
    background: #fff;
    color: #1a4a7a;
    border: 2px solid #1a4a7a;
}

.BotCartIndietro:hover { background: #e8f0f8; }

.BotCartCompleta {
    background: #1a4a7a;
    color: white;
    font-size: 1rem;
    padding: 13px 32px;
}

.BotCartCompleta:hover { background: #5bb8d4; }

/* ---- RADIO OPTIONS ---- */

.RadioOpt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.RadioOpt label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e0e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #333;
    transition: border-color 0.15s, background 0.15s;
}

.RadioOpt label:hover { border-color: #5bb8d4; background: #f5f9fc; }

.RadioOpt input[type=radio] { margin-top: 2px; flex-shrink: 0; }

.RadioTitolo { font-weight: 700; color: #1a4a7a; display: block; margin-bottom: 2px; }
.RadioDesc { font-size: 0.8rem; color: #777; }

/* ---- FORM DATI ---- */

.DatiForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;
}

.DatiRiga {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.DatiLabel {
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.DatiInput {
    padding: 10px 14px;
    border: 2px solid #d0e4f0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}

.DatiInput:focus { border-color: #1a4a7a; }

.DatiWarning {
    font-size: 0.75rem;
    color: #c0392b;
    font-weight: 600;
}

.GdprBox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f5f9fc;
    border: 1px solid #d0e4f0;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #444;
    margin-top: 8px;
}

.GdprBox a { color: #1a4a7a; font-weight: 700; }

/* ---- RIEPILOGO ORDINE ---- */

.RiepSection {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.RiepTitolo {
    font-size: 0.82rem;
    font-weight: 900;
    color: #5bb8d4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.RiepRiga {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    padding: 3px 0;
}

.RiepLabel { color: #888; min-width: 110px; flex-shrink: 0; }
.RiepVal { color: #222; font-weight: 600; }

/* ---- CONFERMA ---- */

.CartConferma {
    text-align: center;
    padding: 40px 20px;
}

.CartConfermaIcon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.CartConfermaTitle {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a4a7a;
    margin-bottom: 12px;
}

.CartConfermaText {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 24px auto;
}

.CartConfermaText a {
    color: #1a4a7a;
    font-weight: 700;
}

/* ---- RESPONSIVE ---- */

@media only screen and (max-width: 499px) {
    .StepLine { width: 30px; }
    .StepLabel { display: none; }
    .CartItem { flex-wrap: wrap; }
}

@media only screen and (min-width: 500px) {
    .DatiForm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .DatiRiga.Full { grid-column: 1 / -1; }
}
