/* ========================================
   Mycelium Lab — Brochure scroll
   Magenta on dark, technical, minimal.
   ======================================== */

:root {
    --color-bg: #0a0a0d;
    --color-bg-alt: #101015;
    --color-surface: #16161c;
    --color-surface-hover: #1d1d25;
    --color-border: #25252e;
    --color-border-light: #34343f;
    --color-text: #f4f4f6;
    --color-text-secondary: #b4b4bd;
    --color-text-muted: #6e6e7a;
    --color-accent: #ec1aa3;
    --color-accent-dim: #c2148a;
    --color-accent-soft: #ff5ec2;
    --color-accent-glow: rgba(236, 26, 163, 0.28);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 12% 10%, rgba(236, 26, 163, 0.08), transparent 50%),
        radial-gradient(circle at 88% 90%, rgba(236, 26, 163, 0.06), transparent 55%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.synapse-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Side network navigation
   ======================================== */

.sidenav {
    position: fixed;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
}

.sidenav__net { display: none; }

.sidenav__list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: auto;
}

.sidenav__link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 4px 2px;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 0, 0, 0.6);
}

.sidenav__node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(236, 26, 163, 0.18), 0 0 14px var(--color-accent-glow);
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}

.sidenav__label {
    opacity: 1;
    transform: none;
    transition: none;
}

.sidenav__link:hover {
    color: #fff;
    background: none;
    transform: translateX(4px);
}

.sidenav__link:hover .sidenav__node {
    background: #fff;
    box-shadow: 0 0 0 5px rgba(236, 26, 163, 0.25), 0 0 18px rgba(255, 255, 255, 0.6);
}

.sidenav__link.is-active {
    color: var(--color-accent);
    background: none;
    box-shadow: none;
}

.sidenav__link.is-active .sidenav__node {
    background: var(--color-accent);
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(236, 26, 163, 0.22), 0 0 22px var(--color-accent-glow);
}

/* Mobile nav toggle */
.mobilenav__toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(10, 10, 13, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
}

.mobilenav__toggle span {
    width: 18px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.3s;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 0 1px var(--color-accent), 0 10px 40px var(--color-accent-glow);
}

.btn--primary:hover {
    background: var(--color-accent-soft);
    box-shadow: 0 0 0 1px var(--color-accent-soft), 0 14px 50px rgba(236, 26, 163, 0.45);
    transform: translateY(-1px);
}

.btn--large {
    padding: 18px 42px;
    font-size: 1.0625rem;
}

/* ========================================
   Page sections (brochure)
   ======================================== */

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 120px 24px 100px;
    display: flex;
    flex-direction: column;
}

.page__header {
    text-align: center;
    margin-bottom: 56px;
}

.page__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
    font-weight: 500;
}

.page__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page__title .accent {
    background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page__lead {
    margin-top: 18px;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   1. HOME
   ======================================== */

.home {
    padding: 0;
    min-height: 100vh;
}

.home__hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.home__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: contrast(1.08) saturate(1.12);
    image-rendering: -webkit-optimize-contrast;
}

.home__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 13, 0.62) 0%,
            rgba(10, 10, 13, 0.45) 18%,
            rgba(10, 10, 13, 0.22) 32%,
            rgba(10, 10, 13, 0.05) 48%,
            rgba(10, 10, 13, 0.05) 70%,
            rgba(10, 10, 13, 0.35) 88%,
            rgba(10, 10, 13, 0.82) 100%);
}

.home__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: clamp(10px, 2.5vh, 32px) 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.home__logo {
    width: clamp(80px, 12vw, 140px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 32px rgba(236, 26, 163, 0.35));
    margin-bottom: 4px;
}

.home__wordmark {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 11vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    text-shadow:
        0 4px 30px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(236, 26, 163, 0.55),
        0 0 100px rgba(236, 26, 163, 0.3);
    line-height: 1;
    margin: 0;
}

.home__tagline,
.home__lead {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 0, 0, 0.7);
    margin: 0;
    text-align: center;
    max-width: 960px;
}

.home__tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 500;
}

.home__lead {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home__lead p {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 400;
}

.home__lead-headline {
    max-width: none;
    white-space: nowrap;
}

.home__lead-headline em {
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    color: #fff;
}

.home__lead strong {
    font-weight: 600;
    color: var(--color-accent);
}

@media (max-width: 720px) {
    .home__lead-headline {
        white-space: normal;
    }
}

.home__copyright {
    position: absolute;
    z-index: 2;
    bottom: 24px;
    right: 32px;
    font-size: 0.7rem;
    color: rgba(244, 244, 246, 0.7);
    letter-spacing: 0.06em;
    text-align: right;
}

/* ========================================
   2. NODE
   ======================================== */

.node__inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.node__stage {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(236, 26, 163, 0.08);
}

.node__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node__labels {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 24px;
}

.node__labels--top    { margin-bottom: 36px; }
.node__labels--bottom { margin-top: 36px; margin-bottom: 40px; }

.node__label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.node__label:hover {
    background: rgba(236, 26, 163, 0.12);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(236, 26, 163, 0.2);
}

.node__label.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ---- Spec popup (full-screen modal) ---- */
.node__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 13, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
    z-index: 500;
}

