/* Contenitore principale (input quantità + frecce + bottone) */
.addtocart-bar {
  display: flex;
  flex-direction: column; /* prima riga quantità, poi bottone */
  align-items: flex-start;
  gap: 0.6em;
}

/* Riga quantità: input + frecce allineati al centro verticalmente */
.addtocart-bar .quantity-box,
.addtocart-bar .quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

/* Input quantità: formato compatto e uniforme */
.addtocart-bar .quantity-box .quantity-input {
  width: 50px;
  padding: 0.3em;
  font-size: 1em;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Quantità: pulsanti visibili con icone */
.quantity-controls button.quantity-plus,
.quantity-controls button.quantity-minus {
  width: 32px;
  height: 32px;
  font-size: 1.2em;
  font-weight: bold;
  border: 1px solid #AD7830;
  background-color: #fff;
  color: #AD7830;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.quantity-controls button:hover {
  background-color: #C89B3C;
  color: #fff;
}

.quantity-controls i.fas {
  pointer-events: none;
}

/* Pulsante nel carrello: allineamento perfetto */
.addtocart-bar .addtocart-button {
  display: inline-block;
  align-self: flex-start;
  margin-left: 0 !important;
  padding: 0.7em 1.2em;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.3;
  vertical-align: middle;
  background-color: #AD7830;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}
.addtocart-bar .addtocart-button:hover {
  background-color: #C89B3C;
}

/* Prezzo finale (totale con IVA) */
div.product-price .PricesalesPrice {
  font-size: 1.2em;
  font-weight: 700;
  color: #C89B3C;
  margin-bottom: 0.4em;
}

/* Blocco accessibilità: margine dal prezzo, layout elegante */
.accessibility-indicator {
  margin-top: 2rem;
  padding: 0.8em 1em;
  border: 2px solid #AD7830;
  border-radius: 10px;
  background-color: #fff8ec;
  font-size: 1.2em;
  color: #AD7830;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Icona più grande e armoniosa */
.accessibility-indicator i {
  font-size: 2.2em;
  color: #379DF1;
}

/* Accessibilità - Card prodotto (sobrio) */
.accessibility-indicator-card {
  font-size: 1.1rem;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.3em;
}

/* Icona accessibile */
.accessibility-indicator-card i {
  font-size: 2.2em;
  color: #379DF1;
}

/* — Durata corso (card prodotto) — */
.course-duration {
  font-size: 0.85rem;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.3em;
}
.course-duration i {
  font-size: 1em;
  color: #C89B3C;
}

.product-fields .product-field-display {
  font-size: large;
  margin: 20px 0;
}

/* Stile per il titolo del campo */
.product-fields .product-field-display .product-field-title {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* Stile per il valore del campo */
.product-fields .product-field-display .product-field-value {
  font-weight: 700;
  font-size: 1.1em;
  display: block;
}

/* Ridimensiona titoli e immagini delle sottocategorie */
.category-view .vm-category {
  padding: 0.5em;
  margin-bottom: 1em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-thumb {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.category-thumb img,
.category-thumb .vmCatImage {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 0.4em;
    
}

/* Riduce i titoli delle categorie nella griglia */
.category-view .category-title h3.mb-0 {
  font-size: 1.2em !important;   /* oppure 0.95rem o 0.9em per più compattezza */
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  text-align: left;
}


#sp-logo .sp-default-logo,
#sp-logo .sp-retina-logo {
    max-height: 80%;
    max-width: 40%;
}

/* Solo Mobile (fino a 767px) */
@media only screen and (max-width: 767px) {
  #sp-logo .sp-default-logo,
  #sp-logo .sp-retina-logo {
    max-width: 80%;
    max-height: 80%;
  }
}

.sp-module-title {
    color: #c89e42 !important;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    padding-top: 20px;
    box-shadow: none !important;
    text-shadow: none !important;
}

.sp-module-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: #c89e42; /* Oro Business */
    transition: width 0.4s ease;
}

.sp-module-title:hover::after {
    width: 60px;
}
.sppb-addon h3.sppb-addon-title::after {
    width: 110%;
}
.sppb-addon h3.sppb-addon-title {
    box-shadow: none;
}
/* Pulsanti oro chiaro */
.btn-gold {
    background-color: #E6C97A !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Hover personalizzato */
.btn-gold:hover {
    background-color: #d2b75f !important;
    color: #fff !important;
}

/* Elimina bordo blu da tutti i bottoni Bootstrap se serve */
button.btn:focus,
a.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}
.alert-info {
    --bs-alert-color: #1A1A1A; /* testo scuro elegante */
    --bs-alert-bg: #FFF8E0; /* sfondo chiaro dorato */
    --bs-alert-border-color: #E6C97A; /* bordo oro chiaro */
    --bs-alert-link-color: #AD7830; /* link in bronzo soft */
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: 1px solid var(--bs-alert-border-color);
}
form input[type="text"].honeypot,
form .hidden-field,
form input[type="text"]:not([name]):not([class*="date"]):not([id*="date"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}
/* Colore oro per il titolo */
.text-gold {
    color: #C89B3C;
    font-weight: bold;
}

/* 🔧 Correzione tabella carrello VirtueMart */

.cart-view table.cart-summary {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

.cart-view table.cart-summary th,
.cart-view table.cart-summary td {
  padding: 12px 10px !important;
  text-align: center;
  vertical-align: middle !important;
  font-size: 1rem;
/*  white-space: nowrap; */
}

/* Colonna "NOME" (immagine + titolo) allineata a sinistra */
.cart-summary td:nth-child(1),
.cart-summary th:nth-child(1) {
  text-align: left;
  white-space: normal;
  width: 30%;
}

/* Colonna "SKU" */
.cart-summary td:nth-child(2),
.cart-summary th:nth-child(2) {
  width: 10%;
}

/* Colonna "PREZZO" */
.cart-summary td:nth-child(3),
.cart-summary th:nth-child(3) {
  width: 10%;
}

/* Colonna "QUANTITÀ" */
.cart-summary td:nth-child(4),
.cart-summary th:nth-child(4) {
  width: 12%;
}

/* Colonna "IVA", "SCONTO", "TOTALE" */
.cart-summary td:nth-child(5),
.cart-summary td:nth-child(6),
.cart-summary td:nth-child(7),
.cart-summary th:nth-child(5),
.cart-summary th:nth-child(6),
.cart-summary th:nth-child(7) {
  text-align: right;
  min-width: 80px;
}

/* Prezzi chiari e ben leggibili */
.cart-summary .PricebillTotal,
.cart-summary .price,
.cart-summary .cart-price {
  font-weight: 600;
  font-size: 1rem;
/*  white-space: nowrap;  */
}

/* Immagine prodotto */
.cart-summary td img {
 /* max-width: 80px; */
  height: auto;
  display: block;
  margin: 0 auto 5px;
}

/* Quantità + bottoni */
.cart-summary .quantity-controls,
.cart-summary input.quantity-input {
  max-width: 60px;
  text-align: center;
}

/* 🔧 Evita overflow orizzontale in carrello e moduli */

body,
html,
#sp-main-body,
.cart-view,
.cart-view table.cart-summary {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* 🔄 Forza tabella carrello a comportarsi in modo fluido */
.cart-view table.cart-summary {
  table-layout: auto !important;
  width: 100% !important;
  display: table !important;
}

/* 🧹 Impedisce ai <td> con contenuto lungo (es. Totale) di "spaccare" il layout */
.cart-view td,
.cart-view th {
  white-space: normal !important;
}

/* 📦 Colonna “Totale” ben visibile */
.cart-view td:last-child,
.cart-view th:last-child {
  min-width: 80px;
  text-align: right;
}

/* 🔒 Blocca i prezzi su una sola riga */
.cart-summary td span.price,
.cart-summary td span.cart-price,
.cart-summary td span.PricebillTotal {
  white-space: nowrap !important;
  display: inline-block;
  text-align: right;
  min-width: 70px;
}

/* 📐 Allineamento a destra per le colonne numeriche finali */
.cart-summary td:nth-last-child(-n+3),
.cart-summary th:nth-last-child(-n+3) {
  text-align: right !important;
}

.product-description {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.category-view .row .spacer .spacer-inner h2, 
.browse-view .row .spacer .spacer-inner h2, 
.latest-view .row .spacer .spacer-inner h2, 
.recent-view .row .spacer .spacer-inner h2, 
.featured-view .row .spacer .spacer-inner h2, 
.topten-view .row .spacer .spacer-inner h2 {
  font-size: 130% !important;
  line-height: 1.3;
}

.product-navigation a.btn {
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.2s ease-in-out;
}
.product-navigation a.btn:hover {
  background-color: #C89B3C;
  color: white;
}

.paypal-logo {
    max-width: 100%;
    height: auto;
}

@media (min-width: 801px) {
    .paypal-logo {
        width: 400px;
    }
}

.cat-subtitle {
    font-size: 0.95rem;
    color: #9E8B62;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

/* Spessore hamburger + colore */
#offcanvas-toggler .js-menu-toggle .lines {
  height: 4px;
  background-color: #C89B3C; /* Oro aziendale */
  margin-bottom: 6px;
  display: block;
  width: 25px;
  border-radius: 1px;
}

/* Etichetta MENU sotto le linee */
.menu-label {
  display: block;
  font-size: 11px;
  color: #C89B3C;
  font-weight: bold;
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.category-view .row .spacer .spacer-img img,
.browse-view .row .spacer .spacer-img img,
.latest-view .row .spacer .spacer-img img,
.recent-view .row .spacer .spacer-img img,
.featured-view .row .spacer .spacer-img img,
.topten-view .row .spacer .spacer-img img {
  float: center;
}

/* Carrello centrato verticalmente */
@media (min-width: 992px) {
  .sp-megamenu-parent { display: flex !important; }
  #offcanvas-toggler { display: none !important; }
}

@media (max-width: 767px) {
    #vmCartModule {
        float: none;
        display: block;
        width: 100%;
        margin-top: 0px;
    }
}

  /* Mostra e centra il logo mobile con classe personalizzata */
  .logo-centrato {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 !important;
  }

  .logo-centrato img {
    margin: 0 auto !important;
    float: none !important;
  }
  
  .control-buttons .vm-button-correct,
#save-payment-methods {
  background-color: #C89B3C; /* Oro Business */
  border-color: #AD7830; /* Bronzo Soft */
  color: #FFFFFF;
  font-weight: bold;
  font-size: 17px;
  padding: 10px 36px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}

.control-buttons .vm-button-correct:hover,
#save-payment-methods:hover {
  background-color: #AD7830;
  transform: scale(1.03);
  cursor: pointer;
}

#checkoutFormSubmit span::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f07a"; /* fa-shopping-cart */
  margin-right: 8px;
}

.category-view .row .spacer .spacer-img img,
.browse-view .row .spacer .spacer-img img,
.latest-view .row .spacer .spacer-img img,
.recent-view .row .spacer .spacer-img img,
.featured-view .row .spacer .spacer-img img,
.topten-view .row .spacer .spacer-img img {
  float: none !important;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: #ffffff; /* Or any other desired solid color, e.g., white */
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  color: #C89B3C;
}

.justify-content-end {
  justify-content: flex-start !important;
}

.nav {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    /* height: 300px; */
}

.entry-header h1, .entry-header h2 {
  box-shadow: none;
  display: block;
}

/* --- BOTTONI NAVIGAZIONE PRODOTTI --- */
.product-navigation .btn-outline-primary {
    border-color: #C89B3C; /* Oro Business */
    color: #C89B3C;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease-in-out;
    padding: 0.6rem 1.5rem;
}

.product-navigation .btn-outline-primary:hover {
    background-color: #AD7830; /* Bronzo Soft */
    color: #fff;
    border-color: #AD7830;
    text-decoration: none;
}

.product-navigation .btn-outline-primary i {
    margin: 0 0.3rem;
}

/* --- TITOLI IN ORO BUSINESS --- */
.text-gold {
    color: #C89B3C;
}

/* --- FAQ accordion --- */
.faq-accordion .accordion-button {
    background-color: #fff;
    color: #1A1A1A;
    border: 1px solid #C89B3C;
    font-weight: 600;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: #C89B3C;
    color: #fff;
}

.faq-accordion .accordion-body {
    background-color: #fff;
    border-left: 1px solid #C89B3C;
    border-right: 1px solid #C89B3C;
    border-bottom: 1px solid #C89B3C;
    color: #1A1A1A;
}

/* --- BORDO SOTTO SEZIONE --- */
hr.section-divider {
    border: none;
    border-top: 3px solid #C89B3C;
    width: 100px;
    margin: 3rem auto;
}

/* Colori personalizzati per l'accordion FAQ */
.accordion .accordion-item {
  --bs-accordion-bg: #fff;
  --bs-accordion-color: #1A1A1A;
  --bs-accordion-border-color: #C89B3C; /* Oro Business */
  --bs-accordion-active-color: #C89B3C; /* Colore del testo attivo */
  --bs-accordion-active-bg: #FFFBE6;    /* Sfondo attivo delicato in tono con l'oro */
  --bs-accordion-btn-focus-box-shadow: none;
}

/* Icona freccia (aperta e chiusa) */
.accordion-button::after {
  filter: invert(38%) sepia(100%) saturate(728%) hue-rotate(6deg) brightness(96%) contrast(92%);
}

.accordion-button:not(.collapsed) {
  color: #000000;
  background-color: #FFFBE6;
  font-weight: bold;
}

/* Testo domanda */
.accordion-button {
  color: #1A1A1A;
}

/* Testo risposta */
.accordion-body {
  color: #1A1A1A;
}

/* Hover sulle domande FAQ */
.faq-accordion .accordion-button:hover {
    background-color: #F5E7C2; /* un tono chiaro oro, più visibile */
    color: #C89B3C;
    cursor: pointer;
}
.product-reviews .alert-info {
    background-color: #f9f9f9;
    color: #333;
    border-left: 4px solid #C89B3C;
    padding: 1rem;
}
.product-reviews h2 {
    font-weight: 600;
    color: #C89B3C;
}
.ratingbox {
    margin-top: .75rem;
    margin-bottom: .75rem;
}
/* Forza l'altezza automatica per permettere lo scroll naturale del browser */
.sp-main-body  {
    height: auto !important;
    min-height: 100vh; /* Assicura che copra almeno tutta l'altezza dello schermo */
    overflow: visible !important; /* Evita che si creino scrollbar interne */
    display: block;
}

/* Opzionale: se il problema persiste, verifica che i genitori non abbiano overflow:hidden o height:100% fisso */
html, body {
    height: auto; 
    /* A volte nei template moderni html/body hanno height:100%, rimuovilo o mettilo auto se causa problemi */
}

