/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */
/* Contenitore stelle + testo */
/* Rating sotto il titolo – FIX DEFINITIVO */
.product-rating-summary .rating-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Stelle */
.product-rating-summary .grade-stars {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  height: 18px;
}

/* Numero voto */
.product-rating-summary .rating-value {
  font-weight: 600;
}

/* Numero recensioni */
.product-rating-summary .rating-text {
  font-size: 14px;
  color: inherit;
}
.product-rating-summary .grade-stars i,
.product-rating-summary .grade-stars .material-icons {
  line-height: 1;
  vertical-align: middle;
}

.product-brand-custom {
  display: inline-block!important;
  background-color: #000!important;
  color: #fff!important;
  padding: 4px 12px!important;
  border-radius: 30px!important;
  font-size: 14px!important;
  margin-bottom: 10px!important;
  line-height: 1,5;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
/* per avviso h1 non dichiarata su google speedsinghs page */
section h1,
article h1,
aside h1,
nav h1 {
  font-size: 2rem; /* oppure 32px, o quello che preferisci */
}
/* Hover (opzionale) */
.product-brand-custom:hover {
  background-color: #313131;
}

/* Responsive su schermi piccoli */
@media (max-width: 600px) {
  .product-brand-custom {
    font-size: 13px!important;
    padding: 4px 10px!important;
    border-radius: 25px!important;
    line-height: 1.4!important;
  }
}
@media (min-width: 769px) {
#product .blockreassurance-product {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 2rem !important;
}

/* Elementi singoli */
#product .blockreassurance-product .item {
  flex: 1 1 22% !important;
  text-align: center !important;
  min-width: 180px !important;
}

#product .block-reassurance-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
}
.klarna-message {
  margin-top: 6px;
  border: 1px solid #1c1c1c73;
  width: fit-content;
}
.urth-cms-page,
.urth-cms-page * {
  box-sizing: border-box;
}

.urth-cms-page {
  overflow-x: hidden;
}

.urth-nav {
  border-collapse: separate;
  border-spacing: 8px;
}

.urth-nav-link,
.urth-button {
  display: block !important;
}

.urth-card {
  height: 100%;
  border-collapse: collapse;
}

.urth-card-image {
  display: block;
  margin: 0 auto;
}

.urth-actions {
  table-layout: fixed;
}

@media (max-width: 991px) {
  .urth-cms-page {
    padding: 28px 10px 44px !important;
  }

  .urth-cms-page h1 {
    font-size: 38px !important;
    line-height: 1.08 !important;
  }

  .urth-card-table,
  .urth-card-table > tbody,
  .urth-card-table > tbody > tr {
    display: block !important;
    width: 100% !important;
  }

  .urth-card-cell {
    display: inline-block !important;
    width: 50% !important;
    vertical-align: top !important;
    padding: 7px !important;
  }

  .urth-card-cell-empty {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .urth-cms-page {
    padding: 22px 8px 38px !important;
  }

  .urth-hero {
    padding-bottom: 22px !important;
    margin-bottom: 18px !important;
  }

  .urth-cms-page h1 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
  }

  .urth-cms-page p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .urth-nav,
  .urth-nav > tbody,
  .urth-nav > tbody > tr {
    display: block !important;
    width: 100% !important;
  }

  .urth-nav {
    margin-bottom: 24px !important;
    max-width: none !important;
    border-spacing: 0 !important;
  }

  .urth-nav-item {
    display: inline-block !important;
    width: 50% !important;
    padding: 5px !important;
    vertical-align: top !important;
  }

  .urth-nav-link {
    min-height: 46px;
    padding: 12px 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .urth-section {
    margin-top: 26px !important;
  }

  .urth-section-head h2 {
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  .urth-section-head td:last-child {
    width: 96px !important;
    font-size: 11px !important;
  }

  .urth-card-cell {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
  }

  .urth-card-media {
    height: auto !important;
    padding: 12px !important;
  }

  .urth-card-image {
    max-width: 230px !important;
  }

  .urth-card-body {
    padding: 13px !important;
  }

  .urth-specs td:first-child {
    width: 74px !important;
  }

  .urth-actions,
  .urth-actions > tbody,
  .urth-actions > tbody > tr,
  .urth-actions td {
    display: block !important;
    width: 100% !important;
  }

  .urth-actions td {
    padding: 0 0 7px 0 !important;
  }

  .urth-button {
    width: 100% !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 380px) {
  .urth-cms-page h1 {
    font-size: 30px !important;
  }

  .urth-nav-item {
    width: 100% !important;
  }

  .urth-section-head,
  .urth-section-head > tbody,
  .urth-section-head > tbody > tr,
  .urth-section-head td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }

  .urth-section-head td:last-child {
    padding-top: 4px !important;
  }
}

/* PageSpeed accessibility: scoped contrast and footer touch-target corrections. */
.btn.add-to-cart,
.btn.post-product-comment {
  color: #fff !important;
  background-color: #cd3638 !important;
  border-color: #cd3638 !important;
}

.btn.add-to-cart:hover,
.btn.add-to-cart:focus-visible,
.btn.post-product-comment:hover,
.btn.post-product-comment:focus-visible {
  background-color: #b52c30 !important;
  border-color: #b52c30 !important;
}

.product-miniature .product-availability .available,
.product-miniature .product-availability .last_remaining_items {
  color: #fff !important;
  background-color: #38794f !important;
}

#product a.whatsapp-btn {
  color: #fff !important;
  background-color: #12843d !important;
}

#product a.whatsapp-btn:hover,
#product a.whatsapp-btn:focus-visible {
  background-color: #0b6930 !important;
}

