/* Tuning Festival 2026 — immersive landing (scoped) */
.page-index-tf {
    --tf-violet: #9d00ff;
    --tf-violet-dim: #5c1a8a;
    --tf-cyan: #00e5ff;
    --tf-glow: rgba(157, 0, 255, 0.45);
}

.page-tf26 {
    --tf-violet: #9d00ff;
    --tf-violet-dim: #5c1a8a;
    --tf-cyan: #00e5ff;
    --tf-glow: rgba(157, 0, 255, 0.45);
    background: #050508;
    color: #fff;
    min-height: 100vh;
}

:is(.page-tf26, .page-index-tf) .tf-canvas-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

:is(.page-tf26, .page-index-tf) #tf-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.page-index-tf #tf-canvas {
    opacity: 0.42;
}

:is(.page-tf26, .page-index-tf) .tf-blob-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

:is(.page-tf26, .page-index-tf) .tf-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    mix-blend-mode: screen;
    will-change: transform;
}

:is(.page-tf26, .page-index-tf) .tf-blob--a {
    width: min(55vw, 480px);
    height: min(55vw, 480px);
    background: radial-gradient(circle, var(--tf-violet) 0%, transparent 70%);
    top: -10%;
    left: -15%;
    animation: tfBlobA 18s ease-in-out infinite;
}

:is(.page-tf26, .page-index-tf) .tf-blob--b {
    width: min(60vw, 520px);
    height: min(60vw, 520px);
    background: radial-gradient(circle, #3d0066 0%, var(--tf-cyan) 35%, transparent 70%);
    bottom: -20%;
    right: -20%;
    animation: tfBlobB 22s ease-in-out infinite;
}

:is(.page-tf26, .page-index-tf) .tf-blob--c {
    width: min(40vw, 360px);
    height: min(40vw, 360px);
    background: radial-gradient(circle, var(--tf-cyan) 0%, transparent 65%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    animation: tfBlobC 14s ease-in-out infinite;
}

:is(.page-tf26, .page-index-tf) .tf-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:is(.page-tf26, .page-index-tf) .tf-vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 0%, rgba(5, 5, 8, 0.85) 100%);
}

.page-tf26 main {
    position: relative;
    z-index: 3;
}

@keyframes tfBlobA {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(12%, 18%) scale(1.08);
    }
}

@keyframes tfBlobB {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-15%, -10%) scale(1.12);
    }
}

@keyframes tfBlobC {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-45%, -55%) scale(1.15);
        opacity: 0.35;
    }
}

.page-tf26 .tf-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.25rem 4rem;
    position: relative;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-kicker {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--tf-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 9vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    background: linear-gradient(105deg, #fff 0%, #e8e0ff 25%, var(--tf-violet) 55%, var(--tf-cyan) 85%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tfShine 7s linear infinite;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-year {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 22vw, 14rem);
    line-height: 0.85;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
    text-stroke: 2px rgba(255, 255, 255, 0.35);
    letter-spacing: -0.06em;
    user-select: none;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-meta {
    margin-top: 1.75rem;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    color: #c4c0d4;
    max-width: 36rem;
    line-height: 1.5;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-meta strong {
    color: #fff;
    font-weight: 600;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.25rem;
}

:is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-actions .btn {
    min-width: 200px;
}

.page-tf26 .tf-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    animation: tfBounce 2.2s ease-in-out infinite;
}

@keyframes tfShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes tfBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}

@keyframes tfBounceIndex {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}

.page-tf26 .tf-section {
    padding: clamp(3rem, 8vw, 6rem) 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-tf26 .tf-section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.page-tf26 .tf-section-head h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.page-tf26 .tf-section-head p {
    color: #9a96ae;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

:is(.page-tf26, .page-index-tf) .tf-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);
    max-width: 720px;
    margin: 0 auto;
}

:is(.page-tf26, .page-index-tf) .tf-cd-card {
    background: rgba(20, 18, 32, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(157, 0, 255, 0.25);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(157, 0, 255, 0.08);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

:is(.page-tf26, .page-index-tf) .tf-cd-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.35);
}

:is(.page-tf26, .page-index-tf) .tf-cd-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1;
    display: block;
    background: linear-gradient(180deg, #fff, var(--tf-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

:is(.page-tf26, .page-index-tf) .tf-cd-lbl {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7d7890;
    margin-top: 0.5rem;
    display: block;
}

.page-tf26 .tf-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.page-tf26 .tf-bento-card {
    grid-column: span 4;
    background: rgba(18, 16, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-tf26 .tf-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-violet), var(--tf-cyan));
    opacity: 0.85;
}

.page-tf26 .tf-bento-card:hover {
    border-color: rgba(157, 0, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.page-tf26 .tf-bento-card--wide {
    grid-column: span 12;
}

.page-tf26 .tf-bento-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.page-tf26 .tf-bento-card h3 i {
    color: var(--tf-violet);
}

.page-tf26 .tf-bento-card p {
    color: #a8a3b8;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

:is(.page-tf26, .page-index-tf) .tf-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

:is(.page-tf26, .page-index-tf) .tf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-tf26 .tf-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.6) 0%, rgba(10, 10, 20, 0.9) 100%);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
}

.page-tf26 .tf-location-visual {
    aspect-ratio: 16/10;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(157, 0, 255, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(-12deg, transparent, transparent 8px, rgba(255, 255, 255, 0.03) 8px, rgba(255, 255, 255, 0.03) 9px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}

.page-tf26 .tf-location h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1rem;
}

.page-tf26 .tf-location p {
    color: #a8a3b8;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.page-tf26 .tf-cta-bar {
    margin: 4rem auto 0;
    max-width: 1200px;
    padding: 0 1.25rem 4rem;
}

.page-tf26 .tf-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(157, 0, 255, 0.12);
    border: 1px solid rgba(157, 0, 255, 0.35);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.page-tf26 .tf-cta-inner p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.page-tf26 .tf-footer-mini {
    text-align: center;
    padding: 2rem 1rem 3rem;
    color: #5c5868;
    font-size: 0.85rem;
}

.page-tf26 .tf-footer-mini a {
    color: var(--tf-violet);
    text-decoration: none;
}

.page-tf26 .tf-footer-mini a:hover {
    text-decoration: underline;
}

.page-tf26 .nav-menu {
    gap: 1.15rem;
}

.page-index-tf .tf-stand-section,
.page-index-tf .tf-sponsor-section {
    position: relative;
    z-index: 3;
}

.page-index-tf .tf-stand-head,
.page-index-tf .tf-sponsor-head {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 2rem;
}

.page-index-tf .tf-stand-head h2,
.page-index-tf .tf-sponsor-head h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    margin: 0.5rem 0 0.85rem;
}

.page-index-tf .tf-stand-lead,
.page-index-tf .tf-sponsor-lead {
    color: #ada8be;
    line-height: 1.6;
    margin: 0;
}

.page-index-tf .tf-stand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-index-tf .tf-stand-card {
    background: rgba(20, 18, 32, 0.7);
    border: 1px solid rgba(157, 0, 255, 0.25);
    border-radius: 16px;
    padding: 1.1rem 1rem 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-index-tf .tf-stand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.33);
}

