* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #333;
    overflow-x: hidden;
    padding-top: 72px;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

section {
    scroll-margin-top: 90px;
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
}

/* =========================
   HEADER STICKY
========================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-weight: 700;
    letter-spacing: .4px;
}

.nav {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
    color: #444;
}

.nav a {
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: rgba(0,112,243,0.08);
    color: #0070f3;
}

.cta {
    background: #0070f3;
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.cta:hover {
    background: #005bb5;
}

@media (max-width: 920px) {
    .nav { display: none; }
}

/* =========================
   HERO + PARTICLES (invariato)
========================= */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    background: #f0f0f0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero h1, .hero p, .hero a {
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    animation: fadeInDown 1.2s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.card {
    width: 300px;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: #f7f7f7;
    font-size: 0.9rem;
}

@keyframes fadeInDown {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

@media(max-width: 768px) {
    .cards { flex-direction: column; align-items: center; }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #0070f3;
    transition: width 0.3s ease;
}

.service-card:hover::before {
    width: 4px;
}
.work-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.work-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.work-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.work-header span {
    font-size: 0.9rem;
    color: #888;
}

.tech {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #0070f3;
    font-family: monospace;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.approach-step h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.trusted-text{
    text-align:center;
    max-width:750px;
    margin:0 auto 40px auto;
    line-height:1.6;
    font-size:1.05rem;
}

.trusted-highlights{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap:30px;
    margin:40px 0;
    text-align:center;
}

.trusted-item strong{
    display:block;
    font-size:1.1rem;
    margin-bottom:8px;
}

.trusted-item span{
    font-size:0.9rem;
    color:#666;
}

.clients-list{
    margin-top:50px;
    font-size:0.9rem;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#666;
}

.clients-list {
    text-align: center;
    font-weight: 500;
    color: #444;
}

.section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 2px;
    background: #0070f3;
    display: block;
    margin: 1rem auto 0;
}

.site-footer{
    background: #fafafa;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer-inner{
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 420px;
}

.footer-logo {
    width: 250px;
    opacity: 1;
    margin: 0 auto;
}

.footer-company{
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555;
}

.footer-right{
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-end;
}

.footer-links{
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}

.footer-links a{
    color: #444;
    transition: color 0.2s ease;
}

.footer-links a:hover{
    color: #0070f3;
}

.footer-contact{
    text-align: right;
    font-size: 0.95rem;
}

.footer-contact a{
    font-weight: 600;
    color: #0070f3;
}

.footer-legal{
    margin-top: 8px;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom{
    border-top: 1px solid #eee;
    text-align: center;
    padding: 16px;
    font-size: 0.85rem;
    color: #777;
}

@media(max-width: 900px){
    .footer-inner{
        flex-direction: column;
    }

    .footer-right{
        align-items: flex-start;
    }

    .footer-contact{
        text-align: left;
    }
}
.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: auto;
    display: block;
}
.brand img {
    height: 60px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover img {
    opacity: 0.85;
    transform: translateY(-1px);
}
.expertise-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-card{
    padding: 32px;
    border: 1px solid #eaeaea;
    border-radius: 18px;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.expertise-card:hover{
    border-color:#0070f3;
    box-shadow: 0 20px 40px rgba(0,0,0,.05);
}

.expertise-card h3{
    font-family:'Rubik', sans-serif;
    font-size:1.3rem;
    margin-bottom:12px;
}

.expertise-tags{
    margin-top:16px;
    font-size:.85rem;
    color:#0070f3;
    font-family: monospace;
}
/* WOW section */
#wow{
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.wow-lead{
    text-align:center;
    max-width: 820px;
    margin: 0 auto 34px auto;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}

.wow-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.wow-card{
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
}

.wow-card h3{
    font-family: 'Rubik', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.wow-card p{
    color:#555;
    line-height:1.6;
}

.wow-tag{
    margin-top: 14px;
    font-family: monospace;
    font-size: .85rem;
    color: #0070f3;
}

.wow-blueprint{
    position: relative;
    margin: 34px auto 0 auto;
    max-width: 1100px;
    border: 1px solid #ededed;
    border-radius: 20px;
    background:
            radial-gradient(circle at 20% 30%, rgba(0,112,243,0.08), transparent 45%),
            radial-gradient(circle at 80% 70%, rgba(0,112,243,0.06), transparent 50%),
            #ffffff;
    overflow: hidden;
}

.bp{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio: 1200 / 320;
}

.bp-path{
    fill: none;
    stroke: rgba(0,112,243,0.95);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    /* animazione draw */
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}
@media (max-width: 768px) {
    .wow-blueprint{
        border-radius: 16px;
    }

    .bp{
        aspect-ratio: 1200 / 380; /* un filo più verticale su mobile */
    }
}
.bp-node{
    fill: #fff;
    stroke: rgba(0,112,243,0.95);
    stroke-width: 2.5;
    opacity: 0;
    transform-origin: center;
}

.bp-glow{
    position:absolute;
    inset:-40px;
    background: radial-gradient(circle at 50% 50%, rgba(0,112,243,0.12), transparent 55%);
    opacity: 0;
    transition: opacity .6s ease;
}

/* quando attiva */
.wow-blueprint.is-on .bp-path{
    animation: bpDraw 1.5s ease forwards;
}

.wow-blueprint.is-on .bp-node{
    animation: bpNode 0.7s ease forwards;
    animation-delay: 0.9s;
}

.wow-blueprint.is-on .bp-glow{
    opacity: 1;
}

@keyframes bpDraw{
    to { stroke-dashoffset: 0; }
}

@keyframes bpNode{
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}
/* =======================
SYSTEM IN MOTION
======================= */

#motion{
    position: relative;
    padding: 120px 0;
    background: #f8f9fc;
    overflow: hidden;
}

.motion-inner{
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.motion-title{
    font-family: 'Rubik', sans-serif;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 60px;
}

.motion-strong{
    display:block;
    color: #0070f3;
    margin-top: 10px;
}

.motion-keywords{
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-family: monospace;
    font-size: 0.95rem;
    color: #555;
    transition: transform 0.2s ease;
}

.motion-keywords span{
    transition: transform 0.15s ease;
    opacity: 0.85;
}
.topbar-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.lang-switch{
    display:flex;
    gap:6px;
    padding:6px;
    border:1px solid rgba(0,0,0,0.07);
    border-radius:14px;
    background: rgba(255,255,255,0.65);
}

.lang-btn{
    border:0;
    background:transparent;
    font-family:'Rubik', sans-serif;
    font-weight:700;
    font-size:0.85rem;
    padding:6px 8px;
    border-radius:10px;
    color:#444;
    cursor:pointer;
    transition: background .2s ease, color .2s ease;
}

.lang-btn:hover{
    background: rgba(0,112,243,0.08);
    color:#0070f3;
}

.lang-btn.is-active{
    background:#0070f3;
    color:#fff;
}
/* Base i18n (NON forzare display:block globalmente se hai elementi inline) */
[data-i18n]{
    will-change: opacity, transform;
}

/* Menu: deve restare inline */
.nav [data-i18n]{
    display: inline-block;
    white-space: normal;
}

/* Pulsante CTA: inline */
.topbar .cta[data-i18n]{
    display: inline-block;
    white-space: normal;
}

/* Titoli/paragrafi: block + pre-wrap (solo dove serve) */
.section-title[data-i18n],
p[data-i18n],
strong[data-i18n],
span[data-i18n]{
    display: block;
    white-space: pre-wrap;
}

.i18n-fade-out{
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 220ms ease, transform 220ms ease;
}
.i18n-fade-in{
    opacity: 1;
    transform: translateY(0);
    transition: opacity 260ms ease, transform 260ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
    .i18n-fade-out, .i18n-fade-in{
        transition: none !important;
        transform: none !important;
    }
}
@media (max-width: 920px){
    .topbar-right{ gap:10px; }
    .cta{ display:none; } /* se vuoi super clean su mobile */
}


.section-title {
    line-height: 1.1;
    padding-bottom: 0;
}
.section-title::after { margin-top: 14px; }

.topbar-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* ================= MOBILE ================= */
@media (max-width: 900px){

    .topbar-inner{
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px 10px;
    }

    /* LOGO */
    .brand{
        align-self: center ;
    }

    /* BLOCCO LINGUE + CTA */
    .topbar-right{
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* MENU */
    .nav{
        width: 100%;
        display: none;
    }

    .nav a{
        padding: 6px 0;
    }
    #expertise .container {
        margin: auto;
        padding: 1rem!important;
    }
    .cta{
        display: none;
    }

    .topbar-right{
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .cards-grid {

        padding: 0;
    }
    .section-title {
        font-size: 2rem;}
    .motion-title {
        font-size: 2rem;}
    .cta{
        width: 100%;
        text-align: center;
    }
    .cards-grid {
        display: block;
    }
    .service-card {
        margin-top: 15px;
    }
}
#europe{
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

#europe p{
    line-height:1.7;
    font-size:1.05rem;
    color:#444;
}
/* European accent */

.europe-accent{
    max-width:900px;
    margin: 20px auto 40px auto;
    opacity: 0.85;
}

.europe-accent svg{
    width:100%;
    height:60px;
}

.eu-line{
    stroke:#0070f3;
    stroke-width:1.5;
    stroke-linecap:round;
    opacity:0.7;
}

.eu-node{
    fill:#0070f3;
    opacity:0.9;
}

/* micro animazione al caricamento */
#europe .eu-line{
    stroke-dasharray:800;
    stroke-dashoffset:800;
    animation: euDraw 1.2s ease forwards;
}

@keyframes euDraw{
    to{ stroke-dashoffset:0; }
}
