/* ============================================================================
   HANAMI — falling cherry petals easter egg  (home only)
   Self-contained & REMOVABLE: delete this file + js/petals.js and their two
   <link>/<script> tags in index.html to revert the site completely.
   The modal uses HANAMI's OWN palette (cherry red-pink on white), NOT the
   site's ochre/black — it reads as a little window into the film's world.
   Palette source: vault "03 Projects/HANAMI/05 System/(C) HANAMI - Design System".
   ========================================================================== */

#hanami-petal-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;      /* the site stays fully usable underneath */
  z-index: 1200;             /* above content, below the preloader */
}

/* ---- HANAMI modal --------------------------------------------------------- */
#hanami-modal{
  --hn-band:  #C2314B;   /* cherry-blossom red-pink */
  --hn-rust:  #A9291E;   /* dry-cherry red */
  --hn-ink:   #1C1A18;   /* warm near-black */
  --hn-paper: #FFFFFF;   /* pure white */
  --hn-grey:  #726C64;   /* secondary text */
  --hn-rule:  #DCD5C9;   /* thin divider */
  --hn-pink:  #FBD9DF;   /* soft pink (text on the band) */

  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 12, 13, 0.4);
  -webkit-backdrop-filter: blur(3px) saturate(112%);
  backdrop-filter: blur(3px) saturate(112%);
  opacity: 0;
  transition: opacity .5s ease;
}
#hanami-modal.is-in{ opacity: 1; }

#hanami-modal .hm__card{
  position: relative;
  width: min(93vw, 448px);
  max-height: 92vh;
  overflow: hidden;
  background: var(--hn-paper);
  color: var(--hn-ink);
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform: translateY(16px);
  transition: transform .6s cubic-bezier(.16, .84, .3, 1);
}
#hanami-modal.is-in .hm__card{ transform: translateY(0); }

/* header band (bleeds to the card edges) */
#hanami-modal .hm__band{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--hn-band);
  color: var(--hn-pink);
  padding: 18px 22px;
}
#hanami-modal .hm__wordmark{
  font-family: var(--sans, 'Archivo', sans-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  color: #fff;
}
#hanami-modal .hm__wordmark em{
  font-style: normal;
  font-family: var(--mono, 'Space Mono', monospace);
  font-weight: 400;
  font-size: 14px;
  color: var(--hn-pink);
  margin-left: 4px;
}
#hanami-modal .hm__meta{
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hn-pink);
}

/* body */
#hanami-modal .hm__body{ padding: 26px 26px 26px; }
#hanami-modal .hm__kicker{
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hn-rust);
  margin: 0 0 12px;
}
#hanami-modal .hm__lead{
  font-family: var(--sans, 'Archivo', sans-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--hn-ink);
  margin: 0 0 22px;
}

/* newsletter */
#hanami-modal .hm__news{ border-top: 1px solid var(--hn-rule); padding-top: 18px; }
#hanami-modal .hm__news-label{
  display: block;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hn-grey);
  margin: 0 0 10px;
}
#hanami-modal .hm__news-row{ display: flex; gap: 8px; }
#hanami-modal .hm__news-input{
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans, 'Archivo', sans-serif);
  font-size: 14px;
  color: var(--hn-ink);
  background: #fff;
  border: 1px solid var(--hn-rule);
  border-radius: 2px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .2s ease;
}
#hanami-modal .hm__news-input:focus{ border-color: var(--hn-band); }
#hanami-modal .hm__news-input::placeholder{ color: #a8a29b; }
#hanami-modal .hm__news-btn{
  flex: 0 0 auto;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hn-band);
  border: 0;
  border-radius: 2px;
  padding: 0 18px;
  cursor: pointer;
  transition: background-color .2s ease;
}
#hanami-modal .hm__news-btn:hover{ background: var(--hn-rust); }
#hanami-modal .hm__news-note{
  font-family: var(--sans, 'Archivo', sans-serif);
  font-size: 11.5px;
  color: var(--hn-grey);
  margin: 10px 0 0;
}
#hanami-modal .hm__news-status{
  font-family: var(--sans, 'Archivo', sans-serif);
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 0;
}
#hanami-modal .hm__news-status.is-ok{ color: var(--hn-band); font-weight: 600; }
#hanami-modal .hm__news-status.is-err{ color: var(--hn-rust); }

/* close */
#hanami-modal .hm__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--hn-pink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}
#hanami-modal .hm__close:hover{ color: #fff; transform: rotate(90deg); }

@media (max-width: 520px){
  #hanami-modal{ padding: 16px; }
  #hanami-modal .hm__card{ width: min(80vw, 310px); }
  #hanami-modal .hm__band{ padding: 11px 13px; }
  #hanami-modal .hm__wordmark{ font-size: 16px; }
  #hanami-modal .hm__wordmark em{ font-size: 11px; }
  #hanami-modal .hm__meta{ font-size: 8px; letter-spacing: .12em; }
  #hanami-modal .hm__body{ padding: 15px 15px 17px; }
  #hanami-modal .hm__kicker{ font-size: 9px; margin: 0 0 8px; }
  #hanami-modal .hm__lead{ font-size: 13px; margin: 0 0 14px; }
  #hanami-modal .hm__news{ padding-top: 12px; }
  #hanami-modal .hm__news-label{ font-size: 9px; margin: 0 0 8px; }
  #hanami-modal .hm__news-input{ font-size: 13px; padding: 9px 10px; }
  #hanami-modal .hm__news-btn{ font-size: 10px; padding: 0 13px; }
  #hanami-modal .hm__news-note{ font-size: 10px; }
  #hanami-modal .hm__close{ width: 28px; height: 28px; font-size: 20px; top: 6px; right: 8px; }
}

/* 2026-11-02: link nella nota privacy + invito a Instagram quando la newsletter non è collegata */
#hanami-modal .hm__news-note a, #hanami-modal .hm__follow a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#hanami-modal .hm__follow { font-size: 13px; margin-top: 18px; }
#hanami-modal .hm__news-btn[disabled] { opacity: .55; pointer-events: none; }
