/* Componenti: homepage, prodotti, guide categoria e relativi override responsive.
 * Caricare dopo custom.css, prima di custom-pages.css. */

/* PRODUCT INFO BLOCKS */

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.product-info-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 4px solid var(--verde);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  height: 100%;
}

.product-info-card--payments {
  border-top-color: var(--giallo);
}

.product-info-card__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-info-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  text-align: left;
  background: #f4f9fb;
  border-bottom: 1px solid #e5edf0;
  box-sizing: border-box;
}

.product-info-card--payments .product-info-card__meta {
  background: #fff8ee;
  border-bottom-color: #f3e6d3;
}

.product-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid rgba(77, 151, 174, 0.22);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-info-card--payments .product-info-card__icon {
  border-color: rgba(255, 167, 54, 0.3);
}

.product-info-card__icon img {
  max-width: 26px;
  max-height: 26px;
  width: auto;
  height: auto;
}

.product-info-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--nero);
}

.product-info-card__content {
  display: block;
  padding: 0;
  flex: 1;
}

.product-info-card__list {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.product-description .product-info-card__list li,
.product-info-card__list li {
  display: block;
  padding: 11px 18px;
  margin: 0;
  border-bottom: 1px solid #efefef;
  color: #5f5f5f;
  font-size: 0.78rem;
  line-height: 1.4;
}

.product-info-card__list li::before {
  display: none !important;
}

.product-info-card__list strong,
.product-info-card__list span {
  display: block;
}

.product-info-card__list strong {
  margin-bottom: 2px;
  color: var(--nero);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-info-card__content p {
  margin: 0;
  padding: 11px 18px 13px;
  color: #676767;
  font-size: 0.75rem !important;
  line-height: 1.45;
}

.product-info-card__content strong {
  color: #3f3f3f;
  font-weight: 700;
}

.product-info-card__content a {
  color: var(--verde);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a.label.btn.btn-secondary {
  background-color: white;
  margin-top: 20px;
}

a.label.btn.btn-secondary:hover {
  border: 3px solid #f6f6f6;
}

.cart-detailed-actions .btn-primary {
  background: var(--giallo);
}

.cart-detailed-actions .btn-primary:hover {
  background: var(--verde);
  border: 3px solid var(--verde) !important;
}

.js-address-form .clearfix .btn-primary,
.delivery-options-list .clearfix .btn-primary {
  background: var(--giallo) !important;
  color: white;
}

.js-address-form .clearfix .btn-primary:hover,
.delivery-options-list .clearfix .btn-primary:hover {
  background: var(--verde) !important;
  border: 3px solid var(--verde) !important;
}

.js-payment-confirmation .btn-primary.disabled {
  background: #f6f6f6;
}

.js-payment-confirmation .btn-primary {
  background: var(--giallo);
  color: white;
}

.js-payment-confirmation .btn-primary:hover {
  background: var(--verde) !important;
  border: 3px solid var(--verde) !important;
}

@media (max-width: 1199px) {
  .product-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-info-grid {
    gap: 14px;
    margin-top: 20px;
  }

  .product-info-card__meta {
    padding: 14px 16px 12px;
  }

  .product-info-card__icon {
    width: 38px;
    height: 38px;
  }

  .product-info-card__icon img {
    max-width: 24px;
    max-height: 24px;
  }

  .product-info-card__title {
    font-size: 1rem;
  }

  .product-description .product-info-card__list li,
  .product-info-card__list li,
  .product-info-card__content p {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.block-promo .cart-summary-line .label,
.block-promo .promo-name {
  font-weight: 400;
}

.cart-grid-right .promo-discounts {
  text-align: left;
}

.cart-grid-right .promo-discounts .cart-summary-line .label .code {
  color: #232323 !important;
}

#product .col-md-7 .product-information .product-description span {
  color: #232323 !important;
}

.block-promo .promo-input+button {
  margin-left: 10px;
}

label .color {
  width: 32px;
  height: 32px;
  border-radius: 16px;
}

.product-discounts>.table-product-discounts thead tr th {
  padding: 0.625rem 0.625rem !important;
}

.menu-di-natale .ets_mm_url .mm_menu_content_title {
  color: red;
}

.page-authentication #content,
.page-registration #content {
  max-width: 100% !important;
}

/* Contenitore generale banner */
.info-banner-aziende {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 4px;
  background-color: #e1f5f2;
  /* verde molto chiaro, simile allo screenshot */
  border: 1px solid #c5e4df;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 25px;
}

.icon-azienda-info {
  position: relative;
  width: 85px;
  height: 85px;
  background: #d9f0ec;
  /* sfondo verde chiarissimo */
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.building {
  position: relative;
  width: 40px;
  height: 55px;
  background: #198f84;
  /* colore palazzo */
  border-radius: 2px;
}

.window {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 1px;
}

/* posizioni finestre */
.w1 {
  top: 8px;
  left: 8px;
}

.w2 {
  top: 8px;
  left: 18px;
}

.w3 {
  top: 8px;
  left: 28px;
}

.w4 {
  top: 20px;
  left: 8px;
}

.w5 {
  top: 20px;
  left: 18px;
}

.w6 {
  top: 20px;
  left: 28px;
}

.w7 {
  top: 32px;
  left: 18px;
}

/* finestra singola centrale */
.w8 {
  top: 32px;
  left: 8px;
}

/* se vuoi la simmetria, sennò rimuovi */

/* cerchio con "i" */
.icon-info {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  background: #198f84;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Testi a destra */
.info-banner-testo h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
}

.info-banner-testo p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #444444;
}

/* Responsive: su schermi piccoli stack in colonna */
@media (max-width: 640px) {
  .info-banner-aziende {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-banner-ico {
    width: 56px;
    height: 56px;
  }
}

.payment-option:has([data-module-name="IgfsPaymentMethod"]) img {
  max-height: 32px !important;
  height: 32px !important;
}

#w-more {
  display: none !important;
}

#wa_vetrina-prodotti-best-seller .products .product {
  width: 20%;
}

/* NEW HOME SLIDER AND BLOCKS 50/50 + RESPONSIVE */

.page_home, .page_home_gallery{
  margin-top: 40px;
}

.new-home-slider-and-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.new-home-slider-and-block .slider-column {
  flex: 0 0 calc(50% - 10px);
  width: calc(50% - 10px);
}

.new-home-slider-and-block .banners-column {
  flex: 0 0 calc(50% - 10px);
  width: calc(50% - 10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  grid-template-rows: auto auto;
}

/* 
 * Layout: 1 top wide, 2 bottom side-by-side
 * Assumes 3 direct children in banners-column
 */
.new-home-slider-and-block .banners-column>*:nth-child(1) {
  grid-column: 1 / -1;
  width: 100%;
}

.new-home-slider-and-block .banners-column>*:nth-child(2),
.new-home-slider-and-block .banners-column>*:nth-child(3) {
  grid-column: span 1;
}

#header .header-top {

  -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);

  height: var(--header-height);

  padding: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: #fff;
}

#header .header-top>.container {
  width: 100%;
}

