/*
Theme Name:   Centro FT (Astra child)
Theme URI:    https://www.centrostudieformazioneft.it/
Description:  Tema figlio di Astra per Centro Studi e Formazione FT: scheda corso, catalogo, sezioni della home e footer.
Author:       Centro Studi e Formazione FT
Template:     astra
Version:      1.3.0
Text Domain:  csfft-child
*/

/* ============================================================
   1. Colori e tipografia
   ============================================================ */
:root {
	--ft-navy: #0f2d52;
	--ft-blue: #1b4b82;
	--ft-blue-2: #2a64a8;
	--ft-accent: #f0a818;
	--ft-accent-2: #d89210;
	--ft-ink: #0f1b2d;
	--ft-text: #3a4556;
	--ft-muted: #667085;
	--ft-line: #e3e8ef;
	--ft-soft: #f4f6fa;
	--ft-white: #fff;
	--ft-radius: 12px;
	--ft-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
	--ft-wrap: 1200px;
	--ft-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Palette globale di Astra allineata al marchio */
	--ast-global-color-0: var(--ft-blue);
	--ast-global-color-1: var(--ft-navy);
	--ast-global-color-2: var(--ft-ink);
	--ast-global-color-3: var(--ft-text);
	--ast-global-color-4: var(--ft-soft);
	--ast-global-color-5: #ffffff;
	--ast-global-color-6: var(--ft-line);
	--ast-global-color-7: #d0d7e2;
	--ast-global-color-8: #0b1220;
}

body,
button,
input,
select,
textarea {
	font-family: var(--ft-font);
}

body {
	color: var(--ft-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.entry-content h1, .entry-content h2, .entry-content h3 {
	color: var(--ft-ink);
	font-family: var(--ft-font);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

a { color: var(--ft-blue); }
a:hover, a:focus { color: var(--ft-navy); }

:focus-visible {
	outline: 3px solid var(--ft-accent);
	outline-offset: 2px;
}

[id] { scroll-margin-top: 90px; }
.ft-course [id] { scroll-margin-top: 130px; }

.ft-wrap {
	max-width: var(--ft-wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

/* ============================================================
   2. Pulsanti
   ============================================================ */
.ft-btn,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
	box-sizing: border-box;
}

.ft-btn--primary,
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--ft-accent);
	color: var(--ft-ink);
	border-color: var(--ft-accent);
}
.ft-btn--primary:hover,
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--ft-accent-2);
	border-color: var(--ft-accent-2);
	color: var(--ft-ink);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.ft-btn--ghost {
	background: transparent;
	color: var(--ft-blue);
	border-color: currentColor;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.ft-btn--ghost:hover {
	background: var(--ft-blue);
	color: #fff;
	border-color: var(--ft-blue);
}

.ft-btn--ghost-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .7);
}
.ft-btn--ghost-light:hover { background: #fff; color: var(--ft-navy); }

.ft-btn--block { display: flex; width: 100%; }

.entry-content .wp-block-buttons { gap: 12px; margin-top: 28px; }

/* Niente sottolineature sui componenti cliccabili (restano nei testi) */
.ft-area, .ft-area *, .ft-card a, .ft-card__title a, .ft-card__link, .ft-btn, .ft-chip,
.ft-breadcrumb a, .ft-course-tabs a, .ft-contacts a, .ft-footer a, .ft-catalog__head a,
.ft-badge, .entry-content .wp-block-button__link {
	text-decoration: none !important;
}

/* ============================================================
   3. Header (Astra) e voce di menu CTA
   ============================================================ */
.main-header-menu .ft-menu-cta > .menu-link,
.ast-builder-menu .ft-menu-cta > a {
	background: var(--ft-accent);
	color: var(--ft-ink) !important;
	border-radius: 999px;
	padding: 8px 18px !important;
	margin-left: 8px;
	font-weight: 700;
	line-height: 1.4 !important;
}
.main-header-menu .ft-menu-cta > .menu-link:hover { background: var(--ft-accent-2); }
@media (min-width: 922px) and (max-width: 1240px) {
	.main-header-menu > .menu-item > .menu-link { padding-left: .6em !important; padding-right: .6em !important; }
	.main-header-menu .ft-menu-cta > .menu-link { margin-left: 4px; padding: 8px 14px !important; }
}
.ast-header-break-point .main-header-menu .ft-menu-cta > .menu-link {
	display: inline-block;
	margin: 12px 20px;
}

/* Pulsante area riservata nel menu */
.main-header-menu .ft-menu-area > .menu-link,
.ast-builder-menu .ft-menu-area > a {
	border: 2px solid var(--ft-blue);
	color: var(--ft-blue) !important;
	border-radius: 999px;
	padding: 6px 16px !important;
	margin-left: 8px;
	font-weight: 700;
	line-height: 1.4 !important;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}
.main-header-menu .ft-menu-area > .menu-link:hover { background: var(--ft-blue); color: #fff !important; }
.ast-header-break-point .main-header-menu .ft-menu-area > .menu-link { margin: 4px 20px 16px; }
.ft-lock, .ft-area-page__icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 922px) and (max-width: 1240px) {
	.main-header-menu .ft-menu-area > .menu-link { margin-left: 4px; padding: 6px 12px !important; }
}

/* Pagina area riservata (segnaposto) */
.ft-area-page { background: var(--ft-soft); padding: clamp(48px, 8vw, 96px) 20px; }
.ft-area-page__box {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius);
	box-shadow: var(--ft-shadow);
	padding: clamp(28px, 5vw, 48px);
	text-align: center;
}
.ft-area-page__icon { width: 44px; height: 44px; color: var(--ft-blue); margin-bottom: 12px; }
.ft-area-page h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 16px; }

