/* =========================
   Homepage — Giochi Parole
   ========================= */

   .home-page {
    --home-ink: #0f2f3a;
    --home-ink-soft: #1a4a5c;
    --home-teal: #1a7a72;
    --home-teal-deep: #14665f;
    --home-paper: #e8efe9;
    --home-paper-deep: #d4e0d8;
    --home-cream: #f4f7f4;
    --home-muted: #4a5c58;
    --home-amber: #b8722a;
    --home-display: "Bricolage Grotesque", "Roboto", sans-serif;
    --home-sans: "Roboto", system-ui, sans-serif;

    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--home-cream);
    color: var(--home-ink);
    font-family: var(--home-sans);
}

.home-page .site-header {
    position: relative;
    z-index: 2;
    background: rgba(244, 247, 244, 0.92);
    border-bottom-color: rgba(15, 47, 58, 0.12);
}

.home-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-daily,
.home-games,
.home-why,
.home-faq {
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.home-section__title {
    margin: 0 0 0.4rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    color: var(--home-ink);
}

/* ----- Hero ----- */

.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(90vh - 3.5rem);
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    overflow: hidden;
    background:
        linear-gradient(155deg, #c8ddd4 0%, var(--home-paper) 42%, #b8d0c8 100%);
}

.home-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-hero__grid {
    position: absolute;
    inset: -8%;
    background-image:
        linear-gradient(rgba(15, 47, 58, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 47, 58, 0.07) 1px, transparent 1px);
    background-size: clamp(2.4rem, 5vw, 3.2rem) clamp(2.4rem, 5vw, 3.2rem);
    mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
    animation: home-grid-drift 28s linear infinite;
}

.home-hero__grid::before {
    content: "P A R O L E   N U M E R I   M E N T E   G I O C O   L O G I C A";
    position: absolute;
    inset: 12% 8%;
    font-family: var(--home-display);
    font-size: clamp(0.7rem, 1.6vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.55em;
    line-height: 3.2;
    color: rgba(15, 47, 58, 0.11);
    word-break: break-all;
    animation: home-letters-fade 1.4s ease-out both;
}

.home-hero__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 20% 80%, rgba(26, 122, 114, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 45% at 85% 15%, rgba(15, 47, 58, 0.12), transparent 55%);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    width: 100%;
    text-align: left;
}

.home-hero__brand {
    margin: 0 0 0.85rem;
    font-family: var(--home-display);
    font-size: clamp(1.1rem, 2.6vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--home-teal-deep);
    animation: home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__headline {
    margin: 0 0 0.9rem;
    font-family: var(--home-display);
    font-size: clamp(2.1rem, 5.5vw, 3.1rem);
    font-weight: 800;
    font-optical-sizing: auto;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--home-ink);
    animation: home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.home-hero__lead {
    margin: 0 0 1.75rem;
    max-width: 30rem;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.6;
    color: var(--home-muted);
    animation: home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    animation: home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 8px;
    font-family: var(--home-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn--primary {
    background: var(--home-teal);
    color: #f7fffe;
    box-shadow: 0 2px 0 var(--home-teal-deep);
}

.home-btn--primary:hover {
    background: var(--home-teal-deep);
    transform: translateY(-1px);
}

.home-btn--primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

.home-btn--secondary {
    background: transparent;
    color: var(--home-ink);
    border: 1.5px solid rgba(15, 47, 58, 0.28);
}

.home-btn--secondary:hover {
    border-color: var(--home-ink);
    background: rgba(255, 255, 255, 0.35);
}

/* ----- Why / benefits (SEO body copy) ----- */

.home-why {
    background: var(--home-paper);
}

.home-why__title {
    margin: 0 auto 2rem;
    max-width: 40rem;
    font-family: var(--home-display);
    font-size: clamp(1.5rem, 3.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--home-ink);
}

.home-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 720px) {
    .home-why__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-why__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.home-why__mark {
    display: inline-block;
    width: fit-content;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(26, 122, 114, 0.12);
    color: var(--home-teal-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-why__item h3 {
    margin: 0.35rem 0 0.15rem;
    font-family: var(--home-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--home-ink);
}

.home-why__item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--home-muted);
}

/* ----- Games picker ----- */

.home-games {
    background: var(--home-cream);
}

.home-games__sub {
    margin: 0 auto 2rem;
    max-width: 28rem;
    text-align: center;
    color: var(--home-muted);
    font-size: 1.05rem;
}

.home-games__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 720px) {
    .home-games__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.home-game {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.35rem 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(15, 47, 58, 0.1);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 47, 58, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-game:hover {
    transform: translateY(-3px);
    border-color: rgba(26, 122, 114, 0.45);
    box-shadow: 0 8px 24px rgba(15, 47, 58, 0.08);
}

.home-game:focus-visible {
    outline: 2px solid var(--home-teal);
    outline-offset: 3px;
}

.home-game__icon {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.65rem;
    color: var(--home-teal);
}

.home-game__icon svg {
    width: 100%;
    height: 100%;
}

.home-game__name {
    font-family: var(--home-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--home-ink);
}

.home-game__desc {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--home-muted);
}

.home-game__cta {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--home-teal-deep);
}

/* ----- FAQ ----- */

.home-faq {
    background: var(--home-paper);
}

.home-faq__title {
    margin: 0 0 1.5rem;
    font-family: var(--home-display);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--home-ink);
}

.home-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 42rem;
    margin: 0 auto;
}

.home-faq__item {
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(15, 47, 58, 0.1);
    border-radius: 10px;
}

.home-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--home-ink);
    font-size: 0.98rem;
}

.home-faq__item summary::marker {
    color: var(--home-teal);
}

.home-faq__item p {
    margin: 0.6rem 0 0.1rem;
    color: var(--home-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ----- Footer ----- */

.home-footer {
    padding: 1.25rem 1.5rem 1.75rem;
    text-align: center;
    border-top: 1px solid rgba(15, 47, 58, 0.08);
    background: var(--home-cream);
}

.home-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--home-muted);
}

/* ----- Motion ----- */

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(1.1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-grid-drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(calc(-1 * clamp(2.4rem, 5vw, 3.2rem)), calc(-1 * clamp(2.4rem, 5vw, 3.2rem)));
    }
}

@keyframes home-letters-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__grid,
    .home-hero__grid::before,
    .home-hero__brand,
    .home-hero__headline,
    .home-hero__lead,
    .home-hero__actions {
        animation: none;
    }

    .home-game {
        transition: none;
    }
}

.home-daily {
    text-align: center;
}

.home-daily__content {
    max-width: 720px;
    margin: 0 auto;
}

.home-daily__eyebrow {
    margin: 0 0 0.75rem;
    font-family: "Roboto", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-daily__description {
    max-width: 560px;
    margin: 1rem auto 1.75rem;
    font-family: "Roboto", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}