@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
    font-family: 'Manrope', sans-serif;
    color: #102238;
    background: #f3f6f7;
    font-synthesis: none;
    --ink: #102238;
    --navy: #102238;
    --blue: #39c6dc;
    --mist: #f3f6f7;
    --line: rgba(16, 34, 56, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mist);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-shell {
    overflow: hidden;
}

.section-pad {
    padding-left: clamp(24px, 7vw, 112px);
    padding-right: clamp(24px, 7vw, 112px);
}

.site-header {
    height: 88px;
    padding: 0 clamp(24px, 7vw, 112px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #102238;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
    height: 64px;
    background: rgba(12, 26, 42, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(113, 216, 230, .18);
}

.site-header.is-scrolled .brand img {
    width: 150px;
    transition: width .3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand img {
    width: 150px;
    filter: brightness(0) invert(1);
}

.brand span,
.footer-brand span {
    //font: 500 9px 'DM Mono', monospace;
    font-family: 'Manrope', sans-serif;
    //letter-spacing: .19em;
    color: var(--white);
    white-space: nowrap;
    margin-left: -11px;
}

/* Allineamento della navigazione principale a destra (Desktop) */
@media (min-width: 801px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 36px;
        margin-left: auto;  /* Spinge il menu verso destra */
        margin-right: 32px; /* Distanza tra i link di navigazione e il pulsante CTA */
    }
}

.main-nav a,
.header-cta {
    font-size: 15px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .78);
    transition: color .2s;
}

.main-nav a:hover,
.header-cta:hover {
    color: var(--blue);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    border-bottom: 1px solid var(--blue);
    padding-bottom: 8px;
}

.menu-toggle {
    display: none;
    border: 0;
    color: white;
    background: transparent;
}

.hero {
    min-height: 690px;
    background: var(--navy);
    color: white;
    position: relative;
    display: grid;
    grid-template-columns: 52% 48%;
    padding-top: 191px;
    padding-bottom: 100px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    font: 500 13px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #71d8e6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow-year {
color: #71d8e6;
    //color: rgba(255, 255, 255, 60);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #71d8e6;
    box-shadow: 0 0 0 5px rgba(113, 216, 230, .12);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: clamp(68px, 9vw, 132px);
    line-height: .83;
    letter-spacing: -.07em;
    font-weight: 700;
    margin: 50px 0 42px;
}

h1 em,
h2 em {
    font: italic 500 .95em 'Playfair Display', serif;
    letter-spacing: -.05em;
    color: var(--blue);
}

.hero-copy>p {
    max-width: 385px;
    color: rgba(255, 255, 255, .63);
    line-height: 1.7;
    font-size: 14px;
}

.hero-rotator {
    position: relative;
    min-height: 73px;
    max-width: 400px;
    margin: 24px 0 38px;
    overflow: hidden;
}

.hero-line {
    position: absolute;
    inset: 0;
    color: rgba(255, 255, 255, .63);
    line-height: 1.4;
    font-size: 18px;
    margin: 0;
    animation: heroLineIn .6s ease both;
}

@keyframes heroLineIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-rot {
    animation: heroLineIn .6s ease both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 38px;
}

.button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 16px 21px;
    font-size: 15px;
    letter-spacing: .04em;
    transition: transform .2s, background .2s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--blue);
    color: var(--navy);
}

.button-primary:hover {
    background: #72e1ed;
}

.button-outline {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
}

.text-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #c1d2d8;
}

.text-link:hover {
    color: var(--blue);
}

.hero-media {
    position: relative;
    margin-left: -6%;
    margin-top: 8px;
    min-height: 600px;
}

.hero-image-wrap {
    height: 600px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-image-wrap img {
    max-width: 88%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(113, 216, 230, .55));
    animation: heroImageFloat 6s ease-in-out infinite, heroImageShine 3.2s ease-in-out infinite;
    will-change: transform, filter;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(113, 216, 230, .55);
    border-radius: 50%;
    transform: rotate(-25deg);
    z-index: 0;
}

