/* Holyween public landing page. Everything is scoped under .hw so it can live next to Bootstrap. */

:root {
    --hw-night: #1b1446;
    --hw-night-2: #2c1c6b;
    --hw-ink: #1d1838;
    --hw-cream: #fff7e8;
    --hw-cream-2: #ffefd2;
    --hw-gold: #ffc83d;
    --hw-gold-2: #ffaa00;
    --hw-coral: #ff5d5d;
    --hw-pink: #ff4fa3;
    --hw-teal: #18cfc0;
    --hw-violet: #7b5cff;
    --hw-lime: #b6f23c;
    --hw-radius: 22px;
    --hw-shadow: 6px 6px 0 var(--hw-ink);
    --hw-font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
    --hw-font-body: "Nunito", system-ui, sans-serif;
    --hw-font-hand: "Caveat Brush", "Comic Sans MS", cursive;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hw {
    font-family: var(--hw-font-body);
    font-size: 1.075rem;
    line-height: 1.6;
    color: var(--hw-ink);
    background: var(--hw-cream);
    overflow-x: clip;
}

:where(.hw) a { color: inherit; }
:where(.hw) :is(h1, h2, h3, h4) { font-family: var(--hw-font-display); font-weight: 800; line-height: 1.05; margin: 0; }
:where(.hw) p { margin: 0; }
:where(.hw) ul { list-style: none; margin: 0; padding: 0; }
.hw img { max-width: 100%; display: block; }
.hw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hw-container { width: min(1180px, 100% - 32px); margin-inline: auto; position: relative; }
.hw-center { text-align: center; margin-inline: auto; }
.hw mark { background: linear-gradient(transparent 55%, var(--hw-gold) 55%); color: inherit; padding: 0 .1em; font-weight: 800; }
.hw mark.hw-mark--teal { background: linear-gradient(transparent 55%, var(--hw-teal) 55%); }

/* ───────── Logo + halo ───────── */
.hw-logo {
    font-family: var(--hw-font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.02em;
    text-decoration: none;
    color: #fff !important;
    position: relative;
}
.hw-logo span { color: var(--hw-gold); }
.hw-logo::before {
    content: "";
    position: absolute;
    left: .05em; top: -.32em;
    width: 1.9em; height: .45em;
    border: 3px solid var(--hw-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--hw-gold);
}
.hw-logo--big { font-size: clamp(2.6rem, 8vw, 4.4rem); display: inline-block; margin-top: .5em; }
.hw-logo--big::before { border-width: 5px; }

.hw-halo {
    position: absolute;
    left: 6%; top: -.2em;
    width: 62%; height: .26em;
    border: .065em solid var(--hw-gold);
    border-radius: 50%;
    box-shadow: 0 0 .25em var(--hw-gold), inset 0 0 .15em var(--hw-gold);
    animation: hw-float 3.2s ease-in-out infinite;
}
.hw-halo--sm { font-size: 3.5rem; left: 22%; width: 56%; top: -.12em; z-index: 2; }

@keyframes hw-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-.08em) rotate(3deg); }
}

