@charset "UTF-8";
/* ============================================
   BLOG SLIDER SECTION
   ============================================ */
/* Header con titolo + link "Tutti gli articoli" */
.blog-slider-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-slider-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
  transition: gap 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.blog-slider-all-link:hover {
  gap: 12px;
  border-color: rgba(167, 139, 250, 0.7);
}

/* Swiper Container */
.blog-slider-swiper {
  padding: 20px 5px 60px;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
@media (min-width: 768px) {
  .blog-slider-swiper {
    padding: 40px 0 70px;
  }
}

section.visible .blog-slider-swiper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.blog-slider-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* ---- Card ---- */
.blog-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 20px 50px rgba(167, 139, 250, 0.12);
}
.blog-card:hover .blog-card-link {
  gap: 10px;
  color: #a78bfa;
}
.blog-card:hover .blog-card-cover .blog-card-icon {
  transform: scale(1.15);
}

/* Cover: base */
.blog-card-cover {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
@media (min-width: 768px) {
  .blog-card-cover {
    height: 180px;
  }
}

/* Cover con featured image */
.blog-card-cover--img {
  background-size: cover;
  background-position: center;
}
.blog-card-cover--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
  pointer-events: none;
}
.blog-card-cover--img .blog-card-category {
  z-index: 1;
}

.blog-card-icon {
  font-size: 52px;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Category badge — posizionato in basso a sinistra sulla cover */
.blog-card-category {
  position: absolute;
  bottom: 14px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}
.blog-card-category--dev {
  background: rgba(77, 166, 255, 0.2);
  color: #4da6ff;
  border: 1px solid rgba(77, 166, 255, 0.35);
}
.blog-card-category--automation {
  background: rgba(76, 217, 100, 0.18);
  color: #4CD964;
  border: 1px solid rgba(76, 217, 100, 0.3);
}
.blog-card-category--arch {
  background: rgba(255, 214, 10, 0.18);
  color: #FFD60A;
  border: 1px solid rgba(255, 214, 10, 0.3);
}
.blog-card-category--ux {
  background: rgba(167, 139, 250, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.blog-card-category--perf {
  background: rgba(255, 149, 0, 0.18);
  color: #FF9500;
  border: 1px solid rgba(255, 149, 0, 0.3);
}

/* Card body */
.blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
@media (min-width: 768px) {
  .blog-card-body {
    padding: 26px 26px 22px;
  }
}

.blog-card-meta {
  display: flex;
  align-items: center;
}

.blog-card-readtime {
  font-size: 11px;
  color: #a0a8b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin: 0;
  opacity: 1;
  transform: none;
}
@media (min-width: 768px) {
  .blog-card-title {
    font-size: 18px;
  }
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: #a78bfa;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: #c7cdd8;
  margin: 0;
  flex: 1;
  opacity: 1;
  transform: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Footer: autore + link */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #a0a8b8;
}

.blog-card-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #a0a8b8;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

/* ---- Swiper Navigation ---- */
.blog-slider-swiper .swiper-button-next,
.blog-slider-swiper .swiper-button-prev {
  display: none;
  color: #a78bfa;
  width: 40px;
  height: 40px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 768px) {
  .blog-slider-swiper .swiper-button-next,
  .blog-slider-swiper .swiper-button-prev {
    display: flex;
    width: 50px;
    height: 50px;
  }
}
.blog-slider-swiper .swiper-button-next::after,
.blog-slider-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}
@media (min-width: 768px) {
  .blog-slider-swiper .swiper-button-next::after,
  .blog-slider-swiper .swiper-button-prev::after {
    font-size: 18px;
  }
}
.blog-slider-swiper .swiper-button-next:hover,
.blog-slider-swiper .swiper-button-prev:hover {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.55);
  transform: scale(1.1);
}

/* ---- Swiper Pagination ---- */
.blog-slider-swiper .swiper-pagination {
  position: relative;
  margin-top: 40px;
}

.blog-slider-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(167, 139, 250, 0.3);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-slider-swiper .swiper-pagination-bullet-active {
  background: #a78bfa;
  width: 28px;
  border-radius: 5px;
}