@media (max-width: 1200px) {
  #header .header-top {
    height: 130px !important;

    display: block !important;
  }
}

.carousel .carousel-inner {
  height: auto !important;
  border-radius: 4px;
}

.carousel,
.carousel-inner {
  margin-bottom: 0px;
}

@media (max-width: 991px) {
  .new-home-slider-and-block {
    display: block !important;
  }

  .new-home-slider-and-block .banners-column {
    display: none;
  }

  .new-home-slider-and-block .slider-column {
    flex: 0 0 100%;
    width: 100%;
  }

  #index #wrapper {
    padding-top: 0px !important;
  }

}

@media (max-width: 991px) {

  .new-home-slider-and-block .slider-column,
  .new-home-slider-and-block .banners-column {
    flex: 0 0 100%;
    width: 100%;
  }
}

.new-home-slider-and-block-mobile {
  display: none;
}

.banner-box {
  min-height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.banner-box.banner-top {
  background-image: url("https://www.chartare.com/img/home/banner-top-shopper-buste-sacchetti.jpg");
  background-size: cover;
  background-position: center;
}

.banner-box.banner-top--en {
  background-image: url("/img/home/shopper-top.jpg");
}

.banner-box.banner-top p {
  color: black;
  position: relative;
  width: auto;
  font-size: 24px;
  font-weight: 500;
  height: auto;
  background: white;
  padding: 8px;
  border-radius: 5px;
}

.banner-box.banner-bottom-left {
  background-image: url("https://www.chartare.com/img/home/banner-sinistro-scatole-confezioni-natale.jpg");
  background-size: cover;
  background-position: center;
}

.banner-box.banner-bottom-left--en {
  background-image: url("/img/home/box-left.jpg");
}

.banner-box.banner-bottom-left p {
  color: black;
  position: relative;
  width: auto;
  font-size: 24px;
  font-weight: 500;
  height: auto;
  background: white;
  padding: 8px;
  border-radius: 5px;
}

.banner-box.banner-bottom-right {
  background-image: url("https://www.chartare.com/img/home/banner-shopper-destra-natale.jpg");
  background-size: cover;
  background-position: center;
}

.banner-box.banner-bottom-right--en {
  background-image: url("/img/home/custom-right.jpg");
}

.banner-box.banner-bottom-right p {
  color: black;
  position: relative;
  width: auto;
  font-size: 24px;
  font-weight: 500;
  height: auto;
  background: white;
  padding: 8px;
  border-radius: 5px;
}

.home-info-section {
  margin-bottom: 50px;
}

/* Header Banner Messages */
.header-banner > .container {
  width: 100%;
  max-width: none;
}

.header-banner .header-banner-messages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 0;
  margin-left: 85px;
}

