/**
 * Sitisocial Framework
 * Design System v1.0
 */

/* =========================================================
   ROOT TOKENS
   ========================================================= */

:root {
	/* Brand colors */
	--ssf-color-primary: #B92A22;
	--ssf-color-primary-hover: #9F221C;

	--ssf-color-dark: #111111;
	--ssf-color-dark-soft: #1d1d1f;

	--ssf-color-white: #ffffff;

	/* Text */
	--ssf-color-text: #171717;
	--ssf-color-muted: #606060;

	/* Backgrounds */
	--ssf-color-background: #ffffff;
	--ssf-color-background-soft: #f6f6f6;

	/* Borders */
	--ssf-color-border: #e3e3e3;
	--ssf-color-border-dark: #cccccc;

	/* Typography */
	--ssf-font-family: Inter, Arial, sans-serif;

	/* Layout */
	--ssf-container-width: 1280px;
	--ssf-content-width: 800px;

	/* Spacing */
	--ssf-space-1: 4px;
	--ssf-space-2: 8px;
	--ssf-space-3: 12px;
	--ssf-space-4: 16px;
	--ssf-space-5: 24px;
	--ssf-space-6: 32px;
	--ssf-space-7: 48px;
	--ssf-space-8: 64px;
	--ssf-space-9: 80px;
	--ssf-space-10: 112px;

	/* Section spacing */
	--ssf-section-space: 80px;
	--ssf-section-space-small: 48px;
	--ssf-section-space-large: 112px;

	/* Radius */
	--ssf-radius-small: 6px;
	--ssf-radius-medium: 10px;
	--ssf-radius-large: 16px;
	--ssf-radius-pill: 999px;

	/* Shadows */
	--ssf-shadow-small: 0 2px 10px rgba(0, 0, 0, 0.05);
	--ssf-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.07);

	/* Transitions */
	--ssf-transition-fast: 180ms ease;
}

/* =========================================================
   BASE
   ========================================================= */

html {
	scroll-behavior: smooth;
}

body {
	color: var(--ssf-color-text);
	background: var(--ssf-color-background);
	font-family: var(--ssf-font-family);
}

/* =========================================================
   BADGES
   ========================================================= */

.ssf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	padding: 6px 10px;

	border-radius: var(--ssf-radius-pill);
	background: var(--ssf-color-background-soft);
	color: var(--ssf-color-text);

	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.ssf-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================
   FULLDIP GLOBAL HEADER
   ========================================================= */

#masthead {
	background: var(--ssf-color-white);
	border-bottom: 1px solid var(--ssf-color-border);
}

#masthead .site-main-header-inner-wrap {
	min-height: 80px;
}

#masthead .site-header-item {
	display: flex;
	align-items: center;
}


/* =========================================================
   LOGO
   ========================================================= */

#masthead .site-branding {
	margin: 0;
}

#masthead .custom-logo-link {
	display: flex;
	align-items: center;
}

#masthead .custom-logo {
	display: block;
	width: auto;
	max-width: 175px;
	max-height: 58px;
	object-fit: contain;
}


/* Nasconde il titolo testuale se il logo è presente */
#masthead .site-title {
	display: none;
}


/* =========================================================
   MAIN MENU
   ========================================================= */

#masthead .primary-menu-container > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

#masthead .primary-menu-container > ul > li > a {
	padding: 28px 14px;

	color: var(--ssf-color-text);

	font-size: 13px;
	font-weight: 800;

	letter-spacing: 0.01em;

	text-transform: uppercase;

	transition:
		color 160ms ease,
		background-color 160ms ease;
}

#masthead .primary-menu-container > ul > li > a:hover,
#masthead .primary-menu-container > ul > li.current-menu-item > a {
	color: var(--ssf-color-primary);
}


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

#masthead .header-search-toggle,
#masthead .header-account-button,
#masthead .header-cart-button {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	min-width: 42px;
	min-height: 42px;

	border-radius: 50%;

	color: var(--ssf-color-text);

	transition:
		color 160ms ease,
		background-color 160ms ease;
}

#masthead .header-search-toggle:hover,
#masthead .header-account-button:hover,
#masthead .header-cart-button:hover {
	background: var(--ssf-color-background-soft);
	color: var(--ssf-color-primary);
}


/* =========================================================
   CART COUNT
   ========================================================= */

#masthead .header-cart-total {
	font-weight: 800;
}

#masthead .header-cart-button .header-cart-total {
	color: var(--ssf-color-text);
}


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

#masthead.is-sticky,
.site-header-upper-inner-wrap.child-is-fixed {
	background: rgba(255,255,255,0.97);

	box-shadow:
		0 8px 26px
		rgba(0,0,0,0.055);

	backdrop-filter: blur(12px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	#masthead .custom-logo {
		max-width: 150px;
		max-height: 52px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	#masthead .site-main-header-inner-wrap {
		min-height: 68px;
	}

	#masthead .custom-logo {
		max-width: 135px;
		max-height: 46px;
	}

}

/* =========================================================
   FULLDIP HEADER TRUST BAR
   ========================================================= */

.ssf-header-trustbar {
	position: relative;
	z-index: 20;
	background: var(--ssf-color-dark);
	color: var(--ssf-color-white);
}

.ssf-header-trustbar__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	min-height: 44px;
}

.ssf-header-trustbar__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 0;
	padding: 10px 18px;
	border-right: 1px solid rgba(255, 255, 255, 0.10);
	text-align: center;
}

.ssf-header-trustbar__item:last-child {
	border-right: 0;
}

.ssf-header-trustbar__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	color: var(--ssf-color-white);
	font-size: 15px;
	line-height: 1;
}

.ssf-header-trustbar__item strong {
	color: var(--ssf-color-white);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.015em;
	text-transform: uppercase;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.ssf-header-trustbar__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ssf-header-trustbar__item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	}

	.ssf-header-trustbar__item:nth-child(2n) {
		border-right: 0;
	}

	.ssf-header-trustbar__item:nth-last-child(-n + 2) {
		border-bottom: 0;
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.ssf-header-trustbar {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ssf-header-trustbar::-webkit-scrollbar {
		display: none;
	}

	.ssf-header-trustbar__grid {
		display: flex;
		width: max-content;
		min-width: 100%;
		min-height: 40px;
	}

	.ssf-header-trustbar__item {
		flex: 0 0 auto;
		min-width: 210px;
		padding: 9px 14px;
		border-right: 1px solid rgba(255, 255, 255, 0.10);
		border-bottom: 0;
	}

	.ssf-header-trustbar__item strong {
		font-size: 10px;
	}
}