/* ============================================================
   4. Pagine a larghezza piena (Home, Chi siamo, ecc.)
   ============================================================ */
.ft-full .site-content > .ast-container,
.ft-full #primary {
	padding: 0;
	margin: 0;
	max-width: none;
}
.ft-full .entry-content > .alignfull,
.ft-full .entry-content > .wp-block-group.alignfull {
	margin-top: 0;
	margin-bottom: 0;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
.ft-full .ast-article-single,
.ft-full .ast-article-post {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent;
	border: 0;
}
.ft-full.page .entry-content > *:not(.alignfull) {
	max-width: var(--ft-wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

/* Contenuto delle sezioni allineato alla stessa colonna da 1200px, testo sempre a sinistra */
.ft-hero,
.ft-section,
.ft-band,
.ft-page-hero {
	--ft-gutter: max(20px, calc((100% - var(--ft-wrap)) / 2 + 20px));
	padding-left: var(--ft-gutter) !important;
	padding-right: var(--ft-gutter) !important;
}
.ft-hero > *,
.ft-section > *,
.ft-band > *,
.ft-page-hero > * {
	margin-left: 0;
	margin-right: 0;
}
.ft-hero > .wp-block-group__inner-container,
.ft-section > .wp-block-group__inner-container,
.ft-band > .wp-block-group__inner-container,
.ft-page-hero > .wp-block-group__inner-container {
	max-width: none;
}

.ft-eyebrow,
.entry-content .ft-eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
	font-weight: 700;
	color: var(--ft-blue-2);
	margin-bottom: 10px;
}

.ft-lead,
.entry-content .ft-lead {
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6;
	color: var(--ft-text);
	max-width: 760px;
}

/* Hero home */
.ft-hero {
	background:
		radial-gradient(1000px 500px at 85% -10%, rgba(240, 168, 24, .22), transparent 60%),
		linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-blue) 100%);
	color: #fff;
	padding: clamp(64px, 10vw, 120px) 20px clamp(56px, 8vw, 96px);
}
.ft-hero h1 {
	color: #fff;
	font-size: clamp(32px, 5vw, 56px);
	max-width: 900px;
	margin: 0 0 20px;
}
.ft-hero .ft-eyebrow { color: var(--ft-accent); }
.ft-hero .ft-lead { color: rgba(255, 255, 255, .88); }
.ft-hero .wp-block-button.is-style-outline > .wp-block-button__link,
.ft-page-hero .wp-block-button.is-style-outline > .wp-block-button__link,
.ft-section--dark .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff !important;
	border-color: rgba(255, 255, 255, .7) !important;
	background: transparent !important;
}
.ft-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ft-page-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ft-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--ft-navy) !important;
}

