:root {
    --blue: #0a4fae;
    --blue-hover: #2879d6;
    --dark: #171717;
    --text: #3f4650;
    --muted: #737b85;
    --light: #f4f6f8;
    --panel: #f2f4f7;
    --white: #ffffff;
    --border: #dfe4ea;
    --header-h: 62px;
    --footer-h: 88px;
    --page-x: clamp(18px, 3vw, 52px);
    --content-max: 1160px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--white);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[data-lang] {
    display: none;
}

html.lang-it [data-lang="it"],
html.lang-en [data-lang="en"],
html.lang-sv [data-lang="sv"],
html.lang-de [data-lang="de"] {
    display: revert;
}

.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;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    flex: 0 0 auto;
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    padding: 0 var(--page-x);
    background: #000;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.header-brand {
    display: flex;
    align-items: center;
    width: 168px;
    height: 52px;
    overflow: hidden;
}

.header-brand img {
    width: 168px;
    height: auto;
}

.main-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.3vw, 40px);
    min-width: 0;
}

.nav-link {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: clamp(.88rem, .8vw, 1rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 160ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-hover);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 30px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease;
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.lang-btn.active {
    border-color: var(--blue);
}

.flag-svg {
    width: 27px;
    height: 18px;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}

/* =========================================================
   STRUTTURA GENERALE DELLE VISTE
   ========================================================= */
.site-main {
    flex: 1 0 auto;
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    min-height: calc(100svh - var(--header-h) - var(--footer-h));
}

.site-view {
    width: 100%;
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    min-height: calc(100svh - var(--header-h) - var(--footer-h));
    background: var(--white);
}

.site-view[hidden] {
    display: none !important;
}

/* Sfondo tecnologico condiviso: Home, Prodotto, FAQ e Contatti */
.home-view,
.product-view,
.organization-view,
.faq-view,
.contact-view {
    background: #f7faff url("./image/sfondo_ge.webp") center top / cover no-repeat;
}

/* =========================================================
   ORGANIZZAZIONE
   ========================================================= */
.organization-view {
    padding: clamp(42px, 6vh, 72px) var(--page-x) clamp(48px, 7vh, 82px);
}

.organization-content {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.organization-header {
    max-width: 920px;
    margin: 0 auto clamp(28px, 4vh, 42px);
    text-align: center;
}

.organization-header h1 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.organization-header h2 {
    margin: 0 0 18px;
    color: #171717;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    line-height: 1.25;
}

.organization-header p {
    margin: 0;
    color: #3f4650;
    font-size: clamp(.98rem, 1.05vw, 1.08rem);
    line-height: 1.7;
}

.organization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.organization-card {
    padding: clamp(24px, 2.4vw, 32px);
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    background: rgba(247,248,250,.94);
    box-shadow: 0 12px 28px rgba(26,38,64,.045);
}

.organization-card--wide {
    grid-column: 1 / -1;
}

.organization-card h2 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    line-height: 1.3;
}

.organization-card p {
    margin: 0;
    color: #505862;
    font-size: clamp(.9rem, .95vw, 1rem);
    line-height: 1.65;
}

/* =========================================================
   HOME
   ========================================================= */
.home-view {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 2.4vh, 30px) var(--page-x) clamp(22px, 3vh, 36px);
}

.home-content {
    width: min(100%, 980px);
    margin: 0 auto;
    text-align: center;
}

.home-kilakitu-logo {
    width: min(88vw, 680px);
    margin: 0 auto clamp(6px, 1vh, 12px);
}

.hero-product {
    position: relative;
    width: min(68vw, 600px);
    margin: 0 auto;
    overflow: visible;
}

.hero-product-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 82px;
	clip-path: inset(0 round 82px);
	}

.hero-product-track {
    display: flex;
    width: 100%;
    transform: translateX(0);
    transition: transform .5s ease;
}

.hero-product-img {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: clamp(320px, 39vh, 430px);
    object-fit: contain;
	border-radius: 0;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(10,79,174,.12);
    border-radius: 50%;
    color: var(--blue);
    background: rgba(255,255,255,.95);
    box-shadow: 0 4px 16px rgba(0,0,0,.13);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-slider-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,.17);
}

.hero-slider-arrow--prev {
    left: -54px;
}

.hero-slider-arrow--next {
    right: -54px;
}

.hero-slider-arrow svg {
    width: 20px;
    height: 20px;
}

