/* ==========================================================================
   strutture.css — Work in progress page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sezione WIP — full viewport
   -------------------------------------------------------------------------- */

.strutture-wip {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Sfondo
   -------------------------------------------------------------------------- */

.strutture-wip__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.strutture-wip__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.strutture-wip__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(27, 79, 92, 0.88) 0%,
		rgba(63, 85, 110, 0.82) 100%
	);
}

/* --------------------------------------------------------------------------
   Contenuto
   -------------------------------------------------------------------------- */

.strutture-wip__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-lg);
	max-width: 720px;
	padding: var(--space-2xl) var(--space-lg);
}

/* Icona casa */
.strutture-wip__icon {
	width: 72px;
	height: 72px;
	color: var(--color-primary-light);
	opacity: 0.9;
}

.strutture-wip__icon svg {
	width: 100%;
	height: 100%;
}

/* Label */
.strutture-wip__label {
	font-size: var(--font-size-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-primary-light);
}

/* Titolo */
.strutture-wip__title {
	font-family: var(--font-display);
	font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
	line-height: 1.15;
	color: var(--color-white);
}

/* Sottotitolo */
.strutture-wip__subtitle {
	font-size: var(--font-size-lg);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
	max-width: 600px;
}

/* --------------------------------------------------------------------------
   Barra di avanzamento
   -------------------------------------------------------------------------- */

.strutture-wip__progress {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs);
	width: 100%;
	max-width: 400px;
}

.strutture-wip__progress-track {
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 100px;
	overflow: hidden;
}

.strutture-wip__progress-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary-light));
	border-radius: 100px;
	/* Animazione avviata via JS (.is-visible) oppure direttamente al caricamento */
	animation: fillProgress 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes fillProgress {
	from { width: 0; }
	to   { width: 70%; }
}

.strutture-wip__progress-label {
	font-size: var(--font-size-xs);
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.strutture-wip__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Badge zone operative
   -------------------------------------------------------------------------- */

.strutture-wip__zones {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	justify-content: center;
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	width: 100%;
}

.strutture-wip__zone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--font-size-sm);
	color: rgba(255, 255, 255, 0.65);
	font-weight: 500;
}

.strutture-wip__zone svg {
	color: var(--color-primary-light);
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.strutture-wip__title {
		font-size: var(--font-size-2xl);
	}

	.strutture-wip__subtitle {
		font-size: var(--font-size-base);
	}

	.strutture-wip__actions {
		flex-direction: column;
		width: 100%;
	}

	.strutture-wip__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.strutture-wip__icon {
		width: 56px;
		height: 56px;
	}
}
