/* b2b2-pagine.css - stili aggiuntivi per le pagine con la grafica completa del template igold
   (index2.html, shop-filter-top2.html, shop-cart2.html, wishlist2.html, account-page2.html ...).
   Contiene SOLO cio' che il template non ha: elementi del motore b2b (rivenditori, consegna,
   rappresentante, cookie, Google Translate) e piccoli adattamenti. Tutto il resto e' css/styles.css. */

/* ---- Google Translate: nasconde barra e iframe in tutte le varianti ---- */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.skiptranslate > iframe { display: none !important; }
body { top: 0px !important; }
.goog-te-gadget { display: none !important; }
#google_translate_element { display: none; }

/* ---- header su telefono (ott 2026): con l'utente loggato le icone a destra (lingua, cerca, utente + iniziali,
        carrello) non stavano nel 25% di larghezza che il template gli riserva e la bandierina finiva SOPRA il logo.
        Sotto 575px: meno spazio al menu, piu' spazio alle icone, logo e distanze un po' piu' piccoli. ---- */
@media (max-width: 575px) {
    .tf-header .row > div:nth-child(1) { flex: 0 0 auto; width: 16.6667%; }
    .tf-header .row > div:nth-child(2), .tf-header .row > div:nth-child(4) { flex: 0 0 auto; width: 41.6667%; }
    .tf-header .logo-site img { width: 100px; }
    .tf-header .nav-icon { gap: 8px; }
}
@media (max-width: 380px) {
    .tf-header .logo-site { justify-content: flex-start; }
    .tf-header .logo-site img { width: 92px; }
    .tf-header .nav-icon { gap: 6px; }
}

/* ---- header ---- */
.b2b-contents { display: contents; }
.b2b-iniziali { font-size: 12px; font-weight: 600; margin-left: 4px; }
.nav-icon-item { position: relative; }
.count-notice.b2b-count {
    width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; right: -8px; top: 0;
    display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; line-height: 1; color: var(--white);
}
.count-notice.b2b-count.vuoto { display: none; }

/* ---- rimandi sotto ACCEDI (ott 2026): registrazione per le gioiellerie, mappa per i privati ---- */
.b2b-login-rimandi { display: flex; flex-direction: column; gap: 14px; }
.b2b-login-rimandi .tf-btn-line { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: normal; text-align: center; }
.b2b-login-rimandi .tf-btn-line .text-body { line-height: 1.4; }

