/* ═══════════════════════════════════════════════════════
   CONTATTI.CSS — H2OPEN Contact Page
   hero · channels · form · aside · footer
   footer, scroll-cue → ereditati da style.css
═══════════════════════════════════════════════════════ */

/* ── Active nav link ── */
.nav-link--active {
  color: var(--water) !important;
  cursor: default;
}

/* ── Shared section label ── */
.ct-sec-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--water);
  margin-bottom: 24px;
}

/* ── Reveal: initial state — GSAP anima da questo ── */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
}


/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#ct-hero {
  position: relative;
  padding: clamp(110px, 14vh, 160px) clamp(24px, 7vw, 110px) clamp(48px, 7vh, 80px);
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, #091422 0%, var(--deep) 70%);
  max-width: 1240px;
  margin: 0 auto;
}

#ct-particles {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}

#ct-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

#ct-eyebrow {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--water);
  opacity: 0;
  margin-bottom: 16px;
}

#ct-title {
  font-family: var(--clash);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.025em;
  color: var(--ice);
  margin-bottom: 18px;
}

/* Classi ln/em non più usate nel titolo, mantenute per form-title */
.ct-ln { display: block; overflow: hidden; }
.ct-ln em {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  will-change: transform;
}

#ct-sub {
  font-family: var(--inter);
  font-size: clamp(.82rem, 1.3vw, .95rem);
  font-weight: 300;
  color: rgba(255,255,255,.38);
  line-height: 1.7;
  opacity: 0;
}

/* CTA e badge rimossi dall'hero */
.ct-hero-cta { display: none; }
#ct-hero-badge { display: none; }
#ct-hero-badge span:first-child { color: rgba(0,196,240,.32); }


/* ════════════════════════════════════════════════════════
   CHANNELS
════════════════════════════════════════════════════════ */
#ct-channels {
  padding: clamp(70px, 11vh, 130px) clamp(24px, 7vw, 110px);
  max-width: 1240px;
  margin: 0 auto;
}

#ct-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ct-card {
  background: rgba(0,196,240,.03);
  border: 1px solid rgba(0,196,240,.10);
  border-radius: 14px;
  padding: clamp(26px, 3vw, 40px);
  transition: border-color .35s, box-shadow .35s, transform .35s;
  transition-delay: var(--delay, 0s);
}
.ct-card:hover {
  border-color: rgba(0,196,240,.26);
  box-shadow: 0 0 40px rgba(0,196,240,.06), 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(-4px);
}

.ct-card-icon {
  width: 38px; height: 38px;
  color: var(--water);
  margin-bottom: 22px;
  opacity: .85;
}
.ct-card-icon svg { width: 100%; height: 100%; }

.ct-card-tag {
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  margin-bottom: 12px;
}

.ct-card-title {
  font-family: var(--clash);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ice);
  margin-bottom: 14px;
}

.ct-card-desc {
  font-family: var(--inter);
  font-size: clamp(.75rem, 1.1vw, .87rem);
  font-weight: 300;
  color: var(--ghost);
  line-height: 1.65;
  margin-bottom: 22px;
}

.ct-card-emails {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ct-card-link {
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .07em;
  color: var(--water);
  text-decoration: none;
  display: inline-block;
  transition: color .2s, letter-spacing .2s;
}
.ct-card-link:hover {
  color: #fff;
  letter-spacing: .1em;
}


/* ════════════════════════════════════════════════════════
   FORM SECTION
════════════════════════════════════════════════════════ */
#ct-form-section {
  padding: clamp(60px, 10vh, 120px) clamp(24px, 7vw, 110px) clamp(100px, 14vh, 180px);
  border-top: 1px solid rgba(0,196,240,.07);
  max-width: 1240px;
  margin: 0 auto;
}

#ct-form-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* ── Form header ── */
#ct-form-title {
  font-family: var(--clash);
  font-size: clamp(1.9rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ice);
  margin-bottom: 44px;
}
#ct-form-title .ct-ln { display: block; overflow: hidden; }
#ct-form-title .ct-ln em {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  will-change: transform;
}

/* ── Generic form layout ── */
#ct-form {
  display: flex;
  flex-direction: column;
}

/* Radio chips */
.ct-field-group { margin-bottom: 26px; }

.ct-field-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 12px;
}

.ct-radio-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-chip { cursor: pointer; }
.ct-chip input[type="radio"] { display: none; }
.ct-chip span {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1px solid rgba(0,196,240,.16);
  border-radius: 50px;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  transition: border-color .2s, color .2s, background .2s;
}
.ct-chip input:checked + span {
  border-color: var(--water);
  color: var(--water);
  background: rgba(0,196,240,.08);
}
.ct-chip:hover span {
  border-color: rgba(0,196,240,.38);
  color: rgba(0,196,240,.75);
}

/* 2-col row */
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.ct-row .ct-field { margin-bottom: 0; }

/* Floating label field */
.ct-field {
  position: relative;
  margin-bottom: 16px;
}
.ct-field input,
.ct-field textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,196,240,.13);
  border-radius: 8px;
  padding: 22px 14px 9px;
  font-family: var(--inter);
  font-size: .9rem;
  font-weight: 300;
  color: var(--ice);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: transparent; }

.ct-field input:focus,
.ct-field textarea:focus {
  border-color: rgba(0,196,240,.48);
  box-shadow: 0 0 0 3px rgba(0,196,240,.06);
}
.ct-field input.error,
.ct-field textarea.error {
  border-color: rgba(255,59,59,.5);
}

