/* =========================================================================
   HappyHoury — demo statica per pitch
   Foglio di stile unico condiviso da index.html, chat.html, location.html
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* colori */
  --bg:            #0C0A0D;
  --surface:       #171216;
  --surface-2:     #1C161B;
  --surface-3:     #221A20;
  --band:          #110E12;
  --border:        rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);
  --text:          #F4EFE9;
  --muted:         #9B939C;
  --muted-soft:    #6F6772;

  --pink:          #FF2E63;
  --pink-soft:     #FF6C93;
  --pink-grad:     linear-gradient(135deg, #D6246E 0%, #FF4D7A 100%);
  --pink-grad-x:   linear-gradient(90deg, #D6246E 0%, #FF4D7A 100%);
  --amber:         #F5B841;

  /* tipografia */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* misure */
  --wrap:      1160px;
  --gutter:    32px;
  --header-h:  88px;                              /* altezza header sticky */
  --sticky-top: calc(var(--header-h) + 24px);     /* offset condiviso: pannello chat + box prezzi */
  --section-y: 112px;
  --r-card:    18px;
  --r-lg:      20px;

  /* ombre */
  --glow-pink: 0 10px 34px rgba(255, 46, 99, .34);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, .45);
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; border: 0; }
a   { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(255, 46, 99, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------
   3. Layout di base
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section--tight { padding: calc(var(--section-y) * .72) 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--text);
}

.kicker {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 14px;
}

.hairline { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* accento serif corsivo rosa, con riga sottile sotto */
.ink {
  font-style: italic;
  color: var(--pink);
  position: relative;
  display: inline-block;
}
.ink--underline::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  bottom: .04em;
  height: 2px;
  background: rgba(255, 46, 99, .5);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   4. Bottoni, chip, badge
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .005em;
  padding: 13px 26px;
  transition: transform .22s ease, box-shadow .22s ease,
              background-color .22s ease, border-color .22s ease, color .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-image: var(--pink-grad);
  color: #fff;
  box-shadow: var(--glow-pink);
}
.btn--primary:hover { box-shadow: 0 14px 40px rgba(255, 46, 99, .46); }

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .015);
}
.btn--ghost:hover {
  border-color: rgba(255, 46, 99, .5);
  background: rgba(255, 46, 99, .07);
}

.btn--sm  { font-size: 14px; padding: 10px 20px; }
.btn--lg  { font-size: 16.5px; padding: 17px 40px; }
.btn--block { display: flex; width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .028);
  color: #DED7DC;
  font-size: 14px;
  padding: 9px 17px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 46, 99, .45);
  background: rgba(255, 46, 99, .06);
}
.chip:active { transform: translateY(0) scale(.985); }
.chip--sm { font-size: 13px; padding: 7px 14px; }

.badge-amber {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #241703;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 6px 13px;
  white-space: nowrap;
}

.badge-pink {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background-image: var(--pink-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 46, 99, .3);
}

.round-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.round-arrow:hover { border-color: rgba(255, 46, 99, .5); color: var(--text); }
.round-arrow:active { transform: scale(.94); }

/* -------------------------------------------------------------------------
   5. Foto con overlay cinematografico (+ fallback per-foto)
   ------------------------------------------------------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: #191319;
  background-image:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 46, 99, .10), transparent 60%),
    linear-gradient(160deg, #241B23 0%, #161216 55%, #0F0C10 100%);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
              rgba(7, 5, 8, .92) 0%,
              rgba(7, 5, 8, .58) 32%,
              rgba(7, 5, 8, .26) 66%,
              rgba(7, 5, 8, .16) 100%);
}
/* segnaposto elegante quando la singola foto non è disponibile */
.ph.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 11px);
}

/* -------------------------------------------------------------------------
   6. Strip promo + header
   ------------------------------------------------------------------------- */
