/*
Theme Name: FitLine Child Theme
Theme URI: https://fitline.axiomthemes.com/
Description: FitLine is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AxiomThemes
Author URI: https://axiomthemes.com/
Version: 1.15.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: fitline
Template: fitline
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* Home – widget di prenotazione (sezione #prenota): l'iframe occupa tutta la colonna;
   l'altezza la imposta lo script del CRM (form_embed.js) */
.fm-booking,
.fm-booking .elementor-widget-container { width: 100%; }
.fm-booking iframe { width: 100% !important; max-width: 100%; display: block; }
@media (max-width: 767px) {
	#prenota .elementor-container { flex-wrap: wrap; }
	#prenota .elementor-column { width: 100% !important; }
}

/* Container Elementor in colonna: su mobile Elementor li mette in flex-wrap: wrap e Chrome
   calcola l'altezza di un widget con contenuto flessibile (le card [fm_corsi]) come una riga sola,
   così la sezione non cresce e le card coprono le sezioni sotto. I container con "a capo"
   impostato in Elementor hanno un selettore più specifico e restano come sono. */
@media (max-width: 767px) {
	.e-con.e-flex { --flex-wrap: nowrap; }
}

/* Titolo "FAQ: Le domande che ci fate più spesso" (heading atomico Elementor): su mobile allineato
   alle domande (20px dal bordo), stessi spazi e corpo su Nutrizione (3b14513) e Mindset/Movimento (27d992e) */
@media (max-width: 767px) {
	.e-heading-base[data-interaction-id="3b14513"] { padding: 35px 20px 30px; font-size: 26px; }
	.e-heading-base[data-interaction-id="27d992e"] { padding: 25px 10px 0; }
}

/* Pagina Mindset – spazio video (carosello social categoria "Mindset") */
.fm-mindset-video { max-width: 420px; margin: 0 auto 50px; }
.fm-mindset-video:empty { display: none; }

/* Header layouts – "Nascondi su" di Elementor: le regole trx_addons su .sc_layouts_item
   sono più specifiche e lo annullerebbero (es. icona carrello nascosta finché lo shop non è attivo) */
@media (min-width: 1025px) { .sc_layouts_item.elementor-hidden-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .sc_layouts_item.elementor-hidden-tablet { display: none !important; } }
@media (max-width: 767px) { .sc_layouts_item.elementor-hidden-mobile { display: none !important; } }

/* Pagine Nutrizione / Movimento / Mindset – leggibilità dei testi (il grigio chiaro del tema
   su fondo bianco si legge male) e blocchi di enfasi per le sezioni di immedesimazione */
body.page-id-166 .elementor-widget-text-editor,
body.page-id-329 .elementor-widget-text-editor,
body.page-id-1125 .elementor-widget-text-editor,
body.page-id-1539 .elementor-widget-text-editor,
body.page-id-1539 .sc_item_descr,
body.page-id-166 .sc_item_descr,
body.page-id-329 .sc_item_descr,
body.page-id-1125 .sc_item_descr {
	color: #4f5350;
	font-size: 18px;
	line-height: 1.65;
}
body.page-id-166 .elementor-widget-text-editor strong,
body.page-id-329 .elementor-widget-text-editor b,
body.page-id-329 .elementor-widget-text-editor strong,
body.page-id-1125 .elementor-widget-text-editor b,
body.page-id-1125 .elementor-widget-text-editor strong,
body.page-id-1539 .elementor-widget-text-editor strong,
body.page-id-166 .sc_item_descr strong {
	color: #18240a;
}
/* Sotto i titoli su fondo scuro il testo resta chiaro */
body.page-id-166 .scheme_dark .elementor-widget-text-editor,
body.page-id-166 [data-id="34e2fc0a"] .elementor-widget-text-editor {
	color: rgba(255, 255, 255, 0.82);
}
/* Firma "a cura di Martina Baldin" sotto il titolo: è un elemento di fiducia, va letto */
body.page-id-166 [data-id="5c97f0c3"] .sc_item_subtitle {
	font-size: 15px;
	line-height: 1.5;
	color: #4d7f2a;
}

