/* Hero animata di Albert (regia approvata il 02/12/2026). Classi con prefisso hh- dove serve. */

/* Layout: in alto l'indirizzo che si legge; sotto, a sinistra il cliente che scrive, al centro la mail,
   a destra la busta da cui esce Albert; in chiusura frase di valore e CTA, cliente e genio ai lati. */
.hh { --paper: #ffffff; --muted: #6b625b; --lilac: #cdb3dc; --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.hh .stage { position: relative; max-width: 1180px; height: clamp(520px, calc(100svh - 116px), 780px); margin: 8px auto 0; overflow: hidden; }


.hh-head { position: absolute; left: 0; right: 0; top: clamp(16px, 5.5%, 52px); display: grid; justify-items: center; gap: 16px; text-align: center; transform-origin: 50% 0; z-index: 3; }
.hh-addr { font-weight: 600; font-size: clamp(40px, min(7.4vw, 10.5svh), 92px); line-height: 1; letter-spacing: -0.035em; white-space: nowrap; position: relative; }
.hh-addr .w, .hh-addr .s { display: inline-block; }
.hh-addr .gp { width: 0; }
.hh-finger { position: absolute; left: 0; bottom: -14px; height: 5px; width: 40px; border-radius: 3px; background: var(--brand); opacity: 0; }
.hh-reads { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; font-weight: 600; }
.hh-motto { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 600; margin-top: 14px; }
.hh-fix { position: relative; display: inline-block; }
.hh-fix .bad { color: var(--muted); }
.hh-fix .strike { position: absolute; left: -4%; right: -4%; top: 55%; height: 3px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left center; }
.hh-fix .over { position: absolute; left: 50%; bottom: 78%; transform: translateX(-50%) rotate(-5deg); color: var(--brand); font-weight: 700; white-space: nowrap; clip-path: inset(0 100% 0 0); }

/* cliente: Giulia o Roberto, secondo il caso */
.hh-client { position: absolute; left: 40px; bottom: -4px; height: 56%; width: 300px; z-index: 3; opacity: 0; }
.hh-client img { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.hh-client .happy { opacity: 0; }

/* la mail */
.hh-mail { position: absolute; left: 50%; top: 41%; width: min(540px, calc(100% - 32px)); transform: translateX(-50%); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 64px rgba(26,22,20,.12); padding: 18px 22px 20px; display: grid; gap: 10px; z-index: 4; }
.hh-mail .row { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hh-mail .row b { color: var(--ink); font-weight: 600; font-size: 16px; }
.hh-mail .body { font-size: 16px; line-height: 24px; min-height: 96px; white-space: pre-wrap; }
.hh-mail .caret { display: inline-block; width: 2px; height: 18px; background: var(--brand); vertical-align: -3px; margin-left: 1px; }
.hh-mail .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hh-mail .att { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; min-width: 0; }
.hh-mail .att i { width: 16px; height: 20px; flex: none; border-radius: 3px; background: var(--brand); display: inline-block; }
.hh-send { font: 600 16px/24px var(--font); background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 16px; flex: none; }

/* busta in volo, scia, sbuffo */
.hh-env { position: absolute; left: 0; top: 0; width: 72px; height: 50px; z-index: 6; opacity: 0; }
.hh-trail { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); z-index: 5; opacity: 0; }
.hh-puff { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(205,179,220,.85), rgba(205,179,220,0) 70%); z-index: 1; opacity: 0; }

/* Albert */
.hh-genie { position: absolute; right: 48px; bottom: 0; height: 61%; z-index: 2; }
.hh-genie img { height: 100%; width: auto; display: block; clip-path: inset(100% 0 0 0); filter: drop-shadow(0 18px 24px rgba(138,42,107,.14)); }
.hh-file { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 40px rgba(26,22,20,.14); z-index: 7; opacity: 0; white-space: nowrap; left: 0; top: 0; }
.hh-file i { width: 26px; height: 32px; border-radius: 4px; background: var(--brand); display: inline-block; flex: none; }
.hh-file small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }

/* chiusura */
.hh-value { position: absolute; left: 0; right: 0; top: 36%; text-align: center; display: grid; gap: 8px; padding: 0 24px; max-width: 760px; margin: 0 auto; opacity: 0; z-index: 4; }
.hh-value .v1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.hh-value .v1 em { font-style: normal; color: var(--brand); }
.hh-value .v2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--muted); font-weight: 500; }
.hh-cta { position: absolute; left: 0; right: 0; top: max(59%, calc(36% + 150px)); display: grid; justify-items: center; gap: 14px; text-align: center; opacity: 0; z-index: 4; padding: 0 16px; }
.hh-cta .go { font: 600 20px/28px var(--font); background: var(--brand); color: #fff; text-decoration: none; border-radius: 14px; padding: 16px 28px; transition: transform 300ms cubic-bezier(0.22,1,0.36,1), background-color 300ms cubic-bezier(0.22,1,0.36,1); }
.hh-cta .go:hover { background: var(--brand-dark); transform: translateY(-2px); }
.hh-cta .go:active { transform: scale(0.98); }
.hh-cta .free { color: var(--muted); }
.hh-cta .free b { color: var(--ink); }
.hh-cta .alt { font-size: 14px; color: var(--muted); }
.hh-cta .alt button { font: inherit; color: var(--brand); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }

@media (max-width: 760px) {
  /* telefono: tutta la storia dentro lo schermo, personaggi interi in basso */
  .hh .stage { height: clamp(640px, calc(100svh - 84px), 760px); }
  .hh-addr { font-size: 8.4vw; }
  .hh-mail { top: 250px; }
  .hh-client { height: 200px; width: 130px; left: 4px; }
  .hh-file { padding: 8px 10px; }
  .hh-file b { font-size: 14px; }
  .hh-genie { height: 230px; right: 0; }
  .hh-value { top: 230px; }
  .hh-cta { top: 390px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  /* telefoni bassi: chiusura più in alto, così i personaggi negli angoli non coprono il testo */
  .hh-value { top: 210px; }
  .hh-cta { top: 345px; }
}