.promo {
  background-image: var(--pink-grad-x);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .012em;
  padding: 11px 20px;
  position: relative;
  z-index: 60;
}
.promo a { display: inline-block; }
.promo a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 10, 13, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1;
}
.logo span { color: var(--pink); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}
.nav a {
  font-size: 14.5px;
  color: #CFC7CE;
  letter-spacing: .005em;
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

/* -------------------------------------------------------------------------
   7. Hero (index)
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: -180px;
  width: 1180px;
  height: 900px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 46, 99, .20), rgba(255, 46, 99, .07) 55%, transparent 78%);
  filter: blur(12px);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin-bottom: 26px;
}
.hero__title .line { display: block; }

.hero__sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  max-width: 560px;
  margin: 0 auto 44px;
}

.hero__micro {
  margin-top: 22px;
  font-size: 13px;
  color: #8C7B85;
  letter-spacing: .01em;
}
.hero__micro b { color: var(--pink); font-weight: 600; }

/* -------------------------------------------------------------------------
   8. Card chat (home) + composer condiviso
   ------------------------------------------------------------------------- */
.chatcard {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 26px 28px;
  text-align: left;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .03) inset;
}
.chatcard::before {
  content: "";
  position: absolute;
  inset: -160px -200px -180px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 46, 99, .30), rgba(255, 46, 99, .12) 58%, transparent 92%);
  filter: blur(24px);
}