.node__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.node__popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(520px, 90%);
    max-height: 82vh;
    padding: 32px 36px;
    background: rgba(16, 16, 21, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-accent);
    border-radius: 18px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(236, 26, 163, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
    z-index: 501;
    overflow-y: auto;
}

.node__popup.is-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.node__popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    z-index: 2;
}

.node__popup-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: rotate(90deg);
}

.node__popup-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 32px 14px 0;
    letter-spacing: -0.01em;
}

.node__popup-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.node__popup-content p + p { margin-top: 10px; }

.node__popup-content strong { color: var(--color-text); font-weight: 600; }

.node__disclaimer {
    margin-top: 16px !important;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 0.78rem !important;
    line-height: 1.55 !important;
    color: var(--color-text-muted) !important;
    font-style: italic;
}

.node__cta { text-align: center; padding-top: 16px; }

/* ---- Interactive CTA: shine + arrow slide + idle pulse ---- */
.btn--cta {
    position: relative;
    overflow: hidden;
    gap: 12px;
    animation: ctaPulse 2.6s ease-in-out infinite;
}

.btn--cta .btn__label { position: relative; z-index: 2; }

.btn--cta .btn__arrow {
    position: relative;
    z-index: 2;
    display: inline-block;
    font-size: 1.15em;
    transition: transform 0.35s var(--ease-out);
}

.btn--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 25%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 75%);
    transform: translateX(-130%);
    transition: transform 0.7s var(--ease-out);
    z-index: 1;
    pointer-events: none;
}

.btn--cta:hover {
    animation-play-state: paused;
    transform: translateY(-2px);
}

.btn--cta:hover::before { transform: translateX(130%); }

.btn--cta:hover .btn__arrow { transform: translateX(8px); }

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px var(--color-accent), 0 10px 40px var(--color-accent-glow), 0 0 0 0 rgba(236, 26, 163, 0.45);
    }
    50% {
        box-shadow: 0 0 0 1px var(--color-accent), 0 14px 50px rgba(236, 26, 163, 0.5), 0 0 0 12px rgba(236, 26, 163, 0);
    }
}

/* ========================================
   3. APPLICAZIONI (horizontal scroll)
   ======================================== */

.applicazioni { padding-bottom: 80px; }

.apps {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.apps__rail {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(236, 26, 163, 0.08);
}

.apps__rail::-webkit-scrollbar { display: none; }

.apps__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    position: relative;
}

.apps__item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.apps__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 28px 24px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    text-align: center;
    background: linear-gradient(to top, rgba(10, 10, 13, 0.85) 0%, rgba(10, 10, 13, 0.55) 60%, transparent 100%);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.apps__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.apps__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border-light);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease-out);
}

.apps__dot:hover {
    background: var(--color-accent-soft);
}

.apps__dot.is-active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 100px;
    box-shadow: 0 0 12px var(--color-accent-glow);
}

/* ========================================
   4. VIENI A VISITARCI
   ======================================== */

.visit__stack {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.visit__image {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(236, 26, 163, 0.08);
}

.visit__image img {
    width: 100%;
    height: auto;
    display: block;
}

.visit__info {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ---- Address card with map icon ---- */
.visit__address {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-text);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.visit__address:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(236, 26, 163, 0.15);
}

.visit__map-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 12px var(--color-accent-glow));
    transition: transform 0.3s var(--ease-out);
}

.visit__address:hover .visit__map-icon {
    transform: scale(1.08) translateY(-2px);
}

.visit__address-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.visit__address-text strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.visit__address-text > span {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.visit__address-cta {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    white-space: nowrap;
    transition: transform 0.3s var(--ease-out);
}

.visit__address:hover .visit__address-cta {
    transform: translateX(4px);
}

.visit__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visit__contacts li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--color-border);
    transition: padding-left 0.3s var(--ease-out);
}

.visit__contacts li:last-child { border-bottom: none; }

.visit__contacts li:hover { padding-left: 12px; }

.visit__contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 6px var(--color-accent-glow));
    transition: transform 0.3s var(--ease-out), stroke 0.3s var(--ease-out), fill 0.3s var(--ease-out);
}

