/* ───────────────────────────────────────────────────────────────
   Gestione (B2B Owners) page
   ─────────────────────────────────────────────────────────────── */

.gest-hero {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 128px)) clamp(24px, 3.5vw, 56px) clamp(64px, 8vw, 120px);
  background: var(--cream);
}
.gest-hero__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige);
  margin-bottom: clamp(24px, 3vw, 40px);
  display: block;
}
.gest-hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
}
.gest-hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.gest-hero__title em { font-style: italic; }
.gest-hero__right {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 420px; padding-bottom: 12px;
}
.gest-hero__right p { font-size: var(--fs-body); line-height: 1.65; }

/* Numbers */
.gest-numbers {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(80px, 10vw, 140px) clamp(24px, 3.5vw, 56px);
}
.gest-numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gest-numbers__item {
  border-left: 1px solid var(--rule-light);
  padding: 0 0 0 32px;
}
.gest-numbers__item:first-child { border-left: none; padding-left: 0; }
.gest-numbers__num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.gest-numbers__num em { font-style: italic; color: var(--greige-soft); font-size: 0.6em; }
.gest-numbers__label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige-soft);
  max-width: 16ch;
  line-height: 1.6;
}

/* Method / doppio standard */
.gest-method {
  padding: clamp(96px, 12vw, 160px) clamp(24px, 3.5vw, 56px);
  background: var(--cream);
}
.gest-method__statement {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 0 clamp(56px, 7vw, 96px);
}
.gest-method__statement em { font-style: italic; }
.gest-method__layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
.gest-method__layer {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.gest-method__tag {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige);
  margin-bottom: 20px;
}
.gest-method__layer p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--dark);
  opacity: 0.85;
  max-width: 44ch;
}
@media (max-width: 720px) {
  .gest-method__layers { grid-template-columns: 1fr; gap: 40px; }
}

/* Soglia: dallo standard di mercato a quello dell'hôtellerie — statico, editoriale */
.gest-soglia {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 80px);
}
.gest-soglia__visual { margin: 0; overflow: hidden; background: var(--cream-2); }
.gest-soglia__visual img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 3 / 4; object-fit: cover;
  filter: grayscale(6%) contrast(1.02);
}
.gest-soglia__steps { max-width: 48ch; }
.gest-soglia__label {
  display: block; font-family: var(--font-display); font-weight: 300; font-style: normal;
  letter-spacing: -0.01em; line-height: 1.08; margin-bottom: 14px;
}
.gest-soglia__step p { font-size: var(--fs-body); line-height: 1.7; color: var(--dark); margin: 0; }
/* mercato = sobrio, piccolo, muto */
.gest-soglia__step--from .gest-soglia__label { font-size: clamp(1.1rem, 1.9vw, 1.45rem); color: var(--greige); }
.gest-soglia__step--from p { opacity: 0.68; max-width: 42ch; }
/* hôtellerie = grande, scuro, in evidenza */
.gest-soglia__step--to .gest-soglia__label { font-size: clamp(1.7rem, 3.1vw, 2.5rem); color: var(--dark); }
.gest-soglia__step--to p { opacity: 0.88; }
/* perno: hairline + ↑ Noi */
.gest-soglia__pivot { display: flex; align-items: center; gap: 16px; margin: clamp(24px, 3.2vw, 38px) 0; }
.gest-soglia__rule { flex: 1; height: 1px; background: var(--rule); }
.gest-soglia__pivot-mark {
  font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dark); white-space: nowrap;
}
@media (max-width: 860px) {
  .gest-soglia { grid-template-columns: 1fr; gap: clamp(24px, 6vw, 36px); margin-top: clamp(28px, 8vw, 44px); }
  .gest-soglia__visual img { aspect-ratio: 4 / 3; }
  .gest-soglia__steps { max-width: none; }
}

/* Foto editoriale nei servizi (spezza il testo) */
.gest-services__photo {
  margin: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 7;
}
.gest-services__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .gest-services__photo { aspect-ratio: 5 / 4; } }

/* Indizio "Scorri →" sulla timeline */
.gest-process__cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--greige);
  animation: gestCuePulse 2.2s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
@keyframes gestCuePulse { 0%,100%{ opacity:.45; transform:translateX(0) } 50%{ opacity:1; transform:translateX(5px) } }
.gest-process.is-scrolling .gest-process__cue { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce){ .gest-process__cue{ animation: none } }

