.pdc-rivenditori {
    --pdc-riv-border: #e2e2e2;
    --pdc-riv-text: #333;
    --pdc-riv-muted: #666;
    --pdc-riv-accent: #1a6dd1;
    --pdc-riv-primary: #dc3226;
    --pdc-riv-body-bg: #f5f5f5;
    font-family: inherit;
}

.pdc-riv-filtri {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.pdc-riv-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.pdc-riv-fieldlabel {
    font-size: 0.85em;
    color: var(--pdc-riv-muted);
}

.pdc-riv-input {
    padding: 8px 10px;
    border: 1px solid var(--pdc-riv-border);
    border-radius: 6px;
    font-size: 0.95em;
}

.pdc-riv-reset {
    padding: 8px 14px;
    border: 1px solid var(--pdc-riv-border);
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    align-self: flex-end;
}

.pdc-riv-reset:hover {
    background: #ebebeb;
}

.pdc-riv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.pdc-riv-card {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.pdc-riv-card a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

/* --- Header rosso con iniziali, kicker e nome azienda --- */

.pdc-riv-card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #C8794A;
    color: #fff;
    overflow: hidden;
}

.pdc-riv-card-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 14px);
    pointer-events: none;
}

.pdc-riv-card-header::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.pdc-riv-avatar {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    color: var(--pdc-riv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95em;
}

.pdc-riv-card-headtext {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pdc-riv-card-kicker {
    font-size: 0.7em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.pdc-riv-nome {
    margin: 0;
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    overflow-wrap: break-word;
}

/* --- Corpo con le righe indirizzo/telefono/email --- */

.pdc-riv-card-body {
    background: var(--pdc-riv-body-bg);
    padding: 4px 18px 16px;
}

.pdc-riv-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pdc-riv-border);
}

.pdc-riv-row:last-child {
    border-bottom: none;
}

.pdc-riv-row-icon {
    flex: 0 0 auto;
    color: var(--pdc-riv-primary);
    margin-top: 2px;
}

.pdc-riv-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pdc-riv-row-label {
    font-size: 0.72em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pdc-riv-muted);
}

.pdc-riv-row-value {
    color: var(--pdc-riv-text);
    font-size: 0.95em;
}

.pdc-riv-row-value:hover {
    text-decoration: underline;
}

.pdc-riv-nessun-risultato {
    color: var(--pdc-riv-muted);
    font-style: italic;
}

.pdc-riv-carica-wrap {
    text-align: center;
    margin-top: 20px;
}

.pdc-riv-carica-altri {
    padding: 10px 24px;
    border: 1px solid var(--pdc-riv-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--pdc-riv-accent);
    cursor: pointer;
    font-size: 0.95em;
}

.pdc-riv-carica-altri:hover {
    background: var(--pdc-riv-accent);
    color: #fff;
}

@media (max-width: 1024px) {
    .pdc-riv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .pdc-riv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pdc-riv-filtri {
        flex-direction: column;
        align-items: stretch;
    }

    .pdc-riv-field {
        min-width: 0;
    }
}
