:root {
  --colore-primario: #b53f33; /* Rosso logo */
  --colore-secondario: #9ba3b6; /* Grigio lavanda */
  --colore-accento: #5f6676; /* Grigio scuro */
  --colore-sfondo: #f1f1f1; /* Sfondo chiaro */
  --colore-testo: #2c2c2c; /* Testi scuri */
  --colore-IGC: #b59759;
}

p {
  text-align: justify;
}

/* Blog Post Hero Section */
#blog-post-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  margin-top: 90px;
}

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

#blog-post-hero .hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7)
  );
}

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

#blog-post-hero .hero-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  color: white;
}

#blog-post-hero .hero-content h1 {
  font-size: calc(var(--font-size-base) * 4.375); /* 70px */
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}

/* Blog Post Content Section */
.blog-post-content {
  padding: 4rem 2rem;
  background-color: white;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  color: var(--colore-accento);
  font-size: var(--font-size-md);
}

.post-meta .date,
.post-meta .author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

article {
  margin-bottom: 3rem;
}

article h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  margin: 2rem 0 1rem;
  color: var(--colore-testo);
}

article p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  color: var(--colore-testo);
  margin-bottom: 1.5rem;
}

/* Share Section */
.share-section {
  border-top: 1px solid var(--colore-secondario);
  padding-top: 2rem;
  margin-top: 2rem;
}

.share-section h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
  color: var(--colore-testo);
}

.social-share {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--colore-sfondo);
  color: var(--colore-accento);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--colore-primario);
  color: white;
}

/* Related Posts Section */
.related-posts {
  padding: 4rem 2rem;
  background-color: var(--colore-sfondo);
}

.related-posts h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: 2rem;
  color: var(--colore-testo);
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 1100px) {
  #blog-post-hero .hero-content h1 {
    font-size: calc(var(--font-size-base) * 3.75); /* 60px */
  }

  article h2 {
    font-size: var(--font-size-2xl);
  }

  article p {
    font-size: var(--font-size-md);
  }
}

@media (max-width: 768px) {
  #blog-post-hero .hero-content h1 {
    font-size: calc(var(--font-size-base) * 3); /* 48px */
  }

  .blog-post-content {
    padding: 2rem 1rem;
  }

  article h2 {
    font-size: var(--font-size-xl);
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  #blog-post-hero .hero-content h1 {
    font-size: calc(var(--font-size-base) * 2.5); /* 40px */
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  article h2 {
    font-size: var(--font-size-lg);
  }

  .share-section h3 {
    font-size: var(--font-size-md);
  }
}

.blog-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
    margin-top: 1rem;
  }
}

article a {
  text-decoration: none;
  color: var(--colore-testo);
  text-decoration: underline;
}

article a:hover {
  text-decoration: underline;
  color: var(--colore-primario);
}