.fm-quiz {
	max-width: 720px;
	margin: 1.6em auto 0;
	padding: 1.6em 2em;
	border-radius: 18px;
	background: #f1f8eb;
	text-align: left;
}
.fm-quiz__title {
	font-weight: 700;
	color: #18240a;
	margin-bottom: 0.6em !important;
}
.fm-quiz ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fm-quiz li {
	position: relative;
	padding: 0.45em 0 0.45em 2.2em;
}
.fm-quiz li:before {
	content: "?";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: #7eb950;
	color: #fff;
	font-weight: 700;
	font-size: 0.85em;
	line-height: 1.5em;
	text-align: center;
}
.fm-quiz__answer {
	margin: 0.9em 0 0 !important;
	padding-top: 0.9em;
	border-top: 1px solid rgba(77, 127, 42, 0.2);
	font-size: 1.1em;
}
@media (max-width: 767px) {
	.fm-quiz { padding: 1.2em 1.2em; }
}

/* =========================================================================
   Pagina Chi sono
   ====================================================================== */
.fm-about-hero .sc_item_title {
	color: #fff !important;
	max-width: 14em;
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	line-height: 1.12;
}
.fm-about-hero .sc_item_subtitle { color: #c9e8ad; }
.fm-about-hero .sc_item_descr,
.fm-about-hero .fm-about-hero__lead {
	color: #fff !important;
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.4;
}
.fm-about-photo img {
	width: 100%;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(24, 36, 10, 0.12);
}
.fm-about-narrow { max-width: 760px; margin: 0 auto; text-align: center; }
.fm-quiz ul:only-child li { font-size: 1.15em; }

/* Il giro: dieta → fallimento → colpa → abbuffata → restrizione */
.fm-cycle {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 38px;
	list-style: none;
	margin: 1.5em auto 0.4em;
	padding: 0;
	counter-reset: fmcycle;
}
.fm-cycle li { position: relative; margin: 0; padding: 0; }
.fm-cycle li span {
	display: inline-block;
	padding: 0.7em 1.4em;
	border-radius: 999px;
	background: #fff4e5;
	color: #b25f00;
	font-weight: 700;
	border: 1px solid #ffd7a3;
}
.fm-cycle li:not(:last-child):after {
	content: "→";
	position: absolute;
	right: -28px;
	top: 50%;
	transform: translateY(-50%);
	color: #ffa01e;
	font-weight: 700;
}
.fm-cycle li:last-child:after {
	content: "↻";
	position: absolute;
	right: -30px;
	top: 50%;
	transform: translateY(-50%);
	color: #ffa01e;
	font-size: 1.3em;
}
.fm-cycle__note { text-align: center; font-style: italic; color: #b25f00; margin-bottom: 1.2em !important; }

/* Percorso */
.fm-timeline { list-style: none; margin: 0; padding: 0 0 0 1.8em; border-left: 2px solid #c9e8ad; }
.fm-timeline li { position: relative; margin: 0 0 1.4em; padding: 0; }
.fm-timeline li:before {
	content: "";
	position: absolute;
	left: calc(-1.8em - 8px);
	top: 0.35em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #7eb950;
	box-shadow: 0 0 0 4px #f7f9f2;
}
.fm-timeline li:last-child:before { background: #ffa01e; }
.fm-timeline strong { display: block; color: #18240a; font-size: 1.15em; }
.fm-timeline span { display: block; color: #4f5350; }

/* Frase manifesto */
.fm-statement { max-width: 900px; margin: 0 auto; padding: 0; border: 0; background: none; text-align: center; }
.fm-statement:before, .fm-statement:after { display: none !important; }
.fm-statement p {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.3;
	color: #18240a;
	font-weight: 500;
	font-style: normal;
}
.fm-statement span { color: #7eb950; font-weight: 700; }

/* Tre pilastri */
.fm-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.fm-pillar {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding: 2em;
	border-radius: 20px;
	background: #fff;
	color: #4f5350 !important;
	box-shadow: 0 10px 30px rgba(24, 36, 10, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fm-pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(24, 36, 10, 0.1); }
.fm-pillar__n { color: #7eb950; font-weight: 700; }
.fm-pillar strong { color: #18240a; font-size: 1.5em; }
.fm-pillar em { margin-top: auto; padding-top: 0.6em; font-style: normal; font-weight: 700; color: #7eb950; }
@media (max-width: 767px) { .fm-pillars { grid-template-columns: 1fr; } }

/* Lettera finale */
.fm-letter { margin: 0; padding: 0 0 0 1.6em; border: 0; border-left: 4px solid #7eb950; background: none; }
.fm-letter:before, .fm-letter:after { display: none !important; }
.fm-letter p { font-size: 1.35rem; line-height: 1.55; color: #18240a; font-style: normal; }
.fm-letter__now { font-size: 1.5rem !important; }
.fm-letter footer { margin-top: 1.2em; font-weight: 700; color: #18240a; font-style: normal; }
.fm-letter footer span { display: block; font-weight: 400; font-size: 0.9em; color: #4d7f2a; }
.fm-about-welcome { font-size: 1.4rem; color: #18240a !important; }

/* Profili social */
.fm-social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 1em; }
.fm-social-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 24px 14px 16px;
	border-radius: 999px;
	background: #fff;
	color: #4f5350 !important;
	box-shadow: 0 8px 24px rgba(24, 36, 10, 0.08);
	line-height: 1.25;
	transition: transform 0.2s ease;
}
.fm-social-link:hover { transform: translateY(-3px); }
.fm-social-link strong { display: block; color: #18240a; }
.fm-social-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
}
.fm-social-link--ig .fm-social-link__icon { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.fm-social-link--tt .fm-social-link__icon { background: #111; }
.fm-social-link__icon:before { margin: 0 !important; }
body.page-id-1539 .sc_skills_extra .sc_skills_total { font-size: clamp(2.4rem, 4vw, 3.4rem); white-space: nowrap; }
@media (max-width: 600px) {
	.fm-cycle { flex-direction: column; align-items: center; gap: 30px; }
	.fm-cycle li:not(:last-child):after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -26px; transform: translateX(-50%); }
	.fm-cycle li:last-child:after { content: "↻"; right: -32px; }
}

/* Privacy / Cookie Policy pages */
.page-id-3 .post_content h2,
.page-id-1542 .post_content h2 { font-size: 1.6em; margin-top: 1.8em; margin-bottom: 0.6em; }
.page-id-3 .post_content h3,
.page-id-1542 .post_content h3 { font-size: 1.25em; margin-top: 1.4em; margin-bottom: 0.5em; }

/* Footer: "Impostazioni Cookie" (pulsante Complianz) con lo stesso aspetto dei link accanto */
.fm-cookie-settings,
.fm-cookie-settings:hover,
.fm-cookie-settings:focus {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: #FFFFFF !important; /* come i link del footer (sfondo verde scuro) */
	box-shadow: none !important;
	cursor: pointer;
	display: inline;
}
.fm-cookie-settings:hover { opacity: .75; }

/* Menu: voce "Prenota Ora" come pulsante (header) e in evidenza (menu mobile) */
.top_panel .sc_layouts_menu_nav > li.fm-menu-cta {
	margin-left: 0.6em;
}
.top_panel .sc_layouts_menu_nav > li.fm-menu-cta > a {
	padding: 0.7em 1.5em !important;
	/* Le altre voci sono alte 0.9em + 1.5em + 0.9em: così il pulsante resta centrato. */
	margin-top: 0.41em;
	border-radius: 100px;
	background-color: #7FB951 !important;
	color: #FFFFFF !important;
	line-height: 1.2;
	transition: background-color .25s ease;
}
.top_panel .sc_layouts_menu_nav > li.fm-menu-cta > a:hover,
.top_panel .sc_layouts_menu_nav > li.fm-menu-cta > a:focus-visible {
	background-color: #6AA53E !important;
}
.top_panel .sc_layouts_menu_nav > li.fm-menu-cta > a::before,
.top_panel .sc_layouts_menu_nav > li.fm-menu-cta > a::after {
	display: none !important;
}
.menu_mobile_nav > li.fm-menu-cta > a,
.menu_mobile_nav > li.fm-menu-cta > a span {
	color: #7FB951 !important;
	font-weight: 600;
}

/* Pagina /prenota/ – intro centrata, 3 passaggi a card, calendario CRM */
.fm-prenota-head,
.fm-prenota-steps { max-width: 820px; margin-left: auto; margin-right: auto; }
.fm-prenota-head { text-align: center; margin-bottom: 2.4em; }
.fm-prenota-head .fm-prenota-quote {
	font-family: semplicitapro, sans-serif;
	font-size: 1.6em;
	line-height: 1.35;
	font-weight: 500;
	color: #18240A;
	margin: 0 0 0.8em;
}
.fm-prenota-head .fm-prenota-quote em { color: #7FB951; font-style: normal; }
.fm-prenota-head .fm-prenota-intro {
	font-size: 1.12em;
	line-height: 1.6;
	color: #4A4F45;
	margin: 0;
}
.fm-prenota-head .fm-prenota-intro strong { color: #18240A; }
.post_content ol.fm-prenota-steps {
	list-style: none;
	padding: 0;
	margin-bottom: 3em;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	counter-reset: none;
}
.post_content ol.fm-prenota-steps > li {
	margin: 0;
	padding: 1.6em 1.4em;
	background: #F3F8EE;
	border-radius: 16px;
	text-align: center;
	line-height: 1.5;
	color: #4A4F45;
}
.post_content ol.fm-prenota-steps > li::before { display: none; }
.fm-prenota-steps .fm-prenota-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0 auto 0.9em;
	border-radius: 50%;
	background: #7FB951;
	color: #FFFFFF;
	font-family: semplicitapro, sans-serif;
	font-weight: 600;
	font-size: 1.1em;
}
.fm-prenota-steps strong {
	display: block;
	margin-bottom: 0.35em;
	font-family: semplicitapro, sans-serif;
	font-size: 1.15em;
	font-weight: 600;
	color: #18240A;
}
.fm-prenota-steps li > span:last-child { display: block; font-size: 0.95em; }
.fm-prenota-widget { max-width: 980px; margin: 0 auto; }
@media (max-width: 767px) {
	.fm-prenota-head { margin-bottom: 1.8em; }
	.fm-prenota-head .fm-prenota-quote { font-size: 1.3em; }
	.post_content ol.fm-prenota-steps { grid-template-columns: 1fr; gap: 12px; margin-bottom: 2em; }
	.post_content ol.fm-prenota-steps > li {
		display: grid;
		grid-template-columns: 42px 1fr;
		column-gap: 14px;
		text-align: left;
		padding: 1.1em 1.2em;
	}
	.fm-prenota-steps .fm-prenota-num { grid-row: 1 / 3; margin: 0; }
}

/* Home: video di presentazione (widget 1a8c64a), alla larghezza dei contenuti */
.elementor-91 .elementor-element-052ecaf { padding: 0 20px !important; box-sizing: border-box; }
.elementor-91 .elementor-element-1a8c64a {
	width: 100%;
	max-width: 1100px !important; /* Elementor .e-con > .elementor-widget forza 100% */
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
}
@media (max-width: 767px) {
	.elementor-91 .elementor-element-052ecaf { padding: 0 25px !important; } /* il wrapper .elementor-91 sborda di 10px per lato */
	.elementor-91 .elementor-element-1a8c64a { border-radius: 12px; }
}
