/* ==========================================================================
   AUTHOR BLOCK - FRONTEND
   ========================================================================== */

/* Section wrapper */
.s4w-author {
	padding: 0;
}

/* Main wrapper - Desktop: horizontal layout */
.s4w-author__wrapper {
	display: grid;
	grid-template-columns: 312px 1fr;
	gap: 48px;
	align-items: start;
	width: 100%;
	padding-top: 96px;
	padding-bottom: 96px;
}

/* Author Profile Column (sinistra desktop, sotto mobile) */
.s4w-author__profile {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

/* Profile Image */
.s4w-author__profile-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	position: relative;
	overflow: hidden;
}

.s4w-author__profile-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Author Info */
.s4w-author__info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* Author Name - Merriweather 26px */
.s4w-author__name {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: var(--weight-regular);
	line-height: 1.2;
	letter-spacing: -0.52px;
	color: rgba(0, 0, 0, 0.8);
	margin: 0;
}

/* Button wrapper */
.s4w-author__button {
	display: flex;
	align-items: flex-start;
}

/* Featured Image (destra desktop, alto mobile) */
.s4w-author__featured {
	width: 100%;
	height: auto;
	aspect-ratio: 967/645;
	position: relative;
	overflow: hidden;
	order: 2; /* Desktop: appare a destra */
}

.s4w-author__featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ==========================================================================
   MOBILE (<=768px)
   ========================================================================== */

@media (max-width: 768px) {

	/* Stack verticale: immagine grande in alto, profilo sotto */
	.s4w-author__wrapper {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	/* Featured image in alto */
	.s4w-author__featured {
		order: -1; /* Mobile: appare in alto */
		height: auto;
		aspect-ratio: 1 / 1; /* Cambia aspect ratio a quadrato per mobile */
	}

	/* Profile column sotto */
	.s4w-author__profile {
		order: 1;
	}

}

/* ==========================================================================
   BLOCK PLACEHOLDER (Editor only)
   ========================================================================== */

.s4w-block-placeholder {
	padding: 40px 20px;
	text-align: center;
	background-color: var(--bg-weak-100);
	border: 2px dashed var(--text-soft-400);
	border-radius: 4px;
}

.s4w-block-placeholder p {
	margin: 0;
	color: var(--text-sub-500);
	font-size: 14px;
}