.orbit-a {
    width: 115%;
    height: 80%;
    top: 8%;
    left: -9%;
}

.orbit-b {
    width: 80%;
    height: 116%;
    top: -14%;
    left: 11%;
    border-color: rgba(255, 255, 255, .22);
}

.media-caption {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 14px;
    margin-top: 19px;
    color: rgba(255, 255, 255, .55);
    font: 13px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.media-caption span:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
}

.hero-grid-line {
    position: absolute;
    height: 100%;
    width: 1px;
    top: 0;
    background: rgba(255, 255, 255, .08);
}

.hero-grid-line-one {
    left: 52%;
}

.hero-grid-line-two {
    left: calc(52% + 24px);
    opacity: .35;
}

.hero-marquee {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.hero-marquee-track {
    display: flex;
    justify-content: space-around;
    width: 100%;
    color: rgba(255, 255, 255, .60);
    font: 14px 'DM Mono', monospace;
    letter-spacing: .13em;
}

.hero-marquee i {
    color: var(--blue);
    font-style: normal;
}

.intro {
    padding-top: 120px;
    padding-bottom: 125px;
}

.section-kicker {
    color: #638490;
}

.section-kicker.light {
    color: var(--blue);
}

.intro-content {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 9%;
    margin-top: 58px;
}

h2 {
    font-size: clamp(44px, 5.1vw, 78px);
    line-height: .99;
    letter-spacing: -.065em;
    font-weight: 700;
}

.intro h2 span {
    font: italic 500 .93em 'Playfair Display';
    color: #768b94;
}

.intro h2 strong {
    color: #2cb7cb;
}

.intro-text {
    padding-top: 8px;
    max-width: 450px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.75;
    color: #56717b;
    margin-bottom: 18px;
}

.circle-link {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    border: 1px solid #80a2ad;
    border-radius: 50%;
    font: 15px 'DM Mono', monospace;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    position: relative;
    transition: background .2s, color .2s;
}

.circle-link svg {
    position: absolute;
    right: 14px;
    bottom: 14px;
}

.circle-link:hover {
    background: var(--navy);
    color: var(--blue);
}

.stats-row {
    display: flex;
    margin-top: 102px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    gap: clamp(45px, 12vw, 190px);
}

.stats-row div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-row strong {
    font: 700 55px 'Manrope';
    letter-spacing: -.08em;
}

.stats-row strong span {
    font-size: 30px;
    color: var(--blue);
}

.stats-row span {
    color: #718a92;
    font: 15px 'DM Mono', monospace;
    text-transform: uppercase;
    line-height: 1.45;
}

.services,
.contact {
    background: var(--navy);
    color: white;
    padding-top: 98px;
    padding-bottom: 112px;
}

.services-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 54px 0 55px;
}

.services h2 {
    color: white;
}

.services-heading p {
    max-width: 400px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    font-size: 19px;
    margin-bottom: 5px;
}

@media (min-width: 769px) {
    .services-heading p {
        text-align: right;
        margin-left: auto;
    }
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .16);
}

.service-card {
    min-height: 425px;
    padding: 34px 32px;
    background: var(--navy);
    position: relative;
    transition: background .25s;
}

.service-card-wide {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 38px 32px;
}

.service-card-wide ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.service-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .16);
}

.service-pair .service-card-wide {
    grid-column: auto;
}

.service-pair .service-card-wide ul {
    grid-template-columns: 1fr;
}

@media (max-width: 860px) {
    .service-pair {
        grid-template-columns: 1fr;
    }
}


.service-card-wide .service-note {
    margin-top: 16px;
    padding-top: 18px;
    font: 14px 'DM Mono', monospace;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    text-align: center !important;
    width: 100%;
    display: block;
}