/* ---- form login / registrazione (campi in piu' rispetto al template) ---- */
.b2b-form-titolo { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 22px 0 6px 0; font-weight: 500; }
.b2b-form-titolo:first-child { margin-top: 0; }
.b2b-form-riga { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.b2b-form-riga.b2b-form-riga-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 575px) {
    .b2b-form-riga, .b2b-form-riga.b2b-form-riga-3 { grid-template-columns: 1fr; }
}
.b2b-form-errore { color: #c0392b; font-size: 14px; margin: 0 0 12px 0; min-height: 0; }
.b2b-form-errore:empty { display: none; }
#register .modal-dialog { max-height: 96vh; }
#register .modal-content { max-height: 96vh; overflow-y: auto; }

/* ---- card prodotto ---- */
.badge-box .b2b-non-disponibile { background-color: #b23b3b; }
.card_product--V01 .name-product { display: block; }
.card_product--V01 .b2b-card-codice { font-size: 12px; letter-spacing: 1px; }
#div_elenco_articoli .card_product--V01 { min-width: 0; }
.b2b-load-more { text-align: center; margin-top: 50px; }
.tf-view-layout-switch.b2b-layout-switch { cursor: pointer; }

/* ---- card su telefono e touch (ott 2026): nel template le icone (carrello, anteprima) sono nascoste sotto 575px e
        compaiono al "passaggio del mouse", che sul telefono e' il primo tocco: bisognava toccare due volte per aprire
        il prodotto e non si poteva aggiungere al carrello dalla griglia. Qui restano sempre visibili e l'effetto
        di cambio foto al passaggio viene spento dove il mouse non c'e'. ---- */
@media (max-width: 575px) {
    .card_product--V01 .list-product-btn { display: flex; right: 8px; gap: 8px; }
}
@media (max-width: 767px) {
    .card_product--V01:not(.style_2) .list-product-btn .wishlist { display: block; }
}
@media (hover: none) {
    .card_product--V01 .card_product-wrapper:hover .img-hover { opacity: 0; transform: none; z-index: auto; }
    .card_product--V01 .list-product-btn li { opacity: 1 !important; visibility: visible !important; transform: none !important; }
    .card_product--V01 .hover-tooltip .tooltip { display: none !important; }
}

/* ---- link trasformati da B2B_PulisciLinkJs (senza href): restano cliccabili come prima ---- */
a[data-js]:not([href]) { cursor: pointer; }

/* ---- scelta "Prezzi: Costo / Al pubblico" nella barra in alto (solo loggati) ---- */
.b2b-prezzi-modo { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.b2b-prezzi-modo .b2b-modo-prezzo { color: #fff; opacity: .65; padding: 1px 8px; border: 1px solid transparent; cursor: pointer; }
.b2b-prezzi-modo .b2b-modo-prezzo.active { opacity: 1; border-color: #fff; font-weight: 600; }

/* ---- mappa dei rivenditori in una finestra a se' (popup dell'ospite "Sono un privato") ---- */
.b2b-mappa-modale .modal-dialog { max-width: 900px; }
.b2b-mappa-modale .modal-content { border-radius: unset; max-height: 96vh; overflow-y: auto; }
.b2b-mappa-modale .b2b-rivenditori-pannello { border-top: none; }

/* ---- filtri in alto (liste riempite dal motore: <li><div class="custom-control">...) ---- */
.filter-group-check .custom-control { display: flex; align-items: center; gap: 12px; }
.filter-group-check .custom-control label { cursor: pointer; margin: 0; text-transform: capitalize; }
.filter-group-check li:has(> .custom-control[style*="display: none"]) { display: none; }
.dropdown-filter .dropdown-menu .filter-group-check { max-height: 340px; overflow-y: auto; }
.b2b-filtro-prezzo { min-width: 250px; }
.b2b-filtro-prezzo #prezzo_range { margin: 10px 8px 16px 8px; }
.b2b-filtro-prezzo .price-input input { width: 100%; border: 1px solid var(--line, #e5e5e5); padding: 6px 10px; }
.b2b-filtro-prezzo #min_prezzo, .b2b-filtro-prezzo #max_prezzo { border: 1px solid var(--line, #e5e5e5) !important; height: 40px !important; }
.b2b-filtro-prezzo form { margin-top: 12px; }
.meta-filter-shop .filter-tag .remove-tag { cursor: pointer; }

/* scelta prezzo in griglia (solo loggati): costo (predefinito) o al pubblico */
.b2b-toggle-prezzo { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 20px; flex-wrap: wrap; }
.b2b-toggle-prezzo .b2b-radio { margin: 0; padding: 5px 10px; font-size: 13px; }

/* ---- "pallini" selezionabili (consegna, pagamento, prezzo in griglia) ---- */
.b2b-radio { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border: 1px solid #e5e5e5; cursor: pointer; font-size: 14px; line-height: 1.3; }
.b2b-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.b2b-radio .b2b-radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--primary, #c29958); flex: 0 0 18px; position: relative; background: #fff; }
.b2b-radio input:checked + .b2b-radio-dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary, #c29958); }
.b2b-radio:has(input:checked) { border-color: var(--primary, #c29958); background: #fdf8f1; }

/* ---- quick view: galleria con miniature (ott 2026) ---- */
.b2b-qv-gallery { padding: 20px; }
.b2b-qv-main .pro-large-img { min-height: 320px; background: #fff; }
.b2b-qv-main .pro-large-img img { width: 100%; display: block; object-fit: contain; }
.b2b-qv-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.b2b-qv-thumbs .pro-nav-thumb { width: 90px; cursor: pointer; border: 1px solid transparent; }
.b2b-qv-thumbs .pro-nav-thumb.active { border-color: var(--primary, #c29958); }
.b2b-qv-thumbs .pro-nav-thumb img { width: 100%; display: block; }
@media (max-width: 767px) {
    .b2b-qv-gallery { padding: 15px 15px 0 15px; }
    .b2b-qv-main .pro-large-img { min-height: 0; }
    .b2b-qv-thumbs .pro-nav-thumb { width: 70px; }
}

/* ---- quick view ---- */
.modal-quick-view .b2b-qv-dettagli { font-size: 14px; line-height: 22px; margin: 0; }
.modal-quick-view #misura_modal_bottoni { flex-wrap: wrap; gap: 8px; }
.modal-quick-view #misura_modal_bottoni .size-btn { cursor: pointer; }
.modal-quick-view .tf-single-slide .item { min-height: 320px; background: #fff; }
.modal-quick-view .tf-single-slide .item img { object-fit: contain; }
.modal-quick-view #modal-button2-div { flex: 1; }
/* avviso prezzi (07/10/2026, richiesta cliente): tolto il popup all'apertura del sito, l'avviso va evidenziato qui,
   sotto il prezzo della card e nel dettaglio prodotto */
.b2b-avviso-prezzo { font-size: 13px; color: var(--primary, #c29958); font-weight: 500; margin: 6px 0 0 0; line-height: 1.35; }
.b2b-avviso-prezzo.b2b-avviso-prezzo-card { font-size: 12px; margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.card_product--V01 .price-wrap.style-white + .b2b-avviso-prezzo-card { color: #e8c98f; }

/* ---- carrello laterale e pagina carrello ---- */
.tf-mini-cart-item .wg-quantity input { width: 46px; text-align: center; }
.b2b-nota-riga { width: 100%; min-height: 56px; border: 1px solid var(--line, #e5e5e5); padding: 8px 10px; margin-top: 10px; font-size: 14px; }
.table-shop-cart .order_product .infor .prd-type { line-height: 20px; }
.table-shop-cart table { width: 100%; min-width: 620px; table-layout: fixed; }
/* 13/10/2026: intestazioni piu' lunghe ("Prezzo al pubblico", "Costo stimato"): a capo consentito e colonne riequilibrate */
.table-shop-cart thead th { display: table-cell !important; white-space: normal; font-size: 12px !important; line-height: 1.3; padding-left: 14px !important; padding-right: 14px !important; vertical-align: middle !important; }
.table-shop-cart th:nth-child(1) { width: 42%; }
.table-shop-cart th:nth-child(2) { width: 19%; }
.table-shop-cart th:nth-child(3) { width: 20%; }
.table-shop-cart th:nth-child(4) { width: 19%; }
.table-shop-cart .order_product .infor { flex: 1; min-width: 0; }
.table-shop-cart .order_quantity { gap: 14px; flex-wrap: wrap; }
.s-shop-cart .left { margin-right: 0; }
.table-shop-cart .order_product .image img { background: #fff; object-fit: contain; }
.b2b-carrello-vuoto { padding: 40px 0; text-align: center; color: var(--main-4, #777); }
.b2b-totali { list-style: none; padding: 0; margin: 0 0 24px 0; }
.b2b-totali li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line, #eee); font-size: 14px; }
.b2b-totali li span:last-child { font-weight: 500; white-space: nowrap; }
.b2b-opzioni-consegna { margin-bottom: 14px; }
.b2b-carrello-etichetta { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 18px 0 8px 0; }
#modalitaconsegna, #notedocumento { width: 100%; border: 1px solid var(--line, #e5e5e5); padding: 10px; background: #fff; }
.b2b-carrello-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.b2b-nota-bene { margin-top: 40px; }
.b2b-nota-bene ol { padding-left: 20px; list-style: decimal; }
.b2b-nota-bene ol li { list-style: decimal; }
.b2b-nota-bene li { margin-bottom: 12px; line-height: 24px; }
.b2b-nota-bene .highlight { font-weight: 600; color: var(--primary, #c29958); }

/* ---- wishlist ---- */
.b2b-wishlist-azioni { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.b2b-wishlist-azioni input { width: 60px; border: 1px solid var(--line, #e5e5e5); padding: 8px; text-align: center; }
.b2b-wishlist-azioni .tf-btn { padding: 8px 14px; font-size: 13px; }
.wrapper-wishlist .card_product-wrapper .remove { cursor: pointer; }

/* ---- rivenditore piu' vicino ---- */
.b2b-rivenditori .modal-dialog { max-width: 900px; margin: 15px auto; padding-left: 15px; padding-right: 15px; }
.b2b-rivenditori .modal-content { border-radius: unset; padding: 30px 25px 25px 25px; position: relative; }
.b2b-rivenditori .icon-close-popup { position: absolute; top: 0; right: 0; left: auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
.b2b-rivenditori-ricerca { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.b2b-rivenditori-ricerca input { flex: 1 1 260px; border: 1px solid #e5e5e5; padding: 10px; }
.b2b-rivenditori-ricerca .tf-btn { white-space: nowrap; }
#mappa_rivenditori { width: 100%; height: 380px; border: 1px solid #e5e5e5; z-index: 0; }
#lista_rivenditori { margin-top: 12px; font-size: 14px; }
#lista_rivenditori .riv { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
#lista_rivenditori .riv .num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #c29958; color: #fff; text-align: center; line-height: 26px; font-weight: 700; }
#lista_rivenditori .riv .dist { margin-left: auto; white-space: nowrap; font-weight: 700; color: #c29958; }
#lista_rivenditori .riv a { color: #c29958; text-decoration: underline; }
.leaflet-marker-pane .b2b-marker-num { background: #c29958; color: #fff; border-radius: 50%; width: 26px; height: 26px; line-height: 26px; text-align: center; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.leaflet-marker-pane .b2b-marker-user { background: #1f6feb; border-radius: 50%; width: 18px; height: 18px; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ---- rappresentante: cliente per cui si effettua l'ordine ---- */
.b2b-seleziona-cliente { position: fixed; bottom: 0; left: 0; z-index: 1040; background: var(--primary, #c29958); padding: 10px 14px; max-width: 100%; }
.b2b-seleziona-cliente select, .b2b-seleziona-cliente input { width: 300px; max-width: 100%; border: 1px solid #fff; padding: 6px 8px; background: #fff; display: block; }
.b2b-seleziona-cliente p, .b2b-seleziona-cliente label { margin: 0 0 4px 0; display: block; }
.b2b-seleziona-cliente #div_aggiunta_cliente_rappresentante { margin-top: 8px; }
.b2b-seleziona-cliente .b2b-link-bianco { color: #fff; text-decoration: underline; font-size: 13px; }
/* nuovo cliente del rappresentante (ott 2026): modale con lo stile della registrazione del template */
.modal-nuovo-cliente .modal-dialog { max-width: 760px; }
.modal-nuovo-cliente .modal-content { padding: 30px 25px 25px 25px; border-radius: unset; max-height: 96vh; overflow-y: auto; position: relative; }
.modal-nuovo-cliente .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-nuovo-cliente .header .icon-close-popup { cursor: pointer; font-size: 14px; }
.modal-nuovo-cliente fieldset { margin-bottom: 18px; position: relative; }
.modal-nuovo-cliente .bottom { margin-top: 10px; }

/* ---- cookie ---- */
#cookie-banner {
    position: fixed; width: 90%; bottom: 20px; left: 20px; right: 20px; background-color: var(--primary, #c29958); color: #fff;
    padding: 15px; box-shadow: 0 0 10px rgba(0,0,0,0.2); display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 1050;
}
#cookie-banner a { color: #fff; text-decoration: underline; }
#cookie-banner button { background-color: #fff; color: var(--primary, #c29958); border: none; padding: 10px 15px; cursor: pointer; font-weight: 600; }

/* ---- SweetAlert (conferme e avvisi del motore) e tabella wishlist nei popup ---- */
.swal2-container { z-index: 20000 !important; }
.wishlist-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.wishlist-table th, .wishlist-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #ddd; }
.wishlist-table img { width: 100px; object-fit: cover; }
.add-to-cart-btn { background-color: var(--primary, #c29958); color: #fff; border: none; padding: 8px 16px; cursor: pointer; font-size: 12px; }
.remove-to-cart-btn { background-color: #b23b3b; color: #fff; border: none; padding: 8px 16px; cursor: pointer; font-size: 12px; }

@keyframes ruota { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---- card: i due badge (non disponibile + colore oro) su schermi piccoli ---- */
.badge-box { flex-wrap: wrap; gap: 4px 6px; right: 10px; }
@media (max-width: 767px) {
    .badge-box > * { font-size: 10px; line-height: 16px; padding: 2px 6px; white-space: nowrap; }
}

/* ---- rivenditore piu' vicino dentro la scheda prodotto: il prodotto resta sopra, ricerca e mappa sotto ---- */
.modal-quick-view .modal-content { flex-wrap: wrap; }
.b2b-rivenditori-pannello { flex: 0 0 100%; width: 100%; padding: 24px 15px 30px 15px; border-top: 1px solid var(--line, #e5e5e5); }
@media (min-width: 1200px) {
    .b2b-rivenditori-pannello { padding: 32px 40px 40px 40px; }
}
.b2b-rivenditori-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.b2b-rivenditori-pannello .b2b-avviso-prezzo { margin-bottom: 14px; }

/* ---- clessidra dentro i caroselli in attesa del catalogo (nuovi arrivi, piu' venduti) ---- */
.b2b-caricamento { text-align: center; padding: 50px 0; }
/* 19/10/2026: al posto del carattere clessidra c'e' la gif del cliente, che si anima
   da sola: niente rotazione, altrimenti girerebbe anche l'immagine. */
.b2b-caricamento .b2b-clessidra { display: inline-block; line-height: 0; }
.b2b-caricamento .b2b-clessidra img { width: 72px; height: 72px; }
.b2b-caricamento p { margin: 14px 0 0 0; font-size: 14px; color: var(--main-4, #777); }
.bg-dark-brown .b2b-caricamento p { color: var(--white, #fff); }

/* ---- privacy policy e cookie policy: testi del sito (generati da iubenda) dentro la pagina di testo del template ---- */
.b2b-legale { font-size: 16px; line-height: 26px; color: var(--main-4, #555); }
.b2b-legale h1 { font-size: 22px; line-height: 32px; font-weight: 400; margin: 0 0 16px 0; color: var(--main, #181818); }
.b2b-legale h1 strong { font-weight: 500; }
.b2b-legale h2 { font-family: "Figo Shiftz Editorial", serif; font-size: 26px; line-height: 34px; font-weight: 400; margin: 44px 0 18px 0; padding-top: 0 !important; color: var(--main, #181818); }
.b2b-legale h3 { font-size: 18px; line-height: 28px; font-weight: 500; margin: 26px 0 8px 0; color: var(--main, #181818); }
.b2b-legale h4, .b2b-legale h5, .b2b-legale h6 { font-size: 16px; line-height: 26px; font-weight: 500; margin: 18px 0 6px 0; color: var(--main, #181818); }
.b2b-legale p { margin: 0 0 12px 0; }
.b2b-legale ul { list-style: none; padding: 0; margin: 0 0 12px 0; }
.b2b-legale ul ul { padding-left: 0; }
.b2b-legale ul.for_boxes > li > ul.for_boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.b2b-legale .iconed, .b2b-legale .box_primary { border: 1px solid var(--line, #e5e5e5); padding: 18px 20px; height: 100%; margin-bottom: 16px; }
.b2b-legale .iconed h3, .b2b-legale .box_primary > h3 { margin-top: 0; }
.b2b-legale .iconed ul li h3 { font-size: 16px; margin: 10px 0 2px 0; }
.b2b-legale ol { padding-left: 20px; margin: 0 0 12px 0; }
.b2b-legale ol li, .b2b-legale .wrap ul li, .b2b-legale .expand-content > ul li { list-style: disc; margin-left: 20px; }
.b2b-legale a { color: var(--primary, #c29958); text-decoration: underline; }
.b2b-legale table { width: 100%; border-collapse: collapse; margin: 0 0 16px 0; }
.b2b-legale th, .b2b-legale td { border: 1px solid var(--line, #e5e5e5); padding: 8px 10px; text-align: left; vertical-align: top; }

/* ---- scritta "Work in progress" al posto di un modulo non ancora attivo (newsletter in home) ---- */
.b2b-wip { display: inline-flex; flex-direction: column; gap: 4px; margin: 10px 0 0 0; padding: 14px 22px; border: 1px solid var(--main, #181818); font-size: 16px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.b2b-wip span { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--main-4, #777); }

/* ---- lista desideri vuota: si vede solo il blocco in italiano scritto dal raccordo, non quello in inglese
        che main.js del template aggiunge all'apertura trovando la griglia ancora vuota ---- */
#div_wishlist .tf-wishlist-empty:not(.b2b-wishlist-vuota) { display: none !important; }
#div_wishlist .tf-wishlist-empty.b2b-wishlist-vuota { grid-column: 1 / -1; }

/* 22/10/2026 - pagina Chi siamo (chi-siamo.html): classi usate nell'html di Rive Studio, css non fornito */
.s-about-blocks .about-block { margin-bottom: 60px; }
.s-about-blocks .about-block:last-child { margin-bottom: 0; }
.s-about-blocks .about-block_title { font-size: 32px; line-height: 1.25; margin-bottom: 20px; }
.s-about-blocks .about-block_subtitle { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; color: var(--main-4, #777); }
.s-about-blocks .about-block_text p { margin-bottom: 14px; }
.s-about-blocks .about-block_text p:last-child { margin-bottom: 0; }
.s-about-blocks .about-block_list { list-style: disc; padding-left: 20px; margin: 0 0 14px 0; }
.s-about-blocks .about-block_list li { margin-bottom: 8px; }
.s-about-blocks .about-block_image img { width: 100%; height: auto; display: block; }
.s-about-blocks #oro-9-carati { scroll-margin-top: 120px; }
@media (max-width: 767px) {
    .s-about-blocks .about-block { margin-bottom: 40px; }
    .s-about-blocks .about-block_title { font-size: 26px; }
    .s-about-blocks .about-block_image { margin-top: 20px; }
}
