/* Uni Global - carrossel de avaliações (home). Escopo: .rv-section */
.rv-section { background: #f4f6fb; }
.rv-section .rv-title { font-weight: 800; color: #0f1f3d; }
.rv-section .rv-sub { color: #5b6b84; }

.rv-carousel { position: relative; margin-top: 2rem; }
/* Sem JS ou com movimento reduzido: faixa rolável com snap e sem barra visível. */
.rv-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: .5rem 0 1rem; cursor: grab; }
.rv-viewport::-webkit-scrollbar { display: none; }
.rv-track { display: flex; gap: 1.25rem; width: max-content; align-items: stretch; }
.rv-track > .rv-card { scroll-snap-align: start; }
/* Animado pelo JS: a faixa se move por transform; bordas suavizadas. */
.rv-carousel.is-animated .rv-viewport { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.rv-carousel.is-animated .rv-track { will-change: transform; }
.rv-carousel.is-dragging .rv-viewport { cursor: grabbing; }
.rv-carousel.is-dragging .rv-track { user-select: none; }
/* Poucas avaliações (cabem na tela): centralizadas, sem movimento. */
.rv-carousel.is-static .rv-track { margin: 0 auto; }
.rv-carousel.is-static .rv-viewport { cursor: default; }

/* Celular: ~1,2 card visível (o próximo aparece na borda); tablet: 2 a 2,5; desktop: 3 a 4. */
.rv-card { flex: 0 0 auto; width: min(300px, 74vw); display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e8f2; border-radius: 16px; padding: 1.35rem 1.4rem 1.2rem; box-shadow: 0 6px 18px rgba(15, 31, 61, .06); text-align: left; }
.rv-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.rv-head .min-w-0 { min-width: 0; }
.rv-avatar, .rv-initials { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; }
.rv-avatar { object-fit: cover; border: 2px solid #eef2f9; }
.rv-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2e79ff, #082878); color: #fff; font-weight: 700; font-size: 1rem; }
.rv-name { display: block; font-weight: 700; color: #0f1f3d; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.rv-stars { color: #f5b301; font-size: 1.05rem; letter-spacing: 1px; line-height: 1; }
.rv-stars .off { color: #d5dae3; }
.rv-text { color: #33415c; font-size: .95rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.55em * 6); white-space: pre-line; }
/* Imagem da avaliação (print): área de altura fixa para manter os cards alinhados; clique amplia. */
.rv-shot { position: relative; display: block; width: 100%; height: 190px; margin-bottom: .75rem; padding: .35rem; border: 1px solid #e3e8f2; border-radius: 12px; background: #f7f9fc; cursor: zoom-in; overflow: hidden; }
.rv-shot img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.rv-shot-zoom { position: absolute; right: .45rem; bottom: .45rem; width: 28px; height: 28px; border-radius: 50%; background: rgba(15, 31, 61, .7); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; opacity: .85; }
.rv-shot:hover .rv-shot-zoom, .rv-shot:focus-visible .rv-shot-zoom { opacity: 1; }
.rv-shot:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
/* Card só com a imagem da avaliação (como uma faixa de logos): a imagem ocupa o card inteiro. */
.rv-card-image { padding: .6rem; justify-content: center; }
.rv-shot.rv-shot-full { flex: 1; height: auto; min-height: 200px; margin: 0; border: 0; background: #fff; padding: 0; }
.rv-card-image .rv-shot img { position: absolute; inset: 0; }
.rv-footer-hidden, .modal-footer[hidden] { display: none !important; }
.rv-modal-img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; background: #f7f9fc; margin-bottom: 1rem; }
.rv-modal-img[hidden] { display: none; }
.rv-more { align-self: flex-start; background: none; border: 0; padding: .35rem 0 0; color: #0d6efd; font-weight: 600; font-size: .9rem; cursor: pointer; }
.rv-more:hover { text-decoration: underline; }
.rv-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #6c7a91; border-top: 1px dashed #e3e8f2; }
.rv-src { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; white-space: nowrap; }
.rv-src .bi-google { color: #4285f4; }
.rv-src a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.rv-src a:hover { color: #0d6efd; }

/* Modal "Ler avaliação" (texto completo). */
.rv-modal { border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 31, 61, .25); text-align: left; }
.rv-modal .modal-body p { overflow-wrap: anywhere; }

@media (min-width: 576px) { .rv-card { width: 300px; } }
@media (min-width: 992px) { .rv-card { width: 320px; } }
@media (prefers-reduced-motion: reduce) { .rv-card, .rv-track { transition: none !important; } }
