/* ============================================================
   ITAL TOOLS — Header & Footer nativi
   Palette: oro / nero / crema · DM Sans
   ============================================================ */
:root {
	--ittc-ink: #1a1a1a;
	--ittc-gold: #E8A800;
	--ittc-gold-dark: #d49700;
	--ittc-orange: #F07A1A;
	--ittc-blue: #4EABE9;
	/* Variante blu per fondi chiari: #4EABE9 su bianco ha contrasto insufficiente. */
	--ittc-blue-dark: #1F7FC0;
	--ittc-cream: #f7f6f2;
	--ittc-line: #ece9e2;
	--ittc-wa: #25D366;
	--ittc-inner: 1280px;
}

.itt-header, .itt-footer { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.itt-header *, .itt-footer * { box-sizing: border-box; }
.itt-header a, .itt-footer a { text-decoration: none; }

.itt-header-inner, .itt-footer-inner {
	max-width: var(--ittc-inner); margin: 0 auto; padding: 0 32px;
}

/* ============================================================
   HEADER
   ========================================================== */
.itt-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ittc-ink); border-bottom: 1px solid #2e2e2e;
}
.itt-header .itt-header-inner {
	height: 60px; display: flex; align-items: center; gap: 32px;
	min-width: 0;
}

/* Rete di sicurezza: nessuna pagina deve poter scorrere in orizzontale.
 * "clip" e non "hidden" perche' hidden creerebbe un contenitore di scorrimento e
 * romperebbe il position:sticky dell'header. La regola stava solo in native-home.css,
 * che pero' viene caricato solo sulla home: fuori dalla home lo stesso sforamento
 * diventava una banda bianca a destra. */
html { overflow-x: clip; }