.chatcard__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}
.chatcard__name { font-size: 14.5px; font-weight: 600; }
.chatcard__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* pallino "online": dice che dall'altra parte c'è qualcuno */
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  margin-right: 8px;
  flex: none;
  animation: live 2.6s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(255, 46, 99, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 46, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: var(--pink-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  flex: none;
}
.avatar--sm { width: 28px; height: 28px; font-size: 14px; }
.avatar--lg { width: 54px; height: 54px; font-size: 22px; }

.bubble-ai {
  display: inline-block;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
  padding: 15px 20px;
  font-size: 16px;
  color: #E9E2E7;
  max-width: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.composer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  margin-top: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 22px rgba(0, 0, 0, .38);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.composer:hover { border-color: rgba(255, 255, 255, .26); }
.composer:focus-within {
  border-color: rgba(255, 46, 99, .55);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 4px rgba(255, 46, 99, .12);
}
/* nella card dell'hero è l'elemento su cui deve cadere l'occhio */
.chatcard .composer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
              0 0 0 4px rgba(255, 46, 99, .07),
              0 10px 26px rgba(0, 0, 0, .42);
}
.composer input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 15px;
  padding: 12px 0;
  color: var(--text);
  text-overflow: ellipsis;
}
.composer input::placeholder { color: #9A8F98; }

.send {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-image: var(--pink-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(255, 46, 99, .48);
  transition: transform .2s ease, box-shadow .2s ease;
}
.send:hover { box-shadow: 0 12px 30px rgba(255, 46, 99, .58); }
.send:active { transform: scale(.96); }
.send svg { width: 18px; height: 18px; }

/* --- barra di ricerca dell'hero: deve gridare "scrivi qui" --------------- */
.chatcard .composer {
  margin-top: 22px;
  padding: 8px 8px 8px 24px;
  animation: searchBreath 5.5s ease-in-out infinite;
}
.chatcard .composer input { font-size: 15.5px; padding: 15px 0; }
.chatcard .composer:hover,
.chatcard .composer:focus-within { animation: none; }

@keyframes searchBreath {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
                0 0 0 3px rgba(255, 46, 99, .05),
                0 10px 26px rgba(0, 0, 0, .42);
    border-color: rgba(255, 255, 255, .18);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
                0 0 0 8px rgba(255, 46, 99, .10),
                0 16px 34px rgba(0, 0, 0, .5);
    border-color: rgba(255, 46, 99, .38);
  }
}

/* placeholder "scritto a macchina": il cursore lampeggiante spiega il gesto */
.composer__ghost {
  display: none;
  position: absolute;
  left: 24px;
  right: 74px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15.5px;
  line-height: 1;
  color: #9A8F98;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.composer__caret {
  flex: none;
  width: 2px;
  height: 1.15em;
  border-radius: 1px;
  background: var(--pink);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
/* il placeholder nativo resta per chi non ha JS, poi lascia il posto al fantasma */
.composer.is-typing .composer__ghost { display: flex; }
.composer.is-typing input::placeholder { color: transparent; }
.composer.is-typing.has-value .composer__ghost { display: none; }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.chips-row .chip { font-size: 12.5px; padding: 8px 12px; gap: 6px; }

/* -------------------------------------------------------------------------
   9. Come funziona
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step { border-top: 1px solid var(--border-strong); padding-top: 20px; }
.step__num {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: var(--pink);
  letter-spacing: .01em;
  margin-bottom: 16px;
}
.step__title { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.step__sub   { font-size: 14.5px; color: var(--muted); }
.step__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pink);
  margin-top: 18px;
}

/* -------------------------------------------------------------------------
   11. Occasioni di questo mese
   ------------------------------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.occ {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1),
              border-color .3s ease, box-shadow .3s ease;
}
.occ:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: var(--shadow-card);
}

.occ__ph { aspect-ratio: 16 / 11; }
.occ__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.occ__body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.occ__title { font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; }
.occ__price { font-size: 14.5px; color: var(--muted); }
.occ__price b { color: var(--text); font-weight: 600; }
.occ__urg { font-size: 13.5px; color: var(--pink); font-weight: 500; }
.occ__cta { margin-top: auto; padding-top: 6px; }

/* -------------------------------------------------------------------------
   12. Sfoglia per tipo di evento
   ------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tile {
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .13); }
.tile .ph { position: absolute; inset: 0; }
.tile__name {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -.01em;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

/* -------------------------------------------------------------------------
   13. Dicono di noi
   ------------------------------------------------------------------------- */
.voices {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}
.voices__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.quote:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .13); }
.quote__text { font-size: 14.5px; line-height: 1.55; color: #E4DDE3; }
.quote__who { display: flex; align-items: flex-start; gap: 11px; margin-top: auto; }
.quote__name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.quote__meta { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.founders {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  isolation: isolate;
}
.founders .ph { position: absolute; inset: 0; z-index: -1; }
.founders .ph::after {
  background: linear-gradient(180deg, rgba(13, 9, 13, .95) 0%, rgba(18, 11, 16, .93) 55%, rgba(24, 12, 19, .97) 100%);
}
.founders__avatars { display: flex; margin-bottom: 22px; }
.founders__avatars .avatar {
  background-image: none;
  background-color: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text);
}
.founders__avatars .avatar + .avatar { margin-left: -14px; }
.founders__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: var(--text);
}
.founders__meta { margin-top: auto; padding-top: 30px; font-size: 13px; color: var(--muted); }

.stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat__n {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.01em;
}
.stat__l { font-size: 13.5px; color: var(--muted); }

/* -------------------------------------------------------------------------
   14. Fascia "Hai una location?"
   ------------------------------------------------------------------------- */
.band {
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 58px 0;
}
.band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.band__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 32px);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.band__sub { font-size: 14.5px; color: var(--muted); }

/* -------------------------------------------------------------------------
   15. CTA finale
   ------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 130px 0 140px;
}
.cta__glow {
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 1000px;
  height: 720px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 46, 99, .34), rgba(255, 46, 99, .10) 52%, transparent 76%);
  filter: blur(14px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .62; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.07); }
}
.cta .wrap { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 62px 0 34px;
  background: #0A080B;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-footer__tag {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.55;
}
.fcol__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 16px;
}
.fcol li + li { margin-top: 10px; }
.fcol a { font-size: 14px; color: #C4BCC3; transition: color .2s ease; }
.fcol a:hover { color: var(--pink); }

.site-footer__bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* -------------------------------------------------------------------------
   17. Rivelazione allo scroll
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s cubic-bezier(.22, .61, .36, 1),
              transform .75s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   PAGINA 2 — chat.html
   ========================================================================= */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  padding: 40px 0 110px;
}

