/* Header Styles */
.main-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

.header-container {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    backdrop-filter: blur(5px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 60px;
    padding: 10px 24px;
    margin: 0 auto;
    max-width: min(95%, 1000px);
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 32px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Mobile Search Bar */
.mobile-search {
    display: none;
    align-items: center;
    box-shadow:  0 0 5px rgba(211, 211, 211, 0.6) !important;   
    border-radius: 20px !important;
    padding: 10px 12px !important;
    flex: 1;
    border: none !important;
    background: white !important;
}

.mobile-search .search-icon {
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
    margin-right: 8px;
}

.mobile-search .search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    width: 100% !important;
    font-family: "Satoshi-Regular", sans-serif !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

.mobile-search .search-input::placeholder {
    color: #999;
}

/* Desktop Search Toggle Button */
.desktop-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    flex-shrink: 0;
}

.desktop-search-toggle i {
    font-size: 20px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.desktop-search-toggle:hover {
    background: rgba(107, 70, 193, 0.1);
}

.desktop-search-toggle:hover i {
    color: #6B46C1;
    transform: scale(1.1);
}

/* Desktop Search Bar */
.desktop-search {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 10px 16px;
    flex: 1;
    box-shadow: 0 0 5px rgba(211, 211, 211, 0.6);
    min-width: 0;
    position: relative;
}

.desktop-search .search-icon {
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
}

.desktop-search .search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    width: 100%;
    font-family: "Satoshi-Regular", sans-serif;
    padding: 0;
}

.desktop-search .search-input::placeholder {
    color: #999;
}

/* Search Results Dropdown */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-results.show {
    display: block;
}

.search-results-empty {
    padding: 1.5rem;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-result-section {
    padding: 0.5rem 0;
}

.search-result-section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-header {
    padding: 0.5rem 1rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #6B46C1;
    text-transform: uppercase;
}

.search-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(107, 70, 193, 0.08);
}

.search-result-icon {
    font-size: 20px;
    color: #6B46C1;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Community search – avatar inside result rows */
.search-result-avatar-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 70, 193, 0.12);
}

.search-result-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.search-result-avatar-initials {
    font-size: 13px;
    font-weight: 700;
    color: #6B46C1;
    line-height: 1;
}

.search-result-item--user {
    align-items: center;
}

.search-result-content--user {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: 32px;
}

.search-result-title--user {
    display: block;
    margin-bottom: 0;
    line-height: 1.08;
    transform: translateY(1px);
}

.search-result-description--user {
    display: block;
    line-height: 1.05;
    margin-top: 0;
}

/* Search Results - Services Specific Styles */
.search-service-price {
    color: #6B46C1;
    font-size: 14px;
    font-weight: 700;
}

