/*
Theme Name: Francesca Miconi
Theme URI: https://example.com/
Author: Andrea La Mura
Description: Tema a blocchi per il sito di Francesca Miconi, NLP Coach e Trainer. Stile "Acqua" con palette Human Energy.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: francesca-miconi
*/

/* Trattino terracotta davanti ai titoletti di sezione */
.fm-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
}
.fm-eyebrow::before {
	content: "";
	width: 32px;
	height: 3px;
	background: var(--wp--preset--color--terracotta);
	flex: 0 0 auto;
}

/* Blocchi colore sfalsati dietro le foto */
.fm-shadow-terracotta img {
	box-shadow: 20px 20px 0 var(--wp--preset--color--terracotta);
}
.fm-shadow-soft img {
	box-shadow: -20px 20px 0 var(--wp--preset--color--terracotta-light);
}

/* Foto a altezza fissa ritagliata */
.fm-photo-tall img { height: 560px; width: 100%; object-fit: cover; object-position: 50% 30%; }
.fm-photo-mid img { height: 480px; width: 100%; object-fit: cover; object-position: 50% 25%; }
.fm-photo-row img { height: 380px; width: 100%; object-fit: cover; object-position: 50% 42%; }

/* Hero con monogramma in filigrana */
.fm-hero { position: relative; overflow: hidden; }
.fm-hero .fm-watermark {
	position: absolute;
	left: -60px;
	top: 10px;
	width: 560px;
	opacity: 0.22;
	pointer-events: none;
	margin: 0;
}
.fm-hero > .wp-block-columns { position: relative; }

/* Card */
.fm-card { border-top: 6px solid var(--wp--preset--color--terracotta); height: 100%; }
.fm-line { border-top: 3px solid var(--wp--preset--color--terracotta); padding-top: 20px; }
.fm-line-muted { border-top: 3px solid #E6DED3; padding-top: 20px; }

/* Link freccia */
.fm-arrow a { font-weight: 700; text-decoration: none; }
.fm-arrow a:hover { text-decoration: underline; }

/* Header */
.fm-header .wp-block-navigation a { text-decoration: none; }
.fm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--deep-teal); }

/* Footer */
.fm-footer { border-top: 6px solid var(--wp--preset--color--terracotta); }
.fm-footer a { color: inherit; }

/* FAQ */
.wp-block-details {
	border-bottom: 1px solid #E6DED3;
	padding: 18px 0;
}
.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
	color: var(--wp--preset--color--deep-teal);
}

/* Segnaposto ancora da completare: visibili per non dimenticarli */
.fm-todo {
	border: 1.5px dashed var(--wp--preset--color--aqua);
	background: var(--wp--preset--color--aqua-light);
	padding: 24px;
	border-radius: 16px;
}

@media (max-width: 781px) {
	.fm-photo-tall img { height: 420px; }
	.fm-hero .fm-watermark { width: 320px; }
	.fm-shadow-terracotta img { box-shadow: 12px 12px 0 var(--wp--preset--color--terracotta); }
	.fm-shadow-soft img { box-shadow: -12px 12px 0 var(--wp--preset--color--terracotta-light); }
}

