/* Gastrodomus blog overrides — no webpack needed.
   Brand accent: green #2A9F2D */

:root {
  --gd-green: #2A9F2D;
  --gd-green-dark: #228525;
  --gd-text: #444445;
  --gd-muted: #596066;
  --gd-bg: #F5F5F5;
  --gd-line: #E8E8E8;
}

/* Align archive + UI accents to shop green */
.post-card .container_text_post .categories .ap_category,
.gd-single__cats .ap_category,
body .ap_category {
  background: var(--gd-green) !important;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none !important;
  border: none !important;
}

body a:not(.btn):not(.ap_category):hover {
  color: var(--gd-green);
}

/* ——— Single post ——— */
body.single-post {
  background-color: var(--gd-bg);
}

body.single-post #post.gd-single {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

body.single-post #article {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem 2.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  body.single-post #article {
    padding: 2.25rem 2.5rem 3rem;
  }
}

body.single-post #post-header.gd-single__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
}

body.single-post .gd-single__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.single-post .gd-single__cats .ap_category {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.single-post #post-title h1,
body.single-post .gd-single__title h1 {
  max-width: 100%;
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.25;
  font-weight: 700;
  color: #1d1d1d;
  text-transform: none;
}

body.single-post #post-meta.gd-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--gd-muted);
}

body.single-post #post-meta .date {
  display: inline !important;
  font-weight: 600;
}

body.single-post #post-meta .reading-time {
  position: relative;
  padding-left: 1rem;
}

body.single-post #post-meta .reading-time::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gd-muted);
  transform: translateY(-50%);
}

body.single-post .gd-single__thumb {
  width: 100%;
  margin: 0 0 1.25rem;
  border-radius: 0.85rem;
  overflow: hidden;
}

body.single-post .gd-single__thumb img,
body.single-post .gd-single__thumb-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

body.single-post #share-buttons.gd-single__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gd-line);
  width: 100%;
}

body.single-post #share-buttons .ap_label-share {
  text-transform: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gd-muted);
  margin-right: 0.25rem;
}

body.single-post #share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border-radius: 999px;
  background: var(--gd-bg);
  text-decoration: none !important;
  border: none !important;
}

body.single-post #share-buttons a:hover {
  background: var(--gd-green);
}

body.single-post #share-buttons a i {
  color: var(--gd-text);
  font-size: 0.95rem;
}

body.single-post #share-buttons a:hover i {
  color: #fff;
}

body.single-post #content.gd-single__content {
  max-width: 100%;
  margin: 0 0 2rem;
  color: var(--gd-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

body.single-post #content.gd-single__content h2,
body.single-post #content.gd-single__content h3,
body.single-post #content.gd-single__content .ap_title {
  color: #1d1d1d;
  text-transform: none;
  line-height: 1.3;
}

body.single-post #content.gd-single__content a:not(.btn) {
  color: var(--gd-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.single-post #content.gd-single__content a:not(.btn):hover {
  color: var(--gd-green-dark);
}

body.single-post #content.gd-single__content figure {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

body.single-post #content.gd-single__content img {
  border-radius: 0.75rem;
}

body.single-post #content.gd-single__content ul:not(.slick-dots):not(.gform_fields),
body.single-post #content.gd-single__content ol:not(.slick-dots):not(.gform_fields) {
  padding-left: 1.25rem;
}

body.single-post #content.gd-single__content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gd-green);
  background: #f3faf3;
}

body.single-post #content.gd-single__content blockquote p {
  font-size: 1.15rem;
  margin: 0;
  color: var(--gd-text);
}

/* Related posts section breathing room */
body.single-post #related-posts {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

body.single-post #related-posts .ap_title {
  text-align: left !important;
  margin-bottom: 1.25rem;
  color: #1d1d1d;
}

@media (max-width: 767px) {
  body.single-post #post.gd-single {
    padding-top: 0.75rem;
  }

  body.single-post #article {
    border-radius: 0.75rem;
    padding: 1.1rem 1rem 1.75rem;
  }

  body.single-post #content.gd-single__content {
    font-size: 1rem;
  }
}
/* bust 1790328104 */

/* ——— Shop header/footer embed on blog ——— */
#shop-header {
  position: relative;
  z-index: 100;
  min-height: 0;
}

#shop-header .header-container,
#shop-header #st_header {
  width: 100%;
}

/* Hide product leftovers + catalog search (blog only; shop untouched) */
#shop-header #easymenu_container,
#shop-header #top_extra,
#shop-header #st_mega_menu_wrap,
#shop-header #mobile_categories_slider,
#shop-header #mobile_menu_container,
#shop-header #mobile_search,
#shop-header #search_widget,
#shop-header .search-widget,
#shop-header #rightbar_24,
#shop-header .menu_mobile_bar_tri,
#shop-header a.mobile_bar_tri.menu_mobile_bar_tri {
  display: none !important;
}

