/* =======================================================================
   TECNO-ESHOP - RESTYLE GLOBALE HEADER + FOOTER (ex "layout v2")
   -----------------------------------------------------------------------
   Da ora questo foglio e' GLOBALE: il restyle di header e footer vale su TUTTE
   le pagine del sito. Prima era incluso SOLO quando l'URL conteneva ?layout=v2
   (dagli include condizionali in:
      view/prodotti/prodotti/index_.php
      view/prodotti/prodotto/index_.php );
   ora lo caricano gli entry-point CSS globali:
      template/html/css/DG_css.php    (pagine nuove servite da view/module.php)
      css/css.php                     (pagine legacy: index.php, carrello.php, p_*.php, area_*.php, ...)
   Vale per entrambe le famiglie di template, che hanno lo stesso markup e le
   stesse classi (template/html/header|footer/* e moduli/header|footer/*).
   Targetta gli ID globali #header / #footer (che in
   view/module.php stanno FUORI dal wrapper .pl2 e quindi non sono
   raggiungibili dalle regole di prodotti_v2.css).
   Solo CSS: nessuna modifica a markup, PHP condiviso o JS.
   ======================================================================= */

/* Inter (stessa tipografia delle pagine v2). Va per prima: e' un @import. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Token del brand v2 (stessi valori di prodotti_v2.css / prodotto_v2.css) */
#header,
#footer {
	--v2-brand: #1498dd;
	--v2-brand-cta: #0e7fb8;
	--v2-brand-dark: #0a6a9c;
	--v2-brand-soft: #e8f5fd;
	--v2-cta: #f46f11;
	--v2-ink: #2b333b;
	--v2-ink-2: #465360;
	--v2-muted: #6f7b87;
	--v2-line: #dfe6ec;
	--v2-soft: #f5f8fa;
	--v2-radius: 12px;
	--v2-shadow-1: 0 1px 2px rgba(43, 51, 59, .06);
	--v2-shadow-2: 0 8px 22px rgba(43, 51, 59, .10);
}

/* =======================================================================
   HEADER
   ======================================================================= */

/* --- Striscia superiore (contatti + account): da grigio chiaro a barra
       scura sobria, che stacca dall'header bianco sottostante. --- */
#header .header_top {
	background: #2b333b;
	-webkit-box-shadow: none;
	box-shadow: none;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

#header .header_top .contactinfo ul li a {
	color: rgba(255, 255, 255, .72);
	font-weight: 500;
	letter-spacing: .01em;
	-webkit-transition: color .15s ease;
	transition: color .15s ease;
}

#header .header_top .contactinfo ul li a:hover {
	color: #fff;
	background: transparent;
}

#header .header_top .social-icons ul li a,
#header .header_top .social-icons ul li p {
	color: rgba(255, 255, 255, .72);
	-webkit-transition: color .15s ease;
	transition: color .15s ease;
}

#header .header_top .social-icons ul li a:hover {
	color: #fff;
	background: transparent;
}

#header .header_top .social-icons ul li a b,
#header .header_top .social-icons ul li p b {
	font-weight: 600;
}

/* --- Barra centrale (logo + ricerca + carrello) --- */
#header .header-middle {
	background: #fff;
}

#header .header-middle .container .row {
	border-bottom: 1px solid var(--v2-line);
	padding-top: 14px;
	padding-bottom: 14px;
}

/* Ricerca: pill a due colonne. Uso FLEX (non la "table" di Bootstrap) cosi'
   il campo si prende lo spazio libero e il bottone resta SEMPRE agganciato a
   destra, con gli angoli arrotondati dal pill (niente lente "quadrata" ne'
   bottone fuori posizione). */
#header .search_box .input-group {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: stretch;
	-webkit-align-items: stretch;
	-ms-flex-align: stretch;
	align-items: stretch;
	width: 100%;
	background: #fff;
	border: 1px solid var(--v2-line);
	border-radius: 999px;
	overflow: hidden;
	-webkit-box-shadow: var(--v2-shadow-1);
	box-shadow: var(--v2-shadow-1);
	-webkit-transition: border-color .15s ease, box-shadow .15s ease;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#header .search_box .input-group:focus-within {
	border-color: var(--v2-brand);
	box-shadow: 0 0 0 3px rgba(20, 152, 221, .15);
}

