/* DT Nick - Ripristino grafico v1.4.0 (9 novembre 2026)
 * Ambito intenzionalmente ristretto a menu principale, carrello/checkout
 * WooCommerce Blocks e footer del content block Uncode esistente.
 * Nessuna modifica JS/iframe di pagamento/consenso.
 */

/* 1) MENU: font usato gia' nei titoli (Bebas Neue) ------------------
 * In Uncode style-custom.css menu family e weight sono generati vuoti.
 * La v1.3 applicava Montserrat, gia' usato nel body, senza differenza visiva.
 * Solo link del MENU PRIMARIO, senza icone carrello, topbar o editor.
 */
body.wp-theme-uncode #masthead .menu-container ul.menu-smart.menu-primary-inner > li.menu-item > a:not(.social-menu-link),
body.wp-theme-uncode #masthead .menu-container ul.menu-smart.menu-primary-inner ul li.menu-item > a:not(.social-menu-link) {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.035em !important;
}
@media (min-width: 960px) {
  body.wp-theme-uncode #masthead .menu-container ul.menu-smart.menu-primary-inner > li.menu-item > a:not(.social-menu-link) {
    font-size: 23px !important;
  }
  body.wp-theme-uncode #masthead .menu-container ul.menu-smart.menu-primary-inner ul li.menu-item > a:not(.social-menu-link) {
    font-size: 20px !important;
  }
}
@media (max-width: 959px) {
  body.wp-theme-uncode #masthead .menu-container ul.menu-smart.menu-primary-inner li.menu-item > a:not(.social-menu-link) {
    font-size: 21px !important;
  }
}

/* 2) CARRELLO / CHECKOUT -------------------------------------------
 * Sfondo pagina di Uncode #010102; testi dei blocchi WooCommerce ereditano
 * colori scuri. Tutte le regole sono limitate alle pagine specifiche.
 */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  color: #f2e2cb !important;
}

/* Titoli esterni ai blocchi, inclusi i blocchi Titolo della pagina. */
body.woocommerce-cart .page-body .post-content > :is(h1,h2,h3),
body.woocommerce-checkout .page-body .post-content > :is(h1,h2,h3) {
  color: #f2e2cb !important;
}

/* Testi e importi dei componenti React (non gli iframe dei gateway). */
body.woocommerce-cart .wp-block-woocommerce-cart :is(
  h1,h2,h3,h4,h5,h6,p,small,strong,em,legend,
  .wc-block-components-title,
  .wc-block-components-product-name,
  .wc-block-components-product-price,
  .wc-block-components-product-metadata,
  .wc-block-components-product-metadata__description,
  .wc-block-cart__totals-title,
  .wc-block-cart-item__prices,
  .wc-block-cart-item__total,
  .wc-block-components-totals-item__label,
  .wc-block-components-totals-item__value,
  .wc-block-components-totals-footer-item__label,
  .wc-block-components-totals-footer-item__value,
  .wc-block-components-formatted-money-amount,
  .wc-block-components-panel__button,
  .wc-block-components-shipping-rates-control__package
),
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(
  h1,h2,h3,h4,h5,h6,p,small,strong,em,legend,
  .wc-block-components-title,
  .wc-block-components-checkout-step__title,
  .wc-block-components-checkout-step__description,
  .wc-block-components-order-summary__button-text,
  .wc-block-components-order-summary-item__description,
  .wc-block-components-order-summary-item__total-price,
  .wc-block-components-product-name,
  .wc-block-components-product-price,
  .wc-block-components-product-metadata,
  .wc-block-components-totals-item__label,
  .wc-block-components-totals-item__value,
  .wc-block-components-totals-footer-item__label,
  .wc-block-components-totals-footer-item__value,
  .wc-block-components-formatted-money-amount,
  .wc-block-components-checkbox__label,
  .wc-block-components-radio-control__label,
  .wc-block-components-radio-control__description,
  .wc-block-components-payment-method-label,
  .wc-block-components-panel__button
) {
  color: #f2e2cb !important;
}

/* Copre anche le intestazioni degli step e la tabella riepilogativa. */
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
  color: #f2e2cb !important;
}

/* Checkbox / radio restano nativi e perfettamente cliccabili. */
body.woocommerce-cart .wp-block-woocommerce-cart :is(input[type=checkbox],input[type=radio]),
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(input[type=checkbox],input[type=radio]) {
  accent-color: #b38335;
}
body.woocommerce-cart .wp-block-woocommerce-cart :is(.wc-block-components-checkbox__label,.wc-block-components-radio-control__label),
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-checkbox__label,.wc-block-components-radio-control__label) {
  color: #f2e2cb !important;
}

