/* ==========================================================================
   GEORES — Chi siamo (editorial page). Loaded only on the "GEORES — Chi siamo" template.
   Uses the tokens of main.css (colours, fonts, easing).
   ========================================================================== */

.g-about { --ga-warm: #f3f1ed; --ga-slow: cubic-bezier(.16, 1, .3, 1); overflow-x: clip; }
.ga-wrap { max-width: calc(1400px + 2 * var(--g-gutter)); margin-inline: auto; padding-inline: var(--g-gutter); }
@media (min-width: 1280px) { .ga-wrap { padding-inline: 48px; max-width: 1496px; } }
.ga-h2 {
	font-family: var(--g-serif); font-weight: 400; color: var(--g-ink);
	font-size: var(--g-fs-title); line-height: 1.04; letter-spacing: -.02em; /* site-wide section title scale */
}

/* ---------- 1. Hero ---------- */
.ga-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--g-ink); color: var(--g-white); }
.ga-hero__media { position: absolute; inset: 0; will-change: transform; }
.ga-hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transform-origin: 50% 60%; }
.ga-hero__veil {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .28) 100%);
	opacity: 1;
}
.ga-hero__veil::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); transition: opacity 2.4s ease; }
.ga-hero__top { position: absolute; left: var(--g-gutter); top: calc(var(--g-header-h) + 56px); z-index: 2; }
@media (min-width: 768px) { .ga-hero__top { left: 48px; top: calc(var(--g-header-h) + 72px); } }
.ga-hero__bottom { position: absolute; left: var(--g-gutter); right: var(--g-gutter); bottom: 48px; z-index: 2; will-change: transform; }
@media (min-width: 768px) { .ga-hero__bottom { left: 48px; right: 48px; bottom: 64px; } }
.ga-hero__title {
	font-family: var(--g-serif); font-weight: 400; color: var(--g-white);
	font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: 1.02; letter-spacing: -.02em;
}
.ga-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ga-mask > span { display: inline-block; transform: translateY(108%); }
.ga-hero__meta { margin-top: 28px; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .72); opacity: 0; }

.ga-hero.is-ready .ga-hero__img { transform: scale(1); transition: transform 3.2s var(--ga-slow); }
.ga-hero.is-ready .ga-hero__veil::after { opacity: 0; }
.ga-hero.is-ready .ga-hero__label { transform: none; transition: transform 1.2s var(--ga-slow) .5s; }
.ga-hero.is-ready .ga-hero__title .ga-mask > span { transform: none; transition: transform 1.5s var(--ga-slow) calc(.8s + var(--i, 0) * .16s); }
.ga-hero.is-ready .ga-hero__meta { opacity: 1; transition: opacity 1.4s ease 1.9s; }
.no-js .ga-mask > span, .no-js .ga-hero__img { transform: none; }
.no-js .ga-hero__meta { opacity: 1; }

/* ---------- 2. Manifesto (scroll text reveal) ---------- */
.ga-manifesto { background: var(--g-white); padding: 140px 0 120px; }
@media (min-width: 768px) { .ga-manifesto { padding: 220px 0 180px; } }
.ga-manifesto__text {
	max-width: 22ch; margin-inline: auto; text-align: center;
	font-family: var(--g-serif); font-weight: 400; font-size: clamp(1.9rem, 3.7vw, 3.5rem); line-height: 1.2; letter-spacing: -.015em;
	color: #d4d4d4;
}
@media (min-width: 1024px) { .ga-manifesto__text { max-width: 24ch; } }
.ga-word { transition: color .5s ease; }
.ga-word.is-lit { color: var(--g-ink); }
.no-js .ga-word { color: var(--g-ink); }
.ga-manifesto__body { max-width: 1100px; margin: 120px auto 0; }
.ga-manifesto__body > * { font-size: 16px; }
@media (min-width: 768px) { .ga-manifesto__body > * { font-size: 17px; } }