#header .search_box input,
#header .search_box .form-control {
	-webkit-box-flex: 1;
	-webkit-flex: 1 1 auto;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 42px;
	padding: 0 18px;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--v2-ink);
	font-family: Inter, Roboto, Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
}

#header .search_box .form-control::placeholder {
	color: #9aa7b2;
}

#header .search_box .input-group-btn {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-flex: 0;
	-webkit-flex: 0 0 auto;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: auto;
}

#header .search_box .input-group-btn .btn {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 62px;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--v2-brand-cta);
	color: #fff;
	font-size: 17px;
	line-height: 1;
	-webkit-transition: background .15s ease;
	transition: background .15s ease;
}

#header .search_box .input-group-btn .btn:hover,
#header .search_box .input-group-btn .btn:focus {
	background: var(--v2-brand-dark);
	color: #fff;
}

/* Carrello */
#header .cart_toolbar_toggle {
	color: var(--v2-ink);
}

#header .cart_toolbar_icon i {
	color: var(--v2-brand-cta);
}

#header .cart_toolbar_icon span {
	background-color: var(--v2-cta);
}

#header .cart_toolbar_list,
#header .cart_toolbar_list_visible {
	background: #fff;
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius);
	-webkit-box-shadow: var(--v2-shadow-2);
	box-shadow: var(--v2-shadow-2);
}

#header .cart_toolbar_list:before,
#header .cart_toolbar_list_visible:before {
	border-bottom-color: #fff;
}

#header .cart_toolbar_header {
	background: var(--v2-brand-cta);
	border-radius: var(--v2-radius) var(--v2-radius) 0 0;
}

/* --- Barra di navigazione principale --- */
#header .header-bottom {
	background: -webkit-linear-gradient(left, var(--v2-brand-dark) 0, var(--v2-brand-cta) 55%, var(--v2-brand) 100%);
	background: linear-gradient(90deg, var(--v2-brand-dark) 0, var(--v2-brand-cta) 55%, var(--v2-brand) 100%);
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(43, 51, 59, .18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(43, 51, 59, .18);
}

/* Sulla barra blu MANTENGO il font condensato del tema (Roboto Condensed):
   e' l'unico che tiene l'intera riga di voci su una sola linea senza
   allargarsi fino a spezzare il menu. Alzo solo il peso, per un aspetto
   piu' inciso e "contemporaneo", senza cambiarne ingombro. */
#header .mainmenu ul li a,
#header .mainmenu ul li span {
	font-weight: 600;
}

#header .mainmenu ul li a:hover,
#header .mainmenu ul li a.active {
	color: #cfeafe;
}

/* CTA "Sei un Rivenditore o Installatore? Registrati" (nella barra blu a destra):
   il tema la rende verde (#00ff2b, inline) su fondo blu, poco leggibile e poco
   riconoscibile come call-to-action. In v2 diventa un bottone CTA arancione,
   centrato verticalmente nella barra (nessun margine "a occhio"). */
#header .header-bottom .mainmenu.pull-right > ul {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: end;
	-webkit-justify-content: flex-end;
	-ms-flex-pack: end;
	justify-content: flex-end;
	height: 45px;
}

/* il <li> della CTA non deve aggiungere il padding orizzontale di default */
#header .header-bottom .mainmenu.pull-right > ul > li {
	-webkit-box-flex: 0;
	-webkit-flex: 0 0 auto;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	float: none;
	padding: 0;
}

