/* Siti web: orbite tipografiche estese e gallerie editoriali. */
.website-opening {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
}

.website-hero__orbit {
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: calc(100svh + clamp(120px, 18vh, 190px));
    overflow: hidden;
    pointer-events: none;
}

.website-hero__ring,
.website-hero__orbit-track {
    position: absolute;
    top: min(50svh, 470px);
    left: 50%;
    width: var(--orbit-diameter);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.website-hero__ring {
    border: 1px solid rgb(46 92 79 / 10%);
}

.website-hero__ring--one {
    --orbit-diameter: 760px;
}
.website-hero__ring--two {
    opacity: 0.65;
    --orbit-diameter: 1000px;
}

.website-hero__tiles {
    position: absolute;
    inset: 0;
    -webkit-mask-image: radial-gradient(
        ellipse 470px 260px at 50% min(50svh, 470px),
        transparent 0 95%,
        #000 100%
    );
    mask-image: radial-gradient(
        ellipse 470px 260px at 50% min(50svh, 470px),
        transparent 0 95%,
        #000 100%
    );
}

.website-hero__orbit-track {
    --orbit-angle: calc(
        1turn * var(--orbit-slot) / var(--orbit-count) +
            var(--orbit-phase, 0deg)
    );
    transform: translate(-50%, -50%) rotate(var(--orbit-angle));
    animation: website-orbit var(--orbit-duration, 64s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
}

/* Equal steps on two concentric circles, with synchronized counterrotation. */
.website-hero__orbit-track--inner {
    --orbit-diameter: 760px;
    --orbit-count: 14;
    --orbit-duration: 62s;
    --orbit-delay: -12s;
}

.website-hero__orbit-track--middle {
    opacity: 0.65;
    --orbit-diameter: 1000px;
    --orbit-count: 18;
    --orbit-duration: 78s;
    --orbit-delay: -31s;
    --orbit-phase: 10deg;
    animation-direction: reverse;
}

.website-hero__type-tile {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    width: 62px;
    height: 48px;
    place-items: center;
    color: #111613;
    background: #e9f7f0;
    box-shadow: 0 5px 16px rgb(25 52 40 / 9%);
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1;
    transform: translate(-50%, -50%) rotate(calc(0deg - var(--orbit-angle)));
    animation: website-orbit-counter var(--orbit-duration, 64s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
    animation-direction: inherit;
}

.website-hero__type-tile--yellow {
    color: #182019;
    background: #f3e58b;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 700;
}
.website-hero__type-tile--coral {
    color: #fff;
    background: #ef8975;
    font-style: italic;
}
.website-hero__type-tile--ink {
    color: #fff;
    background: #26342e;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 800;
}
.website-hero__type-tile--blue {
    color: #133d46;
    background: #a6dce2;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
}
.website-hero__type-tile--violet {
    color: #fff;
    background: #5f55a6;
    font-family: Georgia, serif;
    font-style: italic;
}
.website-hero__type-tile--lime {
    color: #142016;
    background: #b8e875;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 700;
}
.website-hero__type-tile--peach {
    color: #43231e;
    background: #f2b29a;
    font-family: Georgia, serif;
    font-weight: 700;
}
.website-hero__type-tile--sky {
    color: #132d45;
    background: #a9c8ec;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
}
.website-hero__type-tile--rose {
    color: #fff;
    background: #b64f6f;
    font-family: Georgia, serif;
    font-style: italic;
}
.website-hero__type-tile--sand {
    color: #2f261a;
    background: #d8bd8e;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 700;
}
.website-hero__type-tile--slate {
    color: #fff;
    background: #536b72;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
}

.website-opening > .website-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    isolation: auto;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.website-service-page .website-hero .hero-copy {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

body.website-service-page .website-hero .hero-copy > * {
    position: relative;
    z-index: 1;
}

@keyframes website-orbit {
    to {
        transform: translate(-50%, -50%)
            rotate(calc(var(--orbit-angle) + 1turn));
    }
}

@keyframes website-orbit-counter {
    to {
        transform: translate(-50%, -50%)
            rotate(calc(0deg - var(--orbit-angle) - 1turn));
    }
}

@media (max-width: 760px) {
    .website-hero__tiles:not([data-hero-mask-ready]) {
        visibility: hidden;
    }

    .website-opening > .website-hero {
        min-height: 0;
    }

    body.website-service-page .website-hero .hero-copy {
        --hero-header-clearance: calc(
            max(10px, env(safe-area-inset-top)) + 60px
        );
        padding: calc(var(--hero-header-clearance) + 48px) 22px 48px;
    }

    .website-hero__ring {
        top: 38svh;
    }
    .website-hero__ring--one {
        --orbit-diameter: 360px;
    }
    .website-hero__ring--two {
        --orbit-diameter: 520px;
    }
    .website-hero__orbit-track {
        top: 38svh;
    }
    .website-hero__orbit-track--inner {
        --orbit-diameter: 360px;
    }
    .website-hero__orbit-track--middle {
        --orbit-diameter: 520px;
    }
    .website-hero__type-tile {
        width: 46px;
        height: 36px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .website-hero__orbit-track,
    .website-hero__type-tile {
        animation: none;
    }
    .website-hero__orbit-track {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle));
    }
    .website-hero__type-tile {
        transform: translate(-50%, -50%) rotate(calc(0deg - var(--orbit-angle)));
    }
}

/* Galleria editoriale: una riga per concept, tre schermate sempre visibili. */
body.website-service-page .website-concepts--merged {
    min-height: 0;
    padding: clamp(64px, 8vw, 112px) var(--gutter);
    background: #f7f9f8;
    color: #090d0d;
}

body.website-service-page .website-concepts-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    width: min(1180px, 100%);
    margin: 0 auto clamp(44px, 6vw, 72px);
    text-align: center;
}

body.website-service-page .website-concepts-intro h2 {
    max-width: 24ch;
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.02;
    text-wrap: balance;
}

body.website-service-page .website-concepts-intro > p {
    max-width: 58ch;
    margin: 0;
    color: #526263;
    font-size: 15px;
    line-height: 1.65;
}

.website-concept-rows {
    display: grid;
    gap: clamp(48px, 7vw, 86px);
    width: min(1180px, 100%);
    margin-inline: auto;
}

.website-concepts__footnote {
    width: min(1180px, 100%);
    margin: clamp(24px, 3vw, 38px) auto 0;
    color: #a1aaa5;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
}

.website-concept-row {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
    min-width: 0;
}

.website-concept-row__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px 48px;
}

.website-concept-row__header h3 {
    margin: 0;
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.website-concept-card__label {
    color: #68756c;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.website-concept-row__identity > p {
    max-width: 50ch;
    margin: 10px 0 0;
    color: #526263;
    font-size: 14px;
    line-height: 1.6;
}

.website-concept-card__action {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    margin: 0 0 2px;
    color: #090d0d;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.website-concept-card__action .link-arrow {
    transition: transform 180ms ease;
}

.website-concept-card__action:hover .link-arrow {
    transform: translateX(3px);
}

.website-concept-card__action:focus-visible {
    outline: 2px solid #008f25;
    outline-offset: 4px;
}

.website-concept-card__note {
    display: block;
    margin-top: 11px;
    color: #68756c;
    font-size: 12px;
    line-height: 1.5;
}

.website-concept-row__screens {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.7vw, 22px);
}

.website-concept-row__screens figure {
    min-width: 0;
    margin: 0;
}

.website-concept-row__screens img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    border: 1px solid rgb(24 39 30 / 12%);
    border-radius: 10px;
    background: #edf0eb;
    object-fit: cover;
}

.website-concept-row__screens figcaption {
    margin-top: 9px;
    color: #68756c;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.website-concept-row--arcade .website-concept-row__screens img {
    border: 1px solid #171717;
    border-radius: 2px;
    box-shadow: 4px 4px 0 #171717;
}

@media (max-width: 760px) {
    body.website-service-page .website-concepts--merged {
        padding-block: 60px 72px;
    }

    body.website-service-page .website-concepts-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 38px;
    }

    body.website-service-page .website-concepts-intro h2 {
        font-size: clamp(38px, 10vw, 50px);
    }

    body.website-service-page .website-concepts-intro > p {
        font-size: 14px;
    }

    .website-concept-rows {
        gap: 48px;
    }

    .website-concepts__footnote {
        margin-top: 28px;
        font-size: 10px;
    }

    .website-concept-row__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .website-concept-card__action {
        justify-self: end;
    }

    .website-concept-row__header h3 {
        font-size: 40px;
    }

    .website-concept-row__screens {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .website-concept-row__screens img {
        border-radius: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .website-concept-card__action .link-arrow {
        transition: none;
    }
}