.chat-col__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.chat-col__title { font-size: 15px; font-weight: 600; }
.chat-col__status { font-size: 12.5px; color: var(--muted-soft); }
.chat-col__replay {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color .2s ease, border-color .2s ease;
}
.chat-col__replay:hover { color: var(--text); border-color: rgba(255, 46, 99, .45); }

/* --- thread: scorre con la pagina, nessuno scroll interno --- */
.thread { display: flex; flex-direction: column; gap: 18px; }
.thread > * { scroll-margin-top: calc(var(--header-h) + 24px); }

.row { display: flex; flex-direction: column; }
.row--ai   { align-items: flex-start; }
.row--user { align-items: flex-end; }

.enter { animation: bubbleIn .42s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.msg {
  max-width: 78%;
  font-size: 15.5px;
  line-height: 1.55;
  padding: 14px 19px;
  border-radius: 18px;
}
.msg--ai {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  color: #E9E2E7;
}
.msg--user {
  background-image: var(--pink-grad);
  border-bottom-right-radius: 6px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 46, 99, .22);
}
.msg--form { width: min(440px, 100%); }
.msg__cta { margin-top: 15px; }

.msg__tag {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

/* typing indicator */
.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
  padding: 16px 20px;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8D8391;
  display: block;
  animation: blink 1.25s infinite ease-in-out both;
}
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .28; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-3px); }
}

/* quick replies */
.qr-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.qr {
  border-radius: 999px;
  border: 1px solid rgba(255, 46, 99, .34);
  background: rgba(255, 46, 99, .07);
  color: #FFD5E0;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.qr:hover { background: rgba(255, 46, 99, .16); transform: translateY(-2px); }
.qr.is-pressed { transform: scale(.96); background: rgba(255, 46, 99, .24); }
.qr[disabled] { opacity: .38; pointer-events: none; transform: none; }

/* mini-form (NON è un <form>: nessun submit su file://) */
.miniform { margin-top: 16px; display: grid; gap: 10px; }
.miniform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field {
  background: #100D11;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #6C636E; }
.field:focus { border-color: rgba(255, 46, 99, .5); box-shadow: 0 0 0 3px rgba(255, 46, 99, .08); }

.toggle {
  display: inline-flex;
  background: #100D11;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  width: max-content;
}
.toggle button {
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 20px;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}
.toggle button.is-on { background-image: var(--pink-grad); color: #fff; }

.miniform__micro { font-size: 12.5px; color: var(--muted-soft); line-height: 1.5; }

/* barra di ricerca stile Skyscanner */
.searchbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: block;
}
.searchbar__title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.searchbar__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.searchbar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background-image: var(--pink-grad-x);
  box-shadow: 0 0 14px rgba(255, 46, 99, .5);
  transition: width .35s linear;
}
.searchbar__status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  min-height: 22px;
  transition: opacity .3s ease;
}
.searchbar__hint { margin-top: 6px; font-size: 12px; color: var(--muted-soft); }