/* Floating label */
.ct-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--inter);
  font-size: .88rem;
  font-weight: 300;
  color: rgba(255,255,255,.28);
  pointer-events: none;
  transition: top .18s ease, font-size .18s ease, color .18s ease, transform .18s ease;
}
/* Textarea label starts at top */
.ct-field textarea ~ label {
  top: 18px;
  transform: none;
}
/* Floated state */
.ct-field input:focus ~ label,
.ct-field input:not(:placeholder-shown) ~ label,
.ct-field textarea:focus ~ label,
.ct-field textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  transform: none;
  font-size: .6rem;
  letter-spacing: .1em;
  color: rgba(0,196,240,.8);
}

/* Privacy */
.ct-privacy { margin-bottom: 30px; }

.ct-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.ct-checkbox input[type="checkbox"] { display: none; }

.ct-check-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(0,196,240,.24);
  border-radius: 4px;
  background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.ct-checkbox input:checked ~ .ct-check-box {
  background: var(--water);
  border-color: var(--water);
}
.ct-checkbox input:checked ~ .ct-check-box::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid var(--deep);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.ct-check-label {
  font-family: var(--inter);
  font-size: .8rem;
  font-weight: 300;
  color: rgba(255,255,255,.28);
  line-height: 1.6;
}
.ct-check-label a {
  color: var(--water);
  text-decoration: none;
}
.ct-check-label a:hover { text-decoration: underline; }

/* Submit */
.ct-submit-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

#ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--water);
  color: var(--deep);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: box-shadow .3s, transform .2s, opacity .3s;
}
#ct-submit:hover {
  box-shadow: 0 0 28px rgba(0,196,240,.45);
  transform: translateY(-2px);
}
#ct-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#ct-submit-arrow { transition: transform .25s; }
#ct-submit:hover:not(:disabled) #ct-submit-arrow { transform: translateX(5px); }

#ct-submit-note {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
}

/* Success state */
#ct-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 40px 0;
}

#ct-success-icon {
  width: 52px; height: 52px;
  background: rgba(0,196,240,.1);
  border: 1px solid rgba(0,196,240,.28);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--water);
  margin-bottom: 6px;
}
#ct-success h3 {
  font-family: var(--clash);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ice);
}
#ct-success p {
  font-family: var(--inter);
  font-size: .9rem;
  font-weight: 300;
  color: var(--ghost);
  line-height: 1.65;
}
.ct-success-link {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--water);
  text-decoration: none;
  margin-top: 4px;
  transition: color .2s;
}
.ct-success-link:hover { color: #fff; }


/* ════════════════════════════════════════════════════════
   ASIDE
════════════════════════════════════════════════════════ */
#ct-form-aside {
  background: rgba(0,196,240,.03);
  border: 1px solid rgba(0,196,240,.09);
  border-radius: 14px;
  padding: clamp(26px, 3vw, 40px);
  position: sticky;
  top: 28px;
}

#ct-aside-logo {
  font-family: var(--clash);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--water);
  letter-spacing: .1em;
  margin-bottom: 16px;
}

#ct-aside-tagline {
  font-family: var(--inter);
  font-size: .82rem;
  font-weight: 300;
  color: rgba(255,255,255,.32);
  line-height: 1.7;
}

.ct-aside-divider {
  height: 1px;
  background: rgba(0,196,240,.07);
  margin: 24px 0;
}

.ct-aside-label {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  margin-bottom: 14px;
}

.ct-social-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ct-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.30);
  text-decoration: none;
  transition: color .2s;
}
.ct-social:hover { color: var(--water); }
.ct-social svg { width: 15px; height: 15px; color: inherit; flex-shrink: 0; }

/* Notify mini-form */
#ct-notify-form {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}
#ct-notify-email {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,196,240,.13);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: var(--inter);
  font-size: .8rem;
  font-weight: 300;
  color: var(--ice);
  outline: none;
  transition: border-color .25s;
}
#ct-notify-email:focus { border-color: rgba(0,196,240,.42); }
#ct-notify-email::placeholder { color: rgba(255,255,255,.18); }

#ct-notify-btn {
  background: transparent;
  border: 1px solid rgba(0,196,240,.28);
  border-radius: 6px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--water);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
#ct-notify-btn:hover {
  background: rgba(0,196,240,.08);
  border-color: rgba(0,196,240,.5);
}
#ct-notify-btn:disabled { opacity: .5; cursor: default; }

#ct-notify-note {
  font-family: var(--inter);
  font-size: .72rem;
  font-weight: 300;
  color: rgba(255,255,255,.18);
}


/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
#ct-footer {
  border-top: 1px solid rgba(0,196,240,.07);
  padding: 28px clamp(24px, 7vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-copy {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.16);
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.5); }


/* SCROLL CUE — ereditato da style.css, nessuna sovrascrittura necessaria */


/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  #ct-form-inner {
    grid-template-columns: 1fr;
  }
  #ct-form-aside {
    order: -1;
    position: static;
  }
}

@media (max-width: 780px) {
  #ct-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .ct-row { grid-template-columns: 1fr; }
  #ct-hero-badge { display: none; }
}

@media (max-width: 640px) {
  #ct-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 80px; /* spazio per la nav fissa */
  }
  #ct-form-section {
    padding-bottom: 100px;
  }
}