/* Hero pagine interne */
.ft-page-hero {
	background: linear-gradient(135deg, var(--ft-navy), var(--ft-blue));
	color: #fff;
	padding: clamp(48px, 7vw, 88px) 20px clamp(40px, 6vw, 72px);
}
.ft-page-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); margin: 0 0 14px; }
.ft-page-hero .ft-eyebrow { color: var(--ft-accent); }
.ft-page-hero .ft-lead, .ft-page-hero p { color: rgba(255, 255, 255, .88); }
.ft-page-hero--area {
	background: linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-cat, var(--ft-blue)) 140%);
}

/* Fascia accreditamenti */
.ft-band {
	background: #fff;
	border-bottom: 1px solid var(--ft-line);
	padding: 22px 20px;
}

.ft-accred {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px 32px;
}
.ft-accred__item { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.ft-accred__item strong { display: block; color: var(--ft-ink); }
.ft-accred__item small { display: block; color: var(--ft-muted); font-size: 14px; line-height: 1.4; }
.ft-accred__seal {
	flex: 0 0 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #e8f0fa;
	color: var(--ft-blue);
	font-weight: 700;
}

/* Sezioni */
.ft-section {
	padding: clamp(56px, 8vw, 96px) 20px;
	background: #fff;
}
.ft-section--alt { background: var(--ft-soft); }
.ft-section h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 28px; }
.ft-section--dark {
	background: var(--ft-navy);
	color: rgba(255, 255, 255, .88);
}
.ft-section--dark h2 { color: #fff; }
.ft-section--dark .ft-eyebrow { color: var(--ft-accent); }
.ft-section--dark .ft-lead { color: rgba(255, 255, 255, .85); }

/* Box novità normativa */
.ft-news-box {
	background: linear-gradient(0deg, #fff7e6, #fff7e6);
}
.ft-news-box .wp-block-columns {
	background: #fff;
	border: 1px solid #f3dca6;
	border-left: 6px solid var(--ft-accent);
	border-radius: var(--ft-radius);
	padding: clamp(24px, 4vw, 40px);
	box-shadow: var(--ft-shadow);
	gap: 32px;
}
.ft-news-box h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.ft-news-box ul { margin: 0 0 0 1.2em; }
.ft-news-box li { margin-bottom: 6px; }
.ft-news-box .wp-block-buttons { margin-top: 18px; }

/* Punti di forza */
.ft-features { gap: 24px !important; }
.ft-features > .wp-block-column {
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius);
	padding: 28px 24px;
	box-shadow: var(--ft-shadow);
	position: relative;
}
.ft-features > .wp-block-column::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	border-radius: 4px;
	background: var(--ft-accent);
	margin-bottom: 18px;
}
.ft-features h3 { font-size: 19px; margin: 0 0 8px; }
.ft-features p { margin: 0; font-size: 16px; }
.ft-section--alt .ft-features > .wp-block-column { background: #fff; }

/* Banda formazione finanziata */
.ft-cta-band {
	background: linear-gradient(135deg, #fff7e6, #ffffff 70%);
	border-top: 1px solid #f3dca6;
	border-bottom: 1px solid #f3dca6;
}
.ft-cta-band .wp-block-columns { align-items: center !important; gap: 40px; }
.ft-cta-band .wp-block-buttons { justify-content: flex-end; }

/* Testimonianze */
.ft-testimonials { gap: 24px !important; }
.ft-testimonials .wp-block-quote {
	margin: 0;
	height: 100%;
	background: #fff;
	border: 1px solid var(--ft-line);
	border-left: 0;
	border-radius: var(--ft-radius);
	padding: 28px;
	box-shadow: var(--ft-shadow);
	font-style: normal;
	position: relative;
}
.ft-testimonials .wp-block-quote::before {
	content: "“";
	position: absolute;
	top: 6px;
	right: 20px;
	font-size: 72px;
	line-height: 1;
	color: var(--ft-accent);
	font-family: Georgia, serif;
}
.ft-testimonials .wp-block-quote p { font-size: 16px; line-height: 1.65; color: var(--ft-text); }
.ft-testimonials cite { font-style: normal; font-weight: 700; color: var(--ft-ink); font-size: 15px; }

/* Newsletter */
.ft-newsletter { background: var(--ft-soft); }
.ft-newsletter .wp-block-columns { align-items: center !important; gap: 40px; }
.ft-newsletter h2 { margin-bottom: 10px; }

/* Testo lungo */
.ft-prose > * { max-width: 820px; }
.ft-prose h2 { margin-top: 44px; font-size: clamp(24px, 2.6vw, 30px); }
.ft-prose ul li { margin-bottom: 6px; }

/* ============================================================
   5. Card corso e griglie
   ============================================================ */
.ft-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 8px; }
.ft-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ft-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius);
	overflow: hidden;
	box-shadow: var(--ft-shadow);
	transition: transform .15s, box-shadow .15s;
	color: var(--ft-text);
}
.ft-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 16px 32px rgba(15,27,45,.1); }
.ft-card__media { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--ft-cat, var(--ft-blue)); }
.ft-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ft-card__placeholder {
	box-sizing: border-box;
	display: flex;
	align-items: flex-end;
	height: 100%;
	padding: 16px 20px;
	color: rgba(255, 255, 255, .95);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	background:
		radial-gradient(240px 140px at 100% 0%, rgba(255, 255, 255, .22), transparent 70%),
		linear-gradient(135deg, var(--ft-cat, var(--ft-blue)), color-mix(in srgb, var(--ft-cat, var(--ft-blue)) 55%, #0b1220));
}
.ft-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.ft-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-card__title { font-size: 19px; margin: 0; line-height: 1.3; }
.ft-card__title a { color: var(--ft-ink); text-decoration: none; }
.ft-card__title a:hover { color: var(--ft-blue); }
.ft-card__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ft-text); }
.ft-card__meta {
	list-style: none;
	margin: auto 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--ft-line);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 14px;
	color: var(--ft-muted);
}
.ft-card__meta li { display: flex; align-items: center; gap: 6px; margin: 0; }
.ft-card__link { font-weight: 700; text-decoration: none; font-size: 15px; color: var(--ft-blue); }
.ft-section--dark .ft-card { border-color: transparent; }