/* card proposta */
.proposals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  width: 100%;
}
.prop {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease, box-shadow .3s ease;
}
.prop:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .14); box-shadow: var(--shadow-card); }
.prop--top { border-color: rgba(255, 46, 99, .34); }
.prop__ph { aspect-ratio: 16 / 11; }
.prop__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.prop__body { padding: 14px 13px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.prop__title { font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.prop__meta  { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.prop__price { font-size: 13px; color: var(--text); font-weight: 500; }
.prop__tag {
  align-self: flex-start;
  font-size: 11.5px;
  color: #BFB7BE;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .025);
}
.prop__actions { margin-top: auto; padding-top: 10px; display: grid; gap: 7px; }
.prop__actions .btn { font-size: 13px; padding: 10px 12px; }

.refine { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- pannello destro --- */
.panel { position: sticky; top: var(--sticky-top); }
.panel__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel__title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.panel__empty { font-size: 13.5px; color: var(--muted-soft); line-height: 1.5; }

.facts { display: flex; flex-direction: column; gap: 11px; }
.fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #E4DDE3;
  animation: bubbleIn .4s cubic-bezier(.22, .61, .36, 1) both;
}
.fact em {
  font-style: normal;
  color: var(--muted);
  font-size: 13.5px;
}

.panel__sep { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }

.timeline { display: flex; flex-direction: column; }
.tl {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 20px;
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .09);
}
.tl:last-child::before { display: none; }
.tl__dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: 3px;
  background: #221C22;
  border: 1px solid rgba(255, 255, 255, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
}
.tl__label { font-size: 13.5px; color: var(--muted-soft); transition: color .3s ease; }

.tl.is-done .tl__dot { background-image: var(--pink-grad); border-color: transparent; }
.tl.is-done .tl__label { color: var(--text); }

.tl.is-active .tl__dot {
  background: var(--pink);
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(255, 46, 99, .55);
  animation: pulse 1.9s ease-out infinite;
}
.tl.is-active .tl__label { color: var(--text); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 46, 99, .5); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 46, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

.panel__wa {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted-soft);
  line-height: 1.5;
}
.panel__wa a { color: #C4BCC3; }
.panel__wa a:hover { color: var(--pink); }

/* =========================================================================
   PAGINA 3 — location.html
   ========================================================================= */
.crumb {
  font-size: 12.5px;
  color: var(--muted-soft);
  padding: 26px 0 20px;
}
.crumb a:hover { color: var(--text); }
.crumb span { color: #C4BCC3; }

.loc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 30px;
}
.loc-head__title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.loc-head__sub { font-size: 15px; color: var(--muted); }

.lock-badge {
  flex: none;
  max-width: 320px;
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--surface);
  border: 1px solid rgba(255, 46, 99, .38);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #DCD4DA;
  margin-top: 6px;
}

/* gallery a mosaico */
.gallery {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery .ph { border-radius: 12px; }
.gallery .ph:first-child { grid-row: span 2; }
.gallery .ph::after {
  background: linear-gradient(to top, rgba(7, 5, 8, .78) 0%, rgba(7, 5, 8, .3) 45%, rgba(7, 5, 8, .02) 100%);
}
.gallery__more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 7, 10, .62);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 10px;
}

.loc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 52px 0 110px;
}
/* l'aside deve occupare tutta l'altezza della griglia, altrimenti lo sticky non ha corsa */
.loc-layout > aside { align-self: stretch; }

.feats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }

.prose { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.prose p { font-size: 15.5px; line-height: 1.75; color: #CFC7CE; }

.block-title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.inout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 46px;
}
.inout__col { padding: 24px 26px; }
.inout__col + .inout__col { border-left: 1px solid var(--border); }
.inout__h { font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.inout li {
  font-size: 14.5px;
  color: #CFC7CE;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.inout li + li { margin-top: 10px; }
.inout .yes { color: var(--pink); font-weight: 600; }
.inout .no  { color: var(--muted-soft); font-weight: 600; }
.inout small { display: block; color: var(--muted-soft); font-size: 12.5px; margin-top: 3px; }

/* mappa di zona stilizzata */
.map {
  position: relative;
  height: 280px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  overflow: hidden;
  background-color: #100D12;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 132px 132px, 132px 132px, 33px 33px, 33px 33px;
}
.map::before,
.map::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .06);
}
.map::before { left: -20%; right: -20%; top: 42%; height: 6px; transform: rotate(-11deg); }
.map::after  { left: -20%; right: -20%; top: 68%; height: 3px; transform: rotate(7deg); }
.map__area {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 46, 99, .42);
  background: radial-gradient(circle, rgba(255, 46, 99, .30) 0%, rgba(255, 46, 99, .12) 58%, rgba(255, 46, 99, .04) 100%);
}
.map__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 12.5px;
  color: #C4BCC3;
  background: linear-gradient(to top, rgba(8, 6, 9, .95), rgba(8, 6, 9, 0));
}