.home-terrek-logo {
    width: min(80vw, 560px);
    margin: clamp(4px, .8vh, 10px) auto 10px;
}

.home-payoff {
    max-width: 760px;
    margin: 0 auto;
    color: #5c626b;
    font-size: clamp(.86rem, .9vw, 1rem);
    line-height: 1.58;
}

.home-payoff strong {
    color: var(--dark);
}

/* =========================================================
   PRODOTTO
   ========================================================= */
.product-view {
    padding: clamp(34px, 5vh, 64px) var(--page-x) clamp(34px, 5vh, 60px);
}

.product-content {
    width: min(100%, 1500px);
    margin: 0 auto;
}

.product-showcase {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
    gap: clamp(18px, 2vw, 30px);
    align-items: stretch;
    margin: 0 0 clamp(30px, 4vh, 44px);
}

.product-design {
    min-width: 0;
}

.product-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 34px);
    margin: 0 0 clamp(16px, 2vw, 24px);
}

.product-image-box {
    min-height: 250px;
    height: clamp(250px, 25vw, 330px);
    margin: 0;
    border: 2px solid #171717;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(20,36,60,.05);
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin: 0;
}

.feature-card {
    min-height: 170px;
    padding: 26px 22px;
    text-align: center;
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    background: #f7f8fa;
    box-shadow: 0 12px 28px rgba(26,38,64,.045);
}

.feature-card h2 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: clamp(1rem, 1.1vw, 1.14rem);
    line-height: 1.25;
}

.feature-card p {
    margin: 0;
    color: #59606a;
    font-size: clamp(.88rem, .9vw, .98rem);
    line-height: 1.58;
}

.prototype-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}

.prototype-image-box {
    min-height: 250px;
    height: clamp(250px, 25vw, 330px);
    margin: 0;
    border: 2px solid #171717;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(20,36,60,.05);
}

.prototype-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.prototype-copy {
    flex: 1;
    min-height: 170px;
    padding: 26px 24px;
    text-align: center;
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    background: #f7f8fa;
    box-shadow: 0 12px 28px rgba(26,38,64,.045);
}

.prototype-copy h2 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: clamp(1rem, 1.1vw, 1.14rem);
    line-height: 1.25;
}

.prototype-copy p {
    margin: 0;
    color: #59606a;
    font-size: clamp(.88rem, .9vw, .98rem);
    line-height: 1.58;
}

.specs {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 28px 34px 24px;
    border-radius: 14px;
    background: #181818;
    color: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.specs-title {
    margin: 0;
    padding: 0 0 18px;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.spec-list {
    margin: 0;
}

.spec-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    font-size: clamp(.84rem, .9vw, .96rem);
    line-height: 1.45;
}

.spec-item:last-child {
    border-bottom: 0;
}

.spec-item dt {
    color: #73a9f0;
    font-weight: 700;
}

.spec-item dd {
    margin: 0;
    text-align: right;
    color: #fff;
}

/* =========================================================
   PARTNERSHIP & INVESTMENT
   ========================================================= */
.partnership-view {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(110px, 15vh, 165px) var(--page-x) clamp(58px, 8vh, 88px);
    background: #f3f4f5;
}

.partnership-slideshow {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.partnership-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .55s ease;
}

.partnership-slide.active {
    opacity: 1;
}

.partnership-view::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(255,255,255,.08);
}

.partnership-card {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    padding: 0 clamp(24px, 4vw, 52px);
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.partnership-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    color: #111;
    font: inherit;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 3px 12px rgba(0,0,0,.16);
    transition: background .2s ease, transform .2s ease;
}

.partnership-arrow:hover,
.partnership-arrow:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.partnership-arrow-prev {
    left: clamp(12px, 2.4vw, 38px);
}

.partnership-arrow-next {
    right: clamp(12px, 2.4vw, 38px);
}

.partnership-card h1 {
    margin: 0 0 30px;
    color: var(--blue);
    font-size: clamp(2.15rem, 3.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-shadow: 0 1px 5px rgba(255,255,255,.82);
}

.partnership-card h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: var(--blue);
}

.partnership-card p {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.15vw, 1.16rem);
    line-height: 1.72;
    color: #111;
    text-shadow: 0 1px 4px rgba(255,255,255,.9);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-view {
    padding: clamp(46px, 6vh, 78px) var(--page-x) clamp(42px, 6vh, 72px);
}

