/* Contatti (D106): minimal form, stamps, tracking. */

.ct-hero { position: relative; overflow: hidden; padding: 64px 0 120px; background: var(--ink-2); }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.ct-hero__text { padding-top: 40px; }
.ct-hero h1 { margin: 0 0 28px; font-size: clamp(48px, 4.8vw, 76px) !important; line-height: 1.02 !important; }
.ct-hero .ct-hero__lead { margin: 0; max-width: 480px; font-size: 19px !important; line-height: 1.6 !important; color: var(--mist); }
.ct-facts { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.ct-facts li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.ct-tick { flex: 0 0 auto; color: var(--gold); }
.ct-mail { display: inline-block; margin-top: 30px; font-family: var(--serif); font-size: 30px; color: var(--cream); border-bottom: 1.5px solid var(--gold-line); }

/* The form: a white card, fields with labels inside, choices as buttons. */
.ct-card {
  padding: 40px 40px 34px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--hair), 0 50px 90px -60px rgba(23, 25, 26, .45);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease .3s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .3s;
}
.is-ready .ct-card { opacity: 1; transform: none; }
.ct-honey { position: absolute; left: -9999px; opacity: 0; }
.ct-form__title { margin-bottom: 24px; font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--cream); }
.ct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.ct-field { position: relative; display: block; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  min-height: 62px;
  padding: 26px 18px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--ink-2);
  font: 400 16px var(--sans);
  color: var(--cream);
  transition: border-color .2s ease, background-color .2s ease;
}
.ct-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover { border-color: var(--hair-strong); }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus { outline: none; border-color: var(--cream); background: #FFFFFF; }
.ct-field__label {
  position: absolute;
  inset-inline-start: 19px;
  top: 21px;
  font-size: 16px;
  color: var(--mist);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s ease, color .2s ease;
}
.ct-field input:focus + .ct-field__label,
.ct-field input:not(:placeholder-shown) + .ct-field__label,
.ct-field textarea:focus + .ct-field__label,
.ct-field textarea:not(:placeholder-shown) + .ct-field__label,
.ct-field select:focus + .ct-field__label,
.ct-field--select.is-filled .ct-field__label { transform: translateY(-12px) scale(.78); color: var(--gold); }
[dir="rtl"] .ct-field__label { transform-origin: right top; }
.ct-field.is-invalid input,
.ct-field.is-invalid select,
.ct-field.is-invalid textarea { border-color: rgba(181, 92, 77, .6); background: #FFFFFF; }
.ct-field__error { display: block; margin: 6px 4px 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: #8F3D31; }
.ct-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: rgba(181, 92, 77, .08); font-size: 14px; color: #8F3D31; }
.ct-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.ct-field__chevron { position: absolute; inset-inline-end: 20px; top: 24px; color: var(--mist); pointer-events: none; transition: transform .2s ease; }
.ct-field select:focus ~ .ct-field__chevron { transform: rotate(180deg); color: var(--cream); }

.ct-form__send { display: flex !important; justify-content: center; width: 100%; margin-top: 26px; min-height: 56px; font-size: 16px; }
.ct-form__send[disabled] { opacity: .65; cursor: progress; }
.ct-card .ct-form__privacy { margin: 14px 0 0; text-align: center; font-size: 13px !important; color: var(--mist); }
.ct-form__privacy a { color: var(--cream); border-bottom: 1px solid currentColor; }
.ct-error { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #FFF4E5; font-size: 15px; line-height: 1.5; color: var(--cream); }
.ct-error a { color: var(--gold); font-weight: 600; border-bottom: 1px solid currentColor; }

/* After sending: a tick that draws itself, the name and the request number. */
.ct-done { display: flex; flex-direction: column; align-items: center; padding: 40px 10px 20px; text-align: center; animation: ct-done .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes ct-done { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ct-done__check { width: 76px; height: 76px; margin-bottom: 24px; }
.ct-done__check circle,
.ct-done__check path { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ct-draw .8s cubic-bezier(.65, 0, .35, 1) forwards; }
.ct-done__check path { stroke: var(--gold-line); stroke-width: 3; animation-delay: .6s; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-done__title { font-family: var(--serif); font-size: 40px; line-height: 1.08; color: var(--cream); }
.ct-card .ct-done__text { max-width: 420px; margin: 16px 0 0; color: var(--mist); }
.ct-done__text strong { color: var(--cream); }
.ct-done__ticket { margin-top: 26px; padding: 8px 14px; border-radius: 999px; background: var(--ink-2); font-family: var(--mono); font-size: 13px; color: var(--mist); text-transform: capitalize; }

/* What happens next, tracked like a parcel; a paper plane goes down the route. */
.ct-track-section { padding: 0 0 140px; background: var(--ink-2); }
.ct-track__wrap { max-width: 860px !important; }
.ct-track-section h2 { margin: 0 0 56px; font-size: clamp(38px, 4.2vw, 64px) !important; line-height: 1.04 !important; }
.ct-track { position: relative; padding: 34px 34px 10px; border-radius: 28px; background: #FFFFFF; box-shadow: 0 40px 80px -50px rgba(23, 25, 26, .4); }
.ct-track__route { position: absolute; left: 212px; top: 52px; bottom: 60px; width: 2px; background: repeating-linear-gradient(transparent 0 6px, rgba(23, 25, 26, .2) 6px 12px); }
.ct-track__route i { display: block; width: 100%; height: 100%; background: var(--cream); transform-origin: center top; transform: scaleY(var(--p, 0)); }
.ct-track__plane {
  position: absolute;
  left: 213px;
  top: calc(52px + var(--p, 0) * (100% - 112px));
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 999px;
  background: var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(184, 153, 104, .2);
}
.ct-track__plane svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linejoin: round; transform: rotate(135deg); }
.ct-track__stages { margin: 0; padding: 0; list-style: none; }
.ct-stage { display: grid; grid-template-columns: 160px 40px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 40px; }
.ct-stage__when { padding-top: 2px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--mist); }
.ct-stage__dot { justify-self: center; position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 2px; border-radius: 999px; background: #FFFFFF; border: 2px solid var(--hair-strong); transition: background-color .4s ease, border-color .4s ease; }
.ct-stage.is-done .ct-stage__dot { background: var(--cream); border-color: var(--cream); }
.ct-stage h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--cream); }
.ct-stage p { margin: 0; font-size: 16px !important; color: var(--mist); }
.ct-stage > div { opacity: .4; transition: opacity .5s ease; }
.ct-stage.is-done > div { opacity: 1; }

@media (max-width: 900px) {
  .ct-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ct-hero__text { padding-top: 0; }
  .ct-hero h1 { font-size: clamp(40px, 10vw, 60px) !important; }
  .ct-hero .ct-hero__lead { font-size: 17px !important; }
  .ct-card { padding: 28px 20px 24px; border-radius: 22px; }
  .ct-form__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-form__title { font-size: 27px; }
  .ct-done__title { font-size: 32px; }
  .ct-track { padding: 26px 18px 6px; }
  .ct-track__route { left: 27px; }
  .ct-track__plane { left: 28px; }
  .ct-stage { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .ct-stage__when { grid-column: 2; grid-row: 1; text-align: left; }
  .ct-stage__dot { grid-column: 1; grid-row: 1 / span 2; }
  .ct-stage > div { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-done, .ct-done__check * { transition: none !important; animation: none !important; }
  .ct-card { opacity: 1; transform: none; }
  .ct-done__check * { stroke-dashoffset: 0; }
}
