/* ==========================================================
   Ride&Rest — Ride & Talk (bbPress) — stile allineato al tema
   Font: Nunito Sans (testo) / Barlow (titoli grandi)
   Colore accento: #f25353 — bordi: #e9e9e9 — testo: #222222
   ========================================================== */

.bbpress-wrapper,
.bbpress-wrapper input,
.bbpress-wrapper select,
.bbpress-wrapper textarea,
.bbpress-wrapper button {
  font-family: "Nunito Sans", sans-serif;
  color: #222222;
}

/* ---------- Titoli ---------- */

.bbpress-wrapper h1,
.bbpress-wrapper h2,
.bbpress-wrapper h3 {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  color: #222222;
}

.bbp-forum-title,
.bbp-topic-permalink {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  color: #222222 !important;
  text-decoration: none;
}

.bbp-forum-title:hover,
.bbp-topic-permalink:hover {
  color: #f25353 !important;
}

/* ---------- Link e accenti ---------- */

.bbpress-wrapper a {
  color: #f25353;
  text-decoration: none;
  transition: all 0.3s;
}

.bbpress-wrapper a:hover {
  color: #f25353;
  text-decoration: underline;
}

/* ---------- Breadcrumb ---------- */

.bbp-breadcrumb {
  font-size: 0.9em;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9e9e9;
}

.bbp-breadcrumb-sep {
  margin: 0 8px;
  color: #cccccc;
}

.bbp-breadcrumb-current {
  color: #222222;
  font-weight: 700;
}

/* ---------- Elenco forum / topic (righe stile "card") ---------- */

.bbp-forums,
.bbp-topics,
.bbp-replies {
  border: 1px solid #e9e9e9;
  margin-bottom: 30px;
  background: #ffffff;
}

.bbp-body > div > ul.forum,
.bbp-body > div > ul.topic,
.bbp-body > div > ul.reply,
.bbp-header {
  background: #faf7f5;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #f25353;
}

.bbp-forum-info,
.bbp-topic-title {
  padding: 18px 20px;
}

.bbp-forum-content p {
  color: #555555;
  margin: 6px 0 0;
  font-size: 0.95em;
}

.status-category .bbp-forum-title {
  font-size: 1.3em;
}

/* righe alternate più leggere, niente grigio pesante */
.loop-item-0,
.loop-item-2,
.loop-item-4,
.loop-item-6 {
  background: #ffffff;
}

.loop-item-1,
.loop-item-3,
.loop-item-5,
.loop-item-7 {
  background: #fafafa;
}

/* bordo inferiore fra le righe */
li.bbp-body,
li.forum,
li.topic,
li.reply {
  border-bottom: 1px solid #e9e9e9;
}

li.bbp-footer {
  border-top: none;
}

/* contatori (repliche/discussioni) in stile "badge" con l'accento del sito */
.bbp-forum-topic-count,
.bbp-forum-reply-count,
.bbp-topic-reply-count,
.bbp-topic-voice-count {
  display: inline-block;
  background: #f25353;
  color: #ffffff !important;
  border-radius: 0;
  padding: 2px 10px;
  font-size: 0.8em;
  font-weight: 700;
}

/* ---------- Pulsanti (form nuova discussione, risposta, invio) ---------- */

.bbpress-wrapper #new-topic-button,
.bbpress-wrapper .button,
.bbpress-wrapper input[type="submit"],
.bbpress-wrapper button[type="submit"] {
  display: inline-block;
  background-color: #f25353;
  color: #ffffff !important;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.bbpress-wrapper #new-topic-button:hover,
.bbpress-wrapper .button:hover,
.bbpress-wrapper input[type="submit"]:hover,
.bbpress-wrapper button[type="submit"]:hover {
  background-color: #d84343;
  color: #ffffff !important;
}

/* ---------- Campi di ricerca e form ---------- */

.bbp-search-form input[type="text"],
.bbpress-wrapper input[type="text"],
.bbpress-wrapper input[type="email"],
.bbpress-wrapper input[type="password"],
.bbpress-wrapper textarea,
.bbpress-wrapper select {
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: "Nunito Sans", sans-serif;
  background: #ffffff;
}

.bbpress-wrapper input[type="text"]:focus,
.bbpress-wrapper input[type="email"]:focus,
.bbpress-wrapper textarea:focus {
  border-color: #f25353;
  outline: none;
}

/* ---------- Editor di risposta (TinyMCE / quicktags toolbar) ---------- */

.bbpress-wrapper .wp-editor-container {
  border: 1px solid #e9e9e9;
}

.bbpress-wrapper .quicktags-toolbar,
.bbpress-wrapper .wp-editor-tabs {
  background: #faf7f5;
  border-bottom: 1px solid #e9e9e9;
}

/* ---------- Freschezza / meta informazioni ---------- */

.bbp-forum-freshness,
.bbp-topic-freshness-author,
.bbp-reply-post-date,
.bbp-topic-started-by {
  color: #888888;
  font-size: 0.85em;
}

.bbp-topic-meta {
  margin-top: 6px;
}

/* ---------- Singolo topic e risposte ---------- */

.bbp-reply-header,
.bbp-topic-header {
  background: #faf7f5;
  border: 1px solid #e9e9e9;
  border-bottom: none;
  padding: 12px 18px;
}

.bbp-reply-content,
.bbp-topic-content {
  border: 1px solid #e9e9e9;
  border-top: none;
  padding: 20px;
  background: #ffffff;
  margin-bottom: 20px;
}

.bbp-reply-author,
.bbp-topic-author {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
}

/* ---------- Paginazione ---------- */

.bbp-pagination-links a,
.bbp-pagination-links span.current {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e9e9e9;
  margin-right: 4px;
  color: #222222;
}

.bbp-pagination-links span.current {
  background: #f25353;
  color: #ffffff;
  border-color: #f25353;
}

/* ---------- Box informativi (nessuna discussione, avviso login, ecc.) ---------- */

.bbpress-wrapper .bbp-template-notice,
.bbpress-wrapper .bbp-login-widget,
.bbpress-wrapper div.no-forums,
.bbpress-wrapper div.no-topics {
  border: 1px solid #e9e9e9;
  background: #faf7f5;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.bbpress-wrapper .bbp-template-notice.info {
  border-left: 4px solid #f25353;
}

/* ---------- Avatar ---------- */

.bbpress-wrapper .bbp-author-avatar img,
.bbpress-wrapper .avatar {
  border-radius: 50%;
  border: 2px solid #e9e9e9;
}
