/* =========================================================
   EB BLOG PRO - ARTICOLO SINGOLO PULITO
   Solo single-post, non tocca menu / borghi / archivi
========================================================= */
.eb-blog-pro-featured {
  content-visibility: auto;
  contain-intrinsic-size: 800px 500px;
}

.single-post .eb-blog-pro {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  overflow: visible !important;
}

.single-post .eb-blog-pro-hero {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.single-post .eb-blog-pro-breadcrumb,
.single-post .eb-blog-pro-breadcrumb a {
  color: #98172a !important;
  text-decoration: none !important;
  font-size: 14px;
}

.single-post .eb-blog-pro-title {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  color: #111 !important;
}

.single-post .eb-blog-pro-excerpt {
  max-width: 760px;
  margin: 0 auto;
  color: #555 !important;
  font-size: 19px;
  line-height: 1.6;
}

.single-post .eb-blog-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 42px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  overflow: visible !important;
}

.single-post .eb-blog-pro-content {
  min-width: 0;
  overflow: visible !important;
}

.single-post .eb-blog-pro-featured {
  width: 100%;
  height: 360px;
  margin: 0 0 14px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.single-post .eb-blog-pro-featured img,
.single-post .eb-blog-pro-featured-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 24px !important;
}

.single-post .eb-blog-pro-meta {
  color: #777 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin: 10px 0 26px !important;
}

.single-post .eb-blog-pro-entry {
  color: #232323 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.single-post .eb-blog-pro-entry p,
.single-post .eb-blog-pro-entry li {
  color: #232323 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.single-post .eb-blog-pro-entry p {
  margin: 0 0 26px;
}

.single-post .eb-blog-pro-entry h2 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  margin: 34px 0 14px;
  color: #111 !important;
}

.single-post .eb-blog-pro-entry h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin: 30px 0 12px;
  color: #111 !important;
}

.single-post .eb-blog-pro-entry a {
  color: #111 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.single-post .eb-blog-pro-entry img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 34px auto 8px;
  border-radius: 24px;
}

.single-post .eb-blog-pro-entry figure,
.single-post .eb-blog-pro-entry .wp-block-image,
.single-post .eb-blog-pro-entry .wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin: 34px 0 18px !important;
}

.single-post .eb-blog-pro-entry figcaption,
.single-post .eb-blog-pro-entry .wp-caption-text,
.single-post .eb-credito-foto {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #666 !important;
  font-style: italic;
  text-align: center;
}

/* SIDEBAR */
.single-post .eb-blog-pro-sidebar {
  position: static !important;
  top: auto !important;
  align-self: start !important;
  height: auto !important;
  overflow: visible !important;
}

.single-post .eb-blog-pro-widget {
  background: #fff;
  border: 1px solid rgba(152,23,42,.12);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 44px rgba(0,0,0,.045);
}

.single-post .eb-blog-pro-widget h3 {
  margin: 0 0 16px;
  color: #fff !important;
  font-size: 22px;
  line-height: 1.2;
}

.single-post .eb-blog-pro-widget ul {
  margin: 0;
  padding-left: 18px;
}

.single-post .eb-blog-pro-widget li {
  margin: 8px 0;
  color: #232323 !important;
}

.single-post .eb-blog-pro-widget a {
  color: #111 !important;
  text-decoration: none !important;
}

/* SEARCH SIDEBAR */
.single-post .eb-blog-pro-search-form {
  position: relative;
  display: block;
}

.single-post .eb-blog-pro-search-form input[type="search"] {
  width: 100%;
  height: 54px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 64px 0 16px;
  font-size: 16px;
}

.single-post .eb-blog-pro-search-form button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #98172a !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
}

.single-post .eb-blog-pro-search-form button svg {
  width: 18px !important;
  height: 18px !important;
  fill: #fff !important;
}

/* CONDIVISIONE - FIX ICONE ENORMI */
.single-post .eb-blog-pro-share-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 44px auto 36px;
}