.search-service-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.search-service-tag {
    display: inline-block;
    background: rgba(107, 70, 193, 0.1);
    color: #6B46C1;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 10px;
    white-space: nowrap;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a:active,
.nav-menu a:visited {
    text-decoration: none;
    color: #1a1a1a;
}

.nav-menu a:hover {
    color: #1a1a1a;
    background: rgba(200, 190, 230, 0.25);
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 10px;
    white-space: nowrap;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link:visited {
    text-decoration: none;
    color: #1a1a1a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6B46C1;
    transition: width 0.3s ease;
    display: none;
}

.nav-link:hover {
    color: #1a1a1a;
    background: rgba(200, 190, 230, 0.25);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(200, 190, 230, 0.25);
}

.nav-dropdown.active .dropdown-toggle {
    background: rgba(200, 190, 230, 0.25);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Hide old dropdown style */
.dropdown-menu {
    display: none !important;
}

/* Mega Dropdown Drawer (cassetto a discesa) */
.mega-dropdown-drawer {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 1000px);
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    backdrop-filter: blur(5px) saturate(180%);
    border-radius: 32px;
    box-shadow: 
        0 20px 60px rgba(107, 70, 193, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease,
                visibility 0.4s ease,
                padding 0.5s ease,
                transform 0.4s ease;
    z-index: 998;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
}

.mega-dropdown-drawer.active {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 24px 32px 32px;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-drawer.single-item {
    width: min(95%, 400px);
}

.mega-dropdown-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

/* Auto-adjust grid based on number of items */
.mega-dropdown-item {
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 300px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1.5px solid rgba(107, 70, 193, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 
        0 4px 12px rgba(107, 70, 193, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

/* 1 item: full width (but constrained) */
.mega-dropdown-content:has(.mega-dropdown-item:only-child) .mega-dropdown-item {
    max-width: 280px;
    min-width: 240px;
}

/* 2-3 items: equal width */
.mega-dropdown-content:has(.mega-dropdown-item:nth-child(2):last-child) .mega-dropdown-item,
.mega-dropdown-content:has(.mega-dropdown-item:nth-child(3):last-child) .mega-dropdown-item {
    flex: 1 1 calc(33.333% - 20px);
}

/* 4+ items: 3 per row (will wrap to second row) */
.mega-dropdown-content:has(.mega-dropdown-item:nth-child(4)) .mega-dropdown-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.mega-dropdown-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
    border-color: rgba(107, 70, 193, 0.4);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(107, 70, 193, 0.18),
        0 4px 8px rgba(107, 70, 193, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.mega-dropdown-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.mega-dropdown-item:hover .mega-dropdown-item-title {
    color: #6B46C1;
}

.mega-dropdown-item-description {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.mega-dropdown-item-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
    white-space: nowrap;
    align-self: flex-start;
}
.mega-dropdown-item-tag--free {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.mega-dropdown-item-tag--iap {
    background: rgba(234, 179, 8, 0.12);
    color: #b45309;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.mega-dropdown-item-tag--license {
    background: rgba(107, 70, 193, 0.1);
    color: #6B46C1;
    border: 1px solid rgba(107, 70, 193, 0.3);
}

/* CTA Button */
.cta-button {
    flex-shrink: 0;
}

/* Animated Button Styles */
.btn-wrapper {
    position: relative;
    display: inline-block;
}

.btn {
    --border-radius: 30px;
    --padding: 4px;
    --transition: 0.4s;
    --button-gradient-start: #381a7d;
    --button-gradient-mid1: #6342b0;
    --button-gradient-mid2: #7B51D8;
    --button-gradient-end: #8B5CF6;
    --highlight-color-hue: 270deg;

    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 22px;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    background: linear-gradient(150deg, var(--button-gradient-start) 0%, var(--button-gradient-mid1) 30%, var(--button-gradient-mid2) 60%, var(--button-gradient-end) 100%);

    box-shadow:
        inset 0px 1px 1px rgba(255, 255, 255, 0.2),
        inset 0px 2px 2px rgba(255, 255, 255, 0.15),
        inset 0px 4px 4px rgba(255, 255, 255, 0.1),
        0 4px 15px rgba(107, 70, 193, 0.3);

    border: solid 1px rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    white-space: nowrap;

    transition:
        box-shadow var(--transition),
        border var(--transition),
        background var(--transition),
        transform var(--transition);
}

.btn::before {
    content: "";
    position: absolute;
    top: calc(0px - var(--padding));
    left: calc(0px - var(--padding));
    width: calc(100% + var(--padding) * 2);
    height: calc(100% + var(--padding) * 2);
    border-radius: calc(var(--border-radius) + var(--padding));
    pointer-events: none;
    background-image: linear-gradient(0deg, rgba(107, 70, 193, 0.3), rgba(107, 70, 193, 0.6));

    z-index: -1;
    transition:
        box-shadow var(--transition),
        filter var(--transition);
    box-shadow:
        0 -8px 8px -6px #0000 inset,
        0 -16px 16px -8px #00000000 inset,
        1px 1px 1px rgba(255, 255, 255, 0.2),
        2px 2px 2px rgba(255, 255, 255, 0.1),
        -1px -1px 1px rgba(0, 0, 0, 0.2),
        -2px -2px 2px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    background-image: linear-gradient(
        0deg,
        #fff,
        hsl(var(--highlight-color-hue), 100%, 70%),
        hsla(var(--highlight-color-hue), 100%, 70%, 50%),
        8%,
        transparent
    );
    background-position: 0 0;
    opacity: 0;
    transition:
        opacity var(--transition),
        filter var(--transition);
}

.btn-letter {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    animation: letter-anim 2s ease-in-out infinite;
    transition:
        color var(--transition),
        text-shadow var(--transition),
        opacity var(--transition);
}

@keyframes letter-anim {
    50% {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
        color: #fff;
    }
}

.btn-svg {
    flex-grow: 0;
    height: 20px;
    width: 20px;
    margin-right: 0.5rem;
    fill: #e8e8e8;
    animation: flicker 2s linear infinite;
    animation-delay: 0.5s;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
    transition:
        fill var(--transition),
        filter var(--transition),
        opacity var(--transition);
}

@keyframes flicker {
    50% {
        opacity: 0.3;
    }
}

.txt-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 4em;
}

.txt-1,
.txt-2 {
    position: absolute;
    word-spacing: -1em;
}

.txt-1 {
    animation: appear-anim 1s ease-in-out forwards;
}

.txt-2 {
    opacity: 0;
}

@keyframes appear-anim {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.btn:focus .txt-1 {
    animation: opacity-anim 0.3s ease-in-out forwards;
    animation-delay: 1s;
}

.btn:focus .txt-2 {
    animation: opacity-anim 0.3s ease-in-out reverse forwards;
    animation-delay: 1s;
}

@keyframes opacity-anim {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.btn:focus .btn-letter {
    animation:
        focused-letter-anim 1s ease-in-out forwards,
        letter-anim 1.2s ease-in-out infinite;
    animation-delay: 0s, 1s;
}

@keyframes focused-letter-anim {
    0%,
    100% {
        filter: blur(0px);
    }
    50% {
        transform: scale(2);
        filter: blur(10px) brightness(150%)
            drop-shadow(-36px 12px 12px hsl(var(--highlight-color-hue), 100%, 70%));
    }
}

.btn:focus .btn-svg {
    animation-duration: 1.2s;
    animation-delay: 0.2s;
}

.btn:focus::before {
    box-shadow:
        0 -8px 12px -6px rgba(255, 255, 255, 0.3) inset,
        0 -16px 16px -8px hsla(var(--highlight-color-hue), 100%, 70%, 20%) inset,
        1px 1px 1px rgba(255, 255, 255, 0.3),
        2px 2px 2px rgba(255, 255, 255, 0.1),
        -1px -1px 1px rgba(0, 0, 0, 0.2),
        -2px -2px 2px rgba(0, 0, 0, 0.1);
}

.btn:focus::after {
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(0deg, #fff, transparent);
    mask-image: linear-gradient(0deg, #fff, transparent);
    filter: brightness(100%);
}

/* Animation delays for .btn-letter elements */
.btn-letter:nth-child(1),
.btn:focus .btn-letter:nth-child(1),
.btn:hover .btn-letter:nth-child(1) {
    animation-delay: 0s;
}
.btn-letter:nth-child(2),
.btn:focus .btn-letter:nth-child(2),
.btn:hover .btn-letter:nth-child(2) {
    animation-delay: 0.08s;
}
.btn-letter:nth-child(3),
.btn:focus .btn-letter:nth-child(3),
.btn:hover .btn-letter:nth-child(3) {
    animation-delay: 0.16s;
}
.btn-letter:nth-child(4),
.btn:focus .btn-letter:nth-child(4),
.btn:hover .btn-letter:nth-child(4) {
    animation-delay: 0.24s;
}
.btn-letter:nth-child(5),
.btn:focus .btn-letter:nth-child(5),
.btn:hover .btn-letter:nth-child(5) {
    animation-delay: 0.32s;
}
.btn-letter:nth-child(6),
.btn:focus .btn-letter:nth-child(6),
.btn:hover .btn-letter:nth-child(6) {
    animation-delay: 0.4s;
}
.btn-letter:nth-child(7),
.btn:focus .btn-letter:nth-child(7),
.btn:hover .btn-letter:nth-child(7) {
    animation-delay: 0.48s;
}
.btn-letter:nth-child(8),
.btn:focus .btn-letter:nth-child(8),
.btn:hover .btn-letter:nth-child(8) {
    animation-delay: 0.56s;
}

/* Hover state */
.btn:hover {
    border: solid 1px hsla(var(--highlight-color-hue), 100%, 80%, 40%);
}

.btn:hover .btn-letter {
    animation: letter-anim 1.2s ease-in-out infinite;
}

.btn:hover::before {
    box-shadow:
        0 -8px 8px -6px rgba(255, 255, 255, 0.6) inset,
        0 -16px 16px -8px hsla(var(--highlight-color-hue), 100%, 70%, 30%) inset;
}

.btn:hover .btn-svg {
    fill: #fff;
    filter: drop-shadow(0 0 3px hsl(var(--highlight-color-hue), 100%, 70%))
        drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.6));
    animation: none;
}

/* Active state */
.btn:active {
    transform: translateY(0);
    border: solid 1px hsla(var(--highlight-color-hue), 100%, 80%, 70%);
    background: hsla(var(--highlight-color-hue), 50%, 20%, 0.5);
}

.btn:active::before {
    box-shadow:
        0 -8px 12px -6px rgba(255, 255, 255, 0.6) inset,
        0 -16px 16px -8px hsla(var(--highlight-color-hue), 100%, 70%, 80%) inset,
        1px 1px 1px rgba(255, 255, 255, 0.4),
        2px 2px 2px rgba(255, 255, 255, 0.2),
        -1px -1px 1px rgba(0, 0, 0, 0.2),
        -2px -2px 2px rgba(0, 0, 0, 0.1);
}

.btn:active::after {
    opacity: 1;
    -webkit-mask-image: linear-gradient(0deg, #fff, transparent);
    mask-image: linear-gradient(0deg, #fff, transparent);
    filter: brightness(200%);
}

.btn:active .btn-letter {
    text-shadow: 0 0 1px hsla(var(--highlight-color-hue), 100%, 90%, 90%);
    animation: none;
}

/* Tablet Design (between 600px and 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    .logo {
        display: none;
    }
    
    .header-container {
        max-width: 95%;
        width: 95%;
    }
    
    .mobile-cta {
        display: none;
    }
    
    .mobile-nav-list > li:not(.mobile-nav-dropdown) {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 0;
    }
    
    .mobile-nav-list > li.mobile-nav-dropdown {
        flex: 1 1 calc(50% - 0.5rem) !important;
        width: auto !important;
    }
    
    .mobile-nav-link {
        text-align: center;
    }
    
    .mobile-dropdown-toggle {
        justify-content: center !important;
    }
    
    .mobile-dropdown-toggle i {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    
    .desktop-search-toggle {
        display: none;
    }
    
    .mobile-search {
        display: flex;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    .hamburger-menu {
        display: flex;
        order: 3;
    }
    
    .cta-button {
        order: 4;
    }
    
    .main-header {
        top: 10px;
        padding: 0 10px;
    }
    
    .header-container {
        padding: 10px 16px;
        border-radius: 30px;
        gap: 12px;
    }
    
    .logo-image {
        height: 28px;
    }
}

@media (max-width: 600px) {
    .main-nav,
    .cta-button {
        display: none;
    }
    
    .logo {
        display: none;
    }
    
    .mobile-search {
        display: flex;
    }
    
    .main-header {
        top: 8px;
        padding: 0;
        left: 8px;
        right: 8px;
    }
    
    .header-container {
        padding: 6px 10px;
        margin: 0;
        justify-content: space-between;
        gap: 8px;
        border-radius: 60px;
        width: 100%;
        max-width: 100%;
    }
    
    .logo-image {
        height: 24px;
        max-width: 120px;
    }
}

/* =========================================
   HAMBURGER MENU STYLES
   ========================================= */

.hamburger-menu {
    display: none;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

@media (max-width: 900px) {
    .hamburger-menu {
        display: flex !important;
    }
}

.hamburger-menu:hover {
    opacity: 0.7;
}

.hamburger-menu:active {
    transform: scale(0.9);
}

.hamburger-icon,
.hamburger-close {
    font-size: 28px;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-icon {
    display: block;
    transform: rotate(0deg) scale(1);
}

.hamburger-close {
    display: none;
    transform: rotate(90deg) scale(0.8);
}

.hamburger-menu.active .hamburger-icon {
    display: none;
    transform: rotate(-90deg) scale(0.8);
}

.hamburger-menu.active .hamburger-close {
    display: block;
    transform: rotate(0deg) scale(1);
}

@media (max-width: 900px) {
    .hamburger-menu {
        display: flex;
    }
}

/* =========================================
   MOBILE MENU DROPDOWN (Inside Header)
   ========================================= */

.mobile-menu-dropdown {
    display: none;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                padding 0.4s ease, 
                visibility 0s 0.5s;
}

@media (max-width: 900px) {
    .mobile-menu-dropdown {
        display: none;
    }
    
    .header-container {
        transition: border-radius 0.4s ease, background 0.3s ease;
    }
    
    .header-container.menu-open {
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    
    .header-container.menu-open .mobile-menu-dropdown {
        display: block;
        max-height: 600px;
        height: auto;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s ease 0.1s, 
                    padding 0.4s ease, 
                    visibility 0s 0s;
    }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.mobile-nav-list > li {
    flex: 0 1 auto;
    min-width: max-content;
}

.mobile-nav-list > li.mobile-nav-dropdown {
    flex: 1 1 100%;
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #1a1a1a;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInFadeIn 0.3s ease forwards;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-link:hover {
    background: rgba(107, 70, 193, 0.1);
    color: #6B46C1;
}

/* Disabilita hover su touch devices */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-link:hover {
        background: transparent;
        color: #1a1a1a;
    }
}

.mobile-nav-link:focus,
.mobile-nav-link:focus-visible,
.mobile-nav-link:focus-within,
.mobile-nav-link:active {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
}

/* Previene il tap highlight su touch devices */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-link {
        -webkit-tap-highlight-color: transparent !important;
        background: transparent !important;
    }
    
    .mobile-nav-link:active,
    .mobile-nav-link:focus {
        background: transparent !important;
    }
}

/* Mobile Dropdown Styles */
.mobile-nav-dropdown {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInFadeIn 0.3s ease forwards;
    animation-delay: 0.25s;
}

.mobile-dropdown-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-nav-dropdown.open .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-dropdown.open .mobile-dropdown-menu {
    max-height: 500px;
    overflow-y: auto;
}

.mobile-dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mobile-dropdown-item:hover {
    opacity: 1;
}

.mobile-tool-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
    white-space: nowrap;
    flex-shrink: 0;
}
.mobile-tool-tag--free {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.mobile-tool-tag--iap {
    background: rgba(234, 179, 8, 0.12);
    color: #b45309;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.mobile-tool-tag--license {
    background: rgba(107, 70, 193, 0.1);
    color: #6B46C1;
    border: 1px solid rgba(107, 70, 193, 0.3);
}

.mobile-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards 0.35s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-cta-btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(150deg, #381a7d 0%, #6342b0 30%, #7B51D8 60%, #8B5CF6 100%);
    color: white !important;
    text-align: center;
    font-family: "Satoshi-Bold", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.mobile-cta-btn * {
    color: white !important;
    flex-shrink: 0;
}

.mobile-cta-text {
    color: #ffffff !important;
    font-family: "Satoshi-Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0px 1px 1px rgba(255, 255, 255, 0.25),
                inset 0px 2px 2px rgba(255, 255, 255, 0.2),
                inset 0px 4px 4px rgba(255, 255, 255, 0.15),
                0 6px 20px rgba(107, 70, 193, 0.5);
}

.mobile-cta-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: white;
    stroke-width: 2;
    position: relative;
    z-index: 1;
}
