/* ==========================================================
   Lab4u - stili del tema (fedeli all'originale bifrost + Elementor)
   Scala: html 10px sotto i 1367px, 12px sopra (come bifrost): i valori sono in rem.
   Punti di rottura: header 992px (bifrost), tablet <=1024px, mobile <=767px (Elementor).
   ========================================================== */

/* Font self-hosted (Roboto variabile, solo latin) */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/roboto-latin.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/roboto-italic-latin.woff2") format("woff2"); }

/* Variabili del vecchio builder: alcuni plugin (banner cookie) le usano */
:root {
	--e-global-color-primary: #000000;
	--e-global-color-secondary: #54595F;
	--e-global-color-text: #333333;
	--e-global-color-accent: #000000;
	--l4-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--l4-line: #e5e5e5;
}

/* ---------- Base ---------- */
html { font-size: 10px; overflow-y: scroll; max-width: 100%; }
@media (min-width: 1367px) { html { font-size: 12px; } }
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0; background: #ffffff; color: #333333;
	font-family: "Roboto", sans-serif; font-weight: 400; font-size: 1.25rem; line-height: 1.66667;
	word-wrap: break-word; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: #000000; text-decoration: none; transition: color .15s var(--l4-ease), opacity .15s var(--l4-ease), box-shadow .15s var(--l4-ease); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: #000000; }
