/*
 * HOME Genesi Life: misure dell'originale a 1920 (Betheme + RevSlider), adattate a 1366/1024/768/390.
 * --gl-u = 1px fino a 1240px di larghezza, poi scala come la griglia di RevSlider (larghezza / 1240).
 */
.gl-hero { --gl-u: min(1px, 100vw / 1240); position: relative; height: calc(868 * var(--gl-u)); overflow: hidden; color: #fff; text-align: center; }
.gl-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-hero__content { position: absolute; inset: 0; }
.gl-hero__title { margin: 0; font-size: inherit; line-height: inherit; color: #fff; }
.gl-hero__logo { position: absolute; left: 50%; top: calc(247 * var(--gl-u)); width: calc(331 * var(--gl-u)); height: auto; transform: translateX(-50%); }
.gl-hero__text { position: absolute; left: 0; right: 0; top: calc(450 * var(--gl-u)); display: block; font-size: max(16px, calc(45 * var(--gl-u))); line-height: max(19px, calc(50 * var(--gl-u))); font-weight: 400; text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.gl-hero__btn { position: absolute; left: 50%; top: calc(598 * var(--gl-u)); transform: translateX(-50%); padding: max(6px, calc(15 * var(--gl-u))) max(14px, calc(40 * var(--gl-u))); background: var(--gl-color-accent); color: #fff; font-size: max(12px, calc(20 * var(--gl-u))); line-height: max(14px, calc(22 * var(--gl-u))); font-weight: 300; white-space: nowrap; transition: background-color var(--gl-speed) var(--gl-ease); }
.gl-hero__btn:hover { background: var(--gl-color-accent-dark); color: #fff; text-decoration: none; }
.gl-hero__line { position: absolute; left: calc(50% - 1px); top: calc(699 * var(--gl-u)); width: 2px; height: calc(119 * var(--gl-u)); background: rgba(255, 255, 255, .6); }
@media (max-width: 767px) { .gl-hero__line { display: none; } }

/* Entrata della testata (prima RevSlider): testo da 90% a 100% con dissolvenza, logo e bottone in dissolvenza */
@keyframes gl-zoom-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes gl-fade { from { opacity: 0; } to { opacity: 1; } }
.gl-hero__text { animation: gl-zoom-in 1.2s ease-out .3s both; }
.gl-hero__logo { animation: gl-fade 1.7s ease-out .3s both; }
.gl-hero__btn { animation: gl-fade 1.7s ease-out .3s both; }

/* ---------- Fasce verde chiaro (introduzione, Genesi Pegaso) ---------- */
.gl-band { background: var(--gl-color-bg-alt); text-align: center; }
.gl-intro { padding: 93px 0 105px; }
.gl-intro__title { margin: 0; color: var(--gl-color-heading); }

/* ---------- Vantaggi (3 icone) ---------- */
.gl-benefits { padding: 80px 0 40px; text-align: center; }
.gl-benefits__grid { display: grid; gap: 40px 24px; }
@media (min-width: 768px) { .gl-benefits__grid { grid-template-columns: repeat(3, 1fr); } }
.gl-benefit { padding-top: 15px; }
.gl-benefit__icon { width: 168px; height: 168px; margin: 0 auto 30px; }
.gl-benefit__title { margin: 0 0 20px; font-size: var(--gl-fs-h4); line-height: var(--gl-lh-h4); color: var(--gl-color-heading-alt); }
.gl-benefit__text { margin: 0; }

/* ---------- Progetto imprenditoriale: foto 3/5 + testo 2/5 ---------- */
.gl-project { display: grid; }
@media (min-width: 768px) { .gl-project { grid-template-columns: 3fr 2fr; } }
.gl-project__media { min-height: 401px; background: var(--gl-bg) center / cover no-repeat; }
.gl-project__body { padding: 80px 62px 65px; background: #fff; }
.gl-project__title { margin-bottom: 15px; font-size: var(--gl-fs-h3); line-height: var(--gl-lh-h3); }
.gl-separator { display: block; width: 119px; height: 2px; margin: 30px 0 41px; background: var(--gl-color-accent); }
.gl-project__sub { margin: 0 0 45px; font-size: var(--gl-fs-h5); line-height: var(--gl-lh-h5); color: var(--gl-color-heading); }
.gl-project__points { margin: 0; padding: 0; list-style: none; }
.gl-project__point { min-height: 35px; margin-bottom: 30px; padding: 5px 0 0 70px; background: var(--gl-bg) 0 0 no-repeat; }
.gl-project__point:last-child { margin-bottom: 28px; }
.gl-project__point .gl-big { color: var(--gl-color-text); }

/* ---------- Opportunita' e scelta etica: sfondo paesaggio ---------- */
.gl-ethic { padding: 121px 0 240px; background: var(--gl-bg) center bottom / cover no-repeat; }
.gl-ethic__grid { display: grid; gap: 30px 24px; }
@media (min-width: 768px) {
	.gl-ethic__grid { grid-template-columns: 1fr 1fr; row-gap: 11px; }
}
.gl-ethic__title { margin-bottom: 15px; font-size: var(--gl-fs-h4); line-height: var(--gl-lh-h4); color: var(--gl-color-heading-alt); }
.gl-ethic__opp .gl-content p { margin-bottom: 15px; }
.gl-ethic__world { text-align: center; }
.gl-ethic__world-img { width: 125px; height: 125px; margin: 0 auto 20px; }
.gl-ethic__world-title { margin: 0; font-size: var(--gl-fs-h5); line-height: var(--gl-lh-h5); color: var(--gl-color-heading-alt); }
.gl-ethic__photo-img { width: 100%; height: auto; margin-bottom: 40px; }
.gl-ethic__bars { text-align: center; }
.gl-ethic__label { margin-bottom: 15px; color: var(--gl-color-muted); }
.gl-progress { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.gl-progress__icon { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; margin: 0 7px 7px 0; border-radius: 50%; background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); color: rgba(0, 0, 0, .25); transition: background-color .4s ease-in-out, color .4s ease-in-out, box-shadow .4s ease-in-out; transition-delay: var(--gl-delay, 0s); }
.gl-progress__icon svg { width: 17px; height: 17px; fill: currentColor; }
.gl-progress__icon.is-on { background: var(--gl-color-accent); box-shadow: none; color: #fff; }
/* Prima di entrare in vista le icone sono spente; home.js le accende una alla volta */
.js .gl-progress:not(.is-visible) .gl-progress__icon.is-on { background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); color: rgba(0, 0, 0, .25); }

/* ---------- Genesi Pegaso ---------- */
.gl-pegaso { padding: 30px 0 60px; }
.gl-pegaso__logo { width: 257px; height: auto; margin: 20px auto 30px; }
.gl-pegaso__title { margin-bottom: 27px; font-size: 28px; line-height: 48px; }
@media (max-width: 767px) { .gl-pegaso__title { line-height: 29px; } }

/* ---------- Mappa ---------- */
.gl-home-map iframe { display: block; width: 100%; height: 600px; border: 0; }

/* ---------- Entrate allo scroll (Betheme: fadeInUp sulle icone, bounceIn sul mondo) ---------- */
@keyframes gl-fade-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes gl-bounce-in { 0% { opacity: 0; transform: scale(.3); } 20% { transform: scale(1.1); } 40% { transform: scale(.9); } 60% { opacity: 1; transform: scale(1.03); } 80% { transform: scale(.97); } to { opacity: 1; transform: none; } }
.js .gl-reveal { opacity: 0; }
.js .gl-reveal.is-visible { animation: gl-fade-up 1s ease both; animation-delay: var(--gl-delay, 0s); }
.js .gl-ethic__world-img.is-visible { animation-name: gl-bounce-in; animation-duration: .75s; }

@media (prefers-reduced-motion: reduce) {
	.js .gl-reveal { opacity: 1; }
	.gl-hero__text, .gl-hero__logo, .gl-hero__btn { animation: none; }
}

/* Mobile: margini del testo come l'originale (50px) */
@media (max-width: 767px) { .gl-project__body { padding: 80px 50px 65px; } }

.gl-benefit__text p { margin: 0; }

/* Desktop: spazi verticali misurati sull'originale (margini delle colonne Betheme) */
@media (min-width: 960px) {
	.gl-benefits { padding-bottom: 90px; }
	.gl-project__body { padding-bottom: 107px; }
	.gl-ethic { padding-bottom: 280px; }
	.gl-pegaso__title { margin-bottom: 81px; }
	.gl-footer__widgets { padding-bottom: 89px; }
}