.itt-logo { flex: none; display: flex; align-items: center; }
.itt-logo-img { height: 28px; width: auto; max-width: 180px; display: block; }
.itt-logo .itt-logo-svg svg { height: 28px; width: auto; display: block; }
.itt-logo-text { color: #fff; font-weight: 700; font-size: 18px; }

/* Nav */
.itt-nav { margin-left: 8px; }
.itt-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.itt-nav-list > li > a {
	display: inline-flex; align-items: center; gap: 6px; color: #ccc;
	font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 4px; transition: color .2s;
}
.itt-nav-list > li > a:hover { color: var(--ittc-gold); }
.itt-caret { font-size: 10px; opacity: .9; }

/* Voce "Offerte": arancione di default, blu in hover (anche nel drawer mobile). */
.itt-nav-list > li > a.itt-nav-offers,
.itt-ndr-nav a.itt-nav-offers { color: var(--ittc-orange); font-weight: 700; }
.itt-nav-list > li > a.itt-nav-offers:hover,
.itt-ndr-nav a.itt-nav-offers:hover { color: var(--ittc-blue); }

.itt-header-spacer { flex: 1; }

/* ============================================================
   MEGA MENU — 3-panel design
   ========================================================== */
.itt-has-mega { position: static; }
.itt-mega {
	position: absolute; left: 50%; top: 100%; z-index: 90;
	width: 100%; max-width: var(--ittc-inner);
	display: flex;
	border-top: 3px solid var(--ittc-gold);
	box-shadow: 0 18px 48px rgba(0,0,0,.22);
	opacity: 0; visibility: hidden;
	transform: translateX(-50%) translateY(8px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.itt-has-mega > a { position: relative; }
.itt-has-mega > a::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; background: transparent; }
.itt-has-mega:hover .itt-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Left sidebar */
.itt-mega-sidebar {
	width: 240px; background: #111; flex: none;
	display: flex; flex-direction: column;
	border-right: 1px solid #1e1e1e;
}
.itt-mega-sb-item {
	display: flex; align-items: center; gap: 10px;
	padding: 11px 14px; cursor: default;
	border-left: 3px solid transparent;
	color: #888; transition: background .15s, color .15s, border-color .15s;
}
.itt-mega-sb-item:hover,
.itt-mega-sb-item.is-active {
	background: rgba(232,168,0,.08); color: var(--ittc-gold);
	border-left-color: var(--ittc-gold);
}
.itt-mega-sb-ico {
	width: 24px; height: 24px; display: flex; align-items: center;
	justify-content: center; flex: none; border-radius: 4px; overflow: hidden;
}
.itt-mega-sb-ico img { width: 20px; height: 20px; object-fit: cover; }
.itt-mega-sb-name { flex: 1; font-size: 13px; font-weight: 500; line-height: 1.3; }
.itt-mega-sb-arr { flex: none; opacity: 0; transition: opacity .15s; }
.itt-mega-sb-item:hover .itt-mega-sb-arr,
.itt-mega-sb-item.is-active .itt-mega-sb-arr { opacity: 1; }
.itt-mega-sb-footer { padding: 14px; border-top: 1px solid #1e1e1e; margin-top: auto; flex: none; }
.itt-mega-sb-footer a {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--ittc-gold); color: var(--ittc-ink); text-decoration: none;
	font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 5px; transition: background .2s;
}
.itt-mega-sb-footer a:hover { background: var(--ittc-gold-dark); color: var(--ittc-ink); }

/* Center content */
.itt-mega-content {
	flex: 1; background: #fff;
	padding: 24px 28px; min-width: 0; position: relative;
}
.itt-mega-panel { display: none; }
.itt-mega-panel.is-active { display: block; }

.itt-mega-panel-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px; margin-bottom: 18px; padding-bottom: 14px;
	border-bottom: 1px solid var(--ittc-line);
}
.itt-mega-panel-head-info { flex: 1; min-width: 0; }
.itt-mega-eyebrow {
	font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
	color: var(--ittc-gold); font-weight: 700; margin-bottom: 4px;
}
.itt-mega-panel-title {
	font-size: 16px; font-weight: 800; color: var(--ittc-ink);
	letter-spacing: -.3px; margin: 0 0 3px;
}
.itt-mega-panel-desc { font-size: 12px; color: #999; line-height: 1.5; margin: 0; }
.itt-mega-panel-all {
	flex: none; font-size: 12px; font-weight: 600; color: var(--ittc-gold);
	text-decoration: none; display: flex; align-items: center; gap: 4px;
	padding-top: 4px; white-space: nowrap; transition: opacity .2s;
}
.itt-mega-panel-all:hover { opacity: .75; color: var(--ittc-gold); }

.itt-mega-subgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.itt-mega-subcard {
	text-decoration: none; border: 1px solid var(--ittc-line);
	border-radius: 7px; overflow: hidden; background: #fff;
	display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s;
}
.itt-mega-subcard:hover { border-color: var(--ittc-gold); box-shadow: 0 4px 16px rgba(232,168,0,.14); }
.itt-mega-subcard-img {
	background: #f0ede6; height: 68px;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.itt-mega-subcard-img img {
	width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply;
}
.itt-mega-subcard-name {
	padding: 8px 10px 10px; font-size: 12px; font-weight: 500; color: #333; line-height: 1.4;
}
.itt-mega-subcard:hover .itt-mega-subcard-name { color: var(--ittc-gold); }
.itt-mega-panel-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.itt-mega-empty-link {
	display: flex; align-items: center; gap: 6px;
	color: var(--ittc-gold); font-size: 14px; font-weight: 600; text-decoration: none;
}

/* Right strip */
.itt-mega-strip {
	width: 170px; background: #1a1a1a; flex: none;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 24px 18px; border-left: 1px solid #2a2a2a;
}
.itt-mega-strip-help { text-align: center; }
.itt-mega-strip-ico {
	width: 40px; height: 40px;
	background: rgba(232,168,0,.1); border: 1px solid rgba(232,168,0,.25);
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	margin: 0 auto 12px;
}
.itt-mega-strip-help strong {
	display: block; font-size: 12px; font-weight: 700; color: #fff;
	line-height: 1.4; margin-bottom: 8px;
}
.itt-mega-strip-help p { font-size: 11px; color: #555; line-height: 1.55; margin: 0 0 14px; }
.itt-mega-strip-help a {
	display: block; background: var(--ittc-gold); color: var(--ittc-ink); text-decoration: none;
	font-size: 11px; font-weight: 700; padding: 8px 10px; border-radius: 4px;
	text-align: center; transition: background .2s;
}
.itt-mega-strip-help a:hover { background: var(--ittc-gold-dark); color: var(--ittc-ink); }
.itt-mega-strip-promo {
	text-align: center; padding-top: 20px; border-top: 1px solid #2a2a2a;
}
.itt-mega-strip-promo-eyebrow {
	font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #555; margin-bottom: 6px;
}
.itt-mega-strip-promo-pct { font-size: 28px; font-weight: 800; color: var(--ittc-gold); line-height: 1; letter-spacing: -1px; }
.itt-mega-strip-promo-sub { font-size: 11px; color: #666; margin-top: 4px; }
.itt-mega-strip-promo a {
	display: block; margin-top: 10px; font-size: 11px; font-weight: 600;
	color: var(--ittc-orange); text-decoration: none; transition: color .2s;
}
.itt-mega-strip-promo a:hover { color: var(--ittc-blue-dark); }

/* Actions */
/* flex: 0 1 auto (non "none"): fra 980px e ~1200px logo + nav + azioni superavano la
 * larghezza disponibile e, non potendo restringersi nulla, il blocco sfondava a destra.
 *
 * A cedere deve essere SOLO la barra di ricerca, che si accorcia fino a 130px. Niente
 * min-width:0 qui: senza quel limite le azioni si comprimerebbero sotto il loro
 * contenuto e il selettore lingua verrebbe tagliato a meta'. Per lo stesso motivo il
 * menu non ha min-width:0 — glielo avevo messo e mandava "SCM Spare Parts" a capo su
 * tre righe, sfondando l'altezza dell'header. */
.itt-header-actions { flex: 0 1 auto; display: flex; align-items: center; gap: 16px; }
.itt-header .itt-search-wrap { flex: 0 1 260px; min-width: 130px; }
/* Le voci di menu non vanno mai a capo: preferiamo che ceda la ricerca. */
.itt-nav-list > li > a { white-space: nowrap; }

.itt-header-search {
	display: flex; align-items: center; gap: 8px; background: #2a2a2a; border-radius: 6px;
	height: 36px; width: 100%; max-width: 260px; padding: 0 12px; overflow: hidden;
}
.itt-search-ico { color: #888; flex: none; display: block; }
.itt-header-search input[type="search"],
.itt-header-search input[type="text"] {
	width: 100%; background: none; border: none; outline: none; box-shadow: none;
	color: #eee; font-size: 13px; font-family: inherit; padding: 0;
	-webkit-appearance: none; appearance: none;
}
.itt-header-search input::placeholder { color: #888; }
.itt-header-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.itt-action { position: relative; color: #ccc; display: inline-flex; align-items: center; transition: color .2s; }
.itt-action:hover { color: var(--ittc-gold); }
.itt-cart-count {
	position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px;
	background: var(--ittc-gold); color: var(--ittc-ink); font-size: 10px; font-weight: 700;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.itt-header-sep { width: 1px; height: 18px; background: #444; }
.itt-lang { font-size: 13px; color: #888; display: inline-flex; align-items: center; position: relative; }
.itt-lang a { color: #888; }
.itt-lang a:hover { color: var(--ittc-gold); }
/* WPML language selector -- reset larghezza e sfondo default */
.itt-lang .wpml-ls,
.itt-lang .wpml-ls-legacy-dropdown,
.itt-lang .wpml-ls-legacy-dropdown-click {
	display: inline-block !important; width: auto !important; min-width: 0 !important;
	background: none !important; border: none !important; position: relative;
}
.itt-lang .wpml-ls > ul { width: auto !important; list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.itt-lang .wpml-ls-item { width: auto !important; white-space: nowrap; position: relative; }
.itt-lang .wpml-ls-item-toggle {
	display: inline-flex !important; align-items: center !important; gap: 5px !important;
	background: transparent !important; border: none !important; width: auto !important;
	padding: 0 2px 0 0 !important; color: #888 !important; font-size: 13px !important;
	font-family: inherit !important; cursor: pointer; white-space: nowrap; line-height: 1;
}
/* Flag image inside toggle: evita che vada sopra al testo */
.itt-lang .wpml-ls-item-toggle img {
	display: block !important; position: static !important; float: none !important;
	width: 18px !important; height: auto !important; flex: none !important; vertical-align: middle !important;
}
/* Caret/freccia: resetta position absolute di WPML e fa fluire nel flexbox */
.itt-lang .wpml-ls-item-toggle > span,
.itt-lang .wpml-ls-item-toggle .wpml-ls-item-toggle-caret,
.itt-lang .wpml-ls-item-toggle .wpml-ls-native {
	position: static !important; float: none !important;
	display: inline !important; vertical-align: middle !important;
}
.itt-lang .wpml-ls-item-toggle::after {
	position: static !important; display: inline-block !important;
	vertical-align: middle !important; margin-left: 2px;
}
.itt-lang .wpml-ls-item-toggle:hover,
.itt-lang .wpml-ls-item-toggle:focus { color: var(--ittc-gold) !important; outline: none; box-shadow: none !important; }

/* Sub-menu a discesa: forza display:block verticale (evita il display:flex ereditato).
 *
 * ANCORATO A DESTRA, e non a sinistra: il selettore lingua e' l'ultimo elemento
 * dell'header, quindi un pannello di 160px ancorato a left:0 finiva OLTRE il bordo
 * destro della pagina. Restando in layout anche da chiuso (il display:block qui sopra
 * e' !important e batte il display:none di WPML: lo nasconde visibility/opacity, non
 * il display), allungava lo scrollWidth del documento a ~1225px su OGNI pagina del
 * sito: sotto quella larghezza compariva la banda bianca a destra. Con right:0 la
 * tendina si apre verso l'interno e non sfora piu'. */
.itt-lang .wpml-ls-sub-menu {
	display: block !important; flex-direction: column !important;
	position: absolute !important; top: 100% !important;
	left: auto !important; right: 0 !important;
	background: #222 !important; border: 1px solid #333; border-radius: 6px;
	padding: 4px 0; min-width: 160px; list-style: none !important;
	margin: 6px 0 0 !important; gap: 0 !important;
	box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 9999;
}
.itt-lang .wpml-ls-sub-menu > li {
	display: block !important; float: none !important;
	width: 100% !important; flex: none !important;
	border: none !important;
}
.itt-lang .wpml-ls-sub-menu a {
	color: #ccc !important; padding: 9px 14px; display: flex !important;
	align-items: center; gap: 8px; font-size: 13px; width: 100%;
}
.itt-lang .wpml-ls-sub-menu a img {
	display: block !important; position: static !important; float: none !important;
	width: 18px !important; height: auto !important; flex: none !important;
}
.itt-lang .wpml-ls-sub-menu a:hover { color: var(--ittc-gold) !important; background: rgba(255,255,255,.05); }

/* ============================================================
   FOOTER
   ========================================================== */
.itt-footer { color: #888; }

/* Contact band (cream, 3 card) */
.itt-contact { background: var(--ittc-cream); border-top: 1px solid var(--ittc-line); padding: 56px 0; }
.itt-contact-title { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--ittc-ink); margin: 0 auto; max-width: var(--ittc-inner); }
.itt-contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--ittc-inner); margin: 40px auto 0; padding: 0 32px; }
.itt-contact-col { background: #fff; border: 1px solid var(--ittc-line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.itt-contact-col h3 { font-size: 14px; font-weight: 700; margin: 0; color: var(--ittc-ink); }
.itt-contact-col div { font-size: 13px; color: #666; line-height: 1.6; }
.itt-contact-col a { color: var(--ittc-gold); font-weight: 600; margin-top: auto; }
.itt-contact-col:nth-child(3) { background: var(--ittc-ink); border-color: var(--ittc-ink); }
.itt-contact-col:nth-child(3) h3 { color: #fff; }
.itt-contact-col:nth-child(3) div { color: #aaa; }
.itt-contact-col:nth-child(3) a { color: var(--ittc-wa); }

/* Main footer (dark) */
.itt-footer-main { background: var(--ittc-ink); border-bottom: 1px solid #2e2e2e; }
.itt-footer-cols {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding: 48px 32px;
}
.itt-fcol h3 {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
	color: var(--ittc-gold); margin: 0 0 16px;
}
.itt-fcol p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; max-width: 280px; }

.itt-foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.itt-foot-list li { font-size: 13px; color: #666; padding-left: 20px; position: relative; line-height: 1.4; }
.itt-foot-list li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
	background: var(--ittc-gold);
}

/* Brand col */
.itt-fbrand .itt-flogo { height: 30px; width: auto; max-width: 180px; display: block; margin-bottom: 16px; }
.itt-fbrand .itt-flogo svg { height: 30px; width: auto; }
.itt-fsocial { display: flex; gap: 10px; margin-top: 16px; }
.itt-fsocial a {
	width: 32px; height: 32px; border-radius: 6px; background: #2a2a2a; color: #888;
	display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.itt-fsocial a:hover { background: var(--ittc-gold); color: var(--ittc-ink); }

/* Newsletter */
.itt-newsletter { display: flex; gap: 0; margin-bottom: 20px; }
.itt-newsletter input[type="email"] {
	flex: 1; background: #2a2a2a; border: 1px solid #3a3a3a; border-right: none;
	border-radius: 6px 0 0 6px; padding: 10px 12px; font-size: 13px; color: #fff; outline: none; font-family: inherit;
}
.itt-newsletter input::placeholder { color: #777; }
.itt-newsletter button {
	background: var(--ittc-gold); color: var(--ittc-ink); border: none; border-radius: 0 6px 6px 0;
	padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .2s;
}
.itt-newsletter button:hover { background: var(--ittc-gold-dark); }

.itt-flinks h4 {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
	color: #555; margin: 0 0 8px;
}
.itt-flinks-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.itt-flinks-menu a { color: #666; font-size: 13px; transition: color .2s; }
.itt-flinks-menu a:hover { color: var(--ittc-gold); }

/* Bottom bar */
.itt-footer-bottom { background: var(--ittc-ink); }
.itt-footer-bottom-row {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding-top: 18px; padding-bottom: 18px;
}
.itt-footer-legal { font-size: 12px; color: #555; margin: 0; max-width: 70%; line-height: 1.6; }
.itt-fpayments .itt-payment-icons { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.itt-fpayments .itt-pay-icon { display: block; height: 18px; width: 30px; object-fit: contain; object-position: center; background: #fff; border: none; border-radius: 3px; padding: 3px 5px; box-sizing: content-box; flex-shrink: 0; }
.itt-fpayments .itt-pay-chip { background: #2a2a2a; border: none; color: #ccc; font-size: 10px; padding: 3px 6px; border-radius: 3px; }

/* ============================================================
   HAMBURGER BUTTON
   ========================================================== */
.itt-hamburger {
	display: none; flex: none; background: none; border: none;
	color: #ccc; cursor: pointer; padding: 4px; border-radius: 4px;
	align-items: center; justify-content: center; transition: color .2s;
}
.itt-hamburger:hover { color: var(--ittc-gold); }

/* ============================================================
   NAV OVERLAY
   ========================================================== */
.itt-nav-overlay {
	display: none; position: fixed; inset: 0;
	background: rgba(0,0,0,.6); z-index: 199;
	opacity: 0; transition: opacity .25s;
}
.itt-nav-overlay.is-open { display: block; opacity: 1; }

/* ============================================================
   NAV DRAWER
   ========================================================== */
body.itt-nav-open { overflow: hidden; }

.itt-nav-drawer {
	position: fixed; top: 0; left: 0; height: 100%; width: 280px;
	background: #1a1a1a; z-index: 200;
	transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
	display: flex; flex-direction: column; overflow-y: auto;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.itt-nav-drawer.is-open { transform: translateX(0); }

.itt-ndr-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 20px; border-bottom: 1px solid #2e2e2e; flex: none;
}
.itt-ndr-logo { display: flex; align-items: center; }
.itt-ndr-logo img, .itt-ndr-logo svg { height: 24px; width: auto; display: block; }
.itt-ndr-logo .itt-logo-svg svg { height: 24px; width: auto; }
.itt-ndr-close {
	background: none; border: none; color: #888; cursor: pointer;
	padding: 4px; border-radius: 4px; display: flex;
	align-items: center; transition: color .2s;
}
.itt-ndr-close:hover { color: #fff; }

.itt-ndr-search { padding: 14px 16px; border-bottom: 1px solid #2a2a2a; flex: none; }
.itt-ndr-search .itt-search-wrap { display: block !important; }
.itt-ndr-search .itt-header-search {
	width: 100%; box-sizing: border-box; display: flex;
}

.itt-ndr-nav { flex: 1; }
.itt-ndr-nav ul { list-style: none; margin: 0; padding: 6px 0; }
.itt-ndr-nav ul li a {
	display: block; padding: 13px 24px; color: #ccc; font-size: 15px; font-weight: 500;
	border-bottom: 1px solid #252525; transition: color .18s, background .18s;
}
.itt-ndr-nav ul li:last-child a { border-bottom: none; }
.itt-ndr-nav ul li a:hover { color: var(--ittc-gold); background: rgba(232,168,0,.07); }

.itt-ndr-lang { padding: 16px 20px; border-top: 1px solid #2e2e2e; flex: none; }
.itt-ndr-lang .wpml-ls-sub-menu {
	position: relative !important; top: auto !important; left: auto !important;
	background: #111 !important; box-shadow: none !important;
	border: 1px solid #2e2e2e !important; margin-top: 8px !important;
}

/* ---------- Responsive ---------- */
/* Fascia stretta (fra l'header desktop pieno e quello mobile a 980px): lo spazio non
 * basta per logo + menu + ricerca + azioni. Invece di far sfondare il blocco a destra
 * — che e' la banda bianca — si recupera larghezza dove costa meno: spaziature del
 * menu e nome della lingua, che la bandiera gia' comunica. */
@media (max-width: 1200px) {
	.itt-header .itt-header-inner { gap: 20px; }
	.itt-nav { margin-left: 0; }
	.itt-nav-list > li > a { padding: 6px 8px; }
}
@media (max-width: 1080px) {
	.itt-header .itt-header-inner { gap: 14px; }
	.itt-header .itt-search-wrap { flex-basis: 200px; }
	.itt-header-search { max-width: 200px; }
	.itt-nav-list { gap: 0; }
	.itt-nav-list > li > a { padding: 6px 6px; }
	/* Resta la bandiera: il nome della lingua costa ~45px e non aggiunge nulla. */
	.itt-lang .wpml-ls-item-toggle .wpml-ls-native { display: none !important; }
}
@media (max-width: 980px) {
	.itt-header .itt-header-inner { height: 56px; flex-wrap: nowrap; gap: 12px; padding-top: 0; padding-bottom: 0; }
	.itt-nav { display: none; }
	.itt-header-spacer { display: none; }
	.itt-header .itt-search-wrap { display: none; }
	.itt-action:not(.itt-cart) { display: none; }
	.itt-header-sep { display: none; }
	.itt-lang { display: none; }
	.itt-header-actions { margin-left: auto; gap: 8px; }
	.itt-hamburger { display: flex; }
	.itt-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.itt-contact-cols { grid-template-columns: 1fr; }
	.itt-footer-legal { max-width: 100%; }
}
@media (max-width: 560px) {
	.itt-header .itt-header-inner { padding: 0 16px; }
	.itt-footer-cols { grid-template-columns: 1fr; }
	.itt-footer-inner, .itt-footer-cols { padding-left: 16px; padding-right: 16px; }
	.itt-footer-bottom-row { padding-left: 16px; padding-right: 16px; }
	.itt-contact-title { padding: 0 16px; font-size: 22px; }
	.itt-contact-cols { padding: 0 16px; }
}

/* ============================================================
   MINI-CART DRAWER
   ========================================================== */
body.itt-cart-open { overflow: hidden; }
/* overflow: hidden — il pannello sta fuori schermo a destra con translateX(100%), e una
 * trasformazione allarga comunque l'area scrollabile: senza il taglio, il documento
 * risultava largo 380px in piu' di quanto si vedesse. Su mobile e' il guaio peggiore,
 * perche' il browser rimpicciolisce l'intera pagina per farci stare quella larghezza.
 * A cassetto aperto il pannello e' a translateX(0), dentro i limiti: non si taglia nulla. */
.itt-cart-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; overflow: hidden; }
.itt-cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.itt-cart-overlay {
	position: absolute; inset: 0; background: rgba(15,15,15,.5);
	opacity: 0; transition: opacity .25s ease;
}
.itt-cart-drawer.is-open .itt-cart-overlay { opacity: 1; }
.itt-cart-panel {
	position: absolute; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw;
	background: #fff; box-shadow: -8px 0 40px rgba(0,0,0,.18);
	transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
	display: flex; flex-direction: column;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.itt-cart-drawer.is-open .itt-cart-panel { transform: translateX(0); }
.itt-cart-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--ittc-line); flex: none;
}
.itt-cart-title { font-size: 16px; font-weight: 700; color: var(--ittc-ink); }
.itt-cart-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #888; padding: 0 4px; }
.itt-cart-x:hover { color: var(--ittc-ink); }
.itt-cart-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }

/* ---- Mini-cart WooCommerce dentro al drawer (scope .itt-cart-panel) ---- */
.itt-cart-panel .widget_shopping_cart_content { font-size: 13px; color: var(--ittc-ink); }
.itt-cart-panel .woocommerce-mini-cart__empty-message { color: #888; padding: 28px 0; text-align: center; }

.itt-cart-panel ul.cart_list,
.itt-cart-panel ul.product_list_widget { list-style: none; margin: 0; padding: 0; }
.itt-cart-panel li.mini_cart_item,
.itt-cart-panel ul.cart_list li {
	position: relative; padding: 16px 28px 16px 68px; border-bottom: 1px solid var(--ittc-line); line-height: 1.45;
}
.itt-cart-panel li.mini_cart_item::after { content: ""; display: table; clear: both; }
.itt-cart-panel ul.cart_list li img,
.itt-cart-panel li.mini_cart_item img {
	position: absolute !important; left: 0; top: 16px; width: 56px !important; height: auto !important;
	margin: 0 !important; border: 1px solid var(--ittc-line); border-radius: 6px; float: none !important;
}
.itt-cart-panel li.mini_cart_item > a:not(.remove) { color: var(--ittc-ink); font-weight: 600; text-decoration: none; display: inline-block; }
.itt-cart-panel li.mini_cart_item > a:not(.remove):hover { color: var(--ittc-gold); }

/* Attributi variante compatti (dl.variation) */
.itt-cart-panel dl.variation { margin: 4px 0 2px; padding: 0; font-size: 11.5px; color: #777; display: flex; flex-wrap: wrap; gap: 0 8px; }
.itt-cart-panel dl.variation dt { margin: 0; font-weight: 600; color: #555; }
.itt-cart-panel dl.variation dt::after { content: " "; }
.itt-cart-panel dl.variation dd { margin: 0 4px 0 2px; padding: 0; }
.itt-cart-panel dl.variation dd p { margin: 0; display: inline; }

.itt-cart-panel .quantity { display: block; margin-top: 4px; color: var(--ittc-ink); font-weight: 600; }
.itt-cart-panel a.remove {
	position: absolute; right: 0; top: 16px; width: 22px; height: 22px; border-radius: 50%;
	display: flex !important; align-items: center; justify-content: center; background: var(--ittc-cream);
	color: #c00 !important; font-size: 15px; line-height: 1; text-decoration: none; font-weight: 400;
}
.itt-cart-panel a.remove:hover { background: #fde8e8; }

.itt-cart-panel p.woocommerce-mini-cart__total {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--ittc-line); margin: 8px 0 16px;
}
.itt-cart-panel p.woocommerce-mini-cart__total strong { font-weight: 700; }
.itt-cart-panel p.woocommerce-mini-cart__total .amount { color: var(--ittc-gold); font-weight: 700; font-size: 18px; }

.itt-cart-panel p.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.itt-cart-panel p.woocommerce-mini-cart__buttons a {
	display: block; text-align: center; padding: 13px 18px; border-radius: 6px; font-weight: 700;
	font-size: 14px; text-decoration: none; transition: background .2s; margin: 0;
}
.itt-cart-panel p.woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: var(--ittc-cream); color: var(--ittc-ink); border: 1px solid var(--ittc-line);
}
.itt-cart-panel p.woocommerce-mini-cart__buttons a.checkout { background: var(--ittc-gold); color: var(--ittc-ink); }
.itt-cart-panel p.woocommerce-mini-cart__buttons a.checkout:hover { background: var(--ittc-gold-dark); }

@media (max-width: 420px) {
	.itt-cart-panel { width: 100%; max-width: 100%; }
}

/* ============================================================
   Live Search Dropdown (native-search.js)
   ========================================================== */
.itt-search-wrap { position: relative; }

/* Spinner: anello CSS accanto all'input — la lente resta statica */
@keyframes itt-search-spin { to { transform: rotate(360deg); } }
.itt-search-spinner {
	display: none; flex: none;
	width: 14px; height: 14px;
	border: 2px solid rgba(232,168,0,.25);
	border-top-color: var(--ittc-gold);
	border-radius: 50%;
}
[data-itt-search-wrap].is-loading .itt-search-spinner {
	display: block;
	animation: itt-search-spin .65s linear infinite;
}

/* Pannello risultati — allineato al bordo destro del form di ricerca */
.itt-search-dropdown {
	position: absolute; top: calc(100% + 10px); right: 0; left: auto;
	width: 380px; max-width: calc(100vw - 16px);
	background: #fff; border-radius: 10px;
	box-shadow: 0 20px 56px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.08);
	border: 1px solid var(--ittc-line); z-index: 200; overflow: hidden;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.itt-sd-section { padding: 4px 0; }
.itt-sd-section + .itt-sd-section { border-top: 1px solid var(--ittc-line); }

.itt-sd-label {
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px;
	color: #b0a898; padding: 10px 16px 5px;
}

/* Riga categoria */
.itt-sd-cat {
	display: flex; align-items: center; gap: 10px; padding: 9px 16px;
	color: var(--ittc-ink); font-size: 13.5px; font-weight: 500; text-decoration: none;
	transition: background .12s, color .12s;
}
.itt-sd-cat:hover, .itt-sd-cat.is-active { background: #f7f6f2; color: var(--ittc-gold); }
.itt-sd-cat-ico { flex: none; color: #ccc; transition: color .12s; }
.itt-sd-cat:hover .itt-sd-cat-ico, .itt-sd-cat.is-active .itt-sd-cat-ico { color: var(--ittc-gold); }
.itt-sd-cat-name { flex: 1; }
.itt-sd-cat-count {
	font-size: 11px; color: #aaa; background: #f0eeea;
	border-radius: 10px; padding: 1px 8px; font-weight: 600; flex: none;
}
.itt-sd-cat-count--sub { color: #888; background: #ebe8e0; }

/* Riga prodotto */
.itt-sd-item {
	display: flex; align-items: center; gap: 12px; padding: 8px 16px;
	text-decoration: none; color: var(--ittc-ink); transition: background .12s;
	min-width: 0; overflow: hidden;
}
.itt-sd-item:hover, .itt-sd-item.is-active { background: #f7f6f2; }
.itt-sd-img-wrap { position: relative; flex: none; }
.itt-sd-img {
	width: 44px; height: 44px; object-fit: cover; border-radius: 6px;
	border: 1px solid var(--ittc-line); background: #f7f6f2; display: block;
}
.itt-sd-scm-badge {
	position: absolute; bottom: 2px; left: 2px; z-index: 1;
	background: rgba(255,255,255,0.92); border-radius: 3px; padding: 1px 4px;
	max-width: 34px; height: auto; display: block;
}
.itt-sd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.itt-sd-title {
	font-size: 13px; font-weight: 600; color: var(--ittc-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .12s;
}
.itt-sd-item:hover .itt-sd-title, .itt-sd-item.is-active .itt-sd-title { color: var(--ittc-gold); }

/* Seconda riga: SKU + prezzo affiancati */
.itt-sd-meta { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.itt-sd-sku  { font-size: 11px; color: #bbb; white-space: nowrap; flex: none; }
.itt-sd-price { font-size: 12px; font-weight: 700; color: var(--ittc-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Footer "vedi tutti" */
.itt-sd-footer { border-top: 1px solid var(--ittc-line); padding: 2px 0; }
.itt-sd-all {
	display: flex; align-items: center; gap: 6px; padding: 10px 16px;
	font-size: 12.5px; color: #888; text-decoration: none; transition: background .12s, color .12s;
}
.itt-sd-all:hover, .itt-sd-all.is-active { background: #f7f6f2; color: var(--ittc-gold); }
.itt-sd-all strong { font-weight: 700; color: var(--ittc-ink); transition: color .12s; }
.itt-sd-all:hover strong { color: var(--ittc-gold); }

/* Did You Mean */
.itt-sd-dym {
	padding: 8px 16px 6px;
	font-size: 12px;
	color: #888;
	border-bottom: 1px solid #eee;
}
.itt-sd-dym-link {
	color: var(--ittc-gold);
	font-weight: 600;
	text-decoration: none;
}
.itt-sd-dym-link:hover { text-decoration: underline; }

/* Nessun risultato */
.itt-sd-empty { padding: 24px 16px; text-align: center; color: #bbb; font-size: 13px; }

/* Dropdown nel nav drawer: fluisce nel documento così non copre i link sottostanti */
.itt-ndr-search .itt-search-dropdown {
	position: relative !important; top: auto !important;
	right: auto !important; left: auto !important;
	width: 100% !important; max-width: none !important;
	margin-top: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ============================================================
   ElasticPress autosuggest (dropdown header search)
   ========================================================== */
.itt-header-search .ep-autosuggest-container { width: 100%; }
.ep-autosuggest {
	background: #fff !important; border: 1px solid var(--ittc-line) !important;
	border-radius: 8px !important; box-shadow: 0 14px 36px rgba(0,0,0,.20) !important;
	margin-top: 8px !important; overflow: hidden; z-index: 200 !important; padding: 4px 0 !important;
	font-family: 'DM Sans', -apple-system, sans-serif;
}
.ep-autosuggest ul { list-style: none; margin: 0; padding: 0; }
.ep-autosuggest .autosuggest-list li,
.ep-autosuggest li.autosuggest-item,
.ep-autosuggest li {
	margin: 0; padding: 0; border: none; background: transparent;
}
.ep-autosuggest .autosuggest-link,
.ep-autosuggest li a,
.ep-autosuggest li span {
	display: block; padding: 10px 16px; font-size: 13.5px; color: var(--ittc-ink) !important;
	text-decoration: none; line-height: 1.4; transition: background .12s, color .12s; cursor: pointer;
}
.ep-autosuggest .autosuggest-link:hover,
.ep-autosuggest li a:hover,
.ep-autosuggest li.selected a,
.ep-autosuggest li.selected span,
.ep-autosuggest li:hover { background: var(--ittc-cream) !important; color: var(--ittc-gold) !important; }
.ep-autosuggest mark, .ep-autosuggest strong { color: var(--ittc-gold); background: none; font-weight: 700; }
