/* Tema Flavia Cavicchi – stili di sezione */

:root {
	--fc-verde: #0F3D3E;
	--fc-verde-scuro: #082627;
	--fc-giallo: #F3C94F;
	--fc-giallo-chiaro: #FCF1CC;
	--fc-testo-2: #2F5455;
	--fc-testo-3: #4D6B6C;
	--fc-linea: #D9E3E2;
	--fc-sez: clamp(64px, 9vw, 96px);
}

body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(a):focus-visible,
:where(button, input, textarea, summary):focus-visible {
	outline: 3px solid var(--fc-giallo);
	outline-offset: 3px;
	border-radius: 4px;
}
.fc-band--verde :where(a):focus-visible { outline-color: var(--fc-giallo); }
.fc-band--giallo :where(a, button, input, textarea):focus-visible { outline-color: var(--fc-verde); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.fc-header {
	border-bottom: 1px solid var(--fc-linea);
	background: #fff;
	padding-top: 18px;
	padding-bottom: 18px;
	position: relative;
	z-index: 20;
}
.fc-header__inner { gap: 12px 32px; align-items: center; }
.fc-brand { gap: 0 !important; }
.fc-brand p { margin: 0; }
.fc-brand__name {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 23px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.fc-brand__name a { text-decoration: none; color: var(--fc-verde); }
.fc-brand__role {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fc-testo-3);
}
.fc-header__nav { gap: 28px; align-items: center; }
.fc-nav { font-size: 15px; font-weight: 500; gap: 8px 26px; }
.fc-nav a { text-decoration: none; }
.fc-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.fc-nav .current-menu-item > a,
.fc-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--fc-giallo); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.fc-header__cta .wp-block-button__link { padding: 11px 22px; font-size: 15px; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--fc-verde) !important;
	color: #fff !important;
	padding: 32px 24px;
}
.wp-block-navigation__responsive-container.is-menu-open a { color: #fff; font-size: 22px; }
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { padding: 10px; min-width: 44px; min-height: 44px; }
@media (max-width: 781px) {
	.fc-header__nav { gap: 12px; }
	.fc-header__cta .wp-block-button__link { padding: 10px 16px; font-size: 14px; }
	.fc-brand__name { font-size: 20px; }
}
@media (max-width: 420px) {
	.fc-header__cta { display: none; }
}

/* ---------- Bottoni ---------- */
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
.is-style-fc-dark .wp-block-button__link { background: var(--fc-verde); color: #fff; }
.is-style-fc-dark .wp-block-button__link:hover { background: var(--fc-verde-scuro); color: #fff; }
.is-style-fc-outline .wp-block-button__link { background: transparent; color: var(--fc-verde); border: 1.5px solid var(--fc-verde); }
.is-style-fc-outline .wp-block-button__link:hover { background: var(--fc-verde); color: #fff; }
.fc-band--verde .is-style-fc-outline .wp-block-button__link { color: #fff; border-color: #fff; }

/* ---------- Testi di supporto ---------- */
.fc-kicker {
	font-size: 14px !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--fc-testo-2);
	margin-bottom: 0 !important;
}
.fc-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--fc-testo-2); }
.fc-small { font-size: 15px; color: var(--fc-testo-3); }
.fc-link-arrow a { font-weight: 600; text-decoration: none; }
.fc-link-arrow a::after { content: " →"; }
.fc-link-arrow a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Sezioni home ---------- */
.fc-main { margin-top: 0; }
.fc-main--home > .wp-block-post-content > * + *,
.fc-main--wide > .wp-block-post-content > * + * { margin-block-start: 0; }
.fc-section { padding-top: var(--fc-sez); padding-bottom: var(--fc-sez); }
.fc-band--lines { border-top: 1px solid var(--fc-linea); border-bottom: 1px solid var(--fc-linea); }
.fc-band--verde { background: var(--fc-verde); color: #fff; }
.fc-band--verde :where(h1, h2, h3, h4, a) { color: #fff; }
.fc-band--verde p { color: #D6E4E3; }
.fc-band--verde .fc-kicker,
.fc-band--verde .fc-accent { color: var(--fc-giallo) !important; }
.fc-band--giallo { background: var(--fc-giallo); }
.fc-band--giallo-chiaro { background: var(--fc-giallo-chiaro); }
.fc-head { margin-bottom: 40px !important; max-width: 640px; gap: 12px; }
.fc-head h2 { margin: 0; }

/* Hero */
.fc-hero { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.fc-hero .wp-block-columns { align-items: center; gap: 56px; }
.fc-hero h1 { margin: 0; }
.fc-hero__text > * + * { margin-top: 22px; }
.fc-arch { margin: 0 auto !important; max-width: 460px; }
.fc-arch img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 240px 240px 28px 28px;
	background: var(--fc-giallo);
	box-shadow: 20px 20px 0 var(--fc-verde);
	display: block;
}
@media (max-width: 781px) {
	.fc-arch { max-width: 340px; margin-right: 20px !important; }
	.fc-arch img { box-shadow: 14px 14px 0 var(--fc-verde); }
}

/* Riquadri (card) */
.fc-grid { gap: 20px !important; }
.fc-card,
.is-style-fc-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--fc-linea);
	border-radius: 20px;
	padding: 28px;
	gap: 10px !important;
	height: 100%;
	box-sizing: border-box;
}
.fc-card > * { margin: 0 !important; }
.fc-card h3,
.fc-card .fc-card__title { font-size: 23px; line-height: 1.25; }
.fc-card h3 a,
.fc-card .fc-card__title a { text-decoration: none; color: inherit; }
.fc-card h3 a::after,
.fc-card .fc-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.fc-card:hover { border-color: var(--fc-verde); }
.fc-card p { color: var(--fc-testo-3); font-size: 16px; }
.fc-card .fc-card__more { margin-top: auto !important; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--fc-verde); }
.fc-card--giallo { background: var(--fc-giallo); border-color: var(--fc-giallo); }
.fc-card--giallo p { color: var(--fc-verde); }
.fc-card--giallo:hover { border-color: var(--fc-verde); }
.fc-card .wp-block-post-excerpt__more-text { display: none; }

/* Approccio */
.fc-photo-round img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }
.fc-quote {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: clamp(22px, 2.4vw, 26px) !important;
	line-height: 1.35;
	color: var(--fc-giallo) !important;
}
.fc-columns-center { align-items: center; gap: 56px; }

/* Liste a due colonne */
.fc-list-cols {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	column-gap: 40px;
}
.fc-list-cols li { padding: 14px 0; border-bottom: 1px solid var(--fc-linea); }

/* Esperienza */
.fc-exp-lead {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(22px, 2.6vw, 28px) !important;
	line-height: 1.35;
	color: #fff !important;
	max-width: 820px;
}
.fc-exp-grid { border-top: 1px solid #2E5C5D; padding-top: 28px; gap: 24px !important; }
.fc-exp-grid p { margin: 0; }
.fc-exp-grid strong { color: #fff; display: block; }
.fc-exp-grid span { color: #B7CFCF; font-size: 15px; }

/* Sedi */
.fc-sede h3 { font-size: 24px; }
.fc-sede p { color: var(--fc-testo-2); font-size: 16px; }
.fc-badge {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	background: var(--fc-giallo-chiaro);
	color: var(--fc-verde);
	padding: 3px 10px;
	border-radius: 999px;
	vertical-align: middle;
	white-space: nowrap;
}

/* ---------- Modulo contatti ---------- */
.fc-form-wrap { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 36px); }
.fc-form { display: flex; flex-direction: column; gap: 18px; }
.fc-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.fc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; color: var(--fc-verde); }
.fc-form input[type="text"],
.fc-form input[type="email"],
.fc-form input[type="tel"],
.fc-form textarea {
	font: inherit;
	font-weight: 400;
	font-size: 16px;
	color: var(--fc-verde);
	padding: 12px 14px;
	border: 1px solid #9FB8B8;
	border-radius: 12px;
	min-height: 48px;
	box-sizing: border-box;
	background: #fff;
	width: 100%;
}
.fc-form textarea { resize: vertical; }
.fc-form input:focus, .fc-form textarea:focus { border-color: var(--fc-verde); outline: 2px solid var(--fc-verde); outline-offset: 0; }
.fc-form-note { margin: 0; font-size: 14px; color: var(--fc-testo-2); background: var(--fc-giallo-chiaro); padding: 12px 16px; border-radius: 12px; }
.fc-form .fc-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: var(--fc-testo-2); }
.fc-form .fc-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--fc-verde); }
.fc-form-submit {
	align-self: flex-start;
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	background: var(--fc-verde);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 14px 32px;
	min-height: 48px;
	cursor: pointer;
}
.fc-form-submit:hover { background: var(--fc-verde-scuro); }
.fc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fc-form-msg { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; font-weight: 500; }
.fc-form-msg--ok { background: #E3F1EC; color: var(--fc-verde); }
.fc-form-msg--err { background: #FBE3DF; color: #7A1E12; }

/* ---------- Pagine interne e articoli ---------- */
.fc-main--page,
.fc-main--single,
.fc-main--list { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--fc-sez); }
.fc-page-title { margin-bottom: 8px; }
.fc-page-lead { font-size: var(--wp--preset--font-size--large); color: var(--fc-testo-2); line-height: 1.5; }
.fc-meta { color: var(--fc-testo-3); font-size: 15px; }
.fc-back { font-size: 15px; margin-bottom: 24px; }
.fc-back a { text-decoration: none; font-weight: 600; }
.fc-back a::before { content: "← "; }
.fc-main--page .wp-block-post-content h2,
.fc-main--single .wp-block-post-content h2 { margin-top: 56px; font-size: clamp(28px, 3vw, 34px); }
.fc-main--page .wp-block-post-content h3,
.fc-main--single .wp-block-post-content h3 { margin-top: 36px; }
.wp-block-post-content ul:not(.fc-list-cols) li { margin-bottom: 6px; }
.fc-fonti {
	margin-top: 48px !important;
	padding-top: 24px;
	border-top: 1px solid var(--fc-linea);
	font-size: 15px;
	color: var(--fc-testo-3);
}
.fc-fonti h2, .fc-fonti h3 { font-size: 18px !important; font-family: var(--wp--preset--font-family--sans); font-weight: 600; margin-top: 0 !important; }
.fc-fonti p { margin: 8px 0; }
.fc-steps {
	background: var(--fc-giallo-chiaro);
	border-radius: 16px;
	padding: 20px 24px;
	font-weight: 600;
	font-size: 18px;
	text-align: center;
}
.fc-cta-box {
	margin-top: 64px !important;
	background: var(--fc-giallo);
	border-radius: 24px;
	padding: clamp(24px, 4vw, 40px);
}
.fc-cta-box h2 { margin-top: 0 !important; font-size: 30px; }
.fc-callout {
	background: var(--fc-verde);
	color: #fff;
	border-radius: 24px;
	padding: clamp(24px, 4vw, 40px);
}
.fc-callout :where(h2, h3, a) { color: #fff; }
.fc-callout p { color: #D6E4E3; }
.fc-main--page .fc-callout h2 { margin-top: 0; }

/* Lista articoli */
.fc-post-grid { gap: 24px !important; margin-top: 40px; }

/* ---------- Footer ---------- */
.fc-footer {
	background: var(--fc-verde);
	color: #CFE0DF;
	font-size: 15px;
	padding-top: 56px;
	padding-bottom: 40px;
	margin-top: 0 !important;
}
.fc-footer a { color: #fff; }
.fc-footer p { margin: 0; }
.fc-footer__top { gap: 24px 48px; }
.fc-footer__id, .fc-footer__links { gap: 6px !important; }
.fc-footer__name { font-family: var(--wp--preset--font-family--serif); font-size: 22px; color: #fff; }
.fc-footer__note { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid #2E5C5D; font-size: 14px; color: #A9C4C3; }

/* Spazi tra blocchi a tutta larghezza */
.wp-site-blocks > * + * { margin-block-start: 0; }