.header-banner .header-message-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 70px;
  padding: 10px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  width: 100%;
}

.header-banner .header-message-item:last-child {
  border-right: 0;
}

.header-banner .header-message-item i {
  flex: 0 0 auto;
  font-size: 25px;
  color: #fff;
}

.header-banner .header-message-text {
  min-width: 0;
}

.header-banner {
  background-color: #29343d;
}

@media (max-width: 1199px) {
  .header-banner > .container {
    display: flex;
    align-items: center;
  }

  .header-banner #header-reviews {
    flex: 0 0 90px;
  }

  #header-reviews > div > a,
  #header-reviews > div > span {
    position: static !important;
    width: 90px !important;
  }

  .header-banner .header-banner-messages {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    padding: 0;
    touch-action: pan-y;
  }

  .header-banner .header-banner-messages .header-message-item {
    grid-area: 1 / 1;
    justify-content: center;
    border-right: 0;
    width: 100%;
    min-height: 74px;
    padding: 10px 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .header-banner .header-banner-messages .header-message-item.is-mobile-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-banner .header-banner-messages .header-message-item {
    transition: none;
  }
}

.header-banner a {
    color: white !important;
}

.header-banner a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* NUOVA PAGINA PRODOTTO */

.only-desktop {
  display: block; /* o flex, grid... quello che ti serve */
}

@media (max-width: 991px) {
  .only-desktop {
    display: none !important;
  }
}

.btn-tablecombz-scroll{
  background: var(--giallo);
  border: 3px solid var(--giallo) !important;
}

.btn-tablecombz-scroll:hover {
    background: var(--verde);
    border: 3px solid var(--verde) !important;
}

.confezione {
    font-size: 16px;
    color: black !important;
    font-weight: 700;
}

span.unitario {
  font-size: 20px;
  color: var(--nero);
}
.wa_form-acquisto .product-prices {
  margin-bottom: 30px 0px !important;
}

.wa_form-acquisto .product-unit-price {
  margin-bottom: 5px !important;
}

.qty .control-label {
  width: auto !important;
}

.product-add-to-cart {
  margin-bottom: 20px;
}

.combinazioni-assenti .product-add-to-cart {
  margin-top: 20px;
}

.combinazioni-presenti .product-add-to-cart {
  display: inline-flex;
}

.product-description h3 {

  font-weight: 500;
  margin-bottom: 20px;
}

.product-description {
  font-size: 16px;
  line-height: 1.5;

  background-color: white;
  border-radius: 8px;
}

.new-descrizione.product-description {
  padding: 20px;
}

.new-descrizione {
  display: block;
}

.old-descrizione {
  display: none;
}

.product-reference {
  width: 100%;
}

.page-product h1 {
  width: 100%;
  text-transform: uppercase;
}

.product-format-note {
  width: 100%;
  margin: -15px 0 15px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 500px) {

  .new-descrizione {
    display: none;
  }

  .old-descrizione {
    display: block;
  }

  .wa_prezzo-cta {
    padding: 0px !important;
  }

  span.current-price-value {
    font-size: 18px !important;
  }

  span.unitario {
    font-size: 16px !important;
  }

  .confezione {
    font-size: 14px !important;
  }
}