#header .header-bottom .mainmenu ul li a[href*="RivenditoriInstallatori"] {
	display: inline-block;
	color: #fff !important;
	background: var(--v2-cta);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0;
	line-height: 32px;
	height: 32px;
	padding: 0 11px;
	margin: 0;
	border-radius: 999px;
	white-space: nowrap;
	-webkit-box-shadow: 0 2px 8px rgba(244, 111, 17, .35);
	box-shadow: 0 2px 8px rgba(244, 111, 17, .35);
	-webkit-transition: background .15s ease, box-shadow .15s ease;
	transition: background .15s ease, box-shadow .15s ease;
}

#header .header-bottom .mainmenu ul li a[href*="RivenditoriInstallatori"]:hover {
	color: #fff !important;
	background: #d95d0d;
	line-height: 32px;
	-webkit-box-shadow: 0 4px 14px rgba(244, 111, 17, .45);
	box-shadow: 0 4px 14px rgba(244, 111, 17, .45);
}

/* --- Fascia infobar (vantaggi) --- */
#header .header-infobar {
	background: #f7fbfe;
	-webkit-box-shadow: none;
	box-shadow: none;
	border-bottom: 1px solid var(--v2-line);
}

#header .infobar_item {
	color: var(--v2-muted);
}

#header .infobar_icon .icon {
	color: var(--v2-brand);
}

#header .infobar_title {
	color: var(--v2-ink);
	font-family: Inter, Roboto, Arial, sans-serif;
	letter-spacing: -.04em;
}

#header .infobar_subtitle {
	color: var(--v2-muted);
}

/* --- Header mobile (tab-bar): solo ricolorazione degli accenti --- */
#header .tab-bar {
	color: var(--v2-brand-cta);
	border-bottom-color: var(--v2-line);
}

#header .tab-bar .cart-icon,
#header .tab-bar .user,
#header .tab-bar .menu-icon {
	color: var(--v2-brand-cta);
}

#header .tab-bar .cart-icon b {
	background-color: var(--v2-cta);
}

/* =======================================================================
   FOOTER
   ======================================================================= */
#footer {
	background: #fff;
	border-top: 1px solid var(--v2-line);
	color: var(--v2-muted);
}

/* --- Vantaggi + pagamenti --- */
#footer .footer-top .container {
	border-bottom: 1px solid var(--v2-line);
}

#footer .footer-highlights_title {
	color: var(--v2-ink);
	font-family: Inter, Roboto, Arial, sans-serif;
	letter-spacing: .03em;
}

#footer .footer-highlights .icon {
	color: var(--v2-brand);
}

/* L'icona "Contattaci" non e' un'icona font ma un PNG dorato (design/operatore.png):
   la ricoloro con un filtro per portarla allo stesso azzurro brand delle altre. */
#footer .footer-highlights_icon img,
#footer .footer-highlights img[src*="operatore"] {
	filter: brightness(0) saturate(100%) invert(42%) sepia(100%) saturate(400%) hue-rotate(155.5deg) brightness(100%) contrast(108%);
	-webkit-filter: brightness(0) saturate(100%) invert(42%) sepia(100%) saturate(400%) hue-rotate(155.5deg) brightness(100%) contrast(108%);
}

#footer .footer-highlights a {
	color: var(--v2-brand-cta);
	font-weight: 600;
}

#footer .footer-highlights p {
	color: var(--v2-muted);
	font-size: 13px;
	line-height: 1.6;
}

#footer .footer-highlights .phone a {
	color: var(--v2-brand-cta);
}

#footer .footer-highlights .phone_w a {
	color: #25d366;
}

/* --- Pagamenti: dai vecchi banner JPG a una fila di badge uniformi (solo v2) ---
   Il markup del footer e' GLOBALE (template/html/footer/DG_footer_top.php) e non
   va toccato: qui ridisegno via CSS i 4 .payment "hidden-xs" come badge con i
   loghi/icone dei metodi di pagamento. Le <img> originali restano nel DOM
   (nascoste) cosi' non si perdono gli attributi alt. */
#footer .footer-top .col-sm-2 .payment {
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 8px 10px;
	margin: 0 0 8px;
	background: var(--v2-soft);
	border: 1px solid var(--v2-line);
	border-radius: 10px;
	-webkit-transition: border-color .15s ease, box-shadow .15s ease;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#footer .footer-top .col-sm-2 .payment:hover {
	border-color: #cfe0ef;
	-webkit-box-shadow: var(--v2-shadow-1);
	box-shadow: var(--v2-shadow-1);
}

