/**
 * Stili della home.
 *
 * Caricati solo sulla front page (vedi functions.php). Colori, font, raggi e
 * spaziature arrivano dalle variabili del tema padre: qui c'e' solo la
 * struttura delle sette sezioni.
 */

/* =====================================================================
 * Apertura
 * ================================================================== */

.sm-hero {
	padding-block: clamp(3rem, 7vw, 5.75rem) clamp(3rem, 6vw, 4.75rem);
}

.sm-hero__body {
	animation: psy-rise-in 0.7s ease both;
}

.sm-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 7vw, 3.875rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.sm-hero__accent {
	color: var(--psy-primary);
	font-style: italic;
}

.sm-hero__lead {
	margin: 1.75rem 0 0;
	max-width: 30em;
	color: var(--psy-text-soft);
	font-size: 1.15625rem;
	line-height: 1.62;
}

.sm-hero__actions {
	margin-top: 2.375rem;
}

.sm-hero__note {
	margin: 2.125rem 0 0;
	color: var(--psy-muted);
	font-size: 0.84375rem;
}

.sm-hero__media {
	position: relative;
}

.sm-hero__portrait {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--psy-radius);
}

/* Il segnaposto e' un div: gli serve il centraggio che l'immagine non usa. */
div.sm-hero__portrait {
	display: flex;
}

.sm-hero__badge {
	position: absolute;
	left: clamp(-1.875rem, -2vw, 0.5rem);
	bottom: -1.25rem;
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--psy-surface);
	border: 1px solid var(--psy-border);
	border-radius: 12px;
	box-shadow: var(--psy-shadow);
}

.sm-hero__badge-value {
	display: block;
	font-family: var(--psy-font-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1;
	color: var(--psy-ink);
}

.sm-hero__badge-label {
	display: block;
	margin-top: 0.25rem;
	color: var(--psy-muted);
	font-size: 0.78125rem;
}

/* Sotto il punto in cui le due colonne si impilano, il riquadro sporgente
   finirebbe fuori dallo schermo. */
@media (max-width: 719px) {
	.sm-hero__badge {
		left: 0.75rem;
	}
}

/* =====================================================================
 * Le tre tappe
 * ================================================================== */

.sm-step {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 2rem clamp(1.375rem, 3vw, 1.875rem) 2.125rem;
}

.sm-step__number {
	color: var(--psy-primary);
	font-family: var(--psy-font-display);
	font-size: 0.9375rem;
	letter-spacing: 0.14em;
}

.sm-step__title {
	margin: 0;
	font-size: 1.5625rem;
	font-weight: 400;
}

.sm-step__text {
	margin: 0;
	color: var(--psy-text-soft);
	font-size: 0.96875rem;
	line-height: 1.65;
}

/* =====================================================================
 * Aree di intervento
 *
 * Il reticolo e' fatto con gap di 1px sullo sfondo del bordo: le celle
 * coprono il resto, e le linee restano nette a qualunque numero di colonne.
 * ================================================================== */

.sm-areas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.375rem), 1fr));
	gap: 1px;
	background: var(--psy-border);
	border: 1px solid var(--psy-border);
	border-radius: var(--psy-radius);
	overflow: hidden;
}

/* Con tre aree la griglia automatica darebbe 2 + 1, con un buco in fondo:
   in colonna sola restano allineate. */
.sm-areas--stacked {
	grid-template-columns: minmax(0, 1fr);
}

.sm-area__title a {
	color: inherit;
}

.sm-area__title a:hover,
.sm-area__title a:focus {
	color: var(--psy-primary);
}

.sm-area {
	padding: 1.625rem 1.5rem;
	background: var(--psy-page);
}

.sm-area__title {
	margin: 0 0 0.4375rem;
	color: var(--psy-text);
	font-family: var(--psy-font);
	font-size: 1.03125rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}

.sm-area__text {
	margin: 0;
	color: var(--psy-text-soft);
	font-size: 0.90625rem;
	line-height: 1.55;
}

/* =====================================================================
 * Mindfulness
 * ================================================================== */

.sm-mindfulness__text {
	margin: 0 0 1.875rem;
	max-width: 32em;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.sm-mindfulness__media {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--psy-radius);
}

/* Il segnaposto e' un div: righe scure e il centraggio che l'immagine non usa. */
div.sm-mindfulness__media {
	display: flex;
	background: repeating-linear-gradient(135deg, #3a3e36 0 9px, #434840 9px 18px);
	color: #97a094;
}

/* =====================================================================
 * Citazione
 * ================================================================== */

.sm-quote__figure {
	margin: 0;
	text-align: center;
}

.sm-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
	color: #333d36;
	font-size: clamp(1.4375rem, 3.8vw, 2.0625rem);
	line-height: 1.4;
}

.sm-quote__author {
	margin-top: 1.5rem;
	color: var(--psy-muted-soft);
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* =====================================================================
 * Corsi e laboratori
 * ================================================================== */

.sm-training-teaser {
	display: flex;
	flex-direction: column;
	background: var(--psy-surface);
	border: 1px solid var(--psy-border);
	border-radius: var(--psy-radius);
	overflow: hidden;
}

.sm-training-teaser__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--psy-band);
}

.sm-training-teaser__media img,
.sm-training-teaser__media .psy-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

.sm-training-teaser__media .psy-placeholder {
	display: flex;
}

.sm-training-teaser__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.5rem;
}

.sm-training-teaser__where {
	margin: 0;
}

.sm-training-teaser__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 400;
}

.sm-training-teaser__title a {
	color: var(--psy-ink);
}

.sm-training-teaser__title a:hover,
.sm-training-teaser__title a:focus {
	color: var(--psy-primary);
}

.sm-training-teaser__text {
	margin: 0;
	color: var(--psy-text-soft);
	font-size: 0.90625rem;
	line-height: 1.55;
}

/* La data resta in fondo alla scheda anche quando gli estratti hanno
   lunghezze diverse. */
.sm-training-teaser__when {
	margin: auto 0 0;
	padding-top: 0.625rem;
	color: var(--psy-muted);
	font-size: 0.84375rem;
}

/* =====================================================================
 * Contatti
 * ================================================================== */

.sm-contact__media {
	aspect-ratio: 1 / 1;
}

/* Le righe dei recapiti (.sm-contact__rows) stanno nel foglio principale del
   tema figlio: le usa anche la pagina Contatti, che non carica questo file. */