/* WA_CUSTOM: Refactoring product-prices.tpl */
.wa-black-friday-label {
  display: none;
  background-color: black;
  padding: 5px;
  width: fit-content;
  color: white;
  font-size: 20px;
  border-radius: 5px;
  border: 1px solid red;
}

/* WA_CUSTOM: Fix image background */
body#product main section#wrapper div div div#content-wrapper div div section#content div div a#MagicZoomPlusImageMainImage:not(.mz-no-rt-width-css) > .mz-figure:not(.mz-no-rt-width-css) > img {
  background-color: white;
}

/* WA_CUSTOM: Fix wrapper padding */
:is(.page-cart,.page-authentication,.page-customer-account,.page-order):not(.page-index) #wrapper{
  padding-top: 20px !important;
}

/* WA_CUSTOM: Product Prices Layout Refactoring */ 
.wa-price-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px !important;
}

.wa-tc-prices,
.wa-tc-old-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-price-section {
  margin-bottom: 12px;
}

.wa-price-label {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wa-price-table {
  border-collapse: collapse;
}

.wa-price-table td {
  padding: 8px 0px;
  border: 1px solid #ddd;

}

.wa-price-table td:first-child {
  background: #f8f8f8;
}

/* WA_CUSTOM: Cart & Buttons Colors */
/* 1. PULSANTE AGGIUNGI AL CARRELLO (Scheda Prodotto) */
.product-add-to-cart .add-to-cart {

  background-color: var(--verde) !important; 

  color: #fff !important;
}

.product-add-to-cart .add-to-cart:hover {

  background-color: var(--giallo) !important;

  color: #fff !important;
  /* Rimuove l'effetto bordo default se non piace */
  outline: none !important;
  border-color: transparent !important;
}

/* 2. PULSANTE CARRELLO (Header) */
#_desktop_cart {

    background-color: var(--verde);
    border: 1px solid var(--verde);
}

#_desktop_cart:hover {

  background-color: var(--giallo);
  border: 1px solid var(--giallo);
}

#_desktop_cart .header, 
#_desktop_cart .material-icons,
#_desktop_cart span {

  color: #fff;
}

#_desktop_cart:hover .header, 
#_desktop_cart:hover .material-icons,
#_desktop_cart:hover span {

  color: #fff;
}
/* Fix product slider styles */
.js-qv-mask {
  overflow: hidden;
  width: 100%;
  height: auto;
  white-space: nowrap; /* Ensure horizontal layout works if needed */
}

.scroll-box-arrows i {
  cursor: pointer;
}

@media (max-width: 991px) {
  .block-tablecombz-scroll {
    display: none !important;
  }
}

/* ===================================
TOP CATEGORIE - HOMEPAGE
Stile Rajapack
=================================== */

.top-categories-section {
  margin-top: 40px;
}

.top-categories-title {
  margin: 0 0 24px;
  color: var(--nero);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.top-categories-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

.top-categories-row--christmas {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 16px;
}

.top-cat-block {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
}

.top-cat-block:hover {
  color: inherit;
  text-decoration: none;
}

.top-cat-img-wrap {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  -webkit-transition: -webkit-box-shadow 0.35s ease;
  transition: box-shadow 0.35s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.top-cat-img-wrap img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
}

.top-cat-block:hover .top-cat-img-wrap {
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.top-cat-block:hover .top-cat-img-wrap img {
  -webkit-transform: scale(1.06);
  -ms-transform: scale(1.06);
  transform: scale(1.06);
}

.top-cat-name {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--nero);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.top-cat-block:hover .top-cat-name {
  font-weight: 600;
  color: #39798d;
}

/* Responsive: Tablet */
@media (max-width: 991px) {
  .top-categories-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .top-cat-img-wrap {
    max-width: 100px;
  }

  .top-cat-name {
    font-size: 0.8rem;
  }
}

/* Responsive: Mobile — 2 elementi per riga */
@media (max-width: 767px) {
  .top-categories-section {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .top-categories-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 10px;
    gap: 16px 8px;
  }

  .top-cat-block {
    padding: 8px;
  }

  .top-cat-img-wrap {
    max-width: 100px;
  }

  .top-cat-name {
    font-size: 0.8rem;
    margin-top: 8px;
  }
}

.cancellazione{display: none ;}

@media (max-width: 767px) {
    /* Identifica l'ID specifico della voce di menu */
    .prodotti-mobile > a {
        pointer-events: none !important; /* Impedisce il click sul link */
        cursor: default;
    }
}
.turnstile-widget {

  margin: 0 auto;
  width: 400px;
}

.turnstile-widget iframe {
  max-width: 100%;
}

/* ============================================================
   Footer trust bar — pagamenti e spedizioni
   ============================================================ */
.footer-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.25rem;
}
.footer-trust-col {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.footer-trust-col + .footer-trust-col {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.footer-trust-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aaa;
  font-weight: 600;
}
.footer-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.footer-trust-logo {
  display: inline-flex;
  opacity: .85;
  transition: opacity .15s;
}
.footer-trust-logo:hover {
  opacity: 1;
}
.footer-trust-logo svg {
  width: 50px;
  height: 32px;
  display: block;
}

.footer-container{
  padding-top: 0rem ;
}
@media (max-width: 767px) {
  .footer-trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-trust-col + .footer-trust-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    width: 100%;
  }
}

/* ============================================================
   GUIDE CATEGORIA — guida-*
   ============================================================ */

/* INTRO */
.guida-intro {
  padding-bottom: 24px;

}
.guida-intro__titolo {
  font-size: 1.6rem;
  color: var(--nero);
  margin-bottom: 6px;
}
.guida-intro__lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 16px;
}