.faq-content {
    width: min(100%, 980px);
    margin: 0 auto;
}

.faq-content > h1 {
    margin: 0 0 34px;
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    line-height: 1.18;
    letter-spacing: -.02em;
}

.faq-item {
    margin: 0;
    padding: 24px 0 26px;
    border-bottom: 1px solid #e1e5ea;
}

.faq-item:first-of-type {
    border-top: 1px solid #e1e5ea;
}

.faq-item h2 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: clamp(1.08rem, 1.25vw, 1.28rem);
    line-height: 1.35;
}

.faq-item p {
    margin: 0;
    color: #3e444b;
    font-size: clamp(.94rem, 1vw, 1.04rem);
    line-height: 1.75;
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact-view {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(32px, 5vh, 58px) var(--page-x) clamp(28px, 4vh, 48px);
}

.contact-panel {
    width: min(100%, 760px);
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
    border: 1px solid #e2e6ea;
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(20,36,60,.05);
}

.contact-panel h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: .015em;
}

.contact-intro {
    max-width: 560px;
    margin: 15px auto 28px;
    color: #69717b;
    font-size: clamp(.94rem, 1vw, 1.04rem);
    line-height: 1.55;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3.5vw, 36px);
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(20,36,60,.055);
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: .86rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .95rem 1rem;
    border: 1px solid #cfd6df;
    border-radius: 9px;
    background: #fff;
    color: var(--dark);
    font-size: 1rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10,79,174,.1);
}

