/* ==========================================================================
   Articles/News Page Styles
   ========================================================================== */

/* Articles Page Layout */
.articles-page-container {
  width: 100%;
}

/* Hero Section */
.articles-hero-section {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.articles-hero-section .hero-background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/articles-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.articles-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(237, 219, 128, 0.7) 0%,
    rgba(161, 174, 28, 0.8) 33%,
    rgba(77, 101, 40, 0.8) 66%,
    rgba(19, 44, 23, 0.9) 100%
  );
  z-index: 2;
}

.articles-hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #fff;
  padding: 60px 20px;
  width: 100%;
}

.articles-hero-title {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.articles-hero-subtitle {
  font-size: 1.5rem;
  color: #f8f9fa;
  margin: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Articles Content Section */
.articles-content-section {
  padding: 80px 0;
  background: #fff;
}

/* Section Spacing */
.scritti-da-noi-section,
.parlano-di-noi-section {
  margin-bottom: 80px;
}

.section-header-articles {
  text-align: center;
  margin-bottom: 50px;
}

.section-header-articles h2 {
  font-family: 'Space Mono', 'Consolas', 'Monaco', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.section-header-articles p {
  font-size: 1.2rem;
  color: #666;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

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

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

.article-content {
  padding: 25px;
}

.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.article-date {
  color: #28a745;
  font-size: 0.9rem;
  font-weight: 600;
}

.article-author {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  display: block;
  margin-bottom: 10px;
}

.article-title {
  margin-bottom: 15px;
}

.article-title a {
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #28a745;
}

.article-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.article-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.read-more-link {
  color: #28a745;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: #1e7e34;
}

.read-more-link .arrow {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.read-more-link:hover .arrow {
  margin-left: 10px;
}

/* Press Grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.press-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.press-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.press-image {
  height: 140px;
  overflow: hidden;
  background: #e9ecef;
}

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

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

.press-content {
  padding: 20px;
}

.press-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.press-date {
  color: #666;
  font-size: 0.85rem;
}

.press-source {
  background: #28a745;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.press-title {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.press-title a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.press-title a:hover {
  color: #28a745;
}

.press-link {
  color: #007cba;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.press-link:hover {
  color: #005a87;
}

.external-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.press-link:hover .external-icon {
  transform: translate(2px, -2px);
}

/* No Content Messages */
.no-articles-message,
.no-press-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-articles-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.no-articles-message h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.no-press-message p {
  font-size: 1.1rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .articles-hero-title {
    font-size: 2.5rem;
  }
  
  .articles-hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-header-articles h2 {
    font-size: 2rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .press-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .articles-content-section {
    padding: 60px 0;
  }
  
  .scritti-da-noi-section,
  .parlano-di-noi-section {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .articles-hero-section {
    min-height: 50vh;
  }
  
  .articles-hero-title {
    font-size: 2rem;
  }
  
  .articles-hero-subtitle {
    font-size: 1rem;
  }
  
  .article-content,
  .press-content {
    padding: 20px;
  }
}