/* ANCORE CATEGORIA */
.cat-anchor-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 22px 0 28px;
  box-sizing: border-box;
}

.cat-anchor-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 118px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 4px solid var(--giallo);
  border-radius: 4px;
  color: var(--nero);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cat-anchor-box:hover,
.cat-anchor-box:focus {
  color: var(--nero);
  text-decoration: none;
  border-color: rgba(77, 151, 174, 0.45);
  border-top-color: var(--verde);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.cat-anchor-box:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

.cat-anchor-box__title {
  display: block;
  color: var(--nero);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cat-anchor-box__text {
  display: block;
  color: #666;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 991px) {
  .cat-anchor-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .cat-anchor-boxes {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 24px;
  }

  .cat-anchor-box {
    min-height: auto;
    padding: 15px 16px;
  }
}

.cat-choice-guide {
  background: #f4f9fb;
  border: 1px solid #d8e6e5;
  border-radius: 4px;
  padding: 24px;
  margin: 20px 0 26px;
  box-sizing: border-box;
}

.cat-choice-guide__title {
  color: var(--nero);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.cat-choice-guide__intro {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.cat-choice-guide ul {
  list-style: inside;
}

.cat-choice-guide .cat-anchor-boxes {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .cat-choice-guide {
    padding: 18px 16px;
    margin: 16px 0 22px;
  }
}

/* FINE ANCORE CATEGORIA */

/* CARD */
.guida-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 4px solid var(--verde);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.guida-card__etichetta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde);
  margin-bottom: 4px;
}
.guida-card__titolo {
  font-size: 1.2rem;
  color: var(--nero);
  margin: 0 0 14px;
}
.guida-card__nota {
  border-left: 3px solid;
  padding: 10px 14px;
  border-radius: 0 3px 3px 0;
  margin: 10px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.guida-card__nota--positiva {
  border-color: var(--verde);
  background: rgba(77, 151, 174, 0.07);
}
.guida-card__nota--attenzione {
  border-color: #ccc;
  background: #f7f7f7;
}
.guida-card__cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  font-weight: 700;
  color: var(--verde);
  text-decoration: none;
}
.guida-card__cta:hover { color: var(--giallo); }

/* Solo i blocchi natalizi caricati dopo il listato prodotti. */
.desc-natale .guida-card { border-top-color: #cf0c0c; margin-bottom: 20px; }
.desc-natale .guida-card__etichetta,
.desc-natale .guida-card__cta,
.desc-natale .guida-card__cta:hover { color: #cf0c0c; }

/* LE TRE DOMANDE */
.guida-domande {
  background: #f4f9fb;
  border-radius: 4px;
  padding: 32px 40px;
}
.guida-domande__titolo {
  font-size: 1.3rem;
  color: var(--nero);
  border-bottom: 2px solid var(--verde);
  padding-bottom: 10px;
  margin-bottom: 28px;
}
.guida-domande__lista {
  list-style: none;
  counter-reset: domande;
  padding: 0;
  margin: 0;
}
.guida-domande__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  counter-increment: domande;
}
.guida-domande__item::before {
  content: counter(domande);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.guida-domande__item:last-child { margin-bottom: 0; }
.guida-domande__domanda {
  display: block;
  font-size: 1rem;
  color: var(--nero);
  margin-bottom: 6px;
}
.guida-domande__item p { margin: 0; font-size: 0.92rem; }

/* MATERIALI, FORMATI, MANICI */
.guida-dettagli__titolo {
  font-size: 1.3rem;
  color: var(--nero);
  margin-bottom: 24px;
}
.guida-dettagli__griglia {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.guida-dettagli__voce {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 200px;
  border-top: 3px solid var(--giallo);
  padding-top: 14px;
}
.guida-dettagli__voce-titolo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nero);
  margin: 0 0 8px;
}

/* CONFRONTO STANDARD / PERSONALIZZATA */
.guida-confronto {
  background: #f4f9fb;
  border-radius: 4px;
  padding: 28px;
  height: 100%;
  box-sizing: border-box;
}
.guida-confronto--accent {
  background: var(--verde);
}
.guida-confronto--accent p { color: rgba(255,255,255,0.88); }
.guida-confronto__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #ddd;
  color: var(--nero);
  border-radius: 3px;
  padding: 3px 9px;
  margin-bottom: 12px;
}
.guida-confronto__badge--accent {
  background: var(--giallo);
  color: var(--nero);
}
.guida-confronto__titolo {
  font-size: 1.1rem;
  color: var(--nero);
  margin-bottom: 12px;
}
.guida-confronto--accent .guida-confronto__titolo { color: #fff; }
.guida-confronto__cta {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--giallo);
  text-decoration: none;
}
.guida-confronto__cta:hover { color: #171616; }

/* CTA FINALE */
.guida-cta {
  background: var(--nero);
  border-radius: 4px;
  padding: 48px 60px;
  text-align: center;
}
.guida-cta__titolo {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.guida-cta__testo {
  color: rgba(255,255,255,0.75);

  margin: 0 auto 28px;
}

.guida-cta .guida-cta__testo {
  color: rgba(255,255,255,0.75) !important;

  margin: 0 auto 28px;
}

.guida-cta__btn {
  display: inline-block;
  background: var(--giallo);
  color: var(--nero);
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s;
}
.guida-cta__btn:hover { background: #fff; }

/* RESPONSIVE */
@media (max-width: 767px) {
  .guida-domande { padding: 20px; }
  .guida-dettagli__voce { flex: 0 0 100%; }
  .guida-cta { padding: 32px 20px; }
}

/* HOME H1 */
.home-h1 {
  font-size: 1.15rem;

  background-color: white;
    border-radius: 4px;
    border-bottom: 2px solid var(--giallo);
    border-top: 2px solid var(--giallo);
}

@media (max-width: 767px) {
  .home-h1 {
  margin-top: 20px;
  }
}

.block-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.block-category h1 {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.block-category .btn-vai-guida {
  flex-shrink: 0;
}

.block-category .block-category-inner {
  width: 100%;
}

.wa-price-table td {
    font-size: 22px;
    font-weight: 600;
}

.wa-regular-price-row td {
  color: #999;
  font-weight: 400;
  font-size: 14px;
}

.wa-discount-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wa-regular-price-row .price-tax-sconto {
  padding-right: 0;
}

.wa-price-container.has-discount .wa-regular-price-row .discount {
  margin-left: 0;
  font-size: 13px;
  line-height: 1.2;
}

/*
 * Miniature prodotto: card e prezzi allineati.
 * La descrizione mantiene un'altezza minima e ancora il prezzo al fondo,
 * anche quando il titolo va su piu righe o il prodotto e scontato.
 */
#products .product-miniature .thumbnail-container {
  display: block;
  height: auto;
}

#products .product-miniature .thumbnail-top {
  display: block;
}

/*
 * Il tema parent usa calc(100% - 70px): con una card ad altezza forzata
 * quella misura crea il grande vuoto sotto la foto e manda i prezzi fuori.
 */
#products .product-miniature .thumbnail-container .product-thumbnail {
  height: auto;
}

#products .product-miniature .product-description {
  display: flex;
  flex-direction: column;
  min-height: 10rem;
}

#products .product-miniature .product-price-and-shipping {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
}

/* Riga prezzo: importo IVA inclusa e, sotto, importo IVA esclusa. */
.miniature-dual-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
}