.ft-ico { width: 14px; height: 14px; display: inline-block; background: currentColor; opacity: .7;
	-webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ft-ico--clock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 3.3 3.3-1.4 1.4L11 13.2V6h2v6.4z'/%3E%3C/svg%3E"); }
.ft-ico--place { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ft-ico--euro { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4c-3.3 0-6.1 2.1-7.2 5H5v2h2.3a8 8 0 0 0 0 2H5v2h2.8c1.1 2.9 3.9 5 7.2 5 1.7 0 3.3-.6 4.6-1.5l-1.2-1.6A5.6 5.6 0 0 1 15 18c-2.2 0-4.1-1.2-5-3h6v-2H9.3a6 6 0 0 1 0-2H16V9h-6c.9-1.8 2.8-3 5-3 1.2 0 2.4.4 3.4 1.1l1.2-1.6A7.9 7.9 0 0 0 15 4z'/%3E%3C/svg%3E"); }

.ft-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ft-cat, var(--ft-blue)) 12%, #fff);
	color: var(--ft-cat, var(--ft-blue));
	text-decoration: none;
}
.ft-badge--soon { background: #fff4d6; color: #8a5a00; }
.ft-badge--light { background: rgba(255, 255, 255, .16); color: #fff; }
.ft-badge--light:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* Aree formative (home) */
.ft-areas {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.ft-area {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 20px;
	border-radius: var(--ft-radius);
	border: 1px solid var(--ft-line);
	border-top: 4px solid var(--ft-cat);
	background: #fff;
	text-decoration: none;
	color: var(--ft-text);
	box-shadow: var(--ft-shadow);
	transition: transform .15s;
}
.ft-area:hover { transform: translateY(-2px); color: var(--ft-text); }
.ft-area__name { font-weight: 700; font-size: 18px; color: var(--ft-ink); }
.ft-area__desc { font-size: 14px; line-height: 1.5; flex: 1; }
.ft-area__count { font-size: 13px; font-weight: 700; color: var(--ft-cat); }

/* ============================================================
   6. Scheda corso
   ============================================================ */
.ft-course-hero {
	background:
		radial-gradient(800px 380px at 100% 0%, color-mix(in srgb, var(--ft-cat) 55%, transparent), transparent 70%),
		linear-gradient(135deg, var(--ft-navy), #13355f);
	color: #fff;
	padding: 28px 0 44px;
}
.ft-course-hero__badges { display: flex; gap: 8px; margin: 18px 0 14px; }
.ft-course-hero__title { color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 0 0 12px; max-width: 900px; }
.ft-course-hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .88); max-width: 780px; margin: 0 0 28px; }

.ft-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ft-facts li {
	margin: 0;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	padding: 10px 16px;
	min-width: 140px;
}
.ft-facts__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.ft-facts__value { display: block; font-weight: 700; color: #fff; }

.ft-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.ft-breadcrumb li { margin: 0; color: rgba(255, 255, 255, .75); }
.ft-breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.ft-breadcrumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.ft-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.ft-page-hero .ft-breadcrumb { margin-bottom: 22px; }

.ft-course-tabs {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--ft-line);
	box-shadow: 0 2px 10px rgba(15, 27, 45, .04);
}
.admin-bar .ft-course-tabs { top: 32px; }
.ft-course-tabs .ft-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ft-course-tabs a {
	flex: 0 0 auto;
	padding: 16px 14px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ft-text);
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
.ft-course-tabs a:hover, .ft-course-tabs a.is-active { color: var(--ft-ink); border-bottom-color: var(--ft-cat); }
.ft-course-tabs .ft-course-tabs__cta { margin-left: auto; color: var(--ft-blue); }

.ft-course-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
	gap: 48px;
	padding-top: 40px;
	padding-bottom: 64px;
	align-items: start;
}
.ft-course-main .entry-content > *:first-child { margin-top: 0; }
.ft-course-main h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 40px 0 16px; }
.ft-course-main .entry-content h2:first-child { margin-top: 0; }
.ft-course-section { border-top: 1px solid var(--ft-line); margin-top: 40px; padding-top: 8px; }

/* Accordion moduli (blocco Dettagli) e FAQ */
.ft-course-main .wp-block-details,
.ft-faq details {
	border: 1px solid var(--ft-line);
	border-radius: 10px;
	margin: 0 0 10px;
	background: #fff;
	padding: 0;
}
.ft-course-main .wp-block-details summary,
.ft-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 48px 16px 18px;
	font-weight: 700;
	color: var(--ft-ink);
	position: relative;
}
.ft-course-main .wp-block-details summary::-webkit-details-marker,
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-course-main .wp-block-details summary::after,
.ft-faq summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	color: var(--ft-cat, var(--ft-blue));
}
.ft-course-main .wp-block-details[open] summary::after,
.ft-faq details[open] summary::after { content: "–"; }
.ft-course-main .wp-block-details[open],
.ft-faq details[open] { border-color: color-mix(in srgb, var(--ft-cat, var(--ft-blue)) 35%, var(--ft-line)); }
.ft-course-main .wp-block-details > :not(summary),
.ft-faq details > :not(summary) { padding: 0 18px 16px; margin: 0; }
.ft-course-main .wp-block-details ul { padding-left: 38px; }