/* ---------- 3. Metodo (sticky) ---------- */
.ga-method { position: relative; background: var(--g-white); }
.ga-method__media { display: none; }
.ga-method__content { padding: 40px var(--g-gutter) 96px; }
.ga-steps { margin-top: 48px; }
.ga-step { display: grid; grid-template-columns: 48px 1fr; padding-block: 28px; border-top: 1px solid var(--g-line); }
.ga-step__num { font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--g-gold); padding-top: 10px; }
.ga-step__title { font-family: var(--g-serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--g-ink); }
.ga-step__img { margin-top: 20px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--g-concrete); }
.ga-step__img img { width: 100%; height: 100%; object-fit: cover; }
.ga-step__text { margin-top: 16px; max-width: 34rem; font-size: 15px; line-height: 1.65; color: var(--g-muted); }
.js .ga-step { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ga-slow); }
.js .ga-step.is-in { opacity: 1; transform: none; }

@media (min-width: 1024px) {
	.ga-method { height: calc(var(--steps, 4) * 85vh + 15vh); }
	.ga-method__stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
	.ga-method__media { display: block; position: relative; height: 100%; background: var(--g-concrete); }
	.ga-method__img { position: absolute; inset: 0; opacity: 0; clip-path: inset(100% 0 0 0); transition: opacity 1s ease, clip-path 1.2s var(--ga-slow); }
	.ga-method__img.is-active { opacity: 1; clip-path: inset(0 0 0 0); z-index: 1; }
	.ga-method__img.is-past { opacity: 1; clip-path: inset(0 0 0 0); }
	.ga-method__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.2s var(--ga-slow); }
	.ga-method__img.is-active img { transform: scale(1); }
	.ga-method__content { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--g-header-h) - 20px) 7vw 40px 6vw; }
	.ga-steps { margin-top: 44px; }
	.js .ga-step { opacity: 1; transform: none; }
	.ga-step { position: relative; padding-block: 18px; border-top: 0; }
	.ga-step::before {
		content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--g-line);
	}
	.ga-step::after {
		content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--g-gold);
		transition: width .9s var(--ga-slow);
	}
	.ga-step__img { display: none; }
	.ga-step__num { color: rgba(26, 26, 26, .3); transition: color .5s ease; }
	.ga-step__title { font-size: clamp(22px, 2vw, 30px); color: rgba(26, 26, 26, .28); transition: color .6s ease; }
	.ga-step__text { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ga-slow), opacity .6s ease, margin-top .6s ease; }
	.ga-step.is-active::after { width: 64px; }
	.ga-step.is-active .ga-step__num { color: var(--g-gold); }
	.ga-step.is-active .ga-step__title { color: var(--g-ink); }
	.ga-step.is-active .ga-step__text { max-height: 8em; opacity: 1; margin-top: 12px; }
}

/* ---------- 4. Competenze ---------- */
.ga-skills { position: relative; background: var(--ga-warm); padding: 120px 0 110px; }
@media (min-width: 768px) { .ga-skills { padding: 180px 0 160px; } }
.ga-skills__list { margin-top: 64px; border-bottom: 1px solid var(--g-line-strong); }
.ga-skill { border-top: 1px solid var(--g-line-strong); }
.ga-skill__row { display: flex; align-items: baseline; gap: 14px; padding-block: 22px; color: var(--g-ink); }
.ga-skill__num { font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--g-gold-dark); min-width: 22px; }
.ga-skill__dash { color: rgba(26, 26, 26, .3); }
.ga-skill__title {
	font-family: var(--g-serif); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 4.4rem); line-height: 1.05; letter-spacing: -.02em;
	transition: color .45s ease, transform .6s var(--ga-slow);
}
.ga-skill__arrow { margin-left: auto; align-self: center; width: 22px; height: 22px; color: var(--g-gold); opacity: .0; transition: opacity .4s ease, transform .4s ease; }
.ga-skill__mobile-img { margin: 0 0 26px; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, .04); }
.ga-skill__mobile-img img { width: 100%; height: 100%; object-fit: cover; }
.js .ga-skill__mobile-img { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ga-slow); }
.js .ga-skill.is-in .ga-skill__mobile-img { opacity: 1; transform: none; }
.ga-skills__float { display: none; }

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.ga-skill__mobile-img { display: none; }
	.ga-skill__row { padding-block: 26px; }
	.ga-skill__title { max-width: 58%; }
	.ga-skills__list:hover .ga-skill__title { color: rgba(26, 26, 26, .35); }
	.ga-skill.is-hover .ga-skill__title { color: var(--g-ink); transform: translateX(14px); }
	.ga-skill.is-hover .ga-skill__arrow { opacity: 1; transform: translate(2px, -2px); }
	.ga-skills__float {
		display: block; position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
		width: clamp(260px, 24vw, 380px); aspect-ratio: 4 / 5; overflow: hidden;
		opacity: 0; transform: translate3d(0, 0, 0); transition: opacity .5s ease;
		will-change: transform;
	}
	.ga-skills__float.is-visible { opacity: 1; }
	.ga-skills__float-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .55s ease, transform 1.1s var(--ga-slow); }
	.ga-skills__float-img.is-active { opacity: 1; transform: scale(1); }
	.ga-skills__float-img img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- 5. Prima / dopo ---------- */