.service-card-wide .service-note a {
    color: var(--blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: none;
    font-family: 'Manrope';
    font-size: 15px;
}

.service-card-wide .service-note a:hover {
    text-decoration: underline;
}

.service-card:hover,
.service-card.featured {
    background: #18334d;
}

.service-icon {
    color: var(--blue);
    margin-bottom: 37px;
}

.service-title-logo {
    margin-bottom: 25px;
}

.service-title-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.service-card-smartmenu p {
    max-width: 640px;
}

.service-number {
    position: absolute;
    top: 36px;
    right: 32px;
    color: rgba(255, 255, 255, .3);
    font: 10px 'DM Mono', monospace;
}

.service-card h3 {
    font-size: 45px;
    line-height: .95;
    letter-spacing: -.06em;
    margin-bottom: 25px;
}

.service-card h3 span {
    color: var(--blue);
    font: italic 500 1em 'Playfair Display';
}

.service-card p {
    color: rgba(255, 255, 255, .54);
    line-height: 1.65;
    font-size: 16px;
    max-width: 600px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 9px;
    color: #acc3c9;
    font: 14px 'DM Mono', monospace;
    text-transform: uppercase;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card li svg {
    color: var(--blue);
}

.round-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(113, 216, 230, .55);
    border-radius: 50%;
    color: var(--blue);
    transition: background .2s, color .2s;
}

.round-arrow:hover {
    background: var(--blue);
    color: var(--navy);
}

.manifesto {
    padding-top: 140px;
    padding-bottom: 135px;
    text-align: center;
    position: relative;
}

.manifesto-mark {
    color: var(--blue);
    font: 120px 'Playfair Display';
    line-height: .45;
}

.manifesto p {
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -.06em;
    font-weight: 600;
}

.manifesto p em {
    font: italic 500 1em 'Playfair Display';
    color: #81959b;
}

.manifesto-line {
    width: 1px;
    height: 70px;
    background: #a7bac0;
    margin: 42px auto 0;
}

.portfolio {
    padding-top: 98px;
    padding-bottom: 120px;
}

.portfolio-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 52px 0 48px;
}

.portfolio-heading h2 em {
    color: #5b7680;
}

.filter-bar {
    display: flex;
    gap: 27px;
}

.filter-bar button {
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    padding: 8px 0;
    color: #789097;
    font: 16px 'DM Mono', monospace;
    text-transform: uppercase;
}