.contact-form textarea {
    min-height: 145px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #1456b8;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20,86,184,.18);
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-btn:hover {
    background: #0d489e;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20,86,184,.22);
}

.botcheck {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    flex: 0 0 auto;
    min-height: var(--footer-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 14px;
    text-align: center;
    background: #eef0f3;
}

.site-footer p {
    margin: 0;
}

.site-footer > p:first-child {
    font-size: .82rem;
}

.footer-sub {
    margin-top: 5px !important;
    color: #8b929c;
    font-size: .7rem;
}

.footer-company {
    margin-top: 6px !important;
    color: #7f8791;
    font-size: .68rem;
}

/* =========================================================
   LARGE DESKTOP
   ========================================================= */
@media (min-width: 1500px) and (min-height: 850px) {
    :root {
        --header-h: 64px;
        --footer-h: 92px;
    }

    .home-kilakitu-logo {
        width: min(88vw, 720px);
    }

    .hero-product {
        width: min(68vw, 640px);
    }

    .hero-product-img {
        height: clamp(360px, 40vh, 470px);
    }

    .home-terrek-logo {
        width: min(80vw, 590px);
    }
}

/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */
@media (max-width: 1080px) {
    :root {
        --page-x: 22px;
    }

    .site-header {
        grid-template-columns: 155px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .header-brand,
    .header-brand img {
        width: 148px;
    }

    .main-nav {
        gap: 18px;
    }

    .nav-link {
        font-size: .84rem;
    }

    .lang-btn {
        width: 34px;
        height: 28px;
    }

    .flag-svg {
        width: 24px;
        height: 16px;
    }

    .home-content {
        width: min(100%, 880px);
    }

    .product-image-box {
        min-height: 220px;
        height: 26vw;
    }

    .prototype-image-box {
        min-height: 220px;
        height: 26vw;
    }

    .product-showcase {
        grid-template-columns: 1fr;
    }

    .prototype-card {
        width: min(100%, 720px);
        margin-inline: auto;
    }
}

/* =========================================================
   MOBILE / TABLET PORTRAIT
   ========================================================= */
@media (max-width: 760px) {
    :root {
        --header-h: 96px;
        --footer-h: 92px;
        --page-x: 16px;
    }

    .site-header {
        position: sticky;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand lang"
            "nav nav";
        min-height: var(--header-h);
        padding: 6px 10px 8px;
        gap: 5px 8px;
    }

    .header-brand {
        grid-area: brand;
        width: 132px;
        height: 40px;
    }

    .header-brand img {
        width: 132px;
    }

    .lang-switch {
        grid-area: lang;
        justify-self: end;
        gap: 3px;
        padding: 3px 5px;
    }

    .lang-btn {
        width: 31px;
        height: 26px;
        padding: 2px;
    }

    .flag-svg {
        width: 23px;
        height: 15px;
    }

    .main-nav {
        grid-area: nav;
        justify-self: stretch;
        justify-content: space-between;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        padding: 4px 1px 1px;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        font-size: .74rem;
    }

    .nav-link::after {
        bottom: -5px;
    }

    .home-view {
        padding: 20px 16px 24px;
    }

    .home-content {
        width: min(100%, 620px);
    }

    .home-kilakitu-logo {
        width: min(94vw, 500px);
    }

    .hero-product {
        width: min(88vw, 460px);
    }

    .hero-product-img {
        height: clamp(270px, 46vw, 350px);
    }

    .hero-slider-arrow {
        width: 34px;
        height: 34px;
    }

    .hero-slider-arrow--prev {
        left: 4px;
    }

    .hero-slider-arrow--next {
        right: 4px;
    }

    .home-terrek-logo {
        width: min(90vw, 470px);
    }

    .home-payoff {
        max-width: 560px;
        font-size: .82rem;
    }

    .product-view {
        padding: 30px 16px 36px;
    }

    .organization-view {
        padding: 32px 16px 42px;
    }

    .organization-header {
        margin-bottom: 24px;
    }

    .organization-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .organization-card--wide {
        grid-column: auto;
    }

    .organization-card {
        padding: 22px 18px;
    }

    .product-images {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 22px;
    }

    .product-image-box {
        width: min(100%, 520px);
        height: clamp(240px, 62vw, 340px);
        min-height: 0;
        margin-inline: auto;
    }

    .prototype-image-box {
        height: auto;
        min-height: 0;
        aspect-ratio: 2 / 1;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-bottom: 26px;
    }

    .feature-card {
        min-height: 0;
        padding: 22px 18px;
    }

    .feature-card h2 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: .9rem;
    }

    .prototype-card {
        width: min(100%, 520px);
        gap: 13px;
    }

    .prototype-copy {
        min-height: 0;
        padding: 22px 18px;
    }

    .prototype-copy h2 {
        font-size: 1rem;
    }

    .prototype-copy p {
        font-size: .9rem;
    }

    .specs {
        width: min(100%, 560px);
        padding: 24px 20px 20px;
    }

    .specs-title {
        font-size: 1.45rem;
    }

    .spec-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 13px 0;
        font-size: .88rem;
        text-align: center;
    }

    .spec-item dd {
        text-align: center;
    }

    .partnership-view {
        align-items: flex-start;
        padding: 72px 16px 54px;
    }

    .partnership-slide {
        background-position: 60% center;
    }

    .partnership-arrow {
        top: auto;
        bottom: 18px;
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
        transform: none;
    }

    .partnership-arrow:hover,
    .partnership-arrow:focus-visible {
        transform: scale(1.06);
    }

    .partnership-card {
        padding: 0 12px;
    }

    .partnership-card h1 {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
        margin-bottom: 24px;
    }

    .partnership-card h1::after {
        width: 52px;
        height: 3px;
        margin-top: 18px;
    }

    .partnership-card p {
        font-size: .96rem;
        line-height: 1.66;
    }

    .faq-view {
        padding: 34px 18px 40px;
    }

    .faq-content > h1 {
        margin-bottom: 26px;
        font-size: clamp(1.48rem, 6vw, 1.85rem);
    }

    .faq-item {
        padding: 20px 0 22px;
    }

    .faq-item h2 {
        font-size: 1.02rem;
    }

    .faq-item p {
        font-size: .9rem;
        line-height: 1.68;
    }

    .contact-view {
        padding: 26px 12px 34px;
    }

    .contact-panel {
        width: min(100%, 620px);
        padding: 24px 14px 18px;
        border-radius: 14px;
    }

    .contact-panel h1 {
        font-size: clamp(1.45rem, 6.5vw, 1.9rem);
    }

    .contact-intro {
        margin-bottom: 22px;
        font-size: .9rem;
    }

    .contact-form {
        gap: 15px;
        padding: 22px 16px;
    }

    .form-field label {
        font-size: .8rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: .95rem;
    }

    .contact-form textarea {
        min-height: 130px;
    }

    .submit-btn {
        min-height: 46px;
        font-size: .82rem;
    }

    .site-footer > p:first-child {
        font-size: .76rem;
    }

    .footer-sub {
        font-size: .64rem;
    }

    .footer-company {
        font-size: .6rem;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */
@media (max-width: 420px) {
    .site-header {
        padding-inline: 8px;
    }

    .header-brand,
    .header-brand img {
        width: 116px;
    }

    .lang-btn {
        width: 29px;
    }

    .main-nav {
        gap: 11px;
    }

    .nav-link {
        font-size: .7rem;
    }

    .home-view {
        padding-inline: 12px;
    }

    .hero-product {
        width: min(91vw, 420px);
    }

    .hero-product-img {
        height: 250px;
    }

    .home-payoff {
        font-size: .78rem;
    }

    .partnership-card,
    .contact-panel {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Gallery revision: one dropdown menu at every viewport width. */
:root { --header-h: 104px; }
.site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand lang" "brand toggle";
    min-height: var(--header-h);
    gap: 5px 10px;
    padding: 7px var(--page-x);
}
.header-brand { grid-area: brand; }
.lang-switch { grid-area: lang; justify-self: end; }
.menu-toggle {
    grid-area: toggle;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: 6px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    transform: rotate(45deg) scale(.78);
    transition: background 160ms ease, transform 160ms ease;
}
.menu-toggle:hover, .menu-toggle.active { background: var(--blue-hover); }
.menu-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.menu-toggle-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transform: rotate(-45deg);
}
.menu-toggle-inner span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.main-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: var(--page-x);
    z-index: 1001;
    justify-self: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(290px, calc(100vw - 24px));
    min-width: 0;
    max-height: calc(100vh - var(--header-h) - 12px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 0 0 12px 12px;
    background: #111820;
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.main-nav[hidden] { display: none !important; }
.nav-link {
    flex: 0 0 auto;
    display: block;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: .95rem;
    line-height: 1.25;
}
.nav-link::after { display: none; }
.nav-link:hover, .nav-link.active { background: rgba(92,157,238,.14); }
.partnership-view {
    background: #f3f4f5 url('./image/partnership_01.webp') center center / cover no-repeat;
}
.gallery-view {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #eaf0f8;
}
.gallery-slideshow { position: absolute; inset: 0; z-index: -1; }
.gallery-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .55s ease;
}
.gallery-slide.active { opacity: 1; }
.gallery-title {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(0,0,0,.66);
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: .05em;
    white-space: nowrap;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #111;
    font: inherit;
    font-size: 1.65rem;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 3px 12px rgba(0,0,0,.16);
}
.gallery-arrow:hover, .gallery-arrow:focus-visible { background: #fff; }
.gallery-arrow-prev { left: clamp(12px, 2.4vw, 38px); }
.gallery-arrow-next { right: clamp(12px, 2.4vw, 38px); }
.gallery-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.66);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}
@media (max-width: 760px) {
    :root { --header-h: 98px; }
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand lang" "brand toggle";
        gap: 3px 8px;
        padding: 6px 10px;
    }
    .main-nav { right: 10px; justify-content: flex-start; padding: 8px; }
    .nav-link { font-size: .95rem; }
    .gallery-view {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 18px 0 24px;
        background: #f7faff url('./image/sfondo_ge.webp') center top / cover no-repeat;
    }
    .gallery-title {
        position: relative;
        top: auto;
        left: auto;
        align-self: center;
        transform: none;
        margin: 0 0 18px;
    }
    .gallery-slideshow {
        position: relative;
        inset: auto;
        z-index: 0;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #eaf0f8;
    }
    .gallery-arrow { width: 42px; height: 42px; }
    .gallery-counter { bottom: -36px; }
}

/* Revision from the annotated preview: larger brand and a text menu button. */
.header-brand, .header-brand img { width: 250px; }
.header-brand { height: 78px; }
.menu-toggle {
    width: 116px;
    height: 32px;
    margin-right: 0;
    border: 0;
    border-radius: 999px;
    transform: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .01em;
}
.menu-toggle-inner { display: none; }
.menu-toggle::after { content: 'menu'; }
html.lang-sv .menu-toggle::after { content: 'meny'; }
html.lang-de .menu-toggle::after { content: 'Menü'; }
.gallery-view {
    background: #f7faff url('./image/sfondo_ge.webp') center top / cover no-repeat;
}
@media (max-width: 760px) {
    .header-brand, .header-brand img { width: 150px; }
    .header-brand { height: 52px; }
    .menu-toggle { width: 100px; height: 30px; font-size: .9rem; }
}
@media (max-width: 360px) {
    .header-brand, .header-brand img { width: 128px; }
    .header-brand { height: 46px; }
}
