/**
 * Override globali — caricato per ultimo (dopo Elementor e template.css).
 * Scrivi qui le regole che devono avere priorità sul resto del sito.
 */

/* Header: il tema forza maiuscolo su "Search" (header v6/v7) */
.bwp-header.header-v6 .text-search .search-toggle,
.bwp-header.header-v7 .text-search .search-toggle,
.bwp-header .header-page-link .search-box .search-toggle span {
	text-transform: none;
}

/* Pulsanti misura: quadrati, un solo bordo */
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label {
	border-radius: 0 !important;
	-webkit-border-radius: 0 !important;
	box-shadow: none !important;
	border: 1px solid #ccc !important;
	background: transparent !important;
	min-width: 40px;
	min-height: 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce div.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce div.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce div.product .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce div.product .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce:not(.archive) li.product .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce:not(.archive) li.product .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce:not(.archive) li.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce:not(.archive) li.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce:not(.archive) li.product .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce:not(.archive) li.product .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.archive .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.archive .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.archive .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.archive .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.archive .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.archive .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .wc-product-table-wrapper .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .wc-product-table-wrapper .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .wc-product-table-wrapper .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .wc-product-table-wrapper .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .wc-product-table-wrapper .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .wc-product-table-wrapper .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.single-product .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.single-product .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.single-product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.single-product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.single-product .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.single-product .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle{
	border-radius: 0% !important;
}

body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label::before,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label::before {
	display: none !important;
	content: none !important;
	border: none !important;
}

body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label:hover,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label.selected,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label:hover,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label.selected {
	border: 1px solid var(--gray-dark, #000) !important;
	background: var(--gray-dark, #000) !important;
	color: #fff !important;
	box-shadow: none !important;
}

body.single-product .type_attribute label {
	font-weight: bold;
}


.quickview-container .product-type-variable .variations_form.cart table tr td label, .single-product .product-type-variable .variations_form.cart table tr td label,
.quickview-container .bwp-single-info .single_add_to_cart_button.button, .single-product .bwp-single-info .single_add_to_cart_button.button,
.quickview-container .bwp-single-info .button.quick-buy, .single-product .bwp-single-info .button.quick-buy,
.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top{
    text-transform: unset !important;

}

.quickview-container .bwp-single-info .woosw-wishlist, .single-product .bwp-single-info .woosw-wishlist{
	margin-right: 0 !important;
}

.quickview-container .bwp-single-info .woosw-wishlist .woosw-btn:before, .single-product .bwp-single-info .woosw-wishlist .woosw-btn:before {
    color: #ffffff91;
}

.quickview-container .bwp-single-info .woosw-wishlist .woosw-btn, .single-product .bwp-single-info .woosw-wishlist .woosw-btn {
    background: #a2872c;

}

/* ============================================================
   Video prodotto self-hosted (<video>) — vedi functions.php
   ============================================================ */
/* Slide "inner" nel carosello immagini */
.video-additional video.adena-self-video {
    width: 100%;
    height: auto;
    display: block;
}
/* Modale popup (stile Video = Popup) */
.content-video .modal-dialog video.adena-self-video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

/* ============================================================
   360 / 3D da video — box + scrubbing (vedi js/adena-360-video.js)
   Riusa l'overlay .content-product-360-view del parent; il box e la X
   sono ridefiniti qui perche' non usiamo .product-360-view (a cui si
   aggancerebbe il viewer a immagini del parent).
   ============================================================ */
.adena-360-video-wrap .adena-360-video-box {
    position: relative;
    width: calc(100% - 30px);
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
}
.adena-360-video-wrap .adena-360-video-box > .adena-360-button {
    height: 30px;
    width: 30px;
    position: absolute;
    top: -10px;
    right: -10px;
    left: auto;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    z-index: 2;
}
.adena-360-video-wrap .adena-360-video-box > .adena-360-button:before,
.adena-360-video-wrap .adena-360-video-box > .adena-360-button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #222;
    transform: translate(-50%, -50%) rotate(45deg);
}
.adena-360-video-wrap .adena-360-video-box > .adena-360-button:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.adena-360-video-stage {
    position: relative;
    width: 100%;
    text-align: center;
}
.adena-360-video-stage video {
    width: auto;
    max-width: 100%;
    max-height: 70vh;      /* il video (anche verticale) sta sempre nello schermo */
    height: auto;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
    cursor: ew-resize;
    touch-action: none; /* niente scroll pagina durante il drag su touch */
}
.adena-360-video-wrap.is-scrubbing .adena-360-video-stage video {
    cursor: grabbing;
}
.adena-360-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    opacity: 0.65;
}

/* ============================================================
   Tooltip SEMPRE visibili su icone Video (play) e 360/3D.
   Il tema mostra il tooltip (content: attr(data-title)) solo all'hover
   (opacity:0/visibility:hidden); qui lo rendiamo persistente cosi' l'utente
   capisce subito che le icone sono cliccabili.
   ============================================================ */
.adena-360-button.image:before,
.adena-360-button.image:after,
.contents-detail .bwp-single-product .adena-bt-video .bwp-video:before,
.contents-detail .bwp-single-product .adena-bt-video .bwp-video:after {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---- Mobile: adattamenti video/360 ---- */
@media (max-width: 767px) {
    /* box 360 video piu' compatto */
    .adena-360-video-wrap .adena-360-video-box {
        padding: 15px;
    }
    .adena-360-video-wrap .adena-360-video-box > .adena-360-button {
        top: 5px;
        right: 5px;
    }
    .adena-360-video-stage video {
        max-height: 65vh;
    }

    /* tooltip SOTTO l'icona (a destra sforerebbe fuori schermo) e freccia
       laterale nascosta perche' punterebbe nella direzione sbagliata */
    .adena-360-button.image:before,
    .contents-detail .bwp-single-product .adena-bt-video .bwp-video:before {
        right: auto;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 7px);
    }
    .adena-360-button.image:after,
    .contents-detail .bwp-single-product .adena-bt-video .bwp-video:after {
        display: none !important;
    }
}

/* ============================================================
   PAGINA CHI SIAMO (id 9095)
   ============================================================ */

/* Il pulsante "Leggi la storia" era attaccato alla foto della
   sezione successiva: stesso respiro (70px) del resto della pagina */
.page-id-9095 .elementor-element-4c2bb64 {
    margin-bottom: 70px;
}

/* Banner titolo pagine: cache-bust dopo la sostituzione dell'immagine (ago 2026).
   Il tema stampa l'URL inline senza versione: i browser tenevano la foto vecchia. */
.page-title.bwp-title {
    background-image: url(/wp-content/uploads/2024/04/bg-breadcrumb.jpg?v=2) !important;
}

/* ============================================================
   PAGINA PRODOTTO — Leggi di più + Accordion summary
   ============================================================ */

body.single-product .anelli-product-description {
    margin: 0 0 24px;
    position: relative;
}

body.single-product .anelli-product-description__content {
    overflow: hidden;
    transition: max-height 0.45s ease;
}

body.single-product .anelli-product-description__content.is-truncated {
    max-height: 180px;
    position: relative;
}

body.single-product .anelli-product-description__content.is-truncated::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

body.single-product .anelli-product-description__content.is-expanded {
    max-height: none;
}

body.single-product .anelli-product-description__content.is-expanded::after {
    display: none;
}

body.single-product .anelli-read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gray-dark, #1a1a1a);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

body.single-product .anelli-read-more:hover {
    opacity: 0.7;
}

body.single-product .anelli-read-more .anelli-read-more__less {
    display: none;
}

body.single-product .anelli-read-more[aria-expanded="true"] .anelli-read-more__more {
    display: none;
}

body.single-product .anelli-read-more[aria-expanded="true"] .anelli-read-more__less {
    display: inline;
}

body.single-product .anelli-product-accordions {
    margin: 32px 0 0;
    width: 100%;
}

body.single-product .anelli-accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

body.single-product .anelli-accordion-item:first-child {
    border-top: 1px solid #e5e5e5;
}

body.single-product .anelli-accordion-item__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--gray-dark, #1a1a1a);
    cursor: pointer;
    list-style: none;
}

