/* Halloween a Gaiofana (/halloween, /halloween/candida, admin delle case).
   Stesso aspetto del volantino chiaro: carta, inchiostro viola scuro,
   sticker con contorno e ombra netta, carattere tondo. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('/fonts/nunito.woff2') format('woff2');
}

:root {
  --hw-carta: #fff8ec;
  --hw-inchiostro: #2a1b3d;
  --hw-zucca: #ff8a1f;
  --hw-viola: #6f3fb0;
  --hw-viola-chiaro: #8a5cc4;
  --hw-viola-scuro: #5b2d8f;
  --hw-verde: #6cbf3a;
  --hw-rosa: #e0566b;
  --hw-tenue: #5f4e74;
  --hw-tondo: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, sans-serif;
}

.hw-body { background: var(--hw-carta); }

.hw {
  font-family: var(--hw-tondo);
  color: var(--hw-inchiostro);
  padding-bottom: 3rem;
  font-weight: 600;
}
.hw h1, .hw h2, .hw h3 { text-wrap: balance; }
.hw h2 { font-size: 1.45rem; font-weight: 900; color: var(--hw-viola-scuro); margin: 0 0 0.4rem; }
.hw a { color: var(--hw-viola-scuro); }
.hw a:hover { color: #b5470c; }
.hw-titolo-nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hw-sezione { margin-top: 2.2rem; }
.hw-intro { margin: 0 0 0.9rem; color: var(--hw-tenue); max-width: 62ch; }
.hw-stretta { max-width: 680px; }
.hw-indietro { margin: 1.2rem 0 0.8rem; }

.hw-anteprima {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: #fff0c2;
  border: 2px dashed var(--hw-inchiostro);
  border-radius: 10px;
}

/* ---------- testata ---------- */
.hw-hero { padding: 2rem 0 0.5rem; }
.hw-hero-dentro { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hw-hero-testo { flex: 1 1 340px; min-width: 0; }
.hw-occhiello {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hw-viola-scuro);
}
.hw-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
  color: var(--hw-zucca);
  -webkit-text-stroke: 2px var(--hw-inchiostro);
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--hw-inchiostro);
}
.hw-claim { margin: 0.9rem 0 0.3rem; font-size: 1.15rem; font-weight: 800; max-width: 34ch; }
.hw-sotto { margin: 0; color: var(--hw-tenue); }
.hw-hero-sticker { flex: 0 1 300px; display: flex; justify-content: center; gap: 0.4rem; min-width: 0; }
.hw-hs { width: 31%; max-width: 92px; display: block; filter: drop-shadow(2px 3px 0 var(--hw-inchiostro)); position: relative; }
.hw-hs svg { display: block; width: 100%; height: auto; overflow: visible; }
.hw-hs-sede { transform: rotate(-6deg); }
.hw-hs-circo { transform: translateY(10px) rotate(4deg); }
.hw-hs-ristoro { transform: rotate(-2deg); }
.hw-hs .pip-orbita { position: absolute; inset: -8px; pointer-events: none; }
.hw-hs .pip { position: absolute; width: 26px !important; top: 0; right: -4px; }
.hw-hs .pip2 { top: auto; bottom: 8px; right: auto; left: -6px; width: 20px !important; }

