/**
 * com_pixcwh — Home (2.13.0, hero rifatto in 2.14.0)
 *
 * Fasce alternate: chiaro (hero blu) → bianco (spazi) → carta calda (come
 * funziona) → bianco (pubblica) → carta calda (perché) → blu scuro (Diventa
 * PRO) → bianco (costi) → carta calda (avvisi). Ogni sezione ha il suo
 * occhiello sopra il titolo.
 *
 * Regola dei colori d'azione: **ambra = azione principale, una sola per
 * fascia**; blu = azione secondaria. Le due non si alternano a caso, per cui
 * l'ambra è `.cwh-home__cta` e basta: se in una fascia ne compaiono due, si
 * vede subito nel markup.
 *
 * Dipende da frontend.css per i token: va sempre caricato dopo.
 */

/* Ritmo verticale della home.
   I token `--cwh-gap-*` arrivano al massimo a 40px: giusti dentro una card,
   troppo stretti per sezioni a tutta pagina. Qui il respiro scala con la
   larghezza, così a 1920px le sezioni non sembrano schiacciate. */
.cwh-home {
  --home-section-y: clamp(56px, 6vw, 104px);
  --home-section-y-sm: clamp(40px, 4vw, 64px);
  --home-head-gap: clamp(24px, 2.5vw, 40px);
  --home-max: 1200px;
  --home-hero-max: 1400px;
}

/* Larghezza del contenuto.
   Gli sfondi restano a tutta pagina perché la fascia colorata sta sulla
   <section>, non sul container: qui si limita solo ciò che si legge.

   Il limite è messo sui FIGLI del container, non sul container stesso: su
   YOOtheme `.uk-container` è impostato dal tema (spesso a tutta larghezza, a
   volte con !important) e una regola sullo stesso elemento perde comunque.
   I figli invece non sono bersaglio di nessuna regola del tema, quindi il
   vincolo tiene sempre. La regola sul container resta come prima linea, per i
   temi che non forzano nulla. */
.cwh-home .uk-container { max-width: var(--home-max); }

.cwh-home .uk-container > * {
  max-width: var(--home-max);
  margin-inline: auto;
}

/* La sezione avvisi resta più stretta del resto: è un form, non una griglia */
.cwh-home .uk-container-small,
.cwh-home .uk-container-small > * { max-width: 900px; }

/* Unica eccezione: la testata è più larga del resto (la mappa ha bisogno di
   respiro). Vale la stessa regola: il limite sta sul FIGLIO del container,
   cioè sulla griglia `.cwh-home__hero-inner`, che il template annida dentro
   `.uk-container` invece di fonderla con esso (fuse, il tema vinceva e la
   griglia andava da bordo a bordo). Le celle hanno già `minmax(0, …)`,
   quindi la mappa non si restringe alla larghezza della sua didascalia. */
.cwh-home__hero .uk-container { max-width: var(--home-hero-max); }

.cwh-home__hero .uk-container > .cwh-home__hero-inner {
  max-width: var(--home-hero-max);
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   0. ELEMENTI RICORRENTI — occhiello, titolo, azione
   ═══════════════════════════════════════════════════════════════════════ */

/* L'occhiello dice di chi parla la sezione prima che il titolo dica cosa */
.cwh-home__kicker {
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cwh-primary);
}

/* Su fondo blu l'occhiello passa all'ambra: il blu su blu non si legge */
.cwh-home__kicker--onblue { color: var(--cwh-accent); }

.cwh-home__section-title {
  margin: 0;
  font-family: var(--cwh-font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cwh-ink);
}

.cwh-home__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--cwh-gap-lg);
  margin-bottom: var(--home-head-gap);
}

.cwh-home__section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cwh-home__section-more {
  flex: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--cwh-primary);
  text-decoration: none;
  white-space: nowrap;
}

.cwh-home__section-more:hover {
  color: var(--cwh-primary-deep);
  text-decoration: underline;
}