body.single-product .anelli-accordion-item__title::-webkit-details-marker {
    display: none;
}

body.single-product .anelli-accordion-item__title::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    margin-left: 16px;
    flex-shrink: 0;
}

body.single-product .anelli-accordion-item[open] .anelli-accordion-item__title::after {
    content: "−";
}

body.single-product .anelli-accordion-item__content {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

body.single-product .anelli-accordion-item__content ul {
    margin: 0;
    padding-left: 18px;
}

body.single-product .anelli-accordion-item__content li {
    margin-bottom: 8px;
}

body.single-product .anelli-accordion-item__content li:last-child {
    margin-bottom: 0;
}

body.single-product .anelli-accordion-item__content p {
    margin: 0 0 12px;
}

/* Specifiche tecniche — lista senza tabella */
body.single-product .anelli-product-specs {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.single-product .anelli-product-specs__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
}

body.single-product .anelli-product-specs__label {
    flex: 0 0 38%;
    max-width: 220px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gray-dark, #1a1a1a);
}

body.single-product .anelli-product-specs__value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
}

body.single-product .anelli-product-specs__value p {
    margin: 0;
}

@media (max-width: 767px) {
    body.single-product .anelli-product-specs__item {
        flex-direction: column;
        gap: 6px;
        padding: 16px 0;
    }

    body.single-product .anelli-product-specs__label {
        flex: none;
        max-width: none;
    }
}

body.single-product .summary.entry-summary > .anelli-product-accordions {
    width: 100%;
}

body.single-product .bwp-single-info .product_meta,
body.single-product .summary.entry-summary .product_meta {
    margin-top: 28px;
    border-top: none;
    padding-top: 0;
}

body.single-product .summary.entry-summary > .woocommerce-tabs {
    width: 100%;
}