/* Services */
.gest-services {
  padding: clamp(96px, 12vw, 160px) clamp(24px, 3.5vw, 56px);
  background: var(--cream);
}
.gest-services__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}
.gest-services__head h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.gest-services__head h2 em { font-style: italic; }
.gest-services__head p {
  font-size: var(--fs-body); line-height: 1.65;
  max-width: 420px; align-self: end; padding-bottom: 12px;
}
.gest-services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gest-services__item {
  border-top: 1px solid var(--rule);
  padding: 24px 24px 32px 0;
  position: relative;
}
/* hover: accent line draws over the top border, num + title respond */
.gest-services__item::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--dark);
  transition: width 0.6s cubic-bezier(0.87, 0, 0.13, 1);
}
.gest-services__item:hover::after { width: 100%; }
.gest-services__num,
.gest-services__item h3 { transition: color 0.4s ease; }
.gest-services__item:hover .gest-services__num { color: var(--dark); }
.gest-services__item:not(:nth-child(4n)) { padding-right: 32px; }
.gest-services__num {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--greige);
  margin-bottom: 24px;
  display: block;
}
.gest-services__item h3 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.gest-services__item h3 em { font-style: italic; }
.gest-services__item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--dark);
  opacity: 0.8;
}

/* Process — timeline orizzontale pinnata (sticky + scroll-driven translate) */
.gest-process {
  background: var(--cream-2);
  position: relative;
}
.gest-process__sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(40px, 5vw, 72px);
  padding: clamp(64px, 8vw, 110px) 0;
}
.gest-process__head {
  padding: 0 clamp(24px, 3.5vw, 56px);
}
.gest-process__eyebrow {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige);
  margin-bottom: 20px;
}
.gest-process__head h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.gest-process__head h2 em { font-style: italic; }
.gest-process__track {
  display: flex;
  gap: clamp(20px, 2.5vw, 44px);
  padding: 0 clamp(24px, 3.5vw, 56px);
}
.gest-process__panel {
  flex: none;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
  transition: border-color 0.5s ease;
}
.gest-process__panel.is-active {
  border-top-color: var(--dark);
}
.gest-process__num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 28px;
  color: var(--greige);
  transition: color 0.45s ease;
}
.gest-process__panel.is-active .gest-process__num {
  color: var(--dark);
}
.gest-process__when {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--greige);
  margin-bottom: 14px;
}
.gest-process__panel h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.gest-process__panel p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dark);
  opacity: 0.82;
}
.gest-process__progress {
  margin: 0 clamp(24px, 3.5vw, 56px);
  height: 2px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.gest-process__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Desktop: pinned horizontal timeline */
@media (min-width: 861px) {
  .gest-process { height: 620vh; }
  .gest-process__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  .gest-process__track {
    width: max-content;
    will-change: transform;
  }
  .gest-process__panel { width: clamp(420px, 40vw, 580px); }
  /* active-panel emphasis is driven by GSAP (inline opacity) */
}

/* Mobile / tablet: native horizontal swipe, no pin */
/* Mobile: timeline ORIZZONTALE (swipe nativo) — come preferisce Andres */
@media (max-width: 860px) {
  .gest-process__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: clamp(24px, 3.5vw, 56px);
    padding-bottom: 8px;
    transform: none !important;
  }
  .gest-process__track::-webkit-scrollbar { display: none; }
  .gest-process__panel {
    width: clamp(240px, 78vw, 340px);
    scroll-snap-align: start;
    opacity: 1 !important;        /* niente dimming su mobile */
  }
  .gest-process__num { color: var(--dark); }
  .gest-process__progress { display: none; }
}

/* Owner testimonial */
.gest-testimonial {
  padding: clamp(96px, 12vw, 160px) clamp(24px, 3.5vw, 56px);
  background: var(--cream);
  text-align: center;
}
.gest-testimonial__quote {
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto;
}
.gest-testimonial__author {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--greige);
}
.gest-testimonial__author strong { color: var(--dark); font-weight: 400; }

/* Big CTA */
.gest-cta {
  padding: clamp(96px, 12vw, 160px) clamp(24px, 3.5vw, 56px);
  background: var(--dark);
  color: var(--cream);
}
.gest-cta__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px;
  align-items: end;
}
.gest-cta__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-mega);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.gest-cta__title em { font-style: italic; }
.gest-cta__right {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 380px; padding-bottom: 12px;
}
.gest-cta__right p { font-size: var(--fs-body); line-height: 1.65; color: var(--greige-soft); }

