.sg-recipes-page,
.sg-recipe-view-page {
  --sg-bg: #000000;
  --sg-surface: #111111;
  --sg-surface-soft: #1a1a1a;
  --sg-text: #f4f4f4;
  --sg-muted: #c8c8c8;
  --sg-gold: #dabe83;
  --sg-gold-dark: #c3a96f;
  --sg-radius: 18px;
  background: var(--sg-bg);
  color: var(--sg-text);
  padding-bottom: 3rem;
}

.sg-recipes-page a,
.sg-recipe-view-page a {
  color: #dfc884;
}
.recettes-truffe-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:start;
}
.recettes-truffe-grid h2,
.recettes-truffe-grid h3{
  
    line-height: 1.15;
    font-size: 25px;
    color: #DCC584;
    letter-spacing: 1px;
    font-family: montserrat;
    font-weight: 500;
}
.recettes-truffe-grid p{
  margin-bottom:18px;
  line-height:1.6;
}
.recettes-truffe-grid .full{
  grid-column:1 / -1;}
  
.sg-recipes-hero {
  position: relative;
  min-height: 360px;
  background: linear-gradient(145deg, #121212 0%, #030303 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.sg-recipes-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.72) 100%);
}

.sg-recipes-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.sg-recipes-hero-content h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  max-width: 820px;
  padding: 25px;
  color: #d4bc82;
  font-family: "GreatVibes", "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
}

.sg-recipes-hero-content p,
.sg-recipes-hero-description {
  max-width: 820px;
  color: #ffffff;
  font-size: 14px;
  padding-left: 25px;
}

.sg-recipes-breadcrumb {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: #d9c180;
  font-size: 0.86rem;
}

.sg-recipes-breadcrumb a {
  color: #d9c180;
  text-decoration: none;
}

.sg-recipes-breadcrumb a:hover {
  color: #f0dfb6;
  text-decoration: underline;
}

.sg-recipes-main {
  padding-top: 2rem;
}

.sg-recipes-filters {
  display: block;
  margin-bottom: 1.5rem;
  background: transparent;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.1rem;
}