/* location simili */
.simili { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.mini:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .14); }
.mini__ph { aspect-ratio: 16 / 10; display: block; }
.mini__body { display: block; padding: 14px 15px 16px; }
.mini__title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mini__meta { display: block; font-size: 12.5px; color: var(--muted); }

/* box prezzi sticky */
.pricebox {
  position: sticky;
  top: var(--sticky-top);
  background: var(--surface);
  border: 1px solid rgba(255, 46, 99, .3);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 0 46px rgba(255, 46, 99, .12), var(--shadow-card);
}
.pricebox__big {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.pricebox__big small { font-size: 17px; color: var(--muted); font-family: var(--sans); letter-spacing: 0; }
.pricebox__sub { font-size: 14px; color: var(--muted); margin-top: 8px; }

.ptable { margin: 22px 0; border-top: 1px solid var(--border); }
.ptable li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.ptable b { color: var(--text); font-weight: 600; }

.pnote {
  background: rgba(255, 46, 99, .075);
  border: 1px solid rgba(255, 46, 99, .18);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #E0D8DE;
  margin-bottom: 20px;
}

.pricebox__alt {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricebox__alt:hover { color: var(--pink); }

.pricebox__trust {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* =========================================================================
   PAGINA 4 — progetto.html (documento interno)
   ========================================================================= */
.doc-flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px dashed rgba(255, 46, 99, .45);
  background: rgba(255, 46, 99, .06);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12.5px;
  color: #E4DDE3;
  margin-bottom: 26px;
}

.doc-hero { padding: 64px 0 24px; }
.doc-hero__title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.doc-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}

.doc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.doc-section { padding: 72px 0 0; }
.doc-section__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -.015em;
  margin-bottom: 14px;
}
.doc-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #CFC7CE;
  max-width: 760px;
  margin-bottom: 34px;
}

/* blocchi "perché" */
.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.why__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px 26px;
}
.why__h {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 9px;
}
.why__p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* palette */
.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.swatch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.swatch__chip { height: 78px; }
.swatch__body { padding: 14px 16px 16px; }
.swatch__hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.swatch__use { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* specimen tipografico */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px;
}
.type-card__sample {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.type-card__sample--serif { font-family: var(--serif); }
.type-card__sample--sans  { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.type-card__meta { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.type-card__meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #C4BCC3;
}

/* fasi della roadmap */
.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px 24px 28px;
  height: 100%;
}
.phase--now { border-color: rgba(255, 46, 99, .34); }
.phase__num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 12px;
}
.phase__h { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.phase__when { font-size: 12.5px; color: var(--muted-soft); margin-bottom: 20px; }
.phase li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #CFC7CE;
}
.phase li + li { margin-top: 12px; }
.phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 46, 99, .55);
}

/* checklist */
.todo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}
.todo li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.55;
  color: #DED7DC;
}
.todo li > span:first-child { flex: none; margin-top: 1px; }
.todo li > span:last-child  { flex: 1 1 auto; min-width: 0; }
.todo li small { display: block; color: var(--muted-soft); font-size: 12.5px; margin-top: 3px; }
.todo .done { color: var(--pink); font-weight: 600; }
.todo .open { color: var(--muted-soft); font-weight: 600; }

