/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

.sgvs-brown.wpb_row .row-bg:before{
    content:'';
    background-image: url('/wp-content/uploads/2026/10/sgvs.png');
    position: absolute;
    top:0;
    right: 0;
    width:100%;
    height: 220px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.sgvs-brown.reverse.wpb_row .row-bg:before{
    transform: scaleX(-1);
    right: auto;
    left:0
}


.sf-menu > li ul {
    width: 25em;
}

/* Contenitore: eredita il font già configurato nel sito */
.lv-prurito {
  --lv-ocra: #b67532;
  --lv-oliva: #799800;
  --lv-bordo: #e8e5df;
  --lv-fondo: #f7f6f2;

  width: 100%;
  margin: 32px 0;
  font-family: inherit;
  color: inherit;
}

.lv-prurito .lv-prurito__title {
  margin: 0 0 12px;
  color: var(--lv-ocra);
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.lv-prurito .lv-prurito__intro {
  margin: 0 0 18px;
  padding: 0;
  line-height: 1.65;
}

.lv-prurito .lv-prurito__soglia {
  margin: 0 0 24px;
  padding: 10px 16px;
  border-left: 3px solid var(--lv-oliva);
  background: var(--lv-fondo);
  line-height: 1.5;
}

/* Lo scorrimento resta confinato alla tabella sui piccoli schermi */
.lv-prurito .lv-prurito__scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--lv-bordo);
  border-radius: 6px;
}

.lv-prurito .lv-prurito__scroll:focus-visible {
  outline: 2px solid var(--lv-oliva);
  outline-offset: 4px;
}

body .lv-prurito table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  font-family: inherit;
  font-size: inherit;
}

body .lv-prurito table th,
body .lv-prurito table td {
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--lv-bordo);
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

body .lv-prurito table thead th {
  background: var(--lv-fondo);
  font-weight: 700;
}

body .lv-prurito table tbody th {
  font-weight: 600;
}

body .lv-prurito table tr > :first-child {
  width: 16%;
  text-align: center;
}

body .lv-prurito table tr > :nth-child(2) {
  width: 30%;
}

body .lv-prurito table tbody tr:last-child > * {
  border-bottom: 0;
}

/* Verde più scuro per mantenere leggibili le percentuali */
.lv-prurito .lv-prurito__quota {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  background: #f0f3e4;
  color: #526600;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lv-prurito {
    margin: 24px 0;
  }

  .lv-prurito .lv-prurito__title {
    font-size: 25px;
  }

  body .lv-prurito table th,
  body .lv-prurito table td {
    padding: 14px 16px;
  }
}


.steps-number {
  position: relative;
  overflow: visible;
}

.steps-number .number {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;

  border: 1px solid #ecbb89;
  border-radius: 50%;
  background: #b67532;
  color: #fff;

  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.steps-number .number p {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

/* Responsive audit: templates without native per-element wrapping controls. */
body.page-id-3 .main-content a,
body.page-id-933 .main-content a,
body.search .page-title {
  overflow-wrap: anywhere;
}

/* Salient's image transform controls stop at 999px; retain the wide desktop composition. */
@media (min-width: 1000px) and (max-width: 1299px) {
  body:is(.page-id-960, .page-id-951, .page-id-915, .page-id-923, .page-id-502) .img-with-aniamtion-wrap:is(.translate_x_desktop_-100px, .translate_x_desktop_-200px, .translate_x_desktop_100px) {
    transform: none !important;
  }

  body:is(.page-id-960, .page-id-951, .page-id-915, .page-id-923, .page-id-502) .img-with-aniamtion-wrap:is(.translate_x_desktop_-100px, .translate_x_desktop_-200px, .translate_x_desktop_100px) .inner {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* WooCommerce Cart Block exposes no native column sizing control at 320px. */
@media (max-width: 359px) {
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    column-gap: 8px;
  }

  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
    padding-right: 8px;
  }

  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
    grid-column: 3;
  }
}

/* The symptom introduction leaves the dark hero below the tablet breakpoint. */
@media (max-width: 999px) {
  body.home .lupovet-home-symptom-intro[data-cfc],
  body.home .lupovet-home-symptom-intro h2,
  body.home .lupovet-home-symptom-intro p {
    color: #111 !important;
  }
}

/* Keep Global Section footer links in the surrounding text colour. */
body .footer a,
body .footer a:visited,
body .footer a:hover,
body .footer a:focus,
body .footer a:active {
  color: inherit !important;
}

/* Figma footer: copyright and original payment marks below the existing columns. */
body .footer .lupovet-footer-bottom {
  margin-top: 46px;
  margin-bottom: 0;
  background-image: url('assets/images/footer/footer-divider.svg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 1px;
}

body .footer .lupovet-footer-copyright p {
  margin: 0;
  color: inherit;
}

body .footer .lupovet-footer-payments .img-with-aniamtion-wrap {
  flex: 0 0 auto;
  margin: 0;
}

body .footer img.lupovet-footer-payment-logo {
  display: block;
  margin: 0;
  object-fit: cover;
}

body .footer img.lupovet-footer-payment-mastercard { width: 66px; height: 40px; }
body .footer img.lupovet-footer-payment-discover { width: 72px; height: 12px; }
body .footer img.lupovet-footer-payment-visa { width: 70px; height: 22px; }
body .footer img.lupovet-footer-payment-paypal { width: 104px; height: 28px; }
body .footer img.lupovet-footer-payment-american-express { width: 83px; height: 26px; }

@media (max-width: 999px) {
  body .footer .lupovet-footer-bottom > .row_col_wrap_12_inner {
    flex-wrap: wrap;
  }

  body .footer .lupovet-footer-bottom > .row_col_wrap_12_inner > .child_column {
    width: 100%;
    margin: 0;
  }

  body .footer .lupovet-footer-copyright-column {
    margin-bottom: 24px !important;
    text-align: center;
  }
}

/* Figma footer: contact details remain editable in the native text element. */
body .footer .lupovet-footer-contacts ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .footer .lupovet-footer-contacts li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 17px;
  align-items: start;
  min-height: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 23px;
}

body .footer .lupovet-footer-contacts li > span {
  display: block;
  padding-top: 2px;
  overflow-wrap: anywhere;
}

body .footer .lupovet-footer-contacts .lupovet-footer-contact-icon {
  display: block;
  margin: 0;
}

body .footer .lupovet-footer-contacts .lupovet-footer-contact-email {
  margin-top: 4px;
}
