/* ========================================
   BLOG PAGE STYLES - MINIMAL VERSION
   ======================================== */

/* Blog Hero - Minimal */
/* Blog Hero con Background Image */
.blog-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.blog-hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.blog-hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.blog-hero-title {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #fff;
}

.blog-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
}



/* Blog Categories Filter - Dropdown Minimal */
.blog-categories {
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.categories-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.filter-label {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.category-select {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 35px 8px 15px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Forum', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 200px;
}

.category-select:hover {
  border-color: #B7061A;
}

.category-select:focus {
  outline: none;
  border-color: #B7061A;
}

/* Section Header nel Blog */
.blog-grid-section .section-header {
  margin-bottom: 50px;
  opacity: 1;
  transform: none;
}

.blog-grid-section .red-line {
  width: 230px;
  height: 4px;
  background: #B7061A;
  margin-bottom: 20px;
}

.blog-grid-section .title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.blog-grid-section .section-title {
  font-size: 42px;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.blog-grid-section .right-element {
  font-size: 16px;
  color: #666;
}

.blog-grid-section .right-element p {
  color: #666;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}



/* Blog Grid Section */
.blog-grid-section {
  padding: 50px 0 60px;
  background: #fff;
}

.blog-grid-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Articles Grid - Clean & Uniform */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-bottom: 50px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-bottom: 60px;
}

.article-card {
  background: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  border-radius: 4px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(183, 6, 26, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.article-card-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

.article-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-meta-item i {
  font-size: 13px;
}

.article-card-link {
  color: #B7061A;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.article-card-link:hover {
  gap: 10px;
}

/* Pagination - Minimal */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Forum', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  border-color: #B7061A;
  color: #B7061A;
}

.pagination-btn.active {
  background: #B7061A;
  border-color: #B7061A;
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-dots {
  color: #ccc;
  padding: 0 8px;
}

/* Newsletter Signup - Minimal */
.blog-newsletter {
  background: #fafafa;
  padding: 60px 40px;
  margin: 60px 0;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.blog-newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.blog-newsletter h3 {
  font-size: 28px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.blog-newsletter p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.newsletter-form-inline {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form-inline input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Forum', serif;
  background: #fff;
}

.newsletter-form-inline input:focus {
  outline: none;
  border-color: #B7061A;
}

.newsletter-form-inline button {
  background: #B7061A;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Forum', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-form-inline button:hover {
  background: #8f0515;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.blog-empty-state i {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.blog-empty-state h3 {
  font-size: 28px;
  font-weight: 400;
  color: #666;
  margin-bottom: 15px;
}

.blog-empty-state p {
  font-size: 16px;
  color: #999;
  margin-bottom: 30px;
}

.blog-empty-state button {
  background: #B7061A;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Forum', serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-empty-state button:hover {
  background: #8f0515;
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE - BLOG PAGE
   ======================================== */

@media screen and (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}


/* Responsive hero*/
@media screen and (max-width: 768px) {
  .blog-hero {
    min-height: 350px;
  }
  
  .blog-hero-title {
    font-size: 36px;
  }
  
  .blog-hero-subtitle {
    font-size: 16px;
  }
  
  .blog-hero-content {
    padding: 0 20px;
  }
}


/* Responsive blog*/
@media screen and (max-width: 768px) {
  .blog-grid-section .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .blog-grid-section .right-element {
    display: none;
  }
  
  .blog-grid-section .section-title {
    font-size: 32px;
  }
}


@media screen and (max-width: 480px) {
  .blog-hero {
    min-height: 300px;
  }
  
  .blog-hero-title {
    font-size: 28px;
  }
}


@media screen and (max-width: 768px) {
  .blog-hero {
    padding: 100px 0 40px;
  }
  
  .blog-hero-title {
    font-size: 40px;
  }
  
  .blog-hero-subtitle {
    font-size: 17px;
  }
  
  .blog-hero-content,
  .categories-container,
  .blog-grid-container {
    padding: 0 20px;
  }
  
  .categories-list {
    gap: 10px;
  }
  
  .category-filter {
    padding: 8px 18px;
    font-size: 14px;
  }
  
  .featured-article {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  
  .featured-article-image {
    height: 250px;
  }
  
  .featured-article-content {
    padding: 30px 25px;
  }
  
  .featured-article-title {
    font-size: 28px;
  }
  
  .featured-article-excerpt {
    font-size: 15px;
  }
  
  .featured-article-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-card-image {
    height: 200px;
  }
  
  .blog-newsletter-content {
    padding: 0 20px;
  }
  
  .blog-newsletter h3 {
    font-size: 26px;
  }
  
  .newsletter-form-inline {
    flex-direction: column;
  }
  
  .newsletter-form-inline button {
    width: 100%;
  }
  
  .blog-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .pagination-btn {
    padding: 8px 14px;
    font-size: 14px;
    min-width: 40px;
  }
}

@media screen and (max-width: 480px) {
  .blog-hero-title {
    font-size: 32px;
  }
  
  .featured-article-title {
    font-size: 24px;
  }
  
  .article-card-title {
    font-size: 20px;
  }
  
  .blog-newsletter h3 {
    font-size: 22px;
  }
}