/* ───────── Sparkles (night backgrounds) ───────── */
.hw-sparkles {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 78% 12%, var(--hw-gold) 50%, transparent 51%),
        radial-gradient(3px 3px at 32% 72%, var(--hw-teal) 50%, transparent 51%),
        radial-gradient(2px 2px at 64% 48%, #fff 50%, transparent 51%),
        radial-gradient(3px 3px at 90% 80%, var(--hw-pink) 50%, transparent 51%),
        radial-gradient(2px 2px at 48% 30%, var(--hw-gold) 50%, transparent 51%),
        radial-gradient(2px 2px at 6% 88%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 86% 40%, #fff 50%, transparent 51%);
    background-size: 520px 420px;
    opacity: .75;
    animation: hw-twinkle 6s ease-in-out infinite alternate;
}
@keyframes hw-twinkle { from { opacity: .4; } to { opacity: .9; } }

/* ───────── Buttons ───────── */
.hw-btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--hw-font-display); font-weight: 700; font-size: 1.05rem;
    padding: .8em 1.4em;
    border-radius: 999px;
    border: 3px solid var(--hw-ink);
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--hw-ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.hw-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hw-ink); }
.hw-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hw-ink); }
.hw-btn--gold { background: var(--hw-gold); color: var(--hw-ink) !important; }
.hw-btn--coral { background: var(--hw-coral); color: #fff !important; }
.hw-btn--violet { background: var(--hw-violet); color: #fff !important; }
.hw-btn--fb { background: #fff; color: var(--hw-ink) !important; }
.hw-btn--ghost { background: transparent; color: #fff !important; border-color: #fff; box-shadow: 4px 4px 0 rgba(255,255,255,.35); }
.hw-btn--ghost:hover { box-shadow: 6px 6px 0 rgba(255,255,255,.35); }

/* ───────── Navbar ───────── */
.hw-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px max(16px, calc((100% - 1180px) / 2));
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.hw-nav.is-scrolled { background: rgba(27, 20, 70, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.25); padding-block: 10px; }
.hw-nav__links { display: flex; align-items: center; gap: 6px; }
.hw-nav__links a {
    display: block; padding: .45em .95em; border-radius: 999px;
    color: #fff; text-decoration: none; font-weight: 800;
    transition: background .15s ease, color .15s ease;
}
.hw-nav__links a:hover, .hw-nav__links a.is-active { background: var(--hw-gold); color: var(--hw-ink); }
.hw-nav__fb { font-size: 1.25rem; padding: .25em .6em !important; }
.hw-nav__toggle {
    display: none; background: var(--hw-gold); border: 3px solid var(--hw-ink); border-radius: 14px;
    width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; color: var(--hw-ink); box-shadow: 3px 3px 0 var(--hw-ink);
}

@media (max-width: 820px) {
    .hw-nav__toggle { display: grid; place-items: center; }
    .hw-nav__links {
        position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--hw-night); border: 3px solid var(--hw-gold); border-radius: var(--hw-radius);
        padding: 12px;
        box-shadow: 0 18px 40px rgba(0,0,0,.35);
        opacity: 0; transform: translateY(-8px); pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .hw-nav.is-open .hw-nav__links { opacity: 1; transform: none; pointer-events: auto; }
    .hw-nav.is-open { background: var(--hw-night); }
    .hw-nav__links a { font-size: 1.2rem; padding: .7em 1em; }
}

/* ───────── Hero ───────── */
.hw-hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: 110px 0 90px;
    color: #fff;
    background:
        radial-gradient(60% 60% at 80% 30%, rgba(255, 200, 61, .35), transparent 70%),
        radial-gradient(50% 60% at 10% 90%, rgba(255, 79, 163, .35), transparent 70%),
        radial-gradient(40% 50% at 0% 10%, rgba(24, 207, 192, .25), transparent 70%),
        linear-gradient(160deg, var(--hw-night) 0%, var(--hw-night-2) 100%);
    isolation: isolate;
}
.hw-hero__inner {
    width: min(1180px, 100% - 32px); margin-inline: auto;
    display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hw-hero__eyebrow {
    display: inline-block;
    font-family: var(--hw-font-hand); font-size: 1.5rem; color: var(--hw-gold);
    transform: rotate(-2deg);
}
.hw-hero__title {
    font-size: clamp(4rem, 13vw, 9.5rem) !important;
    letter-spacing: -.045em;
    line-height: .9 !important;
    margin: .25em 0 .1em !important;
}
.hw-halo-word { position: relative; display: inline-block; }
.hw-hero__ween {
    background: linear-gradient(90deg, var(--hw-gold), var(--hw-coral) 45%, var(--hw-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hw-hero__claim {
    font-family: var(--hw-font-display); font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

.hw-countdown { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 30px; }
.hw-countdown__box {
    min-width: 78px; padding: 10px 12px 8px;
    background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); border-radius: 16px;
    text-align: center; backdrop-filter: blur(4px);
}
.hw-countdown__box:nth-child(1) { border-color: var(--hw-gold); }
.hw-countdown__box:nth-child(2) { border-color: var(--hw-teal); }
.hw-countdown__box:nth-child(3) { border-color: var(--hw-pink); }
.hw-countdown__box:nth-child(4) { border-color: var(--hw-lime); }
.hw-countdown__box b { display: block; font-family: var(--hw-font-display); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hw-countdown__box span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.hw-countdown__today {
    font-family: var(--hw-font-display); font-weight: 800; font-size: 2rem; color: var(--hw-gold);
}
.hw-countdown.is-today .hw-countdown__box { display: none; }

.hw-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) {
    .hw-countdown { flex-wrap: nowrap; gap: 8px; }
    .hw-countdown__box { flex: 1; min-width: 0; padding-inline: 4px; }
    .hw-countdown__box b { font-size: 1.8rem; }
    .hw-countdown__box span { font-size: .65rem; letter-spacing: .04em; }
}

.hw-hero__art { position: relative; }
.hw-frame {
    margin: 0;
    border: 6px solid #fff;
    border-radius: 32px 32px 32px 90px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 14px 14px 0 var(--hw-gold), 0 30px 60px rgba(0,0,0,.4);
    aspect-ratio: 1672 / 941;
}
.hw-frame img { width: 100%; height: 100%; object-fit: cover; }

.hw-sticker {
    position: absolute;
    font-family: var(--hw-font-hand); font-size: clamp(1.2rem, 2.3vw, 1.7rem); line-height: 1.1;
    padding: .45em .8em;
    border: 3px solid var(--hw-ink); border-radius: 16px;
    box-shadow: 4px 4px 0 var(--hw-ink);
    color: var(--hw-ink);
    animation: hw-bob 4s ease-in-out infinite;
}
.hw-sticker--a { top: -18px; left: -22px; background: var(--hw-teal); transform: rotate(-8deg); --r: -8deg; }
.hw-sticker--b { bottom: -22px; right: 6%; background: var(--hw-pink); color: #fff; transform: rotate(6deg); --r: 6deg; animation-delay: -2s; }
.hw-sticker--c { bottom: -26px; left: 14%; background: var(--hw-gold); font-size: 2rem; border-radius: 50%; padding: .3em .45em; --r: 0deg; animation-delay: -1s; }
@keyframes hw-bob {
    0%, 100% { transform: translateY(0) rotate(var(--r)); }
    50% { transform: translateY(-8px) rotate(var(--r)); }
}

.hw-scroll {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid rgba(255,255,255,.6); color: #fff; font-size: 1.3rem;
    animation: hw-nudge 2s ease-in-out infinite;
}
@keyframes hw-nudge { 50% { transform: translate(-50%, 6px); } }

@media (max-width: 900px) {
    .hw-hero { padding-top: 96px; }
    .hw-hero__inner { grid-template-columns: 1fr; }
    .hw-hero__art { order: -1; width: min(520px, 92%); margin: 0 auto 10px; }
    .hw-hero__text { text-align: center; }
    .hw-countdown, .hw-hero__cta { justify-content: center; }
    .hw-sticker--a { left: -10px; }
    .hw-sticker--b { right: -10px; }
    .hw-scroll { display: none; }
}

/* ───────── Marquee ───────── */
.hw-marquee {
    background: var(--hw-gold);
    border-block: 4px solid var(--hw-ink);
    overflow: hidden;
    transform: rotate(-1.5deg);
    margin: -18px -10px 0;
    position: relative; z-index: 3;
}
.hw-marquee__track {
    display: flex; width: max-content; gap: 1.4rem; align-items: center;
    padding: .7rem 0;
    font-family: var(--hw-font-display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    text-transform: uppercase; white-space: nowrap;
    animation: hw-marquee 32s linear infinite;
}
.hw-marquee__track i { font-style: normal; color: var(--hw-coral); }
@keyframes hw-marquee { to { transform: translateX(-50%); } }

/* ───────── Sections + headings ───────── */
.hw-section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.hw-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 36px; }
.hw-head h2 {
    font-size: clamp(3rem, 9vw, 6rem) !important;
    letter-spacing: -.04em;
}
.hw-head__num {
    font-family: var(--hw-font-hand); font-size: 1.6rem;
    background: var(--hw-ink); color: var(--hw-gold);
    padding: .1em .5em; border-radius: 12px; transform: rotate(-6deg) translateY(-1.4em);
}
.hw-head--light h2 { color: #fff; }
.hw-head--light .hw-head__num { background: var(--hw-gold); color: var(--hw-ink); }
.hw-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; max-width: 62ch; }

/* ───────── Cos'è ───────── */
.hw-about {
    background:
        radial-gradient(circle at 95% 5%, var(--hw-cream-2) 0 160px, transparent 161px),
        var(--hw-cream);
}
.hw-about__intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: 70px; }
@media (max-width: 860px) { .hw-about__intro { grid-template-columns: 1fr; } }

.hw-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .hw-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hw-cards { grid-template-columns: 1fr; } }
.hw-card {
    position: relative;
    padding: 28px 24px 26px;
    border: 3px solid var(--hw-ink); border-radius: var(--hw-radius);
    box-shadow: var(--hw-shadow);
    transition: transform .2s ease;
}
.hw-card:nth-child(odd) { transform: rotate(-1.2deg); }
.hw-card:nth-child(even) { transform: rotate(1.2deg); }
.hw-card:hover { transform: rotate(0) translateY(-6px); }
.hw-card h3 { font-size: 1.8rem; margin: 14px 0 8px; }
.hw-card p { font-size: 1rem; }
.hw-card a { font-weight: 800; }
.hw-card__icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: #fff; border: 3px solid var(--hw-ink); font-size: 1.7rem; color: var(--hw-ink);
}
.hw-card--violet { background: var(--hw-violet); color: #fff; }
.hw-card--teal { background: var(--hw-teal); }
.hw-card--coral { background: var(--hw-coral); color: #fff; }
.hw-card--gold { background: var(--hw-gold); }

/* ───────── Image slots (placeholders for generated images) ───────── */
.hw-slot {
    position: relative; margin: 0; overflow: hidden;
    border: 4px solid var(--hw-ink); border-radius: var(--hw-radius);
    box-shadow: 10px 10px 0 var(--hw-violet);
    background: repeating-linear-gradient(45deg, var(--hw-cream-2) 0 18px, #fff 18px 36px);
}
.hw-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--hw-cream-2); }
.hw-slot__ph {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 16px; text-align: center; color: var(--hw-ink);
}
.hw-slot__id { font-family: var(--hw-font-display); font-weight: 800; font-size: 2rem; background: var(--hw-gold); padding: 0 .4em; border-radius: 10px; border: 3px solid var(--hw-ink); }
.hw-slot__hint { font-family: var(--hw-font-hand); font-size: 1.35rem; }
.hw-slot__ph code { font-size: .75rem; background: rgba(255,255,255,.85); padding: 2px 6px; border-radius: 6px; color: var(--hw-ink); word-break: break-all; }
.hw-tilt-r { transform: rotate(2.5deg); }

/* ───────── Eventi ───────── */
.hw-events {
    color: #fff;
    background:
        radial-gradient(50% 50% at 100% 0%, rgba(123, 92, 255, .55), transparent 70%),
        radial-gradient(40% 50% at 0% 100%, rgba(24, 207, 192, .3), transparent 70%),
        var(--hw-night);
}
.hw-events__title { font-size: clamp(1.6rem, 3.6vw, 2.6rem) !important; max-width: 22ch; }
.hw-events__title b { color: var(--hw-gold); }
.hw-events__note { margin: 14px 0 30px; opacity: .9; }
.hw-events__note a { color: var(--hw-gold); }

.hw-search {
    display: flex; align-items: center; gap: 12px;
    max-width: 560px; margin-bottom: 30px;
    background: #fff; color: var(--hw-ink);
    border: 3px solid var(--hw-gold); border-radius: 999px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 0 0 6px rgba(255, 200, 61, .2);
    font-size: 1.2rem;
}
.hw-search input { flex: 1; border: 0; outline: 0; font: inherit; padding: .5em .3em; background: transparent; min-width: 0; }

.hw-parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hw-party {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 16px; align-items: center;
    padding: 18px;
    background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.18); border-radius: var(--hw-radius);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hw-party:hover { transform: translateY(-4px); border-color: var(--hw-gold); background: rgba(255,255,255,.12); }
.hw-party__prov {
    grid-row: span 2;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--hw-font-display); font-weight: 800; font-size: 1.2rem;
    background: var(--hw-gold); color: var(--hw-ink);
}
.hw-party:nth-child(4n+2) .hw-party__prov { background: var(--hw-teal); }
.hw-party:nth-child(4n+3) .hw-party__prov { background: var(--hw-pink); color: #fff; }
.hw-party:nth-child(4n+4) .hw-party__prov { background: var(--hw-lime); }
.hw-party h4 { font-size: 1.35rem; }
.hw-party p { font-size: .95rem; opacity: .85; }
.hw-party__link { grid-column: 2; justify-self: start; font-weight: 800; color: var(--hw-gold) !important; text-decoration: none; }
.hw-party__link:hover { text-decoration: underline; }
.hw-parties__none { font-size: 1.15rem; padding: 22px 24px; border: 2px dashed rgba(255,255,255,.35); border-radius: var(--hw-radius); max-width: 680px; }
.hw-parties__none a { color: var(--hw-gold); font-weight: 800; }
.hw-party__year { grid-column: 2; justify-self: start; background: rgba(255,255,255,.18); }
.hw-past { margin-top: 34px; }
.hw-past summary {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
    font-family: var(--hw-font-display); font-weight: 700; font-size: 1.2rem;
    padding: .6em 1.2em; border: 2px solid rgba(255,255,255,.35); border-radius: 999px;
}
.hw-past summary::-webkit-details-marker { display: none; }
.hw-past summary::after { content: "\F282"; font-family: bootstrap-icons; transition: transform .2s ease; }
.hw-past[open] summary::after { transform: rotate(180deg); }
.hw-past summary .hw-pill { background: var(--hw-gold); color: var(--hw-ink); }
.hw-parties--past { margin-top: 18px; opacity: .85; }

/* Placeholders while the streamed sections wait for the database */
.hw-skel {
    display: block; height: .9em; width: 70%; border-radius: 6px; margin: 4px 0;
    background: linear-gradient(90deg, rgba(127,127,127,.18) 25%, rgba(127,127,127,.32) 50%, rgba(127,127,127,.18) 75%);
    background-size: 200% 100%; animation: hw-shimmer 1.3s linear infinite;
}
.hw-skel--title { height: 1.3em; width: 55%; }
.hw-party--skel .hw-party__prov { background: rgba(255,255,255,.15); }
.hw-res li .hw-skel { width: 100%; }
@keyframes hw-shimmer { to { background-position: -200% 0; } }

.hw-parties__empty { margin-top: 20px; font-family: var(--hw-font-hand); font-size: 1.6rem; color: var(--hw-gold); }
.hw-parties__empty a { color: #fff; }

/* ───────── Santi ───────── */
.hw-saints { background: var(--hw-cream); }
.hw-saints .hw-lead { margin-bottom: 54px; }
.hw-saint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .hw-saint-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hw-saint-grid { gap: 14px; } }
.hw-saint {
    --c: var(--hw-gold);
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 14px 14px 18px;
    background: #fff; border: 3px solid var(--hw-ink); border-radius: var(--hw-radius);
    box-shadow: 6px 6px 0 var(--c);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hw-saint:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 10px 12px 0 var(--c); }
.hw-saint--coral { --c: var(--hw-coral); }
.hw-saint--teal { --c: var(--hw-teal); }
.hw-saint--violet { --c: var(--hw-violet); }
.hw-saint--pink { --c: var(--hw-pink); }
.hw-saint__pic {
    position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 10px;
    border-radius: 16px; background: var(--c); overflow: visible;
}
.hw-saint__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.hw-saint__tag {
    align-self: flex-start;
    font-family: var(--hw-font-hand); font-size: 1.1rem; line-height: 1.2;
    background: var(--c); color: var(--hw-ink); padding: .1em .55em; border-radius: 8px;
}
.hw-saint--violet .hw-saint__tag, .hw-saint--pink .hw-saint__tag, .hw-saint--coral .hw-saint__tag { color: #fff; }
.hw-saint__name { font-family: var(--hw-font-display); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.1; }
.hw-saint__more { font-size: .9rem; font-weight: 800; opacity: .7; }
.hw-saint:hover .hw-saint__more { opacity: 1; }
.hw-saint[data-legacy]::after {
    content: attr(data-legacy) " · vecchia immagine";
    position: absolute; top: 22px; right: 22px;
    font-size: .7rem; font-weight: 800; background: var(--hw-gold); border: 2px solid var(--hw-ink); border-radius: 8px; padding: 1px 6px;
}
.hw-saints__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 54px; }

/* ───────── Risorse ───────── */
.hw-resources {
    background:
        radial-gradient(circle at 0% 100%, rgba(255, 79, 163, .18), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(24, 207, 192, .2), transparent 40%),
        var(--hw-cream-2);
}
.hw-res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .hw-res-grid { grid-template-columns: 1fr; } }
.hw-res {
    --c: var(--hw-gold);
    background: #fff; border: 3px solid var(--hw-ink); border-radius: var(--hw-radius);
    box-shadow: 8px 8px 0 var(--c);
    padding: 26px 24px;
}
.hw-res--teal { --c: var(--hw-teal); }
.hw-res--violet { --c: var(--hw-violet); }
.hw-res h3 { font-size: 1.6rem; margin-bottom: 16px; display: flex; gap: .4em; align-items: center; }
.hw-res h3 i { color: var(--c); -webkit-text-stroke: 1px var(--hw-ink); }
.hw-res li { padding: 9px 0; border-bottom: 2px dashed rgba(29, 24, 56, .15); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-res li:last-child { border-bottom: 0; }
.hw-res li a { font-weight: 700; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.hw-res li a:hover { background: var(--c); text-decoration: none; border-radius: 4px; }
.hw-res__soon { font-family: var(--hw-font-hand); font-size: 1.3rem; color: var(--hw-coral); margin-bottom: 4px; }
.hw-res__todo { opacity: .6; font-weight: 700; }
.hw-res__img { margin-top: 18px; box-shadow: 6px 6px 0 var(--hw-coral); }
.hw-pill {
    flex: none;
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    background: var(--hw-ink); color: #fff; padding: 2px 8px; border-radius: 999px;
}
.hw-pill:empty { display: none; }
.hw-pill--soon { background: var(--hw-coral); }

/* ───────── Setup notice (only while not configured) ───────── */
.hw-setup {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
    padding: 14px 16px; background: #fff3cd; color: #664d03; border-top: 3px dashed #c99a06; font-size: .95rem; text-align: center;
}
.hw-setup a { font-weight: 800; }

/* ───────── Footer ───────── */
.hw-footer {
    position: relative; text-align: center; color: #fff;
    padding: 90px 16px 40px;
    background: linear-gradient(180deg, var(--hw-night-2), var(--hw-night));
}
.hw-totop {
    position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--hw-gold); color: var(--hw-ink); border: 3px solid var(--hw-ink); font-size: 1.4rem;
    box-shadow: 3px 3px 0 var(--hw-ink);
}
.hw-totop:hover { animation: hw-wiggle .5s ease; }
@keyframes hw-wiggle { 25% { transform: translateX(-50%) rotate(-12deg); } 75% { transform: translateX(-50%) rotate(12deg); } }
.hw-footer__claim { font-family: var(--hw-font-hand); font-size: 1.8rem; color: var(--hw-gold); margin: 6px 0 26px; }
.hw-footer__legal { margin-top: 40px; font-size: .8rem; opacity: .7; }
.hw-footer__legal a { color: var(--hw-gold); }

/* ───────── Reveal on scroll (only with JS, see holyween.js) ───────── */
.hw-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1.2); }
.hw-js [data-reveal].is-visible { opacity: 1; transform: none; }
.hw-js .hw-card[data-reveal].is-visible:nth-child(odd) { transform: rotate(-1.2deg); }
.hw-js .hw-card[data-reveal].is-visible:nth-child(even) { transform: rotate(1.2deg); }
.hw-js .hw-card[data-reveal].is-visible:hover { transform: rotate(0) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
    .hw *, .hw *::before, .hw *::after { animation: none !important; transition: none !important; }
    .hw-js [data-reveal] { opacity: 1; transform: none; }
}

/* Blazor error bar (shown by blazor.web.js via inline style) */
#blazor-error-ui {
    display: none; position: fixed; left: 0; bottom: 0; width: 100%; z-index: 1000;
    background: lightyellow; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); padding: .6rem 1.25rem .7rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* Focus visibility */
.hw a:focus-visible, .hw button:focus-visible, .hw input:focus-visible { outline: 3px solid var(--hw-pink); outline-offset: 3px; }

/* ───────── Error page ───────── */
.hw-error { text-align: center; }
.hw-error__title { font-size: clamp(2rem, 6vw, 3.6rem) !important; margin: 1em 0 .4em !important; }
.hw-error__cta { margin-top: 30px; }
