/* ============================================================
   Google Reviews Widget — googlereviews.css
   ============================================================ */

.gr-widget {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: inherit;
}

/* --- Header --- */
.gr-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.gr-header__logo {
    flex-shrink: 0;
    line-height: 0;
}

.gr-header__info {
    flex: 1;
    min-width: 0;
}

.gr-header__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-header__rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.gr-rating-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gr-header__count {
    font-size: 0.78rem;
    color: #666;
}

.gr-header__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #4285F4;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #4285F4;
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    transition: background .2s, color .2s;
}

.gr-header__link:hover {
    background: #4285F4;
    color: #fff;
}

/* --- Stars --- */
.gr-stars,
.gr-review-card__stars {
    display: inline-flex;
    gap: 1px;
    line-height: 1;
}

.gr-star {
    font-size: 1rem;
    color: #dadada;
}

.gr-star--full,
.gr-star--half {
    color: #f9ab00;
}

/* --- Carousel wrapper --- */
.gr-reviews-track-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.gr-reviews-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* --- Review card --- */
.gr-review-card {
    min-width: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    box-sizing: border-box;
    position: relative;
}

.gr-review-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.gr-review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gr-review-card__avatar--placeholder {
    background: #4285F4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.gr-review-card__author-info {
    flex: 1;
    min-width: 0;
}

.gr-review-card__author {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a1a;
}

.gr-review-card__time {
    font-size: 0.75rem;
    color: #888;
}

.gr-review-card__stars {
    margin-left: auto;
    flex-shrink: 0;
}

.gr-review-card__text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-review-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-size: 0.75rem;
    color: #999;
    transition: color .2s;
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
}

.gr-review-card__link:hover {
    color: #4285F4;
}

/* --- Controls --- */
.gr-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.gr-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
    padding: 0;
}

.gr-btn:hover {
    background: #4285F4;
    border-color: #4285F4;
    color: #fff;
}

.gr-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.gr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.gr-dot--active {
    background: #4285F4;
    transform: scale(1.3);
}

/* --- Link tutte le recensioni --- */
.gr-all-reviews {
    text-align: center;
    margin-top: 1.25rem;
}

.gr-all-reviews__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid #dadada;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, color .2s;
}

.gr-all-reviews__link:hover {
    border-color: #4285F4;
    color: #4285F4;
    box-shadow: 0 2px 8px rgba(66,133,244,.15);
}

/* --- Responsive: multi-card su desktop --- */
@media (min-width: 768px) {
    .gr-review-card {
        min-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 1024px) {
    .gr-review-card {
        min-width: calc((100% - 2rem) / 3);
    }
}
