/* ============================================================
   CONTACT PAGE — contact.css
   Page-specific styles only. Tokens live in shared.css.
   ============================================================ */

/* ============================================================
   HERO — text left, image right, asymmetric
   ============================================================ */
.ct-hero {
  padding-top: clamp(100px, 14vw, 160px);
  padding-bottom: var(--section-py);
}

.ct-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.5fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.ct-hero__text {
  padding-top: clamp(16px, 2vw, 32px);
}

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

.ct-hero__title {
  font-family: var(--sans); /* modern sans hero, consistent sitewide */
  font-weight: 650; /* regola dei due pesi: 650 o 300, niente vie di mezzo */
  font-size: var(--text-2xl); /* il titolo arretra: il momento-eroe è l'email */
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.ct-hero__sub {
  margin-bottom: 0;
  max-width: 44ch;
}

/* ── MOMENTO-EROE: l'email a scala display, piena larghezza ──
   Un contatto che si legge dall'altra parte della stanza.
   Spanna l'intera griglia sotto testo e foto. */
.ct-hero__email {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3.5vw, 48px);
  margin-top: clamp(8px, 1.5vw, 24px);
}

.ct-hero__email-label {
  display: block;
}

.ct-hero__email-link {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 1rem + 7.2vw, 8rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 0.035em;
  text-underline-offset: 0.09em;
  overflow-wrap: anywhere;
  transition:
    text-decoration-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.ct-hero__email-link:hover {
  text-decoration-color: var(--ink);
}

/* Hero aside: tall portrait photo */
.ct-hero__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}

.ct-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
}

@media (max-width: 768px) {
  .ct-hero__inner {
    grid-template-columns: 1fr;
  }
  .ct-hero__aside {
    display: none;
  }
}

/* Sotto gli 820px l'email scala con il viewport e resta su una riga
   (a 620-820px la scala piena sfiorava il bordo del container e
   overflow-wrap:anywhere spezzava l'indirizzo a metà) */
@media (max-width: 820px) {
  .ct-hero__email-link {
    font-size: clamp(1.75rem, 5.6vw, 3.4rem);
  }
}


/* ============================================================
   PROPERTIES — asymmetric two-column layout
   ============================================================ */
.ct-properties {
  padding-block: var(--section-py);
  border-top: 1px solid var(--line);
}

.ct-properties__header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.ct-properties__title {
  margin-top: clamp(12px, 1.5vw, 18px);
}

/* Righe editoriali a piena larghezza: il ritmo si alterna,
   numerale a sinistra nelle dispari, a destra nelle pari. */
.ct-properties__grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ct-properties__grid > .ct-prop + .ct-prop {
  border-top: 1px solid var(--line);
}

/* Each property panel — asymmetric row */
.ct-prop {
  position: relative;
  display: grid;
  grid-template-columns: clamp(96px, 16vw, 220px) 1fr;
  grid-template-areas:
    "num head"
    "num details"
    "num ctas";
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: clamp(20px, 2.5vw, 32px);
  padding: clamp(32px, 4vw, 56px);
  background: var(--paper);
  transition: background-color 0.4s var(--ease);
}

.ct-properties__grid > .ct-prop:nth-child(even) {
  grid-template-columns: 1fr clamp(96px, 16vw, 220px);
  grid-template-areas:
    "head num"
    "details num"
    "ctas num";
}

.ct-properties__grid > .ct-prop:nth-child(even) .ct-prop__index {
  justify-self: end;
  text-align: right;
}

/* Index number — numerazione 01-04 in scala grande */
.ct-prop__index {
  grid-area: num;
  align-self: start;
  font-family: var(--sans);
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--line);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s var(--ease);
}

.ct-prop__head { grid-area: head; }

.ct-prop__label {
  margin-bottom: 8px;
  display: block;
}

.ct-prop__name {
  font-family: var(--sans);
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: clamp(10px, 1.5vw, 16px);
}

.ct-prop__character {
  font-size: var(--text-lg);
  max-width: 56ch;
}

/* Details list — orizzontale sulle righe larghe */
.ct-prop__details {
  grid-area: details;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
}

.ct-prop__detail {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ct-prop__dt {
  display: block;
}

.ct-prop__dd {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ash-1);
  line-height: 1.55;
  margin: 0;
}