.ft-callout,
.entry-content .ft-callout {
	background: var(--ft-soft);
	border-left: 4px solid var(--ft-accent);
	padding: 16px 20px;
	border-radius: 0 10px 10px 0;
}

.ft-table table, .entry-content .ft-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.ft-table th, .ft-table td { border: 1px solid var(--ft-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.ft-table thead th { background: var(--ft-navy); color: #fff; }
.ft-table tbody tr:nth-child(even) td { background: var(--ft-soft); }
.ft-table tbody td:first-child { font-weight: 700; color: var(--ft-ink); }
.ft-table { overflow-x: auto; }

.ft-dl { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin: 0; }
.ft-dl dt, .ft-dl dd { padding: 12px 0; border-bottom: 1px solid var(--ft-line); margin: 0; }
.ft-dl dt { font-weight: 700; color: var(--ft-ink); padding-right: 16px; }

.ft-teachers { display: grid; gap: 20px; }
.ft-teacher { display: flex; gap: 16px; align-items: flex-start; }
.ft-teacher__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.ft-teacher__photo--initials { display: grid; place-items: center; background: var(--ft-soft); color: var(--ft-blue); font-weight: 700; font-size: 26px; }
.ft-teacher__name { font-weight: 700; color: var(--ft-ink); margin: 0; }
.ft-teacher__role { color: var(--ft-muted); margin: 0 0 6px; font-size: 15px; }

/* Colonna iscrizione */
.ft-sticky { position: sticky; top: 76px; display: grid; gap: 16px; }
.admin-bar .ft-sticky { top: 108px; }
.ft-price-box {
	background: var(--ft-navy);
	color: #fff;
	border-radius: var(--ft-radius);
	padding: 22px 24px;
}
.ft-price-box p { margin: 0; }
.ft-price-box__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.ft-price-box__price { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.2; margin: 4px 0 !important; }
.ft-price-box__note { font-size: 14px; color: rgba(255, 255, 255, .8); }
.ft-price-box__date { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; color: rgba(255, 255, 255, .9); }
.ft-price-box__date strong { color: var(--ft-accent); }
.ft-aside-form {
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius);
	padding: 22px 24px;
	box-shadow: var(--ft-shadow);
}
.ft-aside-contact { font-size: 15px; text-align: center; margin: 0; }

.ft-related { background: var(--ft-soft); padding: 56px 0; }
.ft-related h2 { font-size: 26px; margin: 0 0 24px; }

.ft-mobile-cta { display: none; }

/* Locandina nella colonna del corso */
.ft-poster-box {
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius);
	padding: 16px;
	box-shadow: var(--ft-shadow);
	display: grid;
	gap: 12px;
}
.ft-poster-box__thumb { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--ft-line); }
.ft-poster-box__thumb img { display: block; width: 100%; height: auto; }
.ft-poster-box__actions { display: grid; gap: 8px; text-align: center; }
.ft-poster-box__dl { font-size: 14px; font-weight: 600; }

