.topic-block {
  background-color: var(--cb-white);
  border: 1px solid var(--cb-border_color);
  border-radius: 5px;
  margin: 0 0 10px 0;
  padding: 0 0 0 40px;
  line-height: 1.2;
  position: relative;
  cursor: pointer;
}

.topic-block:last-child {
  margin: 0;
}

.topic-block:not(.full):hover {
  border: 1px solid var(--cb-border_dark_color);
  box-shadow: 0px 0px 3px 0px var(--cb-border_dark_color);
}

.topic-block .left-bar {
  background-color: var(--cb-bg_color2);
  width: 40px;
  height: 100%;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
}

.topic-block .left-bar .bbp-voting {
  min-width: 0;
  padding: 0;
  margin: 8px 0 0 0;
  position: relative;
}

.topic-block .left-bar .bbp-voting .score {
  padding: 2px 0 3px 0;
  color: var(--cb-fg_light_color);
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  text-shadow: 0px 0px 6px var(--cb-white), 0px 0px 4px var(--cb-white), 0px 0px 2px var(--cb-white);
  position: relative;
  z-index: 2;
}

.topic-block .left-bar .bbp-voting a.vote {
  display: block;
  position: relative;
  overflow: visible;
  text-indent: -9999em;
  font-weight: normal;
  font-size: 1rem;
  width: 0;
  height: 0;
  margin: 3px auto;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

.topic-block .left-bar .bbp-voting a.vote.up {
  border-bottom: 12px solid var(--cb-border_color);
}
.topic-block .left-bar .bbp-voting a.vote.up:hover,
.topic-block .left-bar .bbp-voting a.vote.up:focus {
  border-bottom-color: var(--cb-border_dark_color);
}

.topic-block .left-bar .bbp-voting a.vote.down {
  border-top: 12px solid var(--cb-border_color);
}

.topic-block .left-bar .bbp-voting a.vote.down:hover,
.topic-block .left-bar .bbp-voting a.vote.down:focus {
  border-top-color: var(--cb-border_dark_color);
}

.topic-block .top {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 8px 0 8px;
  color: var(--cb-fg_light_color);
  font-size: 12px;
  position: relative;
}

.topic-block .top.with-icon {
  font-size: 0;
}

.topic-block .top .bbp-author-name {
  color: var(--cb-fg_dark_color);
}

.topic-block .top .forum-icon {
  background-color: var(--cb-bg_color2);
  background-position: center center;
  background-size: cover;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px 0 0;
  border-radius: 100%;
}

.topic-block .top .right-icon {
  display: inline-block;
  width: -webkit-calc(100% - 109px);
  width: calc(100% - 109px);
  font-size: 12px;
  line-height: 14px;
}

.topic-block .top .text {
  display: inline-block;
  width: calc(100% - 84px);
}

.topic-block .top .text .right-icon {
  width: calc(100% - 25px);
}

.topic-block .top a {
  color: var(--cb-fg_color);
}

.topic-block .top a:hover,
.topic-block .top a:focus {
  text-decoration: underline;
}

.topic-block .top a.subscription-toggle {
  background-color: transparent;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.topic-block .top #subscription-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
}

.topic-block .top #topic-subscription {
  height: 24px;
  font-size: 20px;
  line-height: 24px;
}

.topic-block > h3 {
  margin: 0;
  padding: 8px;
  font-size: 20px;
  line-height: 22px;
  text-transform: none;
}

.topic-block > h3 a {
  color: var(--cb-blue_dark);
}

.topic-block > h3 a:visited {
  color: var(--cb-fg_color) !important;
}

.topic-block span.bbp-admin-links {
  float: none;
  display: inline-block;
  padding: 0 8px 8px 8px;
}