/* CTA row */
.ct-prop__ctas {
  grid-area: ctas;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Note beneath grid */
.ct-properties__note {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 68ch;
}

@media (max-width: 760px) {
  .ct-prop,
  .ct-properties__grid > .ct-prop:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "head"
      "details"
      "ctas";
  }
  .ct-properties__grid > .ct-prop:nth-child(even) .ct-prop__index {
    justify-self: start;
    text-align: left;
  }
  .ct-prop__index {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }
  .ct-prop__details {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 390px) {
  .ct-prop {
    padding: 28px 20px;
  }
  .ct-prop__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   GENERAL CONTACT — ink section, two-column
   ============================================================ */
.ct-general {
  padding-block: var(--section-py);
}

.ct-general__inner {
  position: relative; /* sopra il meandro di fondo */
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

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

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

.ct-general__body {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  max-width: 54ch;
}

/* Inline link inside body text on ink background */
.ct-general__inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: oklch(62% 0 0 / 0.5);
  transition: text-decoration-color 0.25s var(--ease);
}
.ct-general__inline-link:hover {
  text-decoration-color: currentColor;
}

.ct-general__channels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Ghost button on ink bg: lighter border */
.ct-general .cv-btn--ghost {
  border-color: oklch(62% 0 0 / 0.45);
  color: oklch(96% 0 0);
}
.ct-general .cv-btn--ghost:hover {
  border-color: oklch(96% 0 0);
}

/* Instagram button */
.ct-general__ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Right-side meta */
.ct-general__meta {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
  padding-top: clamp(40px, 5vw, 60px);
}

.ct-general__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-general__meta-dt {
  display: block;
  /* eyebrow on ink: slightly lighter tone */
  color: oklch(48% 0 0);
}

.ct-general__meta-dd {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: oklch(80% 0 0);
  margin: 0;
  line-height: 1.5;
}

.ct-general__meta-dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: oklch(48% 0 0);
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ct-general__meta-dd a:hover {
  color: oklch(96% 0 0);
  text-decoration-color: oklch(96% 0 0);
}

@media (max-width: 900px) {
  .ct-general__inner {
    grid-template-columns: 1fr;
  }
  .ct-general__meta {
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 32px);
  }
  .ct-general__meta-item {
    min-width: 140px;
  }
}

@media (max-width: 390px) {
  .ct-general__channels {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   FORM SECTION — honest mailto composition
   ============================================================ */
.ct-form-section {
  padding-block: var(--section-py);
  border-top: 1px solid var(--line);
}

.ct-form-section__inner {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.ct-form-section__header {
  position: sticky;
  top: clamp(80px, 10vw, 120px);
}

.ct-form-section__title {
  margin-top: clamp(12px, 1.5vw, 18px);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.ct-form-section__note {
  max-width: 38ch;
  line-height: 1.6;
}

/* Form */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.ct-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-form__label {
  display: block;
}

.ct-form__input {
  font-family: var(--sans);
  font-size: max(1rem, var(--text-sm)); /* >=16px: evita l'auto-zoom iOS al focus */
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.4s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.ct-form__input::placeholder {
  color: var(--ash-2);
}

.ct-form__input:focus {
  outline: none;
  border-color: var(--ink);
}

.ct-form__input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.ct-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.ct-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.ct-form__footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ct-form__submit {
  flex-shrink: 0;
}

.ct-form__disclaimer {
  max-width: 40ch;
  line-height: 1.55;
}
.ct-form__disclaimer[data-state="ok"]  { color: var(--ink); }
.ct-form__disclaimer[data-state="err"] { color: oklch(55% 0.16 25); }

@media (max-width: 900px) {
  .ct-form-section__inner {
    grid-template-columns: 1fr;
  }
  .ct-form-section__header {
    position: static;
  }
  .ct-form-section__note {
    max-width: none;
  }
  .ct-form-section__title {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .ct-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .ct-form__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ct-form__disclaimer {
    max-width: none;
  }
}

/* a11y: meta label on dark band -> WCAG AA */
.ct-general__meta-dt { color: oklch(66% 0 0); }

/* a11y: decorative index numeral -> meets 3:1 (large) while staying a faint watermark */
.ct-prop__index { color: oklch(58% 0 0); }
