/**
 * TK Logo System - Stili responsive
 *
 * Le classi sono generate da branding.php. Per ogni device e setup:
 *  - tk-branding-<device>-row              => flex-direction: row
 *  - tk-branding-<device>-row-reverse      => flex-direction: row-reverse
 *  - tk-branding-<device>-column           => flex-direction: column
 *  - tk-branding-<device>-column-reverse   => flex-direction: column-reverse
 *  - tk-branding-<device>-no-logo          => nasconde logo
 *  - tk-branding-<device>-no-title         => nasconde titolo
 *  - tk-branding-<device>-no-tagline       => nasconde tagline
 *
 * Breakpoint:
 *  - desktop: >= 1025px
 *  - tablet:  720px - 1024px
 *  - mobile:  < 720px
 *
 * @since 2.5.72
 */

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

.tk-branding {
	display: flex;
	max-height: inherit;
	position: relative;
}

.tk-branding-link,
.tk-branding-link.brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	max-height: inherit;
	gap: 0.75em;
	flex-direction: row; /* default, override via classi device */
}

.tk-branding-link:hover,
.tk-branding-link:focus {
	text-decoration: none;
}

.tk-branding-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.tk-branding-logo-img,
.tk-branding-logo-img.custom-logo {
	display: block;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
}

.tk-branding-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.tk-branding-title {
	display: block;
	font-weight: 700;
	line-height: 1.2;
	font-size: 1.5em;
	margin: 0;
}

.tk-branding-tagline {
	display: block;
	font-size: 0.85em;
	line-height: 1.4;
	margin: 0.25em 0 0;
	opacity: 0.85;
}

/* ============== DESKTOP (>=1025px) ============== */

@media (min-width: 1025px) {
	.tk-branding.tk-branding-desktop-row .tk-branding-link {
		flex-direction: row;
		align-items: center;
	}
	.tk-branding.tk-branding-desktop-row-reverse .tk-branding-link {
		flex-direction: row-reverse;
		align-items: center;
	}
	.tk-branding.tk-branding-desktop-column .tk-branding-link {
		flex-direction: column;
		align-items: flex-start;
	}
	.tk-branding.tk-branding-desktop-column-reverse .tk-branding-link {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.tk-branding-desktop-no-logo .tk-branding-logo { display: none !important; }
	.tk-branding-desktop-no-title .tk-branding-title { display: none !important; }
	.tk-branding-desktop-no-tagline .tk-branding-tagline { display: none !important; }
	.tk-branding-desktop-no-title.tk-branding-desktop-no-tagline .tk-branding-text { display: none !important; }
}

/* ============== TABLET (720-1024px) ============== */

@media (min-width: 720px) and (max-width: 1024px) {
	.tk-branding.tk-branding-tablet-row .tk-branding-link {
		flex-direction: row;
		align-items: center;
	}
	.tk-branding.tk-branding-tablet-row-reverse .tk-branding-link {
		flex-direction: row-reverse;
		align-items: center;
	}
	.tk-branding.tk-branding-tablet-column .tk-branding-link {
		flex-direction: column;
		align-items: flex-start;
	}
	.tk-branding.tk-branding-tablet-column-reverse .tk-branding-link {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.tk-branding-tablet-no-logo .tk-branding-logo { display: none !important; }
	.tk-branding-tablet-no-title .tk-branding-title { display: none !important; }
	.tk-branding-tablet-no-tagline .tk-branding-tagline { display: none !important; }
	.tk-branding-tablet-no-title.tk-branding-tablet-no-tagline .tk-branding-text { display: none !important; }
}

/* ============== MOBILE (<720px) ============== */

@media (max-width: 719px) {
	.tk-branding.tk-branding-mobile-row .tk-branding-link {
		flex-direction: row;
		align-items: center;
	}
	.tk-branding.tk-branding-mobile-row-reverse .tk-branding-link {
		flex-direction: row-reverse;
		align-items: center;
	}
	.tk-branding.tk-branding-mobile-column .tk-branding-link {
		flex-direction: column;
		align-items: flex-start;
	}
	.tk-branding.tk-branding-mobile-column-reverse .tk-branding-link {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.tk-branding-mobile-no-logo .tk-branding-logo { display: none !important; }
	.tk-branding-mobile-no-title .tk-branding-title { display: none !important; }
	.tk-branding-mobile-no-tagline .tk-branding-tagline { display: none !important; }
	.tk-branding-mobile-no-title.tk-branding-mobile-no-tagline .tk-branding-text { display: none !important; }
}