/* Azione principale: ambra piena, testo scuro (l'ambra non regge il bianco) */
.cwh-home__cta {
  display: inline-block;
  padding: 14px 30px;
  border: 0;
  border-radius: var(--cwh-r-pill);
  background: var(--cwh-accent);
  color: var(--cwh-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cwh-home__cta:hover,
.cwh-home__cta:focus {
  background: #cf8f28;
  color: var(--cwh-ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--cwh-shadow-md);
}

.cwh-home__cta:focus-visible {
  outline: 2px solid var(--cwh-ink);
  outline-offset: 3px;
}

/* Fascia bianca standard */
.cwh-home__section {
  padding: var(--home-section-y) 0;
  background: var(--cwh-surface);
}

/* ═══════════════════════════════════════════════════════════════════════
   1. HERO — copy a sinistra, mappa o ultime ricerche a destra
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__hero {
  position: relative;
  padding: clamp(56px, 6vw, 104px) 0;
  background: linear-gradient(160deg, var(--cwh-primary) 0%, var(--cwh-primary-deep) 100%);
  color: #fff;
}

/* Con una foto di sfondo l'overlay blu tiene il testo leggibile */
.cwh-home__hero--image {
  background-size: cover;
  background-position: center;
}

.cwh-home__hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(36, 83, 155, .93) 0%, rgba(23, 58, 112, .95) 100%);
}

.cwh-home__hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
}

/* La mappa ha la colonna più larga: il form, con le due domande affiancate,
   sta comodo in meno spazio */
@media (min-width: 960px) {
  .cwh-home__hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  /* Senza colonna destra (nessuno spazio con coordinate) il testo non si
     allarga all'infinito */
  .cwh-home__hero-inner--single { grid-template-columns: minmax(0, 720px); }
}

.cwh-home__hero-title {
  margin: 0;
  font-family: var(--cwh-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.cwh-home__hero-sub {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.cwh-home__hero-back {
  margin: 24px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.cwh-home__hero-form { margin-top: 28px; }

.cwh-home__hero-q {
  display: block;
  margin-bottom: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.cwh-home__hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.cwh-home__hero-select {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--cwh-r-pill);
  background: rgba(255, 255, 255, .97);
  color: var(--cwh-text);
  font-size: 1rem;
  line-height: 1.2;
}

.cwh-home__hero-select:focus-visible {
  outline: 2px solid var(--cwh-accent);
  outline-offset: 2px;
}

/* Le due domande affiancate (settore | città), poi le due uscite */
.cwh-home__hero-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .cwh-home__hero-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.cwh-home__hero-field { min-width: 0; }
.cwh-home__hero-form .cwh-home__hero-select { width: 100%; }
.cwh-home__hero-control { position: relative; }
.cwh-home__hero-fields + .cwh-home__hero-row { margin-top: 18px; }

.cwh-home__hero-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--cwh-r-pill);
  background: rgba(255, 255, 255, .97);
  color: var(--cwh-text);
  font-size: 1rem;
  line-height: 1.2;
}

.cwh-home__hero-input::placeholder { color: var(--cwh-muted); }

.cwh-home__hero-input:focus-visible {
  outline: 2px solid var(--cwh-accent);
  outline-offset: 2px;
}

/* Il dropdown di search.js erediterebbe il bianco dell'hero: testo scuro */
.cwh-home__hero-control .cwh-nominatim-dropdown {
  color: var(--cwh-text);
  text-align: left;
}

/* Seconda uscita del form: pulsante in linea, non ambra (una sola azione
   principale per fascia) */
.cwh-home__hero-alt-btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: var(--cwh-r-pill);
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.cwh-home__hero-alt-btn:hover,
.cwh-home__hero-alt-btn:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
}

.cwh-home__hero-alt-btn:focus-visible {
  outline: 2px solid var(--cwh-accent);
  outline-offset: 2px;
}

.cwh-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cwh-gap-md);
  margin-top: 24px;
}

