@import url('/css/home.css');
@import url('/css/contacts.css');
@import url('/css/privacy.css');
@import url('/css/cookie.css');
@import url('/css/not-found.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #171717;
    margin-top: -20px;
    margin-bottom: 0px;
    margin-right: 0px;
    margin-left: 0px;
    padding: 0px
}

* {
    box-sizing: border-box;
}

main, section, div, article {
    margin: 0;
    padding: 0;
}

ki-app {
    display: block;
    margin: 0;
    padding: 0;
}

ki-app > * {
    margin-top: 0 !important;
}

body > * {
    margin-top: 0 !important;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA6MjE2MTAwICAyMzcgOTcuMDY1MTAgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6NTFaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4RyA5Mi4yODM3IDI2Ny4zODcggODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== SCROLL TO TOP BUTTON (Global) ===== */
.ki-scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(2, 65, 53, 0.75);
    border: 1px solid rgba(228, 242, 218, 0.25);
    color: #E4F2DA;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    font-weight: 700;
    padding: 0;
    outline: none;
}

    .ki-scroll-to-top::before {
        content: "↑";
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ki-scroll-to-top:hover {
        background: rgba(2, 65, 53, 0.95);
        border-color: rgba(228, 242, 218, 0.45);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .ki-scroll-to-top:active {
        transform: translateY(-2px);
    }

    .ki-scroll-to-top.show {
        display: flex;
    }

@media (max-width: 640px) {
    .ki-scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ===== KI NAVBAR (global) ===== */

/* container (usato dalla navbar) */
.ki-container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}

/* NAVBAR */
.ki-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    margin: 0;
}

.ki-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ki-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.ki-logo-img {
    height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.ki-nav-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 8px;
    align-items: center;
}

    .ki-nav-links a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        position: relative;
        transition: opacity 0.2s ease;
    }

        .ki-nav-links a:hover {
            opacity: 0.7;
        }

.ki-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.ki-nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

    .ki-nav-item:hover {
        opacity: 0.7;
    }

.ki-dropdown-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid white;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.ki-nav-dropdown:hover .ki-dropdown-caret {
    transform: rotateZ(180deg);
}

.ki-nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.ki-nav-dropdown:hover .ki-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ki-nav-submenu a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .ki-nav-submenu a:hover {
        background: rgba(228, 242, 218, 0.1);
        padding-left: 24px;
    }

.ki-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ki-lang {
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

    .ki-lang option {
        color: #111;
    }

/* burger */
.ki-burger {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.20));
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 10px;
    backdrop-filter: blur(6px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
}

    .ki-burger span {
        display: block;
        width: 18px;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 999px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: transform .22s ease, top .22s ease, opacity .18s ease, width .22s ease;
    }

        .ki-burger span:nth-child(1) {
            top: 15px;
        }

        .ki-burger span:nth-child(2) {
            top: 21px;
            opacity: 0.95;
        }

        .ki-burger span:nth-child(3) {
            top: 27px;
        }

    .ki-burger:hover {
        border-color: rgba(255,255,255,0.22);
        transform: translateY(-1px);
    }

    .ki-burger:active {
        transform: translateY(0px) scale(0.98);
    }

    .ki-burger:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(228, 242, 218, 0.25), 0 10px 35px rgba(0,0,0,.35);
    }

    /* morph to X when open */
    .ki-burger.open span:nth-child(1) {
        top: 21px;
        transform: translateX(-50%) rotate(45deg);
        width: 20px;
    }

    .ki-burger.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.2);
    }

    .ki-burger.open span:nth-child(3) {
        top: 21px;
        transform: translateX(-50%) rotate(-45deg);
        width: 20px;
    }

/* Custom Language Dropdown */
.ki-lang-wrapper {
    position: relative;
}

.ki-custom-lang {
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

    .ki-custom-lang:hover {
        background: rgba(0, 0, 0, 0.35);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .ki-custom-lang .fi {
        font-size: 16px;
        width: 20px;
        height: 15px;
        border-radius: 2px;
    }

.ki-lang-text {
    font-size: 14px;
}

.ki-lang-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

    .ki-lang-arrow.open {
        transform: rotate(180deg);
    }

.ki-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ki-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

    .ki-lang-option:hover {
        background: rgba(228, 242, 218, 0.12);
    }

    .ki-lang-option.active {
        background: rgba(228, 242, 218, 0.18);
        color: rgba(228, 242, 218, 1);
    }

    .ki-lang-option .fi {
        font-size: 18px;
        width: 24px;
        height: 18px;
        border-radius: 3px;
        flex-shrink: 0;
    }

/* mobile menu */
.ki-mobile {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

    .ki-mobile.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.ki-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 250;
    pointer-events: auto;
}

.ki-mobile-panel {
    position: fixed;
    top: 70px;
    right: 16px;
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(35, 35, 35, 0.92) 100%);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
    transform: translateY(-12px);
    transition: transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .22s ease;
    opacity: 0;
    z-index: 260;
    pointer-events: none;
}

    .ki-mobile-panel::-webkit-scrollbar {
        width: 6px;
    }

    .ki-mobile-panel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }

    .ki-mobile-panel::-webkit-scrollbar-thumb {
        background: rgba(228, 242, 218, 0.3);
        border-radius: 10px;
    }

    .ki-mobile-panel::-webkit-scrollbar-thumb:hover {
        background: rgba(228, 242, 218, 0.5);
    }