.single-post .eb-blog-pro-share-bottom span {
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #333 !important;
  margin-bottom: 4px;
}

.single-post .eb-blog-pro-share-bottom a,
.single-post .eb-blog-pro-share-bottom button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  cursor: pointer;
}

.single-post .eb-blog-pro-share-bottom svg,
.single-post .eb-blog-pro-share-bottom img,
.single-post .eb-blog-pro-share-bottom i {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  fill: #fff !important;
  color: #fff !important;
}

.single-post .eb-share-fb { background: #1877f2 !important; }
.single-post .eb-share-x { background: #000 !important; }
.single-post .eb-share-wa { background: #25d366 !important; }
.single-post .eb-share-tg { background: #2aabee !important; }
.single-post .eb-share-copy { background: #6b7280 !important; }

/* CTA */
.single-post .eb-blog-pro-cta {
  margin: 42px 0;
  padding: 32px;
  text-align: center;
  border-radius: 26px;
  background: #fff7f7;
  border: 1px solid rgba(152,23,42,.16);
}

.single-post .eb-blog-pro-cta h3 {
  margin: 0 0 10px;
  font-size: 26px;
  color: #111 !important;
}

.single-post .eb-blog-pro-cta p {
  margin: 0;
  color: #555 !important;
  font-size: 17px;
}

.single-post .eb-blog-pro-cta a,
.single-post .eb-blog-pro-widget-cta a {
  display: inline-flex;
  margin-top: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #98172a;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

/* RELATED */
.single-post .eb-blog-pro-related {
  margin-top: 46px;
}

.single-post .eb-blog-pro-related h2 {
  margin: 0 0 24px;
  font-size: 34px;
  color: #111 !important;
}

.single-post .eb-blog-pro-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.single-post .eb-blog-pro-related-card {
  color: #111 !important;
  text-decoration: none !important;
}

.single-post .eb-blog-pro-related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  margin-bottom: 12px;
}

.single-post .eb-blog-pro-related-card span {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: #111 !important;
}

/* MOBILE */
@media (max-width: 991px) {
  .single-post .eb-blog-pro {
    padding-left: 26px;
    padding-right: 26px;
  }

  .single-post .eb-blog-pro-layout {
    display: block;
    max-width: 760px;
  }

  .single-post .eb-blog-pro-sidebar {
    position: static !important;
    top: auto !important;
    margin-top: 44px;
  }

  .single-post .eb-blog-pro-title {
    font-size: 34px;
  }

  .single-post .eb-blog-pro-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .single-post .eb-blog-pro {
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 24px;
  }

  .single-post .eb-blog-pro-title {
    font-size: 31px;
  }

  .single-post .eb-blog-pro-excerpt {
    font-size: 18px;
  }

  .single-post .eb-blog-pro-featured {
    height: 230px;
  }

  .single-post .eb-blog-pro-featured,
  .single-post .eb-blog-pro-featured img,
  .single-post .eb-blog-pro-featured-img,
  .single-post .eb-blog-pro-entry img {
    border-radius: 22px !important;
  }

  .single-post .eb-blog-pro-entry,
  .single-post .eb-blog-pro-entry p,
  .single-post .eb-blog-pro-entry li {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .single-post .eb-blog-pro-entry h2 {
    font-size: 28px;
  }

  .single-post .eb-blog-pro-entry h3 {
    font-size: 24px;
  }
}

/* =========================================================
   FIX COLORI TESTI - CONTENUTI, BLOG SIDEBAR, FILTRI
========================================================= */

/* 1) Frecce galleria borghi: bianche */
body.single-village .eb-gallery button,
body.single-village .eb-slider button,
body.single-village .eb-gallery .eb-arrow,
body.single-village .eb-slider .eb-arrow {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.single-village .eb-gallery button *,
body.single-village .eb-slider button *,
body.single-village .eb-gallery .eb-arrow *,
body.single-village .eb-slider .eb-arrow * {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}

/* 2) Sidebar blog: widget articoli/categorie testo nero */
body.archive .sidebar-right a,
body.archive .sidebar-right li,
body.blog .sidebar-right a,
body.blog .sidebar-right li,
body.category .sidebar-right a,
body.category .sidebar-right li,
body.tag .sidebar-right a,
body.tag .sidebar-right li,
body.archive .sidebar-widget a,
body.archive .sidebar-widget li,
body.blog .sidebar-widget a,
body.blog .sidebar-widget li,
body.archive .widget a,
body.archive .widget li,
body.blog .widget a,
body.blog .widget li {
  color: #232323 !important;
  -webkit-text-fill-color: #232323 !important;
}

body.archive .sidebar-right a:hover,
body.blog .sidebar-right a:hover,
body.archive .widget a:hover,
body.blog .widget a:hover {
  color: #8A1726 !important;
  -webkit-text-fill-color: #8A1726 !important;
}

/* =========================================================
   2) BLOG ARCHIVI - WIDGET CATEGORIE TESTO NERO
========================================================= */

body.archive.category .widget_categories a,
body.archive.category .widget_categories li,
body.archive.tag .widget_categories a,
body.archive.tag .widget_categories li,
body.blog .widget_categories a,
body.blog .widget_categories li,
body.archive .st-sidebar .widget_categories a,
body.archive .st-sidebar .widget_categories li {
  color: #232323 !important;
  -webkit-text-fill-color: #232323 !important;
}

body.archive.category .widget_categories a:hover,
body.archive.tag .widget_categories a:hover,
body.blog .widget_categories a:hover,
body.archive .st-sidebar .widget_categories a:hover {
  color: #98172a !important;
  -webkit-text-fill-color: #98172a !important;
}

/* Didascalia attaccata alla foto */
.single-post .eb-blog-pro-entry p[style*="text-align: center"]:has(img) {
  margin: 28px 0 18px !important;
  line-height: 0 !important;
}

.single-post .eb-blog-pro-entry p[style*="text-align: center"]:has(img) img {
  margin: 0 auto 4px !important;
  display: block !important;
}

.single-post .eb-blog-pro-entry p[style*="text-align: center"]:has(img) em,
.single-post .eb-blog-pro-entry p[style*="text-align: center"]:has(img) span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  font-style: italic !important;
  color: #666 !important;
}

@media (min-width: 992px) {
  .single-post .eb-blog-pro-sidebar {
    align-self: start !important;
    overflow: visible !important;
  }

  .single-post .eb-sidebar-sticky {
    position: sticky !important;
    top: 130px !important;
    z-index: 10 !important;
    margin-bottom: 24px !important;
  }

  body.admin-bar.single-post .eb-sidebar-sticky {
    top: 160px !important;
  }
}

/* Titoli sidebar visibili */
.single-post .eb-blog-pro-widget h3 {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* Solo il banner Diventa Partner resta con titolo bianco */
.single-post .eb-blog-pro-widget-cta h3,
.single-post .eb-blog-pro-widget-cta p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* TAG ARTICOLO BLOG - VISIBILI */
.single-post .tag-links,
.single-post .tags-links,
.single-post .post-tags,
.single-post .entry-tags,
.single-post .eb-blog-pro-tags {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 28px 0 20px !important;
  color: #232323 !important;
}

.single-post .tag-links a,
.single-post .tags-links a,
.single-post .post-tags a,
.single-post .entry-tags a,
.single-post .eb-blog-pro-tags a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  background: #f7f1f2 !important;
  border: 1px solid rgba(152,23,42,.18) !important;
  color: #98172a !important;
  -webkit-text-fill-color: #98172a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.single-post .tag-links a:hover,
.single-post .tags-links a:hover,
.single-post .post-tags a:hover,
.single-post .entry-tags a:hover,
.single-post .eb-blog-pro-tags a:hover {
  background: #98172a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}