#product .product-tabs .nav-link.active {
  color: #fff !important;
  background-color: #cd3638 !important;
}

#product .product-tabs .nav-link:not(.active) {
  color: #595959 !important;
  background-color: #fbfbfb !important;
  opacity: 1 !important;
}

#product .product-tabs .nav-link > span {
  color: inherit !important;
}

.view-all-link > a {
  color: #0961ce;
}

#footer a[href^="mailto:"],
#footer a[href^="mailto:"] *,
#footer #gdpr_consent a {
  color: #84b9ff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#footer .footer-about-us a[href*="wa.me/"],
#footer .footer-about-us a[href*="wa.me/"] * {
  color: #82e6aa !important;
}

#footer .footer-about-us .mastro-footer-whatsapp-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url("/img/cms/pngegg(1).png") center / contain no-repeat;
}

/* Reuse the original icon silhouette, tinted exactly like the adjacent link. */
@supports (mask-image: url("/img/cms/pngegg(1).png")) or (-webkit-mask-image: url("/img/cms/pngegg(1).png")) {
  #footer .footer-about-us .mastro-footer-whatsapp-icon {
    background: currentColor;
    -webkit-mask: url("/img/cms/pngegg(1).png") center / contain no-repeat;
    mask: url("/img/cms/pngegg(1).png") center / contain no-repeat;
  }
}

#footer .footer-about-us a[href*="wa.me/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin: 3px 8px 3px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn.add-to-cart:focus-visible,
#product a.whatsapp-btn:focus-visible,
#footer a:focus-visible {
  outline: 3px solid #0961ce;
  outline-offset: 3px;
}

html body #iubenda-cs-banner .iubenda-cs-container .iubenda-cs-content .iubenda-cs-rationale .iubenda-banner-content h2#iubenda-cs-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Desktop-only header controls, also usable with keyboard navigation. */
@media (min-width: 768px) {
  #header .account-link > ul > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
  #header .mini-cart-text > .text { color: #595959; }
  #amegamenu .anav-top > .amenu-item > .amenu-link > sup {
    color: #fff;
    background-color: #007e65 !important;
  }
}

/* An opaque surface avoids contrast changing with the page behind the CMP. */
html body #iubenda-cs-banner .iubenda-cs-container .iubenda-cs-content,
html body #iubenda-cs-banner .iubenda-cs-rationale,
html body #iubenda-cs-banner .iubenda-banner-content,
html body #iubenda-cs-banner .iubenda-granular-controls-container {
  background-color: #707070 !important;
}