.filter-bar button.active {
    color: var(--navy);
    border-color: var(--blue);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-image {
    display: block;
    /* ← aggiunto */
    height: 390px;
    overflow: hidden;
    position: relative;
    background: #dae2e4;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75);
    transition: transform .5s, filter .5s;
}

.project-card:hover img {
    transform: scale(1.05);
    filter: saturate(1);
}

.project-overlay {
    position: absolute;
    inset: auto 14px 14px;
    background: rgba(16, 34, 56, .9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    transform: translateY(70px);
    transition: transform .3s;
    font: 10px 'DM Mono', monospace;
    text-transform: uppercase;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.project-meta span {
    grid-column: 1/-1;
    font: 15px 'DM Mono', monospace;
    text-transform: uppercase;
    color: #75929a;
    margin-bottom: 9px;
}

.project-meta h3 {
    font-size: 18px;
    letter-spacing: -.04em;
}

.project-meta svg {
    grid-column: 2;
    grid-row: 2;
    color: #3abdd0;
}

.portfolio-button {
    margin-top: 54px;
}

.clients-block {
    margin-top: 80px;
}

.clients-block-label {
    font: 500 15px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #638490;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clients-block-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--blue);
}

.clients-marquee {
    display: grid;
    gap: 2px;
    overflow: hidden;
    padding: 2px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
    display: flex;
    gap: 0;
    width: max-content;

    animation: clientsScroll 65s linear infinite;
}

.clients-track-reverse {
    animation: clientsScrollReverse 60s linear infinite;
    margin-top: -2px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px;
    height: 130px;
    border: 1px solid var(--line);
    border-right: 0;
    white-space: nowrap;
    transition: background .25s;
}

.client-logo:hover {
    background: #e7eef0;
}

.client-logo img {
    max-width: 380px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(.55);
    transition: filter .25s;
}

.client-logo:hover img {
    filter: grayscale(0) opacity(1);
}

.client-logo-text {
    font: 600 20px 'Manrope';
    letter-spacing: .18em;
    color: #4a6770;
    transition: color .25s;
}

.client-logo:hover .client-logo-text {
    color: var(--navy);
}

@keyframes clientsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes clientsScrollReverse {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.contact {
    position: relative;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(49, 191, 210, .14);
    filter: blur(85px);
    right: -180px;
    bottom: -250px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 10%;
    margin-top: 57px;
    position: relative;
}

.contact h2 {
    font-size: clamp(53px, 6.8vw, 105px);
}

.contact h2 em {
    color: var(--blue);
}

.contact-layout>div>p {
    margin-top: 30px;
    max-width: 500px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .55);
}

.contact-details {
    display: grid;
    gap: 12px;
    margin-top: 42px;
    font: 16px 'DM Mono', monospace;
    text-transform: uppercase;
}

.contact-details a {
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    border-bottom: 1px solid var(--blue);
    padding-bottom: 7px;
}

.contact-details span {
    color: rgba(255, 255, 255, .42);
}

.contact-form {
    border-top: 1px solid rgba(255, 255, 255, .32);
    padding-top: 3px;
    display: grid;
    align-content: start;
}

.contact-form label {
    font: 15px 'DM Mono', monospace;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .56);
    padding: 22px 0 0;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
    padding: 12px 0 14px;
    background: transparent;
    color: white;
    outline: 0;
    resize: vertical;
    font: 14px 'Manrope', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, .33);
}

.contact-form .button {
    margin-top: 35px;
    justify-self: start;
}

.success-message {
    border: 1px solid rgba(113, 216, 230, .5);
    padding: 35px 28px;
    color: var(--blue);
}

.success-message h3 {
    color: white;
    margin: 18px 0 9px;
    font-size: 23px;
}

.success-message p {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.footer {
    background: #0c1a2a;
    color: white;
    padding-top: 48px;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.footer-brand img {
    width: 150px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 45px;
    font-size: 15px;
    color: rgba(255, 255, 255, .6);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 45px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: rgba(255, 255, 255, .65);
    transition: color .25s, border-color .25s, background .25s, transform .25s;
}

.footer-social a:hover {
    color: var(--navy);
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin-top: 64px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .60);
    font: 13px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-bottom span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--blue);
}

@media (max-width: 800px) {
    .site-header {
        height: 76px;
    }

    .site-header.is-scrolled {
        height: 60px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 25px 24px 30px;
        flex-direction: column;
        gap: 22px;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .main-nav.is-open {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        display: block;
        min-height: auto;
        padding-top: 151px;
        padding-bottom: 90px;
    }

    .hero-grid-line {
        display: none;
    }

    .hero-media {
        margin: 70px 0 0;
        min-height: 310px;
    }

    .hero-image-wrap {
        height: 310px;
    }

    .hero-image-wrap img {
        max-width: 82%;
        max-height: 82%;
    }

    .hero-marquee {
        bottom: 18px;
        height: 56px;
    }

    .hero-marquee-track {
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 40px;
        font-size: 25px;
        font-weight: 500;
        letter-spacing: -.01em;
        animation: heroMarqueeScrollMobile 16s linear infinite;
    }

    .hero-marquee-track span,
    .hero-marquee-track i {
        flex: none;
    }

    .intro,
    .portfolio,
    .manifesto {
        padding-top: 80px;
        padding-bottom: 82px;
    }

    .intro-content,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .intro-text {
        max-width: 520px;
    }

    .stats-row {
        margin-top: 65px;
        justify-content: space-between;
        gap: 12px;
    }

    .stats-row div {
        gap: 8px;
    }

    .stats-row strong {
        font-size: 40px;
    }

    .stats-row span {
        font-size: 8px;
    }

    .services,
    .contact {
        padding-top: 78px;
        padding-bottom: 85px;
    }

    .services-heading,
    .portfolio-heading {
        display: block;
        margin: 35px 0 38px;
    }

    .services-heading p {
        margin-top: 25px;
    }

    .clients-block {
        margin-top: 55px;
    }

    .client-logo {
        font-size: 13px;
        padding: 0 26px;
        height: 72px;
    }

    .service-list,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card-wide ul {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 385px;
    }

    .filter-bar {
        margin-top: 35px;
        gap: 21px;
    }

    .project-image {
        height: 300px;
    }

    .project-overlay {
        transform: translateY(0);
    }

    .contact-form {
        margin-top: 8px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-bottom span:last-child {
        justify-content: center;
    }
}

@media (min-width:801px) and (max-width:1100px) {
    .hero {
        padding-top: 175px;
    }

    .hero-media {
        margin-left: 0;
    }

    .service-card {
        padding-left: 23px;
        padding-right: 23px;
    }

    .service-card h3 {
        font-size: 27px;
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbitFloat {

    0%,
    100% {
        transform: rotate(-25deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(-22deg) translate3d(8px, -10px, 0);
    }
}

@keyframes orbitFloatReverse {

    0%,
    100% {
        transform: rotate(25deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(29deg) translate3d(-10px, 8px, 0);
    }
}

@keyframes heroImageFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(4px, -12px, 0) scale(1.015);
    }
}

@keyframes heroImageShine {

    0%,
    100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(113, 216, 230, .4));
    }

    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(113, 216, 230, .9)) drop-shadow(0 0 55px rgba(255, 255, 255, .35));
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(113, 216, 230, .12);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(113, 216, 230, .02);
    }
}

@keyframes marqueeMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-14px);
    }
}

