/*---- CSS per STAMPA RICETTE OTTIMIZZATO -----------------------------------------------**/
@media print {
  /* Nasconde elementi non necessari */
  footer, nav, aside,
  .sidebar, .adv, .ads, .newsletter,
  .social-share, .breadcrumbs, .comments,
  .related-posts, .popup, .cookie-banner, iframe,#floor-ad-wrapper,
  .tag-buttons-wrap, .rating-container, .pagination-wrap-left,.decrease-quantity,.increase-quantity,
  .header-social-list-box, svg, .ingredienti-actions-placeholder,.ricette-correlate,div[data-elementor-id="38467"],
  #standard_4, #standard_4 div, #standard_4 svg, .profile-highlight,#video-evo-player,#profile-highlight,
  #CONT_T, #CONT_C_1, #CONT_C_2, #CONT_C_3, #CONT_C_4, #CONT_C_5,
  #CONT_C_6, #CONT_C_7, #CONT_C_8, #CONT_C_9, #CONT_C_10, #CONT_C_11, #CONT_C_12,
  #CONT_D_1, #CONT_D_2, #CONT_D_3, #CONT_B,
  .vidcar4s, #T, #C_1, #C_2, #C_3, #C_4, #C_5, #C_6, #C_7,
  #C_8, #C_9, #C_10, #C_11, #C_12, #D_1, #D_2, #D_3, #D_4, #B, #O_FLOORAD,

  /* Blocchi pubblicitari e slot personalizzati */
  .gptslot, .gpt-slot, .gpt-slot-wrap,
  .gptslot.evo-atf, .gptslot.evo-custom3,
  .video-evo-player,
  #EVO_1, #EVO_2, #EVO_3, #EVO_4,
  [class*="evo-custom"],
  [id*="gpt_"],
  [id*="adthrive-"],
  [id*="heymatic-"],
  script[src*="heymatic"],
  div[data-adunitid],
  ins.adsbygoogle,

  /* Affiliazioni e Amazon */
  .amazon-affiliate, [href*="amazon.it"],

  /* Link social */
  a[href*="facebook.com"],
  a[href*="twitter.com"],
  a[href*="pinterest.com"],
  a[href*="whatsapp"],
  a[title*="Condividi"],
  .shared-post-box,
  .single-share,

  /* Extra */
  .sticky-share-bar,
  .scroll-to-top,
  .print-hidden,
  .no-print {
    display: none !important;
    visibility: hidden !important;
  }
.single-sidebar, .header-wrap, .single-related, .footer-wrap, .single-popular, .efoot,
    .entry-bottom, .entry-newsletter, .featured-gallery-wrap, .breadcrumb-wrap,
    .s-cats, .l-shared-sec-outer, .entry-sec, .review-section, .s-ct .widget, .related-sec, .sqview, .t-shared-sec,
    .s-feat-holder img, .single-header-inner:before, .breadcrumb-absolute, .single-header-content:before,
    .featured-embed, .paudio-embed, .pvideo-embed, .tipsy, .top-site-ad, .ruby-table-contents, .single-meta .meta-avatar,
    .smeta-extra, .sfoter-sec, #back-top, .live-blog-interval, .ad-wrap, .gb-btn {
        display: none !important;
    }
  /* Impostazioni generali */
  @page {
    margin: 1cm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
    font-family: serif;
    font-size: 10pt;
    line-height: 1.4;
  }

  /* Rimuove link visibili */
  a[href]:after {
    content: "" !important;
  }

  /* Impedisce interruzioni indesiderate */
  p, h1, h2, h3, h4, h5, h6, img {
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }

  /* Layout 2 colonne per gli step */
  .div-instructions {
    column-count: 2;
    column-gap: 2em;
	column-rule: 1px solid #ddd; /* bordo verticale nero */
  }

  .div-instructions p,
  .div-instructions img {
    break-inside: avoid;
  }

  /* Ottimizzazione immagini */
  .s-ct-inner img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0.5em auto;
    page-break-inside: avoid;
  }

  .s-ct-inner img:first-of-type {
  width: 70% !important;
  height: auto !important;
  display: block;
  margin: 0.5em auto 1em auto !important;
  page-break-inside: avoid;
}

  .s-ct-inner p img:not(:first-of-type) {
    width: 60% !important;
    float: left;
    margin: 0.5em 1em 1em 0;
  }

  /* Riduce margini interni contenitori principali */
  .entry-content,
  .post-content,
  .s-ct-inner,
  .div-instructions {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ottimizza lista ingredienti */
  .ingredienti, .ingredient-list, .recipe-ingredients, .entry-ingredients {
    font-size: 10pt;
    margin-bottom: 1em;
  }
	
	body[data-theme='dark'] {
    --h1-fcolor: #000;
    --h2-fcolor: #000;
    --h3-fcolor: #000;
    --h4-fcolor: #000;
    --h5-fcolor: #000;
    --h6-fcolor: #000;
    --meta-fcolor: #000;
    --body-fcolor: #000;
    --meta-b-fcolor: #000;
    --headline-fcolor: #000;
    --tagline-fcolor: #000;
  }

  .accordion-item-content {
    display: block !important;
    opacity: 1 !important;
  }

  .accordion-item-header {
    opacity: 1 !important;
  }

  .gb-wrap {
    box-shadow: none !important;
    border: 1px solid #aaa;
  }

  body .site-outer {
    margin-top: 0 !important;
  }

  .single-header-content {
    padding: 0;
  }

  .single-header-content *, blockquote *, .smeta-sec * {
    color: #000 !important;
  }
}

