/* Recensioni Google - carosello home */
.sdsgr {
  --sdsgr-accent: #ec752e;
  --sdsgr-text: #282828;
  --sdsgr-muted: #6b6b6b;
  --sdsgr-border: #ebebeb;
  --sdsgr-star: #fbbc04;
  --sdsgr-btn: #ec752e;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 15px;
  font-family: inter, Arial, sans-serif;
  color: var(--sdsgr-text);
}

.sdsgr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

/* Stesso stile dei titoli Elementor della home (es. "CAMPIONARIO - EVENTI CON STILE") */
.sdsgr .elementor-heading-title.sdsgr-title {
  margin: 0 0 8px;
  padding: 0;
  color: #000;
  font-family: Raleway, Sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1em;
  text-transform: uppercase;
}

.sdsgr-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.sdsgr-glogo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.sdsgr-glogo-sm {
  width: 18px;
  height: 18px;
  margin-left: auto;
}

.sdsgr-avg {
  font-size: 20px;
  font-weight: 700;
}

.sdsgr-count {
  color: var(--sdsgr-muted);
}

.sdsgr-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 18px;
  line-height: 1;
  color: #d9d9d9;
}

.sdsgr-star.is-on {
  color: var(--sdsgr-star);
}

.sdsgr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sdsgr-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--sdsgr-btn);
  border-radius: 4px;
  background: var(--sdsgr-btn);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: opacity .2s;
}

.sdsgr-btn:hover {
  opacity: .85;
}

.sdsgr-btn-ghost {
  background: transparent;
  color: var(--sdsgr-btn) !important;
}

/* Carosello */
.sdsgr-carousel {
  position: relative;
}

.sdsgr-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  outline: none;
}

.sdsgr-track::-webkit-scrollbar {
  display: none;
}

.sdsgr-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--sdsgr-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.sdsgr-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sdsgr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
}

.sdsgr-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sdsgr-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.sdsgr-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sdsgr-author {
  font-weight: 600;
  font-size: 15px;
  color: var(--sdsgr-text) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
}

.sdsgr-when {
  font-size: 12px;
  color: var(--sdsgr-muted);
}

.sdsgr-text {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.55;
  color: var(--sdsgr-text) !important;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sdsgr-card.is-open .sdsgr-text {
  display: block;
  -webkit-line-clamp: unset;
}

.sdsgr-more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sdsgr-btn);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sdsgr-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -26px;
  border: 1px solid var(--sdsgr-border);
  border-radius: 50%;
  background: #fff;
  color: var(--sdsgr-text);
  font-size: 26px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: background .2s, color .2s;
}

.sdsgr-nav:hover {
  background: var(--sdsgr-accent);
  color: #fff;
}

.sdsgr-nav[disabled] {
  opacity: .35;
  cursor: default;
}

.sdsgr-prev { left: -20px; }
.sdsgr-next { right: -20px; }

.sdsgr-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.sdsgr-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
}

.sdsgr-dot.is-active {
  background: var(--sdsgr-btn);
}

@media (max-width: 991px) {
  .sdsgr-card { flex-basis: calc((100% - 20px) / 2); }
  .sdsgr-prev { left: -8px; }
  .sdsgr-next { right: -8px; }
}

@media (max-width: 575px) {
  .sdsgr { margin: 28px auto; }

  .sdsgr-head { align-items: flex-start; }
  .sdsgr-actions { width: 100%; }
  .sdsgr-btn { flex: 1 1 auto; text-align: center; }
  .sdsgr-card { flex-basis: 88%; }
  .sdsgr-nav { display: none; }
}
