/* ============================================================
   work-with-us.css  — Lavora con noi · Civis Hotels
   Page-specific only. Tokens, nav, footer, buttons, reveal
   all live in shared.css — never redefined here.
   ============================================================ */


/* ============================================================
   PROFILES — film-strip editoriale
   ============================================================ */
.ww-partnership {
  /* The page no longer has the full-bleed hero that used to sit under the fixed nav. */
  margin-top: 68px;
}

.ww-profiles {
  padding-top: var(--section-py);
}

.ww-profiles__head {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.ww-profiles__title {
  margin-top: clamp(10px, 1.5vw, 16px);
  margin-bottom: clamp(12px, 1.5vw, 20px);
}

.ww-profiles__intro {
  max-width: 64ch;
}

/* Strip: full-bleed alternating bands */
.ww-profiles__strip {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each band: foto + testo affiancati */
.ww-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}

.ww-profile--left  { /* photo left, text right — default col order */ }
.ww-profile--right { /* text left, photo right */ }

/* Swap column order for right variant */
.ww-profile--right .ww-profile__text  { order: 1; }
.ww-profile--right .ww-profile__figure { order: 2; }

/* Figure */
.ww-profile__figure {
  position: relative;
  overflow: hidden;
  line-height: 0;
  /* no border-radius: edge-to-edge editorial */
}

.ww-profile__figure img {
  width: 100%;
  height: clamp(320px, 42vw, 540px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  transition: transform 0.9s var(--ease);
}

.ww-profile:hover .ww-profile__figure img {
  transform: scale(1.025);
}

.ww-profile__caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: oklch(90% 0 0 / 0.75);
  text-shadow: 0 1px 3px oklch(0% 0 0 / 0.4);
}

/* Text block */
.ww-profile__text {
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 60px);
}

.ww-profile__num {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  color: var(--line);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: clamp(12px, 1.5vw, 20px);
  font-optical-sizing: auto;
}

.ww-profile__label {
  display: block;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.ww-profile__title {
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: clamp(14px, 1.8vw, 24px);
  font-optical-sizing: auto;
}

.ww-profile__body {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

/* Profile kinds list — pill tags */
.ww-profile__kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ww-profile__kinds li {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ww-profile__kinds li:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Growth block — full width, different rhythm */
.ww-profile--growth {
  display: block;
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 80px);
  background-color: var(--paper);
}

.ww-profile__growth-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.ww-profile__growth-text .ww-profile__num {
  color: var(--line);
}

.ww-profile__growth-text .ww-profile__title {
  font-size: var(--text-2xl);
}

/* Growth sub-items: three columns */
.ww-profile__growth-kinds {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  align-self: center;
}

.ww-profile__growth-kinds li {
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 1.8vw, 20px);
}

.ww-profile__growth-kinds .cv-eyebrow {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .ww-partnership { margin-top: 108px; }

  .ww-profile {
    grid-template-columns: 1fr;
  }
  .ww-profile--right .ww-profile__text  { order: 2; }
  .ww-profile--right .ww-profile__figure { order: 1; }
  .ww-profile__figure img {
    height: clamp(220px, 50vw, 360px);
  }
  .ww-profile__growth-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 390px) {
  .ww-profile__text {
    padding: 32px 0;
  }
  .ww-profile--growth {
    padding-block: 40px;
  }
}


/* ============================================================
   PARTNERSHIP — banda ink in cima: il vero punto della pagina.
   Alterna i piani: hero fotografico, banda scura, aree su carta.
   ============================================================ */
.ww-partnership__title {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.ww-partnership__inner {
  position: relative;
  z-index: 1;
}

.ww-partnership__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-block: var(--section-py);
  align-items: start;
}

.ww-partnership__eyebrow {
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--ash-2); /* light theme: --ash-2 = oklch(50%) on paper = 5.66:1, AA */
}

.ww-partnership__title {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.ww-partnership__body {
  max-width: 52ch;
}

.ww-partnership__body + .ww-partnership__body {
  margin-top: clamp(12px, 1.5vw, 20px);
}

.ww-partnership__cta {
  margin-top: clamp(24px, 3vw, 40px);
}

/* Aside: detail list */
.ww-partnership__detail {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  border-left: 1px solid var(--line); /* 1px hairline divider (light theme --line) */
  padding-left: clamp(20px, 3vw, 36px);
  align-self: center;
}

.ww-partnership__dt {
  display: block;
  margin-bottom: 6px;
  color: var(--ash-2);
}

.ww-partnership__dd {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ash-1);
  line-height: 1.6;
}

