/* Recensioni Google - Boardstyle */
.bsgr {
  --bsgr-star: #fbbc04;
  --bsgr-star-off: #d9dce1;
  --bsgr-accent: #00ADEF;
  --bsgr-on-accent: #0b2a45;
  --bsgr-red: #EE1C25;
  --bsgr-border: #e4e6ea;
  --bsgr-muted: #6b7280;
  clear: both;
  width: 100%;
  margin: 2rem 0;
  color: inherit;
}

.bsgr__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.bsgr__header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.bsgr__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.bsgr__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.bsgr__score {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.bsgr__stars {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

.bsgr__stars::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--bsgr-star-off);
}

.bsgr__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.bsgr__stars-fill::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--bsgr-star);
}

.bsgr__count,
.bsgr__count a {
  color: var(--bsgr-muted);
  font-size: 0.95rem;
}

.bsgr__count a {
  text-decoration: underline;
}

.bsgr__wrap {
  position: relative;
}

.bsgr__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsgr__item {
  margin: 0;
  padding: 0;
}

/* Griglia */
.bsgr--grid .bsgr__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Carosello */
.bsgr--carousel .bsgr__list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.bsgr--carousel .bsgr__list::-webkit-scrollbar {
  display: none;
}

.bsgr--carousel .bsgr__item {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  .bsgr--carousel .bsgr__item {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 575px) {
  .bsgr--carousel .bsgr__item {
    flex-basis: 88%;
  }
}

.bsgr__card {
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--bsgr-border);
  border-radius: 8px;
  text-align: left;
  color: #222;
}

.bsgr__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.bsgr__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.bsgr__avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bsgr-accent);
  color: var(--bsgr-on-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.bsgr__author-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bsgr__name {
  font-weight: 600;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsgr__time {
  color: var(--bsgr-muted);
  font-size: 0.8rem;
}

.bsgr__rating {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1;
}

.bsgr__star {
  color: var(--bsgr-star-off);
}

.bsgr__star--on {
  color: var(--bsgr-star);
}

.bsgr__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bsgr__text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.bsgr__more {
  margin-top: 0.35rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--bsgr-on-accent);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.bsgr__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--bsgr-border);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: #222;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.bsgr__nav--prev {
  left: -10px;
}

.bsgr__nav--next {
  right: -10px;
}

.bsgr__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 575px) {
  .bsgr__nav {
    display: none;
  }
}

.bsgr__actions {
  margin: 1.25rem 0 0;
  text-align: center;
}

.bsgr__button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--bsgr-red);
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.bsgr__button:hover,
.bsgr__button:focus {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
}
