@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

/* Container recensioni */
.recensione-section {
  margin-top: 32px;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 24px 18px;
  color: #222;
  font-family: "Inter", Arial, sans-serif;
}

/* Lista recensioni */
.lista-recensioni {
  margin-bottom: 18px;
}

/* Singola recensione */
.recensione {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  margin-bottom: 8px;
  color: #222;
}

.recensione:last-child {
  border-bottom: none;
}

.recensione strong {
  color: #1976d2;
  font-size: 1.05em;
}

.recensione .stelle {
  margin: 4px 0 6px 0;
  font-size: 1.2em;
  letter-spacing: 2px;
}

/* Stelline nelle recensioni */
.recensione .stelle span {
  font-size: 1.3em;
  vertical-align: middle;
  margin-right: 2px;
  color: #ffb400;
  text-shadow: 0 1px 2px #fff6;
}

.recensione .stelle span.inattiva {
  color: #ddd;
  text-shadow: none;
}

/* Data recensione */
.recensione span {
  color: #888;
  font-size: 0.95em;
  margin-left: 8px;
}

/* Form recensione */
.recensione-section form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #222;
}

.recensione-section label {
  color: #222;
  font-weight: 500;
}

.recensione-section textarea,
.recensione-section input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  color: #222;
  background: #fff;
}

.recensione-section textarea:focus,
.recensione-section input:focus {
  border-color: #1976d2;
  outline: none;
}

/* Stelline selezionabili nel form */
#stelle-rec-container .star {
  font-size: 1.6em;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
  margin-right: 4px;
}

#stelle-rec-container .star:not(.inattiva) {
  color: #ffb400;
  text-shadow: 0 1px 2px #fff6;
}

#stelle-rec-container .star:hover,
#stelle-rec-container .star:hover ~ .star {
  color: #ffd966;
}

/* Bottone invio */
.recensione-section button[type="submit"] {
  background: #ff5757;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 0;
  font-size: 1em;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}

.recensione-section button[type="submit"]:hover {
  background: #fb1e1e;
}

.recensioni-titolo {
  color: #fb1e1e;
  background: none;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  margin: 50px 0 18px 0;
  text-shadow: 0 2px 8px #fff, 0 1px 2px #fb1e1e44;
  letter-spacing: 1.5px;
  border-bottom: 2px solid #fb1e1e;
  border-radius: 0;
  padding-bottom: 6px;
}

.recensioni-slider {
  margin: 0 auto;
  max-width: 480px;
  min-height: 220px;
  position: relative;
}

.slider-arrow {
  background: #fff;
  border: none;
  font-size: 2.2em;
  color: #1976d2;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px #0002;
  transition: opacity 0.2s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  display: flex;
  /* align-items: center; */
  justify-content: center;
}
.slider-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.slider-indicator {
  font-size: 1.1em;
  color: #1976d2;
  font-weight: bold;
  letter-spacing: 2px;
  background: #f2f2f2;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

.slider-card {
  box-shadow: 0 4px 16px #0002;
  border-radius: 12px;
  padding: 24px 18px;
  background: #ff5757;
  color: #fff;
  min-width: 260px;
  max-width: 420px;
  margin: 0 auto;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.slider-card:hover {
  box-shadow: 0 8px 24px #1976d233;
  transform: scale(1.03);
}

.recensione-header {
  display: flex;
  align-items: center;
  gap: 18px; /* Spaziatura tra nome, stelle e data */
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.recensione-utente {
  font-weight: bold;
  font-size: 1.08em;
  color: #fff;
  margin-right: 4px;
}
.recensione-stelle {
  color: #ffb400;
  font-size: 1.3em;
  margin-right: 4px;
}
.recensione-data {
  color: #fff;
  font-size: 0.98em;
  opacity: 0.85;
}
.recensione-testo {
  margin-top: 8px;
  font-size: 1.08em;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
}

#rec-slide {
  transition: opacity 0.18s;
}

@media (max-width: 580px) {
  .recensioni-slider {
    max-width: 98vw;
    min-height: 180px;
    padding: 0 2vw;
  }
  .slider-card {
    max-width: 96vw;
    min-width: 0;
    padding: 18px 8px;
    font-size: 1em;
    border-radius: 10px;
  }
  .slider-arrows-mobile {
    gap: 8px !important;
    margin-top: 10px !important;
    justify-content: center;
  }
  .slider-arrow {
    position: static !important;
    margin: 0 0 !important;
  }

  .slider-indicator {
    font-size: 1em;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 8px;
  }
  .recensione-header {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }
  .recensione-utente,
  .recensione-data {
    font-size: 1em;
  }
  .recensione-testo {
    font-size: 1em;
    margin-top: 6px;
  }
}