/* Tipografia di servizio */
.fm-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-teal);
	margin-bottom: 0;
}
.fm-lead { font-size: 1.25rem; line-height: 1.55; color: var(--wp--preset--color--text-muted); }
.fm-muted { color: var(--wp--preset--color--text-muted); }
.fm-small { font-size: 0.875rem; }
.fm-cert-band p { color: #E6F1F1; }
.fm-cert-band .fm-cert-label { color: #CDE9EA; font-size: 0.9375rem; }
.fm-cert-band .fm-cert-titles { font-weight: 700; color: #FFFFFF; word-spacing: 0.2em; }
.fm-cert-band .fm-logo-slot {
	border: 1.5px dashed var(--wp--preset--color--aqua);
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 0.75rem;
	color: #CDE9EA;
}
.fm-footer p, .fm-footer li { color: #E6F1F1; }
.fm-footer .fm-legal { color: #CDE9EA; font-size: 0.8125rem; border-top: 1px solid #3B7377; padding-top: 24px; }
.fm-footer .fm-footer-title { color: #FFFFFF; font-weight: 700; }
.fm-cta h2 { color: var(--wp--preset--color--deep-teal); }
.fm-card h3 { margin-top: 0; }

/* Didascalia sotto le foto del certificato */
.fm-caption { font-size: 0.875rem; color: var(--wp--preset--color--text-muted); text-align: center; margin-top: 12px; }
.fm-cert-band .fm-caption { color: #CDE9EA; }

/* Didascalie delle foto con i trainer */
.fm-photo-row figcaption { font-size: 0.875rem; line-height: 1.5; color: var(--wp--preset--color--text-muted); text-align: center; margin-top: 12px; }
.fm-cert-band .fm-photo-row figcaption { color: #CDE9EA; }

/* ===== Responsive ===== */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* Tablet e schermi medi */
@media (max-width: 1100px) {
	.fm-header .wp-block-buttons { display: none; }
	.fm-hero h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.25rem); }
	h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem); }
}

/* Mobile */
@media (max-width: 781px) {
	body { --wp--style--root--padding-left: 22px !important; --wp--style--root--padding-right: 22px !important; }

	/* Header: logo a sinistra, menu a destra sulla stessa riga */
	.fm-header > .wp-block-group { flex-wrap: nowrap; }
	.fm-header .wp-block-image img { width: 190px !important; }
	.fm-header .wp-block-navigation__responsive-container-open { padding: 10px; }
	.fm-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
	.wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--cream) !important;
		padding: 24px !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; font-size: 1.125rem; }
	.is-menu-open .wp-block-navigation__responsive-container-content,
	.is-menu-open .wp-block-navigation__container,
	.is-menu-open .wp-block-navigation-item,
	.is-menu-open .wp-block-navigation__submenu-container {
		align-items: flex-start !important;
		justify-content: flex-start !important;
		text-align: left !important;
	}
	.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 40px !important; }
	.is-menu-open .wp-block-navigation__submenu-container {
		padding: 8px 0 4px 16px !important;
		gap: 10px !important;
		font-size: 1rem !important;
		border-left: 2px solid var(--wp--preset--color--terracotta) !important;
		margin-top: 8px;
	}
	.is-menu-open .has-child > .wp-block-navigation-item__content { font-weight: 700; }

	/* Titoli */
	h1, .fm-hero h1 { font-size: 2.25rem !important; line-height: 1.08; }
	h1.has-xx-large-font-size { font-size: 2.125rem !important; }
	h2 { font-size: 1.75rem !important; }
	.fm-lead { font-size: 1.0625rem; }

	/* Hero */
	.fm-hero { padding-top: 32px !important; padding-bottom: 56px !important; }
	.fm-hero .fm-watermark { width: 280px; left: -40px; top: 40px; opacity: 0.16; }

	/* Pulsanti a tutta larghezza nei contenuti */
	main .wp-block-buttons { width: 100%; }
	main .wp-block-buttons > .wp-block-button { width: 100%; }
	main .wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }

	/* Foto */
	.fm-photo-tall img { height: 400px; }
	.fm-photo-mid img { height: 360px; }
	.fm-photo-row img { height: 260px; }

	/* Card e box */
	.fm-card { padding: 26px !important; }
	.fm-cta { padding: 36px 24px !important; border-radius: 24px !important; }
	.fm-cta .wp-block-buttons { justify-content: flex-start !important; }

	/* Fascia certificazioni */
	.fm-cert-band .fm-cert-titles { font-size: 0.9375rem; }
	.fm-cert-band .wp-block-image.is-resized img { width: 80px !important; }

	/* Footer */
	.fm-footer .wp-block-columns { gap: 32px; }
	.fm-footer ul { padding-left: 1.1em; }
	.fm-footer .fm-legal { font-size: 0.75rem; }
}

/* Monogramma FM sovrapposto al titolo principale (come nel logo) */
.fm-title-mark { position: relative; isolation: isolate; }
.fm-title-mark .fm-mark {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 118%;
	max-width: 560px;
	transform: translate(-46%, -48%);
	margin: 0 !important;
	z-index: -1;
	opacity: 0.38;
	pointer-events: none;
}
.fm-title-mark .fm-mark img { width: 100%; height: auto; }
.fm-title-mark h1 { position: relative; margin: 0; }
@media (max-width: 781px) {
	.fm-title-mark .fm-mark { width: 100%; max-width: 340px; transform: translate(-50%, -48%); opacity: 0.34; }
}