p { margin: 0 0 1.33333rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.l4-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; background: #000; color: #fff; }

/* Larghezza dei contenitori come Elementor + bifrost: 1350, 1140 fino a 1366px, 1024 tablet, 767 mobile */
:root { --l4-box: 1350px; }
@media (max-width: 1366px) { :root { --l4-box: 1140px; } }
@media (max-width: 1024px) { :root { --l4-box: 1024px; } }
@media (max-width: 767px) { :root { --l4-box: 767px; } }
.l4-container { width: 100%; max-width: var(--l4-box); margin-left: auto; margin-right: auto; }
.l4-col { padding: 10px; }
/* Spazio tra i blocchi come i widget Elementor */
.l4-col > .l4-anim:not(:last-child), .l4-hero__col > .l4-anim:not(:last-child) { margin-bottom: 20px; }

/* ---------- Header (fisso, si nasconde scendendo e ricompare salendo) ---------- */
.l4-header-wrap { height: calc(8rem + 1px); }
.l4-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	padding: 2.66667rem; background: #ffffff; border-bottom: 1px solid transparent;
	transition: transform .3s var(--l4-ease), padding .3s var(--l4-ease), border-color .3s var(--l4-ease), background-color .3s var(--l4-ease);
}
.admin-bar .l4-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .l4-header { top: 46px; } }
.l4-header.is-not-top { padding-top: 1.33333rem; padding-bottom: 1.33333rem; border-bottom-color: var(--l4-line); }
.l4-header.is-unpinned { transform: translateY(-100%); }
.l4-header__inner { position: relative; display: flex; align-items: center; }
.l4-logo { display: flex; font-weight: 700; font-size: 2.66667rem; line-height: 1; color: #000000; }
.l4-nav { margin-left: auto; }
.l4-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.l4-menu li { margin: 0 0 0 2.66667rem; }
.l4-menu li:first-child { margin-left: 0; }
.l4-menu a { display: block; font-size: 1.33333rem; line-height: 1; color: #000000; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0); }
.l4-menu a:hover, .l4-menu a:focus-visible, .l4-menu .current-menu-item > a { box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 1px 0 #000000; }
.l4-burger, .l4-mobile-nav { display: none; }

@media (max-width: 991px) {
	.l4-header-wrap { height: calc(5.33333rem + 43px); }
	.l4-nav { display: none; }
	.l4-burger { display: block; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; width: 42px; height: 42px; }
	.l4-burger svg { display: block; width: 42px; height: 42px; }
	.l4-burger line { fill: none; stroke: #000000; stroke-width: 6; stroke-miterlimit: 10; transition: stroke .3s var(--l4-ease); }
	.l4-mobile-nav {
		display: block; position: absolute; top: 100%; left: 0; width: 100%; z-index: 1;
		margin-top: 2.66667rem; background: #000000;
		transform: translateY(15px); opacity: 0; visibility: hidden;
		transition: transform .15s var(--l4-ease), margin-top .15s var(--l4-ease), opacity .15s var(--l4-ease), visibility .15s var(--l4-ease);
	}
	.l4-header.is-not-top .l4-mobile-nav { margin-top: 1.33333rem; }
	.l4-mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
	.l4-mobile-menu { list-style: none; margin: 0; padding: 1.33333rem 2.66667rem; }
	.l4-mobile-menu li { display: block; padding: .66667rem 0; margin: 0; }
	.l4-mobile-menu a { color: #ffffff; font-size: 1.33333rem; }
	.l4-mobile-menu a:hover, .l4-mobile-menu .current-menu-item > a { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 1px 0 #ffffff; }
}

/* ---------- Pulsante (come i button Elementor della home) ---------- */
.l4-btn-wrap { text-align: center; }
.l4-btn {
	display: inline-block; font-size: 1.33333rem; line-height: 1; color: #ffffff; background: #000000;
	border: 1px solid #000000; border-radius: 0; padding: 18px 42px; transition: all .3s;
}
.l4-btn:hover, .l4-btn:focus-visible { color: #000000; background: transparent; }
@media (max-width: 1024px) { .l4-btn { padding: 14px 28px; } }
@media (max-width: 767px) { .l4-btn { padding: 12px 26px; } }

/* ---------- Titoli di sezione ---------- */
.l4-kicker { font-size: 1.58333rem; line-height: 1; font-weight: 400; font-style: italic; color: #333333; text-align: center; }
.l4-title { font-size: 3.83333rem; line-height: 55px; font-weight: 600; color: #000000; text-align: center; }
.l4-title--tight { line-height: 50px; }
@media (max-width: 767px) {
	.l4-kicker:not(.l4-kicker--keep) { font-size: 1.33333rem; }
	.l4-title, .l4-title--tight { font-size: 1.66667rem; line-height: 26px; }
}

/* ---------- Hero ---------- */
.l4-hero__slide {
	display: flex; align-items: center; min-height: 100vh;
	background-color: #f7f8f9; background-position: center center; background-repeat: no-repeat; background-size: cover;
}
.l4-hero--slider .l4-hero__slide { display: none; }
.l4-hero--slider .l4-hero__slide.is-active { display: flex; }
.l4-hero__col { width: calc(min(100%, var(--l4-box)) * 2 / 3); margin: 120px auto 0; padding: 10px; }
.l4-hero__title { font-size: 4.33333rem; line-height: 64px; font-weight: 700; color: #000000; text-align: center; }
.l4-hero__col > .l4-anim { display: flow-root; }
.l4-hero__quote { margin: 0 0 32px; font-size: 1.5rem; font-style: italic; color: #333333; text-align: center; }
.l4-btn__text { display: flex; justify-content: center; }
@media (max-width: 1024px) { .l4-hero__col { width: 100%; } }
@media (max-width: 767px) {
	.l4-hero__title { font-size: 2.33333rem; line-height: 36px; }
	.l4-hero__quote { margin-bottom: 24px; }
}

/* ---------- Intro progetti ---------- */
.l4-intro--progetti { margin: 100px 0 60px; }

/* ---------- Card categorie (zoom dello sfondo e titolo che cresce) ---------- */
.l4-cards { display: flex; flex-wrap: wrap; padding: 5px 5px 0; }
.l4-cards__col { width: 25%; padding: 5px; }
@media (max-width: 767px) { .l4-cards__col { width: 100%; } }
.l4-cta { position: relative; display: block; overflow: hidden; color: #ffffff; transition: .5s; }
.l4-cta__bg-wrap { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.l4-cta__bg, .l4-cta__overlay { position: absolute; inset: 0; transition: all 1.5s; }
.l4-cta__bg { background-position: center; background-size: cover; }
.l4-cta__overlay { z-index: 2; }
.l4-cta__content { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; align-content: center; min-height: 520px; padding: 35px; text-align: center; }
.l4-cta__title { width: 100%; margin: 0; font-size: 2.5rem; line-height: 1.22727; font-weight: 700; color: #ffffff; transition: transform 1s; }
.l4-cta:hover .l4-cta__bg, .l4-cta:focus-visible .l4-cta__bg { transform: scale(1.2); }
.l4-cta:hover .l4-cta__overlay, .l4-cta:focus-visible .l4-cta__overlay { background-color: rgba(0, 0, 0, .3); }
.l4-cta:hover .l4-cta__title, .l4-cta:focus-visible .l4-cta__title { transform: scale(1.1); }

/* ---------- Servizi ---------- */
.l4-services { padding: 5% 0; border-bottom: 1px solid var(--l4-line); }
.l4-services__head { padding-bottom: calc(10px + 4%); }
.l4-services__boxes { display: flex; flex-wrap: wrap; }
.l4-services__box { width: 33.3333%; padding: 30px; text-align: center; }
.l4-services__title { margin: 0 0 12px; font-size: 1.83333rem; line-height: 26px; font-weight: 500; color: #000000; }
.l4-services__text { margin: 0; font-size: 1.33333rem; line-height: 32px; color: #333333; }
.l4-services__foot { padding-top: calc(10px + 1%); }
@media (max-width: 1024px) {
	.l4-services__head { padding-bottom: 26px; }
	.l4-services__foot { padding-top: 10px; padding-bottom: 26px; }
}
@media (min-width: 768px) and (max-width: 1024px) { .l4-services__box { width: 50%; } }
@media (max-width: 767px) {
	.l4-services__head { padding-bottom: 10px; }
	.l4-services__box { width: 100%; }
	.l4-services__title { font-size: 1.5rem; }
	.l4-services__foot { padding-bottom: 10px; }
}

/* ---------- Contatti e social ---------- */
.l4-contact { padding: 5% 0 2%; }
.l4-contact__row { display: flex; flex-wrap: wrap; padding-bottom: 2.5%; }
.l4-contact__col { width: 50%; }
.l4-contact__spaced { margin-top: 2%; }
.l4-social { text-align: center; }
.l4-social__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: #ffffff; color: #4267b2; transition: transform .3s; }
.l4-social__icon svg { width: 60px; height: 60px; }
.l4-social__icon:hover, .l4-social__icon:focus-visible { transform: scale(1.1); opacity: .9; }
@media (max-width: 1024px) { .l4-contact__row { padding-bottom: 16px; } }
@media (max-width: 767px) { .l4-contact__row { padding-bottom: 8px; } .l4-contact__col { width: 100%; } }

/* ---------- Footer ---------- */
.l4-footer { border-top: 1px solid var(--l4-line); animation: l4-fadeIn .3s cubic-bezier(0.4, 0, 0.2, 1) both; }
.l4-footer__space { margin: 0 6.25rem; padding: 6.25rem 0 calc(6.25rem - 5.33333rem); }
.l4-footer__row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.l4-footer__col { width: 100%; padding: 0 15px; }
.l4-footer__widget { margin-bottom: 5.33333rem; }
.l4-footer__widget p { margin: 0; }
.l4-footer a { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0); }
.l4-footer a:hover, .l4-footer a:focus-visible { box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 1px 0 #000000; }
@media (min-width: 576px) { .l4-footer__col { width: 50%; } }
@media (min-width: 768px) { .l4-footer__col { width: 25%; } }
@media (max-width: 575px) { .l4-footer__widget { text-align: center; } }

/* ---------- Torna su ---------- */
.l4-totop {
	position: fixed; right: 2.08333rem; bottom: 2.08333rem; z-index: 9;
	display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem;
	background: #000000; color: #ffffff; opacity: 0; visibility: hidden; transform: translateY(25px);
	transition: transform .15s var(--l4-ease), opacity .15s var(--l4-ease), visibility .15s var(--l4-ease), background-color .15s var(--l4-ease);
}
.l4-totop.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.l4-totop.is-active:hover { transform: translateY(-4px); }

/* ---------- Animazioni d'entrata (come Elementor: fadeInUp 1,25s, lenta 2s) ---------- */
.l4-js .l4-anim { visibility: hidden; }
.l4-js .l4-anim.is-in { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.l4-js .l4-anim--slow.is-in { animation-duration: 2s; }
.l4-anim.is-in[data-anim="fadeInUp"] { animation-name: l4-fadeInUp; }
.l4-anim.is-in[data-anim="fadeIn"] { animation-name: l4-fadeIn; }
@keyframes l4-fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes l4-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.l4-js .l4-anim { visibility: visible; }
	.l4-anim.is-in { animation: none !important; }
	html { scroll-behavior: auto !important; }
}

/* ---------- Pagine generiche (index.php) ---------- */
.l4-page { padding: 60px 10px; }
.l4-entry__title { font-size: 3.83333rem; line-height: 1.2; font-weight: 600; margin-bottom: 30px; }

/* ---------- Fase 7 mobile: bersagli al tocco >= 40px (solo tablet/telefono o schermi touch) ----------
   Area di tocco invisibile con ::after assoluto: non cambia layout ne' aspetto, allarga solo la zona cliccabile. */
@media (max-width: 1024px), (pointer: coarse) {
	.l4-logo, .l4-btn, .l4-mobile-menu a, .l4-filters a, .l4-pitem__title a, .l4-pitem__cats a,
	.l4-bpost__title a, .l4-meta__cats a, .l4-crumbs a, .l4-widget-box__list a, .l4-team__email a,
	.l4-cbox__line, .l4-project__prev, .l4-project__next { position: relative; }
	.l4-logo::after, .l4-btn::after, .l4-mobile-menu a::after, .l4-filters a::after, .l4-pitem__title a::after, .l4-pitem__cats a::after,
	.l4-bpost__title a::after, .l4-meta__cats a::after, .l4-crumbs a::after, .l4-widget-box__list a::after, .l4-team__email a::after,
	.l4-cbox__line::after, .l4-project__prev::after, .l4-project__next::after {
		content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: max(100%, 40px); transform: translateY(-50%);
	}
	/* Pulsanti della lightbox: almeno 44x44 */
	.l4-lightbox button { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
