/* INFO HUB — pagina video quando info_page è attiva */

.info-hub {
    --ih-primary: #EE764C;
    --ih-ink: #050608;
    margin: 0;
    min-height: 100dvh;
    background: var(--ih-ink);
    color: #fff;
    font-family: 'Syne', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.info-hub * {
    box-sizing: border-box;
}

.info-hub__video,
.info-hub__poster {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.info-hub__poster {
    background:
        #0a0a0a
        url('../assets/home/background-counter.jpg') center center / cover no-repeat;
}

.info-hub__veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.28) 40%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.info-hub__shell {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.info-hub__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(0.85rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.85rem max(1rem, env(safe-area-inset-left));
}

.info-hub__lang {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(12, 14, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-hub__lang .lang-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
}

.info-hub__lang .lang-btn.active,
.info-hub__lang .lang-btn:hover,
.info-hub__lang .lang-btn:focus-visible {
    color: #111;
    background: var(--ih-primary);
    outline: none;
}

.info-hub__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1.5px solid rgba(238, 118, 76, 0.95);
    background: rgba(12, 14, 16, 0.55);
    color: #fff;
    text-decoration: none;
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.info-hub__cta:hover,
.info-hub__cta:focus-visible {
    background: var(--ih-primary);
    color: #111;
    outline: none;
    transform: translateY(-1px);
}

.info-hub__main {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.info-hub__marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.info-hub__marquee.is-in {
    opacity: 1;
    transform: translateY(0);
}

.info-hub__marquee-track {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    animation: info-hub-marquee 32s linear infinite;
    will-change: transform;
}

.info-hub__marquee-item {
    font-family: 'Urban Shadow', 'Impact', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 10vw, 5.8rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
    padding: 0 0.15em;
}

.info-hub__marquee-sep {
    font-family: 'Urban Shadow', 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    color: rgba(255, 255, 255, 0.35);
    padding: 0 0.35em;
    line-height: 1;
}

@keyframes info-hub-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .info-hub__marquee-track {
        animation: none;
    }
}

/* Minimal footer — social + copyright + torna su */
.info-hub__footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem) max(1.1rem, env(safe-area-inset-bottom));
    background: transparent;
}

.info-hub__footer .social-section {
    text-align: center;
    margin: 0;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.info-hub__footer .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.info-hub__footer .social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.info-hub__footer .social-icon:hover {
    background: var(--ih-primary);
    border-color: var(--ih-primary);
    transform: translateY(-1px);
}

.info-hub__footer .social-icon svg {
    width: 14px;
    height: 14px;
    fill: #000;
}

.info-hub__footer .social-icon:hover svg {
    fill: #fff;
}

.info-hub__footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 0;
}

.info-hub__footer .footer-bottom-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.info-hub__footer .footer-bottom-left > span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    line-height: 1.3;
}

.info-hub__footer .back-to-top {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.info-hub__footer .back-to-top:hover {
    color: var(--ih-primary);
}

@media (max-width: 720px) {
    .info-hub__footer {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .info-hub__footer .social-section {
        padding: 0.65rem 0;
    }

    .info-hub__footer .social-icons {
        gap: 0.65rem;
    }

    .info-hub__footer .social-icon {
        width: 28px;
        height: 28px;
    }

    .info-hub__footer .social-icon svg {
        width: 13px;
        height: 13px;
    }

    .info-hub__footer .footer-bottom {
        flex-direction: row;
        align-items: center;
        padding-top: 0.75rem;
    }

    .info-hub__footer .back-to-top {
        align-self: center;
    }

    .info-hub__footer .footer-bottom-left > span,
    .info-hub__footer .back-to-top {
        font-size: 0.72rem;
    }

    .info-hub__marquee-item {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }
}

html.info-hub-blocked .info-hub__shell,
html.info-hub-blocked .info-hub__video,
html.info-hub-blocked .info-hub__poster,
html.info-hub-blocked .info-hub__veil {
    visibility: hidden;
}

html.info-hub-blocked #cookie-banner,
html.info-hub-blocked #cookie-modal,
html.info-hub-blocked #cookie-badge {
    visibility: visible !important;
}

.trx-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 1rem;
    background: rgba(238, 118, 76, 0.92);
    color: #111;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.trx-preview-banner[hidden] {
    display: none !important;
}

.trx-preview-banner__label {
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.trx-preview-banner__text {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
}

body.trx-page--preview .info-hub__top {
    padding-top: calc(0.85rem + 2.4rem);
}
