/* ==========================================================================
   Pagina Azienda - sezione "La nostra storia"
   Si appoggia a prodotti.css (variabili --pp-*, .pp-btn). Classi prefissate "az-".
   ========================================================================== */

.az-story {
	position: relative;
	overflow: hidden;
	padding: 80px 0 96px;
	background:
		radial-gradient(760px 420px at 100% 10%, rgba(238, 45, 80, .08), transparent 60%),
		radial-gradient(680px 460px at 0% 100%, rgba(68, 57, 134, .09), transparent 60%),
		#fbfaff;
}

/* griglia tecnica leggera, come l'hero del catalogo */
.az-story::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(68, 57, 134, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(68, 57, 134, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
	pointer-events: none;
}

.az-story .pp-container {
	position: relative;
	z-index: 1;
}

.az-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 72px;
	align-items: center;
}

/* --------------------------------------------------------------------------
   Testo
   -------------------------------------------------------------------------- */

.az-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	background: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pp-purple);
}

.az-eyebrow .pp-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pp-red);
	box-shadow: 0 0 0 4px rgba(238, 45, 80, .18);
}

.az-story h1 {
	margin: 18px 0 20px;
	font-family: 'Poppins', sans-serif;
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--pp-ink);
}

.az-story h1 span {
	color: var(--pp-red);
}

.az-lead {
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.65;
	color: var(--pp-ink);
}

.az-text {
	margin: 0 0 32px;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--pp-text);
}

.az-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.az-actions .pp-btn {
	height: 52px;
	padding: 0 26px;
}

.az-actions .pp-btn-primary {
	box-shadow: 0 10px 24px rgba(238, 45, 80, .28);
}

/* --------------------------------------------------------------------------
   Immagine
   -------------------------------------------------------------------------- */

.az-visual {
	position: relative;
	max-width: 480px;
	margin-left: auto;
	padding: 0 0 30px 30px;
}

/* sagoma colorata dietro la foto */
.az-visual::before {
	content: '';
	position: absolute;
	top: 34px;
	right: -26px;
	bottom: 0;
	left: 30px;
	border-radius: 32px;
	background: linear-gradient(135deg, var(--pp-purple), var(--pp-purple-dark));
	transform: rotate(3deg);
}

.az-photo {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	background: var(--pp-soft);
	box-shadow: 0 30px 60px rgba(43, 35, 96, .25);
}

.az-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.az-photo:hover img {
	transform: scale(1.04);
}

/* barra CMYK in basso */
.az-photo::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: linear-gradient(90deg, #00aeef 0 25%, #ec008c 25% 50%, #fff200 50% 75%, #1f1d2b 75% 100%);
}

.az-zoom {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--pp-ink);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .25s ease, transform .25s ease;
}

.az-photo:hover .az-zoom,
.az-photo:focus-visible .az-zoom {
	opacity: 1;
	transform: none;
}

.az-photo:focus-visible {
	outline: 3px solid rgba(238, 45, 80, .35);
	outline-offset: 4px;
}

/* riquadri sovrapposti alla foto */
.az-float {
	position: absolute;
	z-index: 2;
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px 18px;
	border: 1px solid var(--pp-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(43, 35, 96, .18);
}

.az-float-year {
	bottom: 0;
	left: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	padding: 18px 22px;
}

.az-float-year small {
	font-size: 13px;
	color: var(--pp-muted);
}

.az-float-year strong {
	font-family: 'Poppins', sans-serif;
	font-size: 38px;
	font-weight: 700;
	line-height: 1;
	color: var(--pp-red);
}

.az-float-year span {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pp-ink);
}

.az-float-partner {
	top: 70px;
	left: -6px;
}

.az-float-partner .fa {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(238, 45, 80, .1);
	font-size: 18px;
	line-height: 40px;
	text-align: center;
	color: var(--pp-red);
}

.az-float-partner strong {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pp-ink);
}

.az-float-partner small {
	font-size: 13px;
	color: var(--pp-muted);
}

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

@media (max-width: 1199px) {
	.az-story h1 {
		font-size: 42px;
	}

	.az-grid {
		gap: 56px;
	}
}

@media (max-width: 991px) {
	.az-grid {
		grid-template-columns: 1fr;
	}

	.az-visual {
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	.az-story {
		padding: 48px 0 64px;
	}

	.az-story h1 {
		font-size: 32px;
	}

	.az-lead {
		font-size: 17px;
	}

	.az-text {
		font-size: 16px;
	}

	.az-actions .pp-btn {
		flex: 1 1 100%;
	}

	.az-visual {
		padding: 0 0 24px 14px;
	}

	.az-visual::before {
		right: -10px;
		left: 24px;
	}

	.az-float-partner {
		top: 24px;
		left: 0;
	}

	.az-float-year strong {
		font-size: 30px;
	}

	/* su touch l'etichetta "ingrandisci" resta visibile */
	.az-zoom {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.az-photo img {
		transition: none;
	}
}
