/* =========================
   RECENSIONI — carousel slider
   Stile integrato con Il Bocconcino Pomezia
   ========================= */

/* ── Sezione wrapper ── */
.recensioni-section {
  /* padding: 60px 20px 70px; */
  padding: 0 20px 50px;
  background: var(--bg);            /* #fdfbf7 — stesso sfondo del sito */
  position: relative;
  overflow: hidden;
}

/* decorazione sfondo leggera (coerente col teaser natalizio/pasquale) */
.recensioni-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,185,58,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.recensioni-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,125,9,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Intestazione ── */
.rec-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.rec-eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);             /* #FF7D09 */
  margin-bottom: 8px;
}

.rec-titolo {
  font-family: var(--ff-serif);     /* Lora */
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--ink-700);            /* #706969 */
  line-height: 1.2;
  margin: 0 0 16px;
}

.rec-titolo em {
  font-style: italic;
  color: var(--green);              /* #77B93A */
}

/* ── Sommario stelle globale ── */
.rec-sommario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rec-voto-grande {
  font-family: var(--ff-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1;
}

.rec-stelle-globali {
  display: flex;
  gap: 2px;
  align-items: center;
}

.rec-stelle-globali .stella {
  font-size: 1.3rem;
  color: #F5A623;
}

.rec-n-recensioni {
  font-size: .85rem;
  color: var(--ink-500);
  font-weight: 400;
  margin: 0;
}

/* divisore decorativo */
.rec-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 180px;
  margin: 14px auto 0;
}
.rec-divider::before,
.rec-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e3d6;
}
.rec-divider-icon {
  font-size: 1rem;
}

/* ── Loading / errore ── */
.rec-stato {
  text-align: center;
  padding: 36px 20px;
  color: var(--ink-500);
  font-size: .95rem;
  position: relative;
  z-index: 1;
}

.rec-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e8e3d6;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: rec-spin .75s linear infinite;
  margin: 0 auto 12px;
}

@keyframes rec-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   CAROUSEL
══════════════════════════════════════════ */

.rec-carousel-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto 48px;
}

/* pista scorrevole */
.rec-track-outer {
  overflow: hidden;
  border-radius: var(--radius);     /* 12px — stesso del sito */
}

.rec-track {
  display: flex;
  gap: 24px;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── Card singola ── */
.rec-card {
  flex: 0 0 calc(100% - 0px);      /* 1 card visibile per default (mobile) */
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  box-sizing: border-box;
}

/* virgolette decorative — stile Lora */
.rec-card::before {
  content: '\201C';
  font-family: var(--ff-serif);
  font-size: 5rem;
  color: rgba(119,185,58,0.15);    /* verde trasparente */
  line-height: .5;
  display: block;
  margin-bottom: -8px;
  pointer-events: none;
}

/* Autore */
.rec-autore-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rec-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rec-nome {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink-700);
  line-height: 1.2;
}

.rec-data {
  font-size: .78rem;
  color: var(--ink-500);
  margin-top: 2px;
}

/* Stelle card */
.rec-stelle {
  display: flex;
  gap: 2px;
}

.rec-stelle .stella       { font-size: .95rem; color: #F5A623; }
.rec-stelle .stella.vuota { color: #ddd; }

/* Testo recensione */
.rec-testo {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-600);
  flex: 1;
  margin: 0;
}

.rec-testo.troncato {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-leggi-altro {
  font-size: .82rem;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--ff-sans);
}
.rec-leggi-altro:hover { text-decoration: underline; }

/* ── Frecce navigazione ── */
.rec-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .2s, border-color .2s, transform .2s;
  color: var(--ink-700);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.rec-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.rec-arrow:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.rec-arrow--prev { left: -54px; }
.rec-arrow--next { right: -54px; }

/* ── Dots indicatori ── */
.rec-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.rec-dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ── CTA scrivi recensione ── */
.rec-cta-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
}

.rec-cta-desc {
  font-size: .95rem;
  color: var(--ink-500);
  margin-bottom: 16px;
}

/* riusa lo stile btn-cta del sito */
.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--orange);       /* #FF7D09 */
  color: #fff;
  padding: 12px 26px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--ff-sans);
  font-size: .95rem;
  transition: background .2s;
  border: 2px solid var(--orange);
}

.rec-btn:hover {
  background: #e96c00;
  border-color: #e96c00;
}

.rec-btn svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Tablet: 2 card visibili */
@media (min-width: 640px) {
  .rec-card {
    flex: 0 0 calc(50% - 12px);
  }
}

/* Desktop: 3 card visibili */
@media (min-width: 960px) {
  .rec-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

/* frecce: su mobile le sposto dentro */
@media (max-width: 700px) {
  .rec-arrow--prev { left: 4px; }
  .rec-arrow--next { right: 4px; }
  .rec-carousel-wrap { padding: 0 0 4px; }
  .rec-track-outer  { border-radius: 8px; }
}

/* touch: supporto swipe nativo (overflow hidden + snap) */
@media (hover: none) {
  .rec-track-outer {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rec-track-outer::-webkit-scrollbar { display: none; }
  .rec-track { transition: none; }
  .rec-card  { scroll-snap-align: start; }
}

/* link "Leggi tutte le recensioni" */
.rec-link-tutte {
  display: inline-block;
  margin-top: 4px;
  font-size: .82rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.rec-link-tutte:hover {
  color: var(--orange);
  /*text-decoration: underline;*/
}

/* suggerimento sotto il link */
.rec-hint {
  display: block;
  margin-top: 5px;
  font-size: .75rem;
  color: var(--ink-500);
  font-style: italic;
  letter-spacing: .01em;
}