.page-index-tf .tf-stand-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
    line-height: 1.3;
}

.page-index-tf .tf-stand-card .tf-stand-role {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8ff3ff;
    font-weight: 600;
}

.page-index-tf .tf-stand-card p {
    margin: 0;
    color: #b7b3c8;
    font-size: 0.94rem;
    line-height: 1.55;
}

.page-index-tf .tf-sponsor-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(157, 0, 255, 0.28);
    background: rgba(16, 14, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.page-index-tf .tf-sponsor-marquee::before,
.page-index-tf .tf-sponsor-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 88px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.page-index-tf .tf-sponsor-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(9, 8, 14, 0.95), transparent);
}

.page-index-tf .tf-sponsor-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(9, 8, 14, 0.95), transparent);
}

.page-index-tf .tf-sponsor-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
    padding: 0.85rem;
    will-change: transform;
}

.page-index-tf .tf-sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 172px;
    min-width: 172px;
    height: 96px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.6rem;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-index-tf .tf-sponsor-item:hover,
.page-index-tf .tf-sponsor-item:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.7);
}

.page-index-tf .tf-sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: saturate(1.03);
}

@media (max-width: 1100px) {
    .page-tf26 .nav-menu {
        gap: 0.65rem;
        font-size: 0.88rem;
    }

    .page-index-tf .tf-stand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .page-tf26 .tf-bento-card {
        grid-column: 1 / -1;
    }

    .page-tf26 .tf-bento-card--wide {
        grid-column: 1 / -1;
    }

    .page-tf26 .tf-location {
        grid-template-columns: 1fr;
    }

    :is(.page-tf26, .page-index-tf) .tf-countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-index-tf .tf-sponsor-item {
        width: 148px;
        min-width: 148px;
        height: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.page-tf26, .page-index-tf) .tf-blob {
        animation: none !important;
    }

    :is(.page-tf26 .tf-hero, .page-index-tf .hero) .tf-hero-title {
        animation: none !important;
        background-position: 50% center;
    }

    .page-tf26 .tf-scroll-hint {
        animation: none !important;
    }

    .page-index-tf .hero .scroll-indicator {
        animation: none !important;
    }

    .page-index-tf .tf-stand-card {
        transition: none !important;
    }

    .page-index-tf .tf-sponsor-item {
        transition: none !important;
    }
}

/* —— Index home: stesso impatto immersivo sulla hero + countdown —— */
.page-index-tf .hero {
    background: none !important;
    background-image: none !important;
    position: relative;
    z-index: 3;
    isolation: isolate;
}

.page-index-tf .hero::before {
    opacity: 0.12;
}

.page-index-tf .hero-overlay {
    background: radial-gradient(ellipse 90% 70% at 50% 22%, rgba(5, 5, 8, 0.12) 0%, rgba(5, 5, 8, 0.75) 100%);
}

.page-index-tf .hero .hero-subtitle.tf-hero-meta {
    margin-top: 0.55rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.page-index-tf .hero .hero-description {
    color: #a8a3b8;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.page-index-tf .hero .scroll-indicator {
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    animation: tfBounceIndex 2.2s ease-in-out infinite;
}

.page-index-tf .hero .scroll-indicator i {
    font-size: 1.1rem;
    opacity: 0.85;
}

.page-index-tf .tf-index-countdown.section {
    padding: 2.75rem 0 3.25rem;
    position: relative;
    z-index: 3;
    background: transparent;
    border-bottom: 1px solid rgba(157, 0, 255, 0.14);
}

.page-index-tf .tf-countdown-label {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #7d7890;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.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;
}

@media (max-width: 640px) {
    .page-index-tf .tf-stand-grid {
        grid-template-columns: 1fr;
    }

    .page-index-tf .tf-sponsor-marquee::before,
    .page-index-tf .tf-sponsor-marquee::after {
        width: 50px;
    }
}
