/*
Theme Name: HS LAB 1881
Theme URI: https://hslab1881.it
Author: HS LAB 1881 S.r.l.
Description: Tema su misura per HS LAB 1881, laboratorio di ricerca e sviluppo per apparecchi a biomassa. Stile scuro high-tech, pagine Home, Chi siamo, Servizi, Contatti e News create automaticamente all'attivazione.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hslab1881
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, .wp-block-heading { font-stretch: 115%; text-wrap: balance; }
h1 { font-stretch: 118%; }
h3.wp-block-heading, h4.wp-block-heading { font-stretch: 100%; }
p { text-wrap: pretty; }
::selection { background: #0B7A2E; color: #fff; }
:focus-visible { outline: 2px solid #6BE39A; outline-offset: 3px; }
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* sections stack edge to edge */
.wp-block-group.hs-section { margin-block-start: 0 !important; margin-block-end: 0 !important; border-top: 1px solid #1B2620; }
.wp-block-group.hs-section:first-child { border-top: 0; }
.hs-measure { max-width: 760px; }
.hs-gridbg {
	background-image: linear-gradient(rgba(107,227,154,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(107,227,154,.07) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
.hs-header { background: rgba(7,10,8,.92) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1B2620; }
.hs-header .wp-block-site-logo img { display: block; }
.hs-nav .wp-block-navigation-item__content { padding: 6px 0; }
.hs-nav .current-menu-item > a, .hs-nav a[aria-current="page"] { color: #fff !important; }
.hs-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.hs-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 24px; }
.hs-header-cta .wp-block-button__link { padding: 11px 18px; font-size: 14px; }
@media (max-width: 781px) { .hs-header-cta { display: none !important; } }

/* ---------- Text styles ---------- */
.is-style-hs-eyebrow {
	font-family: var(--wp--preset--font-family--mono); font-size: 13px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--wp--preset--color--accent); line-height: 1.4;
}
.is-style-hs-chip {
	display: inline-block; border: 1px solid #2A3A30; padding: 8px 14px; font-size: 14px;
	color: var(--wp--preset--color--soft); line-height: 1.3; margin: 0 !important;
}
.hs-chip-link a { color: var(--wp--preset--color--contrast); }
.hs-chip-link:hover { border-color: #2F8F52; }
.hs-more a { font-weight: 600; }
.hs-social a + a { margin-left: 20px; }
.hs-stat { font-size: clamp(30px, 3vw, 38px); font-weight: 700; font-stretch: 115%; color: #fff; line-height: 1; margin: 0; }
.hs-stat .hs-unit { font-size: .5em; color: var(--wp--preset--color--accent); }
.hs-year { font-size: clamp(32px, 3.4vw, 42px); font-weight: 800; font-stretch: 118%; color: var(--wp--preset--color--accent); line-height: 1; }
.hs-big { color: #fff; font-size: clamp(36px, 4vw, 46px); }
.hs-bignum { font-family: var(--wp--preset--font-family--mono); font-size: 64px; color: #2F8F52; line-height: 1; margin: 0; }
.hs-statement { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; color: #fff; }

/* ---------- Containers ---------- */
.hs-section .is-layout-grid:not(.hs-fixed) { grid-template-columns: repeat(auto-fit, minmax(min(var(--hs-min, 220px), 100%), 1fr)) !important; }
.hs-numrow { width: 100%; align-self: stretch !important; }
.hs-section .is-layout-grid.hs-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.hs-section .is-layout-grid.hs-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.is-layout-flex > .wp-block-cover { align-self: stretch; width: 100%; }
.hs-hero-title { max-width: 1060px; }
.hs-section .is-layout-grid.hs-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.is-style-hs-card { border: 1px solid #24332A; background: var(--wp--preset--color--surface); padding: clamp(24px, 3vw, 36px); }
.hs-fill { height: 100%; justify-content: space-between !important; }
.hs-tiles { gap: 1px !important; background: #24332A; border: 1px solid #24332A; }
.hs-tiles > * { background: var(--wp--preset--color--base-2); padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px); margin: 0 !important; }
.has-base-2-background-color .hs-tiles > * { background: var(--wp--preset--color--base); }
.hs-tiles--flush { border: 0; border-top: 1px solid #24332A; }
.hs-tiles--flush > * { background: var(--wp--preset--color--surface); padding: 22px 18px; }
.hs-panel { border: 1px solid #24332A; background: var(--wp--preset--color--surface); }
.hs-panel > * { margin-block-start: 0 !important; }
.hs-svc h3 a { color: #fff; }
.hs-svc h3 a:hover { color: var(--wp--preset--color--accent); text-decoration: none; }
.hs-tiles > .hs-svc { transition: background .2s; }
.hs-tiles > .hs-svc:hover { background: #0F1712; }
.hs-svc .hs-more { margin-top: auto !important; }

.hs-icon {
	width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid #2F4036;
	display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--accent);
}

/* placeholder for photos (Cover block) */
.wp-block-cover.is-style-hs-placeholder {
	border: 1px solid #24332A;
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
}
.wp-block-cover.is-style-hs-placeholder .wp-block-cover__background { opacity: .55 !important; }
.wp-block-cover.is-style-hs-placeholder .wp-block-cover__inner-container { text-align: center; }
.wp-block-cover:not(.is-style-hs-placeholder) .hs-ph-label { display: none; }

/* numbered list rows */
.hs-numrow { border-top: 1px solid #24332A; padding: 16px 0; }
.hs-numlist > .hs-numrow:last-child { border-bottom: 1px solid #24332A; }
.hs-num {
	flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--brand);
	color: #fff; font-family: var(--wp--preset--font-family--mono); font-size: 12px;
	display: flex; align-items: center; justify-content: center; margin: 0 !important; line-height: 1;
}
.hs-numrow p { margin: 0; }

/* process steps */
.hs-steps { gap: 0 !important; }
.hs-step { position: relative; border-top: 2px solid var(--wp--preset--color--brand); padding: 28px 24px 0 0; }
.hs-step::before {
	content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%;
	background: var(--wp--preset--color--accent); border: 3px solid var(--wp--preset--color--base); box-sizing: border-box;
}
.hs-phases { gap: 0 !important; border-top: 1px solid #2F4036; }
.hs-phase { padding: 24px 24px 0 0; }

/* value rows */
.hs-vallist > .hs-valrow { border-top: 1px solid #24332A; padding: 28px 0; margin: 0 !important; }
.hs-vallist > .hs-valrow:last-child { border-bottom: 1px solid #24332A; }
.hs-valrow h3 { margin: 0; }
.hs-arrows { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 24px; font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--muted); }
.hs-arrows li::before { content: "→ "; color: var(--wp--preset--color--accent); }
.hs-divided { border-top: 1px solid #24332A; padding-top: clamp(32px, 4vw, 48px); }

/* checklist */
.hs-checkbox { border-top: 1px solid #24332A; padding-top: 24px; }
.hs-checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.hs-checks li { position: relative; padding-left: 30px; }
.hs-checks li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
	background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236BE39A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
}

/* certifications */
.hs-cert { border: 1px solid #2F4036; padding: 22px; }
.hs-cert--eu { border-color: #2F8F52; }
.hs-cert p { margin: 0; }

/* norms strip */
.hs-norm { margin: 0; color: var(--wp--preset--color--contrast); font-size: 15px; }
.hs-norm + .hs-norm::before { content: "◆"; color: #2F8F52; margin-right: 24px; font-size: 11px; vertical-align: 2px; }

/* figures */
.hs-figure { margin: 0; width: 100%; display: flex; justify-content: center; }
.hs-figure svg { width: 100%; max-width: 380px; height: auto; display: block; }
.hs-figure--small { justify-content: flex-start; }
.hs-figure--small svg { max-width: 300px; }
.hs-figure-box { border: 1px solid #24332A; background-color: var(--wp--preset--color--base); padding: 32px; }

/* contact rows */
.hs-contact-row p { margin: 0; }
.hs-logo-slot { border: 1px dashed #2F4036; min-height: 88px; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0; }
.hs-logo-big img { width: 240px; max-width: 100%; height: auto; }

/* FAQ */
.hs-faqlist > .hs-faq { padding: 22px 0; margin: 0 !important; }
.hs-faqlist > .hs-faq:last-child { border-bottom: 1px solid #24332A; }
.hs-faq summary { cursor: pointer; font-size: 19px; font-weight: 600; color: #fff; list-style: none; position: relative; padding-right: 40px; }
.hs-faq summary::-webkit-details-marker { display: none; }
.hs-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-family: var(--wp--preset--font-family--mono); font-size: 22px; color: var(--wp--preset--color--accent); }
.hs-faq[open] summary::after { content: "–"; }
.hs-faq p { margin-top: 14px; max-width: 760px; }

/* buttons */
.hs-btn-lg .wp-block-button__link { padding: 20px 32px; font-size: 17px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #6BE39A; color: #fff; background: transparent; }

/* news */
.hs-news .wp-block-post-template { gap: 24px; }
.hs-news .wp-block-post { display: flex; flex-direction: column; gap: 12px; }
.hs-news .wp-block-post > * { margin: 0; }
.hs-news .wp-block-post-featured-image { border: 1px solid #24332A; }
.hs-news .wp-block-post-featured-image img { transition: transform .4s; }
.hs-news .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.hs-news .wp-block-post-featured-image:empty, .hs-news .wp-block-post:not(:has(.wp-block-post-featured-image img)) .wp-block-post-featured-image { display: none; }
.hs-news .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); text-decoration: none; }

/* footer */
.hs-footer { border-top: 1px solid #1B2620; }
.hs-footer-links { line-height: 2; }
.hs-footer-links a { color: var(--wp--preset--color--soft); }
.hs-footer-links a:hover { color: #fff; }
.hs-footer-bottom { border-top: 1px solid #1B2620; padding-top: 24px; }
.hs-footer-bottom p { margin: 0; }

/* generic page content (privacy, posts) */
.hs-prose { font-size: 17px; }
.hs-prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 2em; }
.hs-prose h3 { margin-top: 1.6em; }

@media (max-width: 781px) {
	.hs-step, .hs-phase { padding-bottom: 28px; }
	.hs-bignum { font-size: 48px; }
	.hs-norm + .hs-norm::before { margin-right: 12px; }
	.hs-tiles--flush > * { padding: 18px 12px; }
	.hs-section .is-layout-grid.hs-cols-4, .hs-section .is-layout-grid.hs-cols-3, .hs-section .is-layout-grid.hs-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.hs-tiles--flush .has-mono-font-family { font-size: 11px !important; }
	.hs-tiles--flush .hs-stat { font-size: 28px; }
}