.hw-azioni { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; align-items: center; }
.hw-btn {
  display: inline-block;
  font: inherit;
  font-weight: 900;
  font-size: 1rem;
  border: 2.5px solid var(--hw-inchiostro);
  border-radius: 12px;
  background: #fff;
  color: var(--hw-inchiostro) !important;
  padding: 0.6rem 1.1rem;
  box-shadow: 2px 3px 0 var(--hw-inchiostro);
  text-decoration: none;
  cursor: pointer;
}
.hw-btn:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 var(--hw-inchiostro); }
.hw-btn-viola { background: var(--hw-viola); color: #fff !important; }
.hw-btn-arancio { background: var(--hw-zucca); }
.hw-btn-pieno { width: 100%; text-align: center; }
.hw-btn:focus-visible, .hw-chip:focus-visible, .turno-scelta:focus-within { outline: 3px solid var(--hw-zucca); outline-offset: 2px; }

/* ---------- da sapere ---------- */
.hw-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hw-info-voce {
  background: #fff;
  border: 2.5px solid var(--hw-inchiostro);
  border-radius: 14px;
  box-shadow: 3px 4px 0 var(--hw-inchiostro);
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.2rem;
  border-top-width: 8px;
}
.hw-info-voce strong { font-weight: 900; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hw-info-voce span { line-height: 1.4; }
.hw-info-0 { border-top-color: var(--hw-zucca); }
.hw-info-1 { border-top-color: var(--hw-verde); }
.hw-info-2 { border-top-color: #3a7bd5; }
.hw-info-3 { border-top-color: var(--hw-viola-chiaro); }

/* ---------- carte ---------- */
.hw-carta {
  background: #fff;
  border: 3px solid var(--hw-inchiostro);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--hw-inchiostro);
  padding: 1.2rem clamp(1rem, 4vw, 1.6rem) 1.4rem;
}
.hw-h1 { margin: 0 0 0.6rem; font-size: 1.6rem; font-weight: 900; color: var(--hw-viola-scuro); }
.hw-nota { color: var(--hw-tenue); }
.hw-punti { padding-left: 1.2rem; line-height: 1.5; }

/* ---------- mappa ---------- */
.hw-mappa-box {
  position: relative;
  margin: 0 auto;
  width: calc(100% - 2 * clamp(1rem, 4vw, 2.25rem));
  max-width: 1040px;
  height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  border: 3px solid var(--hw-inchiostro);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--hw-inchiostro);
  overflow: hidden;
  background: var(--hw-carta);
}
.hw-mappa-box.a-schermo {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  z-index: 3000;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html.hw-bloccato, html.hw-bloccato body { overflow: hidden; }
.hw-mappa-barra {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 3px solid var(--hw-inchiostro);
  background: var(--hw-carta);
  flex-wrap: wrap;
  flex: none;
}
.hw-barra-spazio { flex: 1; }
.hw-chip {
  flex: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  border: 2px solid var(--hw-inchiostro);
  border-radius: 999px;
  background: #fff;
  color: var(--hw-inchiostro);
  padding: 4px 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hw-chip i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--hw-inchiostro); background: var(--c); }
.hw-chip[aria-pressed="false"]:not(.hw-chip-azione) { opacity: 0.45; text-decoration: line-through; }
.hw-chip-azione { background: #fff0c2; }
.hw-chip[disabled] { opacity: 0.6; }
.hw-mappa { flex: 1; min-height: 0; background: var(--hw-carta); }
.hw-mappa.metti { cursor: crosshair; }
.hw-mappa .leaflet-container, .hw-mappa.leaflet-container { font-family: var(--hw-tondo); background: var(--hw-carta); }
.hw-mappa .leaflet-control-attribution { font-size: 10px; background: rgba(255, 248, 236, 0.85); }
.hw-mappa .leaflet-control-attribution a { color: var(--hw-viola-scuro); }
.hw-mappa .leaflet-bar a { background: #fff; color: var(--hw-inchiostro); border-color: var(--hw-inchiostro); font-weight: 900; }
.hw-mappa.leaflet-touch .leaflet-bar { border: 2.5px solid var(--hw-inchiostro); box-shadow: 2px 3px 0 var(--hw-inchiostro); }

/* sticker: fermi; ogni tanto uno a caso fa la sua mossa (classe .anima, una volta sola) */
.st { background: none; border: 0; }
.st svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-attr { cursor: pointer; }
.st-attr .disco { filter: drop-shadow(1.5px 2px 0 var(--hw-inchiostro)); transform-origin: 50% 50%; }
.st-attr .nome {
  position: absolute; left: 50%; top: calc(100% - 4px);
  transform: translateX(-50%) rotate(-2deg);
  white-space: nowrap; background: #fff;
  border: 2px solid var(--hw-inchiostro); border-radius: 7px;
  padding: 0 6px; font-weight: 900; font-size: 10.5px; color: var(--c);
  box-shadow: 1.5px 1.5px 0 var(--hw-inchiostro);
}
.lontano .st-attr .nome { display: none; }
.st .pip-orbita { position: absolute; inset: -8px; pointer-events: none; z-index: 2; }
.st .pip { position: absolute; width: 18px !important; top: 2px; right: 0; }
.st .pip2 { top: auto; bottom: 6px; right: auto; left: -2px; width: 14px !important; }
.st-casa { cursor: pointer; }
.st-casa .corpo, .st-casa .zucchetta { transform-box: fill-box; transform-origin: 50% 100%; }
.st-casa .famiglie, .st-casa .attesa {
  position: absolute; top: -5px; right: -7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--hw-zucca); color: #fff;
  border: 2px solid var(--hw-inchiostro);
  font-weight: 900; font-size: 10px; line-height: 13px; text-align: center;
}
.st-casa .attesa { right: auto; left: -7px; background: #fff0c2; color: var(--hw-inchiostro); }
.st-casa.in-attesa > div { opacity: 0.6; }
.leaflet-marker-draggable.st-casa { cursor: grab; }

.anima .disco { animation: hw-dondolo 1.4s ease-in-out 1; }
.anima .pip-orbita { animation: hw-orbita 2.4s ease-in-out 1; }
.anima .pip { animation: hw-batti 0.2s ease-in-out 12 alternate; }
.st-casa.anima .corpo { animation: hw-tremolio 1.3s ease-in-out 1; }
.st-casa.anima .finestra { animation: hw-luci 2s steps(1) 1; }
.st-casa.anima .finestra.f1 { animation-delay: 0.3s; }
.st-casa.anima .finestra.f2 { animation-delay: 0.6s; }
.st-casa.anima .finestra.f3 { animation-delay: 0.9s; }
.st-casa.anima .luce { animation: hw-lampeggio 0.5s steps(1) 4; }
.st-casa.anima .fantasmino { animation: hw-sbuca 2s ease-in-out 1; }
.st-casa.anima .zucchetta { animation: hw-saltino 1s ease-in-out 1; }

@keyframes hw-dondolo { 0%, 100% { transform: none; } 25% { transform: scale(1.12) rotate(-6deg); } 50% { transform: scale(1.12) rotate(5deg); } 75% { transform: scale(1.05) rotate(-2deg); } }
@keyframes hw-orbita { to { transform: rotate(360deg); } }
@keyframes hw-batti { to { transform: scaleY(0.5); } }
@keyframes hw-tremolio { 0%, 100% { transform: none; } 15% { transform: rotate(-6deg); } 35% { transform: rotate(6deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
@keyframes hw-luci { 0%, 100% { fill: #ffd34d; } 20% { fill: #4a2f6b; } 30% { fill: #ffd34d; } 45% { fill: #4a2f6b; } 60% { fill: #ffd34d; } }
@keyframes hw-lampeggio { 50% { opacity: 0.2; } }
@keyframes hw-sbuca { 0%, 100% { transform: none; } 30% { transform: translateY(14px); } 60% { transform: translateY(-6px) rotate(-6deg); } 80% { transform: translateY(0) rotate(4deg); } }
@keyframes hw-saltino { 0%, 100% { transform: none; } 40% { transform: translateY(-9px) rotate(-10deg); } 70% { transform: translateY(0) rotate(4deg); } }
@keyframes hw-pulsa { 0% { box-shadow: 0 0 0 0 rgba(58, 123, 213, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(58, 123, 213, 0); } }

/* il puntino "sono qui" */
.hw-io span {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #3a7bd5; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--hw-inchiostro);
  animation: hw-pulsa 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .anima, .anima *, .hw-io span { animation: none !important; }
}

/* scheda che sale dal basso, dentro la mappa */
.hw-scheda {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 1100;
  background: #fff;
  border: 3px solid var(--hw-inchiostro);
  border-radius: 16px;
  box-shadow: 4px 5px 0 var(--hw-inchiostro);
  padding: 12px 14px 14px;
  max-width: 460px;
  margin-inline: auto;
  display: grid;
  gap: 5px;
  animation: hw-sale 0.25s ease-out;
}
.hw-mappa-box.a-schermo .hw-scheda { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.hw-scheda h3 { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--c, var(--hw-viola-scuro)); padding-right: 38px; }
.hw-scheda .dove { font-weight: 800; font-size: 0.88rem; }
.hw-scheda p { margin: 0; font-size: 0.93rem; line-height: 1.4; color: var(--hw-tenue); }
.hw-scheda ul { margin: 2px 0 0; padding-left: 18px; font-size: 0.92rem; line-height: 1.45; }
.hw-scheda .nota { color: var(--hw-tenue); }
.hw-scheda .badge { justify-self: start; font-size: 0.76rem; font-weight: 900; border: 2px solid var(--hw-inchiostro); border-radius: 999px; padding: 1px 9px; background: var(--b, #fff0da); color: var(--hw-inchiostro); }
.hw-chiudi {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border-radius: 50%; border: 2.5px solid var(--hw-inchiostro); background: var(--hw-carta);
  font: inherit; font-weight: 900; font-size: 1rem; color: var(--hw-inchiostro); cursor: pointer;
}
.hw-cta {
  justify-self: start; margin-top: 4px; font-weight: 900; font-size: 0.92rem;
  border: 2.5px solid var(--hw-inchiostro); border-radius: 12px;
  background: var(--hw-viola); color: #fff !important; padding: 6px 14px;
  box-shadow: 2px 3px 0 var(--hw-inchiostro); text-decoration: none;
}
@keyframes hw-sale { from { transform: translateY(20px); opacity: 0; } }

.hw-elenco { margin-top: 1rem; }
.hw-elenco summary { cursor: pointer; font-weight: 800; color: var(--hw-viola-scuro); }
.hw-elenco ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.5rem; }
.hw-elenco li { display: grid; gap: 0.1rem; padding: 0.5rem 0.7rem; background: #fff; border: 2px solid var(--hw-inchiostro); border-radius: 10px; }
.hw-elenco-n { font-size: 0.85rem; color: #b5470c; }
.hw-elenco-det { font-size: 0.9rem; color: var(--hw-tenue); }

/* ---------- cosa c'è ---------- */
.hw-attrazioni { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hw-attrazione {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fff;
  border: 2.5px solid var(--hw-inchiostro);
  border-radius: 14px;
  box-shadow: 3px 4px 0 var(--hw-inchiostro);
  padding: 0.85rem 0.95rem;
}
.hw-attrazione > div { min-width: 0; }
.hw-attrazione-sticker { flex: none; width: 58px; position: relative; filter: drop-shadow(1.5px 2px 0 var(--hw-inchiostro)); }
.hw-attrazione-sticker svg { display: block; width: 100%; height: auto; overflow: visible; }
.hw-attrazione-sticker .pip-orbita { display: none; }
.hw-attrazione h3 { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--c); }
.hw-attrazione p { margin: 0.2rem 0 0; line-height: 1.4; }
.hw-dove { font-weight: 800; font-size: 0.88rem; }
.hw-link { display: inline-block; margin-top: 0.4rem; font-weight: 900; }

/* ---------- candida ---------- */
.hw-candida { display: flex; gap: 1rem; align-items: flex-start; background: #fff0da; }
.hw-candida > div { min-width: 0; }
.hw-candida h2 { margin-top: 0.1rem; }
.hw-candida-sticker { flex: none; width: 64px; }
.hw-candida-sticker svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- prenotazione (dentro il riquadro "Partecipa" del sito) ---------- */
.hw-prenota .evento-registrazione { margin: 0; padding: 0; border: 0; }
.hw .evento-registrazione-titolo { font-size: 1.45rem; font-weight: 900; color: var(--hw-viola-scuro); }
.hw .evento-reg-intro { margin: 0 0 1rem; color: var(--hw-tenue); }
.hw .evento-reg-box { background: #f3ecfb; border-left-color: var(--hw-viola-chiaro); }
.hw .evento-reg-info { background: #fff0da; color: var(--hw-inchiostro); }
.hw .form-evento-iscrivi label { font-weight: 800; color: var(--hw-inchiostro); }
.hw .form-evento-iscrivi input[type="number"],
.hw .form-evento-iscrivi input[type="text"],
.hw .form-evento-iscrivi input[type="email"],
.hw .form-evento-iscrivi input[type="tel"],
.hw .form-evento-iscrivi textarea,
.hw-form input[type="text"], .hw-form input[type="email"], .hw-form input[type="tel"], .hw-form textarea {
  border: 2px solid var(--hw-inchiostro);
  border-radius: 10px;
  font-weight: 600;
}
.hw .form-evento-iscrivi input[type="number"] { max-width: 8rem; }
.hw .form-evento-iscrivi input:focus, .hw .form-evento-iscrivi textarea:focus,
.hw-form input:focus, .hw-form textarea:focus { outline: 3px solid var(--hw-zucca); outline-offset: 1px; }
.hw .has-error { border-color: var(--danger) !important; }
.hw .errore { display: block; color: var(--danger); font-size: 0.88rem; font-weight: 800; margin-top: 0.25rem; }
.hw .hint { color: var(--hw-tenue); font-weight: 600; }
.hw .btn-primary {
  background: var(--hw-viola); color: #fff; font-weight: 900;
  border: 2.5px solid var(--hw-inchiostro); border-radius: 12px;
  box-shadow: 2px 3px 0 var(--hw-inchiostro);
}
.hw .btn-primary:hover { background: var(--hw-viola-scuro); }
.hw .evento-reg-anagrafica legend { color: var(--hw-viola-scuro); font-weight: 900; }

.hw .form-evento-iscrivi label.turno-scelta { border-color: var(--hw-inchiostro); }
.hw .turno-posti { color: var(--hw-tenue); }
.hw .turno-scelta:has(input:checked) { background: var(--hw-viola); box-shadow: 2px 3px 0 var(--hw-inchiostro); }

/* ---------- modulo candidatura ---------- */
.hw-form { margin-top: 1rem; }
.hw-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.hw-form legend { font-weight: 900; padding: 0; margin-bottom: 0.4rem; color: var(--hw-viola-scuro); }
.hw-form label { display: block; margin: 0 0 0.9rem; font-weight: 800; }
.hw-form input[type="text"], .hw-form input[type="email"], .hw-form input[type="tel"], .hw-form textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.7rem;
  font: inherit; font-size: 1rem; background: #fff;
}
.hw-form textarea { resize: vertical; }
.hw-form .hint { display: block; margin-top: 0.25rem; font-size: 0.88rem; }
.hw-form .checkbox-inline { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; }
.hw-form .checkbox-inline input { margin-top: 0.3rem; }
.hw-riga { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hw-riga > label { margin-bottom: 0.3rem; }
.hw-cresce { flex: 1 1 200px; min-width: 0; }
.hw-civico { flex: 0 0 5.5rem; }
.hw-riga .hw-cresce:has(+ .hw-civico) { flex-basis: 140px; }
.hw-scelte { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hw-form label.hw-scelta { margin: 0; position: relative; }
.hw-scelta input { position: absolute; opacity: 0; }
.hw-scelta span {
  display: inline-block; padding: 0.45rem 0.9rem;
  border: 2px solid var(--hw-inchiostro); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer;
}
.hw-scelta input:checked + span { background: var(--hw-zucca); box-shadow: 2px 3px 0 var(--hw-inchiostro); }
.hw-scelta input:focus-visible + span { outline: 3px solid var(--hw-viola-chiaro); outline-offset: 2px; }

/* ---------- pagina della candidatura ---------- */
.hw-stato { font-weight: 800; padding: 0.55rem 0.8rem; border-radius: 10px; border: 2px solid var(--hw-inchiostro); background: #fff0c2; }
.hw-stato-approvata { background: #d9f0c8; }
.hw-stato-rifiutata, .hw-stato-ritirata { background: #f1ece4; }
.hw-riepilogo { display: grid; gap: 0.5rem; margin: 1rem 0; }
.hw-riepilogo div { display: grid; gap: 0.05rem; }
.hw-riepilogo dt { font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hw-tenue); }
.hw-riepilogo dd { margin: 0; }
.hw-link-box { background: #fff0da; border: 2px dashed var(--hw-inchiostro); border-radius: 12px; padding: 0.7rem 0.9rem; margin: 1rem 0; }
.hw-link-box p { margin: 0 0 0.5rem; }
.hw-link-box input { width: 100%; font: inherit; font-size: 0.9rem; padding: 0.45rem 0.6rem; border: 2px solid var(--hw-inchiostro); border-radius: 8px; }

/* ---------- admin delle case ---------- */
.hw-admin .hw-mappa-box { width: 100%; height: min(62vh, 560px); margin: 1rem 0 0.3rem; }
.hw-esito { min-height: 1.4em; margin: 0 0 1rem; color: var(--green-700, #2f7a44); font-weight: 600; }
.hw-admin-lista { display: grid; gap: 0.8rem; }
.hw-admin-casa { background: #fff; border: 1px solid var(--cream-100, #f4ecd8); border-radius: 12px; padding: 0.8rem 1rem; scroll-margin-top: 5rem; }
.hw-admin-casa.is-spenta { opacity: 0.6; }
.hw-admin-casa header { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hw-admin-casa h2 { margin: 0; font-size: 1.1rem; }
.hw-admin-casa p { margin: 0.4rem 0; }
.hw-admin-n { font-size: 0.85rem; color: #b5470c; font-weight: 600; }
.hw-admin-manca { font-size: 0.85rem; color: var(--danger, #b3321f); font-weight: 600; }
.hw-admin-contatto { font-size: 0.92rem; color: var(--ink-700, #3a4a40); }
.hw-admin-azioni { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 0.5rem; }
.hw-admin-azioni form { margin: 0; }
.hw-admin-nuova { background: #fff; border: 1px solid var(--cream-100, #f4ecd8); border-radius: 12px; padding: 0.8rem 1rem; margin: 0 0 1rem; scroll-margin-top: 5rem; }
.hw-admin-nuova summary { cursor: pointer; font-weight: 700; color: var(--green-700, #2f7a44); }
.hw-admin-modifica { margin-top: 0.5rem; }
.hw-admin-modifica summary { cursor: pointer; color: var(--green-700, #2f7a44); }
.hw .evento-reg-turni legend { color: var(--hw-viola-scuro); font-weight: 900; }
.hw .form-evento-iscrivi label.checkbox-inline { font-weight: 600; }
.hw .turni-griglia { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.hw .form-evento-iscrivi label.turno-scelta { padding: 0.4rem 0.5rem; }
.hw .turno-ora { white-space: nowrap; }

/* Testata della pagina "Candida la tua casa", che si condivide anche da sola. */
.hw-testata-mini { margin: 1.4rem 0 1rem; }
.hw-testata-mini .hw-occhiello { margin-bottom: 0.25rem; }
.hw-marchio {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1;
  font-weight: 900;
}
.hw-marchio a {
  color: var(--hw-zucca);
  text-decoration: none;
  -webkit-text-stroke: 2px var(--hw-inchiostro);
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--hw-inchiostro);
}
.hw-marchio a:hover { color: var(--hw-zucca); }
.hw-rimando { margin: 1.4rem 0 0; color: var(--hw-tenue); }
.hw-rimando a { font-weight: 900; }

/* ---------- racconta com'è andata ---------- */
.hw-form select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.7rem;
  font: inherit; font-size: 1rem; background: #fff;
  border: 2px solid var(--hw-inchiostro); border-radius: 10px;
}
.hw-voto { display: flex; gap: 0.2rem; flex-direction: row-reverse; justify-content: flex-end; }
.hw-form label.hw-voto-stella { margin: 0; position: relative; cursor: pointer; }
.hw-voto-stella input { position: absolute; opacity: 0; }
.hw-voto-stella span[aria-hidden] { font-size: 2.1rem; line-height: 1; color: #e3dbcc; -webkit-text-stroke: 1.5px var(--hw-inchiostro); }
/* le stelle sono in ordine inverso: quella scelta e le "precedenti" si colorano */
.hw-voto-stella:has(input:checked) span[aria-hidden],
.hw-voto-stella:has(input:checked) ~ .hw-voto-stella span[aria-hidden],
.hw-voto-stella:hover span[aria-hidden],
.hw-voto-stella:hover ~ .hw-voto-stella span[aria-hidden] { color: var(--hw-zucca); }
.hw-voto-stella input:focus-visible + span { outline: 3px solid var(--hw-viola-chiaro); outline-offset: 2px; border-radius: 4px; }
.hw-form label.hw-scegli-foto { display: inline-block; position: relative; margin: 0 0 0.3rem; }
.hw-scegli-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hw-scegli-foto:focus-within { outline: 3px solid var(--hw-zucca); outline-offset: 2px; }
.hw-anteprime { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.hw-anteprime img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--hw-inchiostro); border-radius: 8px; }
.hw-form .hw-esito { color: var(--hw-viola-scuro); font-weight: 800; }

/* invito a raccontare sulla pagina /halloween */
.hw-racconta-invito { display: flex; gap: 1rem; align-items: flex-start; background: #f3ecfb; }
.hw-racconta-invito > div { min-width: 0; }
.hw-racconta-invito h2 { margin-top: 0.1rem; }
.hw-link-racconta { justify-self: start; font-weight: 900; font-size: 0.9rem; }
