/*
 * Rolex - Prezzi dei servizi di manutenzione (/rolex/prezzi-manutenzione)
 * Layout da mockup Rolex "Servicing prices" (Bespoke Light, DRP 2026).
 * Stesso file nel sito moderno e nello statico.
 */

/* ---- Card listino (immagine + riquadro beige) ---- */
.rpm-card {
    grid-column: 2 / span 6;
}
.rpm-card picture,
.rpm-card img {
    display: block;
    width: 100%;
    height: auto;
}
.rpm-card-body {
    background-color: rgb(244, 239, 235);
    color: rgb(33, 33, 33);
    padding: 40px 8% 40px;
}
.rpm-card-title {
    color: rgb(69, 44, 30);
    font-weight: 700;
}
.rpm-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-weight: 700;
    font-size: .9375rem;
    color: rgb(33, 33, 33);
}

@media (min-width: 48rem) {
    .rpm-card {
        grid-column: 3 / span 10;
    }
    .rpm-card-body {
        padding: calc(var(--m-h-space) * .8) 10% calc(var(--m-h-space) * .8);
    }
}

/* ---- Righe del listino ---- */
.rpm-list {
    margin-top: 40px;
    border-top: 1px solid #d6d3d1;
}
.rpm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid #d6d3d1;
}
.rpm-names {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rpm-names li {
    break-inside: avoid;
}
.rpm-names b {
    display: block;
    font-weight: 700;
}
.rpm-text p {
    margin: 0;
}
.rpm-price {
    display: flex;
    align-items: center;
    gap: 6px;
    height: fit-content;
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.125rem, 1rem + .3vw, 1.375rem);
    line-height: 1.4;
    white-space: nowrap;
}
.rpm-note {
    margin-top: 24px;
}
.rpm-note p {
    margin: 0 0 12px;
}
.rpm-note p:last-child {
    margin-bottom: 0;
}

@media (min-width: 48rem) {
    .rpm-names {
        columns: 2;
        column-gap: 24px;
        max-width: 75%;
    }
    .rpm-names--vintage {
        max-width: 60%;
    }
    .rpm-text {
        max-width: 75%;
    }
}

/* ---- Bottone informazioni (i) ---- */
.rpm-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: rgb(33, 33, 33);
    cursor: pointer;
    vertical-align: middle;
}
.rpm-info svg {
    width: 14px;
    height: 14px;
}
.rpm-info:hover,
.rpm-info:focus-visible {
    color: rgb(18, 119, 73);
}
.rpm-inline-price {
    white-space: nowrap;
}

/* ---- Restauro completo ---- */
.rpm-restore {
    margin-top: 60px;
    text-align: center;
}
.rpm-restore img {
    display: block;
    width: 100px;
    height: auto;
    margin: 0 auto 24px;
}
.rpm-restore h3 {
    color: rgb(33, 33, 33);
    font-weight: 700;
    margin-bottom: 20px;
}
.rpm-restore p {
    max-width: 36rem;
    margin: 0 auto 14px;
}
.rpm-restore p:last-child {
    margin-bottom: 0;
}
@media (min-width: 48rem) {
    .rpm-restore img {
        width: 140px;
    }
}

/* ---- Servizi inclusi / non inclusi (titolo + immagine + accordion) ---- */
.rpm-svc-title {
    grid-column: main;
    color: rgb(69, 44, 30);
    font-weight: 700;
    max-width: 14em;
    margin-bottom: 30px;
}
.rpm-svc-acc {
    grid-column: main;
}
.rpm-svc-img {
    grid-column: main;
    margin-top: 40px;
}
.rpm-svc-img img {
    display: block;
    width: 100%;
    height: auto;
}
@media (min-width: 48rem) {
    .rpm-svc-img {
        grid-column: 2 / span 6;
        grid-row: 2;
        margin-top: 0;
    }
    .rpm-svc-acc {
        grid-column: 9 / span 5;
        grid-row: 2;
        align-self: center;
    }
}
.rpm-acc-content {
    padding: 4px 0 24px;
    color: rgb(33, 33, 33);
}
.rpm-acc-content p {
    margin: 0 0 12px;
}
.rpm-acc-content p:last-child {
    margin-bottom: 0;
}
.rpm-acc-content b {
    display: block;
    font-weight: 700;
}

/* ---- Popup (dialog nativo) ---- */
.rpm-dialog {
    width: calc(100% - 32px);
    max-width: 1340px;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: rgb(33, 33, 33);
    overflow: auto;
}
.rpm-dialog::backdrop {
    background: rgba(0, 0, 0, .7);
}
.rpm-dialog-box {
    position: relative;
    padding: 64px 24px 40px;
}
.rpm-dialog-title {
    color: rgb(33, 33, 33);
    font-weight: 700;
    margin: 0 0 16px;
}
.rpm-dialog p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}
.rpm-dialog img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 32px auto 0;
}
.rpm-dialog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: rgb(33, 33, 33);
    cursor: pointer;
}
.rpm-dialog-close:hover,
.rpm-dialog-close:focus-visible {
    background: #e2e2e2;
}
.rpm-dialog-close svg {
    width: 12px;
    height: 12px;
}
html.rpm-dialog-open {
    overflow: hidden;
}
@media (min-width: 48rem) {
    .rpm-dialog {
        width: 70vw;
        border-radius: 32px;
    }
    .rpm-dialog-box {
        padding: 64px clamp(40px, 5vw, 100px) 56px;
    }
    .rpm-dialog-close {
        top: 30px;
        right: 30px;
    }
}
