/**
 * Passione Italiana – Hero-karta [passione_karta_hero]
 * Fullskärms hero med frilagd SVG-karta och auto-roterande regioner.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600&display=swap');

.pik-hero-wrap {
	position: relative;
	width: 100%;
	min-height: 600px;
	height: 90vh;
	max-height: 860px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

/* Bakgrundsbild */
.pik-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #1a1008;
	transition: background-image 0.8s ease;
}

/* Snygg fallback-bakgrund när region saknar hero-bild */
.pik-hero-wrap--noimg .pik-hero-bg {
	background-image: radial-gradient(120% 120% at 30% 20%, #2a1d16 0%, #160d07 70%) !important;
}

/* Mörkt överlägg */
.pik-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(10, 6, 4, 0.65) 0%,
		rgba(10, 6, 4, 0.45) 40%,
		rgba(10, 6, 4, 0.82) 100%
	);
	pointer-events: none;
}

/* Inre layout */
.pik-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 3rem 4rem;
	gap: 4rem;
}

/* Kartkolumn */
.pik-hero-map-col {
	flex: 0 0 auto;
	width: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* SVG */
.pik-hero-svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
}

/* Klick-uppmaning: svävar upptill på desktop, flödar under kartan på mobil */
.pik-hero-hint {
	position: absolute;
	top: 2.2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0.5rem 1.1rem;
	background: rgba(10, 6, 4, 0.4);
	border: 1px solid rgba(217, 177, 120, 0.45);
	border-radius: 999px;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	color: #f3ead6;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	line-height: 1.3;
	white-space: nowrap;
}

.pik-hero-hint svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: none;
	stroke: #d9b178;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Regioner – frilagda, vita med mörkare kantlinje */
.pik-hero-region path {
	fill: rgba(255, 255, 255, 0.28);
	stroke: rgba(255, 255, 255, 0.8);
	stroke-width: 0.8;
	transition: fill 0.3s ease, stroke 0.3s ease;
}

.pik-hero-region--empty path {
	fill: rgba(255, 255, 255, 0.25);
	stroke: rgba(255, 255, 255, 0.25);
	stroke-width: 0.5;
}

.pik-hero-region--active {
	cursor: pointer;
}

.pik-hero-region--active path {
	fill: rgba(217, 177, 120, 0.25);
	stroke: rgba(255, 255, 255, 0.9);
	stroke-width: 1;
}

.pik-hero-region--active:hover path {
	fill: rgba(217, 177, 120, 0.45);
	stroke: rgba(217, 177, 120, 0.9);
}

.pik-hero-region.is-active path {
	fill: rgba(217, 177, 120, 0.6);
	stroke: #d9b178;
	stroke-width: 1.4;
}

/* Snyggt guldfokus istället för webbläsarens blå ruta */
.pik-hero-region:focus {
	outline: none;
}

.pik-hero-region:focus-visible path {
	fill: rgba(217, 177, 120, 0.45);
	stroke: #d9b178;
	stroke-width: 1.5;
}

/* Fallback-läge: gör hela kartan hoverbar även utan hero-innehåll */
.pik-hero-wrap.is-fallback .pik-hero-region {
	cursor: pointer;
}

.pik-hero-wrap.is-fallback .pik-hero-region:hover path {
	fill: rgba(217, 177, 120, 0.4);
	stroke: rgba(217, 177, 120, 0.85);
}

/* Textkolumn */
.pik-hero-text-col {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.pik-hero-content {
	max-width: 440px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.pik-hero-content.is-visible {
	opacity: 1;
	transform: none;
}

.pik-hero-region-name {
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #d9b178;
	margin-bottom: 0.9rem;
}

.pik-hero-heading {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 400;
	font-size: clamp(2rem, 3.5vw, 3rem);
	line-height: 1.05;
	color: #f3ead6;
	margin-bottom: 1.1rem;
}

.pik-hero-body {
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(243, 234, 214, 0.82);
	margin-bottom: 1.8rem;
}

.pik-hero-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #f3ead6;
	text-decoration: none !important;
	letter-spacing: 0.03em;
	background: rgba(42, 29, 22, 0.6);
	border: 1.5px solid #d9b178;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.pik-hero-link:hover,
.pik-hero-link:focus {
	background: #d9b178;
	color: #2a1d16;
	text-decoration: none !important;
	gap: 0.8rem;
}

.pik-hero-link[href="#"] {
	display: none;
}

/* Navigeringsprickar */
.pik-hero-dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.pik-hero-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(243, 234, 214, 0.35);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.pik-hero-dot.is-active {
	background: #d9b178;
	transform: scale(1.4);
}

/* Progress-bar i aktiv prick */
.pik-hero-dot.is-active::after {
	content: none;
}

/* Mobil */
@media (max-width: 820px) {
	.pik-hero-wrap {
		height: auto;
		min-height: 0;
		max-height: none;
		align-items: flex-start;
	}

	.pik-hero-inner {
		flex-direction: column;
		align-items: stretch;
		padding: calc(5.5rem + 50px) 1.5rem 6.5rem;
		gap: 2rem;
	}

	/* Kartan före texten på mobil */
	.pik-hero-text-col {
		order: 0;
		justify-content: flex-start;
	}

	.pik-hero-map-col {
		width: 100%;
		max-width: 340px;
		align-self: center;
		flex-direction: column;
		gap: 1.1rem;
	}

	/* Uppmaningen ovanför kartan, mindre och på en rad */
	.pik-hero-hint {
		order: -1;
		position: static;
		transform: none;
		white-space: nowrap;
		text-align: center;
		justify-content: center;
		font-size: 0.72rem;
		padding: 0.45rem 1rem;
	}

	.pik-hero-content {
		max-width: 100%;
	}

	.pik-hero-heading {
		font-size: 2rem;
	}
}
