/* Blog (estratto da TRCIM styles) */

.text-black-2 {
  color: #1c1c1e;
}
.text-primary {
  color: var(--uc-primary-color) !important;
}
.fw-6 {
  font-weight: 600 !important;
}
.fw-8 {
  font-weight: 800 !important;
}
.line-b {
  border-bottom: 1px solid #e4e4e4;
}
.round-30 {
  border-radius: 30px;
}
.o-hidden {
  overflow: hidden;
}
.hover-img .img-style {
  overflow: hidden;
  position: relative;
}
.hover-img .img-style img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: transform 2s cubic-bezier(0, 0, 0.44, 1.18);
  transition: transform 1.5s cubic-bezier(0, 0, 0.44, 1.18);
}
.hover-img:hover img {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}
.hover-img.not-overlay .img-style::after {
  content: none;
}
.hover-img.not-overlay::after {
  content: none;
}
.hover-img .img-style2 {
  overflow: hidden;
  border-radius: 10px;
}
.hover-img .img-style2 .img-hv {
  width: 100%;
  object-fit: cover;
  -webkit-transition: all 1s cubic-bezier(0.3, 1, 0.35, 1) 0s;
  transition: all 1s cubic-bezier(0.3, 1, 0.35, 1) 0s;
  transition: transform 500ms ease;
}
.hover-img2 .img-style2 {
  overflow: hidden;
  border-radius: 8px;
}
.hover-img2 .img-style2 .img2 {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.hover-img2:hover .img2 {
  transform: scale(1.1) rotate(3deg);
}
.hover-img3 .img-style3 {
  border-radius: 8px;
  overflow: hidden;
}
.hover-img3 .img-style3 img {
  width: 100%;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.hover-img3:hover img {
  transform: scale(1.075);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
  .hover-img-wrap {
    position: relative;
  }
  .hover-img-wrap::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgb(0, 0, 0);
    transition: 0.25s;
    z-index: 3;
    opacity: 0.1;
  }
  .hover-img-wrap::after {
    content: "";
    position: absolute;
    bottom: -100%;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgb(0, 0, 0);
    transition: 0.25s;
    z-index: 3;
    opacity: 0.1;
  }
  .hover-img-wrap:hover::after {
    bottom: 0;
    transition-delay: 0.25s;
  }
  .hover-img-wrap:hover::before {
    top: 0;
  }
.fixed-sidebar {
  position: sticky;
  top: 24px;
}
.fixed-sidebar-2 {
  position: sticky;
  top: 24px;
}
.cat-blog {
    background-color: var(--uc-primary-color);
    border: 1px solid #989898;
    margin: 0 8px 0 0 !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    transition: 0.48s all ease;
    display: inline-block;
    white-space: nowrap;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    color: #000;
    font-size: 12px;
}
.cat-blog::before {
    display: none !important;
}
.cat-blog:active,
.cat-blog:visited,
.cat-blog:hover {
    background-color: #70570748;
}
.search-box {
  position: relative;
  width: 100%;
}
.search-box .icon {
  position: absolute;
  font-size: 16px;
  color: #161E2D;
  top: 50%;
  transform: translateY(-50%);
  left: 18px;
}
.search-box .search-field {
  padding: 13px 16px;
  padding-left: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  border: 1px solid #e4e4e4;
  color: #5c6368;
  background-color: #ffffff;
}
.search-box .search-field::placeholder {
  color: #5c6368;
}
.search-box .search-field:focus {
  border-color: var(--uc-primary-color);
}

.flat-blog-item {
  margin-bottom: 40px;
  display: block;
}
.flat-blog-item .img-style {
  position: relative;
  border-radius: 16px;
}
.flat-blog-item .date-post {
  z-index: 1;
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--uc-primary-color);
  color: #ffffff;
  border-radius: 99px;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.flat-blog-item .content-box {
  margin-top: 26px;
}
.flat-blog-item .content-box .title {
  margin-top: 10px;
  text-transform: capitalize;
}
.flat-blog-item .content-box .description {
  margin-top: 12px;
  color: #5c6368;
}
.flat-blog-item.style-1 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.flat-blog-item.style-1 .img-style {
  border-radius: 0;
  width: 100%;
  height: 100%;
}
.flat-blog-item.style-1 .content-box {
  position: absolute;
  z-index: 12;
  bottom: 20px;
  left: 20px;
  right: 20px;
}
.flat-blog-item.style-1 .content-box .title {
  color: #ffffff;
}
.flat-blog-item.style-1 .content-box .post-author {
  margin-top: 4px;
}
.flat-blog-item.style-1 .content-box .post-author span {
  color: #ffffff;
  font-size: 14px;
  line-height: 24px;
}
.flat-blog-item.style-1 .date-post {
  left: 20px;
  top: 20px;
}
.flat-blog-item.style-1::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.4s ease-out 0s;
  -moz-transition: all 0.4s ease-out 0s;
  -ms-transition: all 0.4s ease-out 0s;
  -o-transition: all 0.4s ease-out 0s;
  transition: all 0.4s ease-out 0s;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65.29%, #000000 100%);
}

.post-author .icon {
  margin-right: 4px;
}
.post-author span:not(:first-child) {
  margin-left: 7px;
  padding-left: 8px;
  position: relative;
}
.post-author span:not(:first-child)::before {
  position: absolute;
  content: "";
  width: 1px;
  background-color: #e4e4e4;
  left: 0;
  top: 5px;
  bottom: 5px;
}
.post-author.style-1 span {
  color: #161e2d;
}

.flat-blog-list {
  padding-right: 6%;
}
.flat-blog-list .flat-blog-item {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e4e4e4;
}
.flat-blog-list .flat-blog-item .content-box {
  margin-top: 28px;
}
.flat-blog-list .flat-blog-item .content-box .post-author {
  margin-top: 6px;
}
.flat-blog-list .flat-blog-item .content-box .title {
  margin-top: 0;
}
.flat-blog-list .flat-blog-item .content-box .description {
  margin-top: 30px;
}
.flat-blog-list .flat-blog-item .img-style {
  border-radius: 30px;
  overflow: hidden;
}
.flat-blog-list .flat-blog-item .date-post {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20.23px;
}
.flat-blog-list .flat-blog-item:last-child {
  margin-bottom: 26px;
}

.sidebar-blog {
  padding-left: 8px;
}

.sidebar-blog ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-blog .widget-search,
.sidebar-blog .widget-box {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 22px 20px;
}

.sidebar-blog .widget-box {
  margin-top: 20px;
}

.sidebar-blog .widget-search + .widget-box {
  margin-top: 20px;
}

.sidebar-blog .search-box {
  margin-top: 16px;
  display: block;
  width: 100%;
}

.sidebar-blog .search-box .search-field,
.widget-search .search-box .search-field {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-blog .recent ul {
  margin-top: 8px;
}

.sidebar-blog .recent ul li:first-child .recent-post-item {
  border-top: 0;
  margin-top: 0;
  padding-top: 12px;
}

.sidebar-blog .recent ul li:last-child .recent-post-item {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-blog .recent .recent-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e4e4e4;
}

.sidebar-blog .recent .recent-post-item .img-style {
  border-radius: 10px;
  width: 92px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-blog .recent .recent-post-item .img-style img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-blog .recent .recent-post-item .content {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-blog .recent .recent-post-item .content .subtitle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-blog .recent .recent-post-item .content .subtitle span {
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 0.2px;
  color: #a3abb0;
}

.sidebar-blog .recent .recent-post-item .content .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: none;
}

.sidebar-blog .categories ul {
  margin-top: 8px;
}

.sidebar-blog .categories ul .categories-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e4e4;
  color: #1c1c1e;
  text-decoration: none;
}

.sidebar-blog .categories ul li:last-child .categories-item {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-blog .categories ul li:first-child .categories-item {
  padding-top: 4px;
}

.sidebar-blog .categories ul .categories-item.is-child {
  font-weight: 500;
}

.sidebar-blog .categories ul .categories-item span:first-child {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  min-width: 0;
}

.sidebar-blog .categories ul .categories-item span:last-child {
  color: #a3abb0;
  flex-shrink: 0;
}

.sidebar-blog .tag ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-blog .tag .tag-item {
    padding: 0 14px;
    border-radius: 99px;
    border: 1px solid #000;
    background: #000;
    color: var(--uc-primary-color);
    font-size: 12px;
    display: flex;
    line-height: 1;
    height: 28px;
    font-weight: 500;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 6px;
}

.sidebar-blog .tag .tag-item:hover {
  color: #000;
  border-color: var(--uc-primary-color);
  background: var(--uc-primary-color);
}
.sidebar-blog .newsletter .search-box .search-field {
  padding-right: 44px;
  padding-left: 16px;
}
.sidebar-blog .newsletter .search-box .icon {
  left: unset;
  right: 18px;
}

.flat-banner-blog img {
  width: 100%;
}

.flat-blog-detail h4 {
  margin-bottom: 16px;
}
.flat-blog-detail .meta-blog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.flat-blog-detail .meta-blog .item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.flat-blog-detail .post-navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 16px 0px;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}
.flat-blog-detail .post-navigation .previous-post {
  padding-right: 22%;
  position: relative;
}
.flat-blog-detail .post-navigation .previous-post::after {
  position: absolute;
  content: "";
  width: 1px;
  background-color: #e4e4e4;
  right: 0;
  top: 13px;
  bottom: 13px;
}
.flat-blog-detail .post-navigation .next-post {
  text-align: right;
  padding-left: 30%;
}
.flat-blog-detail .post-navigation .subtitle {
  font-weight: 700;
  color: #a3abb0;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.8px;
}
.flat-blog-detail .wrap-review {
  margin-top: 40px;
}
.flat-blog-detail .wrap-review .box-review {
  margin-top: 20px;
}
.flat-blog-detail .wrap-form-comment {
  margin-top: 40px;
}

.flat-quote {
  padding: 30px;
  border-radius: 10px;
  background-color: #eef6f1;
  border-left: 4px solid var(--uc-primary-color);
}
.flat-quote .quote {
  font-family: "Rubik", sans-serif;
}
.flat-quote .author {
  margin-top: 30px;
  display: block;
  font-family: "Rubik", sans-serif;
}

.blog-tag {
  padding: 8px 10px;
  color: #5c6368;
  border-radius: 999px;
  border: 1px solid #e4e4e4;
}
.blog-tag:hover {
  color: var(--uc-primary-color);
}
.blog-tag.primary {
  background-color: var(--uc-primary-color);
  color: #ffffff;
  padding: 6px 10px;
}

.flat-latest-post .box-title-relatest {
  margin-bottom: 30px;
}
.flat-latest-post .flat-blog-item {
  margin-bottom: 0;
}

/*------------ pagination ---------------- */
.flat-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flat-pagination .page-numbers {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #161e2d;
  text-align: center;
  width: 48px;
  height: 50px;
  line-height: 50px;
  border-radius: 8px;
  object-fit: cover;
  position: relative;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #ffffff;
}
.flat-pagination .page-numbers.current, .flat-pagination .page-numbers:hover {
  background-color: var(--uc-primary-color);
  color: #ffffff;
}


@media only screen and (min-width: 992px) {
  .sidebar-blog .recent {
    padding-right: 60px;
  }
  .flat-quote {
    padding-right: 50px;
  }
}

@media only screen and (max-width: 991px) {
  .flat-blog-item .content-box {
    margin-top: 20px;
  }
  .flat-blog-item {
    margin-bottom: 30px;
  }
  .flat-blog-list {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .flat-latest-post .flat-blog-item {
    margin-bottom: 30px;
  }
  .flat-latest-new .box:not(:last-child) .flat-blog-item {
    margin-bottom: 30px;
  }
  .sidebar-blog {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 767px) {
  .flat-blog-detail .box-image {
    grid-template-columns: 1fr;
  }
  .flat-blog-detail .post-navigation {
    grid-template-columns: 1fr;
  }
  .flat-blog-detail .post-navigation .previous-post {
    padding-right: 0;
  }
  .flat-blog-detail .post-navigation .previous-post::after {
    content: none;
  }
  .flat-blog-detail .post-navigation .next-post {
    margin-top: 20px;
    text-align: left;
    padding-left: 0;
  }
  .flat-quote {
    padding: 15px;
  }
}

@media (max-width: 575px) {
    .sidebar-blog.fixed-sidebar {
        margin-top: 14px;
    }
    .flat-blog-list .flat-blog-item .content-box .post-author {
        overflow-y: hidden;
        overflow-x: auto;
        padding: 14px 0;
    }
}

/* Link / card images / search widget polish */
.link {
  transition: color 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.link:hover {
  color: var(--uc-primary-color) !important;
}

.flat-blog-item .img-style {
  display: block;
  overflow: hidden;
}
.flat-blog-item .img-style img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0, 0, 0.44, 1.18);
}
.flat-blog-item:hover .img-style img {
  transform: scale(1.03);
}

.flat-blog-detail .title a,
.flat-blog-item .title a {
  color: inherit;
  text-decoration: none;
}

.widget-search h5,
.sidebar-blog .widget-box h5 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #1c1c1e;
}

.widget-search .search-box button.icon {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: auto;
  height: auto;
  line-height: 1;
}

.flat-blog-empty {
  padding: 40px 20px;
}
.flat-blog-empty .tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid var(--uc-primary-color);
  background: var(--uc-primary-color);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.flat-blog-empty .tf-btn:hover {
  background: var(--uc-primary-color);
  border-color: var(--uc-primary-color);
  color: #000;
}

.flat-blog-detail img {
  max-width: 100%;
  height: auto;
}

.flat-blog-detail .meta-blog {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========== Articolo singolo ========== */
.text-variant-1 { color: #5c6368; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }
.mt-16 { margin-top: 16px; }
.mt-30 { margin-top: 30px; }
.gap-9 { gap: 9px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.round-30 { border-radius: 30px; }
.o-hidden { overflow: hidden; }
.w-100 { width: 100%; }

.flat-blog-detail {
  padding-right: 4%;
}

.flat-blog-detail .title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
  color: #1c1c1e;
  text-transform: none;
}

.flat-blog-detail .meta-blog {
    list-style: none;
    margin: 0 0 .8rem !important;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

.flat-blog-detail .meta-blog .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flat-blog-detail .meta-blog .item .icon {
  flex-shrink: 0;
}

.flat-blog-detail .meta-text {
  color: #1c1c1e;
}

.flat-blog-detail .meta-cats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.flat-blog-detail .blog-lead {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 8px;
}

.flat-blog-detail .blog-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.flat-blog-detail .blog-detail-content {
    color: #696969;
    font-size: 14px;
}

.flat-blog-detail .blog-detail-content p,
.flat-blog-detail .blog-detail-content ul,
.flat-blog-detail .blog-detail-content ol,
.flat-blog-detail .blog-detail-content blockquote,
.flat-blog-detail .blog-detail-content h2,
.flat-blog-detail .blog-detail-content h3,
.flat-blog-detail .blog-detail-content h4 {
  margin: 0 0 1.15em;
  color: inherit;
  font-family: inherit !important;
  line-height: 24px;
}

.flat-blog-detail .blog-detail-content a {
  color: var(--uc-primary-color);
  text-decoration: underline;
}

.flat-blog-detail .blog-detail-content a:hover {
  color: var(--uc-primary-color);
}

.flat-blog-detail .blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.flat-blog-detail .blog-detail-footer {
  align-items: center;
}

.flat-blog-detail .blog-tag-list,
.flat-blog-detail .blog-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flat-blog-detail .blog-tag {
  display: inline-block;
  padding: 8px 12px;
  color: #5c6368;
  border-radius: 999px;
  border: 1px solid #e4e4e4;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  background: #fff;
}

.flat-blog-detail .blog-tag:hover {
  color: #000;
  border-color: var(--uc-primary-color);
  background: var(--uc-primary-color);
}

.flat-blog-detail .share-label {
  font-size: 14px;
  font-weight: 500;
}

.box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: #a3abb0;
  background: #fff;
}

.box-icon .icon {
  font-size: 18px;
  line-height: 1;
}

.box-icon.line {
  border: 1px solid #e4e4e4;
}

.box-icon.line:hover,
.box-icon.line.is-copied {
  border-color: var(--uc-primary-color);
  color: #000;
  background: var(--uc-primary-color);
}

.box-icon.w-44 {
  width: 44px;
  height: 44px;
}

.box-icon.round {
  border-radius: 50%;
}

@media (max-width: 991px) {
  .flat-blog-detail {
    padding-right: 0;
    margin-bottom: 30px;
  }
}