/* Link e azioni a testo: contrasto adeguato sul fondo nero. */
body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-cart__submit-button),
body.woocommerce-checkout .wp-block-woocommerce-checkout a:not(.wc-block-components-checkout-place-order-button) {
  color: #e6bc7e !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-cart__submit-button):hover,
body.woocommerce-checkout .wp-block-woocommerce-checkout a:not(.wc-block-components-checkout-place-order-button):hover {
  color: #ffffff !important;
}

/* Campi input su sfondo chiaro: testo scuro e placeholder leggibile.
 * Gli input a scelta radio/checkbox ed elementi nascosti sono esclusi.
 */
body.woocommerce-cart .wp-block-woocommerce-cart :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
  color: #2b241e !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #2b241e;
}
body.woocommerce-cart .wp-block-woocommerce-cart :is(.wc-block-components-text-input,.wc-block-components-combobox) label,
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-text-input,.wc-block-components-combobox) label {
  color: #8b623d !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart :is(input,textarea)::placeholder,
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(input,textarea)::placeholder {
  color: #956b49 !important;
  opacity: 1;
}

/* Pannelli WooCommerce con fondo chiaro: recupero contrasto scuro. */
body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner {
  color: #26221e !important;
}
body.woocommerce-cart .wc-block-components-notice-banner :is(p,span,strong),
body.woocommerce-checkout .wc-block-components-notice-banner :is(p,span,strong) {
  color: #26221e !important;
}
body.woocommerce-checkout .wc-block-components-payment-method__content,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
  color: #26221e !important;
}
body.woocommerce-checkout .wc-block-components-payment-method__content :is(p,small,strong,label,span),
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content :is(p,small,strong,label,span) {
  color: #26221e !important;
}

/* Pulsanti principali, senza interventi su disponibilita', eventi, Stripe. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  color: #ffffff !important;
  background-color: #9b1e18 !important;
  border-color: #9b1e18 !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button :is(span,strong),
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button :is(span,strong) {
  color: #ffffff !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background-color: #7d1813 !important;
}

/* 3) FOOTER ---------------------------------------------------------
 * SOLO content block esistente con le classi demo-footer-promo e
 * demo-homepage-yes, presenti nell'HTML e negli shortcode forniti.
 * L'attuale padding bottom Uncode e' ~144px -> 28.8px (-80%).
 */
footer#colophon .demo-footer-promo > .row.row-parent {
  padding-bottom: 28.8px !important;
}

/* Mappa: stessa altezza dichiarata nell'embed ma width fluida. */
footer#colophon .demo-homepage-yes iframe[src*='google.com/maps/embed'] {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* UNCODE utilizza display:table-row/table-cell per le colonne.
 * Non sovrascriviamo display, float, width, flex o height: la precedente
 * v1.1.0 forzava flex, causando in Chrome il collasso del contenuto.
 * I tre separatori vengono disegnati sullo sfondo della riga-table, la cui
 * altezza e' determinata naturalmente dalla colonna Google Maps.
 */
@media (min-width: 960px) {
  footer#colophon .demo-homepage-yes > .row.row-child {
    background-image:
      linear-gradient(to bottom, #b38335, #b38335),
      linear-gradient(to bottom, #b38335, #b38335),
      linear-gradient(to bottom, #b38335, #b38335);
    background-size: 2px 100%, 2px 100%, 2px 100%;
    background-position:
      calc(25% - 1px) top,
      calc(50% - 1px) top,
      calc(75% - 1px) top;
    background-repeat: no-repeat;
  }
}

/* Tolgo SOLO i vecchi bordi sulle singole celle: essendo altezze diverse,
 * non si allineavano. Il layout Uncode rimane completamente invariato.
 */
footer#colophon .demo-homepage-yes > .row > .wpb_row.row-inner > .wpb_column:nth-child(-n+3) > .uncol > .uncoltable > .uncell {
  border-right: 0 !important;
}

/* Su tablet/mobile le colonne sono impilate: nessun separatore verticale. */
@media (max-width: 959px) {
  footer#colophon .demo-homepage-yes > .row.row-child {
    background-image: none !important;
  }
}


/* 4) ACQUISTO: stesso font dei titoli di Uncode (Bebas Neue) --------
 * Non cambiamo il box del bottone o il suo comportamento WooCommerce.
 * Sono esclusi pulsanti del checkout e tutti i campi di pagamento.
 */
body.wp-theme-uncode.single-product form.cart button.single_add_to_cart_button,
body.wp-theme-uncode .tmb-woocommerce .add-to-cart-overlay a.add_to_cart_button,
body.wp-theme-uncode .tmb-woocommerce .t-entry-extra-add-to-cart a.add_to_cart_button {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.035em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #9b1e18 !important;
  border-color: #9b1e18 !important;
  text-shadow: none !important;
}
body.wp-theme-uncode.single-product form.cart button.single_add_to_cart_button .add_to_cart_text,
body.wp-theme-uncode .tmb-woocommerce a.add_to_cart_button .add_to_cart_text {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.wp-theme-uncode.single-product form.cart button.single_add_to_cart_button:not(:disabled):hover,
body.wp-theme-uncode .tmb-woocommerce .add-to-cart-overlay a.add_to_cart_button:hover,
body.wp-theme-uncode .tmb-woocommerce .t-entry-extra-add-to-cart a.add_to_cart_button:hover {
  background-color: #7d1813 !important;
  border-color: #7d1813 !important;
  color: #ffffff !important;
}
