/* AVR Recensioni - Carousel recensioni statiche */

.avr-reviews-wrap {
    position: relative;
    max-width: 100%;
    padding: 0 44px;
    margin: 1.5em 0;
}

.avr-reviews-prev,
.avr-reviews-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.avr-reviews-prev:hover,
.avr-reviews-next:hover {
    background: #e8e8e8;
    color: #333;
}

.avr-reviews-prev {
    left: 0;
}

.avr-reviews-next {
    right: 0;
}

.avr-reviews-track-outer {
    overflow: hidden;
    width: 100%;
}

.avr-reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.avr-reviews-card {
    flex: 0 0 auto;
    width: 320px;
    max-width: calc(100vw - 88px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    border: 1px solid #eee;
}

/* Mobile: una card alla volta, centrata */
@media (max-width: 767px) {
    .avr-reviews-wrap {
        padding: 0 36px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .avr-reviews-prev,
    .avr-reviews-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .avr-reviews-track-outer {
        width: 100%;
        min-width: 0;
    }

    .avr-reviews-track {
        display: flex;
        gap: 24px;
        flex-wrap: nowrap;
    }

    .avr-reviews-card {
        flex: 0 0 auto;
        width: min(320px, calc(100vw - 72px));
        max-width: none;
        min-width: min(320px, calc(100vw - 72px));
        box-sizing: border-box;
    }
}

/* Avatar: cerchio colorato con iniziale + logo Google in basso a destra */
.avr-reviews-avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
}

.avr-reviews-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.avr-reviews-google-logo {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.avr-reviews-google-logo svg {
    display: block;
    width: 14px;
    height: 14px;
}

.avr-reviews-name {
    font-weight: 700;
    font-size: 1rem;
    color: #202124;
    margin-bottom: 4px;
    text-align: center;
}

.avr-reviews-date {
    font-size: 0.875rem;
    color: #5f6368;
    margin-bottom: 8px;
    text-align: center;
}

.avr-reviews-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

.avr-reviews-stars-inner {
    display: inline-flex;
    gap: 1px;
}

.avr-reviews-star {
    color: #dadce0;
    font-size: 1.1rem;
}

.avr-reviews-star.filled {
    color: #f9ab00;
}

.avr-reviews-verified {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background: #1a73e8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avr-reviews-verified::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
    margin-left: -1px;
}

.avr-reviews-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #202124;
}

.avr-reviews-read-more {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: none;
}

.avr-reviews-read-more:hover {
    text-decoration: underline;
}

/* Testo completo nascosto di default; visibile quando .expanded (no inline style per evitare conflitto) */
.avr-reviews-full-hidden {
    display: none !important;
}

.avr-reviews-text.expanded .avr-reviews-excerpt,
.avr-reviews-text.expanded .avr-reviews-more-wrap {
    display: none !important;
}

.avr-reviews-text.expanded .avr-reviews-full-hidden {
    display: block !important;
}