/* Portale proprietari — split editoriale (testo + foto verticale) */
.gest-portal {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  background: var(--cream);
  align-items: stretch;
}
.gest-portal__text {
  padding: clamp(80px, 11vw, 160px) clamp(24px, 4.5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.gest-portal__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige);
  margin-bottom: 28px;
}
.gest-portal__text h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.gest-portal__text h2 em { font-style: italic; }
.gest-portal__text > p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--dark);
  opacity: 0.82;
  max-width: 46ch;
  margin-bottom: 36px;
}
.gest-portal__list { list-style: none; padding: 0; margin: 0; }
.gest-portal__list li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--dark);
}
.gest-portal__media { position: relative; overflow: hidden; min-height: 70vh; background: var(--dark); }
.gest-portal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .gest-portal { grid-template-columns: 1fr; }
  .gest-portal__media { min-height: 0; aspect-ratio: 4 / 5; }
}

/* Senza vincoli — dark contrast block */
.gest-vincoli {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(96px, 12vw, 160px) clamp(24px, 3.5vw, 56px);
}
.gest-vincoli__head { margin-bottom: clamp(48px, 6vw, 80px); }
.gest-vincoli__head h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.gest-vincoli__head h2 em { font-style: italic; }
.gest-vincoli__head p {
  margin-top: 18px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--greige-soft);
}
.gest-vincoli__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 88px);
}
.gest-vincoli__col h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--greige-soft);
  margin-bottom: 12px;
}
.gest-vincoli__col ul { list-style: none; padding: 0; margin: 0; }
.gest-vincoli__col li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-light);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.gest-vincoli__col li::before {
  flex: none;
  width: 1em;
  font-size: 0.9em;
  line-height: 1.6;
}
.gest-vincoli__col--no li::before { content: "✕"; color: var(--greige); }
.gest-vincoli__col--yes li::before { content: "✓"; color: var(--cream); }

/* Fascia foto parallax (demo) */
.gest-band {
  height: clamp(340px, 56vh, 600px);
  overflow: hidden;
  position: relative;
  background: var(--dark);
}
.gest-band__media { position: absolute; inset: -12% 0; }
.gest-band__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FAQ — accordion (native details) */
.gest-faq {
  padding: clamp(96px, 12vw, 160px) clamp(24px, 3.5vw, 56px);
  background: var(--cream);
}
.gest-faq__head { margin-bottom: clamp(40px, 5vw, 64px); }
.gest-faq__head h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.gest-faq__head h2 em { font-style: italic; }
.gest-faq__list { max-width: 880px; }
.gest-faq__item { border-top: 1px solid var(--rule); }
.gest-faq__item:last-child { border-bottom: 1px solid var(--rule); }
.gest-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -0.01em;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.gest-faq__item summary::-webkit-details-marker { display: none; }
.gest-faq__item summary::after {
  content: "+";
  flex: none;
  font-weight: 200;
  font-size: 1.5rem;
  color: var(--greige);
  transition: transform 0.3s ease;
}
.gest-faq__item[open] summary::after { content: "−"; }
.gest-faq__item p {
  padding: 0 0 28px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--dark);
  opacity: 0.8;
  max-width: 66ch;
}

/* Responsive */
@media (max-width: 1024px) {
  .gest-hero__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .gest-numbers__grid { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .gest-numbers__item:nth-child(3) { border-left: none; padding-left: 0; }
  .gest-services__head { grid-template-columns: 1fr; gap: 24px; }
  .gest-services__grid { grid-template-columns: 1fr 1fr; }
  .gest-services__item:not(:nth-child(4n)) { padding-right: 0; }
  .gest-services__item:not(:nth-child(2n)) { padding-right: 32px; }
  .gest-cta__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}
@media (max-width: 768px) {
  .gest-numbers__grid { grid-template-columns: 1fr; gap: 32px; }
  .gest-numbers__item { border-left: none; padding-left: 0; border-top: 1px solid var(--rule-light); padding-top: 32px; }
  .gest-numbers__item:first-child { border-top: none; padding-top: 0; }
  .gest-services__grid { grid-template-columns: 1fr; }
  .gest-services__item:not(:nth-child(2n)) { padding-right: 0; }
}
@media (max-width: 720px) {
  .gest-vincoli__cols { grid-template-columns: 1fr; gap: 40px; }
}

/* Editorial figure — respiro visivo */
.gest-figure { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; margin: 0; background: var(--greige-soft, #e8e3da); }
.gest-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .gest-figure { aspect-ratio: 4 / 5; } }

/* Numbers redesign — categoria in alto + nota leggibile */
.gest-numbers__label { display: block; margin: 0 0 18px; color: var(--greige); }
.gest-numbers__num { margin: 0 0 14px; }
.gest-numbers__note { font-size: 0.8125rem; line-height: 1.55; color: var(--greige-soft); letter-spacing: 0; text-transform: none; max-width: 24ch; }