/* margine superiore del primo badge, per allineare la colonna pagamenti alle
   colonne dei vantaggi (h4 con margine) e a quella del premio (margin-top:20px) */
#footer .footer-top .col-sm-2 .payment:first-of-type {
	margin-top: 20px;
}

/* l'immagine JPG storica resta nel DOM (alt conservato) ma non e' piu' mostrata */
#footer .footer-top .col-sm-2 .payment img {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
}

/* il banner "combinato" per mobile non serve piu': i badge compaiono anche su mobile */
#footer .footer-top .col-sm-2 .payment.visible-xs {
	display: none !important;
}

/* logo / icona del badge */
#footer .footer-top .col-sm-2 .payment::before {
	content: "";
	-webkit-box-flex: 0;
	-webkit-flex: 0 0 auto;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* etichetta delle voci senza logo ufficiale (Bonifico / Contrassegno)
   Il testo ora e' REALE nel DOM (span.pay-lbl, nascosto con [hidden] nelle pagine
   che non usano questo foglio): prima era generato da ::after e non tutti gli
   screen reader leggono il content CSS. */
#footer .footer-top .col-sm-2 .payment .pay-lbl[hidden] {
	display: inline !important;
	font-family: Inter, Roboto, Arial, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--v2-ink);
	text-align: left;
}

/* 1) PayPal + carte di credito (loghi ufficiali) */
#footer .footer-top .col-sm-2 .payment:nth-of-type(1)::before {
	width: 78px;
	height: 22px;
	background-image: url('/design/pagamenti/paypal.svg'),
		url('/design/pagamenti/visa.svg'),
		url('/design/pagamenti/mastercard.svg');
	background-position: 0 center, 30px center, 58px center;
	background-size: 22px 22px, 20px 20px, 20px 20px;
}

/* 2) Satispay */
#footer .footer-top .col-sm-2 .payment:nth-of-type(2)::before {
	width: 84px;
	height: 22px;
	background-image: url('/design/pagamenti/satispay.svg');
}

/* 3) Bonifico bancario */
#footer .footer-top .col-sm-2 .payment:nth-of-type(3)::before {
	background-image: url('/design/pagamenti/bonifico.svg');
}

/* 4) Contrassegno */
#footer .footer-top .col-sm-2 .payment:nth-of-type(4)::before {
	background-image: url('/design/pagamenti/contrassegno.svg');
}

/* su mobile Bootstrap nasconde .hidden-xs: in v2 i badge restano visibili */
@media (max-width: 767px) {
	#footer .footer-top .col-sm-2 .payment.hidden-xs {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex !important;
	}
}

/* --- Link + newsletter --- */
#footer .footer-widget {
	background: var(--v2-soft);
	margin-bottom: 0;
	padding-bottom: 22px;
}

#footer .footer-widget .container {
	border-top: none;
	padding-top: 28px;
}

#footer .single-widget h3 {
	position: relative;
	color: var(--v2-ink);
	font-family: Inter, Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	padding-bottom: 10px;
	margin-bottom: 14px;
}

#footer .single-widget h3:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 3px;
	border-radius: 3px;
	background: var(--v2-brand);
}

#footer .single-widget ul li a {
	color: var(--v2-muted);
	font-family: Inter, Roboto, Arial, sans-serif;
	font-size: 13.5px;
	font-weight: 400;
	padding: 6px 0;
	-webkit-transition: color .15s ease, padding-left .15s ease;
	transition: color .15s ease, padding-left .15s ease;
}

#footer .single-widget ul li a:hover {
	background: none;
	color: var(--v2-brand-cta);
	padding-left: 5px;
}

/* Newsletter */
#footer .newsletterform {
	max-width: 260px;
}

