/*
Theme Name: FixLab Solutions
Theme URI: https://fixlabsolutions.it/
Description: Tema del sito di FixLab Solutions, laboratorio di riparazione su scheda a Villa Guardia (Como). All'attivazione crea le pagine del sito (Home, Servizi, Per negozi e aziende, Chi siamo, Contatti), imposta la home e i permalink.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 7.4
Author: FixLab Solutions
Text Domain: fixlab-solutions
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Accent word in headings (italic, lime, like the landing pages) */
.fx-accent { color: var(--wp--preset--color--lime); font-style: italic; }
.has-grigio-background-color .fx-accent,
.has-bianco-background-color .fx-accent { color: var(--wp--preset--color--blu); }

.fx-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--titoli);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blu);
	margin-bottom: 0.25rem;
}
.has-blu-background-color .fx-eyebrow,
.has-notte-background-color .fx-eyebrow,
.wp-block-cover .fx-eyebrow { color: var(--wp--preset--color--lime); }

.fx-lead { font-size: 1.15rem; color: var(--wp--preset--color--testo-tenue); }
.wp-block-cover .fx-lead, .has-blu-background-color .fx-lead { color: rgba(255,255,255,0.88); }

/* ---------- Header ---------- */
.fx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,0.96);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--bordo);
}
.admin-bar .fx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fx-header { top: 0; } }
.fx-header .wp-block-site-logo img { width: 54px; height: auto; }
.fx-brand { font-family: var(--wp--preset--font-family--titoli); font-weight: 800; font-size: 1.15rem; color: var(--wp--preset--color--notte); text-decoration: none; line-height: 1.1; }
.fx-brand a { color: inherit; text-decoration: none; }
.fx-brand small { display:block; font-weight: 600; font-size: 0.72rem; color: var(--wp--preset--color--testo-tenue); letter-spacing: 0.02em; }
.fx-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--notte); }
.fx-header .wp-block-navigation a:hover { color: var(--wp--preset--color--blu); }
.fx-header .wp-block-navigation .current-menu-item > a,
.fx-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--blu); }
@media (max-width: 900px) { .fx-header .fx-header-cta { display: none; } }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.fx-btn-wa .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: #fff; }
.fx-btn-wa .wp-block-button__link:hover { background: #17924A; color: #fff; }
.fx-btn-wa .wp-block-button__link::before {
	content: ""; display: inline-block; width: 1.15em; height: 1.15em; margin-right: .5em; vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: url("assets/img/whatsapp.svg") center / contain no-repeat; mask: url("assets/img/whatsapp.svg") center / contain no-repeat;
}
.is-style-outline.fx-btn-light .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.is-style-outline.fx-btn-light .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.is-style-outline.fx-btn-dark .wp-block-button__link { color: var(--wp--preset--color--notte); border-color: var(--wp--preset--color--notte); background: transparent; }

/* ---------- Hero ---------- */
.fx-hero h1 { color: #fff; }
.fx-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.fx-chips li { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; color: #fff; font-style: italic; }

/* ---------- Stats ---------- */
.fx-stats .fx-stat-n { font-family: var(--wp--preset--font-family--titoli); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); white-space: nowrap; line-height: 1; color: var(--wp--preset--color--blu); margin: 0; }
.fx-stats .fx-stat-l { margin: .35rem 0 0; font-size: .95rem; color: var(--wp--preset--color--testo-tenue); }

/* ---------- Cards ---------- */
.fx-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--bordo);
	border-radius: 16px;
	padding: 1.6rem;
	height: 100%;
	box-shadow: 0 1px 2px rgba(4,50,62,.04), 0 8px 24px rgba(4,50,62,.06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.fx-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(4,50,62,.06), 0 14px 32px rgba(4,50,62,.09); }
.fx-card { color: var(--wp--preset--color--testo); }
.fx-card h3 { margin-top: .6rem; }
.fx-card p { margin-bottom: 0; }
.fx-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px;
	background: var(--wp--preset--color--lime-chiaro); color: var(--wp--preset--color--blu);
	font-size: 1.4rem; line-height: 1; margin: 0;
}
.wp-block-columns.fx-cards { align-items: stretch; }
.wp-block-columns.fx-cards > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.fx-cards > .wp-block-column > .fx-card { flex: 1; }

