/* Gloria Di Pietro — Blog (contenuto; header/footer dal tema del sito) */

:root {
  --gdp-cream: #faf7f4;
  --gdp-blush: #e8d5cf;
  --gdp-rose: #c9a89a;
  --gdp-gold: #b8956a;
  --gdp-gold-light: #d4bc94;
  --gdp-charcoal: #2c2c2c;
  --gdp-muted: #6b6560;
  --gdp-white: #ffffff;
  --gdp-serif: "Cormorant Garamond", "Georgia", serif;
  --gdp-sans: "Montserrat", "Segoe UI", sans-serif;
  --gdp-max-width: 1120px;
  --gdp-transition: 0.25s ease;
}

.gdp-blog {
  font-family: var(--gdp-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gdp-charcoal);
  background: var(--gdp-cream);
  -webkit-font-smoothing: antialiased;
}

.gdp-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gdp-blog a {
  color: var(--gdp-gold);
  text-decoration: none;
  transition: color var(--gdp-transition);
}

.gdp-blog a:hover {
  color: var(--gdp-charcoal);
}

.gdp-blog .container {
  width: min(100% - 2rem, var(--gdp-max-width));
  margin-inline: auto;
}

.gdp-blog-empty {
  text-align: center;
  color: var(--gdp-muted);
}

.gdp-blog-pagination {
  margin-top: 2rem;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--gdp-blush) 0%, var(--gdp-cream) 100%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gdp-gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--gdp-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--gdp-muted);
  font-size: 1.05rem;
}

/* Categories filter */
.categories {
  padding: 2rem 0;
  border-bottom: 1px solid var(--gdp-blush);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
}

.category-list a,
.category-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gdp-blush);
  border-radius: 999px;
  color: var(--gdp-muted);
  background: var(--gdp-white);
  transition: all var(--gdp-transition);
}

.category-list a:hover,
.category-list a.active {
  background: var(--gdp-gold);
  border-color: var(--gdp-gold);
  color: var(--gdp-white);
}

/* Blog grid */
.blog-section {
  padding: 3rem 0 4rem;
}

.section-title {
  font-family: var(--gdp-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--gdp-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44, 44, 44, 0.06);
  transition: transform var(--gdp-transition), box-shadow var(--gdp-transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.1);
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gdp-blush);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--gdp-muted);
}

.card-category {
  color: var(--gdp-gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body h2 {
  font-family: var(--gdp-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.card-body h2 a {
  color: var(--gdp-charcoal);
}

.card-body h2 a:hover {
  color: var(--gdp-gold);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--gdp-muted);
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--gdp-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44, 44, 44, 0.08);
  margin-bottom: 3rem;
}

.featured-image {
  min-height: 360px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gdp-gold);
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-family: var(--gdp-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-content h2 a {
  color: var(--gdp-charcoal);
}

.featured-content p {
  color: var(--gdp-muted);
  margin-bottom: 1.5rem;
}

/* Article page */
.article-header {
  padding: 3rem 0 2rem;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.article-header .category-tag {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: var(--gdp-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--gdp-muted);
}

.article-hero-image {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.article-content {
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.article-content h2 {
  font-family: var(--gdp-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-family: var(--gdp-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--gdp-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gdp-white);
  font-family: var(--gdp-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gdp-muted);
}

.article-cta {
  max-width: 680px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gdp-blush), var(--gdp-cream));
  border-radius: 4px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--gdp-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: var(--gdp-muted);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gdp-gold);
  color: var(--gdp-white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--gdp-transition);
}

.btn:hover {
  background: var(--gdp-charcoal);
  color: var(--gdp-white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gdp-gold);
  color: var(--gdp-gold);
}

.btn-outline:hover {
  background: var(--gdp-gold);
  color: var(--gdp-white);
}

/* Related posts */
.related-posts {
  padding: 3rem 0;
  border-top: 1px solid var(--gdp-blush);
  background: var(--gdp-white);
}

.related-posts h2 {
  font-family: var(--gdp-serif);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* About strip */
.about-strip {
  padding: 4rem 0;
  background: var(--gdp-charcoal);
  color: var(--gdp-cream);
  text-align: center;
}

.about-strip h2 {
  font-family: var(--gdp-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-strip p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
  line-height: 1.8;
}

.about-strip .btn {
  background: var(--gdp-gold);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--gdp-muted);
}

.breadcrumb a {
  color: var(--gdp-muted);
}

.breadcrumb a:hover {
  color: var(--gdp-gold);
}

/* Responsive */
@media (max-width: 900px) {
  .gdp-blog .featured-post {
    grid-template-columns: 1fr;
  }

  .gdp-blog .featured-image {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .gdp-blog .hero {
    padding: 3rem 0 2rem;
  }

  .gdp-blog .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress pagination */
.gdp-blog .navigation.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gdp-blog .navigation.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.gdp-blog .navigation.pagination a,
.gdp-blog .navigation.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border: 1px solid var(--gdp-blush);
  border-radius: 2px;
  color: var(--gdp-muted);
}

.gdp-blog .navigation.pagination a:hover {
  background: var(--gdp-gold);
  border-color: var(--gdp-gold);
  color: var(--gdp-white);
}

.gdp-blog .navigation.pagination .current {
  background: var(--gdp-gold);
  border-color: var(--gdp-gold);
  color: var(--gdp-white);
}

.gdp-blog .article-content .wp-block-image {
  margin: 1.5rem 0;
}

.gdp-blog .article-content .wp-block-image img {
  border-radius: 4px;
}
