/*
Theme Name: La Matita
Theme URI: https://www.lamatita.ch
Author: La Matita di John Carminati
Description: Tema su misura per La Matita, studio pubblicitario a Soazza. Aperture a tutto schermo, gallerie a scorrimento, schede dei servizi.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lamatita
*/

:root {
	--lm-black: #0F1216;
	--lm-black-2: #16191E;
	--lm-black-3: #1E232B;
	--lm-line-dark: #2A3039;
	--lm-blue: #366CB9;
	--lm-blue-dark: #2A5592;
	--lm-blue-light: #A9C2EE;
	--lm-grey-bg: #F1F3F6;
	--lm-grey-line: #E2E5EA;
	--lm-text-2: #2B313B;
	--lm-text-3: #3A414D;
	--lm-text-4: #5A6270;
	--lm-on-dark: #C9CED6;
	--lm-radius: 4px;
	--lm-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--lm-font); font-size: 17px; line-height: 1.6; color: var(--lm-black); background: #FFFFFF; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lm-blue); }
a:hover { color: var(--lm-blue-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lm-blue-light); outline-offset: 3px; }

.lm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.lm-sr, .lm-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lm-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFF; color: var(--lm-black); padding: 10px 16px; }
.lm-skip:focus { left: 8px; }

.lm-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--lm-blue); }
.lm-dark .lm-eyebrow, .lm-hero .lm-eyebrow, .lm-pagehero .lm-eyebrow { color: var(--lm-blue-light); }
.lm-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--lm-blue); }
.lm-dark .lm-kicker { color: var(--lm-blue-light); }
.lm-num { font-size: 15px; font-weight: 800; color: var(--lm-blue); }
.lm-dark .lm-num { color: var(--lm-blue-light); }
.lm-h1 { font-weight: 800; font-size: clamp(48px, 7vw, 104px); line-height: .98; letter-spacing: -.03em; }
.lm-h2 { font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.lm-h2--xl { font-size: clamp(44px, 5.4vw, 80px); line-height: 1; letter-spacing: -.03em; }
.lm-h3 { font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }
.lm-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; color: var(--lm-text-2); }
.lm-dark .lm-lead { color: #FFFFFF; }
.lm-muted { color: var(--lm-text-3); }
.lm-dark .lm-muted { color: var(--lm-on-dark); }
.lm-price { font-size: 36px; font-weight: 800; line-height: 1.1; }
.lm-price small { font-size: 18px; font-weight: 600; color: var(--lm-text-3); }
.lm-dark .lm-price small { color: var(--lm-on-dark); }
.lm-badge { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--lm-grey-bg); color: var(--lm-black); }
.lm-badge--blue { background: var(--lm-blue); color: #FFFFFF; }
.lm-badge--white { background: #FFFFFF; color: var(--lm-black); }
.lm-badge--dark { background: var(--lm-line-dark); color: #FFFFFF; }

.lm-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; padding: 15px 26px; border-radius: var(--lm-radius); background: var(--lm-black); color: #FFFFFF; transition: background .2s ease, color .2s ease, transform .2s ease; }
.lm-btn:hover { background: #2B313B; color: #FFFFFF; }
.lm-btn--light { background: #FFFFFF; color: var(--lm-black); }
.lm-btn--light:hover { background: var(--lm-grey-bg); color: var(--lm-black); }
.lm-btn--blue { background: var(--lm-blue); color: #FFFFFF; }
.lm-btn--blue:hover { background: var(--lm-blue-dark); color: #FFFFFF; }
.lm-btn--outline { background: transparent; color: var(--lm-black); border: 1.5px solid var(--lm-black); }
.lm-btn--outline:hover { background: var(--lm-black); color: #FFFFFF; }
.lm-btn--pill { white-space: nowrap; border-radius: 999px; background: #FFFFFF; color: var(--lm-black); font-weight: 800; font-size: 17px; padding: 16px 30px; }
.lm-btn--pill:hover { background: var(--lm-grey-bg); color: var(--lm-black); }
.lm-link { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; align-self: flex-start; }
.lm-link:hover { color: inherit; opacity: .8; }
.lm-btnrow { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

.lm-ph { width: 100%; height: 100%; min-height: 100%; display: flex; align-items: flex-end; padding: 20px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px), linear-gradient(160deg, #2A3039, #1E232B); color: #AEB5C1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.lm-ph span::before { content: ""; display: inline-block; width: 16px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1.5px solid currentColor; border-radius: 2px; }

.lm-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.lm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; transition: padding .3s ease; }
.lm-header.is-scrolled, .lm-solid-header .lm-header { background: rgba(15, 18, 22, .96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.lm-header.is-scrolled .lm-header__inner { padding-top: 14px; padding-bottom: 14px; }
.lm-logo img { height: 34px; width: auto; }
.admin-bar .lm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .lm-header { position: absolute; } }
.lm-nav .lm-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; font-weight: 600; }
.lm-nav .lm-menu a { color: #FFFFFF; text-decoration: none; padding: 6px 0; }
.lm-nav .lm-menu a:hover, .lm-nav .current-menu-item > a, .lm-nav .current_page_item > a { color: var(--lm-blue-light); }
.lm-nav .menu-cta > a { border: 1.5px solid #FFFFFF; padding: 11px 22px; border-radius: var(--lm-radius); }
.lm-nav .menu-cta > a:hover { background: #FFFFFF; color: var(--lm-black); }
.lm-burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.lm-burger span:not(.lm-sr) { display: block; height: 2px; background: #FFFFFF; transition: transform .3s ease, opacity .3s ease; }
.lm-solid-header main { padding-top: 92px; }

@media (max-width: 1080px) {
	.lm-burger { display: flex; }
	.lm-nav { position: fixed; inset: 0; z-index: -1; background: var(--lm-black); padding: 110px 32px 40px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; overflow-y: auto; }
	.lm-menu-open .lm-nav { opacity: 1; visibility: visible; }
	.lm-nav .lm-menu { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 26px; font-weight: 800; }
	.lm-nav .menu-cta { margin-top: 18px; }
	.lm-nav .menu-cta > a { font-size: 18px; }
	.lm-menu-open { overflow: hidden; }
	.lm-menu-open .lm-burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
	.lm-menu-open .lm-burger span:nth-child(2) { opacity: 0; }
	.lm-menu-open .lm-burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

@keyframes lmzoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes lmscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lm-zoom { animation: lmzoom 18s ease-in-out infinite alternate; }

.lm-hero { position: relative; height: 100vh; min-height: 640px; max-height: 980px; overflow: hidden; background: var(--lm-black); color: #FFFFFF; }
.lm-hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2.4s ease; }
.lm-hero__slide.is-active { opacity: 1; }
.lm-hero__slide > img, .lm-hero__slide > .lm-ph { width: 100%; height: 100%; object-fit: cover; }
.lm-hero__slide.is-active > img { animation: lmzoom 18s ease-in-out infinite alternate; }
.lm-hero__slide > .lm-ph { align-items: flex-start; padding: 120px 32px 0; justify-content: flex-end; text-align: right; }
.lm-overlay { position: absolute; inset: 0; background: rgba(10, 12, 16, .46); pointer-events: none; }
.lm-hero__content { position: absolute; left: 0; right: 0; bottom: 0; }
.lm-hero__content .lm-wrap { padding-bottom: 88px; display: flex; flex-direction: column; gap: 14px; }
.lm-hero__lines { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lm-hero__lines li { font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; opacity: 0; transform: translateY(12px); transition: opacity 1.6s ease, transform 1.6s ease; }
.lm-hero__lines li::before { content: "— "; }
.lm-hero__lines li.is-past { opacity: .45; transform: none; }
.lm-hero__lines li.is-active { opacity: 1; transform: none; }
.lm-hero__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.lm-hero__dots { display: flex; gap: 6px; }
.lm-hero__dots button { width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer; background: transparent; box-shadow: inset 0 -20px 0 -18px rgba(255,255,255,.4); }
.lm-hero__dots button.is-active { box-shadow: inset 0 -20px 0 -18px #FFFFFF; }
.lm-hero__caption { font-size: 14px; color: var(--lm-on-dark); flex: 1 1 200px; text-align: right; }

.lm-pagehero { position: relative; height: 72vh; min-height: 520px; max-height: 760px; overflow: hidden; background: var(--lm-black); color: #FFFFFF; }
.lm-pagehero--short { height: 56vh; min-height: 460px; max-height: 600px; }
.lm-pagehero__media { position: absolute; inset: 0; }
.lm-pagehero__media > img, .lm-pagehero__media > .lm-ph { width: 100%; height: 100%; object-fit: cover; }
.lm-pagehero__media > .lm-ph { align-items: flex-start; justify-content: flex-end; padding: 120px 32px 0; text-align: right; }
.lm-pagehero__media > img { animation: lmzoom 14s ease-in-out infinite alternate; }
.lm-pagehero .lm-overlay { background: rgba(10, 12, 16, .5); }
.lm-pagehero__content { position: absolute; left: 0; right: 0; bottom: 0; }
.lm-pagehero__content .lm-wrap { padding-bottom: 80px; display: flex; flex-direction: column; gap: 14px; }
.lm-pagehero__sub { font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); }

.lm-plainhead { background: var(--lm-black); color: #FFFFFF; padding: 80px 0 60px; }
.lm-plainhead h1 { font-weight: 800; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.02em; }
.lm-prose { padding-top: 64px; padding-bottom: 100px; max-width: 900px; }
.lm-prose p { margin: 0 0 1em; }

.lm-sec { padding: 120px 0; }
.lm-sec--tight { padding: 80px 0; }
.lm-sec--top0 { padding-top: 0; }
.lm-sec--bottom0 { padding-bottom: 0; }
.lm-dark { background: var(--lm-black-2); color: #FFFFFF; }
.lm-black { background: var(--lm-black); color: #FFFFFF; }
.lm-blue { background: var(--lm-blue); color: #FFFFFF; }
.lm-blue .lm-eyebrow, .lm-blue .lm-kicker { color: #FFFFFF; }
.lm-grey { background: var(--lm-grey-bg); }
.lm-stack { display: flex; flex-direction: column; gap: 18px; }
.lm-stack--sm { gap: 8px; }
.lm-stack--lg { gap: 28px; }
.lm-center { text-align: center; align-items: center; }
.lm-narrow { max-width: 980px; margin: 0 auto; }
.lm-intro { padding: 80px 0 40px; }
.lm-intro p:first-child { font-weight: 800; font-size: 20px; }
.lm-intro p + p { font-size: 18px; color: var(--lm-text-3); max-width: 900px; }
.lm-headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.lm-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.lm-split > * { flex: 1 1 420px; min-width: 0; }
.lm-split--rev { flex-wrap: wrap-reverse; }
.lm-media { border-radius: var(--lm-radius); overflow: hidden; background: var(--lm-black-3); }
.lm-media > img, .lm-media > .lm-ph { width: 100%; height: 100%; object-fit: cover; }
.lm-r43 { aspect-ratio: 4 / 3; }
.lm-r34 { aspect-ratio: 3 / 4; }
.lm-r45 { aspect-ratio: 4 / 5; }
.lm-r32 { aspect-ratio: 3 / 2; }
.lm-r169 { aspect-ratio: 16 / 9; }
.lm-r1610 { aspect-ratio: 16 / 10; }
.lm-portrait { max-width: 500px; }

.lm-icons { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--lm-grey-line); }
@media (max-width: 1240px) { .lm-icons { grid-template-columns: repeat(4, 1fr); } .lm-icons a:nth-child(4n) { border-right: 0; } .lm-icons a { border-bottom: 1px solid var(--lm-grey-line); } }
@media (max-width: 640px) { .lm-icons { grid-template-columns: 1fr 1fr; } .lm-icons a:nth-child(4n) { border-right: 1px solid var(--lm-grey-line); } .lm-icons a:nth-child(2n) { border-right: 0; } }
.lm-icons a { text-decoration: none; color: var(--lm-black); padding: 44px 18px; border-right: 1px solid var(--lm-grey-line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; transition: background .3s ease; }
.lm-icons a:last-child { border-right: 0; }
.lm-icons a:hover { background: var(--lm-grey-bg); color: var(--lm-black); }
.lm-icons h3 { font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.lm-icons p { font-size: 15px; color: var(--lm-text-3); line-height: 1.55; }

.lm-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.lm-trio > div { position: relative; min-height: 520px; padding: 72px 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; overflow: hidden; }
.lm-trio__bg { position: absolute; inset: 0; }
.lm-trio__bg > img, .lm-trio__bg > .lm-ph { width: 100%; height: 100%; object-fit: cover; }
.lm-trio__bg::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, .5); }
.lm-trio__bg ~ * { position: relative; }
.lm-trio p { color: var(--lm-on-dark); }
.lm-trio .lm-blue p, .lm-trio > .lm-blue p { color: #FFFFFF; }

.lm-rail { display: flex; flex-direction: column; gap: 28px; }
.lm-rail__nav { display: flex; align-items: center; gap: 10px; }
.lm-rail__nav a { color: inherit; text-decoration: none; font-weight: 700; margin-right: 10px; }
.lm-arrow { width: 48px; height: 48px; border-radius: 999px; border: 0; background: #E9ECF0; color: var(--lm-black); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.lm-arrow:hover { background: #D8DCE2; }
.lm-dark .lm-arrow, .lm-black .lm-arrow { background: var(--lm-line-dark); color: #FFFFFF; }
.lm-dark .lm-arrow:hover, .lm-black .lm-arrow:hover { background: #3A414D; }
.lm-rail__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.lm-rail__track::-webkit-scrollbar { display: none; }
.lm-card { flex: 0 0 min(440px, 84%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.lm-rail--sm .lm-card { flex-basis: min(400px, 84%); }
.lm-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--lm-radius); background: var(--lm-black-3); }
.lm-card__media > img, .lm-card__media > .lm-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.lm-card:hover .lm-card__media > img, .lm-card:hover .lm-card__media > .lm-ph { transform: scale(1.06); }
.lm-card__title { font-weight: 800; font-size: 18px; line-height: 1.3; }
.lm-card__sub { font-size: 15px; color: var(--lm-text-4); }
.lm-dark .lm-card__sub, .lm-black .lm-card__sub { color: var(--lm-on-dark); }
.lm-card__cat { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lm-blue); }

.lm-tabs { display: flex; flex-direction: column; gap: 40px; }
.lm-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: var(--lm-grey-bg); border-radius: 999px; align-self: center; }
.lm-tabs__btn { font-size: 15px; font-weight: 700; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; cursor: pointer; background: transparent; color: var(--lm-black); }
.lm-tabs__btn[aria-selected="true"] { background: var(--lm-black); color: #FFFFFF; }
.lm-tabs__panel { border-top: 1px solid var(--lm-grey-line); padding-top: 56px; }
.lm-tabs__panel[hidden] { display: none; }

.lm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.lm-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 440px; padding: 44px; border-radius: var(--lm-radius); overflow: hidden; background: var(--lm-black); color: #FFFFFF; text-decoration: none; }
.lm-tile:hover { color: #FFFFFF; }
.lm-tile__bg { position: absolute; inset: 0; opacity: .5; }
.lm-tile__bg > img, .lm-tile__bg > .lm-ph { width: 100%; height: 100%; object-fit: cover; }
.lm-tile > *:not(.lm-tile__bg) { position: relative; }
.lm-tile--blue { background: var(--lm-blue); }
.lm-tile__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--lm-blue-light); }
.lm-tile--blue .lm-tile__eyebrow { color: #FFFFFF; }
.lm-tile__title { font-size: clamp(30px, 3vw, 44px); font-weight: 800; line-height: 1.05; }
.lm-tile__go { font-weight: 700; }
.lm-tile__icon { margin-bottom: auto; }

.lm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--lm-grey-line); border: 1px solid var(--lm-grey-line); }
.lm-steps > div { background: #FFFFFF; padding: 44px 36px; display: flex; flex-direction: column; gap: 12px; }
.lm-steps h2, .lm-steps h3 { font-size: 26px; font-weight: 800; }
.lm-steps p { color: var(--lm-text-3); }
.lm-workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.lm-workflow article { display: flex; flex-direction: column; gap: 18px; }
.lm-workflow h3 { font-size: 26px; font-weight: 800; line-height: 1.15; }

.lm-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.lm-offer { display: flex; flex-direction: column; border-radius: var(--lm-radius); overflow: hidden; background: var(--lm-grey-bg); }
.lm-offer.lm-dark { background: var(--lm-black-2); }
.lm-offer__body { padding: 40px; display: flex; flex-direction: column; gap: 14px; }

.lm-video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--lm-radius); overflow: hidden; background: var(--lm-black-2); color: #FFFFFF; text-decoration: none; }
.lm-video:hover { color: #FFFFFF; }
.lm-video__bg { position: absolute; inset: 0; opacity: .45; }
.lm-video__bg > img, .lm-video__bg > .lm-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.lm-video:hover .lm-video__bg > * { transform: scale(1.05); }
.lm-video__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; font-size: 22px; font-weight: 800; text-align: center; padding: 20px; }
@keyframes lmpulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.lm-play { width: 96px; height: 96px; border-radius: 999px; background: #FFFFFF; color: var(--lm-black); display: flex; align-items: center; justify-content: center; animation: lmpulse 2.4s ease-out infinite; }
.lm-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-pills a { color: var(--lm-black); background: #FFFFFF; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.lm-pills a:hover { background: var(--lm-grey-bg); color: var(--lm-black); }
.lm-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; font-size: 18px; color: var(--lm-text-2); }

.lm-subnav { position: sticky; top: 76px; z-index: 5; background: #FFFFFF; border-bottom: 1px solid var(--lm-grey-line); }
.admin-bar .lm-subnav { top: 108px; }
.lm-subnav .lm-wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-top: 14px; padding-bottom: 14px; font-size: 15px; font-weight: 700; }
.lm-subnav a { color: var(--lm-black); text-decoration: none; padding: 8px 0; }
.lm-subnav a:hover { color: var(--lm-blue); }
.lm-service { scroll-margin-top: 140px; }
.lm-service__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; padding-bottom: 48px; }
.lm-service__head > div:first-child { flex: 1 1 520px; min-width: 0; }
.lm-service__head > div:last-child { flex: 1 1 380px; min-width: 0; }
.lm-service__head h2 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.lm-service__head p.lm-kicker { opacity: .85; }
.lm-service__head p.lm-text { font-size: 20px; line-height: 1.5; }

.lm-filter { display: flex; flex-direction: column; gap: 40px; }
.lm-filter__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-filter__btns button { font-size: 15px; font-weight: 700; padding: 11px 20px; border-radius: var(--lm-radius); cursor: pointer; min-height: 44px; background: #FFFFFF; color: var(--lm-black); border: 1.5px solid #C5CBD5; }
.lm-filter__btns button[aria-pressed="true"] { background: var(--lm-black); color: #FFFFFF; border-color: var(--lm-black); }
.lm-count { opacity: .6; font-weight: 600; margin-left: 6px; }
.lm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 36px 24px; }
.lm-grid .lm-card { flex: none; }
.lm-grid [hidden] { display: none; }

.lm-ribbon { padding: 40px 0 56px; overflow: hidden; }
.lm-ribbon__track { display: flex; gap: 56px; width: max-content; animation: lmscroll 45s linear infinite; }
.lm-ribbon__track span { font-size: 44px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: #C5CBD5; }
.lm-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--lm-grey-line); border: 1px solid var(--lm-grey-line); }
.lm-clients > div { background: #FFFFFF; padding: 40px 32px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background .3s ease, color .3s ease; }
.lm-clients > div:hover { background: var(--lm-black); color: #FFFFFF; }
.lm-clients strong { font-size: 23px; font-weight: 800; line-height: 1.2; }
.lm-clients span { font-size: 14px; opacity: .7; }

.lm-contact { display: flex; flex-wrap: wrap; gap: 64px; }
.lm-contact > :first-child { flex: 1 1 340px; min-width: 0; }
.lm-contact > :last-child { flex: 1 1 560px; min-width: 0; }
.lm-info { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.lm-info > div { display: flex; gap: 14px; align-items: flex-start; }
.lm-info svg { flex: none; margin-top: 2px; }
.lm-info a { color: var(--lm-black); text-decoration: none; }
.lm-info a[href^="mailto"] { color: var(--lm-blue); text-decoration: underline; }
.lm-map { aspect-ratio: 4 / 3; border-radius: var(--lm-radius); overflow: hidden; background: var(--lm-grey-bg); }
.lm-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.lm-form { background: var(--lm-grey-bg); padding: 48px; border-radius: var(--lm-radius); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 20px; align-content: start; scroll-margin-top: 120px; }
.lm-form h2 { grid-column: 1 / -1; font-size: 30px; font-weight: 800; }
.lm-form > p { grid-column: 1 / -1; color: var(--lm-text-3); }
.lm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.lm-form__full { grid-column: 1 / -1; }
.lm-form input, .lm-form select, .lm-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 13px 15px; border: 1px solid #C5CBD5; border-radius: var(--lm-radius); background: #FFFFFF; color: var(--lm-black); width: 100%; }
.lm-form textarea { resize: vertical; }
.lm-form button { grid-column: 1 / -1; justify-self: start; padding: 16px 38px; }
.lm-form--dark { background: var(--lm-black-2); color: #FFFFFF; }
.lm-form--dark > p { color: var(--lm-on-dark); }
.lm-form--dark input, .lm-form--dark select, .lm-form--dark textarea { border-color: #3A414D; }
.lm-form__ok { background: #E6F2EA; color: #1C5A33 !important; padding: 12px 16px; border-radius: var(--lm-radius); }
.lm-form__err { background: #FBEAEA; color: #8A1F1F !important; padding: 12px 16px; border-radius: var(--lm-radius); }

.lm-cta .lm-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 90px; padding-bottom: 90px; }
.lm-cta h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; line-height: 1.05; max-width: 760px; }

.lm-footer { background: var(--lm-black); color: var(--lm-on-dark); font-size: 15px; }
.lm-footer a { color: var(--lm-on-dark); text-decoration: none; }
.lm-footer a:hover { color: #FFFFFF; }
.lm-footer__grid { padding-top: 88px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.lm-footer__brand { display: flex; flex-direction: column; gap: 22px; }
.lm-footer__brand img { width: 240px; }
.lm-footer__social { color: #FFFFFF !important; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.lm-footer__title { display: block; color: #FFFFFF; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.lm-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lm-footer .menu-cta { display: none; }
.lm-footer .lm-btn--pill { color: var(--lm-black); }
.lm-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.lm-footer__contact .lm-footer__title { margin-bottom: 6px; }
.lm-footer__bottom { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--lm-line-dark); font-size: 14px; }

@media (max-width: 700px) {
	.lm-wrap { padding: 0 20px; }
	.lm-sec { padding: 80px 0; }
	.lm-hero__content .lm-wrap { padding-bottom: 56px; }
	.lm-pagehero__content .lm-wrap { padding-bottom: 56px; }
	.lm-trio > div { padding: 56px 28px; min-height: 440px; }
	.lm-form, .lm-offer__body { padding: 28px; }
	.lm-tile { padding: 32px; min-height: 380px; }
	.lm-hero__caption { text-align: left; }
	.lm-icons a { border-right: 0; border-bottom: 1px solid var(--lm-grey-line); }
	.lm-subnav { top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lm-zoom, .lm-hero__slide.is-active > img, .lm-pagehero__media > img, .lm-ribbon__track, .lm-play { animation: none !important; }
	.lm-hero__slide, .lm-hero__lines li, .lm-card__media > * { transition: none !important; }
}


/* =========================================================
   Revisione 17.11.2026 (correzioni di John sulla stampa)
   ========================================================= */

/* Header chiaro con il logo originale azzurro */
.lm-header { position: sticky; background: rgba(255, 255, 255, .98); box-shadow: 0 1px 0 var(--lm-grey-line); }
.lm-header.is-scrolled, .lm-solid-header .lm-header { background: rgba(255, 255, 255, .98); box-shadow: 0 1px 0 var(--lm-grey-line), 0 8px 24px rgba(15, 18, 22, .06); }
.lm-solid-header main { padding-top: 0; }
.lm-logo img { height: 36px; }
.lm-nav .lm-menu a { color: var(--lm-black); }
.lm-nav .lm-menu a:hover, .lm-nav .current-menu-item > a, .lm-nav .current_page_item > a { color: var(--lm-blue); }
.lm-nav .menu-cta > a { border-color: var(--lm-black); }
.lm-nav .menu-cta > a:hover { background: var(--lm-black); color: #FFFFFF; }
.lm-burger span:not(.lm-sr) { background: var(--lm-black); }
@media (max-width: 1080px) { .lm-nav { background: #FFFFFF; } }
@media (max-width: 600px) { .admin-bar .lm-header { position: sticky; top: 0; } }

/* Apertura: fondo chiaro, foto in bianco e nero e trasparenti,
   entrano da destra, restano 1 secondo e si dissolvono */
.lm-hero { --lm-hero-foto: .42; height: calc(100vh - 80px); min-height: 560px; max-height: 900px; background: var(--lm-grey-bg); color: var(--lm-black); }
.admin-bar .lm-hero { height: calc(100vh - 112px); }
.lm-hero__slide { opacity: 1; transform: translateX(100%); transition: none; filter: grayscale(1); z-index: 0; }
.lm-hero__slide.is-active { transform: none; z-index: 2; transition: transform 1s cubic-bezier(.22, .61, .36, 1); }
.lm-hero__slide.is-leaving { transform: none; opacity: 0; z-index: 1; transition: opacity 1s ease; }
.lm-hero__slide > img, .lm-hero__slide > .lm-ph { opacity: var(--lm-hero-foto); }
.lm-hero__slide.is-active > img { animation: none; }
.lm-hero__slide > .lm-ph span { display: none; }
.lm-hero .lm-overlay { z-index: 3; background: linear-gradient(90deg, rgba(241, 243, 246, .92) 0%, rgba(241, 243, 246, .55) 45%, rgba(241, 243, 246, 0) 80%); }
.lm-hero__content { z-index: 4; }
.lm-hero .lm-eyebrow { color: var(--lm-blue); }
.lm-hero__lines li { color: var(--lm-text-2); }
.lm-hero__dots button { box-shadow: inset 0 -20px 0 -18px rgba(15, 18, 22, .25); }
.lm-hero__dots button.is-active { box-shadow: inset 0 -20px 0 -18px var(--lm-black); }
@media (prefers-reduced-motion: reduce) {
	.lm-hero__slide, .lm-hero__slide.is-active, .lm-hero__slide.is-leaving { transform: none; transition: none; }
	.lm-hero__slide { opacity: 0; }
	.lm-hero__slide.is-active { opacity: 1; }
}

/* Banner offerta (si comanda da Personalizza) */
.lm-offerbar-sec { padding: 56px 0 0; }
.lm-offerbar { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; background: var(--lm-black); color: #FFFFFF; border-radius: var(--lm-radius); padding: 36px 44px; }
.lm-offerbar__img { flex: 0 0 160px; aspect-ratio: 1; overflow: hidden; border-radius: var(--lm-radius); }
.lm-offerbar__img img { width: 100%; height: 100%; object-fit: cover; }
.lm-offerbar__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.lm-offerbar .lm-eyebrow { color: var(--lm-blue-light); }
.lm-offerbar__title { font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; }
.lm-offerbar__text { color: var(--lm-on-dark); font-size: 17px; }
.lm-offerbar .lm-btn { align-self: center; }
@media (max-width: 640px) { .lm-offerbar { padding: 28px 24px; } .lm-offerbar .lm-btn { align-self: flex-start; } }

/* Due riquadri John invece di tre */
.lm-trio--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
@media (max-width: 640px) { .lm-trio--2 { grid-template-columns: 1fr; } }

/* I nostri clienti: loghi che portano al loro sito */
.lm-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .lm-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .lm-logos { grid-template-columns: repeat(2, 1fr); } }
.lm-logos a { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 22px; border: 1px solid var(--lm-grey-line); border-radius: var(--lm-radius); background: #FFFFFF; color: var(--lm-text-4); text-decoration: none; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.3; transition: border-color .3s ease, box-shadow .3s ease; }
.lm-logos a:hover { border-color: #C9CED6; box-shadow: 0 10px 30px rgba(15, 18, 22, .08); color: var(--lm-black); }
.lm-logos img { max-width: 100%; max-height: 72px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s ease, opacity .3s ease; }
.lm-logos a:hover img { filter: none; opacity: 1; }

/* Galleria: frecce ai lati e foto che si ingrandiscono */
.lm-rail__stage { position: relative; }
.lm-rail__stage .lm-rail__track { padding: 18px 0; margin: -18px 0; }
.lm-rail__stage > .lm-arrow { position: absolute; top: calc(50% - 40px); z-index: 2; box-shadow: 0 6px 20px rgba(15, 18, 22, .18); background: #FFFFFF; }
.lm-rail__stage > .lm-arrow:hover { background: var(--lm-grey-bg); }
.lm-rail__stage > .lm-arrow[data-rail="-1"] { left: -24px; }
.lm-rail__stage > .lm-arrow[data-rail="1"] { right: -24px; }
.lm-dark .lm-rail__stage > .lm-arrow, .lm-black .lm-rail__stage > .lm-arrow { background: #FFFFFF; color: var(--lm-black); }
@media (max-width: 1400px) { .lm-rail__stage > .lm-arrow[data-rail="-1"] { left: 8px; } .lm-rail__stage > .lm-arrow[data-rail="1"] { right: 8px; } }
.lm-card__media { transition: transform .5s ease, box-shadow .5s ease; }
.lm-card:hover .lm-card__media { transform: scale(1.06); box-shadow: 0 16px 40px rgba(15, 18, 22, .22); }
.lm-card:hover .lm-card__media > img, .lm-card:hover .lm-card__media > .lm-ph { transform: scale(1.08); }
.lm-rail__stage .lm-card:first-child .lm-card__media { transform-origin: left center; }
.lm-rail__stage .lm-card:last-child .lm-card__media { transform-origin: right center; }

/* Footer senza pulsante */
.lm-footer__brand img { width: 200px; }


/* =========================================================
   Revisione 2 – 17.11.2026
   ========================================================= */

/* Apertura scura con foto in scala di grigi, più lenta */
.lm-hero { --lm-hero-foto: .85; background: var(--lm-black); color: #FFFFFF; }
.lm-hero__slide > img { width: 100%; height: 100%; object-fit: cover; }
.lm-hero__slide.is-active { transition: transform 1.8s cubic-bezier(.22, .61, .36, 1); }
.lm-hero__slide.is-leaving { transition: opacity 1.8s ease; }
.lm-hero .lm-overlay { background: linear-gradient(90deg, rgba(15, 18, 22, .78) 0%, rgba(15, 18, 22, .4) 55%, rgba(15, 18, 22, .08) 100%); }
.lm-hero .lm-eyebrow { color: var(--lm-blue-light); }
.lm-hero__lines li { color: #FFFFFF; }
.lm-hero__dots button { box-shadow: inset 0 -20px 0 -18px rgba(255, 255, 255, .35); }
.lm-hero__dots button.is-active { box-shadow: inset 0 -20px 0 -18px #FFFFFF; }

/* Promozione su fondo blu notte */
.lm-offerbar { background: #0E1E3D; }
.lm-offerbar__text { color: #C9D3E6; }

/* Servizi senza contorni */
.lm-icons, .lm-icons a, .lm-icons a:nth-child(n) { border: 0 !important; }


/* Revisione 18.11.2026 sera: header azzurro chiarissimo (voluto da John) */
.lm-header, .lm-header.is-scrolled, .lm-solid-header .lm-header { background: #EDF3FC; }


/* Revisione 19.11.2026: tutti i tasti squadrati (voluto da John) */
.lm-btn, .lm-arrow, .lm-menu .menu-cta > a, .lm-tabs__list, .lm-tabs__btn, .lm-pills a, .lm-logos a, .lm-mappa__btn, button, input, select, textarea { border-radius: 0 !important; }


/* Revisione 22.11.2026: Home senza foto su blu notte, Promozione rossa, Competenze tutte blu notte */
.lm-hero.lm-hero--notte{background:#0E1E3D}
.lm-hero--notte .lm-overlay{display:none}
.lm-offerbar-sec{background:#C8102E !important}
.lm-offerbar-sec .lm-eyebrow{color:#FFFFFF}
.lm-service.lm-dark{background:#0E1E3D}
.lm-service.lm-dark + .lm-service.lm-dark{border-top:1px solid rgba(255,255,255,.1)}