/* Fascia "Prossimi corsi" in home */
.ft-upcoming { background: var(--ft-soft); }
.ft-posters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}
.ft-poster {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none !important;
	color: var(--ft-text);
}
.ft-poster__img {
	display: block;
	aspect-ratio: 1 / 1.414;
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: var(--ft-radius);
	overflow: hidden;
	box-shadow: var(--ft-shadow);
	transition: transform .15s, box-shadow .15s;
}
.ft-poster:hover .ft-poster__img { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 16px 32px rgba(15,27,45,.12); }
.ft-poster__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ft-poster__pdf { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 28px; color: var(--ft-blue); }
.ft-poster__title { font-weight: 700; color: var(--ft-ink); margin-top: 8px; line-height: 1.3; }
.ft-poster__when { font-size: 14px; color: var(--ft-muted); }

/* ============================================================
   7. Moduli
   ============================================================ */
.ft-form__title { font-size: 20px; margin: 0 0 14px; }
.ft-form label { font-size: 14px; color: var(--ft-ink); }
.ft-form input[type=text],
.ft-form input[type=email],
.ft-form input[type=tel],
.ft-form textarea {
	border: 1px solid #cfd6e1;
	border-radius: 8px;
	padding: 11px 12px;
	font-size: 16px;
	background: #fff;
	color: var(--ft-ink);
}
.ft-form input:focus, .ft-form textarea:focus { border-color: var(--ft-blue); outline: 3px solid rgba(27, 75, 130, .18); outline-offset: 0; }
.ft-form .ft-field--radio { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.ft-form .ft-field--radio legend { font-weight: 600; font-size: 14px; color: var(--ft-ink); margin-bottom: 4px; width: 100%; }
.ft-form .ft-field--check span { font-size: 13px; line-height: 1.5; color: var(--ft-muted); }
.ft-form .ft-field--check input { margin-top: 3px; }
.ft-form button[type=submit] { margin-top: 6px; }
.ft-form--newsletter { display: grid; gap: 4px; }

/* ============================================================
   8. Catalogo
   ============================================================ */
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.ft-chip {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--ft-line);
	background: #fff;
	color: var(--ft-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.ft-chip:hover { border-color: var(--ft-blue); color: var(--ft-blue); }
.ft-chip.is-active { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; }

.ft-catalog__group { margin: 48px 0; }
.ft-catalog__head { border-left: 4px solid var(--ft-cat); padding-left: 16px; margin-bottom: 22px; }
.ft-catalog__head h2 { font-size: 26px; margin: 0 0 4px; }
.ft-catalog__head h2 a { color: var(--ft-ink); text-decoration: none; }
.ft-catalog__head p { margin: 0; color: var(--ft-muted); }
.ft-catalog__grid { margin-top: 32px; }

.ft-cta-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	background: linear-gradient(135deg, var(--ft-navy), var(--ft-blue));
	color: rgba(255, 255, 255, .88);
	border-radius: var(--ft-radius);
	padding: clamp(28px, 4vw, 44px);
	margin: 56px 0 72px;
}
.ft-cta-box h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.ft-cta-box p { margin: 0; }
.ft-cta-box__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* ============================================================
   9. Contatti
   ============================================================ */
.ft-contacts { list-style: none; margin: 0; padding: 0; }
.ft-contacts li { margin: 0 0 14px; }
.ft-contacts__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ft-muted); font-weight: 700; }
.ft-contacts a { font-weight: 600; text-decoration: none; }