.topic-block .content {
  max-height: 250px;
  padding: 0 8px 8px 8px;
  -webkit-mask-image: -webkit-linear-gradient(top, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
  overflow: hidden;
  color: var(--cb-fg_color);
  line-height: 1.4;
}

.topic-block .content h1,
.topic-block .content h2,
.topic-block .content h3,
.topic-block .content h4,
.topic-block .content h5,
.topic-block .content h6 {
  font-size: 20px;
  margin: 0 0 16px 0;
  color: var(--cb-fg_color);
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.topic-block .content h1:last-child,
.topic-block .content h2:last-child,
.topic-block .content h3:last-child,
.topic-block .content h4:last-child,
.topic-block .content h5:last-child,
.topic-block .content h6:last-child {
  margin: 0;
}

.topic-block .content p {
  margin: 0 0 16px 0;
  color: var(--cb-fg_color);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.topic-block .content p:last-child {
  margin: 0;
}

.topic-block .content ul,
.topic-block .content ol {
  margin: 0 0 16px 16px;
}

.topic-block .content ul li,
.topic-block .content ol li {
  margin: 0 0 5px 0;
  color: var(--cb-fg_color);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.topic-block .content ul li:last-child,
.topic-block .content ol li:last-child {
  margin: 0;
}

.topic-block .content ul:last-child,
.topic-block .content ol:last-child {
  margin: 0;
}

.topic-block .content img.aligncenter,
.topic-block .content img.alignright,
.topic-block .content img.alignleft {
  border: none;
  padding: 0;
}

.topic-block .content figure,
.topic-block .content picture {
  margin: 0 0 16px 0;
}

.topic-block .content figure:last-child,
.topic-block .content picture:last-child {
  margin-bottom: 0;
}

.topic-block .content figure.aligncenter,
.topic-block .content figure.align-center,
.topic-block .content picture.aligncenter,
.topic-block .content picture.align-center {
  text-align: center;
}

.topic-block .content figure .embed-responsive,
.topic-block .content picture .embed-responsive {
  display: inline-block;
  width: 100%;
  position: relative;
}

.topic-block .content figure .embed-responsive:before,
.topic-block .content picture .embed-responsive:before {
  content: '';
  display: block;
  margin-top: 56%;
}

.topic-block .content figure .embed-responsive iframe,
.topic-block .content figure .embed-responsive video,
.topic-block .content picture .embed-responsive iframe,
.topic-block .content picture .embed-responsive video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.topic-block .bottom {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 16px;
}

.topic-block .bottom a.button,
.topic-block .bottom span.button {
  display: inline-block;
  background: none;
  padding: 6px 8px;
  margin: 0 4px 0 0;
  border: none;
  border-radius: 5px;
  color: var(--cb-fg_light_color);
  transition: all 0.5s ease-in-out;
}

.topic-block .bottom a.button span.icon,
.topic-block .bottom span.button span.icon {
  padding: 0 3px 0 0;
  font-size: 18px;
  vertical-align: middle;
}

.topic-block .bottom a.button span.text,
.topic-block .bottom span.button span.text {
  display: inline-block;
  vertical-align: middle;
}

.topic-block:not(.search) .bottom a.button:hover,
.topic-block:not(.search) .bottom a.button:focus {
  background-color: var(--cb-bg_color2);
}

.topic-block.search .bottom a.button:hover .text,
.topic-block.search .bottom a.button:focus .text {
  text-decoration: underline;
}

.topic-block .bottom .share-wrapper {
  display: inline-block;
  position: relative;
}

.topic-block .bottom .share-box {
  background-color: var(--cb-white) !important;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cb-border_light_color);
  border-radius: 5px;
  box-shadow: 0 2px 4px 0 rgba(28, 28, 28, 0.2);
  list-style: none;
  overflow: hidden;
  position: absolute;
  top: 30px;
  left: 0;
  z-index: 1;
}

.topic-block .bottom .share-box li a {
  display: block;
  padding: 8px 12px 8px 8px;
  border-top: 1px solid var(--cb-border_light_color);
  color: var(--cb-fg_light_color);
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  text-transform: capitalize;
  white-space: nowrap;
}

.topic-block .bottom .share-box li a:before {
  display: inline-block;
  width: 20px;
  margin-right: 6px;
  font-size: 18px;
  text-align: center;
  vertical-align: middle;
}

.topic-block .bottom .share-box li a span {
  display: inline-block;
  font-family: var(--font-body);
  vertical-align: middle;
}

.topic-block .bottom .share-box li a.ion-ios7-copy:before {
  font-size: 24px;
}

.topic-block .bottom .share-box li a.icon-whats-app:before {
  font-size: 22px;
}

.topic-block .bottom .share-box li a.ion-email:before {
  font-size: 20px;
}

.topic-block .bottom .share-box li a.icon-x:before {
  content: '';
  height: 20px;
  background: url("icon-x.svg");
  background-size: contain;
}

.topic-block .bottom .share-box li a:hover,
.topic-block .bottom .share-box li a:focus {
  background-color: rgba(26, 26, 27, 0.1);
}

.topic-block .bottom .share-box li:first-child a {
  border-top: none;
}

.topic-block .cat {
  background-color: var(--cb-blue);
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--cb-white);
  font-size: 12px;
  line-height: 16px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.topic-block .tag {
  background-color: var(--cb-fg_color);
  display: inline-block;
  width: 76px;
  height: 24px;
  margin: 0 0 0 8px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--cb-white);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.topic-block .tag.per-tutti,
.topic-block .tag.unlock {
  background-color: var(--cb-green);
}

.topic-block .tag.riservato {
  background-color: var(--cb-yellow);
  color: var(--cb-fg_color);
}

.topic-block .tag.membri {
  background-color: var(--cb-blue);
}

.topic-block .tag.caldo {
  background-color: var(--cb-primary-color);
}

.topic-block.full {
  margin-bottom: 0;
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  cursor: default;
}

.topic-block.full .left-bar {
  background-color: var(--cb-white);
}

.topic-block.full .top .text {
  width: calc(100% - 101px);
}

.topic-block.full .content {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
  overflow: visible;
}

.topic-block.full .content .topic-overlay {
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0, var(--cb-white) 60%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, var(--cb-white) 60%);
  height: 136px;
  margin-top: -136px;
  position: relative;
}

.topic-block.full .content .paywall-content-wrapper {
  min-height: 120px;
}

.topic-block.full .content .paywall-content-wrapper p:last-child,
.topic-block.full .content .paywall-content-wrapper ol:last-child,
.topic-block.full .content .paywall-content-wrapper ul:last-child,
.topic-block.full .content .paywall-content-wrapper h3:last-child {
  margin-bottom: 16px;
}

.topic-block.full .content .paywall-content-wrapper p:empty:not(:last-child),
.topic-block.full .content .paywall-content-wrapper ol:empty:not(:last-child),
.topic-block.full .content .paywall-content-wrapper ul:empty:not(:last-child),
.topic-block.full .content .paywall-content-wrapper h3:empty:not(:last-child) {
  display: none;
}

.topic-block.full .content .paywall-box {
  margin-left: -40px;
}

.topic-block.full .content .paywall-box h3,
.topic-block.full .content .paywall-box form .privacy label,
.topic-block.full .content .paywall-box form p {
  color: var(--cb-white);
}

.topic-block.full + .card-main {
  border: 1px solid var(--cb-border_color);
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  box-shadow: none;
}

.topic-block.full + .card-main .card-inner {
  padding: 8px;
}

.topic-block.full + .card-main .card-inner .form-floating {
  margin: 10px 0;
}

.topic-block.full + .card-main .card-inner .mb-4 {
  margin: 0 0 10px 0 !important;
}

.topic-block.full + .card-main .card-inner textarea#bbp_forum_content,
.topic-block.full + .card-main .card-inner textarea#bbp_reply_content,
.topic-block.full + .card-main .card-inner textarea#bbp_topic_content {
  width: 100%;
}

.topic-block.full .cat {
  right: 31px;
}

.topic-block.full .tag {
  margin-right: 8px;
}

.topic-block.azure {
  border-color: var(--cb-azure_dark);
}

.topic-block.azure:not(.full):hover {
  border: 1px solid var(--cb-azure_dark);
  box-shadow: 0px 0px 3px 0px var(--cb-azure_dark);
}

.topic-block.azure .left-bar {
  background-color: var(--cb-azure_light);
}

.topic-block.azure .bottom a.button:hover,
.topic-block.azure .bottom a.button:focus {
  background-color: var(--cb-azure_light);
}

.topic-block.sticky {
  border-color: var(--cb-red);
}

.topic-block.sticky:not(.full):hover {
  border: 1px solid var(--cb-red);
  box-shadow: 0px 0px 3px 0px var(--cb-red);
}

.topic-block.sticky .left-bar {
  background-color: var(--cb-red_light);
}

.topic-block.sticky .left-bar .bbp-voting a.vote.up {
  border-bottom-color: var(--cb-red);
}
.topic-block.sticky .left-bar .bbp-voting a.vote.up:hover,
.topic-block.sticky .left-bar .bbp-voting a.vote.up:focus {
  border-bottom-color: var(--cb-red_dark);
}

.topic-block.sticky .left-bar .bbp-voting a.vote.down {
  border-top-color: var(--cb-red);
}

.topic-block.sticky .left-bar .bbp-voting a.vote.down:hover,
.topic-block.sticky .left-bar .bbp-voting a.vote.down:focus {
  border-top-color: var(--cb-red_dark);
}

.topic-block.sticky .bottom a.button:hover,
.topic-block.sticky .bottom a.button:focus {
  background-color: var(--cb-red_light);
}

.topic-block.search {
  padding: 0;
}

.topic-block.search .top {
  padding: 16px 16px 0 16px;
}

.topic-block.search > h3 {
  padding: 8px 16px 0 16px;
}

.topic-block.search .content {
  padding: 8px 16px;
}

.topic-block.search .content h1:last-child,
.topic-block.search .content h2:last-child,
.topic-block.search .content h3:last-child,
.topic-block.search .content h4:last-child,
.topic-block.search .content h5:last-child,
.topic-block.search .content h6:last-child,
.topic-block.search .content p:last-child,
.topic-block.search .content ul:last-child,
.topic-block.search .content ol:last-child,
.topic-block.search .content figure:last-child,
.topic-block.search .content picture:last-child {
  margin-bottom: 8px;
}

.topic-block.search .inner-box .content p:last-child,
.topic-block.search .inner-box .content ul:last-child,
.topic-block.search .inner-box .content ol:last-child {
  margin-bottom: 0;
}

.topic-block.search .bottom {
  padding: 8px 16px 16px 16px;
}

.topic-block.search .bottom > *,
.topic-block.search .bottom > *.button {
  display: inline-block;
  margin: 0 12px 0 0;
  padding: 0;
  color: var(--cb-fg_light_color);
}

.topic-block.search .bottom > * .icon,
.topic-block.search .bottom > *.button .icon {
  display: none;
}

.topic-block.search:not(.topic) .content {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}

.topic-block.search.reply > .content {
  margin: 8px 0 0 0;
}

.topic-block.search.reply .content {
  padding: 0 16px;
}

.topic-block.search.reply .inner-box {
  background-color: var(--cb-azure_light);
  margin: 8px 16px 0 16px;
  border-radius: 5px;
}

.topic-block.search.reply .inner-box .content,
.topic-block.search.reply .inner-box .bottom {
  padding-left: 41px;
}

.topic-block.search.reply .inner-box .content {
  max-height: 250px;
  -webkit-mask-image: -webkit-linear-gradient(top, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.topic-block.trash {
  background-color: var(--cb-red_light);
}

.topic-block.trash .left-bar {
  background-color: var(--cb-red_light);
}

.topic-block.pending {
  background-color: var(--cb-yellow_light);
}

.topic-block.pending .left-bar {
  background-color: var(--cb-yellow_light);
}

.topic-block.without-society-kind {
  background-color: var(--cb-green_light);
}

.topic-block.without-society-kind .left-bar {
  background-color: var(--cb-green_light);
}

.topic-block .inner-box {
  background-color: var(--cb-azure_light);
  margin: 8px 16px 0 16px;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .topic-block {
    margin-top: 34px;
  }
  .topic-block:last-child {
    margin-bottom: 0;
  }
  .topic-block .top .text {
    width: 100%;
  }
  .topic-block .top .right-icon {
    width: -webkit-calc(100% - 25px);
    width: calc(100% - 25px);
  }
  .topic-block .tag {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: absolute;
    top: -24px;
    right: 0;
  }
  .topic-block.full {
    margin-top: 13px;
  }
  .topic-block.full .top .text {
    padding-right: 5px;
    width: -webkit-calc(100% - 15px);
    width: calc(100% - 15px);
  }
  .topic-block.full .tag {
    margin: 0;
  }
  #add-btn-box + .topic-block {
    margin-top: 34px;
  }
  #user-page .topic-block.reply:first-child {
    margin-top: 20px;
  }
}

@media (max-width: 500px) {
  .topic-block .bottom a.button span.hide-mobile,
  .topic-block .bottom span.button span.hide-mobile {
    display: none;
  }
}