/* Azione secondaria dell'hero: un link, non un secondo bottone */
.cwh-home__hero-alt {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cwh-home__hero-actions .cwh-home__hero-alt { margin-top: 0; }
.cwh-home__hero-alt:hover { color: #fff; }

/* ── Colonna destra: mappa ────────────────────────────────────────── */

/* Altezza esplicita (non min-height): Leaflet misura il contenitore
   all'init e con un div vuoto resterebbe a zero. z-index:1 crea uno
   stacking context, perché i pane di Leaflet arrivano a 1000 e
   coprirebbero un header sticky. */
.cwh-home__hero-aside,
.cwh-home__hero-searches { width: 100%; }

.cwh-home__hero-map {
  position: relative;
  z-index: 1;
  height: clamp(360px, 32vw, 500px);
  border-radius: var(--cwh-r-lg);
  overflow: hidden;
  background: var(--cwh-surface);
  box-shadow: var(--cwh-shadow-lg);
}

.cwh-home__hero-map-note {
  margin: 10px 0 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .75);
  text-align: right;
}

/* ── Colonna destra: ultime ricerche (utente registrato) ─────────── */

.cwh-home__hero-searches {
  padding: 22px 24px 20px;
  border-radius: var(--cwh-r-lg);
  background: var(--cwh-surface);
  color: var(--cwh-text);
  box-shadow: var(--cwh-shadow-lg);
}

.cwh-home__hero-searches-h {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cwh-muted);
}

.cwh-home__hero-search {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--cwh-border);
  color: var(--cwh-ink);
  text-decoration: none;
}

.cwh-home__hero-search:first-of-type { border-top: 0; }

.cwh-home__hero-search:hover .cwh-home__hero-search-label { color: var(--cwh-primary); }

.cwh-home__hero-search-label {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.cwh-home__hero-search-meta {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  color: var(--cwh-muted);
}

/* La ricerca fissata è blu: l'ambra resta per promo e azione principale */
.cwh-home__hero-search-pin { color: var(--cwh-primary); }

.cwh-home__hero-searches-all {
  display: inline-block;
  margin-top: 12px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--cwh-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   2. GRIGLIE
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__grid {
  display: grid;
  gap: var(--cwh-gap-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cwh-home__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .cwh-home__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════════
   3. CARD COMPATTA (spazi recenti)
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-cardc {
  display: block;
  height: 100%;
  border: 1px solid var(--cwh-border);
  border-radius: var(--cwh-r-md);
  background: var(--cwh-surface);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}

.cwh-cardc:hover {
  box-shadow: var(--cwh-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.cwh-cardc__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--cwh-paper-2);
  overflow: hidden;
}

.cwh-cardc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cwh-cardc__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--cwh-faint);
}

.cwh-cardc__body { display: block; padding: 18px 20px 20px; }

.cwh-cardc__price {
  display: block;
  font-family: var(--cwh-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cwh-ink);
  line-height: 1.2;
}

.cwh-cardc__price small {
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  color: var(--cwh-muted);
}

.cwh-cardc__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cwh-text);
}

.cwh-cardc__city {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--cwh-muted);
}

/* La riga persone dentro la card compatta: più stretta, senza fondo proprio.
   `.cwh-people--compact` esisteva già nel markup senza regole: è il gancio. */
.cwh-cardc .cwh-people {
  margin: 16px 0 0;
  padding: 14px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--cwh-border-soft);
  border-radius: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.cwh-cardc .cwh-people__count { width: 30px; height: 30px; font-size: 12px; }
.cwh-cardc .cwh-people__headline { font-size: 13px; line-height: 1.4; }
.cwh-cardc .cwh-people__sectors { display: none; }

