/* MAIKER HUB · Home, contatti «Chat»: il modulo diventa una conversazione con il team.
   Le domande arrivano una alla volta; si risponde con un tocco o scrivendo; a lato si compila il riepilogo. */
.cc-intro { display: grid; gap: 22px; justify-items: center; text-align: center; margin-bottom: clamp(56px, 8vw, 110px); }
.cc-intro h2 { font-size: clamp(48px, 7vw, 124px); max-width: 13ch; }
.cc-intro p { color: var(--soft); max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); }
.cc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 110px); align-items: center; scroll-margin-top: 110px; }
.cc-win { background: var(--carbon); border: 2px solid var(--white); box-shadow: 16px 16px 0 var(--orange), 16px 16px 0 2px var(--white); display: flex; flex-direction: column; height: min(720px, 82vh); height: min(720px, 82svh); }
.cc-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid #ffffff25; }
.cc-ava { display: flex; }
.cc-ava img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--carbon-2); margin-left: -10px; }
.cc-ava img:first-child { margin-left: 0; }
.cc-head b { font: 700 17px/1.1 "Syne", sans-serif; }
.cc-head small { display: block; font-size: 12px; color: var(--community); font-weight: 700; }
.cc-log { flex: 1; overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.cc-msg { max-width: 82%; padding: 12px 15px; font-size: 15px; line-height: 1.45; animation: ccIn .45s var(--pop); }
@keyframes ccIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.cc-msg.them { align-self: flex-start; background: #f2efe7; color: var(--carbon); border: 2px solid var(--carbon); box-shadow: 4px 4px 0 var(--orange); }
.cc-msg.me { align-self: flex-end; background: var(--orange); color: var(--carbon); border: 2px solid var(--carbon); }
.cc-msg a { color: inherit; text-underline-offset: 3px; }
.cc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #f2efe7; border: 2px solid var(--carbon); }
.cc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--carbon); animation: ccDots 1s infinite; }
.cc-typing i:nth-child(2) { animation-delay: .15s; }
.cc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ccDots { 50% { transform: translateY(-5px); opacity: .4; } }
.cc-reply { border-top: 1px solid #ffffff25; padding: 18px 22px 22px; display: grid; gap: 12px; }
.cc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-opts button { padding: 10px 14px; border: 2px solid var(--white); background: none; color: var(--white); font: 600 14px "DM Sans", sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.cc-opts button:hover, .cc-opts button:focus-visible { background: var(--white); color: var(--carbon); }
.cc-text { display: flex; gap: 8px; }
.cc-text[hidden] { display: none; }
.cc-text input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--white); background: #0b0f14; color: var(--white); font: 16px "DM Sans", sans-serif; }
.cc-text input:focus { outline: none; border-color: var(--orange); }
.cc-text input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cc-side > p { color: var(--soft); max-width: 40ch; }
.cc-tag { font: 800 12px/1 "DM Sans", sans-serif; letter-spacing: .16em; color: var(--orange); }
.cc-how { color: var(--soft); font-size: 16px; max-width: 34ch; }
.cc-sum { margin-top: 22px; padding: 26px; border: 1px dashed #ffffff50; background: #0b0f1480; display: grid; gap: 12px; font-size: 15px; }
.cc-sum .lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cc-sum div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ffffff15; padding-bottom: 10px; }
.cc-sum span { color: var(--soft); }
.cc-sum b { text-align: right; overflow-wrap: anywhere; }
.cc-mail { margin-top: 22px; font-size: 15px; color: var(--soft); }
.cc-mail a { color: var(--orange); text-underline-offset: 4px; }

@media (max-width: 900px) {
  .cc { grid-template-columns: 1fr; gap: 24px; }
  .cc-intro { margin-bottom: 44px; }
  .cc-how { display: none; }
  /* il riepilogo resta anche su telefono, sotto la chat e più compatto */
  .cc-sum { order: 2; font-size: 14px; }
  .cc-head b { font-size: 15px; }
  .cc-head small { font-size: 11px; }
  .cc-win { height: min(620px, 85vh); height: min(620px, 85svh); margin-right: 10px; box-shadow: 8px 8px 0 var(--orange), 8px 8px 0 2px var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-msg { animation: none; }
  .cc-typing i { animation: none; }
}

/* sfondo: la materia «connessione» (due forme che si incontrano), scurita perché testi e chat restino leggibili */
.s-contact::before { display: none; }
.cc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.s-contact::after { background: radial-gradient(ellipse 62% 36% at 50% 19%, #151b23eb, #151b2399 70%, transparent 100%), radial-gradient(ellipse 34% 40% at 82% 62%, #151b23d9, transparent 85%), linear-gradient(180deg, #151b23cc, #151b2373 45%, #151b23b3), var(--grain); }
.cc-head { text-align: left; }
.cc-head > div:last-child { min-width: 0; }
/* telefono in orizzontale: la chat sta tutta nello schermo, sotto la barra */
@media (max-height: 500px) and (orientation: landscape) {
  .cc-win { height: calc(100vh - 96px); height: calc(100svh - 96px); min-height: 280px; }
}