/* framed block like the landing pages (lime border) */
.fx-frame { border: 2px solid var(--wp--preset--color--lime); border-radius: 18px; overflow: hidden; background: #fff; }
.fx-frame .wp-block-image { margin: 0; height: 100%; }
.fx-frame .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps ---------- */
.fx-steps { counter-reset: fxstep; }
.fx-step { position: relative; padding-top: 3.4rem !important; }
.fx-step::before {
	counter-increment: fxstep; content: counter(fxstep);
	position: absolute; top: 0; left: 0;
	width: 2.6rem; height: 2.6rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--wp--preset--color--lime); color: var(--wp--preset--color--notte);
	font-family: var(--wp--preset--font-family--titoli); font-weight: 800; font-size: 1.15rem;
}
.has-blu-background-color .fx-step h3, .has-blu-background-color h2, .has-notte-background-color h2 { color: #fff; }
.has-blu-background-color .fx-step p { color: rgba(255,255,255,.88); }

/* ---------- Check list ---------- */
ul.fx-checks { list-style: none; padding-left: 0; }
ul.fx-checks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
ul.fx-checks li::before {
	content: "✓"; position: absolute; left: 0; top: .1em;
	width: 1.35rem; height: 1.35rem; border-radius: 50%;
	background: var(--wp--preset--color--blu); color: #fff; font-size: .8rem; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.has-blu-background-color ul.fx-checks li::before, .has-notte-background-color ul.fx-checks li::before { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--notte); }

/* ---------- Comparison table ---------- */
.fx-compare table { border-collapse: separate; border-spacing: 0; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--wp--preset--color--bordo); background: #fff; }
.fx-compare th, .fx-compare td { padding: .9rem 1.1rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--bordo); text-align: left; vertical-align: top; }
.fx-compare thead th { background: var(--wp--preset--color--notte); color: #fff; font-family: var(--wp--preset--font-family--titoli); font-weight: 700; }
.fx-compare thead th:last-child { background: var(--wp--preset--color--blu); }
.fx-compare td:last-child { background: #F3F6FD; font-weight: 600; color: var(--wp--preset--color--notte); }
.fx-compare tr:last-child td { border-bottom: 0; }
.fx-compare td:first-child { font-weight: 600; color: var(--wp--preset--color--notte); }

/* ---------- Gallery ---------- */
.fx-gallery .wp-block-image img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.fx-gallery figcaption { font-size: .85rem; color: var(--wp--preset--color--testo-tenue); text-align: left; }
.fx-photo img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- FAQ ---------- */
.fx-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--titoli); font-weight: 700; font-size: 1.1rem; color: var(--wp--preset--color--notte); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.fx-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.fx-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -0.1em; font-size: 1.5rem; color: var(--wp--preset--color--blu); transition: transform .2s; }
.fx-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.fx-faq .wp-block-details p { color: var(--wp--preset--color--testo-tenue); margin-top: .6rem; }

/* ---------- Contact info ---------- */
.fx-contact-list { list-style: none; padding: 0; margin: 0; }
.fx-contact-list li { padding: .75rem 0; border-bottom: 1px solid var(--wp--preset--color--bordo); }
.fx-contact-list li:last-child { border-bottom: 0; }
.fx-contact-list strong { display: block; font-family: var(--wp--preset--font-family--titoli); color: var(--wp--preset--color--notte); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.fx-map iframe { width: 100%; min-height: 340px; border: 0; border-radius: 16px; display: block; }

/* ---------- Form ---------- */
.fx-form { display: grid; gap: 1rem; }
.fx-form .fx-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fx-form .fx-row { grid-template-columns: 1fr; } }
.fx-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--notte); margin-bottom: .3rem; }
.fx-form input[type=text], .fx-form input[type=email], .fx-form input[type=tel], .fx-form select, .fx-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem;
	padding: .75rem .9rem; border: 1px solid #C9D2DE; border-radius: 10px; background: #fff; color: var(--wp--preset--color--testo);
}
.fx-form input:focus, .fx-form select:focus, .fx-form textarea:focus { outline: 2px solid var(--wp--preset--color--blu); outline-offset: 1px; border-color: var(--wp--preset--color--blu); }
.fx-form textarea { min-height: 130px; resize: vertical; }
.fx-form .fx-privacy { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--wp--preset--color--testo-tenue); }
.fx-form .fx-privacy input { margin-top: .3rem; }
.fx-form .fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fx-form button {
	justify-self: start; cursor: pointer; border: 0; border-radius: 999px;
	background: var(--wp--preset--color--lime); color: var(--wp--preset--color--notte);
	font-family: var(--wp--preset--font-family--titoli); font-weight: 700; font-size: 1rem; padding: .9rem 1.8rem;
}
.fx-form button:hover { background: #B3B30C; }
.fx-form-msg { border-radius: 12px; padding: 1rem 1.2rem; font-weight: 600; }
.fx-form-msg.ok { background: #E7F6EC; color: #145C2E; }
.fx-form-msg.err { background: #FDECEC; color: #8A1C1C; }
.fx-form-box { background: #fff; border: 1px solid var(--wp--preset--color--bordo); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 8px 24px rgba(4,50,62,.06); }

/* ---------- Footer ---------- */
.fx-footer { color: rgba(255,255,255,.82); font-size: .95rem; }
.fx-footer h2, .fx-footer h3, .fx-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.fx-footer a { color: #fff; text-decoration: none; }
.fx-footer a:hover { color: var(--wp--preset--color--lime); }
.fx-footer ul { list-style: none; padding: 0; margin: 0; }
.fx-footer li { margin-bottom: .4rem; }
.fx-footer .fx-legal { font-size: .8rem; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.15); }
.fx-footer .fx-legal a { color: rgba(255,255,255,.8); }

/* ---------- Floating WhatsApp ---------- */
.fx-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 60;
	width: 58px; height: 58px; border-radius: 50%;
	background: var(--wp--preset--color--whatsapp);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
	transition: transform .15s ease;
}
.fx-wa-float:hover { transform: scale(1.06); }
.fx-wa-float img { width: 30px; height: 30px; }
.fx-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 781px) {
	.fx-hide-mobile { display: none !important; }
	.fx-stats .wp-block-column { flex-basis: 45% !important; }
}

/* Note for consumers (B2B only) */
.fx-privati { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--wp--preset--color--lime); background: var(--wp--preset--color--lime-chiaro); border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--wp--preset--color--testo); }
.fx-privati strong { color: var(--wp--preset--color--notte); }

/* Click-to-load map */
.fx-map-ph { min-height: 340px; border-radius: 16px; background: var(--wp--preset--color--grigio) url("assets/img/hero-scheda.jpg") center / cover; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; overflow: hidden; }
.fx-map-ph::before { content: ""; position: absolute; inset: 0; background: rgba(4, 50, 62, .82); }
.fx-map-ph > * { position: relative; color: #fff; margin: .35rem 0; }
.fx-map-addr { font-family: var(--wp--preset--font-family--titoli); font-weight: 800; font-size: 1.25rem; }
.fx-map-ph a { color: #fff; }
.fx-map-load { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--notte); border: 0; border-radius: 999px; padding: .7rem 1.4rem; font-weight: 700; font-family: inherit; cursor: pointer; margin-right: .75rem; }
.fx-map-note { font-size: .8rem; opacity: .8; max-width: 34ch; }