.ww-partnership__dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.ww-partnership__dd a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .ww-partnership__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ww-partnership__detail {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: clamp(20px, 3vw, 32px);
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(16px, 4vw, 32px);
  }
  .ww-partnership__detail-item {
    flex: 1 1 160px;
  }
}


/* .cv-section--ink inversion now lives in shared.css (used site-wide). */

/* Ghost button on ink canvas: border uses scoped --line (already 26%), color uses scoped --ink */
/* The .cv-btn--ghost rule in shared.css picks up the overridden --line and --ink tokens
   automatically, so no extra override needed. The rule below is kept as a safety guard. */
.cv-section--ink .ww-closing__ghost-btn {
  border-color: var(--line);
  color: var(--ink);
}
.cv-section--ink .ww-closing__ghost-btn:hover {
  border-color: oklch(60% 0 0);
  color: oklch(96% 0 0);
}


/* ============================================================
   APPLY — testo + visual asimmetrico, ritmo da contact.html
   ============================================================ */
.ww-apply {
  padding-block: var(--section-py);
  border-bottom: 1px solid var(--line);
}

.ww-apply__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* foto a sinistra: alterna lo split della partnership */
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.ww-apply__visual { order: -1; }

.ww-apply__eyebrow {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.ww-apply__title {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.ww-apply__body {
  max-width: 54ch;
}

.ww-apply__body + .ww-apply__body {
  margin-top: clamp(10px, 1.4vw, 18px);
}

.ww-apply__inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s var(--ease);
}

.ww-apply__inline-link:hover {
  opacity: 0.65;
}

/* Email display — large, prominent */
.ww-apply__email {
  margin-top: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.ww-apply__email-label {
  display: block;
  margin-bottom: 8px;
}

.ww-apply__email-link {
  font-family: var(--display);
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.25s var(--ease);
  font-optical-sizing: auto;
}

.ww-apply__email-link:hover {
  opacity: 0.6;
}

.ww-apply__email-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.ww-apply__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Aside figure */
.ww-apply__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.ww-apply__img {
  width: 100%;
  height: clamp(320px, 50vw, 560px);
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .ww-apply__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ww-apply__visual {
    order: -1; /* photo above text on mobile */
  }
  .ww-apply__img {
    height: clamp(220px, 52vw, 360px);
  }
}


/* ============================================================
   CLOSING — banda ink finale, CTA multiplo
   ============================================================ */
.ww-closing {
  /* cv-section--ink background */
}

.ww-closing__inner {
  padding-block: var(--section-py);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ww-closing__eyebrow {
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--ash-2);
}

.ww-closing__title {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.ww-closing__body {
  max-width: 48ch;
  color: var(--ash-1);
}

.ww-closing__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ww-closing__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ww-closing__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .ww-closing__ctas {
    flex-direction: column;
  }
}

/* a11y: decorative profile numeral -> meets 3:1 (large) */
.ww-profile__num { color: oklch(58% 0 0); }
.ww-profile__growth-text .ww-profile__num { color: oklch(58% 0 0); }

/* ── Le aree — ruoli aggregati (sostituisce i profili per struttura) ──────── */
.ww-areas { padding-block: clamp(64px, 8vw, 120px); scroll-margin-top: 96px; }
.ww-areas__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 72px) clamp(32px, 4vw, 72px);
  margin-top: clamp(36px, 4.5vw, 64px);
  list-style: none;
  padding: 0;
}
.ww-area { border-top: 1px solid var(--line); padding-top: clamp(18px, 2.4vw, 28px); }
/* Numerale da capitolo: stessa famiglia del "Civis sum." e di ww-profile__num */
.ww-area__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
  color: oklch(58% 0 0); /* decorativo aria-hidden, >=3:1 large su carta */
  margin-bottom: clamp(14px, 1.8vw, 24px);
}
@media (max-width: 700px) {
  .ww-areas__grid { grid-template-columns: 1fr; }
  .ww-area__num { font-size: clamp(2.5rem, 12vw, 3.5rem); }
}
.ww-area__title {
  font: 600 var(--text-lg)/1.25 var(--sans); letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 10px;
}
.ww-area__body { font-size: var(--text-sm); line-height: 1.6; color: var(--ash-1); margin: 0; max-width: 46ch; }
