/**
 * Il Vino Piemonte — Footer.
 * Donkere footer met merk/contact, drie linkkolommen, nieuwsbrief en copyright.
 */

/* Voorkom horizontale overflow (full-bleed secties) op mobiel.
   Op html/body met 'clip' zodat een sticky header niet breekt. */
html,
body {
	overflow-x: clip;
	max-width: 100%;
}

.wp-site-blocks {
	overflow-x: clip;
}

/* Footer altijd volledige breedte, flush. */
#ivf-footer {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Blog "Lees verder"-links als kleine gouden knop (huisstijl). */
.wp-block-post-excerpt__more-link,
a.wp-block-read-more,
.wp-block-read-more,
.more-link,
.elementor-post__read-more,
.elementor-posts .elementor-post__read-more {
	display: inline-block !important;
	background: #c2a878 !important;
	color: #1a1a1a !important;
	border: 0 !important;
	border-radius: 4px !important;
	padding: 9px 18px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.3px;
	text-transform: uppercase !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
}

.wp-block-post-excerpt__more-link:hover,
a.wp-block-read-more:hover,
.wp-block-read-more:hover,
.more-link:hover,
.elementor-post__read-more:hover {
	opacity: 0.9;
	color: #1a1a1a !important;
}

/* Verberg de originele (externe) WebwinkelKeur-badge; we tonen onze eigen. */
#wwkSidebar,
#wwkSidebarMobile,
.wwk-sidebar,
.wwk-sidebar--mobile-wrapper {
	display: none !important;
}

/* Eigen zwevende WebwinkelKeur-badge, vast aan de rechterkant. */
.ivwk-badge {
	position: fixed;
	top: 40%;
	right: 0;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 48px;
	padding: 10px 8px;
	background: var(--ivwk-color, #FE008C);
	border-radius: 8px 0 0 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: padding-right 0.15s ease;
}

.ivwk-badge:hover {
	padding-right: 12px;
}

.ivwk-badge__logo {
	display: block;
	width: 30px;
	height: 30px;
	line-height: 0;
}

.ivwk-badge__logo svg {
	width: 100%;
	height: 100%;
	display: block;
}

.ivwk-badge__score {
	display: block;
	background: #fff;
	color: var(--ivwk-color, #FE008C);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 4px;
}

@media (max-width: 782px) {
	.ivwk-badge {
		top: auto;
		bottom: 90px;
		width: 42px;
		padding: 8px 6px;
	}

	.ivwk-badge__logo {
		width: 26px;
		height: 26px;
	}
}

:root {
	--ivf-bg: #0c0c0c;
	--ivf-gold: #c9b291;
	--ivf-text: #ffffff;
	--ivf-muted: #b9b9b9;
}

/* Verberg de standaard thema-footer zodat alleen onze eigen footer zichtbaar is.
   - theme-compat fallback (#footer) op Elementor Full-Width-pagina's
   - blok-thema footer (Twenty Twenty-Five) op normale pagina's. */
#page > #footer[role="contentinfo"],
#page > #footer[role="contentinfo"] ~ hr,
.wp-site-blocks > footer.wp-block-template-part {
	display: none !important;
}

.ivf-footer * {
	box-sizing: border-box;
}

.ivf-footer {
	background: var(--ivf-bg);
	color: var(--ivf-text);
	font-family: Arial, Helvetica, sans-serif;
}

.ivf-footer__inner {
	width: 100%;
	margin: 0;
	padding: 55px 20px 40px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
	gap: 30px;
}

/* Merk-kolom met eigen achtergrond (logo + contact), flush tegen de linker-,
   boven- en onderrand van de footer (compenseert de padding van __inner). */
.ivf-col--brand {
	background: var(--ivf-brand-bg, transparent);
	align-self: stretch;
	margin: -55px 0 290px -20px;
	padding: 5px 24px 4px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Merk + contact */
.ivf-brand img {
	width: 350px;
	max-width: 100%;
	height: auto;
}

.ivf-brand__text {
	display: inline-block;
	text-decoration: none;
	color: #fff;
	line-height: 1;
}

.ivf-brand__l1 {
	display: block;
	font-size: 34px;
	letter-spacing: 9px;
}

.ivf-brand__l2 {
	display: block;
	font-size: 18px;
	font-weight: 300;
	letter-spacing: 7px;
	padding-left: 24px;
	margin-top: 4px;
}

.ivf-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 34px;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.ivf-contact:hover {
	color: var(--ivf-gold);
}

/* Kolomtitels + links */
.ivf-col__title {
	margin: 0 0 26px;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ivf-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ivf-menu li {
	margin: 0 0 14px;
}

.ivf-menu a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ivf-menu a:hover {
	color: var(--ivf-gold);
}

/* Nieuwsbrief */
.ivf-news {
	margin: 0;
}

.ivf-news__row {
	display: flex;
}

.ivf-news__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 14px 16px;
	font-size: 14px;
	color: #222;
	background: #fff;
}

.ivf-news__btn {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	padding: 14px 22px;
	background: var(--ivf-gold);
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.ivf-news__btn:hover {
	opacity: 0.9;
}

.ivf-news__msg {
	margin: 10px 0 0;
	font-size: 13px;
	min-height: 18px;
}

.ivf-news__msg.is-ok {
	color: #8fd19e;
}

.ivf-news__msg.is-error {
	color: #e88;
}

.ivf-news__note {
	margin: 16px 0 0;
	color: var(--ivf-muted);
	font-size: 13px;
	line-height: 1.5;
}

.ivf-social {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
}

.ivf-social__link {
	color: #fff;
	display: inline-flex;
}

.ivf-social__link:hover {
	color: var(--ivf-gold);
}

.ivf-nix18 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #fff;
}

.ivf-nix18 strong {
	color: #fff;
	background: #fff;
	color: #0c0c0c;
	border-radius: 50%;
	padding: 2px 7px;
	margin-left: 2px;
	font-weight: 800;
}

/* Onderbalk */
.ivf-footer__bottom {
	text-align: center;
	padding: 26px 20px 34px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

/* Responsief */
@media (max-width: 1100px) {
	.ivf-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.ivf-footer__inner {
		grid-template-columns: 1fr;
		padding: 40px 22px 30px;
	}

	.ivf-col--brand {
		margin: -40px -22px 20px;
		padding: 30px 22px;
	}
}