.miniature-price-excl,
.miniature-price-incl {
  flex: 1;

}

.product-miniature .miniature-price-excl {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  column-gap: 4px;
  width: 100%;
}

.product-miniature .miniature-dual-price--regular {
  margin-bottom: 2px;
}

.miniature-price-excl .price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.miniature-price-incl .price {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
}

.miniature-tax-label {
  font-size: 0.65rem;
  color: #666;
  display: inline;
  font-weight: 400;
  line-height: 1.2;
}

/* Prezzo secondario IVA esclusa: mantiene il layout live, riducendo solo l'enfasi. */
.price-tax-excl {
  padding: 0px 12px;
  display: block;
  color: #666;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.price-tax-excl__label {
  white-space: nowrap;
}

.product-miniature .price-tax-excl {
  flex-basis: 100%;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: right;
}

.price-tax-incluse{
  padding: 0px 12px;
}

.price-tax-sconto {
    padding: 0px 12px;
    text-decoration: line-through;
}

.miniature-price-divider {
  width: 1px;
  height: 2.5rem;
  background: #ddd;
  flex-shrink: 0;
  margin: 0 6px;
}

div#slide-1 p{
    line-height: 10px;
    color: #333333;
}

div#slide-2 p {
    line-height: 16px;
    color: #333333;
}