.visit__contacts li:hover .visit__contact-icon {
    transform: scale(1.15);
}

.visit__contacts-item--whatsapp:hover .visit__contact-icon[fill="#ec1aa3"] {
    fill: #25d366;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.55));
}

.visit__contacts span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    min-width: 86px;
}

.visit__contacts a {
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: color 0.3s;
    overflow-wrap: anywhere;
}

.visit__contacts a:hover { color: var(--color-accent); }

.visit__contacts-item--whatsapp a:hover { color: #25d366; }


/* ========================================
   5. I NOSTRI VALORI
   ======================================== */

.values__hero {
    max-width: 1100px;
    margin: 0 auto 56px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(236, 26, 163, 0.08);
}

.values__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.page__intro {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: center;
}

.page__intro p {
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.75;
}

.page__intro p + p { margin-top: 14px; }

.page__intro strong {
    color: var(--color-accent);
    font-weight: 600;
}

.values__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.values__block {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.values__block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0.6;
}

.values__block:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.values__block h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.values__block p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.values__block strong { color: var(--color-text); font-weight: 600; }
.values__block em { color: var(--color-accent-soft); font-style: italic; }

.values__closing {
    max-width: 820px;
    margin: 56px auto 0;
    padding: 28px 36px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text);
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, rgba(236, 26, 163, 0.12), rgba(236, 26, 163, 0.03));
    border: 1px solid rgba(236, 26, 163, 0.3);
    border-radius: 14px;
}

.values__closing strong {
    background: linear-gradient(120deg, var(--color-accent), var(--color-accent-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    position: relative;
    z-index: 1;
    padding: 28px 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    background: rgba(10, 10, 13, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer__logo {
    width: clamp(56px, 7vw, 84px);
    height: auto;
    object-fit: contain;
    opacity: 0.92;
    filter: drop-shadow(0 2px 12px rgba(236, 26, 163, 0.25));
}

.footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========================================
   Reveal animation
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal--visible { opacity: 1; transform: translateY(0); }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .values__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 80px 20px 80px;
    }

    .sidenav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        transform: translateY(-100%);
        width: 100%;
        max-width: none;
        padding: 70px 24px 24px;
        background: rgba(10, 10, 13, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(236, 26, 163, 0.3);
        transition: transform 0.4s var(--ease-out);
    }

    .sidenav.is-open { transform: translateY(0); }

    .sidenav__list {
        flex-direction: column;
        gap: 6px;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .sidenav__link {
        font-size: 1rem;
        padding: 14px 18px;
        width: 100%;
        justify-content: flex-start;
    }

    .mobilenav__toggle { display: flex; }

    /* HOME: image scales (contain) instead of being cropped on narrow viewports */
    .home__hero {
        background: var(--color-bg);
    }

    .home__bg {
        object-fit: contain;
        object-position: center bottom;
        background-color: var(--color-bg);
    }

    .home__overlay {
        background: linear-gradient(180deg,
            rgba(10, 10, 13, 0.82) 0%,
            rgba(10, 10, 13, 0.6) 20%,
            rgba(10, 10, 13, 0.3) 38%,
            rgba(10, 10, 13, 0.08) 55%,
            rgba(10, 10, 13, 0.08) 72%,
            rgba(10, 10, 13, 0.48) 90%,
            rgba(10, 10, 13, 0.92) 100%);
    }

    .home__content {
        padding-top: 10px;
        padding-bottom: 60px;
        gap: 14px;
    }

    .home__copyright {
        position: absolute;
        bottom: 16px;
        left: 16px;
        right: 16px;
        text-align: center;
        font-size: 0.65rem;
    }

    /* Caratteristiche: tighter spacing on mobile */
    .node__labels {
        gap: 10px 12px;
    }

    .node__labels--top { margin-bottom: 24px; }
    .node__labels--bottom { margin-top: 24px; }

    .node__label {
        font-size: 0.75rem;
        padding: 9px 16px;
        letter-spacing: 0.06em;
    }

    /* Popup tighter on mobile */
    .node__popup {
        padding: 24px 22px 22px;
        width: min(440px, 92%);
        max-height: 86vh;
    }

    .node__popup-content h3 {
        font-size: 1.125rem;
        margin-right: 36px;
    }

    .apps { padding: 0 12px; }
    .apps__item { flex: 0 0 100%; }

    .visit__address {
        flex-wrap: wrap;
        gap: 14px;
        padding: 20px;
    }

    .visit__address-cta {
        width: 100%;
        text-align: right;
    }

    .visit__stack { gap: 32px; }
}
