/* Lion Group Core – stili del plugin */

/* Barra "Consulenza gratuita" */
.lg-topbar {
	display: block;
	overflow: hidden;
	width: 100%;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.lg-topbar:hover { color: inherit; }
.lg-topbar__track {
	display: inline-flex;
	width: max-content;
	animation: lg-marquee var(--lg-speed, 38s) linear infinite;
}
.lg-topbar:hover .lg-topbar__track { animation-play-state: paused; }
.lg-topbar__item {
	padding: 0 32px;
	font-family: 'Saira Condensed', sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 38px;
}
@keyframes lg-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Icone social */
.lg-social { display: inline-flex; gap: 12px; }
.lg-social__link {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #3A3D41;
	color: #F2EFE9;
	transition: background .25s, border-color .25s;
}
.lg-social__link:hover { background: #9E2925; border-color: #9E2925; color: #fff; }

/* Chi preferisce meno movimento vede tutto fermo */
@media (prefers-reduced-motion: reduce) {
	.lg-topbar__track { animation: none; }
}

/* ---------- Pulsanti del plugin (stessi valori degli stili Impreza) ---------- */
.lg-btn {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 52px; padding: 0 26px;
	font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 18px;
	letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	transition: gap .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.lg-btn:hover { gap: 20px; }
.lg-btn--primary, .lg-btn--primary:hover { background: #9E2925; color: #fff; }
.lg-btn--primary:hover { background: #B8312C; }
.lg-btn--outline { border: 1px solid rgba(242,239,233,.4); color: #F2EFE9; }
.lg-btn--outline:hover { background: #F2EFE9; border-color: #F2EFE9; color: #0F1011; }

/* ---------- Card dei servizi [lg_servizi_card] ---------- */
.lg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lg-card { display: flex; flex-direction: column; background: #17191B; color: inherit; text-decoration: none; transition: transform .35s ease; }
.lg-card--offset { margin-top: 64px; }
.lg-card:hover { transform: translateY(-6px); color: inherit; }
.lg-card__ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.lg-card__ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #9E2925; transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.lg-card:hover .lg-card__ph::after { transform: scaleX(1); }
.lg-card__ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.75) brightness(.85); transition: transform .7s ease, filter .7s ease; }
.lg-card:hover .lg-card__ph img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.lg-card__body { display: block; padding: 24px 24px 26px; }
.lg-card__title { display: block; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); line-height: .95; text-transform: uppercase; color: #F2EFE9; margin-bottom: 10px; }
.lg-card__text { display: block; font-size: 15px; line-height: 1.5; color: #A8A49D; }
.lg-card__go { display: inline-flex; gap: 8px; margin-top: 14px; font-family: 'Saira Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #E0534A; transition: gap .25s; }
.lg-card:hover .lg-card__go { gap: 14px; }

/* ---------- Selettore dei servizi [lg_servizi] ---------- */
.lg-tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.lg-tabs__side { position: sticky; top: 150px; }
.lg-tabs__list { display: flex; flex-direction: column; }
.lg-tab { display: flex; align-items: center; width: 100%; padding: 15px 0; background: none; border: 0; border-bottom: 1px solid #1F2224; color: #6E7176; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; text-align: left; text-decoration: none; cursor: pointer; transition: color .25s; }
.lg-tab:hover, .lg-tab:focus-visible { color: #F2EFE9; }
.lg-tab__ico { width: 0; height: 18px; opacity: 0; margin-right: 0; transition: width .25s, opacity .25s, margin .25s; }
.lg-tab__name { flex: 1; }
.lg-tab__arrow { font-size: 20px; color: #E0534A; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; }
.lg-tab:hover .lg-tab__arrow, .lg-tab.is-on .lg-tab__arrow { opacity: 1; transform: none; }
.lg-tab.is-on { color: #F2EFE9; }
.lg-tab.is-on .lg-tab__ico { width: 30px; opacity: 1; margin-right: 14px; }
.lg-tab--attr { color: #E0534A; }
.lg-tab--attr .lg-tab__arrow { opacity: 1; transform: none; }
.lg-tabs__help { margin-top: 36px; padding-top: 28px; border-top: 1px solid #1F2224; }
.lg-tabs__help p { margin: 0 0 14px; font-size: 15px; color: #A8A49D; }
.lg-tabs__help .lg-btn { min-height: 46px; font-size: 16px; }
.lg-panel { background: #131517; margin-bottom: 24px; scroll-margin-top: 150px; }
.lg-tabs.is-ready .lg-panel { display: none; margin-bottom: 0; }
.lg-tabs.is-ready .lg-panel.is-on { display: block; animation: lg-panel-in .5s ease both; }
@keyframes lg-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lg-panel__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.lg-panel__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) brightness(.85); }
.lg-panel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 48px 32px; background: linear-gradient(0deg, rgba(15,16,17,.95) 0%, rgba(15,16,17,0) 100%); }
.lg-panel__title { margin: 0; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: clamp(52px, 6vw, 92px); line-height: .92; text-transform: uppercase; color: #fff; }
.lg-panel__body { padding: 44px 48px 40px; }
.lg-panel__text p { margin: 0 0 18px; color: #D8D4CC; max-width: 720px; }
.lg-panel__text > p:first-child { font-size: 22px; line-height: 1.5; color: #F2EFE9; margin-bottom: 24px; }
.lg-panel__text ul { list-style: none; margin: 6px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lg-panel__text li { position: relative; padding-left: 26px; color: #F2EFE9; }
.lg-panel__text li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: #9E2925; }
.lg-panel__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.lg-panel__note { font-size: 14px; color: #A8A49D; }
.lg-panel__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid #26292C; }
.lg-pn { display: flex; flex-direction: column; gap: 6px; color: #F2EFE9; text-decoration: none; }
.lg-pn--next { align-items: flex-end; text-align: right; }
.lg-pn__label { font-family: 'Saira Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #A8A49D; }
.lg-pn__name { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; transition: color .2s; }
.lg-pn:hover .lg-pn__name { color: #E0534A; }

/* ---------- Nastro partner [lg_partners] ---------- */
.lg-marquee { overflow: hidden; }
.lg-marquee__track { display: flex; width: max-content; animation: lg-marquee 60s linear infinite; }
.lg-marquee:hover .lg-marquee__track { animation-play-state: paused; }
.lg-marquee__copy { display: flex; }
.lg-tile { flex: 0 0 auto; width: 180px; height: 110px; margin-right: 16px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; }
.lg-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.lg-tile:hover img { filter: none; opacity: 1; }

/* ---------- Fascia servizi [lg_nastro_servizi] ---------- */
.lg-band { overflow: hidden; background: #0F1011; border-top: 2px solid #9E2925; border-bottom: 2px solid #9E2925; }
.lg-band__track { display: flex; align-items: center; width: max-content; height: 88px; animation: lg-marquee 60s linear infinite; }
.lg-band:hover .lg-band__track { animation-play-state: paused; }
.lg-band__copy { display: flex; align-items: center; }
.lg-band__item { padding: 0 34px; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 36px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: #E0534A; }
.lg-band__sep { height: 24px; width: auto; }

/* ---------- Tablet e smartphone ---------- */
@media (max-width: 1024px) {
	.lg-tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.lg-tabs__side { top: 122px; z-index: 40; background: rgba(15,16,17,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 10px 0; }
	.lg-tabs__list { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
	.lg-tab { flex: 0 0 auto; width: auto; padding: 9px 14px; font-size: 16px; border: 1px solid #3A3D41; color: #A8A49D; }
	.lg-tab.is-on { background: #9E2925; border-color: #9E2925; color: #fff; }
	.lg-tab__ico, .lg-tab__arrow { display: none; }
	.lg-tabs__help { display: none; }
}
@media (max-width: 720px) {
	.lg-cards { grid-template-columns: minmax(0, 1fr); }
	.lg-card--offset { margin-top: 0; }
	.lg-card { flex-direction: row; }
	.lg-card__ph { aspect-ratio: auto; width: 120px; flex: 0 0 120px; }
	.lg-card__body { padding: 16px 18px; min-width: 0; }
	.lg-tabs__side { top: 106px; }
	.lg-panel__media { aspect-ratio: 4 / 3; }
	.lg-panel__cap { padding: 80px 20px 20px; }
	.lg-panel__body { padding: 28px 20px; }
	.lg-panel__text > p:first-child { font-size: 19px; }
	.lg-pn__name { font-size: 18px; }
	.lg-tile { width: 140px; height: 90px; }
	.lg-band__track { height: 64px; }
	.lg-band__item { font-size: 26px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.lg-marquee__track, .lg-band__track { animation: none; }
	.lg-tabs.is-ready .lg-panel.is-on { animation: none; }
}

/* ======================= Versione 1.2 ======================= */

/* Etichetta di sezione [lg_etichetta] */
.lg-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; font-family: 'Saira Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: #A8A49D; }
.lg-eyebrow img { height: 18px; width: auto; display: block; }
.lg-eyebrow--chiaro { color: #55585C; }
.lg-eyebrow--bianco { color: rgba(255,255,255,.85); }

/* Video di apertura [lg_hero_video] */
.lg-has-hero { position: relative; overflow: hidden; }
.lg-has-hero > .l-section-h { position: relative; z-index: 2; }
.lg-hero-bg { position: absolute; inset: 0; z-index: 0; background: #0F1011 var(--lg-poster-d) center / cover no-repeat; }
.lg-hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.lg-hero-bg.is-playing video { opacity: 1; }
.lg-hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,16,17,.92) 0%, rgba(15,16,17,.55) 55%, rgba(15,16,17,.25) 100%), linear-gradient(0deg, #0F1011 0%, rgba(15,16,17,0) 30%); }
@media (max-width: 720px) { .lg-hero-bg { background-image: var(--lg-poster-m, var(--lg-poster-d)); } }

/* Titolo di apertura che sale (classe lg-hero-title sul titolo) */
.lg-anim .lg-hero-title { animation: lg-up 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes lg-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Comparsa allo scorrimento: classi da mettere nel campo "Classe CSS extra" */
.lg-anim .lg-reveal, .lg-anim .lg-rise { opacity: 0; transform: translateY(44px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lg-anim .lg-reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lg-anim .lg-reveal-right { opacity: 0; transform: translateX(60px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lg-anim .lg-card { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.lg-anim .lg-card.is-in:hover { transform: translateY(-6px); transition-delay: 0s !important; }
/* La tendina si applica all'immagine dentro l'elemento, non all'elemento stesso:
   un elemento completamente ritagliato non verrebbe mai "visto" dal browser e resterebbe nascosto. */
.lg-anim .lg-wipe img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); }
.lg-anim .lg-zoom { overflow: hidden; }
.lg-anim .lg-zoom img { transform: scale(1.25); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.lg-anim .lg-reveal.is-in, .lg-anim .lg-rise.is-in, .lg-anim .lg-reveal-left.is-in, .lg-anim .lg-reveal-right.is-in, .lg-anim .lg-card.is-in { opacity: 1; transform: none; }
.lg-anim .lg-wipe.is-in img { clip-path: inset(0 0 0 0); }
.lg-anim .lg-zoom.is-in img { transform: scale(1); }

/* Linea rossa di scansione sulla foto del metal detector (classe lg-scan sull'immagine) */
.lg-scan { position: relative; overflow: hidden; }
.lg-scan::after { content: ''; position: absolute; left: 0; right: 0; top: 8%; height: 2px; background: #E0534A; box-shadow: 0 0 18px 4px rgba(224,83,74,.55); animation: lg-scan 3.2s ease-in-out infinite alternate; pointer-events: none; }
@keyframes lg-scan { from { top: 8%; } to { top: 92%; } }

/* Racconto Chi siamo [lg_storia] */
.lg-story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: start; }
.lg-story__media { position: sticky; top: 150px; }
.lg-story__frame { position: relative; height: 600px; overflow: hidden; background: #17191B; }
.lg-story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.88); opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 1.4s ease; }
.lg-story__img.is-on { opacity: 1; transform: none; }
.lg-ch { min-height: 520px; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; transition: opacity .6s ease; }
.lg-anim .lg-ch { opacity: .2; }
.lg-anim .lg-ch.is-on { opacity: 1; }
.lg-ch__year { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: clamp(88px, 9vw, 140px); line-height: .85; color: #E0534A; }
.lg-ch__year--light { color: #F2EFE9; }
.lg-ch__title { margin: 22px 0 14px; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: #F2EFE9; }
.lg-ch__text { margin: 0; font-size: 19px; line-height: 1.65; color: #D8D4CC; max-width: 460px; }

/* Attrezzature [lg_attrezzature] */
.lg-eqs { border-bottom: 1px solid #26292C; }
.lg-eq { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid #26292C; }
.lg-eq__ico { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid #3A3D41; color: #E0534A; }
.lg-eq__title { display: block; margin-bottom: 6px; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; color: #F2EFE9; }
.lg-eq__text { display: block; font-size: 15px; line-height: 1.55; color: #A8A49D; }

/* Testa di leone in trasparenza (classe lg-watermark sulla riga) */
.lg-watermark { position: relative; overflow: hidden; }
.lg-watermark::before { content: ''; position: absolute; right: -80px; bottom: -40px; width: 560px; height: 340px; background: url('../lion-head.png') center / contain no-repeat; opacity: .05; pointer-events: none; }

@media (max-width: 1024px) {
	.lg-story { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.lg-story__media { position: static; }
	.lg-story__frame { height: 420px; }
	.lg-story__img:not([data-lg-i="1"]) { display: none; }
	.lg-story__img[data-lg-i="1"] { opacity: 1; transform: none; }
	.lg-ch { min-height: 0; padding: 32px 0; }
	.lg-anim .lg-ch { opacity: 1; }
	.lg-watermark::before { display: none; }
}
@media (max-width: 720px) {
	.lg-story__frame { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
	.lg-scan::after { animation: none; }
}

/* ======================= Versione 1.3: moduli Contact Form 7 ======================= */
.lg-cf7 { background: #17191B; border: 1px solid #26292C; padding: 44px; }
.lg-cf7__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.lg-cf7 p { margin: 0; }
.lg-f { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.lg-f--full { grid-column: 1 / -1; }
.lg-f__l, .lg-legend { font-family: 'Saira Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #A8A49D; }
.lg-cf7 .wpcf7-form-control-wrap { display: block; }
.lg-cf7 input[type="text"], .lg-cf7 input[type="email"], .lg-cf7 input[type="tel"], .lg-cf7 input[type="date"], .lg-cf7 input[type="number"], .lg-cf7 select, .lg-cf7 textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; margin: 0; box-sizing: border-box;
	background: #0F1011; border: 1px solid #3A3D41; border-radius: 0; box-shadow: none;
	color: #F2EFE9; font: inherit; font-size: 16px; transition: border-color .2s;
}
.lg-cf7 textarea { min-height: 130px; resize: vertical; }
.lg-cf7 input:focus, .lg-cf7 select:focus, .lg-cf7 textarea:focus { outline: none; border-color: #E0534A; }
.lg-cf7 input[type="file"] { color: #D8D4CC; padding: 10px 0; }
.lg-cf7 .wpcf7-checkbox, .lg-cf7 .wpcf7-radio { display: flex; flex-direction: column; gap: 10px; }
.lg-cf7 .wpcf7-list-item { margin: 0; }
.lg-cf7 .wpcf7-list-item label, .lg-cf7 .wpcf7-acceptance label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #D8D4CC; cursor: pointer; }
.lg-cf7 input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: #9E2925; }
.lg-cf7__privacy a { color: #E0534A; }
.lg-cf7 input[type="submit"], .lg-cf7 .wpcf7-submit {
	width: 100%; min-height: 54px; border: 0; border-radius: 0; cursor: pointer;
	background: #9E2925; color: #fff; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
	transition: background .25s;
}
.lg-cf7 .wpcf7-submit:hover { background: #B8312C; }
.lg-cf7 .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.lg-cf7 .wpcf7-not-valid { border-color: #E0534A !important; }
.lg-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; color: #E0534A; }
.lg-cf7 .wpcf7-response-output { margin: 24px 0 0 !important; padding: 14px 18px !important; border: 1px solid #3A3D41 !important; color: #F2EFE9; font-size: 15px; }
.lg-cf7 form.sent .wpcf7-response-output { border-color: #3c8a5a !important; background: rgba(60,138,90,.12); }
.lg-cf7 form.invalid .wpcf7-response-output, .lg-cf7 form.failed .wpcf7-response-output, .lg-cf7 form.spam .wpcf7-response-output { border-color: #E0534A !important; background: rgba(224,83,74,.1); }
.lg-cf7 .wpcf7-spinner { margin: 12px auto 0; display: block; }
@media (max-width: 720px) {
	.lg-cf7 { padding: 28px 20px; }
	.lg-cf7__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ======================= Versione 1.3.1: titoli grandi su tablet e smartphone ======================= */
/* I titoli con dimensione fissata a mano (es. 124px) vengono ridotti in proporzione allo schermo,
   così non escono dai bordi. Su desktop restano esattamente come impostati in WPBakery. */
@media (max-width: 1024px) {
	.l-main .lg-hero-title { font-size: clamp(56px, 10vw, 96px) !important; line-height: .95 !important; }
	.l-main h2.w-text, .l-main h2.vc_custom_heading { font-size: clamp(40px, 7.5vw, 64px) !important; line-height: .98 !important; }
}
@media (max-width: 720px) {
	.l-main .lg-hero-title { font-size: clamp(44px, 14vw, 60px) !important; }
	.l-main h2.w-text, .l-main h2.vc_custom_heading { font-size: clamp(34px, 10.5vw, 46px) !important; }
	.lg-ch__year { font-size: 72px; }
}