/* decisioni prese */
.decisions { display: grid; gap: 14px; }
.decision {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px 24px;
}
.decision__k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
  padding-top: 3px;
}
.decision__v { font-size: 15px; line-height: 1.6; color: #CFC7CE; }

.doc-note {
  margin-top: 30px;
  background: rgba(255, 46, 99, .075);
  border: 1px solid rgba(255, 46, 99, .18);
  border-radius: var(--r-card);
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #E0D8DE;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  :root { --section-y: 88px; }
  .nav { gap: 24px; }
  .chat-layout { grid-template-columns: 1fr; gap: 34px; }
  .panel { position: static; }
  .loc-layout { grid-template-columns: 1fr; gap: 40px; }
  .pricebox { position: static; }
  .voices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 32px; }
}

@media (max-width: 900px) {
  .why, .swatches, .type-grid, .phases, .todo { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision { grid-template-columns: 1fr; gap: 8px; }
  .site-header .wrap { gap: 16px; }
  .nav { display: none; }
  .site-header .wrap > .btn { margin-left: auto; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .simili { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .msg { max-width: 88%; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 64px; --header-h: 68px; }
  .hero { padding: 60px 0 70px; }
  .hero__title { font-size: clamp(34px, 9vw, 48px); }
  .chatcard { padding: 18px; }
  .cards-3, .tiles, .simili, .voices__cards, .proposals { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
  .loc-head { flex-direction: column; }
  .lock-badge { max-width: none; }
  .gallery {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 120px 120px;
  }
  .gallery .ph:first-child { grid-column: span 2; grid-row: span 1; }
  .inout { grid-template-columns: 1fr; }
  .inout__col + .inout__col { border-left: 0; border-top: 1px solid var(--border); }
  .miniform__grid { grid-template-columns: 1fr; }
  .stats { gap: 26px 34px; }
  .site-footer__bottom { flex-direction: column; }
  .chat-layout { padding: 24px 0 70px; }
  .composer { padding-left: 16px; }
}

/* ---- Mobile: la barra della chat è il gesto principale, deve essere ovvia ---- */
@media (max-width: 560px) {
  .hero { padding-bottom: 46px; }

  /* card chat dell'hero */
  .chatcard { padding: 16px 14px 18px; }
  .chatcard__head { margin-bottom: 16px; gap: 9px; }
  .chatcard__name   { font-size: 14px; white-space: nowrap; }
  .chatcard__status { font-size: 11.5px; white-space: nowrap; }
  .bubble-ai { font-size: 15px; padding: 12px 16px; }

  /* input a pillola: più alto, più contrastato, con il bottone ben staccato */
  .composer {
    padding: 6px 6px 6px 18px;
    gap: 8px;
    margin-top: 18px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
  }
  .composer input { font-size: 16px; padding: 14px 0; }   /* 16px: evita lo zoom automatico di iOS al focus */
  .chatcard .composer { padding: 6px 6px 6px 18px; margin-top: 20px; }
  .chatcard .composer input { font-size: 16px; padding: 14px 0; }
  .composer__ghost { left: 18px; right: 62px; font-size: 16px; }
  .send { width: 48px; height: 48px; }
  .send svg { width: 19px; height: 19px; }

  /* le chip diventano pastiglie tonde solo-emoji: una riga sola, niente effetto elenco */
  .chips-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
  }
  .chips-row .chip {
    width: 56px;
    height: 56px;
    flex: none;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 23px;
    line-height: 1;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .16);
  }
  .chips-row .chip__txt { display: none; }
  .hero__micro { font-size: 12.5px; line-height: 1.8; }

  /* chat.html: bolle più larghe, quick reply e mini-form comodi da toccare */
  .chat-col__head { margin-bottom: 20px; }
  .msg { max-width: 92%; font-size: 15px; }
  .qr { padding: 11px 18px; font-size: 14px; }
  .msg--form { width: 100%; }
  .field { padding: 13px 14px; font-size: 15px; }
  .toggle { width: 100%; }
  .toggle button { flex: 1 1 0; padding: 10px 12px; }
  .searchbar { padding: 18px 16px; }
  .refine { gap: 7px; }

  /* location.html */
  .lock-badge { font-size: 12px; }
  .pricebox { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
