:root {
    --bg-dark: #000000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --primary: #ffffff;
    --primary-hover: #f0f0f0;
    --nav-bg: rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #050505; /* Nero molto profondo e pulito */
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

a,
button,
input,
select {
    min-width: 0;
}

html {
    scrollbar-color: rgba(255,255,255,0.32) #050505;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18));
    border: 2px solid #050505;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.3));
}

/* Navbar */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
}

.nav-brand img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    min-width: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--text-main);
}

.arrow {
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    opacity: 0.72;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex: 0 0 auto;
    margin-left: 2px;
}

.dropdown:hover .arrow {
    opacity: 1;
    transform: translateY(1px) rotate(225deg);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
}

.dropdown-content {
    visibility: hidden;
    position: absolute;
    top: 58px;
    left: 50%;
    background-color: rgba(12, 12, 14, 0.98);
    min-width: 320px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.55);
    border-radius: 10px;
    padding: 8px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.dropdown-item {
    display: flex !important;
    align-items: flex-start !important;
    padding: 11px 12px;
    text-decoration: none;
    gap: 16px !important;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-main);
    margin-top: 2px;
    object-fit: contain;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.dropdown-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* Hero Section */
.hero,
.home-hero {
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    display: grid;
    grid-template-columns: minmax(410px, 0.72fr) minmax(610px, 1.28fr);
    gap: 64px;
    align-items: center;
    padding: 72px 64px 58px;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hero-content,
.home-copy {
    max-width: 640px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
}

h1 {
    font-size: clamp(4.1rem, 6.2vw, 7.1rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
    margin-bottom: 26px;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.subtitle {
    font-size: 1.13rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 590px;
    overflow-wrap: anywhere;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    min-height: 58px;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-secondary-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    background: rgba(255,255,255,0.065);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary-home:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
}

.platforms {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    max-width: 520px;
}

.hero-metrics div {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(255,255,255,0.035);
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Mockup Section */
.mockup-container,
.home-visual {
    width: 100%;
    min-width: 0;
    padding: 0;
    perspective: 1200px;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    position: relative;
    border-radius: 22px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.visual-label {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 0 8px 14px;
    color: rgba(255,255,255,0.48);
    font-size: 0.8rem;
    font-weight: 800;
}

.visual-label strong {
    color: rgba(255,255,255,0.82);
    font-size: 0.86rem;
}

.mockup-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 26px 90px rgba(0,0,0,0.68),
        inset 0 1px 0 rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #171719 0%, #09090b 100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-wrapper:hover {
    transform: translateY(-4px);
}

/* Fake macOS titlebar */
.mockup-titlebar {
    height: 42px;
    background: rgba(255,255,255,0.035);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 620px;
    opacity: 0.94;
}

.mockup-overlay {
    position: absolute;
    inset: auto 0 0;
    height: 18%;
    background: linear-gradient(to bottom, transparent, rgba(5,5,5,0.88));
    pointer-events: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        height: auto;
        min-height: 72px;
        max-height: 100vh;
        overflow-y: auto;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .nav-brand {
        font-size: 1.08rem;
    }

    .nav-brand img {
        width: 28px;
        height: 28px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 24px;
        gap: 12px;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links > a,
    .dropbtn {
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 8px;
        background: rgba(255,255,255,0.045);
        border: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .dropdown {
        height: auto;
        position: static;
        flex: 0 0 auto;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: none;
        overflow-y: visible;
        transform: none;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 8px 0 0 16px;
        margin-top: 0;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
        transform: none;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown-subtitle {
        font-size: 0.78rem;
    }

    h1 {
        font-size: clamp(3.05rem, 18vw, 4.8rem);
        line-height: 0.94;
    }

    .hero,
    .home-hero {
        margin-top: 116px;
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 34px 18px 48px;
        gap: 34px;
    }

    .home-copy {
        max-width: none;
    }

    .subtitle {
        font-size: 1rem;
        max-width: none;
    }

    .hero-actions,
    .platforms {
        justify-content: flex-start;
    }

    .btn-primary,
    .btn-secondary-home {
        width: 100%;
        min-height: 52px;
        font-size: 0.98rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .visual-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin: 0 2px 10px;
    }

    .mockup-wrapper {
        border-radius: 12px;
    }

    .mockup-titlebar {
        height: 34px;
    }

    .mockup-dot {
        width: 10px;
        height: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1160px) {
    .navbar {
        padding: 0 26px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero,
    .home-hero {
        grid-template-columns: 1fr;
        padding: 58px 32px;
    }

    .home-copy {
        max-width: 780px;
    }

    .subtitle {
        max-width: 720px;
    }
}

@media (max-width: 420px) {
    .hero-kicker {
        font-size: 0.68rem;
    }

    .hero-metrics {
        gap: 8px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

.cookie-banner {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(10, 10, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.cookie-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner a {
    color: #fff;
    text-underline-offset: 3px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}

.cookie-accept {
    background: #fff;
    color: #050505;
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

@media (max-width: 720px) {
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions button {
        flex: 1;
    }
}