/* Il badge posti va a capo invece di schiacciare la riga persone */
.cwh-cardc .cwh-people__seeking {
  font-size: 11.5px;
  padding: 4px 10px;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   4. COME FUNZIONA — tre passi con frammenti d'interfaccia finti
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__how {
  padding: var(--home-section-y) 0;
  background: var(--cwh-paper);
}

.cwh-home__steps {
  display: grid;
  gap: var(--cwh-gap-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .cwh-home__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cwh-home__step {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--cwh-border);
  border-radius: var(--cwh-r-lg);
  background: var(--cwh-surface);
}

.cwh-home__step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cwh-accent-soft);
  color: var(--cwh-accent-ink);
  font-family: var(--cwh-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.cwh-home__step-title {
  margin: 16px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cwh-ink);
}

.cwh-home__step-body {
  margin: 8px 0 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--cwh-muted);
}

/* ── Frammenti finti ────────────────────────────────────────────────────
   Markup vero ma inerte: nessun input, nessun bottone, tutto `aria-hidden`
   nel template. Qui si limita a somigliare all'interfaccia reale. */

.cwh-fake {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--cwh-border-soft);
  border-radius: var(--cwh-r-md);
  background: var(--cwh-paper);
  /* Il frammento è illustrativo: non deve competere col testo del passo */
  user-select: none;
}

.cwh-home__step .cwh-fake { margin-top: 20px; }

.cwh-fake p { margin: 0; }

.cwh-fake__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--cwh-muted);
  margin-bottom: 10px !important;
}

.cwh-fake__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 6px !important;
  border: 1px solid var(--cwh-border);
  border-radius: var(--cwh-r-sm);
  background: var(--cwh-surface);
  font-size: .85rem;
  color: var(--cwh-text);
}

.cwh-fake__opt--on {
  border-color: var(--cwh-primary);
  background: var(--cwh-primary-soft);
  font-weight: 600;
  color: var(--cwh-primary-deep);
}

.cwh-fake__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cwh-border);
  border-radius: 50%;
  background: var(--cwh-surface);
}

.cwh-fake__opt--on .cwh-fake__dot {
  border-color: var(--cwh-primary);
  box-shadow: inset 0 0 0 3px var(--cwh-surface);
  background: var(--cwh-primary);
}

.cwh-fake__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--cwh-r-pill);
  background: var(--cwh-success-soft);
  color: var(--cwh-success);
  font-size: .72rem;
  font-weight: 700;
}

.cwh-fake__title {
  margin-top: 10px !important;
  font-size: .95rem;
  font-weight: 600;
  color: var(--cwh-ink);
}

.cwh-fake__people {
  margin-top: 4px !important;
  font-size: .82rem;
  color: var(--cwh-muted);
}

.cwh-fake__price {
  margin-top: 8px !important;
  font-family: var(--cwh-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cwh-ink);
}

.cwh-fake__box {
  padding: 12px;
  border: 1px solid var(--cwh-border);
  border-radius: var(--cwh-r-sm);
  background: var(--cwh-surface);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--cwh-muted);
}