.ga-transform { background: var(--g-white); padding: 120px 0; }
.ga-transform__stage { display: grid; gap: 48px; max-width: calc(1400px + 2 * var(--g-gutter)); margin-inline: auto; padding-inline: var(--g-gutter); }
.ga-transform__caption { margin-top: 20px; max-width: 30rem; font-size: 14px; line-height: 1.6; color: var(--g-muted); }
.ga-ba { position: relative; width: min(100%, 440px); aspect-ratio: 291 / 527; margin-inline: auto; overflow: hidden; background: var(--g-concrete); --p: 0; }
.ga-ba__img { position: absolute; inset: 0; }
.ga-ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ga-ba__img--after { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.ga-ba__line { position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); }
.ga-ba__label { position: absolute; top: 16px; font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--g-white); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); transition: opacity .4s ease; }
.ga-ba__label--before { right: 16px; }
.ga-ba__label--after { left: 16px; opacity: 0; }
.ga-ba.is-after .ga-ba__label--after { opacity: 1; }
.ga-ba.is-after .ga-ba__label--before { opacity: 0; }
.no-js .ga-ba { --p: .5; }

@media (min-width: 1024px) {
	.ga-transform { height: 240vh; padding: 0; }
	.ga-transform__stage { position: sticky; top: 0; height: 100vh; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; justify-items: center; gap: 6vw; padding-inline: 48px; }
	.ga-transform__text { justify-self: start; }
	.ga-ba { width: auto; height: 78vh; max-height: 780px; }
}

.ga-transform--fallback { padding: 0 0 140px; }
.ga-transform__wide { height: 80vh; overflow: hidden; }
.ga-transform__wide img { width: 100%; height: 100%; object-fit: cover; }
.ga-transform__quote { max-width: 24ch; margin: 80px auto 0; text-align: center; font-family: var(--g-serif); font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.2; }

/* ---------- 6. Statement (dark) ---------- */
.ga-statement { --dark: 1; background: rgb(calc(255 - 229 * var(--dark)), calc(255 - 229 * var(--dark)), calc(255 - 229 * var(--dark))); padding: 34vh 0; }
.js .ga-statement { --dark: 0; }
.ga-statement__inner { max-width: calc(1100px + 2 * var(--g-gutter)); margin-inline: auto; padding-inline: var(--g-gutter); text-align: center; }
.ga-statement__text { font-family: var(--g-serif); font-weight: 400; color: var(--g-white); font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1.08; letter-spacing: -.02em; }
.ga-statement__label { margin-top: 40px; font-size: 10.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.js .ga-statement__text, .js .ga-statement__label { opacity: 0; transform: translateY(28px); transition: opacity 1.6s ease, transform 1.8s var(--ga-slow); }
.js .ga-statement__label { transition-delay: .5s; }
.ga-statement.is-in .ga-statement__text, .ga-statement.is-in .ga-statement__label { opacity: 1; transform: none; }

/* ---------- 7. Garanzie ---------- */
.ga-guarantees { background: var(--g-white); padding: 120px 0; }
@media (min-width: 768px) { .ga-guarantees { padding: 160px 0; } }
.ga-guarantees__list { display: grid; gap: 0; }
@media (min-width: 640px) { .ga-guarantees__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ga-guarantees__list { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.ga-guarantee { padding: 28px 0; border-top: 1px solid var(--g-line-strong); }
@media (min-width: 640px) { .ga-guarantee { padding: 32px 28px 32px 0; } }
@media (min-width: 1024px) { .ga-guarantee { border-top: 0; border-left: 1px solid var(--g-line-strong); padding: 8px 32px 12px; } .ga-guarantee:first-child { border-left: 0; padding-left: 0; } }
.ga-guarantee__num { font-size: 11px; font-weight: 500; letter-spacing: .24em; color: var(--g-gold-dark); }
.ga-guarantee__title { margin-top: 18px; font-family: var(--g-serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.3rem); line-height: 1.12; color: var(--g-ink); }

/* ---------- 8. Persone ---------- */
.ga-people { background: var(--ga-warm); padding: 120px 0; }
@media (min-width: 768px) { .ga-people { padding: 170px 0; } }
.ga-people__grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1024px) { .ga-people__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8vw; } }
.ga-people__photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 18%; background: var(--g-concrete); } /* keep the face in frame */
@media (max-width: 1023px) { .ga-people__photo { max-width: 520px; } } /* portrait source is 1024 px: stays sharp on 2× tablets */
.ga-people__caption { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: var(--g-muted); }
.ga-people__lead { margin-top: 28px; max-width: 28rem; font-size: 18px; line-height: 1.6; color: rgba(26, 26, 26, .72); }
@media (min-width: 1024px) { .ga-people__text { padding-bottom: 12vh; } }