.sg-mobile-filters-toggle {
  display: none;
  appearance: none;
  width: 100%;
  border: 1px solid rgba(206, 184, 125, 0.65);
  background: linear-gradient(180deg, #2b2618 0%, #1f1b12 100%);
  color: #f7e9c7;
  border-radius: 12px;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sg-mobile-filters-toggle:hover {
  border-color: #ceb87d;
  background: linear-gradient(180deg, #3a3220 0%, #2a2418 100%);
  transform: translateY(-1px);
}

.sg-filters-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.sg-filters-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.sg-more-filters-toggle {
  background: transparent;
  border: 1px solid rgba(206, 184, 125, 0.55);
  color: #ceb87d;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.sg-more-filters-toggle:hover {
  border-color: #ceb87d;
  background: rgba(206, 184, 125, 0.09);
}

.sg-filters-advanced {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(206, 184, 125, 0.25);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.sg-filters-advanced.is-hidden {
  display: none;
}

.sg-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sg-filter-item label {
  color: #e8dcc0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.sg-filter-item select,
.sg-filter-item input {
  width: 100%;
  background: linear-gradient(180deg, #202020 0%, #1a1a1a 100%);
  border: 1px solid rgba(206, 184, 125, 0.22);
  color: #fff8e6;
  border-radius: 12px;
  min-height: 46px;
  padding: 0.45rem 0.72rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sg-filter-item select:focus,
.sg-filter-item input:focus {
  border-color: rgba(206, 184, 125, 0.7);
  box-shadow: 0 0 0 2px rgba(206, 184, 125, 0.16);
  outline: none;
}

.sg-search-inline {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.sg-search-inline input {
  flex: 1 1 auto;
}

.sg-search-submit {
  appearance: none;
  border: 1px solid rgba(206, 184, 125, 0.65);
  background: linear-gradient(180deg, #2b2618 0%, #1f1b12 100%);
  color: #f7e9c7;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 0.9rem;
  white-space: nowrap;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sg-search-submit:hover {
  border-color: #ceb87d;
  background: linear-gradient(180deg, #3a3220 0%, #2a2418 100%);
  transform: translateY(-1px);
}

.sg-recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.sg-recipes-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 25px;
  margin-bottom: 25px;
}

.sg-recipes-count {
  margin: 0;
  color: #dfc884;
  font-size: 12px;
  padding: 25px;
}

.sg-recipe-card {
  background: #050505;
  border: 1px solid #ceb87d;
  border-radius: 44px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sg-recipe-card-image-link {
  display: block;
  border-radius: 34px;
  overflow: hidden;
}

.sg-recipe-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #111;
}

.sg-recipe-card-image-placeholder {
  background: linear-gradient(145deg, #1c1c1c 0%, #292929 100%);
}

.sg-recipe-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.45rem 1rem 0.7rem;
  flex-grow: 1;
}

.sg-recipe-card-body h2 {
  margin: 0;
  text-align: center;
  color: #ceb87d;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.4;
  min-height: 68px;
}

.sg-recipe-card-stats {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-self: center;
  width: 100%;
  overflow-x: auto;
}

.sg-recipe-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 20px;
  gap: 0.32rem;
  min-width: 0;
}

.sg-stat-icon-img {
  width: 30px;
  height: auto;
  object-fit: contain;
}

.sg-stat-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.sg-stat-value {
  color: #d9c180;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-recipe-card-button,
.sg-load-more {
  appearance: none;
  border: 0;
  background: var(--sg-gold);
  color: #060606;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 0.62rem 1rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sg-recipe-card-button {
  width: calc(100% - 24px);
  align-self: center;
  margin-top: auto;
  margin-bottom: 0.35rem;
  font-size: 14px;
}

.sg-recipe-card-button:hover,
.sg-load-more:hover {
  background: var(--sg-gold-dark);
  transform: translateY(-1px);
  color: #060606;
  text-decoration: none;
}

.sg-recipes-actions {
  text-align: center;
  margin: 1.5rem 0 0;
}

.sg-recipes-reset {
  display: inline-block;
  margin-left: auto;
  margin-right: 0;
  color: #ceb87d;
  font-size: 14px;
  text-decoration: underline;
  text-align: right;
}

.sg-recipes-reset:hover {
  color: #f0dfb6;
}

.sg-product-recipe-container {
  --sg-gold: #dabe83;
  --sg-gold-dark: #c3a96f;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.sg-product-recipe-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sg-product-recipes-grid {
  display: grid;
  gap: 0.95rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
}

.sg-product-recipe-heading {
  margin: 0 0 0.85rem;
  color: #ceb87d;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
}

.sg-product-recipe-subtitle {
  margin: 0 0 0.95rem;
  color: #e8dcc0;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.sg-recipe-card-product {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sg-recipe-card-product .sg-recipe-card-image {
  height: 260px;
}

.sg-product-recipe-title {
  margin: 0;
  text-align: center;
  color: #ceb87d;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.4;
  min-height: 68px;
}

.sg-recipe-no-result {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: var(--sg-muted);
}

.sg-load-more {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.sg-recipes-bottom-text {
  margin-top: 1.6rem;
  background: var(--sg-surface-soft);
  border: 1px solid #2c2c2c;
  border-radius: var(--sg-radius);
  padding: 1rem;
  color: var(--sg-muted);
}

.sg-recipe-view-wrap {
  padding-top: 1.5rem;
}

.sg-recipe-view-hero {
  position: relative;
  border-radius: var(--sg-radius);
  overflow: hidden;
  border: 1px solid #232323;
  height: clamp(220px, 42vw, 360px);
  max-height: 360px;
}

.sg-recipe-view-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-recipe-view-hero-image-placeholder {
  background: linear-gradient(145deg, #161616 0%, #0a0a0a 100%);
}

.sg-recipe-view-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.sg-recipe-view-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0;
}

.sg-recipe-view-hero-content h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  color: #ffffff;
  padding-left: 50px;
  padding-right: 20px;
  padding-bottom: 150px;
  max-width: 750px;
  font-family: "GreatVibes", "Great Vibes", cursive;
}

.sg-recipe-breadcrumb {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: #d9c180;
  font-size: 14px;
  padding-left: 50px;
  padding-bottom: 50px;
}

.sg-recipe-breadcrumb a {
  color: #d9c180;
  text-decoration: none;
}

.sg-recipe-breadcrumb [aria-current='page'] {
  color: #ffffff;
}

.sg-recipe-breadcrumb a:hover {
  color: #f0dfb6;
  text-decoration: underline;
}

.sg-breadcrumb-sep {
  opacity: 0.65;
}

.sg-recipe-view-short {
  margin-top: 0.8rem;
  color: var(--sg-muted);
  max-width: 980px;
}

.sg-recipe-summary-row {
  display: flex;
  gap: 10px;
}

.sg-recipe-summary-description {
  flex: 0 0 50%;
  max-width: 50%;
}

.sg-recipe-summary-description .sg-recipe-view-short {
  margin: 0;
  padding: 50px;
  max-width: none;
}

.sg-recipe-summary-stats {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sg-meta-item-summary {
  width: 20%;
  min-width: 72px;
  margin: auto 0;
  display: block;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.sg-meta-item-summary .sg-meta-icon-img {
  margin: 0 auto 0.35rem;
  flex: none;
}

.sg-meta-value {
  color: #d9c180;
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
}

.sg-recipe-view-image-wrap {
  margin-top: 1.1rem;
  border-radius: var(--sg-radius);
  overflow: hidden;
  border: 1px solid #232323;
}

.sg-recipe-view-image {
  width: 100%;
 }

.sg-recipe-inline-image-wrap {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.sg-recipe-view-content {
  margin-top: 1.3rem;
  display: grid;
  gap: 1.1rem;
}

.sg-recipe-main-block--flat {
  background: #000000;
  border: 0;
  padding: 0;
}

.sg-recipe-meta-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-recipe-view-section-title {
  color: #d4bc82;
  font-size: 18px;
  margin-bottom: 20px;
}

.sg-recipe-view-section-title-center {
  text-align: center;
}

.sg-recipe-main-block,
.sg-recipe-product-block {
  background: var(--sg-surface);
  border: 1px solid #242424;
  border-radius: var(--sg-radius);
  padding: 1rem;
}

.sg-recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.55rem;
}

.sg-meta-item {
  border: 1px solid #2a2a2a;
  background: #171717;
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin-top: 1.2rem;
  margin-left: 25px;
  margin-bottom: 25px;
}

.sg-meta-icon {
  width: 1.25rem;
  text-align: center;
}

.sg-meta-icon-img {
  width: 50px;
  height: auto;
  object-fit: contain;
  flex: 0 0 50px;
}

.sg-meta-text {
  color: #e8dcc0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sg-recipe-section {
  margin-top: 1.2rem;
  padding: 25px;
  border-radius: 30px;
  margin-bottom: 50px;
}

.sg-recipe-section h2,
.sg-recipe-product-block h2 {
 margin: 0 0 1.65rem;
  font-size: 16px;
}

.sg-recipe-ingredients,
.sg-recipe-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: #e8e8e8;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sg-recipe-ingredients ul,
.sg-recipe-ingredients ol,
.sg-recipe-steps ul,
.sg-recipe-steps ol {
  margin: 0;
  padding-left: 1.15rem;
}

.sg-recipe-ingredients li,
.sg-recipe-steps li {
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.sg-recipe-product-link {
  text-decoration: none;
  display: block;
}

.sg-recipe-product-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  margin-bottom: 0.7rem;
}

.sg-recipe-product-link h3 {
margin: 10px;
  font-size: 1.5rem;
  text-align: center;
}

.sg-recipe-product-price {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.55rem;
  font-weight: 700;
  text-align:center;
  color:#d4bc82;
}

.sg-recipe-product-block .sg-recipe-card-button {
  display: block;
  width: 100%;
  margin: 0.35rem 0 25px;
}

.sg-recipe-product-view-link {
  margin-top: 0.55rem;
  display: inline-block;
  color: var(--sg-gold);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .sg-recipes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .sg-filters-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sg-filters-advanced {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sg-recipe-view-content {
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
    align-items: start;
  }

  .sg-recipe-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .sg-recipes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sg-recipe-view-content {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .sg-mobile-filters-toggle {
    display: inline-block;
  }

  .sg-recipes-filters .sg-filters-primary {
    display: none;
  }

  .sg-recipes-filters.is-mobile-filters-open .sg-filters-primary {
    display: grid;
  }

  .sg-search-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-recipes-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .sg-recipes-reset {
    margin-left: 0;
    margin-bottom: 0.65rem;
    text-align: right;
  }

  .sg-product-recipes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sg-recipe-card-stats {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    align-self: stretch;
  }
  .recettes-truffe-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
  .sg-recipe-stat {
    width: 50%;
    margin: 8px 0;
  }

  .sg-recipe-breadcrumb {
    padding-left: 0;
    padding-bottom: 20px;
    font-size: 13px;
  }

  .sg-recipe-view-hero-content h1 {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 18px;
    max-width: none;
  }

  .sg-recipe-summary-row {
    display: block;
  }

  .sg-recipe-summary-description,
  .sg-recipe-summary-description .sg-recipe-view-short {
    max-width: 100%;
    width: 100%;
  }

  .sg-recipe-summary-description .sg-recipe-view-short {
    padding: 20px 0;
  }

  .sg-recipe-summary-stats {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 0;
  }

  .sg-meta-item-summary {
    width: 24%;
    min-width: 0;
  }

  .sg-recipe-card {
    border-radius: 44px;
    padding: 10px;
  }

  .sg-recipe-card-image-link {
    border-radius: 24px;
  }

  .sg-recipe-card-image {
    height: 170px;
  }

  .sg-recipe-card-body {
    padding: 1rem 0.5rem 0.6rem;
    gap: 0.9rem;
  }

  .sg-recipe-card-body h2 {
    min-height: 56px;
    font-size: 14px;
  }

  .sg-stat-icon-img,
  .sg-stat-icon {
    width: 30px;
    height: auto;
  }

  .sg-stat-value {
    font-size: 14px;
  }
}
