.quotazioni-area {
    padding: 110px 0;
    background: #f7f5ef;
}

.quotazioni-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.quotazioni-intro h2 {
    margin-bottom: 14px;
    font-size: 44px;
}

.quotazioni-intro p {
    color: #666;
    font-size: 18px;
}

.quotazioni-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 610px));
    align-items: stretch;
    justify-content: center;
    gap: 30px;
}
.quotazioni-grid > .quotazione-card:only-child {
    grid-column: 1 / -1;
    width: min(100%, 610px);
    justify-self: center;
}

.quotazione-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 7px;
    box-shadow: 0 16px 45px rgba(26, 35, 30, 0.08);
}

.quotazione-card-header {
    min-height: 142px;
    padding-bottom: 23px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d9d9d9;
}

.quotazione-card-header h3 {
    margin: 0;
    color: var(--primaryColor, #dcbf61);
    font-size: clamp(28px, 2vw, 36px);
    line-height: 1.2;
}

.quotazione-title-line {
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 16px;
    background: var(--primaryColor, #dcbf61);
}

.data-riferimento {
    margin-top: 20px;
    color: var(--secondaryColor, #1d1d1d);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.data-riferimento strong {
    font-weight: 700;
}

.peso-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 165px;
    align-items: center;
    gap: 25px;
    padding: 18px 0 22px;
    margin-bottom: 2px;
}

.peso-testo {
    display: flex;
    flex-direction: column;
}

.peso-testo strong {
    color: var(--secondaryColor, #1d1d1d);
    font-size: 25px;
    line-height: 1.15;
}

.peso-testo span {
    margin-top: 3px;
    color: #707070;
    font-size: 19px;
    line-height: 1.25;
}

.peso-input-wrap {
    width: 100%;
    border: 2px solid #24802d;
    background: #fff;
}

.peso-input-wrap input {
    width: 100%;
    height: 62px;
    padding: 10px 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #363636;
    font-size: 20px;
}

.titoli-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.titolo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 67px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.titolo-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.titolo-dati {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.titolo-nome {
    color: #2c8758;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.titolo-prezzo {
    color: #2c8758;
    font-size: 17px;
    white-space: nowrap;
}

.titolo-totale {
    color: #2c8758;
    font-size: 25px;
    font-weight: 700;
    white-space: nowrap;
}

.quotazione-card-oro .titolo-row.selezionato {
    background: var(--primaryColor, #dcbf61);
}

.quotazione-card-argento .titolo-row.selezionato {
    background: #7d858b;
}

.titolo-row.selezionato .titolo-nome,
.titolo-row.selezionato .titolo-prezzo,
.titolo-row.selezionato .titolo-totale {
    color: #fff;
}

.quotazione-card-argento .titolo-row:not(.selezionato) .titolo-nome,
.quotazione-card-argento .titolo-row:not(.selezionato) .titolo-prezzo,
.quotazione-card-argento .titolo-row:not(.selezionato) .titolo-totale {
    color: #747d83;
}

.btn-blocca-quotazione {
    width: 100%;
    margin-top: auto;
    padding: 18px 25px;
    border: 0;
    border-radius: 0;
    background: #27834f;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-blocca-quotazione:hover:not(:disabled) {
    background: #1f6d41;
}

.btn-blocca-quotazione:disabled {
    background: #858b90;
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
}

.quotazioni-alert {
    max-width: 760px;
    padding: 18px;
    margin: 0 auto;
    border-radius: 12px;
    background: #fff3cd;
    color: #664d03;
    text-align: center;
}

.quotazione-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
}

.quotazione-modal .modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e3e3e3;
}

.quotazione-modal .modal-title {
    color: var(--secondaryColor, #1d1d1d);
}

.quotazione-modal .modal-body {
    padding: 26px 28px;
}

.quotazione-modal .modal-footer {
    gap: 12px;
    padding: 20px 28px 26px;
    border-top: 1px solid #e3e3e3;
}

.riepilogo-popup {
    padding: 18px 20px;
    margin-bottom: 24px;
    background: #f7f5ef;
    border-left: 4px solid var(--primaryColor, #dcbf61);
    color: var(--secondaryColor, #1d1d1d);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.form-quotazione .form-label {
    color: var(--secondaryColor, #1d1d1d);
    font-weight: 700;
}

.form-quotazione .form-control {
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    color: var(--secondaryColor, #1d1d1d);
}

.form-quotazione .form-control:focus {
    border-color: var(--primaryColor, #dcbf61);
    box-shadow: 0 0 0 3px rgba(220, 191, 97, 0.18);
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.privacy-row input {
    width: 19px;
    height: 19px;
    margin-top: 4px;
    accent-color: var(--primaryColor, #dcbf61);
}

.quotazione-modal-btn {
    min-width: 145px;
    padding: 15px 24px;
    border: 0;
    text-align: center;
}

.quotazione-modal-btn-chiudi {
    background: var(--secondaryColor, #1d1d1d);
    color: #fff;
}

.messaggio-form {
    display: none;
    padding: 12px 14px;
    margin-top: 14px;
    border-radius: 8px;
}

.messaggio-form.errore {
    display: block;
    background: #fde8e8;
    color: #9b1c1c;
}

.messaggio-form.successo {
    display: block;
    background: #e7f7ed;
    color: #176b37;
}

.spinner-mini {
    display: none;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ruota 0.75s linear infinite;
}

@keyframes ruota {
    to { transform: rotate(360deg); }
}

@media (max-width: 1199px) {
    .quotazioni-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .titolo-nome,
    .titolo-totale {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .quotazioni-grid {
        grid-template-columns: minmax(0, 610px);
    }

    .quotazioni-intro h2 {
        font-size: 36px;
    }
}

@media (max-width: 575px) {
    .quotazioni-area {
        padding: 70px 0;
    }

    .quotazione-card {
        padding: 22px 16px;
    }

    .quotazione-card-header {
        min-height: 0;
    }

    .data-riferimento {
        font-size: 18px;
    }

    .peso-box {
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 12px;
    }

    .peso-testo strong {
        font-size: 21px;
    }

    .peso-testo span {
        font-size: 15px;
    }

    .peso-input-wrap input {
        height: 54px;
        padding: 8px 12px;
        font-size: 18px;
    }

    .titolo-row {
        min-height: 62px;
        padding: 11px 12px;
    }

    .titolo-dati {
        gap: 4px 8px;
    }

    .titolo-nome,
    .titolo-totale {
        font-size: 19px;
    }

    .titolo-prezzo {
        font-size: 14px;
    }

    .riepilogo-popup {
        font-size: 18px;
    }

    .quotazione-modal .modal-footer {
        flex-wrap: nowrap;
    }

    .quotazione-modal-btn {
        min-width: 0;
        width: 50%;
    }
}
