/**
 * Modulo: Google Reviews Widget
 * Descrizione: Stili responsive e corporate per visualizzazione recensioni Google.
 * Autore: Bosio Associati Srl
 * Referente: Luca Bianco
 * Email: web@bosioassociati.it
 */

.grw-widget {
    --grw-bg: #f5f6f7;
    --grw-card-bg: #ffffff;
    --grw-border: #e1e5ea;
    --grw-title: #1f2933;
    --grw-text: #3d4852;
    --grw-muted: #6b7785;
    --grw-star: #f4b400;
    --grw-link: #124c8d;
    --grw-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);

    background: linear-gradient(180deg, #f7f8f9 0%, var(--grw-bg) 100%);
    border: 1px solid #e7eaee;
    border-radius: 18px;
    padding: 34px 22px;
    color: var(--grw-text);
}

.grw-header {
    margin-bottom: 24px;
}

.grw-title {
    margin: 0;
    text-align: center;
    color: var(--grw-title);
    font-size: clamp(1.65rem, 1.6vw + 1rem, 2.3rem);
    font-family: "Source Serif 4", "Georgia", "Times New Roman", serif;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.grw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.grw-card {
    background: var(--grw-card-bg);
    border: 1px solid var(--grw-border);
    border-radius: 14px;
    padding: 16px 16px 14px;
    box-shadow: var(--grw-shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.grw-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.grw-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dde3ea;
    object-fit: cover;
    flex-shrink: 0;
}

.grw-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf1f5;
    color: #44556b;
    font-weight: 700;
    font-size: 0.92rem;
}

.grw-author-wrap {
    min-width: 0;
}

.grw-author {
    margin: 0;
    color: #12263a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.grw-date {
    margin: 2px 0 0;
    color: var(--grw-muted);
    font-size: 0.82rem;
}

.grw-stars {
    margin: 0 0 10px;
    color: var(--grw-star);
    letter-spacing: 0.08em;
    font-size: 1rem;
    line-height: 1;
}

.grw-text-wrap {
    margin-bottom: 8px;
}

.grw-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.58;
    color: var(--grw-text);
    word-break: break-word;
}

.grw-toggle {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--grw-link);
    font-size: 0.89rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.grw-toggle:focus-visible,
.grw-link:focus-visible {
    outline: 2px solid #124c8d;
    outline-offset: 3px;
    border-radius: 4px;
}

.grw-hidden {
    display: none;
}

.grw-empty {
    border: 1px dashed #c9d3de;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.grw-empty p {
    margin: 0.4rem 0;
}

.grw-link {
    color: var(--grw-link);
    font-weight: 600;
}

@media (min-width: 720px) {
    .grw-widget {
        padding: 40px 28px;
    }

    .grw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .grw-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .grw-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
