/* ============================================================
   BLOG — INDEX PAGE
   ============================================================ */

.blog-index-hero {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.blog-index-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(0,120,132,0.06);
  pointer-events: none;
}

.blog-index-label {
  display: inline-block;
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--theme-color, #eb8220);
  background: rgba(235,130,32,0.10);
  border: 1px solid rgba(235,130,32,0.25);
  border-radius: 100px; padding: 5px 16px;
  margin-bottom: 18px;
}
.blog-index-title {
  font-size: clamp(3.2rem, 4.5vw, 5rem);
  font-weight: 800; color: var(--text-color, #121212);
  line-height: 1.1; margin-bottom: 14px;
}
.blog-index-sub {
  font-size: 1.7rem; font-weight: 300;
  color: var(--secondary-text, #888);
  max-width: 560px;
}

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

.blog-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.blog-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  transform: translateY(-3px);
  text-decoration: none;
}
.blog-card-img { width: 100%; height: 210px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder {
  width: 100%; height: 210px;
  background: linear-gradient(135deg, #e8f4f5 0%, #d0e8ea 100%);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder::after {
  content: '';
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,120,132,0.15);
}

.blog-card-body {
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; flex: 1;
}
.blog-card-cat {
  display: inline-block;
  font-size: 1.05rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--theme-color, #eb8220);
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1.7rem; font-weight: 700;
  color: var(--text-color, #121212);
  line-height: 1.3; margin-bottom: 10px;
}
.blog-card-desc {
  font-size: 1.35rem; font-weight: 300;
  color: var(--secondary-text, #888);
  line-height: 1.6; margin-bottom: 16px; flex: 1;
}
.blog-card-date {
  display: block;
  font-size: 1.1rem; color: #b0b0b0; margin-bottom: 16px;
}
.blog-card-btn {
  display: inline-flex; align-items: center;
  font-size: 1.2rem; font-weight: 700;
  padding: 8px 20px; border-radius: 100px;
  background: var(--teal-green, #007884); color: #fff;
  text-decoration: none; align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
}
.blog-card-btn:hover { background: #005f69; transform: translateX(2px); color: #fff; text-decoration: none; }

.blog-empty {
  font-size: 1.8rem; font-weight: 300;
  color: var(--secondary-text, #888);
}

/* ============================================================
   BLOG — SINGLE POST
   ============================================================ */

.blog-post-hero {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  padding: 72px 0 56px;
}
.blog-post-cat {
  display: inline-block;
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--theme-color, #eb8220);
  background: rgba(235,130,32,0.10);
  border: 1px solid rgba(235,130,32,0.25);
  border-radius: 100px; padding: 5px 16px;
  margin-bottom: 20px;
}
.blog-post-title {
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800; color: var(--text-color, #121212);
  line-height: 1.1; margin-bottom: 18px;
}
.blog-post-excerpt {
  font-size: 1.9rem; font-weight: 300;
  color: var(--secondary-text, #888);
  line-height: 1.55; margin-bottom: 24px;
  max-width: 720px;
}
.blog-post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; color: #aaa;
}
.blog-post-meta-sep { opacity: 0.5; }
.blog-post-meta time { color: #aaa; }

.blog-post-cover { padding: 0; margin: 40px 0 0; }
.blog-post-cover-img {
  width: 100%; max-height: 500px;
  object-fit: cover; display: block;
  border-radius: 0 0 20px 20px;
}

.blog-post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}

/* Contenuto generato dal portale */
.contenuto h2 {
  font-size: 2.8rem; font-weight: 700;
  color: var(--text-color, #121212);
  margin: 2.6em 0 0.8em; line-height: 1.2;
}
.contenuto h3 {
  font-size: 2.2rem; font-weight: 600;
  color: var(--teal-green, #007884);
  margin: 2.2em 0 0.6em; line-height: 1.3;
}
.contenuto h4 {
  font-size: 1.8rem; font-weight: 600;
  color: var(--text-color, #121212);
  margin: 1.8em 0 0.5em;
}
.contenuto p {
  font-size: 1.65rem; font-weight: 300;
  color: #444; line-height: 1.82;
  margin-bottom: 1.5em;
}
.contenuto ul,
.contenuto ol {
  font-size: 1.65rem; font-weight: 300;
  color: #444; line-height: 1.82;
  padding-left: 2.2em; margin-bottom: 1.5em;
  list-style: revert;
}
.contenuto li { margin-bottom: 0.5em; }
.contenuto blockquote {
  border-left: 4px solid var(--teal-green, #007884);
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(0,120,132,0.05);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 1.75rem; font-weight: 300;
  color: #555; line-height: 1.65;
}
.contenuto blockquote p { margin-bottom: 0; color: #555; }
.contenuto img {
  max-width: 100%; height: auto;
  border-radius: 12px; margin: 1.8em 0;
  display: block;
}
.contenuto a { color: var(--teal-green, #007884); text-decoration: underline; }
.contenuto a:hover { color: var(--theme-color, #eb8220); }
.contenuto strong { font-weight: 700; }
.contenuto em { font-style: italic; }
.contenuto hr { border: none; border-top: 1px solid #eee; margin: 2.5em 0; }

/* Back link */
.blog-post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.3rem; font-weight: 600;
  color: var(--teal-green, #007884);
  text-decoration: none;
  margin-bottom: 32px;
  transition: gap 0.15s;
}
.blog-post-back:hover { gap: 10px; color: var(--teal-green, #007884); text-decoration: none; }