#footer .newsletterform .input-group {
	width: 100%;
	background: #fff;
	border: 1px solid var(--v2-line);
	border-radius: 999px;
	overflow: hidden;
	-webkit-transition: border-color .15s ease, box-shadow .15s ease;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#footer .newsletterform .input-group:focus-within {
	border-color: var(--v2-brand);
	box-shadow: 0 0 0 3px rgba(20, 152, 221, .15);
}

#footer .newsletterform input {
	width: 100%;
	height: 40px;
	border: none;
	background: transparent;
	color: var(--v2-ink);
	font-size: 13.5px;
	box-shadow: none;
}

#footer .newsletterform button,
#footer .newsletterform .btn_test {
	height: 40px;
	padding: 0 16px;
	border: none;
	border-radius: 0;
	background: var(--v2-brand-cta);
	-webkit-transition: background .15s ease;
	transition: background .15s ease;
}

#footer .newsletterform button:hover,
#footer .newsletterform button:focus,
#footer .newsletterform .btn_test:hover,
#footer .newsletterform .btn_test:focus {
	background: var(--v2-brand-dark);
}

#footer .newsletterform button i {
	color: #fff;
	font-size: 16px;
}

#footer .newsletterform p {
	color: var(--v2-muted);
	font-size: 12.5px;
	line-height: 1.5;
	margin-top: 12px;
}

/* --- Striscia inferiore (copyright) --- */
#footer .footer-bottom {
	background: var(--v2-ink);
	padding: 16px 0;
}

#footer .footer-bottom p {
	color: rgba(255, 255, 255, .62);
	font-family: Inter, Roboto, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.7;
	margin-left: 0;
}

#footer .footer-bottom p b {
	color: rgba(255, 255, 255, .85);
	font-weight: 600;
}

#footer .footer-bottom p span a {
	color: var(--v2-brand);
	font-style: normal;
	text-decoration: none;
}

#footer .footer-bottom p span a:hover {
	text-decoration: underline;
}

/* =======================================================================
   FOOTER - MOBILE: link utili / spedizioni / newsletter / social
   -----------------------------------------------------------------------
   Il .row del footer-widget ha un display:flex inline con colonne
   .col-sm-2 .col-xs-6 (50%): su telefono i blocchi finivano compressi in
   mezza larghezza e "Iscriviti"/"Seguici" si sovrapponevano.
   Qui sotto i 768px si costruisce una GRIGLIA 2 COLONNE compatta:

       [ Tecno-eshop   ] [ Servizio clienti ]
       [ Strumenti     ] [ Diritti e tutele ]
       [ Spediamo con  ] [ Seguici (icone)   ]
       [ Iscriviti / newsletter  full width ]

   La colonna che contiene "Iscriviti" + "Seguici" viene "aperta" con
   display:contents, cosi' i suoi due blocchi entrano nella griglia
   (il social accanto al logo BRT, la newsletter a tutta larghezza in fondo
   con l'aiuto di `order`). Solo CSS, solo layout v2.
   ======================================================================= */
