/* Home - prototipo (veste FabulaNova). Solo le parti proprie della pagina: il resto è in fa-design.css */

.hm-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}
.hm-hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 78rem;
    margin: 0 auto;
    padding: 7rem 1.25rem 5rem;
    text-align: center;
}
.hm-hero h1 {
    margin-top: 2rem;
    font-size: clamp(2.1rem, 6.4vw, 5.4rem);
    line-height: 1.05;
}
.hm-motto {
    margin-top: 1.3rem;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-style: italic;
    color: var(--fa-t-200);
}
.hm-hero .fa-divider {
    margin: 2.2rem 0;
}
.hm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.hm-trailer {
    margin-top: 1.4rem;
}
.hm-scroll {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    z-index: 10;
    translate: -50% 0;
    color: rgb(var(--fa-a-rgb) / 0.8);
    animation: hm-bounce 2.2s ease-in-out infinite;
}
.hm-scroll svg {
    width: 1.9rem;
    height: 1.9rem;
}
@keyframes hm-bounce {
    50% {
        transform: translateY(8px);
    }
}

/* fasce */
.hm-band {
    position: relative;
    padding: 6rem 1.25rem;
}
.hm-band.is-900 {
    background: var(--fa-ink-900);
}
.hm-band.is-850 {
    background: var(--fa-ink-850);
}
.hm-wrap {
    max-width: 72rem;
    margin: 0 auto;
}
.hm-center {
    text-align: center;
}
.hm-center .fa-h2 {
    margin-top: 1.2rem;
}
.hm-center .fa-lead {
    max-width: 46rem;
    margin: 1.4rem auto 0;
}

/* il mondo: l'evento in corso su un foglio strappato */
.hm-event {
    max-width: 46rem;
    margin: 3.2rem auto 0;
}
.hm-event .fa-sheet-body {
    padding: 1.6rem 2rem 1.8rem;
    text-align: center;
}
.hm-event .fa-coin {
    margin: -0.2rem auto 0.8rem;
}
.hm-event h3 {
    font-size: 1.35rem;
    color: var(--fa-a-200);
}
.hm-event blockquote {
    margin: 0.9rem 0 0;
    font-family: var(--fa-font-title);
    font-size: 1.15rem;
    color: var(--fa-g-300);
}
.hm-event p {
    margin-top: 0.9rem;
    color: var(--fa-t-200);
}
.hm-whisper {
    font-style: italic;
    color: var(--fa-a-200) !important;
    text-shadow: 0 0 18px rgb(var(--fa-g-rgb) / 0.6);
}

/* le terre di Fanewick: carte delle città (map-locations.json) */
.hm-lands-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4.5rem;
}
.hm-lands-head h3 {
    font-size: 1.6rem;
    color: var(--fa-a-200);
}
.hm-lands-nav {
    display: flex;
    gap: 0.5rem;
}
.hm-lands {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16rem, 19rem);
    gap: 1.2rem;
    margin-top: 1.4rem;
    padding: 0.4rem 0.2rem 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--fa-a-rgb) / 0.4) transparent;
}
.hm-land {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 24rem;
    padding: 1.3rem;
    border-radius: var(--fa-radius);
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px rgb(var(--fa-a-rgb) / 0.18),
        0 18px 40px rgb(0 0 0 / 0.45);
    transition:
        transform 0.5s var(--fa-ease-card),
        box-shadow 0.4s ease;
}
.hm-land::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    filter: brightness(0.62) saturate(1.05);
    transition:
        transform 1.2s var(--fa-ease-reveal),
        filter 0.5s ease;
}
.hm-land::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgb(var(--fa-shade-rgb) / 0.75) 62%, rgb(var(--fa-shade-rgb) / 0.95) 100%);
}
.hm-land > * {
    position: relative;
    z-index: 1;
}
.hm-land:hover {
    transform: translateY(-6px);
    box-shadow:
        inset 0 0 0 1px rgb(var(--fa-a-rgb) / 0.5),
        0 24px 50px rgb(0 0 0 / 0.55),
        0 0 30px rgb(var(--fa-a-rgb) / 0.2);
}
.hm-land:hover::before {
    transform: scale(1.06);
    filter: brightness(0.75) saturate(1.1);
}
.hm-land .fa-coin {
    margin-bottom: auto;
}
.hm-land h4 {
    font-size: 1.5rem;
    color: var(--fa-a-100);
}
.hm-land p {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--fa-t-200);
}
.hm-land .fa-pills {
    margin-top: 0.8rem;
}
.hm-land .fa-pill {
    font-size: 0.74rem;
}

button.hm-land {
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.hm-land-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.84rem;
    color: var(--fa-a-200);
    opacity: 0.75;
    transition:
        opacity 0.3s ease,
        gap 0.3s ease;
}
.hm-land:hover .hm-land-more {
    opacity: 1;
    gap: 0.7rem;
}

/* il gioco */
.hm-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}
@media (max-width: 860px) {
    .hm-features {
        grid-template-columns: 1fr;
    }
}
.hm-feature {
    padding: 2rem;
}
.hm-feature .fa-coin {
    margin-bottom: 1.2rem;
}
.hm-feature h3 {
    font-size: 1.2rem;
    color: var(--fa-a-100);
}
.hm-feature p {
    margin-top: 0.7rem;
    color: var(--fa-t-200);
    line-height: 1.7;
}

/* numeri in sigilli */
.hm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
@media (max-width: 760px) {
    .hm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
.hm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.4rem 0.8rem;
    text-align: center;
}
.hm-stat .fa-coin {
    --fa-coin-size: 4.2rem;
    font-family: var(--fa-font-title);
    font-size: 1.35rem;
}
.hm-stat span {
    color: var(--fa-t-300);
    font-size: 0.9rem;
}

/* account */
.hm-account {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}
.hm-account .fa-coin {
    margin: 0 auto 1.2rem;
}
.hm-account h2 {
    font-size: 1.8rem;
    color: var(--fa-a-200);
}
.hm-account p {
    margin-top: 0.9rem;
    color: var(--fa-t-200);
}
.hm-account .hm-actions {
    margin-top: 2rem;
}

/* finestra del trailer */
.hm-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.hm-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* stato "account collegato" simulato dal pannello Aspetto */
[data-auth='guest'] .is-auth,
[data-auth='auth'] .is-guest {
    display: none !important;
}

@media (max-width: 767px) {
    .hm-band {
        padding: 4.5rem 1.1rem;
    }
    .hm-event .fa-sheet-body {
        padding: 1.3rem 1.2rem 1.5rem;
    }
}
