/* ==========================================================
   Lab4u - pagine interne (studio, progetti, progetto, blog, articolo, contatti, generiche)
   Valori presi dal CSS di Elementor/bifrost dell'originale; scala rem come main.css.
   ========================================================== */

.l4-wrap { width: 100%; max-width: var(--l4-box); margin: 0 auto; padding-left: 10px; padding-right: 10px; }
.l4-text p { margin: 0 0 16px; font-size: 1.25rem; line-height: 26px; color: #000000; }
.l4-mb20 { margin-bottom: 20px !important; }

/* ---------- Testata delle pagine (immagine + titolo) ---------- */
.l4-phero {
	display: flex; align-items: center; min-height: 50vh;
	background-color: #f7f8f9; background-position: center center; background-repeat: no-repeat; background-size: cover;
}
.l4-phero__title { font-size: 4.66667rem; line-height: 66px; font-weight: 600; color: #000000; text-align: left; }
.l4-phero--wide .l4-col { padding-left: 20px; padding-right: 20px; }
@media (max-width: 1024px) { .l4-phero__title { text-align: center; } }
@media (max-width: 767px) { .l4-phero__title { font-size: 2.33333rem; line-height: 28px; } .l4-phero { background-position: 65% 0; } }

/* ---------- Lo studio: sezioni a due colonne ---------- */
.l4-split { padding: 5% 0; border-bottom: 1px solid var(--l4-line); }
.l4-split__row { display: flex; flex-wrap: wrap; }
.l4-split__side { width: 27.018%; }
.l4-split__main { width: 72.979%; }
.l4-split__stack { margin-top: 7px; }
/* colonna esterna + interna di Elementor = 20px; il team ha i blocchi interni con il loro padding */
.l4-split__side.l4-col, .l4-split__main.l4-col { padding: 20px; }
.l4-team .l4-split__main { padding: 10px; }
.l4-split__main.l4-col > * + * { margin-top: 20px; }
@media (max-width: 1024px) {
	.l4-split__side, .l4-split__main { width: 100%; }
	.l4-split__side .l4-split__stack { margin-top: 0; margin-bottom: 8px; }
}
.l4-studio-quote { font-size: 2.08333rem; font-weight: 600; line-height: 1.2; color: #000000; }
.l4-studio-author { margin: 7px 0 0; font-size: 1.25rem; font-style: oblique; line-height: 26px; color: #000000; }
.l4-divider { padding: 6px 0; }
.l4-divider span { display: block; width: 60px; border-top: 2px solid #000000; }
.l4-divider--top { margin-top: 17px; }
@media (max-width: 1024px) { .l4-divider { padding: 0; } }
.l4-studio-intro-title { font-size: 2.08333rem; font-weight: 700; line-height: 44px; color: #000000; }
@media (max-width: 767px) {
	.l4-studio-quote, .l4-team__name { font-size: 2rem; }
	.l4-studio-intro-title { font-size: 2.16667rem; line-height: 31px; }
}

/* Barre di avanzamento: si riempiono quando entrano nello schermo */
.l4-bar { margin-bottom: 18px; }
.l4-bar__label { display: flex; align-items: center; margin-bottom: 13px; font-size: 1.25rem; line-height: 1.66667; font-weight: 500; color: #333333; }
.l4-bar__value { margin-left: auto; font-size: 1.33333rem; }
.l4-bar__track { display: block; height: .5rem; background: #f7f8f9; }
.l4-bar__fill { display: block; height: 100%; width: 0; background: #000000; transition: width .8s cubic-bezier(0.4, 0, 0.2, 1); }
.l4-bar.is-in .l4-bar__fill, .no-l4-js .l4-bar__fill { width: var(--l4-w); }
@media (prefers-reduced-motion: reduce) { .l4-bar__fill { width: var(--l4-w); transition: none; } }

/* Pulsante chiaro (studio) */
.l4-btn--light { padding: 12px 24px; font-size: 15px; color: #000000; background: #ffffff; border-color: #000000; }
.l4-btn--light:hover, .l4-btn--light:focus-visible { color: #ffffff; background: #000000; }

/* Team */
.l4-team__name { font-size: 2.08333rem; font-weight: 600; line-height: 1; color: #000000; }
.l4-team__motto { font-size: 18px; font-weight: 500; font-style: oblique; line-height: 36px; color: rgba(0, 0, 0, .16); }
.l4-team__photo { margin-top: 20px; text-align: center; }
.l4-team__photo img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.l4-team__block { margin-bottom: 32px; }
.l4-team__quote { margin-bottom: 20px; font-size: 1.58333rem; font-weight: 600; line-height: 36px; color: #000000; }
.l4-team__social { display: flex; align-items: flex-start; flex-wrap: wrap; }
.l4-team__in { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #000000; color: #ffffff; transition: opacity .3s; }
.l4-team__in:hover, .l4-team__in:focus-visible { opacity: .9; }
.l4-team__email { margin: -3px 0 16px 15px; font-size: 1.25rem; }
.l4-team__email a { display: inline-block; margin-top: 12px; }
@media (max-width: 1024px) { .l4-team__block { margin-bottom: 16px; } }

/* ---------- Progetti: filtro e griglia ---------- */
.l4-projects { margin: 110px 0; }
.l4-filters ul { list-style: none; margin: 0 0 2.66667rem; padding: 0; }
.l4-filters li { display: inline-block; margin: 0 0 0 4.16667rem; font-size: 1.25rem; line-height: 1.66667; }
.l4-filters li:first-child { margin-left: 0; }
.l4-filters a { color: #000000; cursor: pointer; }
.l4-filters .is-active a, .l4-filters a:hover { box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 1px 0 #000000; }
.l4-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 991px) { .l4-pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .l4-pgrid { grid-template-columns: 1fr; } .l4-filters li { margin-left: 1.66667rem; } }
.l4-pitem { text-align: center; transition: opacity .4s; }
.l4-pitem.is-hidden { display: none; }
.l4-pitem__media, .l4-bpost__media { position: relative; display: block; overflow: hidden; }
.l4-pitem__media img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 500; object-fit: cover; transition: transform .3s var(--l4-ease); }
.l4-pitem__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background-color .6s var(--l4-ease); }
/* hover come o-neuron-hover--scale dell'originale: immagine 1.1 in 0,3 s, velo trasparente */
.l4-pitem__media:hover img, .l4-bpost__media:hover img, .l4-pitem__media:focus-visible img { transform: scale(1.1); }

.l4-pitem__title { margin: 22px 0 0; font-size: 2.08333rem; font-weight: 700; line-height: 1.4; }
.l4-pitem__title a { color: #000000; }
.l4-pitem__cats { list-style: none; margin: 0; padding: 0; }
.l4-pitem__cats li { display: inline; font-size: 1.25rem; font-style: italic; line-height: 2.13333; color: #1a1a1a; }
.l4-pitem__cats a { color: #1a1a1a; line-height: 2.13333; }

/* Entrata morbida (come h-fadeInUpNeuron: 40px) */
.l4-anim.is-in[data-anim="fadeInUpSmall"] { animation-name: l4-fadeInUpSmall; }
@keyframes l4-fadeInUpSmall { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Progetto singolo ---------- */
.l4-project { padding-top: 5.25rem; padding-bottom: 5.33333rem; }
.l4-project__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.l4-project__gallery { width: 48.872%; }
.l4-project__info { width: 46.917%; align-self: stretch; }
.l4-project__sticky { position: sticky; top: 100px; }
.l4-project__img { display: block; margin-bottom: 2.5rem; cursor: zoom-in; }
.l4-project__img img { display: block; width: 100%; height: auto; }
.l4-project__title { margin: 0 0 12px; font-size: 3rem; font-weight: 600; line-height: 1.27778; color: #000000; }
.l4-project__sub { margin: 0 0 26px; font-size: 1.25rem; font-weight: 400; font-style: italic; line-height: 1.526; color: #333333; }
.l4-project__text p { margin: 0 0 16px; }
.l4-project__facts { list-style: none; margin: 22px 0 0; padding: 0; }
.l4-project__facts li { margin-bottom: 16px; }
.l4-project__facts h5 { margin: 0 0 8px; font-size: 1.58333rem; font-weight: 700; line-height: 1.526; }
.l4-project__facts p { margin: 0; }
.l4-project__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--l4-line); }
.l4-project__nav a:hover { box-shadow: 0 1px 0 #000000; }
.l4-project__next { margin-left: auto; text-align: right; }
@media (max-width: 767px) {
	.l4-project__gallery, .l4-project__info { width: 100%; }
	.l4-project__info { order: -1; margin-bottom: 40px; }
	.l4-project__sticky { position: static; }
}

/* Lightbox della galleria */
.l4-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(11, 11, 11, .85); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.l4-lightbox.is-open { opacity: 1; visibility: visible; }
.l4-lightbox img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.l4-lightbox button { position: absolute; padding: 10px; border: 0; background: none; color: #ffffff; cursor: pointer; opacity: .75; }
.l4-lightbox button:hover, .l4-lightbox button:focus-visible { opacity: 1; }
.l4-lightbox__close { top: 10px; right: 10px; }
.l4-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.l4-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.l4-lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #cccccc; font-size: 1.16667rem; }

/* ---------- Blog, archivi e articolo ---------- */
.l4-blog { padding-top: 5.33333rem; padding-bottom: 5.33333rem; }
.l4-blog__row { display: flex; flex-wrap: wrap; align-items: flex-start; }
.l4-blog__main { width: 74.436%; }
.l4-sidebar { width: 21.353%; margin-left: auto; align-self: stretch; }
.l4-sidebar__inner { position: sticky; top: 100px; }
@media (max-width: 991px) { .l4-blog__main, .l4-sidebar { width: 100%; } .l4-sidebar { margin-top: 5.33333rem; } .l4-sidebar__inner { position: static; } }
.l4-bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
@media (max-width: 575px) { .l4-bgrid { grid-template-columns: 1fr; } }
.l4-bpost__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s var(--l4-ease); }
.l4-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 34px; font-size: 1.25rem; line-height: 2.13333; color: #333333; }
.l4-meta__cats { display: flex; list-style: none; margin: 0; padding: 0; }
.l4-meta__cats li::before { content: "/"; margin: 0 .75em; }
.l4-meta__cats a { color: #333333; }
.l4-bpost__title { margin: 16px 0; font-size: 2.08333rem; font-weight: 700; line-height: 1.4; }
.l4-bpost__title a { color: #000000; }
.l4-bpost__excerpt { margin: 0 0 34px; font-size: 1.25rem; line-height: 1.66667; }
.l4-widget-box { margin-bottom: 5.33333rem; }
.l4-widget-box:last-child { margin-bottom: 0; }
.l4-sidebar__logo { display: block; max-width: 100%; height: auto; }
.l4-widget-box__title { margin: 0 0 32px; font-size: 1.58333rem; font-weight: 700; line-height: 1.526; }
.l4-widget-box p { margin: 0; font-size: 1.25rem; line-height: 1.66667; color: #333333; }
.l4-widget-box__list { margin: 0; padding-left: 12px; }
.l4-widget-box__list li { font-size: 1.16667rem; line-height: 1.66667; color: #000000; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 16px; font-size: 1.25rem; }
.nav-links .current { box-shadow: 0 1px 0 #000000; }

.l4-shero { display: flex; align-items: center; height: 25vh; min-height: 180px; }
.l4-shero__inner { width: 100%; }
.l4-shero__title { margin: 0 0 9px; font-size: 5.25rem; font-weight: 700; line-height: 1; color: #000000; }
@media (max-width: 767px) { .l4-shero__title { font-size: 3rem; } }
.l4-crumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 1.25rem; font-style: italic; line-height: 1.66667; color: #333333; }
.l4-crumbs li { margin-right: 4px; }
.l4-crumbs__sep { padding: 0 4px; }
.l4-crumbs a { color: #333333; }
.l4-single { padding-top: 2.66667rem; padding-bottom: 10.66667rem; }
.l4-article__thumb img { display: block; width: 100%; height: auto; }
.l4-article__thumb + .l4-meta { margin-top: 32px; }
.l4-article__content { margin-top: 16px; }
.l4-article__content p { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.66667; }
.l4-article__content h2, .l4-article__content h3, .l4-article__content h4 { margin: 0 0 32px; font-size: 2.08333rem; font-weight: 700; line-height: 1.4; }
.l4-article__content img { display: block; max-width: 100%; width: 100%; height: auto; }
.l4-404 p { font-size: 1.25rem; }

/* ---------- Contatti ---------- */
.l4-cbox { padding: 4% 0; border-bottom: 1px solid var(--l4-line); }
.l4-cbox--form { padding-bottom: 3.8%; }
.l4-cbox__row { display: flex; flex-wrap: wrap; }
.l4-cbox__col { width: 33.3333%; padding: 20px; }
.l4-cbox__col--half { width: 50%; }
.l4-cbox__title { margin: 0 0 16px; font-size: 2.08333rem; font-weight: 600; line-height: 1.4; color: #000000; }
.l4-cbox__text { margin: 0; font-size: 1.25rem; line-height: 1.66667; color: #000000; }
.l4-cbox__line { display: inline-block; margin-top: 12px; }
.l4-cbox--form .l4-cbox__col:first-child > * + * { margin-top: 40px; }
.l4-cbox--form .l4-cbox__col:last-child > * + * { margin-top: 20px; }
@media (max-width: 1024px) { .l4-cbox__col--half { width: 100%; } }
@media (max-width: 767px) { .l4-cbox__col { width: 100%; text-align: center; } }
@media (max-width: 767px) { .l4-cbox__col--half { width: 100%; } }
.l4-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(1); }

/* Form CF7 (markup del form: row / col-sm-6 / col-12) */
.l4-form .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.l4-form .col-sm-6 { width: 50%; padding: 0 15px; }
.l4-form .col-12 { width: 100%; padding: 0 15px; }
.l4-form .h-medium-bottom-padding { padding-bottom: 4rem; }
@media (max-width: 575px) { .l4-form .col-sm-6 { width: 100%; } }
.l4-form p { margin: 0; }
.l4-form .col-12:last-child p { margin-bottom: 32px; }
.l4-form input[type="text"], .l4-form input[type="email"], .l4-form input[type="tel"], .l4-form textarea {
	width: 100%; padding: 8px 12px 8px 4px; border: 0; border-bottom: 1px solid #333333; border-radius: 0;
	background: transparent; color: #333333; font: inherit; font-size: 1.25rem; line-height: 1.66667; transition: border-color .15s var(--l4-ease);
}
.l4-form textarea { height: 150px; resize: vertical; }
.l4-form input:focus, .l4-form textarea:focus { outline: none; border-bottom-color: #000000; }
.l4-form input[type="submit"] {
	width: 100%; height: 50px; padding: 16px 50px; border: 1px solid #000000; border-radius: 0; background: transparent;
	color: #000000; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: all .3s;
}
.l4-form input[type="submit"]:hover, .l4-form input[type="submit"]:focus-visible { background: #000000; color: #ffffff; }
.l4-form .wpcf7-spinner { position: absolute; }

/* Banner team */
.l4-cteam { padding: 4% 0; }
.l4-cteam__row { display: flex; flex-wrap: wrap; }
.l4-cteam__main { width: 64%; padding: 20px; }
.l4-cteam__side { width: 36%; padding: 36px 10px 20px 20px; text-align: right; }
.l4-cteam__title { font-size: 3.33333rem; font-weight: 600; line-height: 1; color: #000000; }
.l4-cteam__main > * + * { margin-top: 20px; }
.l4-cteam__text { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.66667; }
@media (max-width: 1024px) { .l4-cteam__main, .l4-cteam__side { width: 100%; text-align: center; } .l4-cteam__side { padding-top: 0; } }
@media (max-width: 767px) { .l4-cteam__title { font-size: 2rem; } }

/* Mobile: dopo le regole base */
@media (max-width: 767px) { .l4-studio-quote, .l4-team__name { font-size: 2rem; } .l4-team__name { line-height: 1; } }
@media (max-width: 991px) { .l4-wrap { padding-left: 15px; padding-right: 15px; } }
@media (max-width: 767px) { .l4-widget-box { margin-bottom: 2.66667rem; } .l4-filters ul { text-align: center; } }
@media (max-width: 1024px) { .l4-projects { margin: 16px 0; } }
/* Studio: nell'originale il secondo paragrafo di presentazione e bio e' a 15px (span inline) */
.l4-text--rich p:nth-child(2) { font-size: 15px; }
/* Contatti mobile come Elementor: sezione form 8%, mappe alte 400, banner team 32px */
@media (max-width: 767px) { .l4-cbox--form { padding: 8% 0; } .l4-map iframe { height: 400px; } .l4-cteam { padding: 32px 0; } .l4-cteam__main, .l4-cteam__side { padding-left: 10px; padding-right: 10px; } }
/* Form CF7 nuovo (etichette, quiz, privacy): etichette sopra i campi */
.l4-form label { display: block; }
.l4-form .wpcf7-acceptance label, .l4-form .wpcf7-list-item label { display: inline; }

/* Campi del form a 16px su telefono e tablet: evita lo zoom automatico di iOS al tocco e porta i campi a ~43px */
@media (max-width: 1024px) {
	.l4-form input[type="text"], .l4-form input[type="email"], .l4-form input[type="tel"], .l4-form textarea { font-size: 16px; }
}