/* ============================================================
   10. Footer
   ============================================================ */
.ft-footer { background: #0b1f3a; color: rgba(255, 255, 255, .78); font-size: 15px; }
.ft-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.ft-footer a:hover { color: var(--ft-accent); }
.ft-footer ul { list-style: none; margin: 0; padding: 0; }
.ft-footer li { margin: 0 0 8px; }
.ft-footer__top {
	max-width: var(--ft-wrap);
	margin: 0 auto;
	padding: 64px 20px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}
.ft-footer__name { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.ft-footer__tagline { color: var(--ft-accent); font-weight: 600; margin: 0 0 18px; }
.ft-footer__accred li { font-size: 14px; padding-left: 20px; position: relative; }
.ft-footer__accred li::before { content: "✓"; position: absolute; left: 0; color: var(--ft-accent); }
.ft-footer__title { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 16px; }
.ft-footer .ft-contacts__label { color: rgba(255, 255, 255, .55); }
.ft-footer__social a { margin-right: 12px; font-weight: 600; }
.ft-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.ft-footer__bottom p { max-width: var(--ft-wrap); margin: 0 auto; padding: 20px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ============================================================
   11. Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.ft-grid, .ft-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ft-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ft-course-layout { grid-template-columns: 1fr; gap: 32px; }
	.ft-sticky { position: static; }
	.ft-footer__top { grid-template-columns: 1fr 1fr; }
	.ft-cta-box { flex-direction: column; align-items: flex-start; }
	.ft-cta-band .wp-block-buttons { justify-content: flex-start; }
}

@media (max-width: 781px) {
	.ft-grid, .ft-grid--2, .ft-grid--4 { grid-template-columns: 1fr; }
	.ft-dl { grid-template-columns: 1fr; }
	.ft-dl dt { border-bottom: 0; padding-bottom: 0; }
	.ft-facts li { min-width: 0; flex: 1 1 calc(50% - 12px); }
	.ft-course-tabs .ft-course-tabs__cta { display: none; }
	.admin-bar .ft-course-tabs { top: 0; }
	.ft-mobile-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--ft-line);
		box-shadow: 0 -6px 20px rgba(15, 27, 45, .08);
	}
	.ft-mobile-cta__price { font-weight: 800; color: var(--ft-ink); font-size: 18px; }
	.ft-mobile-cta .ft-btn { padding: 11px 20px; }
	.single-corsi .ft-footer { padding-bottom: 72px; }
}