.ki-mobile.open .ki-mobile-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ki-mobile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(228, 242, 218, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

    .ki-mobile-close:hover {
        background: rgba(228, 242, 218, 0.15);
        border-color: rgba(228, 242, 218, 0.4);
        color: rgba(228, 242, 218, 1);
        transform: rotate(90deg);
    }

    .ki-mobile-close:active {
        transform: rotate(90deg) scale(0.95);
    }

    .ki-mobile-close span {
        font-size: 24px;
        line-height: 1;
        font-weight: 300;
    }

.ki-mobile-inner {
    margin: 0;
    width: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ki-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all .15s ease;
    cursor: pointer;
    background: #383C3E;
}

    .ki-mobile-link::before {
        content: '';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: rgba(228, 242, 218, 0.1);
        flex-shrink: 0;
        font-size: 14px;
    }

    .ki-mobile-link:nth-child(1)::before {
        content: '🏠';
    }

    .ki-mobile-link:nth-child(3)::before {
        content: '📄';
    }

    .ki-mobile-link:nth-child(4)::before {
        content: '📞';
    }

    .ki-mobile-link:hover {
        background: rgba(228, 242, 218, 0.12);
        padding-left: 20px;
    }

    .ki-mobile-link:active {
        background: rgba(228, 242, 218, 0.18);
    }

.ki-mobile-details {
    list-style: none;
    border-radius: 8px;
    overflow: hidden;
}

.ki-mobile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    user-select: none;
    transition: all .15s ease;
    background: #383C3E;
    border-radius: 8px;
    position: relative;
    padding-right: 36px;
}

    .ki-mobile-summary::before {
        content: '🎯';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: #383C3E;
        flex-shrink: 0;
        font-size: 14px;
    }

    .ki-mobile-summary::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        width: 6px;
        height: 6px;
        border-right: 2px solid rgba(228, 242, 218, 0.7);
        border-bottom: 2px solid rgba(228, 242, 218, 0.7);
        transition: transform .2s ease;
    }

    .ki-mobile-summary:hover {
        background: #383C3E;
        padding-left: 20px;
    }

    .ki-mobile-summary::marker {
        display: none;
    }

.ki-mobile-details[open] > .ki-mobile-summary {
    background: #383C3E;
    color: rgba(228, 242, 218, 1);
    border-bottom: 1px solid rgba(228, 242, 218, 0.15);
}

    .ki-mobile-details[open] > .ki-mobile-summary::after {
        transform: translateY(-50%) rotate(-135deg);
    }

.ki-mobile-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.2);
}

.ki-mobile-sublink {
    display: block;
    text-decoration: none;
    font-weight: 200;
    font-size: 12px;
    transition: all .15s ease;
    cursor: pointer;
    border-left: 3px solid transparent;

    color: rgba(228, 242, 218, 1);
    background: rgba(228, 242, 218, 0.08);
    border-left-color: rgba(228, 242, 218, 0.8);
    margin-left: 10px;
    margin-right: 5px;
    margin-top: 4px;

}

    .ki-mobile-sublink:hover {
        color: rgba(228, 242, 218, 1);
        background: rgba(228, 242, 218, 0.08);
        border-left-color: rgba(228, 242, 218, 0.8);
    }

    .ki-mobile-sublink:active {
        background: rgba(228, 242, 218, 0.12);
    }

.ki-mobile-cta {
    margin-top: 8px;
    width: 100%;
    border-radius: 8px;
}

/* Mobile Language Section */
.ki-mobile-lang-wrapper {
    padding: 12px 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(228, 242, 218, 0.15);
}

.ki-mobile-lang-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(228, 242, 218, 0.7);
    margin-bottom: 8px;
    padding: 0 8px;
}

.ki-mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ki-mobile-lang-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(228, 242, 218, 0.15);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

    .ki-mobile-lang-btn:hover {
        background: rgba(228, 242, 218, 0.1);
        border-color: rgba(228, 242, 218, 0.25);
    }

    .ki-mobile-lang-btn.active {
        background: rgba(228, 242, 218, 0.15);
        border-color: rgba(228, 242, 218, 0.4);
        color: rgba(228, 242, 218, 1);
    }

    .ki-mobile-lang-btn .fi {
        font-size: 18px;
        width: 24px;
        height: 18px;
        border-radius: 3px;
        flex-shrink: 0;
    }

/* responsive */
@media (max-width: 980px) {
    .ki-nav-links {
        display: none;
    }

    .ki-burger {
        display: flex;
    }

    .ki-lang-wrapper {
        display: none !important;
    }
}