@keyframes heroMarqueeScrollMobile {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--reveal-delay, 0) * 110ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] {
    --reveal-delay: 1;
}

[data-reveal-delay="2"] {
    --reveal-delay: 2;
}

[data-reveal-delay="3"] {
    --reveal-delay: 3;
}

.hero-copy[data-reveal] {
    animation: heroRise .9s .1s both;
}

.hero-copy[data-reveal].is-visible {
    animation: none;
}

.hero-orbit {
    animation: orbitFloat 3s ease-in-out infinite;
}

.orbit-b {
    animation-name: orbitFloatReverse;
    animation-duration: 5s;
}

.live-dot {
    animation: pulseGlow 2.4s ease-in-out infinite;
}

@media (min-width: 801px) {
    .hero-marquee-track {
        animation: marqueeMove 4s ease-in-out infinite alternate;
    }
}

.project-card,
.service-card {
    will-change: transform;
}

.project-card {
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.project-card:hover {
    transform: translateY(-6px);
}

.round-arrow svg,
.header-cta svg,
.text-link svg,
.button svg {
    transition: transform .25s ease;
}

.round-arrow:hover svg,
.header-cta:hover svg,
.text-link:hover svg,
.button:hover svg {
    transform: translate(3px, -3px);
}

.contact-glow {
    animation: pulseGlow 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ====== VIDEO LIGHTBOX ====== */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 36, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 960px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Posizionamento e stile del pulsante di chiusura (X) */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Rapporto 16:9 */
    height: 0;
}

.lightbox-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

.project-card.has-video {
    cursor: pointer;
}

.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(57, 198, 220, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #102238;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 2;
}

.project-card:hover .video-play-badge {
    transform: translate(-50%, -50%) scale(1.15);
    background: #72e1ed;
}

/* Invece di animare box-shadow */
.contact-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: 0 0 20px rgba(...);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contact-glow:hover::after {
  opacity: 1;
}