div#slide-3 p {
  font-size: 48px;
  line-height: 31px;
  color: #333333;
}

div#slide-4 p {
  line-height: 16px;
  color: #333333;
}
#slide-4 {
  margin-top: -400px;
}

.carousel .carousel-item .caption{
  max-width: 100%;
  left: 50px !important;
}

@media (max-width: 991px) {
    .carousel .carousel-item .caption {
        display: none;
    }
}

.block-category h1 {
    max-width: 100%;
    font-size: 28px;
}

@media (max-width: 991px) {
a.btn-vai-guida {
    font-size: 19px !important;
    text-transform: uppercase;
}

.block-category .btn-vai-guida {
    width: 90%;
    height: 64px;
}
}

/* FIX SOCIAL FOOTER */

@media (max-width: 767px) {
  .footer-container .block-social {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 0 !important;
  }

  .footer-container .block-social ul {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    float: none !important;
    margin: 0 auto !important;
  }

  .footer-container .block-social ul li {
    margin: 4px !important;
  }
}

#guida-categoria {
  clear: both;
}

/* Fix 2: larghezza corretta per i blocchi interni */
.guida-cta,
.guida-card,
.guida-intro,
.guida-confronto,
.guida-domande,
.cat-choice-guide,
.cat-anchor-boxes {
  width: 100%;
  box-sizing: border-box;
}

/* =============================================
   FIX SUBMENU LARGHEZZA — dropdown compatto
   ============================================= */

/* HERO HOME NEW */

.hero-chartare {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.home-hero-left {
  background-color: #4d97ae;
  color: #ffffff;
  padding: 24px 26px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}

.home-hero-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  display: block;
}

.home-hero-claim {
  font-size: 1.7rem;
  font-weight: 200;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
}

.home-hero-claim em {
  font-style: italic;
  font-weight: 800;
}

.home-hero-right {
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1;
  background: #fff;
}

.home-h1 {

  font-weight: 700;
  color: #232323;
  text-align: left;
  margin: 0;
  padding: 0;
  line-height: 1.45;
  letter-spacing: 0;
  background: none;
  border: none;
}

.home-h1-accent {
  color: #ffa736;
}

.home-h1-sub {
  font-size: x-large;
  color: #666666;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-align: left;
}