@media (max-width: 600px) {
	.ft-areas { grid-template-columns: 1fr; }
	.ft-footer__top { grid-template-columns: 1fr; gap: 28px; }
	.ft-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.ft-hero .wp-block-button__link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Pulsanti nel menu (Contatti, Area riservata): altezza compatta, centrati nell'intestazione */
.main-header-menu > .ft-menu-cta,
.main-header-menu > .ft-menu-area {
	display: flex;
	align-items: center;
	align-self: center;
}
.main-header-menu > .ft-menu-cta > .menu-link,
.main-header-menu > .ft-menu-area > .menu-link {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.3 !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

/* Schermi desktop stretti: pulsante area riservata solo con lucchetto (il testo resta per gli screen reader) */
@media (min-width: 922px) and (max-width: 1280px) {
	.main-header-menu .ft-menu-area > .menu-link { padding: 8px 10px !important; }
	.main-header-menu .ft-menu-area .ft-menu-area__text {
		position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
	.main-header-menu .ft-lock { width: 16px; height: 16px; }
}

/* Documento scaricabile (con nome ed email) */
.ft-download-box {
	background: #fff7e6;
	border: 1px solid #f3dca6;
	border-radius: var(--ft-radius);
	padding: 20px 22px;
}
.ft-download-box__title { font-weight: 800; color: var(--ft-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.ft-download-box__text { font-size: 14px; margin: 0 0 14px; color: var(--ft-text); }
.ft-download-box .ft-form .ft-field { margin-bottom: 10px; }
.ft-dl-btn { margin-top: 12px; }
.ft-ico-doc {
	width: 20px; height: 20px; display: inline-block; background: var(--ft-accent-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V9h5.5L13 3.5zM12 11v5.2l-2.1-2.1-1.4 1.4L12 19l3.5-3.5-1.4-1.4-2.1 2.1V11h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V9h5.5L13 3.5zM12 11v5.2l-2.1-2.1-1.4 1.4L12 19l3.5-3.5-1.4-1.4-2.1 2.1V11h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================
   Stato del corso: iscrizioni aperte, data, ultimi posti
   ============================================================ */
:root { --ft-red: #d92d20; --ft-red-dark: #b42318; --ft-green: #067647; }
.ft-badge--open { background: #dcfae6; color: var(--ft-green); }
.ft-badge--date { background: #e8f0fa; color: var(--ft-blue); }
.ft-badge--last { background: var(--ft-red); color: #fff; }
.ft-course-hero .ft-badge--open { background: #dcfae6; color: var(--ft-green); }
.ft-badge--pulse { animation: ft-pulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(217, 45, 32, .6); }
@keyframes ft-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(217, 45, 32, .55); }
	70%  { box-shadow: 0 0 0 10px rgba(217, 45, 32, 0); }
	100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); }
}

/* Nastro diagonale "Ultimi posti" su card e locandine */
.ft-card__media, .ft-poster__img { position: relative; }
.ft-ribbon {
	position: absolute;
	top: 18px;
	right: -46px;
	z-index: 2;
	width: 180px;
	padding: 6px 0;
	transform: rotate(38deg);
	background: var(--ft-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	box-shadow: 0 4px 12px rgba(180, 35, 24, .35);
}
.ft-ribbon--big { top: 26px; right: -50px; width: 200px; font-size: 13px; padding: 8px 0; }

/* Locandine in home: etichette sotto */
.ft-poster__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-poster--last .ft-poster__img { outline: 3px solid var(--ft-red); outline-offset: 2px; }

/* Avviso nella colonna del corso */
.ft-last-alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #fef3f2;
	border: 2px solid var(--ft-red);
	border-radius: var(--ft-radius);
	padding: 14px 16px;
	color: var(--ft-red-dark);
	font-size: 15px;
	line-height: 1.45;
}
.ft-last-alert strong { color: var(--ft-red-dark); font-size: 16px; }
.ft-last-alert__icon {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ft-red);
	color: #fff;
	font-weight: 900;
	display: grid;
	place-items: center;
	animation: ft-pulse 1.8s ease-in-out infinite;
}
.ft-mobile-cta__last {
	background: var(--ft-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 4px 8px;
	border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
	.ft-badge--pulse, .ft-last-alert__icon { animation: none; }
}