/* Icons clustered on the right (search gone → no space-between spread) */
#shop-header .header-flex {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: nowrap;
  gap: 1rem;
}

#shop-header .header-top-right {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 0.35rem;
}

/* Fallback when Smarty still serves unwrapped displayTop siblings */
#shop-header #header_primary .header-flex > a.login {
  margin-left: auto;
}

#shop-header .header-top-right > .login,
#shop-header .header-top-right > #_desktop_quotecart,
#shop-header .header-top-right > #_desktop_cart,
#shop-header #header_primary .header-flex > a.login,
#shop-header #header_primary .header-flex > #_desktop_quotecart,
#shop-header #header_primary .header-flex > #_desktop_cart {
  flex: 0 0 auto;
}

/* Blog category bar under shop chrome (beat theme off-canvas menu CSS) */
#site-masthead.gd-blog-masthead {
  background: #fff;
  border-bottom: 1px solid var(--gd-line, #E8E8E8);
  box-shadow: none;
  min-height: 0;
  height: auto !important;
  overflow: visible !important;
}

#site-masthead.gd-blog-masthead .container_main_menu,
#site-masthead.gd-blog-masthead #header-nav {
  padding: 0;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
}

#site-masthead.gd-blog-masthead .ap_row-menu {
  background: #fff;
  width: 100% !important;
  height: auto !important;
}

#site-masthead.gd-blog-masthead .ap_row-menu > .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.75rem;
}

#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu,
#site-masthead.gd-blog-masthead ul#menu-main-menu.gd-blog-menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.15rem 1.75rem;
  align-items: center;
  margin: 0 !important;
  padding: 0.7rem 0 !important;
  list-style: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
}

#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu > li {
  display: block !important;
  float: none !important;
  width: auto !important;
}

#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu > li > a {
  color: var(--gd-text, #444445) !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 0.35rem 0 !important;
  display: inline-block !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu > li > a:hover,
#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu > li.current-menu-item > a,
#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu > li.current-menu-ancestor > a {
  color: var(--gd-green, #2A9F2D) !important;
  border-bottom-color: var(--gd-green, #2A9F2D) !important;
}

#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu > li.store_link > a {
  color: var(--gd-green, #2A9F2D) !important;
}

#site-masthead.gd-blog-masthead .main_menu.gd-blog-menu .sub {
  display: none !important;
}

#site-masthead.gd-blog-masthead .mobile-layer,
#site-masthead.gd-blog-masthead #menu_mobile_btn {
  display: none !important;
}

/* Breadcrumb */
#breadcrumb_wrap {
  background: var(--gd-bg, #F5F5F5);
  border-bottom: 1px solid var(--gd-line, #E8E8E8);
}

#breadcrumbs {
  margin: 0 auto;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gd-muted, #596066);
  line-height: 1.45;
}

#breadcrumbs a {
  color: var(--gd-text, #444445) !important;
  text-decoration: none !important;
}

#breadcrumbs a:hover {
  color: var(--gd-green, #2A9F2D) !important;
}

#breadcrumbs .breadcrumb_last,
#breadcrumbs [aria-current="page"] {
  color: var(--gd-green, #2A9F2D) !important;
  font-weight: 700;
}

#breadcrumbs .material-icons {
  font-size: 1rem;
  vertical-align: middle;
  color: var(--gd-text, #444445);
}

/* SERVIZIO CLIENTI & co: shop CSS injects Bootstrap blue (#0275d8) after theme red.
   Force blog brand green; shop pages never load this file. */
.btn.btn-primary,
a.btn.btn-primary,
.btn-wrap .btn-primary {
  background-color: var(--gd-green, #2A9F2D) !important;
  border-color: var(--gd-green, #2A9F2D) !important;
  color: #fff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
.btn-wrap .btn-primary:hover {
  background-color: var(--gd-green-dark, #228525) !important;
  border-color: var(--gd-green-dark, #228525) !important;
  color: #fff !important;
}

#shop-footer {
  margin-top: 2rem;
}

#shop-footer .footer-container {
  width: 100%;
}

/* AdvivaPress `p > a` (#c00 + underline) bleeds into shop footer links */
#shop-footer p > a,
#shop-footer a {
  color: inherit !important;
  border-bottom: none !important;
  text-decoration: none !important;
  background: none !important;
}

#shop-footer a:hover {
  color: var(--gd-green, #2A9F2D) !important;
  border-bottom: none !important;
}

/* Blog only: no reviews slider / newsletter block above footer */
#shop-footer #reviews-slider,
#shop-footer .reviews-slider-section,
#shop-footer .block_newsletter,
#shop-footer [data-block-newsletter] {
  display: none !important;
}

body.gd-shop-chrome #site-masthead.static-header #top-bar,
body.gd-shop-chrome #shop-toolbar {
  display: none !important;
}