.cwh-fake__btn {
  margin-top: 10px !important;
  padding: 9px 16px;
  border-radius: var(--cwh-r-pill);
  background: var(--cwh-accent);
  color: var(--cwh-ink);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   5. HAI UN POSTO LIBERO?
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__publish {
  padding: var(--home-section-y) 0;
  background: var(--cwh-surface);
}

.cwh-home__publish-grid {
  display: grid;
  gap: clamp(28px, 3.5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .cwh-home__publish-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.cwh-home__publish-body {
  margin: 12px 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cwh-muted);
}

.cwh-home__publish-media img {
  display: block;
  width: 100%;
  border-radius: var(--cwh-r-lg);
  box-shadow: var(--cwh-shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════════
   6. DIVENTA PRO — banda blu scuro, sotto "Perché"
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__operator {
  padding: var(--home-section-y) 0;
  background: var(--cwh-ink);
  color: rgba(255, 255, 255, .88);
}

.cwh-home__operator .cwh-home__section-title { color: #fff; }

.cwh-home__operator-intro {
  margin: 14px 0 0;
  max-width: 46em;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}

.cwh-home__operator-grid {
  display: grid;
  gap: var(--cwh-gap-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cwh-home__operator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cwh-home__benefit {
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--cwh-r-lg);
  background: rgba(255, 255, 255, .06);
}

.cwh-home__benefit-h {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.cwh-home__benefit-b {
  margin: 8px 0 0;
  font-size: .93rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.cwh-home__operator-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: var(--home-section-y-sm);
  text-align: center;
}

.cwh-home__operator-price {
  margin: 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
}

/* "Come": tre passi numerati in una riga, sotto le card */
.cwh-home__operator-how {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin: var(--home-section-y-sm) 0 0;
  padding: 0;
  list-style: none;
}

.cwh-home__operator-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
}

.cwh-home__operator-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cwh-accent);
  color: var(--cwh-ink);
  font-size: .8rem;
  font-weight: 700;
}

/* "Per chi": una riga sotto il prezzo */
.cwh-home__operator-who {
  margin: 0;
  max-width: 40em;
  font-size: .95rem;
  color: rgba(255, 255, 255, .7);
}

/* Il confronto con la pubblicazione gratuita resta un link: chi ha una sola
   scrivania non deve finire in un abbonamento per distrazione */
.cwh-home__operator-alt {
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cwh-home__operator-alt:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   7. PERCHÉ COWORKINGHUB — fondo carta calda
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__why {
  padding: var(--home-section-y) 0;
  background: var(--cwh-paper);
}

.cwh-home__why-grid {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 768px) {
  .cwh-home__why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cwh-home__why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cwh-surface);
  box-shadow: var(--cwh-shadow-sm);
  color: var(--cwh-primary);
}

.cwh-home__why-h {
  margin: 18px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--cwh-ink);
}

.cwh-home__why-b {
  margin: 8px 0 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--cwh-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   8. QUANTO COSTA — una riga
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__pricing {
  padding: var(--home-section-y-sm) 0;
  background: var(--cwh-surface);
  border-top: 1px solid var(--cwh-border-soft);
  text-align: center;
}

.cwh-home__pricing-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cwh-text);
}

.cwh-home__pricing-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--cwh-primary);
  text-decoration: none;
}

.cwh-home__pricing-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   9. AVVISAMI
   ═══════════════════════════════════════════════════════════════════════ */

.cwh-home__alert {
  padding: var(--home-section-y) 0;
  background: var(--cwh-paper);
  text-align: center;
}

.cwh-home__alert-intro {
  margin: 12px 0 var(--cwh-gap-lg);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cwh-muted);
}

/* Il form condiviso è pensato per la colonna della lista: qui si allarga */
.cwh-home__alert .cwh-alertform { text-align: left; }

/* ═══════════════════════════════════════════════════════════════════════
   10. TEMA SCURO
   ═══════════════════════════════════════════════════════════════════════ */

/* theme-dark.css ridefinisce i token `--cwh-*` sotto html[data-theme="dark"],
   quindi le fasce cambiano fondo da sole: qui serve solo ciò che i token non
   possono risolvere. */

/* La banda operatori è già scura: nel tema scuro perde il contrasto con il
   resto, quindi si stacca col bordo invece che col fondo */
html[data-theme="dark"] .cwh-home__operator {
  border-top: 1px solid var(--cwh-border);
  border-bottom: 1px solid var(--cwh-border);
}

/* ═══════════════════════════════════════════════════════════════════════
   11. MOBILE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  .cwh-home__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cwh-home__hero-row { flex-direction: column; align-items: stretch; }
  .cwh-home__hero-row .cwh-home__cta,
  .cwh-home__hero-row .cwh-home__hero-alt-btn { width: 100%; }

  .cwh-home__hero-map { height: 300px; }
  .cwh-home__hero-map-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .cwh-home__cta,
  .cwh-home__hero-alt-btn,
  .cwh-cardc { transition: none; }

  .cwh-home__cta:hover,
  .cwh-cardc:hover { transform: none; }
}