@media (max-width: 767px) {

	#footer .footer-widget .row {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex !important;
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap !important;
		margin-left: -10px;
		margin-right: -10px;
	}

	#footer .footer-widget .row > [class*="col-"] {
		float: none !important;
		width: 50% !important;
		max-width: 50% !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
		margin: 0 0 24px !important;
	}

	/* la colonna "Iscriviti + Seguici": i due blocchi diventano celle della griglia */
	#footer .footer-widget .row > [class*="col-"]:last-child {
		display: contents !important;
	}

	#footer .footer-widget .row > [class*="col-"]:last-child > .single-widget {
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 50%;
		-ms-flex: 0 0 50%;
		flex: 0 0 50% !important;
		width: 50% !important;
		max-width: 50% !important;
		padding: 0 10px !important;
		margin: 0 0 24px !important;
	}

	/* social accanto a "Spediamo con" (prima della newsletter) */
	#footer .footer-widget .row > [class*="col-"]:last-child > .single-widget:nth-child(2) {
		-webkit-box-ordinal-group: 2;
		-webkit-order: 1;
		-ms-flex-order: 1;
		order: 1;
	}

	/* newsletter: riga intera, in fondo */
	#footer .footer-widget .row > [class*="col-"]:last-child > .single-widget:nth-child(1) {
		-webkit-box-ordinal-group: 3;
		-webkit-order: 2;
		-ms-flex-order: 2;
		order: 2;
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 100%;
		-ms-flex: 0 0 100%;
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	#footer .footer-widget .single-widget {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 24px !important;
		padding-left: 0 !important;
	}

	#footer .footer-widget .single-widget:last-child {
		margin-bottom: 4px !important;
	}

	#footer .footer-widget .single-widget h3 {
		display: block !important;
		width: auto !important;
		float: none !important;
		font-size: 12.5px !important;
		line-height: 1.32 !important;
		letter-spacing: .04em !important;
		margin: 0 0 12px !important;
	}

	#footer .footer-widget .single-widget ul li a {
		padding: 6px 0;
		font-size: 13.5px;
		line-height: 1.35;
	}

	/* immagine "Spediamo con" (BRT): compatta, sta nella mezza colonna */
	#footer .footer-widget .single-widget > img {
		max-width: 120px !important;
		height: auto !important;
	}

	/* newsletter a tutta larghezza e campi piu' alti (tap piu' comodo) */
	#footer .newsletterform {
		max-width: 100% !important;
		width: 100% !important;
	}

	#footer .newsletterform .input-group {
		width: 100% !important;
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
	}

	#footer .newsletterform input {
		height: 44px !important;
		font-size: 14px;
	}

	#footer .newsletterform button,
	#footer .newsletterform .btn_test {
		height: 44px !important;
		padding: 0 18px !important;
	}

	#footer .newsletterform p {
		max-width: none !important;
		margin-top: 10px !important;
	}

	/* social: solo le icone (il wrapper e' il div dentro il single-widget) */
	#footer .footer-widget .single-widget > div {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
		gap: 12px;
	}

	#footer .footer-widget .single-widget > div > a {
		display: -webkit-inline-box;
		display: -webkit-inline-flex;
		display: -ms-inline-flexbox;
		display: inline-flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
		margin: 0 !important;
		line-height: 1;
	}

	#footer .footer-widget .single-widget > div > a i {
		font-size: 1.9em !important;
		line-height: 1 !important;
		margin-right: 0 !important;
	}
}

/* =======================================================================
   FOOTER-TOP - MOBILE: i 4 vantaggi (trasporto, garanzia, reso, contatti)
   Con i float e altezze diverse la griglia "si sfalsava" (RESO FACILE
   finiva sotto GARANZIA e CONTATTACI restava solo, centrato).
   Qui si usa una vera CSS GRID 2x2: ogni cella ha la stessa altezza,
   il logo del premio resta sopra e i separatori storici spariscono.
   ======================================================================= */
@media (max-width: 767px) {

	#footer .footer-top .col-sm-8 {
		display: -ms-grid;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 12px;
		width: 100% !important;
		float: none !important;
		padding-left: 8px !important;
		padding-right: 8px !important;
	}

	#footer .footer-top .col-sm-8 > [class*="col-"] {
		width: auto !important;
		max-width: none !important;
		float: none !important;
		padding: 0 4px !important;
		margin: 0 !important;
		min-width: 0;
	}

	#footer .footer-top .buybox_separatore {
		display: none !important;
	}

	/* stessa altezza per tutte le celle + contenuto centrato */
	#footer .footer-highlights {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
		height: 100%;
		padding: 10px 2px;
	}

	#footer .footer-highlights_title {
		font-size: 13.5px !important;
		line-height: 1.3 !important;
		margin-bottom: 8px !important;
	}

	#footer .footer-highlights p {
		font-size: 12.5px;
		line-height: 1.45;
		margin-bottom: 0;
	}

	/* icona "operatore" e immagini varie: non devono dominare la cella */
	#footer .footer-highlights_icon img {
		max-width: 54px;
		height: auto;
	}
}