.home-hero-steps {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.home-hero-steps span {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

.home-hero-steps__sep {
  color: #666;
  font-weight: 300;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .hero-chartare {
    flex-direction: column;
  }
  .home-hero-left {
    max-width: 100%;
    padding: 18px 20px;
  }
  .home-hero-steps {
    flex-wrap: wrap;
  }
}

.product-description ul {
    list-style: inside;
}

.product-description ul li p {
    display: inline;
}

.logo-desktop{
  display: grid;
}

.payoff-logo{
  font-size: 14px;
  text-align: center;
  color: #39798d;
}

/* Contrasto dei testi del blocco blog su sfondo bianco e giallo. */
.ybc_block_latest .read_more {
  color: #666 !important;
}

.ybc_block_latest .blog_view_all_button .view_all_link {
  color: var(--nero) !important;
}

.prezzo-unitario td {
    font-size: 13px;
}

/* no tabella, si radio button per scheda prodotto*/

/* Colonne adattive: due sui telefoni, più colonne quando c'è spazio. */
.product-variants > .product-variants-item > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Ogni <li> si comporta da cella della griglia */
.product-variants > .product-variants-item > ul > li.input-container {
  float: none;
  margin: 0;
  width: auto;
}

/* Label a blocco che occupa tutta la cella */
.product-variants > .product-variants-item > ul > li.input-container > label {
  display: block;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

/* Il radio invisibile deve coprire la propria cella. */
.product-variants .input-radio {
  left: 0;
}

/* Bottone visivo (.radio-label) */
.radio-label {
  display: block;
  width: 100%;
  padding: 7px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
  border: 2px solid rgba(35, 35, 35, 0.25);   /* bordo leggero default */
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.4;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Hover: bordo leggermente più visibile */
.input-radio:hover + .radio-label {
  border-color: rgba(35, 35, 35, 0.5);
}

/* Selezionato: bordo pieno + outline via box-shadow */
.input-radio:checked + .radio-label {
  border: 1px solid rgba(35, 35, 35, 0.85);
  box-shadow: 0 0 0 1px rgba(35, 35, 35, 0.85);
  background: #ffffff;
}

/* Per varianti colore: torna al comportamento originale di PrestaShop */
.product-variants > .product-variants-item > ul:has(.input-color) {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.product-variants > .product-variants-item > ul:has(.input-color) li.input-container > label {
  display: inline;
  width: auto;
}

.page-product .product-description a{
  color:var(--verde) !important;
}

.page-contact #wrapper > .container > .row {
    display: flex;
}

/*
 * Avviso del form prodotto standard.
 * Resta visibile anche come fallback quando TableCombz non gestisce il prodotto.
 */
.product-availability-date--estimated {
  flex: 0 0 100%;
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--giallo);
  background: #fff8e6;
  color: #242424;
  font-size: 14px;
}

.product-availability-date--estimated span,
.tablecombz-availability-date span {
  font-weight: 600;
}

/*
 * Avviso collocato dentro il gruppo quantita della singola riga TableCombz.
 * La stessa data viene riutilizzata nei dati strutturati, nel carrello e nel checkout.
 */
.tablecombz-availability-date {
  flex: 0 0 calc(100% - 10px);
  order: 3;
  justify-content: center;
  gap: 4px;
  margin: 2px 0 0;
  padding: 6px 8px;
  border-left: 3px solid var(--giallo);
  background: #fff8e6;
  color: #242424;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.tablecombz-availability-date time {
  white-space: nowrap;
}

/* Lo spazio del totale nascosto viene usato dalla data nelle righe in backorder. */
.tablecombz-availability-date + .sum-label {
  display: none !important;
}

/* Data della singola combinazione in backorder nel carrello e nel checkout. */
.cart-product-availability-date,
.cart-order-availability-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 0;
  padding: 6px 8px;
  border-left: 3px solid var(--giallo);
  background: #fff8e6;
  color: #242424;
  font-size: 12px;
  line-height: 1.35;
}

.cart-product-availability-date span,
.cart-order-availability-date span,
.cart-product-availability-date time,
.cart-order-availability-date time {
  font-weight: 600;
}

/* Nel riepilogo checkout resta visibile anche quando l'elenco prodotti e chiuso. */
.cart-order-availability-date {
  margin-bottom: 10px;
}

/*
 * TEMPORANEO: messaggi di disponibilita/consegna nascosti in attesa
 * dell'approvazione definitiva di testi e posizionamento.
 * Il calcolo delle date e availabilityStarts restano attivi.
 */
.product-availability-date--estimated,
.tablecombz-availability-date,
.cart-product-availability-date,
.cart-order-availability-date {
  display: none !important;
}

#category-description p{
  color: #000 !important;
}
#category-description strong{
  color: #000 !important;
  font-weight: 700 !important;
}

.product-id-612 .product-description table th, .product-id-612 .product-description table td {
    padding: 10px !important;
    border: 1px solid #dede;
}
