/*
Theme Name: Dental Fusioni
Theme URI: https://shop.dentalfusioni.it
Author: MAD Agency
Author URI: https://mad.agency
Description: Tema block-based per lo shop Dental Fusioni (WooCommerce). Sviluppato da MAD Agency.
Version: 1.6.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: dentalfusioni
*/

.df-card { transition: box-shadow .2s ease, transform .2s ease; }
.df-card:hover { box-shadow: 0 6px 24px rgba(19,35,63,.12); transform: translateY(-2px); }
.wp-block-navigation a:hover { text-decoration: underline; }

/* =====================================================================
   Restyle LAYOUT (MAD) — solo composizione/spaziatura, nessun cambio
   di palette/tipografia o di logica WooCommerce.
   ===================================================================== */

/* =====================================================================
   Header / footer / homepage — da grafica/designhomepage-v1.html
   ===================================================================== */
.df-wrap { box-sizing: border-box; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 64px; }
.df-header, .df-footer, .df-home { font-family: var(--wp--preset--font-family--body); color: #13233F; }
.df-home { margin: 0; }
.df-home > * , .df-home .wp-block-group { margin-block: 0; }
.df-home h1, .df-home h2, .df-home h3 { color: #13233F; }

/* --- Header (sticky sul wrapper template-part) --- */
.wp-site-blocks > header,
header.wp-block-template-part { position: sticky; top: 0; z-index: 999; }
.wp-site-blocks > header + * { margin-block-start: 0; }
.df-header { background: var(--wp--preset--color--contrast); color: #fff; }
.df-header > * { margin-block: 0; }

/* Header (parts/header.html), mobile first.
   Barra alta: messaggio · consegna · telefono · Accedi · carrello.
   Riga principale: logo · menu (HOME, PRODUZIONE, MARCHI, INVIO LAVORAZIONI) · ricerca stretta.
   Mobile: barra alta = telefono + account + carrello; sotto logo + hamburger, ricerca a tutta larghezza. */
.df-utility { background: var(--wp--preset--color--contrast); color: #C9D6E6; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.12); }
.df-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.df-utility__inner > * { margin-block: 0; }
.df-utility__left { display: none; align-items: center; gap: 8px; }
.df-utility__info { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.df-utility__delivery, .df-utility__sep { display: none; }
.df-utility__sep { color: rgba(255,255,255,.24); }
.df-utility a { color: #fff; font-weight: 600; text-decoration: none; }
.df-utility a:hover { color: #2E9BD6; }
.df-utility__tel { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.df-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none !important; line-height: 1; flex-shrink: 0; }
.df-brand img { display: block; height: 40px; width: auto; }
.df-brand__payoff { font-family: var(--wp--preset--font-family--heading); font-size: 8px; font-weight: 700; letter-spacing: 1.8px; color: #8FA6C4; padding-left: 3px; white-space: nowrap; }

.df-nav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-block: 10px; }
.df-nav__inner > * { margin-block: 0 !important; }
.df-nav__inner > .df-brand { order: 1; flex: 1 1 auto; min-width: 0; }
.df-nav__inner > .df-menu { order: 2; }
.df-nav__inner > .df-search { order: 3; flex: 1 1 100%; }
.df-nav .df-menu__burger { margin-left: 0; margin-right: -10px; }

.df-search { display: flex; height: 44px; border: 2px solid #2E9BD6; border-radius: 10px; overflow: hidden; background: #fff; box-sizing: border-box; }
.df-search input[type="search"] { flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 0; outline: none; font: inherit; font-size: 16px; color: #13233F; background: transparent; }
.df-search button { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; border: 0; background: #2E9BD6; color: #13233F; cursor: pointer; }
.df-search button:hover { background: #fff; }
/* ricerca dell'header discreta (tutte le larghezze): campo scuro trasparente, si accende al focus */
.df-nav__inner > .df-search { height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); transition: background .15s, border-color .15s; }
.df-nav__inner > .df-search input[type="search"] { padding: 0 4px 0 16px; color: #fff; }
.df-nav__inner > .df-search input[type="search"]::placeholder { color: #A9BBD3; }
.df-nav__inner > .df-search button { flex-basis: 44px; background: transparent; color: #C9D6E6; }
.df-nav__inner > .df-search:hover { border-color: rgba(255,255,255,.4); }
.df-header .df-nav__inner > .df-search:focus-within { background: #fff; border-color: #2E9BD6; box-shadow: none; }
.df-nav__inner > .df-search:focus-within input[type="search"] { color: #13233F; }
.df-nav__inner > .df-search:focus-within button { color: #14477D; }
.df-nav__inner > .df-search button:hover { background: transparent; color: #2E9BD6; }

.df-header__actions { gap: 4px !important; flex-shrink: 0; }
.df-header__actions .wc-block-customer-account__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; }
.df-header__actions .wc-block-customer-account__link .label { display: none; }
.df-header .wc-block-mini-cart__button { min-height: 44px; padding: 0 8px; }
.df-header__actions, .df-header__actions a, .df-header .wc-block-mini-cart__button { color: #fff !important; font-weight: 600; font-size: 13px; }
.df-header .wc-block-customer-account__link .label { color: #C9D6E6; }
.df-header__actions a:hover, .df-header .wc-block-mini-cart__button:hover, .df-header__actions a:hover .wc-block-customer-account__link .label { color: #2E9BD6 !important; }
.df-header .wc-block-customer-account__account-icon,
.df-header__actions svg { fill: currentColor; }
.df-header .wc-block-mini-cart__badge { background: #2E9BD6 !important; color: #13233F !important; border: none !important; font-weight: 700; }
.wc-block-mini-cart__drawer .wc-block-components-button.contained,
.wc-block-mini-cart__footer .wc-block-cart__submit-button,
.wc-block-mini-cart__footer-actions a.wc-block-mini-cart__footer-checkout { background-color: #14477D !important; color: #fff !important; }

.df-nav { background: var(--wp--preset--color--contrast); }
.df-nav { position: relative; }
@media (min-width: 768px) {
	.df-utility__left { display: flex; }
	.df-header__actions .wc-block-customer-account__link .label { display: inline; }
}
@media (min-width: 1024px) {
	.df-utility__inner { min-height: 36px; gap: 24px; }
	.df-utility__info { margin-right: 0; margin-left: auto; gap: 20px; }
	.df-utility__delivery, .df-utility__sep { display: inline; }
	.df-utility__tel, .df-header__actions .wc-block-customer-account__link, .df-header .wc-block-mini-cart__button { min-height: 36px; }
	.df-nav__inner { flex-wrap: nowrap; gap: 28px; min-height: 72px; padding-block: 0; }
	.df-nav__inner > .df-brand { flex: 0 0 auto; }
	.df-brand img { height: 52px; }
	.df-brand__payoff { font-size: 9px; letter-spacing: 2.2px; }
	.df-nav__inner { min-height: 80px; }
	.df-nav__inner > .df-menu { flex: 1 1 auto; min-width: 0; }
	.df-menu__list, .df-menu.is-open .df-menu__list { justify-content: center; gap: 26px !important; }
	.df-menu__link { min-height: 80px !important; font-size: 12px !important; letter-spacing: .6px !important; }
	.df-nav__inner > .df-search { flex: 0 1 240px; height: 38px; }
	.df-nav__inner > .df-search input[type="search"] { font-size: 14px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.df-nav__inner { gap: 20px; }
	.df-brand img { height: 42px; }
	.df-brand__payoff { display: none; }
	.df-menu__list, .df-menu.is-open .df-menu__list { gap: 16px !important; }
	.df-menu__link { font-size: 11.5px !important; letter-spacing: .2px !important; }
	.df-nav__inner > .df-search { flex-basis: 180px; }
	.df-nav__inner > .df-search input[type="search"] { padding-left: 14px; font-size: 13px; }
	.df-utility__left { display: none; }
}
.df-nav__inner { position: static; }
.df-nav .df-btn--outline { border-color: #fff; color: #fff !important; }
.df-nav .df-btn--outline:hover { background: #fff; color: #13233F !important; }
/* focus da tastiera: chiaro sul blu, blu dentro i pannelli bianchi */
.df-header a:focus-visible, .df-header button:focus-visible, .df-header input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.df-header .df-search:focus-within { box-shadow: 0 0 0 2px #fff; }
.df-header .df-panel a:focus-visible, .df-header .df-panel button:focus-visible,
.df-menu.is-open .df-menu__list a:focus-visible, .df-menu.is-open .df-menu__list button:focus-visible { outline-color: #14477D; }

/* --- Menu principale (blocco dentalfusioni/main-menu) — mobile first: hamburger + accordion --- */
.df-menu { font-family: var(--wp--preset--font-family--heading); }
.df-menu .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.df-menu ul { list-style: none; margin: 0; padding: 0; }
.df-menu__burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.df-menu__burger:hover { color: #2E9BD6; }
.df-menu__burger-close, .df-menu.is-open .df-menu__burger-open { display: none; }
.df-menu.is-open .df-menu__burger-close { display: inline; }
.df-menu__list { display: none; }
.df-menu.is-open .df-menu__list { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; max-height: calc(100vh - 150px); overflow-y: auto; padding: 8px 16px 24px; background: #fff; box-shadow: 0 24px 48px rgba(19,35,63,.16); }
.df-menu__item { border-bottom: 1px solid #EEF4FA; }
.df-menu__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; font-size: 16px; color: #13233F; text-align: left; text-decoration: none; cursor: pointer; }
.df-menu__link:hover { color: #14477D; text-decoration: none; }
.df-menu__chevron { flex-shrink: 0; transition: transform .2s; }
.df-menu__trigger { cursor: pointer; }
.df-reg { font-size: .6em; vertical-align: super; line-height: 0; color: inherit; }
.is-open > .df-menu__trigger .df-menu__chevron, .df-prod__col.is-open .df-prod__title .df-menu__chevron { transform: rotate(180deg); }
.df-panel { display: none; }
.df-menu__item.is-open > .df-panel { display: block; padding-bottom: 12px; }
@media (max-width: 1023px) { .df-panel .df-wrap { padding-inline: 0; } }
.df-menu__cta { border-bottom: 0; padding-top: 16px; }

/* Produzione: famiglie → categorie */
.df-prod__col { border-top: 1px solid #EEF4FA; }
.df-prod__title { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; color: #14477D; text-align: left; cursor: pointer; }
.df-prod__list { display: none; padding: 0 0 8px 24px !important; }
.df-prod__col.is-open .df-prod__list { display: block; }
.df-prod__list > li { padding: 4px 0; }
.df-prod__link { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; font-size: 16px; color: #13233F; text-decoration: none; }
.df-prod__sub { display: flex; flex-wrap: wrap; gap: 0 16px; }
.df-prod__sub a { display: inline-flex; align-items: center; min-height: 36px; font-family: var(--wp--preset--font-family--body); font-size: 15px; color: #5A6572; text-decoration: none; }
.df-prod__link:hover, .df-prod__sub a:hover { color: #14477D; text-decoration: underline; }
.df-promo { display: none; }
.df-prod__all { display: flex; align-items: center; min-height: 44px; padding: 8px 0 0 12px; border-top: 1px solid #EEF4FA; }
@media (min-width: 1024px) { .df-prod__all { grid-column: 1 / -1; min-height: 0; padding: 20px 0 0; border-top-color: #D9E3EE; } }

/* Marchi: su mobile elenco con logo piccolo a sinistra del nome */
.df-brands { display: grid; grid-template-columns: 1fr; }
.df-brand-tile { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 12px; color: #13233F; text-decoration: none; font-weight: 600; font-size: 16px; }
.df-brand-tile:hover { color: #14477D; }
.df-brand-tile__logo img { display: block; width: 32px; height: 32px; object-fit: contain; }
.df-brand-tile__sub { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 13px; color: #5A6572; }
.df-brand-tile.is-df { color: #14477D; }
.df-panel__foot { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 0 12px; }
.df-panel__foot small { font-family: var(--wp--preset--font-family--body); font-size: 13px; color: #5A6572; }

/* Tablet/mobile: il bottone "Invio lavorazioni" passa in fondo al menu */
.df-nav__inner > .df-btn { display: none; }

@media (min-width: 1024px) {
	.df-nav__inner > .df-btn { display: inline-flex; }
	.df-menu__burger, .df-menu__cta { display: none; }
	.df-menu__list, .df-menu.is-open .df-menu__list { display: flex; position: static; gap: 36px; max-height: none; overflow: visible; padding: 0; background: none; box-shadow: none; }
	.df-menu__item { border: 0; }
	.df-menu__link { width: auto; min-height: 56px; font-size: 14px; letter-spacing: .3px; color: #fff; }
	.df-menu__link:hover, .df-menu__item.is-open > .df-menu__trigger, .df-menu__link[aria-current] { color: #2E9BD6; }
	.df-menu__item.is-open > .df-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; padding: 32px 0 36px; background: #fff; border-top: 1px solid #D9E3EE; box-shadow: 0 24px 48px rgba(19,35,63,.16); }

	.df-panel__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
	.df-prod { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
	.df-prod__col { border: 0; }
	.df-prod__title { min-height: 0; padding: 0 0 14px; cursor: default; }
	.df-prod__title .df-menu__chevron { display: none; }
	.df-prod__list, .df-prod__col.is-open .df-prod__list { display: block; padding: 0 !important; }
	.df-prod__list > li { padding: 0 0 10px; }
	.df-prod__link { min-height: 0; font-size: 15px; }
	.df-prod__sub a { min-height: 0; font-size: 14px; }
	.df-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 16px; background: #EEF4FA; color: #3E4A57; }
	.df-promo strong { font-size: 18px; font-weight: 800; color: #13233F; }
	.df-promo p { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 15px; line-height: 1.5; }

	.df-brands { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
	.df-brand-tile { flex-direction: column; justify-content: center; gap: 4px; height: 72px; padding: 0 8px; border: 1px solid #D9E3EE; border-radius: 12px; background: #fff; text-align: center; font-weight: 700; font-size: 15px; transition: box-shadow .2s, border-color .2s; }
	.df-brand-tile:hover { border-color: #14477D; box-shadow: 0 6px 24px rgba(19,35,63,.12); }
	.df-brand-tile.has-logo .df-brand-tile__name { font-size: 12px; font-weight: 600; color: #5A6572; }
	.df-brand-tile__logo img { width: auto; height: 32px; max-width: 120px; }
	.df-brand-tile.is-df { background: #14477D; border-color: #14477D; color: #fff; }
	.df-brand-tile.is-df .df-brand-tile__sub { color: #C9D6E6; }
	.df-panel__foot { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 0 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.df-menu__list { gap: 24px; }
	.df-panel__inner { grid-template-columns: 1fr; }
	.df-promo { flex-direction: row; align-items: center; flex-wrap: wrap; }
	.df-prod { gap: 24px; }
}

/* --- Menu da Aspetto → Menu (location "primary"): struttura del vecchio shop PrestaShop --- */
/* "Invio lavorazioni" è una voce del menu: il bottone a destra della barra non serve */
.df-nav__inner:has(.df-menu--primary) > .df-btn { display: none !important; }
.df-menu--primary .df-menu__home-icon { flex-shrink: 0; }
.df-menu--primary .df-menu__home .df-menu__link { justify-content: flex-start; gap: 10px; }
.df-menu--primary .is-current > .df-menu__link { color: #14477D; }
.df-mega { display: grid; grid-template-columns: 1fr; }
.df-mega__col { border-top: 1px solid #EEF4FA; }
.df-mega__col:first-child { border-top: 0; }
.df-mega__group { padding: 4px 0 8px 12px; }
.df-mega__title { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: #14477D; text-decoration: none; }
.df-mega__sub { padding-left: 12px !important; }
.df-mega__sub a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--wp--preset--font-family--body); font-size: 16px; color: #3E4A57; text-decoration: none; }
.df-mega__sub a::before { content: "›"; font-size: 1.2em; line-height: 1; color: #2E9BD6; }
.df-mega__title:hover, .df-mega__sub a:hover { color: #2E9BD6; }

@media (min-width: 1024px) {
	.df-menu--primary .df-menu__link { text-transform: uppercase; }
	.df-menu--primary .is-current > .df-menu__link { color: #2E9BD6; }
	.df-mega { grid-template-columns: repeat(var(--df-mega-cols, 3), minmax(0, 1fr)); gap: 40px; }
	.df-mega__col, .df-mega__col:first-child { border: 0; }
	.df-mega__group { padding: 0 0 18px; }
	.df-mega__title { min-height: 0; padding-bottom: 6px; font-size: 14px; color: #13233F; }
	.df-mega__sub { padding-left: 0 !important; }
	.df-mega__sub a { min-height: 0; padding: 3px 0; font-size: 14px; color: #5A6572; }
}

/* --- Bottoni / tipografia condivisa --- */
.df-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 10px; border: 1.5px solid transparent; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; text-decoration: none !important; cursor: pointer; box-sizing: border-box; transition: background .15s, color .15s; }
.df-btn--sm { height: 40px; padding: 0 18px; border-radius: 8px; font-size: 13px; letter-spacing: .5px; gap: 8px; }
.df-btn--primary { background: #14477D; color: #fff !important; }
.df-btn--primary:hover { background: #0E3561; }
.df-btn--outline { border-color: #14477D; color: #14477D !important; background: transparent; }
.df-btn--outline:hover { background: #EEF4FA; }
.df-btn--light { background: #fff; }
.df-btn--white { background: #fff; color: #13233F !important; }
.df-btn--white:hover { background: #EEF4FA; }
.df-btn--ghost { border-color: #4A6A96; color: #fff !important; }
.df-btn--ghost:hover { background: rgba(255,255,255,.08); }
.df-btn--dark { background: #13233F; color: #fff !important; border: 0; height: 48px; padding: 0 24px; }
.df-btn--block { width: 100%; height: 52px; }
.df-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.df-eyebrow { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; letter-spacing: 3px; color: #14477D; }
.df-eyebrow--light { color: #2E9BD6; }
.df-h2 { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.5px; color: #13233F; }
.df-h2--light { color: #fff !important; font-size: clamp(30px, 3.2vw, 44px); }
.df-lead { margin: 0; font-size: 18px; line-height: 1.5; color: #3E4A57; }
.df-link-strong { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: #14477D; text-decoration: none; }
.df-link-strong:hover { color: #0E3561; text-decoration: underline; }
.df-icon-box { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: #EEF4FA; color: #14477D; display: flex; align-items: center; justify-content: center; }
.df-icon-box--solid { width: 52px; height: 52px; background: #14477D; color: #fff; }

.df-section { padding-block: 96px; }
.df-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.df-section__head .df-eyebrow { margin-bottom: 12px; }

/* --- Hero slider (patterns/hero-slider.php, assets/js/hero-slider.js) ---
   Fondo blu notte. Mobile first: testo, poi foto (sfuma nel blu in alto), poi schede.
   Da 1024px: foto a destra (62%) che sfuma verso sinistra, testo sopra a sinistra,
   schede con barra di avanzamento in basso. Senza JS resta visibile solo la slide 1. */
.df-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 0% 0%, rgba(46,155,214,.22), transparent 65%), #13233F; }
.df-hero-slider { position: relative; }
.df-hero-slide { display: flex; flex-direction: column; min-width: 0; }
.df-hero-slide + .df-hero-slide { display: none; }
.df-hero__text { order: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 40px; padding-bottom: 28px; }
.df-hero__text > * { margin: 0 !important; }
.df-hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--wp--preset--font-family--heading); font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #7CC4EC; }
.df-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: #2E9BD6; }
.df-home .df-hero .df-hero__title, .df-hero__title { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.5px; color: #fff; text-wrap: balance; }
.df-hero__lead { max-width: 34rem; font-size: 1.0625rem; line-height: 1.6; color: #C9D6E6; }
.df-hero .df-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px !important; width: 100%; }
.df-hero .wp-block-button { flex: 1 1 100%; margin: 0; }
.df-hero .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 26px; border: 1.5px solid #2E9BD6; border-radius: 999px; background: #2E9BD6; color: #0B1A30; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 15px; letter-spacing: .3px; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.df-hero .wp-block-button__link::after { content: "→"; transition: transform .2s; }
.df-hero .wp-block-button__link:hover { background: #fff; border-color: #fff; color: #13233F; }
.df-hero .wp-block-button__link:hover::after { transform: translateX(4px); }
.df-hero .is-style-outline .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.df-hero .is-style-outline .wp-block-button__link::after { content: none; }
.df-hero .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.df-hero a:focus-visible, .df-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.df-hero-slide__media { order: 2; position: relative; margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
.df-hero-slide__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* con JS: slide sovrapposte nella stessa cella (niente salti di altezza) */
.df-hero-slider.is-ready { display: grid; grid-template-columns: minmax(0, 1fr); }
.df-hero-slider.is-ready > .df-hero-slide { display: flex; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.df-hero-slider.is-ready > .df-hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero__text > * { animation: dfHeroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero__text > :nth-child(2) { animation-delay: .1s; }
.df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero__text > :nth-child(3) { animation-delay: .2s; }
.df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero__text > :nth-child(4) { animation-delay: .3s; }
.df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero-slide__media img { animation: dfHeroKen 9s ease-out both; }
@keyframes dfHeroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dfHeroKen { from { transform: scale(1.08); } to { transform: scale(1); } }

/* schede di navigazione con barra di avanzamento (l'animazione guida l'autoplay) */
.df-hero-slider__nav { grid-area: 2 / 1; position: relative; z-index: 3; padding: 4px 0 20px; }
.df-hero-slider__inner { display: flex; align-items: flex-end; gap: 16px; }
.df-hero-slider__tabs { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.df-hero-slider__tab { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 10px; min-height: 44px; padding: 8px 0 0; border: 0; background: none; color: #8FA6C4; font-family: var(--wp--preset--font-family--heading); text-align: left; cursor: pointer; }
.df-hero-slider__num { font-size: 13px; font-weight: 600; }
.df-hero-slider__label { overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.df-hero-slider__bar { grid-column: 1 / -1; display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.df-hero-slider__bar span { display: block; height: 100%; background: #2E9BD6; transform: scaleX(0); transform-origin: left center; }
.df-hero-slider__tab:hover, .df-hero-slider__tab.is-active { color: #fff; }
.df-hero-slider__tab.is-done .df-hero-slider__bar span { transform: scaleX(1); background: rgba(255,255,255,.45); }
.df-hero-slider__tab.is-active .df-hero-slider__bar span { animation: dfHeroBar 6.5s linear forwards; }
.df-hero-slider.is-paused .df-hero-slider__tab.is-active .df-hero-slider__bar span { animation-play-state: paused; }
.df-hero-slider.is-static .df-hero-slider__tab.is-active .df-hero-slider__bar span { animation: none; transform: scaleX(1); }
@keyframes dfHeroBar { to { transform: scaleX(1); } }
.df-hero-slider__arrows { display: none; gap: 8px; }
.df-hero-slider__arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(19,35,63,.35); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.df-hero-slider__arrow:hover { border-color: #fff; background: rgba(255,255,255,.12); }

@media (prefers-reduced-motion: reduce) {
	.df-hero-slider.is-ready > .df-hero-slide, .df-hero-slider.is-ready > .df-hero-slide.is-active { transition: none; }
	.df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero__text > *, .df-hero-slider.is-ready > .df-hero-slide.is-active .df-hero-slide__media img { animation: none; }
}
@media (min-width: 600px) {
	.df-hero .wp-block-button { flex: 0 0 auto; }
	.df-hero .wp-block-button__link { width: auto; }
}
@media (min-width: 768px) {
	.df-hero-slider__arrows { display: flex; }
	.df-hero-slider__tabs { gap: 20px; }
}
@media (min-width: 1024px) {
	.df-hero-slide { position: relative; display: block; min-height: clamp(540px, 74vh, 680px); }
	.df-hero-slider.is-ready > .df-hero-slide { display: block; }
	.df-hero-slide__media { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; aspect-ratio: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 15%, rgba(0,0,0,.75) 32%, #000 50%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 15%, rgba(0,0,0,.75) 32%, #000 50%); }
	/* velo blu sulla foto: lega le immagini chiare al fondo e fa leggere le schede in basso */
	.df-hero-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,35,63,.8) 0, transparent 32%), linear-gradient(to right, rgba(19,35,63,.55) 0, rgba(19,35,63,.12) 55%, rgba(19,35,63,0) 100%); pointer-events: none; }
	.df-hero__text { position: relative; z-index: 2; justify-content: center; gap: 22px; min-height: inherit; box-sizing: border-box; padding-top: 72px; padding-bottom: 132px; }
	.df-hero__text > * { max-width: 560px; }
	.df-hero__lead { font-size: 1.1875rem; }
	.df-hero-slider__nav { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 36px; }
	.df-hero-slider__tabs { max-width: 620px; gap: 24px; }
	.df-hero-slider__arrows { margin-left: auto; }
	.df-hero-slider__label { font-size: 14px; }
}

/* --- Trust strip --- */
.df-trust { border-bottom: 1px solid #D9E3EE; }
.df-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.df-trust__item { display: flex; align-items: center; gap: 14px; padding: 28px 20px; border-right: 1px solid #D9E3EE; }
.df-trust__item:first-child { padding-left: 0; }
.df-trust__item:last-child { border-right: 0; padding-right: 0; }
.df-trust__item > div:last-child, .df-cat__body > div, .df-produzione__services > div, .df-band__account > div:first-child, .df-band__news > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.df-trust__item strong { font-family: var(--wp--preset--font-family--heading); font-size: 16px; }
.df-trust__item span { font-size: 15px; color: #5A6572; }

/* --- Libreria implantare (home) — mobile first --- */
.df-libreria { padding-top: 48px; }
.df-libreria__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 20px; border-radius: 16px; background: radial-gradient(120% 140% at 100% 0%, #1D5A9A 0%, #14477D 38%, #13233F 100%); color: #fff; box-shadow: 0 24px 48px -28px rgba(19, 35, 63, .55); }
.df-libreria__head .df-eyebrow { margin-bottom: 12px; font-size: 12px; letter-spacing: 2px; color: #7FC4EA; }
.df-libreria__head .df-h2 { color: #fff; }
.df-libreria__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.df-libreria__text p { margin: 0; font-size: 16px; line-height: 1.6; color: #D6E2F0; }
.df-libreria__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.df-libreria__list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; font-weight: 600; color: #fff; }
.df-libreria__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #2E9BD6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
/* foto in cornice sottile chiara: si stacca dal fondo blu senza competere col testo */
.df-libreria__media { display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 1539 / 620; padding: 6px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: rgba(255, 255, 255, .08); object-fit: cover; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .6); }
.df-libreria .df-btn { width: 100%; height: auto; min-height: 52px; padding-block: 12px; text-align: center; }
.df-libreria .df-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 601px) {
	.df-libreria .df-btn { width: auto; }
}
@media (min-width: 768px) {
	.df-libreria { padding-top: 64px; }
	.df-libreria__card { gap: 24px; padding: 40px; border-radius: 20px; }
	.df-libreria__text p, .df-libreria__list li { font-size: 17px; }
	.df-libreria__media { padding: 8px; border-radius: 18px; }
}
/* desktop: titolo | foto in alto; sotto il testo su due colonne (paragrafi | punti + pulsante) */
@media (min-width: 1024px) {
	.df-libreria__card { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "head media" "text list" "text actions"; grid-template-rows: auto auto 1fr; gap: 24px 64px; padding: 64px; border-radius: 24px; }
	.df-libreria__head { grid-area: head; align-self: center; }
	.df-libreria__head .df-h2 { font-size: clamp(32px, 3.2vw, 44px); }
	.df-libreria__media { grid-area: media; align-self: center; }
	.df-libreria__text { grid-area: text; margin-top: 16px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .16); }
	.df-libreria__list { grid-area: list; margin-top: 16px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .16); }
	.df-libreria .df-actions { grid-area: actions; align-self: start; padding-top: 8px; }
	.df-libreria__head .df-eyebrow { font-size: 13px; letter-spacing: 3px; }
}

/* --- Categorie --- */
.df-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.df-cat { display: flex; flex-direction: column; border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; color: #13233F !important; text-decoration: none !important; background: #fff; }
.df-cat__media { aspect-ratio: 1; background: #EEF4FA; color: #8FB3D9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.df-cat__media.has-image { background: #F6F9FC; }
.df-cat__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.df-vetrina { margin: 0; }
/* placeholder Woo sostituito (functions.php) */
.df-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; background: #EEF4FA; color: #8FB3D9; }
.df-cat__body { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; }
.df-cat__body > div { gap: 4px; }
.df-cat__body strong { font-family: var(--wp--preset--font-family--heading); font-size: 17px; }
.df-cat__body span { font-size: 15px; color: #5A6572; }
.df-cat__arrow { color: #14477D !important; font-size: 20px !important; }
.df-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; font-size: 15px; color: #5A6572; }
.df-chips a { padding: 8px 16px; border-radius: 999px; background: #EEF4FA; font-weight: 600; color: #14477D; text-decoration: none; }
.df-chips a:hover { background: #D9E3EE; }

/* --- Marchi --- */
.df-marchi { background: #EEF4FA; padding-block: 88px; }
.df-marchi__grid { display: grid !important; grid-template-columns: 4fr 8fr; gap: 24px; align-items: center; }
.df-marchi__grid > * { margin: 0 !important; }
.df-marchi__intro { display: flex; flex-direction: column; gap: 20px; padding-right: 32px; }
.df-disclaimer { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #5A6572; }
/* Lista marchi (blocco dentalfusioni/marchi-lista, whitelist in functions.php) */
.df-marchi-lista { display: grid; list-style: none; margin: 0; padding: 0; }
.df-marchi-lista > li { margin: 0; }
.df-marchio-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; text-align: center; font-family: var(--wp--preset--font-family--heading); text-decoration: none; }
.df-marchio-tile__logo img { display: block; width: auto; height: 32px; max-width: 120px; object-fit: contain; }
.df-marchio-tile__sub { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 13px; }
/* variante home: tile bianche su fondo tint */
.df-marchi-lista--home { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.df-marchi-lista--home .df-marchio-tile { height: 84px; padding: 0 8px; border-radius: 12px; background: #fff; font-weight: 700; font-size: 15px; color: #13233F; transition: box-shadow .2s; }
.df-marchi-lista--home .df-marchio-tile:hover { box-shadow: 0 6px 24px rgba(19,35,63,.12); text-decoration: none; }
.df-marchi-lista--home .df-marchio-tile.is-df { background: #14477D; color: #fff; font-weight: 800; }
.df-marchi-lista--home .is-df .df-marchio-tile__sub { color: #C9D6E6; }
/* variante archivio /marchi/: card tint come prima */
/* home: con il logo basta il logo (il nome resta per gli screen reader) */
.df-marchi-lista--home .df-marchio-tile.has-logo .df-marchio-tile__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.df-marchi-lista--home .df-marchio-tile__logo img { height: 44px; max-width: 132px; }
.df-marchi-lista--home .df-marchio-tile.is-df .df-marchio-tile__logo img { height: 34px; }

/* /marchi/: card con logo, nome e numero di prodotti — mobile first 2 → 3 → 5 colonne */
.df-marchi-intro { margin-block: 0 24px; font-size: 17px; line-height: 1.55; color: #3E4A57; }
.df-marchi-lista--archivio { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.df-marchi-lista--archivio > li { display: flex; }
.df-marchi-lista--archivio .df-marchio-tile { justify-content: flex-start; gap: 4px; width: 100%; box-sizing: border-box; padding: 0 0 16px; border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; background: #fff; font-weight: 700; font-size: 16px; line-height: 1.25; color: #13233F; transition: border-color .2s, box-shadow .2s, transform .2s; }
.df-marchi-lista--archivio .df-marchio-tile:hover, .df-marchi-lista--archivio .df-marchio-tile:focus-visible { border-color: #14477D; box-shadow: 0 6px 24px rgba(19,35,63,.12); transform: translateY(-2px); color: #14477D; text-decoration: none; }
.df-marchi-lista--archivio .df-marchio-tile:focus-visible { outline: 2px solid #14477D; outline-offset: 2px; }
.df-marchi-lista--archivio .df-marchio-tile__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; box-sizing: border-box; margin-bottom: 10px; padding: 16px; border-bottom: 1px solid #D9E3EE; }
.df-marchi-lista--archivio .df-marchio-tile__logo img { width: auto; height: auto; max-width: 100%; max-height: 64px; }
.df-marchi-lista--archivio .df-marchio-tile__name, .df-marchi-lista--archivio .df-marchio-tile__sub { padding-inline: 12px; }
.df-marchi-lista--archivio .df-marchio-tile__sub { font-size: 14px; color: #5A6572; }
.df-marchi-lista--archivio .df-marchio-tile.is-df { border-color: #13233F; }
.df-marchi-lista--archivio .is-df .df-marchio-tile__logo { background: #13233F; border-bottom-color: #13233F; }
.df-marchi-lista--archivio .is-df .df-marchio-tile__logo img { max-height: 44px; }
@media (min-width: 768px) {
	.df-marchi-lista--archivio { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
	.df-marchi-lista--archivio .df-marchio-tile__logo { height: 128px; padding: 20px 24px; }
	.df-marchi-lista--archivio .df-marchio-tile__logo img { max-height: 72px; }
}
@media (min-width: 1280px) { .df-marchi-lista--archivio { grid-template-columns: repeat(5, minmax(0,1fr)); } }

/* --- Sezione shop in homepage: riusa .df-cat / .df-cat-grid della vetrina --- */
.df-section__sub { margin: 12px 0 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: #3E4A57; }
.df-cat__body .df-cat__price { margin-top: 8px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 20px; color: #13233F; }
.df-cat__price small { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 13px; color: #5A6572; }
.df-cat__price del { font-weight: 400; font-size: 15px; color: #5A6572; }
.df-cat__price ins { text-decoration: none; }
.df-cat-grid--prodotti .df-cat__body { align-items: flex-end; }
@media (max-width: 1200px) { .df-cat-grid.df-cat-grid--prodotti { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 1024px) { .df-cat-grid.df-cat-grid--prodotti { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) {
	.df-cat-grid.df-cat-grid--prodotti { grid-template-columns: 1fr; }
	.df-cat-grid--prodotti .df-cat__media { height: auto; aspect-ratio: 4 / 3; }
}

/* --- Produzione su misura --- */
.df-produzione { background: #13233F; color: #fff; padding-block: 104px; }
/* desktop: testo e 4 box a sinistra, foto a destra; i box chiudono in basso allineati alle due foto piccole */
.df-produzione__grid { display: grid; grid-template-columns: 5fr 7fr; grid-template-areas: "text side" "services side"; grid-template-rows: auto 1fr; column-gap: 24px; row-gap: 32px; align-items: start; }
.df-produzione__text { grid-area: text; }
.df-produzione__side { grid-area: side; }
.df-produzione__grid > .df-produzione__services { grid-area: services; align-self: end; margin-right: 40px; gap: 16px; }
.df-produzione__grid > .df-produzione__services > div { padding: 18px 20px; }
/* sotto i 1400px la colonna sinistra è troppo stretta per 2 box affiancati: i 4 box vanno sotto su una riga */
@media (min-width: 961px) and (max-width: 1399px) {
	.df-produzione__grid { grid-template-areas: "text side" "services services"; grid-template-rows: auto auto; }
	.df-produzione__grid > .df-produzione__services { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-right: 0; }
}
.df-produzione__text { display: flex; flex-direction: column; gap: 24px; padding-right: 40px; }
.df-produzione__text p { margin: 0; font-size: 19px; line-height: 1.55; color: #C9D6E6; }
.df-produzione__text .df-actions { padding-top: 8px; }
.df-produzione__side { display: flex; flex-direction: column; gap: 20px; }
.df-produzione__media { display: block; aspect-ratio: 16 / 10; border-radius: 16px; background: #1A2E50; overflow: hidden; }
.df-produzione__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 960px) { .df-produzione__media { aspect-ratio: 4 / 3; } }
/* due foto affiancate sotto la principale, anche su mobile (piccole, non a tutta schermata) */
.df-produzione__gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.df-produzione__gallery figure { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #1A2E50; }
.df-produzione__gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .df-produzione__gallery { gap: 20px; } }
.df-produzione__services { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.df-produzione__services > div { gap: 8px; padding: 24px; border-radius: 14px; border: 1px solid #2B4166; }
.df-produzione__services strong { font-family: var(--wp--preset--font-family--heading); font-size: 18px; }
.df-produzione__services span { font-size: 16px; line-height: 1.45; color: #C9D6E6; }

/* --- Servizi --- */
/* homepage: il footer segue l'ultima sezione senza il blockGap di WordPress */
.df-home + .wp-block-template-part { margin-block-start: 0; }

/* "Al fianco del laboratorio": 2 card link con foto + card assistenza blu (mobile first) */
.df-lab-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.df-lab-card { display: flex; flex-direction: column; border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; background: #fff; color: #13233F; text-decoration: none !important; }
.df-lab-card__media { display: block; height: 200px; background: #EEF4FA; }
.df-lab-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.df-lab-card__media--abutment img { object-position: 50% 60%; }
.df-lab-card__media--mondo img { object-position: 57% 45%; }
.df-lab-card__media--ph { display: flex; align-items: center; justify-content: center; color: #5A6572; font-size: 15px; }
.df-lab-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 12px; padding: 28px 32px 32px; }
.df-lab-card__label { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: #14477D; }
.df-lab-card__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 22px; line-height: 1.25; color: #13233F; }
.df-lab-card__text { margin: 0; font-size: 17px; line-height: 1.5; color: #3E4A57; }
.df-lab-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: #14477D; }
a.df-lab-card:hover .df-lab-card__link { text-decoration: underline; }
.df-lab-card--help { gap: 16px; padding: 40px 36px; border: 0; background: #14477D; color: #fff; }
.df-lab-card__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: #fff; color: #14477D; }
.df-lab-card--help .df-lab-card__label { color: #BFD4EC; }
.df-lab-card--help .df-lab-card__title { color: #fff; }
.df-lab-card--help .df-lab-card__text { color: #D6E2F0; }
.df-lab-card__actions { display: grid; gap: 12px; margin-top: auto; padding-top: 8px; }
.df-lab-btn { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 16px; border-radius: 10px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; text-align: center; text-decoration: none !important; box-sizing: border-box; transition: background .15s; }
.df-lab-btn--white { background: #fff; color: #14477D !important; }
.df-lab-btn--white:hover { background: #EEF4FA; }
.df-lab-btn--outline { border: 1.5px solid #7FA3CC; color: #fff !important; }
.df-lab-btn--outline:hover { background: rgba(255,255,255,.08); }
.df-lab-card--help a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* bottoni WhatsApp del mu-plugin mad-whatsapp-button (link in orario, <button> fuori orario) */
button.df-lab-btn { width: 100%; border: 0; }
.df-lab-card--help .mad-wa__note, .df-bhelp .mad-wa__note { color: #D6E2F0; }
.df-bhelp .mad-wa { margin-top: 6px; }
.df-bhelp .mad-wa .df-lab-btn { margin-top: 0; }
button.df-wa-link { padding: 0; border: 0; background: none; font: inherit; color: #14477D; text-align: center; }
.df-bempty p { margin: 0 0 12px; }
.df-bempty .mad-wa__note { color: #5A6572; }
@media (min-width: 768px) {
	.df-lab-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.df-lab-card__media { height: 240px; }
	.df-lab-card--help { grid-column: 1 / -1; }
	.df-lab-card__actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1280px) {
	.df-lab-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.df-lab-card--help { grid-column: auto; }
	.df-lab-card__actions { grid-template-columns: 1fr; }
}

/* --- Band account + newsletter --- */
.df-band { padding-bottom: 96px; }
.df-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.df-band strong { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 24px; }
.df-band__account { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 16px; background: #14477D; color: #fff; }
.df-band__account > div:first-child { gap: 8px; }
.df-band__account span { font-size: 17px; line-height: 1.45; color: #D6E2F0; }
.df-band__cta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.df-band__cta .df-btn { height: 48px; padding: 0 24px; color: #14477D !important; }
.df-band__login { text-align: center; color: #fff !important; font-size: 15px; font-weight: 600; }
.df-band__news { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px; border-radius: 16px; border: 1px solid #D9E3EE; }
.df-band__news > div:first-child { gap: 6px; }
.df-band__news span { font-size: 17px; color: #3E4A57; }
.df-band__form { display: flex; gap: 12px; }
.df-band__form label { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.df-band__form input { height: 48px; border: 1px solid #C9D6E6; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; }
.df-band__form button { align-self: flex-end; }

/* --- Pagina Contatti (pattern dentalfusioni/contatti) — mobile first --- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.df-todo { padding: 0 4px; border-radius: 4px; background: #FFF3C4; color: #6B4E00; font-size: .9em; }
/* il contenuto della pagina è "constrained" (contentSize): la pagina contatti usa tutta la larghezza del tema */
.is-layout-constrained > .df-contatti.df-wrap, .wp-block-post-content > .df-contatti.df-wrap { max-width: 1440px !important; margin-inline: auto !important; }
.wp-block-post-content:has(> .df-contatti) { max-width: none !important; padding-inline: 0 !important; }
main.has-global-padding:has(.df-contatti) { padding-inline: 0 !important; }
.df-contatti > * { max-width: none; }
.df-contatti .df-chead__title { margin-bottom: 8px; }
.df-contatti__lead { margin: 0 0 28px; max-width: 720px; font-size: 18px; line-height: 1.55; color: #3E4A57; }
.df-contact-cards { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.df-contact-card .df-lab-card__body { padding: 24px; }
.df-contact-card .df-lab-card__title { margin: 0; font-size: 20px; }
.df-contact__list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.df-contact__row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; }
.df-contact__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #EEF4FA; color: #14477D; }
.df-contact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 16px; line-height: 1.45; color: #3E4A57; overflow-wrap: anywhere; }
.df-contact__label { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; color: #13233F; }
a.df-contact__value { display: inline-flex; align-items: center; min-height: 32px; color: #14477D; font-weight: 600; text-decoration: none; }
a.df-contact__value:hover { text-decoration: underline; }
.df-contact__small { font-size: 14px; color: #5A6572; }
.df-contact__maps { align-self: flex-start; margin-top: auto; min-height: 44px; }
.df-contatti__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; margin-top: 40px; }
.df-contatti__form { min-width: 0; }
.df-contatti__h2 { margin: 0 0 4px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 24px; color: #13233F; }
.df-contatti__hint { margin: 0 0 20px; font-size: 14px; color: #5A6572; }
.df-contatti__side { align-self: start; }
.df-contatti__side h2.df-cbest__head { margin: 0; }
.df-contatti__links { margin: 0; padding: 4px 0; list-style: none; }
.df-contatti__links li { margin: 0; }
.df-contatti__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 20px; border-bottom: 1px solid #EEF4FA; font-size: 16px; color: #13233F; text-decoration: none; }
.df-contatti__links a::after { content: "→"; color: #14477D; }
.df-contatti__links a:hover { background: #F6F9FC; color: #14477D; }
.df-contatti__side-note { margin: 0; padding: 16px 20px 20px; font-size: 15px; line-height: 1.5; color: #3E4A57; }
.df-cbest .df-contatti__side-note a { display: inline; min-height: 0; padding: 0; color: #14477D; font-weight: 600; text-decoration: underline; }
.df-cbest .df-contatti__side-note a:hover { background: none; }
@media (min-width: 768px) {
	.df-contact-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.df-contact-cards > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.df-contact-cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
	.df-contact-cards > :last-child { grid-column: auto; }
	.df-contatti__grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px; margin-top: 56px; }
}

/* --- Footer --- */
.df-footer { background: #13233F; color: #C9D6E6; font-size: 15px; padding: 72px 0 40px; }
.df-footer a { color: #C9D6E6; text-decoration: none; }
.df-footer a:hover { color: #fff; text-decoration: underline; }
.df-footer__grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 24px; margin-bottom: 48px; }
.df-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.df-footer__brand p { margin: 0; line-height: 1.55; max-width: 320px; }
.df-footer .df-brand__payoff { color: #8FA6C4; }
.df-footer .df-footer__note { font-size: 13px; color: #8FA6C4; }
.df-footer__col { display: flex; flex-direction: column; gap: 12px; line-height: 1.5; }
.df-footer__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: #fff; }
.df-footer a.df-footer__strong { color: #fff; }
.df-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #2B4166; font-size: 13px; color: #8FA6C4; }
.df-footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }
.df-footer__bottom a { color: #8FA6C4; }

/* --- Responsive --- */
@media (max-width: 1200px) {
	.df-wrap { padding-inline: 32px; }
	.df-cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.df-trust__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.df-trust__item { padding: 20px 16px !important; border-right: 0; }
	.df-trust__item:nth-child(odd) { padding-left: 0 !important; border-right: 1px solid #D9E3EE; }
	.df-trust__item:nth-child(-n+2) { border-bottom: 1px solid #D9E3EE; }
	.df-marchi__grid { grid-template-columns: 1fr; }
	.df-marchi__intro { padding-right: 0; }
	.df-footer__grid { grid-template-columns: repeat(4, 1fr); }
	.df-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
	.df-produzione__grid { grid-template-columns: 1fr; grid-template-areas: "text" "side" "services"; grid-template-rows: auto; }
	.df-produzione__grid > .df-produzione__services { margin-right: 0; }
	.df-produzione__text { padding-right: 0; }
	.df-trust__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.df-trust__item { padding: 20px 16px 20px 0 !important; border-right: 0; }
	.df-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
	.df-marchi-lista--home { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.df-band__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.df-wrap { padding-inline: 16px; }
	.df-section { padding-block: 64px; }
	.df-section__head { flex-direction: column; align-items: flex-start; }
	.df-trust__grid { grid-template-columns: 1fr; }
	.df-trust__item:nth-child(odd) { border-right: 0; }
	.df-trust__item:nth-child(-n+2) { border-bottom: 0; }
	.df-trust__item + .df-trust__item { border-top: 1px solid #EEF4FA; }
	.df-cat__media { height: 140px; }
	.df-cat__body { padding: 14px 16px; }
	.df-marchi { padding-block: 64px; }
	.df-marchi-lista--home { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.df-produzione { padding-block: 64px; }
	.df-produzione__services { grid-template-columns: 1fr; }
	.df-band__account { flex-direction: column; align-items: stretch; padding: 28px; }
	.df-band__news { padding: 28px; }
	.df-band__form { flex-direction: column; }
	.df-band__form button { align-self: stretch; }
	.df-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* --- HOME: fasce a tutta larghezza adiacenti, senza gap (ritmo editoriale) --- */
.wp-block-group.alignfull + .wp-block-group.alignfull { margin-block-start: 0; }

/* Sottotitolo di sezione (gerarchia) */
.df-section-subtitle {
	color: var(--wp--preset--color--neutral);
	max-width: 640px;
	margin: .25rem auto 2.25rem;
	font-size: 1.05rem;
}

/* --- PLP: header categoria riconoscibile + orientamento --- */
/* PLP: si tiene il breadcrumb a blocco (nella fascia) e si nasconde quello legacy
   duplicato. Solo sugli archivi prodotto: sul single il blocco non e' visibile,
   quindi li' si tiene il legacy (vedi sotto). */
.post-type-archive-product .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-breadcrumb { display: none; }
.df-plp-head .wc-block-breadcrumbs { margin: 0; }

/* Titolo archivio con accento colore */
.woocommerce-products-header { margin: 2rem 0 1.25rem; }
.woocommerce-products-header__title.page-title { padding-bottom: .6rem; margin-bottom: 0; }
.woocommerce-products-header__title.page-title::after {
	content: ""; display: block; width: 64px; height: 4px; margin-top: .6rem;
	background: var(--wp--preset--color--secondary); border-radius: 2px;
}
.woocommerce-products-header .term-description { color: var(--wp--preset--color--neutral); margin-top: .75rem; }

/* Conteggio risultati come badge + ordinamento piu' evidente */
.woocommerce-result-count {
	display: inline-block; margin: 0 0 1.25rem;
	background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary);
	font-weight: 600; font-size: .9rem; padding: .4rem .9rem; border-radius: 999px;
}
.woocommerce-ordering { margin-bottom: 1.5rem; }
.woocommerce-ordering select {
	padding: .45rem .7rem; border: 1px solid #cdd9e6; border-radius: 6px;
	background-color: #fff; color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
}

/* --- PLP: griglia prodotti a CSS Grid (fix card di altezza disallineata) ---
   Il layout legacy Woo usa float:left + width% -> card ad altezza indipendente,
   con prezzo/bottone a quote diverse nella stessa riga. Grid + flex risolvono. */
.woocommerce ul.products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
	margin: 0; padding: 0; list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; } /* via clearfix legacy */
.woocommerce ul.products li.product,
ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
	display: flex; flex-direction: column; height: 100%;
}
/* link interno (img+titolo+prezzo) riempie la card; il prezzo va in fondo */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex; flex-direction: column; flex: 1 1 auto;
}
.woocommerce ul.products li.product .price { margin-top: auto; }
/* il bottone resta l'ultimo elemento, ancorato in fondo alla card */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .button { margin-top: .75rem; }
/* titolo prodotto piu' contenuto (24px -> ~18px) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.15rem; line-height: 1.3;
}
/* responsive: 4 col desktop -> 2 col sotto 782px (coerente con l'attuale) */
@media (max-width: 782px) {
	.woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   Scheda prodotto (blocco dentalfusioni/scheda-prodotto) — mobile first.
   Stessi componenti delle pagine categoria: df-bcrumb, df-cbest, df-ccard, select come "Ordina per".
   ===================================================================== */
.df-pdp { font-family: var(--wp--preset--font-family--body); color: #3E4A57; }
.df-pdp__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 8px; }
.df-pdp__gallery { min-width: 0; }
.df-pdp .woocommerce-product-gallery { position: relative; width: 100% !important; float: none !important; margin: 0 !important; opacity: 1 !important; }
.df-pdp .woocommerce-product-gallery__wrapper { margin: 0; }
.df-pdp .woocommerce-product-gallery .flex-viewport, .df-pdp .woocommerce-product-gallery__image:only-child { border: 1px solid #D9E3EE; border-radius: 16px; background: #F6F9FC; overflow: hidden; }
.df-pdp .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.df-pdp .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(19,35,63,.15); font-size: 0; text-decoration: none; }
.df-pdp .woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; border: 2px solid #13233F; border-radius: 50%; }
.df-pdp .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.df-pdp .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.df-pdp .flex-control-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid #D9E3EE; border-radius: 10px; background: #F6F9FC; opacity: .7; cursor: pointer; transition: opacity .2s, border-color .2s; }
.df-pdp .flex-control-thumbs img.flex-active, .df-pdp .flex-control-thumbs img:hover { opacity: 1; border-color: #14477D; }

.df-pdp__summary { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* annulla le larghezze/float del CSS WooCommerce (div.product .summary / .images al 48%) */
.df-pdp .df-pdp__grid .summary, .df-pdp .df-pdp__grid .images { width: auto !important; float: none !important; margin: 0 !important; }
.df-pdp__title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 24px; line-height: 1.2; color: #13233F; overflow-wrap: anywhere; }
.df-pdp__short-text { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.df-pdp__short-text p { margin: 0 0 .5em; }
.df-pdp__short.is-open .df-pdp__short-text { display: block; }
.df-pdp__more { margin-top: 4px; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 14px; color: #14477D; cursor: pointer; }
.df-pdp__price { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 28px; line-height: 1.1; color: #14477D; }
.df-pdp__price small, .df-pdp .woocommerce-variation-price small { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 14px; color: #5A6572; }

/* varianti: etichetta sopra, select come "Ordina per" */
.df-pdp table.variations, .df-pdp table.variations tbody, .df-pdp table.variations tr, .df-pdp table.variations th, .df-pdp table.variations td { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; line-height: normal !important; text-align: left !important; }
.df-pdp table.variations tr { margin-bottom: 12px !important; }
.df-pdp table.variations th label { display: block; margin: 0 0 6px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; letter-spacing: .3px; line-height: 1.3; color: #13233F; }
.df-pdp table.variations select { display: block !important; width: 100% !important; min-width: 0 !important; height: 44px !important; margin: 0 !important; padding: 0 36px 0 12px !important; border: 1px solid #C9D6E6 !important; border-radius: 10px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2313233F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center !important; -webkit-appearance: none; appearance: none; font-family: var(--wp--preset--font-family--body) !important; font-size: 16px !important; line-height: 42px !important; text-indent: 0 !important; color: #13233F !important; }
.df-pdp .reset_variations { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font-size: 14px; color: #14477D; }
.df-pdp .woocommerce-variation { margin-bottom: 12px; }
.df-pdp .woocommerce-variation-description p { margin: 0 0 8px; font-size: 15px; }
.df-pdp .woocommerce-variation-availability .stock, .df-pdp__stock { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; }
.df-pdp .stock.in-stock, .df-pdp__stock.is-in { background: rgba(30,126,74,.12); color: #1E7E4A; }
.df-pdp .stock.out-of-stock, .df-pdp__stock.is-out { background: #FDECEC; color: #B3261E; }

/* quantità −/+ e carrello */
.df-pdp form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; }
.df-pdp form.variations_form { display: block; margin: 0 !important; }
.df-pdp form.cart { margin-bottom: 0 !important; }
.df-pdp .single_variation_wrap .woocommerce-variation:empty { display: none; }
.df-pdp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.df-pdp .quantity { display: inline-flex; align-items: stretch; height: 48px; border: 1px solid #C9D6E6; border-radius: 10px; overflow: hidden; background: #fff; margin: 0 !important; }
.df-pdp .quantity input.qty { width: 52px; height: 100%; padding: 0; border: 0; text-align: center; font: inherit; font-size: 16px; color: #13233F; -moz-appearance: textfield; }
.df-pdp .quantity input.qty::-webkit-inner-spin-button, .df-pdp .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.df-qty { width: 44px; border: 0; background: #F6F9FC; font-size: 20px; line-height: 1; color: #13233F; cursor: pointer; }
.df-qty:hover { background: #EEF4FA; color: #14477D; }
.df-pdp .single_add_to_cart_button { flex: 1 1 200px; min-height: 48px; padding: 0 24px !important; border: 0; border-radius: 10px !important; background: #14477D !important; color: #fff !important; font-family: var(--wp--preset--font-family--heading) !important; font-weight: 700 !important; font-size: 15px !important; cursor: pointer; }
.df-pdp .single_add_to_cart_button:hover { background: #0E3561 !important; }
.df-pdp .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* azioni secondarie: QR code, Condividi */
.df-pdp__tools { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.df-pdp__menu { position: relative; flex-shrink: 0; }
.df-pdp__menu summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #D9E3EE; border-radius: 999px; background: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 13px; color: #13233F; cursor: pointer; list-style: none; }
.df-pdp__menu summary::-webkit-details-marker { display: none; }
.df-pdp__menu[open] summary, .df-pdp__menu summary:hover { border-color: #14477D; color: #14477D; }
.df-pdp__pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 200px; margin: 0; padding: 8px; border: 1px solid #D9E3EE; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(19,35,63,.16); list-style: none; }
.df-pdp__pop a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: #13233F; text-decoration: none; }
.df-pdp__pop a:hover { background: #F6F9FC; color: #14477D; }
.df-pdp__qr .df-pdp__pop { width: 200px; text-align: center; }
.df-pdp__qr-code { width: 180px; height: 180px; margin: 0 auto 6px; }
.df-pdp__qr-code svg { width: 100%; height: 100%; }
.df-pdp__qr small { font-size: 13px; color: #5A6572; }

.df-pdp__meta { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid #D9E3EE; font-size: 15px; }
.df-pdp__meta p { margin: 0; }
.df-pdp__sku { color: #5A6572; }
.df-pdp__sku .sku { font-weight: 600; color: #13233F; }
.df-pdp__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #13233F; text-decoration: none; }
.df-pdp__brand img { width: 56px; height: 40px; object-fit: contain; border: 1px solid #D9E3EE; border-radius: 8px; background: #fff; padding: 4px; box-sizing: border-box; }
.df-pdp__brand:hover span { color: #14477D; text-decoration: underline; }

.df-pdp__related { min-width: 0; }
.df-pdp__none { margin: 0; padding: 16px 20px; font-size: 15px; color: #5A6572; }

/* tab (desktop) / accordion (mobile) */
.df-pdp__tabs { margin-top: 40px; }
.df-pdp__tablist { display: none; }
.df-pdp__panel { border-top: 1px solid #D9E3EE; }
.df-pdp__panel[hidden] { display: none; }
.df-pdp__acc { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 16px; color: #13233F; text-align: left; cursor: pointer; }
.df-pdp__acc::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); transition: transform .2s; }
.df-pdp__panel.is-closed .df-pdp__acc::after { transform: rotate(45deg); }
.df-pdp__panel.is-closed .df-pdp__panel-in { display: none; }
.df-pdp__panel-in { padding: 0 0 20px; font-size: 16px; line-height: 1.6; }
.df-pdp__desc h2, .df-pdp__desc h3 { margin: 1em 0 .4em; font-family: var(--wp--preset--font-family--heading); font-size: 18px; color: #13233F; }
.df-pdp__desc img { max-width: 100%; height: auto; }
.df-pdp__desc table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.df-pdp__details { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0,1fr); gap: 8px 24px; margin: 0; font-size: 15px; }
.df-pdp__details dt { font-weight: 600; color: #13233F; }
.df-pdp__details dd { margin: 0; }
.df-pdp__details a { color: #14477D; }

.df-pdp__cross { margin-top: 40px; }
.df-pdp__h2 { margin: 0 0 20px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 22px; line-height: 1.25; color: #13233F; }

@media (min-width: 768px) {
	.df-pdp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 16px; }
	.df-pdp__related { grid-column: 1 / -1; }
	.df-pdp__title { font-size: 28px; }
	.df-pdp__tools { overflow: visible; }
	.df-pdp__tablist { display: flex; gap: 4px; border-bottom: 1px solid #D9E3EE; }
	.df-pdp__tablist [role="tab"] { min-height: 48px; padding: 0 20px; border: 0; border-bottom: 3px solid transparent; background: none; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: #5A6572; cursor: pointer; }
	.df-pdp__tablist [role="tab"][aria-selected="true"] { border-bottom-color: #14477D; color: #14477D; }
	.df-pdp__panel { border-top: 0; }
	.df-pdp__acc { display: none; }
	.df-pdp__panel-in { padding: 24px 0 0; max-width: 900px; }
	.df-pdp__h2 { font-size: 26px; }
}
@media (min-width: 1280px) {
	.df-pdp__grid { grid-template-columns: minmax(0, 45fr) minmax(0, 35fr) minmax(0, 20fr); gap: 40px; }
	.df-pdp__related { grid-column: auto; }
	.df-pdp__title { font-size: 32px; }
	.df-pdp__cross-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* =====================================================================
   Pagina marchio (template taxonomy-product_cat-marchio) — mobile first
   ===================================================================== */
.df-bpage { margin: 0; }
.df-bpage__inner { padding-block: 16px 64px; }
.df-bcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: #5A6572; }
.df-bcrumb li + li::before { content: "›"; margin-right: 8px; color: #8FA6C4; }
.df-bcrumb a { color: #14477D; text-decoration: none; }
.df-bcrumb a:hover { text-decoration: underline; }
.df-bcrumb [aria-current] { color: #13233F; font-weight: 600; }

.df-bhead { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; align-items: start; padding: 20px; border-radius: 16px; background: #EEF4FA; }
.df-bhead__logo { display: none; }
.df-bhead__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.df-bhead__title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 30px; line-height: 1.1; color: #13233F; }
.df-bhead__desc { margin: 0; font-size: 16px; line-height: 1.5; color: #3E4A57; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.df-bhead__count { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.df-bhead__count strong { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 30px; line-height: 1; color: #14477D; }
.df-bhead__count span { font-size: 13px; color: #5A6572; }

.df-blayout { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "nav" "main" "after"; gap: 20px; margin-top: 20px; }
.df-bside { display: contents; }
.df-bnav { grid-area: nav; min-width: 0; }
.df-bmain { grid-area: main; min-width: 0; }
.df-bafter { grid-area: after; display: flex; flex-direction: column; gap: 24px; }

/* sidebar → su mobile fila di chip scorrevoli */
.df-bnav__head { display: none; }
.df-bnav__list { position: relative; display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 8px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.df-bnav__list::-webkit-scrollbar { display: none; }
.df-bnav__list li, .df-bnav__sub { display: contents; }
.df-bnav__link { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid #D9E3EE; border-radius: 999px; background: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 14px; color: #13233F; text-decoration: none; white-space: nowrap; }
.df-bnav__link .df-bnav__count::before { content: "· "; }
.df-bnav__link.is-active { background: #14477D; border-color: #14477D; color: #fff; }
.df-bnav__link.is-all > span:first-child { font-size: 0; }
.df-bnav__link.is-all > span:first-child::after { content: "Tutti"; font-size: 14px; }

.df-btoolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #D9E3EE; }
.df-btoolbar__count { margin: 0; font-size: 15px; color: #5A6572; }
.df-btoolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #13233F; }
.df-btoolbar__sort .woocommerce-ordering { margin: 0; }
.df-btoolbar__sort select { height: 44px; padding: 0 36px 0 12px; border: 1px solid #C9D6E6; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: #13233F; }

.df-bgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.df-bgrid > li { display: flex; margin: 0; }
.df-bcard { width: 100%; }
.df-bcard .df-cat__media { aspect-ratio: auto; height: 140px; background: #F6F9FC; }
.df-bcard .df-cat__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.df-bcard .df-cat__media svg { height: 90px; }
.df-bcard .df-cat__body { flex: 1 1 auto; align-items: flex-end; padding: 14px; }
.df-bcard .df-cat__body > div { min-width: 0; gap: 4px; }
.df-bcard strong { font-size: 15px; line-height: 1.3; }
.df-bcard__label { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 12px !important; letter-spacing: .5px; text-transform: uppercase; color: #14477D !important; }
.df-bcard__short { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px !important; }
.df-bcard .df-cat__price { font-size: 18px; }
.df-bempty { padding: 32px; border-radius: 16px; background: #EEF4FA; font-size: 17px; color: #3E4A57; }

.df-bmain .woocommerce-pagination { margin-top: 32px; }
.df-bmain .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0 !important; list-style: none; }
.df-bmain .woocommerce-pagination ul.page-numbers li { border: 0 !important; margin: 0; float: none; }
.df-bmain .woocommerce-pagination .page-numbers a, .df-bmain .woocommerce-pagination .page-numbers span { display: flex !important; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px !important; box-sizing: border-box; border: 1px solid #D9E3EE; border-radius: 10px; background: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: #13233F; text-decoration: none; }
.df-bmain .woocommerce-pagination .page-numbers a:hover { border-color: #14477D; color: #14477D; background: #EEF4FA; }
.df-bmain .woocommerce-pagination .page-numbers span.current { background: #14477D; border-color: #14477D; color: #fff; }
.df-bmain .woocommerce-pagination .page-numbers span.dots { border: 0; background: none; }

.df-bhelp { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: #14477D; color: #fff; }
.df-bhelp strong { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 18px; }
.df-bhelp p { margin: 0; font-size: 15px; line-height: 1.5; color: #D6E2F0; }
.df-bhelp .df-lab-btn { margin-top: 6px; height: 48px; }
.df-bextra { padding: 20px; border: 1px solid #D9E3EE; border-radius: 16px; font-size: 15px; line-height: 1.5; color: #3E4A57; }
.df-bextra img { max-width: 100%; height: auto; border-radius: 10px; }

@media (max-width: 359px) { .df-bgrid { grid-template-columns: 1fr; } }

/* tablet: sidebar 240px + griglia 2 colonne */
@media (min-width: 768px) {
	.df-bpage__inner { padding-block: 24px 96px; }
	.df-bhead { grid-template-columns: auto minmax(0,1fr) auto; gap: 32px; align-items: center; padding: 32px 36px; border-radius: 20px; }
	.df-bhead__logo { display: flex; align-items: center; justify-content: center; width: 150px; height: 100px; box-sizing: border-box; padding: 12px; border: 1px solid #D9E3EE; border-radius: 14px; background: #fff; }
	.df-bhead__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
	.df-bhead__logo span { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 18px; text-align: center; color: #13233F; }
	.df-bhead__title { font-size: clamp(32px, 3.4vw, 44px); }
	.df-bhead__desc { white-space: normal; max-width: 640px; }
	.df-bhead__count strong { font-size: 40px; }
	.df-blayout { grid-template-columns: 240px minmax(0,1fr); grid-template-areas: "side main"; gap: 20px 32px; margin-top: 32px; align-items: start; }
	/* sidebar statica nel flusso: menu del marchio per intero, poi box assistenza e slot extra */
	.df-bside { grid-area: side; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
	.df-bnav { border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; background: #fff; }
	.df-bnav__head { display: block; padding: 16px 20px; background: #13233F; color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 17px; }
	.df-bnav__list { display: block; margin: 0; padding: 6px 0; overflow: visible; }
	.df-bnav__list li { display: block; }
	.df-bnav__sub { display: block; margin: 0; padding: 0; list-style: none; }
	.df-bnav__link { display: flex; justify-content: space-between; width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 16px 8px 20px; border: 0; border-left: 4px solid transparent; border-radius: 0; font-size: 15px; white-space: normal; }
	.df-bnav__link:hover { background: #F6F9FC; color: #14477D; }
	.df-bnav__link.is-sub { padding-left: 40px; font-weight: 500; font-size: 14px; }
	.df-bnav__link.is-active { background: #EEF4FA; border-left-color: #14477D; color: #14477D; font-weight: 700; }
	.df-bnav__link .df-bnav__count::before { content: none; }
	.df-bnav__count { flex-shrink: 0; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: #EEF4FA; font-size: 12px; font-weight: 700; text-align: center; color: #14477D; }
	.df-bnav__link.is-active .df-bnav__count { background: #14477D; color: #fff; }
	.df-bnav__link.is-all > span:first-child { font-size: inherit; }
	.df-bnav__link.is-all > span:first-child::after { content: none; }
	.df-bgrid { gap: 20px; }
	.df-bcard .df-cat__media { height: 200px; }
	.df-bcard .df-cat__body { padding: 18px 20px 20px; }
	.df-bcard strong { font-size: 16px; }
}
/* desktop: sidebar 300px + griglia 3 colonne */
@media (min-width: 1280px) {
	.df-bhead { padding: 40px 48px; }
	.df-bhead__logo { width: 180px; height: 120px; }
	.df-blayout { grid-template-columns: 300px minmax(0,1fr); gap: 24px 40px; }
	.df-bgrid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* --- Pagina categoria PRODUZIONE (blocco dentalfusioni/pagina-categoria) — mobile first --- */
.df-chead__title { margin: 0 0 20px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; color: #13233F; overflow-wrap: anywhere; }

/* riquadri sottocategoria: logo (se su PS c'era) o solo testo, ordine PS */
.df-ctiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.df-ctiles > li { display: flex; margin: 0; }
.df-ctile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 64px; box-sizing: border-box; padding: 12px; border: 1px solid #D9E3EE; border-radius: 12px; background: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; line-height: 1.25; text-align: center; color: #13233F; text-decoration: none; overflow-wrap: anywhere; transition: border-color .2s, box-shadow .2s; }
.df-ctile:hover { border-color: #14477D; box-shadow: 0 6px 24px rgba(19,35,63,.12); color: #14477D; }
.df-ctile__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 110px; }
.df-ctile__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.df-ctile.has-logo .df-ctile__name { font-size: 14px; font-weight: 600; color: #3E4A57; }

/* mobile: contenuto prima, colonna laterale sotto */
.df-clayout { grid-template-areas: "main" "side"; }
.df-cside { grid-area: side; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.df-cside .df-bnav { border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; background: #fff; }
.df-cside .df-bnav__head { display: block; padding: 14px 20px; background: #13233F; }
.df-cside .df-bnav__head a { color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 17px; text-decoration: none; }
.df-cside .df-bnav__list { display: block; margin: 0; padding: 6px 0; overflow: visible; }
.df-cside .df-bnav__list li, .df-cside .df-bnav__sub { display: block; margin: 0; padding: 0; list-style: none; }
.df-cside .df-bnav__link { display: flex; justify-content: space-between; gap: 8px; width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 16px 8px 20px; border: 0; border-left: 4px solid transparent; border-radius: 0; font-size: 15px; white-space: normal; }
.df-cside .df-bnav__link.is-sub { padding-left: 36px; font-weight: 500; font-size: 14px; }
.df-cside .df-bnav__sub .df-bnav__sub .df-bnav__link.is-sub { padding-left: 52px; }
.df-cside .df-bnav__link.is-active { background: #EEF4FA; border-left-color: #14477D; color: #14477D; font-weight: 700; }
.df-cside .df-bnav__link .df-bnav__count::before { content: none; }
.df-cside .df-bnav__count { flex-shrink: 0; align-self: center; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: #EEF4FA; font-size: 12px; font-weight: 700; text-align: center; color: #14477D; }

.df-cbest { border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; background: #fff; }
.df-cbest__head { padding: 14px 20px; background: #EEF4FA; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 17px; color: #13233F; }
.df-cbest ul { margin: 0; padding: 4px 0; list-style: none; }
.df-cbest a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; color: #13233F; text-decoration: none; }
.df-cbest a:hover { background: #F6F9FC; }
.df-cbest__img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; background: #F6F9FC; overflow: hidden; }
.df-cbest__img img { width: 100%; height: 100%; object-fit: contain; }
.df-cbest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.3; }
.df-cbest__text strong { font-size: 14px; color: #14477D; }
.df-cbest__text small { font-weight: 400; color: #5A6572; }

/* filtri: pannello "Filtra" (chiuso su mobile, aperto su desktop) */
.df-cfilters { margin: 0 0 16px; border: 1px solid #D9E3EE; border-radius: 12px; background: #fff; }
.df-cfilters__toggle { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; cursor: pointer; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: #13233F; list-style: none; }
.df-cfilters__toggle::-webkit-details-marker { display: none; }
.df-cfilters__toggle::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.df-cfilters[open] .df-cfilters__toggle::after { transform: rotate(-135deg); }
.df-cfilters__on { padding: 2px 8px; border-radius: 999px; background: #14477D; color: #fff; font-size: 12px; }
.df-cfilters__body { display: grid; gap: 20px; padding: 4px 16px 16px; }
.df-cfilter { margin: 0; }
.df-cfilter__title { margin-bottom: 8px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: #14477D; }
.df-cfilter ul { margin: 0; padding: 0; list-style: none; }
.df-cfilter li a { display: flex; align-items: center; min-height: 40px; font-size: 15px; color: #13233F; text-decoration: none; }
.df-cfilter li a span { margin-left: 4px; color: #5A6572; }
.df-cfilter li a:hover { color: #14477D; }
.df-cfilter__check::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-right: 10px; border: 1.5px solid #8FA6C4; border-radius: 4px; background: #fff; }
.df-cfilter__check.is-on::before { border-color: #14477D; background: #14477D; box-shadow: inset 0 0 0 3px #fff; }
.df-cfilter__range { display: flex; gap: 12px; margin-bottom: 12px; }
.df-cfilter__range label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #3E4A57; }
.df-cfilter__range input { width: 88px; height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px solid #C9D6E6; border-radius: 8px; font: inherit; font-size: 16px; }
.df-cfilter--price .df-btn { height: 44px; }
.df-cfilters__reset { display: inline-flex; align-items: center; min-height: 44px; }

/* card prodotto con pulsante carrello */
.df-ccard { display: flex; flex-direction: column; width: 100%; }
.df-ccard .df-cat__media { display: flex; align-items: center; justify-content: center; }
.df-ccard .df-cat__body > div { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.df-ccard__title { color: #13233F; text-decoration: none; }
.df-ccard__title:hover { color: #14477D; text-decoration: underline; }
.df-ccard__cta { margin-top: auto; padding-top: 8px; }
.df-ccard__cta .button { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 12px !important; border-radius: 10px !important; background: #14477D !important; color: #fff !important; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 14px !important; line-height: 1.2; text-align: center; text-decoration: none; }
.df-ccard__cta .button:hover { background: #0E3561 !important; }
.df-ccard__cta .added_to_cart { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: #14477D; }

@media (min-width: 768px) {
	.df-ctiles { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 8px; }
	.df-clayout { grid-template-areas: "side main"; }
	.df-cfilters__toggle { cursor: default; pointer-events: none; }
	.df-cfilters__toggle::after { display: none; }
	.df-cfilters__body { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
	.df-cfilters__reset { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
	.df-ctiles { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
/* 768–1279: accanto alla colonna laterale 3 colonne di filtri non ci stanno (overflow a 768) */
@media (min-width: 768px) and (max-width: 1279px) {
	.df-cfilters__body { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.df-cfilter__range { flex-wrap: wrap; }

/* --- Pagina Negozio e ricerca prodotti (blocco dentalfusioni/pagina-negozio) — mobile first --- */
/* filtri attivi */
.df-schips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 8px; padding: 0; list-style: none; }
.df-schip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 14px; border-radius: 999px; background: #EEF4FA; font-weight: 600; font-size: 14px; color: #14477D; text-decoration: none; }
.df-schip:hover { background: #14477D; color: #fff; }
.df-schips__reset { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-size: 14px; }

/* mobile: Categorie e Marchi come accordion sopra i prodotti; da 768 colonna laterale */
.df-slayout { grid-template-areas: "side" "main"; gap: 12px; }
.df-sside { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.df-snav { border: 1px solid #D9E3EE; border-radius: 12px; overflow: hidden; background: #fff; }
.df-snav__head { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; color: #13233F; }
.df-snav__head::-webkit-details-marker { display: none; }
.df-snav__head::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.df-snav[open] .df-snav__head::after { transform: rotate(-135deg); }
.df-snav .df-bnav__list { display: block; max-height: 360px; margin: 0; padding: 4px 0 8px; overflow-y: auto; border-top: 1px solid #D9E3EE; }
.df-snav .df-bnav__list li { display: block; margin: 0; padding: 0; list-style: none; }
.df-snav .df-bnav__link { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 16px 8px 20px; border: 0; border-left: 4px solid transparent; border-radius: 0; background: none; font-size: 15px; font-weight: 500; white-space: normal; color: #13233F; text-decoration: none; }
.df-snav .df-bnav__link:hover { background: #F6F9FC; color: #14477D; }
.df-snav .df-bnav__link.is-active { background: #EEF4FA; border-left-color: #14477D; color: #14477D; font-weight: 700; }
.df-snav .df-bnav__count { flex-shrink: 0; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: #EEF4FA; font-size: 12px; font-weight: 700; text-align: center; color: #14477D; }
.df-snav .df-bnav__link.is-active .df-bnav__count { background: #14477D; color: #fff; }

/* pannello filtri: ricerca, disponibilità, prezzo */
.df-sfilters__input { width: 100%; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid #C9D6E6; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: #13233F; }
.df-sfilters__input:focus, .df-cfilter__range input:focus { outline: none; border-color: #14477D; box-shadow: 0 0 0 3px rgba(20,71,125,.25); }
.df-sfilters__check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: #13233F; cursor: pointer; }
.df-sfilters__check input { width: 18px; height: 18px; margin: 0; accent-color: #14477D; }
.df-sfilters__actions { display: flex; align-items: flex-end; }
.df-sfilters__actions .df-btn { width: 100%; height: 44px; }

@media (min-width: 768px) {
	.df-slayout { grid-template-areas: "side main"; }
	.df-sside { gap: 20px; }
	.df-snav { border-radius: 16px; }
	.df-snav__head { min-height: 52px; padding: 0 20px; background: #13233F; color: #fff; font-size: 17px; }
	.df-snav .df-bnav__list { max-height: none; overflow: visible; border-top: 0; }
	.df-sfilters__actions { grid-column: 1 / -1; }
	.df-sfilters__actions .df-btn { width: auto; }
}
@media (min-width: 1280px) {
	.df-sfilters { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ===== Pagine servizio clienti (templates/page-servizio.html, inc/servizio-clienti.php) =====
   mobile: chip di navigazione scorrevoli → testo → box aiuto; da 1024px sidebar a sinistra. */
.df-sc { padding: 24px 0 64px; }
.df-sc__grid { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "nav" "main" "help"; gap: 24px; }
.df-sc__side { display: contents; }
.df-sc-nav { grid-area: nav; min-width: 0; }
.df-sc-help { grid-area: help; }
.df-sc__main { grid-area: main; min-width: 0; }
.df-sc-nav__head { display: none; }
.df-sc-nav__list { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.df-sc-nav__list::-webkit-scrollbar { display: none; }
.df-sc-nav__list li { flex-shrink: 0; margin: 0; }
.df-sc-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #D9E3EE; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: #13233F; text-decoration: none; white-space: nowrap; }
.df-sc-nav__link:hover { border-color: #14477D; color: #14477D; }
.df-sc-nav__link.is-active { border-color: #14477D; background: #14477D; color: #fff; }
.df-sc__eyebrow { margin: 0 0 8px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #2E9BD6; }
.df-sc__title { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid #D9E3EE; font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); line-height: 1.15; color: #13233F; }
.df-sc__content { max-width: 760px; font-size: 1rem; line-height: 1.65; color: #3E4A57; overflow-wrap: anywhere; }
.df-sc__content > * { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
.df-sc__content h2 { margin: 2.25rem 0 .75rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.3; color: #14477D; }
.df-sc__content h3 { margin: 1.5rem 0 .5rem; font-size: 1.0625rem; color: #13233F; }
.df-sc__content p, .df-sc__content ul, .df-sc__content ol { margin: 0 0 1rem; }
.df-sc__content ul, .df-sc__content ol { padding-left: 1.25rem; }
.df-sc__content li { margin-bottom: .4rem; }
.df-sc__content a { color: #14477D; font-weight: 600; }
.df-sc__content table { display: block; max-width: 100%; overflow-x: auto; }
.df-sc-help { padding: 20px; border: 1px solid #D9E3EE; border-radius: 16px; background: #F6F9FC; }
.df-sc-help__title { margin: 0 0 4px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 20px; color: #13233F; }
.df-sc-help__text { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #3E4A57; }
.df-sc-help .df-contact__icon { background: #fff; }
.df-sc-help__cta { width: 100%; height: auto; min-height: 44px; margin-top: 16px; padding: 10px 14px; line-height: 1.3; text-align: center; }
@media (min-width: 768px) {
	.df-sc { padding: 40px 0 80px; }
	.df-sc-nav__list { margin: 0; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; }
	.df-sc-help { max-width: 760px; box-sizing: border-box; }
}
@media (min-width: 1024px) {
	.df-sc__grid { grid-template-columns: 280px minmax(0,1fr); grid-template-areas: "side main"; gap: 56px; align-items: start; }
	.df-sc__side { grid-area: side; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
	.df-sc-nav { border: 1px solid #D9E3EE; border-radius: 16px; overflow: hidden; background: #fff; }
	.df-sc-nav__head { display: block; padding: 14px 20px; background: #13233F; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 17px; color: #fff; }
	.df-sc-nav__list { display: block; padding: 6px 0; }
	.df-sc-nav__link { display: flex; width: 100%; box-sizing: border-box; padding: 8px 16px 8px 20px; border: 0; border-left: 4px solid transparent; border-radius: 0; white-space: normal; }
	.df-sc-nav__link:hover { background: #F6F9FC; }
	.df-sc-nav__link.is-active { border-left-color: #14477D; background: #EEF4FA; color: #14477D; font-weight: 700; }
	.df-sc__title { margin-top: 0; }
}

/* ===== Banner cookie Complianz: elenco link senza pallini, colori del tema ===== */
.cmplz-cookiebanner .cmplz-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.cmplz-cookiebanner .cmplz-links li { margin: 0; list-style: none; }
.cmplz-cookiebanner .cmplz-links li:has(> a[href="#"]), .cmplz-cookiebanner .cmplz-links a[href="#"] { display: none; }
.cmplz-cookiebanner .cmplz-links a { display: inline-flex; align-items: center; min-height: 44px; color: #14477D; }
.cmplz-cookiebanner .cmplz-btn { min-height: 44px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; border-radius: 10px; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept { background-color: #14477D !important; border-color: #14477D !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover { background-color: #0F3762 !important; }
/* card compatta in basso a destra, testata blu con logo (il logo è chiaro: serve fondo scuro) */
#cmplz-cookiebanner-container .cmplz-cookiebanner { --cmplz_banner_width: 440px; box-sizing: border-box; width: 440px !important; min-width: 0 !important; max-width: min(440px, calc(100vw - 24px)) !important; background: #fff !important; grid-template-columns: minmax(0,1fr) !important; padding: 0 !important; gap: 0 !important; overflow: hidden; border-radius: 16px !important; border: 1px solid #D9E3EE; box-shadow: 0 12px 40px rgba(19,35,63,.22) !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom-right { right: 20px !important; bottom: 20px !important; left: auto !important; top: auto !important; transform: none !important; }
/* testata chiara: logo (file bianco → maschera colorata in blu) con il titolo accanto */
.cmplz-cookiebanner .cmplz-header { display: flex !important; align-items: center; gap: 14px; margin: 0 !important; padding: 14px 8px 4px 20px; background: transparent; }
/* logo del tema (chiaro) invertito: scritta blu scuro, onde azzurre */
.cmplz-cookiebanner .cmplz-logo { display: block !important; flex: 0 0 auto; width: 150px; height: 46px; }
.cmplz-cookiebanner .cmplz-logo::before { content: ""; display: block; width: 100%; height: 100%; background: url(assets/logo-dentalfusioni.png) left center / contain no-repeat; filter: invert(1) hue-rotate(180deg) saturate(1.6) brightness(.85); }
.cmplz-cookiebanner .cmplz-title { display: block !important; flex: 1 1 auto; min-width: 0; margin: 0 !important; padding-left: 12px; border-left: 1px solid #C9D6E6; font-family: var(--wp--preset--font-family--heading); font-size: 14px !important; font-weight: 700; line-height: 1.25; color: #13233F !important; text-align: left !important; }
.cmplz-cookiebanner .cmplz-divider-header { display: none !important; }
.cmplz-cookiebanner .cmplz-close { display: flex !important; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; color: #13233F !important; }
.cmplz-cookiebanner .cmplz-close svg { width: 16px; height: 16px; }
.cmplz-cookiebanner .cmplz-body, .cmplz-cookiebanner .cmplz-buttons, .cmplz-cookiebanner .cmplz-links { margin: 0 !important; padding-left: 20px !important; padding-right: 20px !important; }
.cmplz-cookiebanner .cmplz-body { box-sizing: border-box; width: 100% !important; min-width: 0; padding-top: 10px !important; }
.cmplz-cookiebanner .cmplz-buttons, .cmplz-cookiebanner .cmplz-links { box-sizing: border-box; width: 100% !important; }
.cmplz-cookiebanner .cmplz-message { overflow-wrap: anywhere; }
.cmplz-cookiebanner .cmplz-message { margin: 0 0 12px !important; font-size: 13px !important; line-height: 1.5 !important; color: #3E4A57 !important; }
.cmplz-cookiebanner .cmplz-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn { width: 100% !important; height: auto !important; min-height: 44px; margin: 0 !important; padding: 8px 10px !important; font-size: 14px !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences, .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences, .cmplz-cookiebanner .cmplz-buttons .cmplz-manage-options { grid-column: 1 / -1; }
.cmplz-cookiebanner .cmplz-documents { padding-bottom: 6px !important; }
.cmplz-cookiebanner .cmplz-links a { font-size: 13px; }
@media (max-width: 767px) {
	#cmplz-cookiebanner-container .cmplz-cookiebanner, #cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom-right { left: 12px !important; right: 12px !important; bottom: 12px !important; width: auto !important; max-width: none !important; max-height: calc(100vh - 24px); overflow-y: auto; }
}
.df-footer__legal .cmplz-show-banner { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: inherit; }

/* ===== Coming soon (templates/coming-soon.html + patterns/coming-soon.php) =====
   Mobile first: logo, testi, contatti; foto sfumata in fondo. Da 1024px foto a destra come l'hero. */
.df-cs { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 0% 0%, rgba(46,155,214,.22), transparent 65%), #13233F; font-family: var(--wp--preset--font-family--body); }
.df-cs__media { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; opacity: .55; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60%); mask-image: linear-gradient(to bottom, transparent 0, #000 60%); }
.df-cs__media img { width: 100%; height: 100%; object-fit: cover; }
.df-cs__inner { position: relative; z-index: 2; box-sizing: border-box; display: flex; flex-direction: column; gap: 40px; max-width: 1440px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 28px 16px 24px; }
.df-cs__top .df-brand img { height: 44px; }
.df-cs__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 600px; }
.df-cs__body > * { margin: 0; }
.df-cs__title { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -.5px; color: #fff; text-wrap: balance; }
.df-cs__lead { font-size: 1.0625rem; line-height: 1.6; color: #C9D6E6; }
.df-cs__contacts { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; margin: 8px 0 0 !important; padding: 0; list-style: none; }
.df-cs__contacts a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; }
.df-cs__contacts a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.df-cs__contacts svg { flex-shrink: 0; color: #7CC4EC; }
.df-cs__contacts span { display: flex; flex-direction: column; min-width: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.df-cs__contacts small { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 13px; color: #A9BBD3; }
.df-cs__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: #7CC4EC; font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-decoration: none; }
.df-cs__cta:hover { color: #fff; }
.df-cs__foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; font-size: 13px; color: #8FA6C4; }
.df-cs a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 768px) {
	.df-cs__inner { padding: 40px 32px 32px; }
	.df-cs__body { max-width: 680px; }
	/* l'email resta su una riga: la terza colonna prende la larghezza che le serve */
	.df-cs__contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
	.df-cs__contacts span { overflow-wrap: normal; white-space: nowrap; }
}
@media (min-width: 1024px) {
	.df-cs__media { top: 0; left: auto; width: 60%; height: auto; opacity: 1; -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 25%, #000 55%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 25%, #000 55%); }
	.df-cs__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(19,35,63,.5), rgba(19,35,63,.1)); }
	.df-cs__inner { padding: 40px 64px 32px; }
	.df-cs__body { margin-block: auto; }
	.df-cs__top .df-brand img { height: 52px; }
	.df-cs__foot { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.df-cs__media { width: 50%; opacity: .45; }
}