/* ---------- 9. CTA finale ---------- */
.ga-cta { position: relative; height: 200vh; background: var(--g-white); --p: 0; }
.ga-cta__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ga-cta__frame {
	position: absolute; inset: 0; overflow: hidden;
	clip-path: inset(calc((1 - var(--p)) * 16%) calc((1 - var(--p)) * 24%));
}
@media (max-width: 767px) { .ga-cta__frame { clip-path: inset(calc((1 - var(--p)) * 14%) calc((1 - var(--p)) * 8%)); } }
.ga-cta__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p) * .12)); }
.ga-cta__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, calc(.12 + var(--p) * .38)); }
.ga-cta__content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--g-gutter); text-align: center; color: var(--g-white); }
.ga-cta__title { font-family: var(--g-serif); font-weight: 400; font-size: clamp(2.8rem, 7vw, 7rem); line-height: 1; letter-spacing: -.02em; }
.ga-cta__text { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .85); }
.ga-cta__link {
	display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; padding-bottom: 10px;
	font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--g-white);
	border-bottom: 1px solid rgba(255, 255, 255, .5); transition: color .3s, border-color .3s;
}
.ga-cta__link .g-icon { color: var(--g-gold); transition: transform .3s; }
.ga-cta__link:hover, .ga-cta__link:focus-visible { color: var(--g-gold); border-color: var(--g-gold); }
.ga-cta__link:hover .g-icon { transform: translateX(5px); }
.ga-cta__note { margin-top: 22px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.js .ga-cta__content > * { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1.2s var(--ga-slow); }
.js .ga-cta.is-open .ga-cta__content > * { opacity: 1; transform: none; }
.js .ga-cta.is-open .ga-cta__content > *:nth-child(2) { transition-delay: .12s; }
.js .ga-cta.is-open .ga-cta__content > *:nth-child(3) { transition-delay: .24s; }
.js .ga-cta.is-open .ga-cta__content > *:nth-child(4) { transition-delay: .36s; }
.no-js .ga-cta { --p: 1; height: auto; }
.no-js .ga-cta__stage { position: relative; }

/* ---------- Reduced motion: final states, no parallax / zoom / sticky scrubbing ---------- */
@media (prefers-reduced-motion: reduce) {
	.ga-hero__img, .ga-mask > span { transform: none !important; transition: none !important; }
	.ga-hero__meta { opacity: 1 !important; transition: none !important; }
	.ga-hero__veil::after { opacity: 0; }
	.ga-hero__media, .ga-hero__bottom { transform: none !important; }
	.ga-word { color: var(--g-ink) !important; transition: none; }
	.ga-statement { --dark: 1 !important; }
	.ga-statement__text, .ga-statement__label { opacity: 1 !important; transform: none !important; }
	.ga-cta { --p: 1 !important; height: auto; }
	.ga-cta__stage { position: relative; }
	.ga-cta__content > * { opacity: 1 !important; transform: none !important; }
	.ga-transform { height: auto !important; padding: 120px 0 !important; }
	.ga-transform__stage { position: relative !important; height: auto !important; }
	.ga-ba { --p: .5 !important; }
	.ga-step, .ga-skill__mobile-img { opacity: 1 !important; transform: none !important; }
}
