/* assets/modern.css
   Strato di restyling caricato DOPO style.css.
   Non cambia la struttura: affina tipografia, superfici, bottoni, header e mobile. */

/* --- Font (self-hosted, nessuna chiamata a terze parti) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font-family-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --border-radius: 14px;
    --accent: #00c6ff;
    --accent-2: #2575fc;
    --accent-3: #7c5cff;
    --grad-brand: linear-gradient(135deg, #00c6ff 0%, #2575fc 55%, #7c5cff 100%);
    --glass-bg: rgba(var(--color-background-light-rgb), 0.72);
    --ring: 0 0 0 3px rgba(0, 198, 255, 0.35);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --transition-speed: 0.28s var(--ease);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
    font-family: var(--font-family-sans);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Testo: niente giustificato (apre buchi enormi su mobile) */
p { text-align: inherit; }
p, li { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* --- Header: vetro sfocato --- */
.header {
    background: var(--glass-bg);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.4rem 0;
}
.header.scrolled { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08); }
.logo__img { height: 56px; }

.nav-link { font-weight: 500; font-size: 0.95rem; letter-spacing: 0; }
.nav-link::after { height: 2px; border-radius: 2px; bottom: -4px; background: var(--grad-brand); }
.main-nav .nav-list { gap: 1.75rem; }

.lang-dropdown__toggle,
.theme-toggle {
    height: 40px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--color-border);
}
.lang-dropdown__toggle:hover,
.theme-toggle:hover { background: var(--grad-brand); transform: none; }
.lang-dropdown__list { border-radius: var(--radius-sm); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }

/* --- Bottoni: pillola + gradiente --- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 0.8rem 1.6rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed), color var(--transition-speed);
}
.btn--primary {
    background: var(--grad-brand);
    background-size: 140% 140%;
    background-position: 0% 50%;
    border: 0;
    box-shadow: 0 10px 28px -8px rgba(37, 117, 252, 0.65);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(37, 117, 252, 0.75); }
.btn--secondary { border-width: 1.5px; background: transparent; }
.btn--secondary:hover { transform: translateY(-2px); }
.btn--large { padding: 1rem 2.1rem; font-size: 1.05rem; }

/* --- Titoli di sezione --- */
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
.section-title::after { height: 4px; border-radius: 4px; background: var(--grad-brand); width: 64px; }
.section-padding { padding: clamp(3.5rem, 8vw, 6rem) 0; }

/* --- Hero --- */
.hero h1, .hero .hero__title {
    font-size: clamp(2.2rem, 6.2vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero p { font-weight: 400; color: rgba(255, 255, 255, .88); line-height: 1.6; }
.hero__slide::before {
    background: linear-gradient(180deg, rgba(6, 12, 30, .55) 0%, rgba(8, 24, 64, .72) 100%);
}
.hero__slider-btn { backdrop-filter: blur(8px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }

/* Badge credenziali */
.hero__badges, .credentials__badges {
    display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.4rem;
}
.badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    font-size: .82rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.badge i { color: var(--accent); font-size: 1rem; }

/* --- Card: superfici morbide --- */
.service-card, .project-card, .mission-philosophy__grid .card, .skills-category, .timeline-card, .credential-card {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 2px rgba(10, 20, 50, .04), 0 12px 32px -16px rgba(10, 20, 50, .22);
}
.service-card:hover, .project-card:hover, .mission-philosophy__grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(10, 20, 50, .05), 0 28px 50px -20px rgba(37, 117, 252, .35);
}
.service-card { padding: 2rem 1.5rem; }
.service-card__icon {
    display: inline-grid; place-items: center;
    width: 64px; height: 64px; margin-bottom: 1.1rem;
    font-size: 1.9rem; color: #fff;
    background: var(--grad-brand);
    border-radius: 18px;
    box-shadow: 0 12px 24px -10px rgba(37, 117, 252, .7);
}
.service-card { height: auto; align-self: stretch; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; }
.service-card p { font-size: .95rem; line-height: 1.55; }

.project-card { overflow: hidden; }
.project-card__image { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }
.project-card__content { padding: 1.5rem; }
.project-card h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 700; overflow: visible; max-height: none; display: block; -webkit-line-clamp: unset; }

/* Credentials band */
.credentials { background: var(--color-background-dark); }
.credentials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.credential-card {
    background: var(--color-card-background);
    padding: 2rem; display: flex; gap: 1.25rem; align-items: flex-start;
    position: relative; overflow: hidden;
}
.credential-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand);
}
.credential-card__icon {
    flex: none; display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: 16px; font-size: 1.6rem; color: #fff; background: var(--grad-brand);
}
.credential-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.credential-card p { color: var(--color-secondary); line-height: 1.6; font-size: .98rem; margin: 0; }
.credentials .section-title { margin-bottom: .75rem; }
.credentials__lead { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; color: var(--color-secondary); }

/* Footer */
.footer__tagline { width: 100%; margin: 0 0 .25rem; font-size: .85rem; font-weight: 600; color: var(--accent); text-align: center; letter-spacing: .01em; }
.footer__content { flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Back-to-top */
.back-to-top { box-shadow: 0 10px 24px -8px rgba(37, 117, 252, .7); background: var(--grad-brand); }

/* Wave divider: più basso */
.wave-divider svg { height: clamp(40px, 7vw, 100px); }

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

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
    .container { padding: 0 1.1rem; }
    .logo__img { height: 44px; }
    .header { padding: .3rem 0; }
    .header__content { min-height: 56px; }

    .nav-toggle {
        font-size: 1.6rem; width: 44px; height: 44px; padding: 0;
        display: grid; place-items: center;
        border-radius: 12px; border: 1px solid var(--color-border);
    }

    /* menu a tendina a tutta larghezza */
    .nav-list {
        top: 100%;
        padding: .75rem 1.1rem 1.25rem;
        border-radius: 0 0 var(--radius) var(--radius);
        background: var(--color-background-light);
        max-height: calc(100vh - 70px); overflow-y: auto;
        gap: 0;
        align-items: stretch;
    }
    .main-nav .nav-list li { width: 100%; text-align: left; }
    .nav-link { display: block; padding: .95rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); }
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--accent-2); font-weight: 700; }
    .nav-item--controls { padding-top: 1rem; justify-content: space-between; border: 0; }

    .hero { padding: 3rem 1.1rem 5rem; min-height: calc(100svh - var(--header-height, 64px)); }
    .hero h1, .hero .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
    .hero p { font-size: 1.02rem; }
    .hero__cta-group { flex-direction: column; width: 100%; max-width: 340px; gap: .75rem; }
    .hero__cta-group .btn { width: 100%; text-align: center; }
    .hero__slider-btn { display: none; }
    .badge { font-size: .75rem; padding: .4rem .8rem; }

    .section-padding { padding: 3rem 0; }
    .section-title { margin-bottom: 1.75rem; }

    /* parallax 3D: meno scroll da fare */
    .apple-parallax-section { height: 320vh; }
    .parallax-main-title { font-size: .8rem; }

    /* competenze: griglia 2 colonne compatta */
    .services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .service-card { min-width: 0; padding: 1.25rem .85rem; text-align: center; }
    .service-card__icon { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 14px; margin-bottom: .75rem; }
    .service-card h3 { font-size: .95rem; margin-bottom: .35rem; }
    .service-card p { font-size: .82rem; line-height: 1.4; }

    .projects__grid { gap: 1.25rem; }
    .project-card { flex: 1 1 100%; min-width: 0; }
    .project-card__content { padding: 1.1rem; }
    .project-card p { font-size: .92rem; line-height: 1.55; }

    .credentials__grid { grid-template-columns: 1fr; }
    .credential-card { padding: 1.4rem; }

    .mission-philosophy__grid .card, .skills-category { padding: 1.4rem; }
    .about__content { gap: 1.5rem; }
    .about__image { border-radius: var(--radius); }

    .back-to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
    .wave-divider svg { height: 36px; }
}

@media (max-width: 380px) {
    .services__grid { grid-template-columns: 1fr; }
}

/* touch target minimo */
@media (pointer: coarse) {
    .btn, .lang-dropdown__toggle, .theme-toggle { min-height: 44px; }
}

/* --- Allineamento testi (rimosso justify) --- */
main p { text-align: left; }
.text-center, .text-center p, .hero p, .service-card p, .credentials__lead, .section-title,
#home-skills-short .service-card p, .parallax-description { text-align: center; }
.mission-philosophy__grid .card, .skills-category { text-align: left; }
.mission-philosophy__grid .card .card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; font-size: 1.6rem; color: #fff; background: var(--grad-brand); border-radius: 16px; margin-bottom: 1rem; }
.mission-philosophy__grid .card h3 { text-align: left; }
.about__text p { margin-bottom: 1rem; line-height: 1.7; }

/* CTA contatti: titolo lungo -> prima riga in evidenza */
[data-lang-key="contact.cta.title"] { font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 500; line-height: 1.55; max-width: 780px; margin-inline: auto; }
[data-lang-key="contact.cta.title"]::first-line { font-size: 1.6em; font-weight: 800; }

/* checkbox consenso */
.form-group--checkbox { display: flex; gap: .75rem; align-items: flex-start; }
.form-group--checkbox input { flex: none; width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--accent-2); }
.form-group--checkbox label { margin: 0; line-height: 1.5; }

/* campi form */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    border-radius: var(--radius-sm); transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: var(--ring); outline: none; }

/* Slider dots */
.hero__slider-dot { transition: width var(--transition-speed), background var(--transition-speed); border-radius: 999px; }
.hero__slider-dot--active { width: 28px; background: var(--grad-brand); border-color: transparent; }

/* Timeline: marker e card sulla stessa riga (le card di sinistra andavano a capo sotto il marker) */
.timeline-item .timeline-marker,
.timeline-item .timeline-card { grid-row: 1; }

/* ===================== CONTRASTI (giorno / notte) ===================== */
:root, html[data-theme="dark"] { --accent-ink: #5cd6ff; }
html[data-theme="light"] {
    --accent-ink: #0a5fd0;
    --color-secondary: #4d5761;   /* testo secondario: >= 6:1 su bianco e su #f8f9fa */
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) { --accent-ink: #0a5fd0; --color-secondary: #4d5761; }
}
/* bottoni outline e titoli ciano: usano l'inchiostro accessibile del tema (non nell'hero, che e' su immagine scura) */
.btn--secondary { color: var(--accent-ink); border-color: var(--accent-ink); }
.hero .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--secondary:hover, .hero .btn--secondary:hover { color: #fff; border-color: transparent; background: var(--grad-brand); }
.skills-category h3 { color: var(--accent-ink); }
.parallax-main-title, .scroll-hint, .credentials__lead { color: var(--color-secondary); }
.footer__tagline { color: var(--accent-ink); }
.badge { background: rgba(8, 18, 44, .55); border-color: rgba(255, 255, 255, .4); }

/* ===================== NAVIGAZIONE ===================== */
html { scroll-padding-top: calc(var(--header-height, 72px) + 8px); }
section[id], [id].section-padding { scroll-margin-top: calc(var(--header-height, 72px) + 8px); }
.no-loader .page-loader { display: none !important; }

.skip-link {
    position: fixed; left: 1rem; top: -4rem; z-index: 2000;
    padding: .7rem 1.1rem; border-radius: 999px;
    background: var(--color-card-background); color: var(--accent-ink); font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.header { transition: transform .35s var(--ease), background-color var(--transition-speed), box-shadow var(--transition-speed); }
.header--hidden { transform: translateY(-100%); }

/* ===================== FOOTER centrato ===================== */
.footer__content { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .9rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-nav { flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-nav--pages a { font-weight: 500; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1.5rem; padding-top: .9rem; border-top: 1px solid var(--color-border); width: 100%; }
.footer__legal p { margin: 0; font-size: .85rem; color: var(--color-secondary); text-align: center; }
.footer__tagline { margin: 0; }
@keyframes pulseHint { 0%, 100% { opacity: .92; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.scroll-hint { font-weight: 500; }

/* logo scuro su header scuro: base chiara */
html[data-theme="dark"] .logo__img { background: #fff; border-radius: 12px; padding: 3px 10px; box-sizing: content-box; }
/* area di tocco ampia per i pallini dello slider senza deformarli */
.hero__slider-dot { position: relative; }
.hero__slider-dot::after { content: ''; position: absolute; inset: -12px -6px; }
.footer-nav--pages { gap: .4rem 1.1rem; }
.footer-nav--pages a { font-size: .85rem; }

/* ===================== GRIGLIE: nessuna card orfana stirata ===================== */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { min-width: 0; }
@media (max-width: 1024px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 769px) and (max-width: 1024px) { .service-card { padding: 1.75rem 1.25rem; } }

.positions__grid { gap: 1.5rem; }
.position-card { flex: 0 1 calc(33.333% - 1rem); min-width: 280px; max-width: 420px; }
@media (max-width: 1000px) { .position-card { flex-basis: calc(50% - .75rem); } }
@media (max-width: 640px) { .position-card { flex-basis: 100%; max-width: none; } }
.projects__grid .project-card { flex: 0 1 calc(50% - 1rem); max-width: 560px; }
@media (max-width: 768px) { .projects__grid .project-card { flex-basis: 100%; max-width: none; } }

/* ===================== CONTATTI ===================== */
.contact__grid { align-items: flex-start; gap: 1.5rem; }
.contact-info { justify-content: flex-start; align-self: stretch; }
.contact-info h3 { margin-bottom: 1.25rem; }
.contact-form button[type="submit"], .contact-form .btn--primary { margin-top: .5rem; }
.contact-form .btn--primary { width: 100%; max-width: 360px; justify-content: center; }
.contact-form .btn--primary + p, .contact-form .form-note { margin-top: .75rem; font-size: .9rem; color: var(--color-secondary); }
@media (max-width: 768px) { .contact-form .btn--primary { max-width: none; } }

/* Titolo "La Nostra Storia": allineato alla colonna di testo su desktop */
@media (min-width: 769px) {
    .about__text .section-title { text-align: left; }
    .about__text .section-title::after { left: 0; transform: none; }
}

/* --- Parallax: barra di avanzamento + pallini (--p = progresso 0..1 da app.js) --- */
.progress-dots {
    --dot: 12px;
    --pad: 20px;
    right: 1.5rem;
    flex-direction: column;
    gap: 26px;
    padding: var(--pad) 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px -10px rgba(10, 20, 50, .25);
}
.progress-dots::before,
.progress-dots::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(var(--pad) + var(--dot) / 2);
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    pointer-events: none;
}
.progress-dots::before { bottom: calc(var(--pad) + var(--dot) / 2); background: rgba(37, 117, 252, .18); }
.progress-dots::after {
    height: calc(var(--p, 0) * (100% - 2 * var(--pad) - var(--dot)));
    background: var(--grad-brand);
}
.progress-dot {
    position: relative; z-index: 1;
    width: var(--dot); height: var(--dot);
    background: #fff;
    border: 2px solid rgba(37, 117, 252, .4);
    box-sizing: border-box;
}
.progress-dot::before { inset: -10px; background: transparent !important; transform: none !important; }
.progress-dot:hover { border-color: var(--accent-2); }
.progress-dot.active {
    background: var(--grad-brand);
    border-color: transparent;
    transform: scale(1.35);
    box-shadow: 0 0 0 5px rgba(37, 117, 252, .16);
}
.progress-dot:focus-visible { box-shadow: var(--ring); }

@media (max-width: 768px) {
    /* resta verticale a destra anche su mobile, piu' compatta */
    .progress-dots { --dot: 9px; --pad: 14px; right: .5rem; gap: 22px; padding: var(--pad) 8px; }
    .progress-dot::before { inset: -12px; }
}

/* =====================================================================
   BOTTONI: stato hover sempre leggibile (testo bianco su blu profondo)
   ===================================================================== */
:root { --grad-hover: linear-gradient(135deg, #0a3fb8 0%, #2f45d6 55%, #5a3fd0 100%); }
.btn--primary { background: linear-gradient(135deg, #0a84f0 0%, #2575fc 55%, #6a4cff 100%); color: #fff; }
.btn--primary:hover,
.btn--secondary:hover,
.lang-dropdown__toggle:hover,
.back-to-top:hover { background: var(--grad-hover); color: #fff; border-color: transparent; }
.lang-dropdown__toggle:hover .lang-dropdown__selected,
.lang-dropdown__toggle:hover i { color: #fff; }
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(10, 63, 184, .65); }
/* nell'hero il secondario e' bianco pieno con testo blu scuro */
.hero .btn--secondary:hover { background: #fff; color: #0a2a7a; border-color: #fff; }

/* =====================================================================
   TIMELINE: binario sottile, anno in evidenza, nessun box pesante
   ===================================================================== */
.timeline-modern { max-width: 920px; padding: 1rem 0; --yw: 150px; --mw: 56px; }
.timeline-modern .timeline-progress-line {
    left: calc(var(--yw) + var(--mw) / 2); top: 22px; bottom: 22px;
    width: 1px; transform: none;
    background: linear-gradient(180deg, var(--accent-2), rgba(37, 117, 252, .12));
}
.timeline-modern .timeline-item {
    grid-template-columns: var(--yw) var(--mw) minmax(0, 1fr);
    column-gap: 0; margin-bottom: 2.75rem; align-items: start;
}
.timeline-modern .timeline-item:last-child { margin-bottom: 0; }
.timeline-modern .timeline-card { display: contents; }
.timeline-modern .timeline-card::before, .timeline-modern .timeline-card::after { display: none; }
.timeline-modern .timeline-year {
    grid-column: 1; grid-row: 1 / span 2; justify-self: end; align-self: start;
    background: none; padding: 0 1.25rem 0 0; margin: 0; border-radius: 0;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 300; letter-spacing: -.03em; line-height: 1;
    color: var(--color-text-dark); font-variant-numeric: tabular-nums;
}
.timeline-modern .timeline-item:nth-of-type(2) .timeline-year {
    font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.timeline-modern .timeline-marker { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-content: center; }
.timeline-modern .timeline-icon {
    width: 44px; height: 44px; background: #fff; box-shadow: none;
    border: 1px solid rgba(37, 117, 252, .35); transition: background var(--transition-speed), border-color var(--transition-speed);
}
.timeline-modern .timeline-icon i { font-size: 18px; color: var(--accent-2); }
.timeline-modern .timeline-item:nth-of-type(2) .timeline-icon { background: var(--grad-brand); border-color: transparent; box-shadow: 0 0 0 6px rgba(37, 117, 252, .12); }
.timeline-modern .timeline-item:nth-of-type(2) .timeline-icon i { color: #fff; }
.timeline-modern .timeline-item:hover .timeline-icon { transform: none; box-shadow: 0 0 0 6px rgba(37, 117, 252, .12); }
.timeline-modern .timeline-card h3 { grid-column: 3; grid-row: 1; margin: .15rem 0 .4rem; font-size: 1.15rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.timeline-modern .timeline-card p { grid-column: 3; grid-row: 2; font-size: .98rem; line-height: 1.6; max-width: 60ch; }
.timeline-modern .timeline-item:hover .timeline-card { transform: none; box-shadow: none; }

@media (max-width: 768px) {
    .timeline-modern { --yw: 0px; --mw: 44px; padding: .5rem 0; }
    .timeline-modern .timeline-progress-line { left: 22px; }
    .timeline-modern .timeline-item { grid-template-columns: var(--mw) minmax(0, 1fr); column-gap: .9rem; margin-bottom: 1.9rem; }
    .timeline-modern .timeline-marker { grid-column: 1; grid-row: 1 / span 3; }
    .timeline-modern .timeline-icon { width: 40px; height: 40px; }
    .timeline-modern .timeline-year { grid-column: 2; grid-row: 1; justify-self: start; padding: 0; font-size: 1.5rem; margin-top: .1rem; }
    .timeline-modern .timeline-card h3 { grid-column: 2; grid-row: 2; font-size: 1.02rem; margin: .3rem 0 .25rem; }
    .timeline-modern .timeline-card p { grid-column: 2; grid-row: 3; font-size: .9rem; line-height: 1.55; }
}

/* =====================================================================
   CARD PROGETTI su mobile: rettangolari, larghe e basse (miniatura + testo)
   ===================================================================== */
@media (max-width: 640px) {
    .projects__grid { display: flex; flex-direction: column; flex-wrap: nowrap; gap: .8rem; }
    .project-card {
        display: grid; grid-template-columns: 104px minmax(0, 1fr);
        flex: none; width: 100%; min-width: 0; min-height: 0;
    }
    .project-card:hover { transform: none; }
    .project-card__image { width: 104px; height: 100%; min-height: 116px; object-fit: cover; border-radius: 0; }
    .project-card:hover .project-card__image { transform: none; }
    .project-card__content { padding: .75rem .9rem; justify-content: center; gap: .3rem; min-width: 0; }
    .project-card h3 { font-size: .92rem; line-height: 1.25; margin: 0; max-height: none; }
    .project-card h4 {
        margin: 0; font-size: .76rem; font-weight: 500; line-height: 1.3; color: var(--color-secondary);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .project-card p {
        margin: 0; font-size: .8rem; line-height: 1.4;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .project-card h4 ~ p { display: none; }
    .project-card .btn, .project-card .btn:hover {
        align-self: flex-start; min-height: 0; padding: .3rem 0; margin-top: .1rem;
        background: none; border: 0; box-shadow: none; border-radius: 0; transform: none;
        color: var(--accent-ink); font-size: .82rem;
    }
    .project-card .btn::after { content: ' \2192'; }
    .project-card .btn:hover { color: var(--accent-2); }
}

/* =====================================================================
   FOOTER compatto (desktop e mobile)
   ===================================================================== */
.footer { margin-top: 2.5rem; padding: 0; box-shadow: none; border-top: 1px solid var(--color-border); }
.footer .footer__content {
    display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
    padding-top: 1rem; padding-bottom: 1rem; text-align: left;
}
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: .4rem 2rem; flex-wrap: wrap; }
.footer__tagline { width: auto; text-align: left; font-size: .8rem; }
.footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer .footer-nav a, .footer .footer-nav--pages a { font-size: .82rem; font-weight: 500; }
.footer .footer__legal {
    border-top: 0; padding-top: 0; width: auto; justify-content: space-between; align-items: center; gap: .25rem 2rem;
}
.footer .footer__legal p { font-size: .76rem; text-align: left; opacity: .85; }
.footer .footer__legal .footer-nav a { font-size: .76rem; font-weight: 400; color: var(--color-secondary); }

@media (max-width: 640px) {
    .footer { margin-top: 1.5rem; }
    .footer .footer__content { gap: .6rem; padding-top: .9rem; padding-bottom: .9rem; align-items: center; text-align: center; }
    .footer__row { flex-direction: column; justify-content: center; gap: .45rem; }
    .footer__tagline { text-align: center; font-size: .74rem; }
    .footer .footer-nav, .footer .footer-nav--pages { justify-content: center; gap: .2rem .9rem; }
    .footer .footer-nav a, .footer .footer-nav--pages a { font-size: .76rem; }
    .footer .footer__legal { flex-direction: column; justify-content: center; gap: .2rem; padding-top: .6rem; border-top: 1px solid var(--color-border); width: 100%; }
    .footer .footer__legal p { text-align: center; font-size: .7rem; }
    .footer .footer__legal .footer-nav a { font-size: .7rem; }
}

/* specificita' pari a style.css (html[data-theme]) per colori timeline */
html[data-theme="light"] .timeline-modern .timeline-year { color: var(--color-text-dark); background: none; }
html[data-theme="light"] .timeline-modern .timeline-icon i { color: var(--accent-2); }
html[data-theme="light"] .timeline-modern .timeline-item:nth-of-type(2) .timeline-year {
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .timeline-modern .timeline-item:nth-of-type(2) .timeline-icon { background: var(--grad-brand); border-color: transparent; box-shadow: 0 0 0 6px rgba(37, 117, 252, .12); }
html[data-theme="light"] .timeline-modern .timeline-item:nth-of-type(2) .timeline-icon i { color: #fff; }

/* footer mobile: ancora piu' compatto */
@media (max-width: 640px) {
    .footer__tagline { font-size: .7rem; letter-spacing: -.01em; }
    .footer .footer__content { gap: .45rem; }
    .footer .footer__legal { flex-direction: row; flex-wrap: wrap; gap: .1rem .9rem; padding-top: .45rem; }
}

/* overlay decorativi (bordi sfumati) non devono intercettare mouse/tocco: bloccavano hover e click dei bottoni nelle card */
.service-card::before, .project-card::before, .mission-philosophy__grid .card::before,
.testimonial-card::before, .benefit-card::before, .position-card::before,
.timeline-card::before, .timeline-card::after { pointer-events: none; }

/* careers mobile: profili compatti (requisiti nei dettagli) */
@media (max-width: 640px) {
    .positions__grid { gap: .7rem; }
    .position-card { padding: 1rem 1.1rem; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .9rem; row-gap: .25rem; }
    .position-card h3 { grid-column: 1; margin: 0; font-size: 1rem; line-height: 1.25; }
    .position-card p {
        grid-column: 1; margin: 0; font-size: .82rem; line-height: 1.4;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .position-card ul { display: none; }
    .position-card .btn, .position-card .btn:hover {
        grid-column: 2; grid-row: 1 / span 2; width: auto; min-height: 0; padding: .45rem 1rem; font-size: .82rem; margin: 0;
    }
}

/* footer: una riga, nessun link ripetuto dal menu */
.footer .footer__content { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 2rem; padding-top: .9rem; padding-bottom: .9rem; }
.footer .footer__tagline { margin: 0; }
.footer .footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.25rem; border: 0; padding: 0; width: auto; }
.footer .footer__legal a { font-size: .76rem; color: var(--color-secondary); }
.footer .footer__legal a:hover { color: var(--accent-2); }
@media (max-width: 640px) {
    .footer .footer__content { flex-direction: column; justify-content: center; text-align: center; gap: .35rem; padding-top: .8rem; padding-bottom: .8rem; }
    .footer .footer__legal { justify-content: center; border: 0; padding: 0; }
}

/* timeline: piu' aria tra icona e testo; anno composto piu' largo */
.timeline-modern { --yw: 170px; }
.timeline-modern .timeline-card h3, .timeline-modern .timeline-card p { padding-left: 1.5rem; }
@media (max-width: 768px) {
    .timeline-modern { --yw: 0px; }
    .timeline-modern .timeline-item { column-gap: 1.3rem; }
    .timeline-modern .timeline-card h3, .timeline-modern .timeline-card p { padding-left: 0; }
}

/* =====================================================================
   LINGUAGGIO VISIVO "atelier": bordi sottili, nessuna ombra pesante,
   un solo accento, tipografia grande e quieta, molto respiro
   ===================================================================== */
:root { --ink: #0b1b3a; --navy: #0b1f4d; --navy-2: #13307a; }
.section-title::after { width: 40px; height: 2px; }
.section-title { font-weight: 750; letter-spacing: -.03em; }

.service-card, .mission-philosophy__grid .card, .skills-category, .credential-card,
.benefit-card, .position-card, .contact-form, .contact-info {
    background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
    box-shadow: none;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}
.service-card:hover, .mission-philosophy__grid .card:hover, .skills-category:hover, .credential-card:hover,
.benefit-card:hover, .position-card:hover {
    border-color: rgba(37, 117, 252, .45);
    box-shadow: 0 24px 40px -28px rgba(10, 30, 80, .35);
    transform: translateY(-3px);
}
.credential-card::before, .benefit-card::before, .position-card::before { display: none; }
/* icone: tessera tenue con glifo blu, non piu' blocco gradiente */
.service-card__icon, .credential-card__icon, .mission-philosophy__grid .card .card__icon {
    background: rgba(37, 117, 252, .08); color: var(--accent-2); box-shadow: none;
}

/* ---------- PROGETTI (desktop): righe editoriali immagine + testo ---------- */
@media (min-width: 1024px) {
    #projects-gallery .projects__grid { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 5rem; counter-reset: pj; max-width: 1100px; margin: 0 auto; }
    #projects-gallery .project-card {
        counter-increment: pj;
        display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "img txt";
        align-items: center; gap: 0 4.5rem;
        flex: none; width: 100%; min-width: 0; max-width: none;
        background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible;
    }
    #projects-gallery .project-card:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "txt img"; }
    #projects-gallery .project-card::before { display: none; }
    #projects-gallery .project-card:hover { transform: none; box-shadow: none; }
    #projects-gallery .project-card__image {
        grid-area: img; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px;
        box-shadow: 0 34px 60px -36px rgba(10, 30, 80, .5);
        transition: transform .6s var(--ease), box-shadow .6s var(--ease);
    }
    #projects-gallery .project-card:hover .project-card__image { transform: translateY(-6px); box-shadow: 0 44px 70px -36px rgba(10, 30, 80, .55); }
    #projects-gallery .project-card__content { grid-area: txt; display: block; padding: 0; }
    #projects-gallery .project-card__content::before {
        content: counter(pj, decimal-leading-zero);
        display: block; padding-bottom: 1rem; margin-bottom: 1.4rem;
        border-bottom: 1px solid var(--color-border);
        font-size: .85rem; font-weight: 600; letter-spacing: .22em; color: var(--accent-ink);
    }
    #projects-gallery .project-card h3 {
        font-size: clamp(1.4rem, 2.1vw, 1.85rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
        max-height: none; display: block; -webkit-line-clamp: unset; margin: 0 0 1rem; color: var(--ink);
    }
    #projects-gallery .project-card p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.6rem; }
    #projects-gallery .project-card .btn,
    #projects-gallery .project-card .btn:hover {
        padding: 0 0 .3rem; background: none; border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0;
        box-shadow: none; transform: none; font-weight: 600; font-size: 1rem; color: var(--accent-ink);
    }
    #projects-gallery .project-card .btn::after { content: ' \2192'; display: inline-block; transition: transform var(--transition-speed); }
    #projects-gallery .project-card .btn:hover { color: var(--accent-2); }
    #projects-gallery .project-card .btn:hover::after { transform: translateX(5px); }
}

/* pannello dettagli progetto: sobrio */
.project-details { border: 1px solid var(--color-border); border-radius: 22px; background: #fff; box-shadow: none; }
.project-details__section { border: 1px solid var(--color-border); border-radius: 14px; box-shadow: none; }
.project-details__section:hover { transform: none; box-shadow: none; border-color: rgba(37, 117, 252, .4); }

/* ---------- R&D / pannelli in negativo (CTA, contatti) ---------- */
#r-d-section .mission-philosophy__grid .card:last-child,
.contact-info {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    border-color: transparent; color: #fff;
}
#r-d-section .mission-philosophy__grid .card:last-child h3,
#r-d-section .mission-philosophy__grid .card:last-child p,
.contact-info h3, .contact-info p, .contact-info span, .contact-info strong { color: #fff; }
#r-d-section .mission-philosophy__grid .card:last-child p, .contact-info__group p { color: rgba(255, 255, 255, .82); }
#r-d-section .mission-philosophy__grid .card:last-child .card__icon { background: rgba(255, 255, 255, .12); color: #fff; }
#r-d-section .mission-philosophy__grid .card:last-child:hover, .contact-info:hover { transform: none; box-shadow: none; }
#r-d-section .card:last-child .btn--primary { background: #fff; color: var(--navy); box-shadow: none; }
#r-d-section .card:last-child .btn--primary:hover { background: #e8efff; color: var(--navy); }
.contact-info .contact-info__item i, .contact-info .social-links a { color: #7fb2ff; }
.contact-info .social-links a:hover { color: #fff; }
.contact-info__group + .contact-info__group { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.25rem; }
#projects-gallery .project-card .btn::after { margin-left: .45rem; }

/* ---------- Careers: cultura e benefit in linea con il resto ---------- */
.culture-section::before { display: none; }
.culture__intro-text { font-size: 1.15rem; line-height: 1.8; color: var(--ink); text-align: center; max-width: 780px; margin-inline: auto; }
.culture__highlight { border: 0; border-left: 2px solid var(--accent-2); border-radius: 0; box-shadow: none; background: none; padding: 1.25rem 0 1.25rem 1.75rem; }
.culture__highlight::before { display: none; }
.culture__highlight-icon, .benefit-card__icon {
    width: 48px; height: 48px; display: inline-grid; place-items: center; flex: none;
    border-radius: 14px; background: rgba(37, 117, 252, .08); box-shadow: none;
}
.culture__highlight-icon i, .benefit-card__icon i { color: var(--accent-2); font-size: 1.3rem; }
.culture__benefits-title { font-size: 1.1rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); font-weight: 650; }
@media (min-width: 769px) {
    .benefit-card { display: flex; flex-direction: row; align-items: flex-start; gap: 1.1rem; padding: 1.5rem 1.6rem; min-height: 0; }
    .benefit-card__title { margin: 0 0 .35rem; font-size: 1.05rem; }
    .benefit-card__description { margin: 0; font-size: .95rem; line-height: 1.6; }
}

/* ---------- Titoli e liste nelle card: scala sobria, un solo blu ---------- */
.position-card h3, .skills-category h3, .mission-philosophy__grid .card h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 700;
}
.position-card h3 { color: var(--ink); }
.skills-category { outline: 0; }
.skills-category h3 { padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--color-border); }
.position-card li i, .skills-category li i, .mission-philosophy__grid .card li i { color: var(--accent-2); }
.position-card ul, .skills-category ul { margin-top: 1.1rem; }

.timeline-modern { max-width: 980px; --yw: 210px; }
.timeline-modern .timeline-year { white-space: nowrap; }
@media (max-width: 768px) { .timeline-modern { --yw: 0px; } }
@media (max-width: 640px) { .footer .footer__legal { padding-right: 3.2rem; padding-left: .4rem; } }

/* logo con width/height intrinseci: il ridimensionamento resta governato dall'altezza CSS */
.logo__img { width: auto; }

/* target di tocco >= 40px per i link testuali */
@media (max-width: 640px) {
    .project-card .btn, .project-card .btn:hover { padding: .6rem 0; }
    .footer .footer__legal a, .footer .footer-nav a { display: inline-block; padding: .55rem .25rem; }
}

/* ---------- Home: "Come lavoriamo" (3 passi) ---------- */
.process__lead { text-align: center; max-width: 620px; margin: -.5rem auto 2.75rem; color: var(--color-secondary); }
.process__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1050px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: none; }
.process__step { position: relative; padding-top: 1.35rem; border-top: 1px solid var(--color-border); }
.process__step::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--grad-brand); }
.process__num { display: block; font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 200; letter-spacing: -.04em; line-height: 1; color: var(--accent-2); opacity: .9; margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.process__step h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; color: var(--ink); letter-spacing: -.01em; }
.process__step p { margin: 0; color: var(--color-secondary); line-height: 1.65; font-size: .98rem; max-width: 34ch; }
@media (max-width: 768px) {
    .process__steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .process__step { display: grid; grid-template-columns: 56px 1fr; column-gap: .9rem; padding-top: 1rem; }
    .process__num { grid-row: 1 / span 2; font-size: 2rem; margin: 0; }
    .process__step h3 { margin-bottom: .25rem; font-size: 1.08rem; }
    .process__step p { font-size: .92rem; max-width: none; }
    .process__lead { margin-bottom: 1.75rem; }
}

/* ---------- Home: fascia finale in negativo ---------- */
.contact-cta { margin-top: 3.5rem; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; color: #fff; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); }
.contact-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; max-width: 760px; margin: 0 auto .9rem; }
.contact-cta p { color: rgba(255, 255, 255, .82); max-width: 600px; margin: 0 auto 2rem; text-align: center; font-size: 1.05rem; }
.contact-cta .contact-cta__btn { background: #fff; color: var(--navy); box-shadow: none; }
.contact-cta .contact-cta__btn:hover { background: #e8efff; color: var(--navy); box-shadow: none; }
.contact-cta__link { display: block; margin: 1.4rem auto 0; width: fit-content; color: rgba(255, 255, 255, .8); font-size: .92rem; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: .15rem; }
.contact-cta__link:hover { color: #fff; border-color: #fff; }
.contact-cta + .footer, .contact-cta ~ .footer { margin-top: 0; }

/* la fascia finale scura sostituisce la vecchia sezione carriere: niente onda/spazio prima */
.wave-divider--flipped { display: none; }
.contact-cta { margin-top: 0; }

/* =====================================================================
   HOME: racconto in 5 atti (hero -> 3D -> chi siamo -> cosa facciamo ->
   metodo -> progetti -> contatto). Ritmo chiaro/scuro, niente onde grigie.
   ===================================================================== */
.page-home .wave-divider { display: none; }

/* etichetta sopra i titoli */
.eyebrow {
    display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--grad-brand); }

/* titoli di sezione: grandi, a sinistra, senza barretta */
.home-statement .section-title, .home-dark .section-title, .home-process .section-title, .home-projects .section-title {
    text-align: left; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800;
    margin: 0 0 1.25rem; padding: 0; max-width: 16ch; color: var(--ink);
}
.home-statement .section-title::after, .home-dark .section-title::after,
.home-process .section-title::after, .home-projects .section-title::after { display: none; }

/* ---------- ATTO 1: chi siamo (manifesto asimmetrico) ---------- */
.home-statement { position: relative; overflow: hidden; background: #fff; padding: clamp(5rem, 10vw, 9rem) 0; }
.home-statement::before {
    content: ''; position: absolute; width: 760px; height: 760px; right: -240px; top: -280px; pointer-events: none;
    background: radial-gradient(circle, rgba(37, 117, 252, .12), transparent 65%);
}
.home-statement .container {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "eyebrow pillars" "title pillars" "lead pillars"; grid-template-rows: auto auto 1fr;
    column-gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.home-statement .eyebrow { grid-area: eyebrow; justify-self: start; }
.home-statement .section-title {
    grid-area: title; max-width: 11ch; font-size: clamp(2.8rem, 6.6vw, 5.6rem);
    background: linear-gradient(120deg, var(--ink) 35%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-statement .credentials__lead { grid-area: lead; text-align: left; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: 36ch; margin: 0; color: var(--color-secondary); }
.home-statement .credentials__grid { grid-area: pillars; display: flex; flex-direction: column; gap: 0; max-width: none; margin: 0; align-self: center; }
.home-statement .credential-card {
    display: flex; gap: 1.4rem; align-items: flex-start; padding: 2rem 0; background: none; border: 0; border-top: 1px solid var(--color-border);
    border-radius: 0; box-shadow: none; transform: none;
}
.home-statement .credential-card:last-child { border-bottom: 1px solid var(--color-border); }
.home-statement .credential-card:hover { transform: none; box-shadow: none; }
.home-statement .credential-card__icon {
    flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    background: none; border: 1.5px solid rgba(37, 117, 252, .45); color: var(--accent-2); font-size: 1.5rem;
    transition: background var(--transition-speed), color var(--transition-speed);
}
.home-statement .credential-card:hover .credential-card__icon { background: var(--accent-2); color: #fff; }
.home-statement .credential-card h3 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 .45rem; color: var(--ink); }
.home-statement .credential-card p { font-size: 1rem; line-height: 1.65; }

/* ---------- ATTO 2: cosa facciamo (blocco scuro con bagliori) ---------- */
.home-dark {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(5rem, 10vw, 9rem) 0;
    background: linear-gradient(160deg, #061230 0%, #0a1f55 60%, #0d2a78 100%);
}
.home-dark::before, .home-dark::after, .contact-cta::before, .contact-cta::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; z-index: -1;
    animation: qbDrift 18s ease-in-out infinite alternate;
}
.home-dark::before, .contact-cta::before { width: 520px; height: 520px; background: #2575fc; top: -160px; right: -120px; }
.home-dark::after, .contact-cta::after { width: 460px; height: 460px; background: #6a4cff; bottom: -180px; left: -140px; animation-delay: -9s; }
@keyframes qbDrift { to { transform: translate(-70px, 45px) scale(1.18); } }
.home-dark .eyebrow { color: #8dbbff; }
.home-dark .section-title { color: #fff; max-width: 14ch; }
.home-dark .services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.home-dark .service-card {
    position: relative; overflow: hidden; text-align: left; min-width: 0; padding: 1.9rem 1.6rem; border-radius: 20px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none;
}
.home-dark .service-card::before { display: none; }
.home-dark .service-card::after {   /* riflettore che segue il mouse */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 170, 255, .30), transparent 60%);
}
.home-dark .service-card:hover { transform: translateY(-6px); border-color: rgba(141, 187, 255, .55); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65); }
.home-dark .service-card:hover::after { opacity: 1; }
.home-dark .service-card__icon { margin: 0 0 1.2rem; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #9cc4ff; font-size: 1.5rem; }
.home-dark .service-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .4rem; text-align: left; }
#home-skills-short.home-dark .service-card p { color: rgba(255, 255, 255, .72); text-align: left; font-size: .95rem; }
#home-skills-short.home-dark .btn--primary { background: #fff; color: #0a1f55; box-shadow: none; }
#home-skills-short.home-dark .btn--primary:hover { background: #e8efff; color: #0a1f55; }
#home-skills-short.home-dark .text-center { text-align: left; }

/* ---------- ATTO 3: il metodo ---------- */
.home-process { background: #fff; padding: clamp(5rem, 10vw, 8rem) 0; }
.home-process .process__lead { text-align: left; margin: 0 0 3.5rem; max-width: 46ch; font-size: 1.15rem; }
.home-process .process__steps { max-width: none; gap: clamp(1.5rem, 4vw, 3.5rem); }
.home-process .process__num {
    color: transparent; -webkit-text-stroke: 1.5px rgba(37, 117, 252, .55); font-weight: 800; opacity: 1;
    font-size: clamp(3.6rem, 6.5vw, 6rem); transition: color var(--transition-speed), -webkit-text-stroke-color var(--transition-speed);
}
.home-process .process__step:hover .process__num { color: rgba(37, 117, 252, .09); -webkit-text-stroke-color: var(--accent-2); }
.home-process .process__step h3 { font-size: 1.35rem; }
.home-process .process__step p { font-size: 1.02rem; }
@media (max-width: 768px) { .home-process .process__num { font-size: 2.1rem; -webkit-text-stroke-width: 1px; } .home-process .process__step h3 { font-size: 1.1rem; } }

/* ---------- ATTO 4: progetti a tutta immagine ---------- */
.home-projects { background: #f3f6fc; padding: clamp(5rem, 10vw, 8rem) 0; }
.home-projects .text-center { text-align: left; }
@media (min-width: 641px) {
    .home-projects .projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
    .home-projects .project-card {
        position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
        min-height: 540px; min-width: 0; max-width: none; border: 0; border-radius: 26px; overflow: hidden; color: #fff;
        box-shadow: 0 40px 70px -40px rgba(10, 30, 80, .6); background: #0a1f55;
    }
    .home-projects .project-card::before { display: none; }
    .home-projects .project-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: 0; transition: transform 1s var(--ease); }
    .home-projects .project-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 48, .05) 0%, rgba(6, 18, 48, .55) 45%, rgba(6, 18, 48, .94) 100%); }
    .home-projects .project-card:hover { transform: translateY(-6px); }
    .home-projects .project-card:hover .project-card__image { transform: scale(1.07); }
    .home-projects .project-card__content { padding: 2rem 2rem 2.2rem; flex-grow: 0; justify-content: flex-end; gap: .5rem; }
    .home-projects .project-card h3 { color: #fff; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; max-height: none; -webkit-line-clamp: 3; margin: 0; }
    .home-projects .project-card h4 { color: #cfe0ff; font-weight: 500; font-size: .95rem; margin: 0; }
    .home-projects .project-card p {
        color: rgba(255, 255, 255, .82); font-size: .95rem; line-height: 1.55; margin: .2rem 0 .6rem;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .home-projects .project-card .btn, .home-projects .project-card .btn:hover {
        align-self: flex-start; background: none; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .7); border-radius: 0; box-shadow: none; transform: none;
        padding: 0 0 .25rem; color: #fff; font-weight: 600;
    }
    .home-projects .project-card .btn::after { content: '\2192'; margin-left: .5rem; display: inline-block; transition: transform var(--transition-speed); }
    .home-projects .project-card:hover .btn::after { transform: translateX(6px); }
}

/* ---------- ATTO 5: chiusura ---------- */
.contact-cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(5rem, 10vw, 8rem) 0; }
.contact-cta .container { position: relative; }
.contact-cta h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 18ch; letter-spacing: -.04em; line-height: 1.05; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .home-dark .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .home-statement .container { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "lead" "pillars"; row-gap: 0; }
    .home-statement .section-title { max-width: none; }
    .home-statement .credentials__grid { margin-top: 2.25rem; }
    .home-statement .credential-card { padding: 1.5rem 0; gap: 1.1rem; }
}
@media (max-width: 480px) {
    .home-dark .service-card { padding: 1.25rem 1rem; }
    .home-dark .service-card h3 { font-size: 1rem; }
    #home-skills-short.home-dark .service-card p { font-size: .85rem; }
    .home-dark .services__grid { margin-top: 2rem; gap: .75rem; }
}
@media (max-width: 380px) { .home-dark .services__grid { grid-template-columns: 1fr; } }

/* ingresso a cascata nelle griglie */
.home-dark .service-card:nth-child(4n + 2), .process__step:nth-child(2), .home-projects .project-card:nth-child(2) { transition-delay: .08s; }
.home-dark .service-card:nth-child(4n + 3), .process__step:nth-child(3) { transition-delay: .16s; }
.home-dark .service-card:nth-child(4n) { transition-delay: .24s; }
@media (min-width: 641px) { .home-projects .project-card::after { background: linear-gradient(180deg, rgba(6, 18, 48, .1) 0%, rgba(6, 18, 48, .62) 38%, rgba(6, 18, 48, .95) 100%); } }

/* =====================================================================
   PAGINE INTERNE: stesso linguaggio della home
   ===================================================================== */
.band-tint { background: #f3f6fc; }
.page-inner .section-padding { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.page-inner main > section:not(.hero):not(.contact-cta) .section-title {
    text-align: left; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800;
    margin: 0 0 1.25rem; padding: 0; max-width: 22ch; color: var(--ink);
}
.page-inner main > section:not(.hero):not(.contact-cta) .section-title::after { display: none; }
.page-inner main > section.home-dark .section-title { color: #fff; }
.page-inner main > section.home-statement .section-title { font-size: clamp(2.8rem, 6.6vw, 5.6rem); max-width: 11ch; }

/* ---------- Chi siamo: storia ---------- */
.page-inner .about__content { gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-inner .about__image { border-radius: 26px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 40px 70px -40px rgba(10, 30, 80, .55); }
.page-inner .about__text p { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Chi siamo: missione e valori (blocco scuro) ---------- */
.band-mission .mission-philosophy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); margin-top: 1.5rem; align-items: start; }
.band-mission .mission-philosophy__grid .card, .band-mission .mission-philosophy__grid .card:hover {
    background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff;
}
.band-mission .mission-philosophy__grid .card::before { display: none; }
.band-mission .card .card__icon { display: none; }
.band-mission .card:first-child h3 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; color: #fff; margin: 0 0 1.25rem; }
.band-mission .card:first-child p { font-size: 1.15rem; line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 36ch; }
.band-mission .card:last-child h3 { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: #8dbbff; font-weight: 700; margin: 0 0 .75rem; }
.band-mission .card:last-child p { color: rgba(255, 255, 255, .78); margin: 0; }
.band-mission .card ul { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: pl; }
.band-mission .card li { counter-increment: pl; position: relative; padding: 1.15rem 0 1.15rem 3.4rem; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .78); line-height: 1.55; }
.band-mission .card li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.band-mission .card li::before { content: counter(pl, decimal-leading-zero); position: absolute; left: 0; top: 1.1rem; font-size: 1.5rem; font-weight: 200; letter-spacing: -.02em; color: #8dbbff; }
.band-mission .card li strong { display: block; color: #fff; margin-bottom: .15rem; }

/* ---------- Chi siamo: competenze approfondite (numerate) ---------- */
.band-tint .skills-full__grid { counter-reset: sk; margin-top: 2.5rem; }
.band-tint .skills-category { counter-increment: sk; padding: 2rem 1.75rem; }
.band-tint .skills-category h3 { color: var(--ink); border-bottom: 1px solid var(--color-border); padding-bottom: .9rem; margin-bottom: 1.1rem; }
.band-tint .skills-category h3::before { content: counter(sk, decimal-leading-zero); display: block; font-size: .78rem; letter-spacing: .22em; font-weight: 700; color: var(--accent-ink); margin-bottom: .7rem; }

/* ---------- Progetti: R&D (blocco scuro) ---------- */
#r-d-section.band-rd .container > p.text-center { text-align: left; margin-left: 0 !important; margin-right: 0 !important; color: rgba(255, 255, 255, .82); max-width: 62ch !important; font-size: 1.1rem; }
#r-d-section.band-rd .section-title { max-width: 20ch; }
#r-d-section.band-rd .mission-philosophy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
#r-d-section.band-rd .mission-philosophy__grid .card, #r-d-section.band-rd .mission-philosophy__grid .card:last-child {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 2rem; color: #fff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none;
}
#r-d-section.band-rd .mission-philosophy__grid .card:hover { transform: translateY(-4px); border-color: rgba(141, 187, 255, .5); box-shadow: none; }
#r-d-section.band-rd .card h3, #r-d-section.band-rd .card h4 { color: #fff; }
#r-d-section.band-rd .card p, #r-d-section.band-rd .card li { color: rgba(255, 255, 255, .78); }
#r-d-section.band-rd .card .card__icon, #r-d-section.band-rd .mission-philosophy__grid .card:last-child .card__icon { background: rgba(255, 255, 255, .1); color: #9cc4ff; }
#r-d-section.band-rd .card li i { color: #8dbbff; }
#r-d-section.band-rd .card .btn--primary { background: #fff; color: var(--navy); }
#r-d-section.band-rd .card .btn--primary:hover { background: #e8efff; color: var(--navy); }

/* ---------- Careers ---------- */
.page-inner .culture__intro-text { text-align: left; margin-left: 0; max-width: 62ch; }
.page-inner .culture__highlight { max-width: 62ch; margin-left: 0; }
.page-inner .culture__benefits-title { text-align: left; }
@media (min-width: 641px) {
    #open-positions .positions__grid { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
    #open-positions .position-card {
        display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto; align-items: center; gap: .4rem 2.5rem;
        flex: none; width: 100%; max-width: none; min-width: 0; padding: 1.8rem .75rem;
        background: none; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; box-shadow: none;
    }
    #open-positions .position-card:hover { background: rgba(37, 117, 252, .045); transform: none; box-shadow: none; }
    #open-positions .position-card h3 { grid-column: 1; margin: 0; font-size: 1.3rem; }
    #open-positions .position-card p { grid-column: 2; margin: 0; font-size: .98rem; line-height: 1.55; }
    #open-positions .position-card ul { display: none; }
    #open-positions .position-card .btn { grid-column: 3; grid-row: 1 / span 2; width: auto; margin: 0; padding: .6rem 1.4rem; }
}
#open-positions .text-center {
    margin-top: 3rem; padding: clamp(2rem, 5vw, 3.25rem); border-radius: 26px; text-align: left;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
}
#open-positions .text-center p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .85); text-align: left; }
#open-positions .text-center .btn { background: #fff; color: var(--navy); box-shadow: none; }
#open-positions .text-center .btn:hover { background: #e8efff; color: var(--navy); }

/* ---------- Contatti ---------- */
.contact-info a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color var(--transition-speed); }
.contact-info a:hover { border-color: #fff; }

/* ---------- Responsive pagine interne ---------- */
@media (max-width: 860px) {
    .band-mission .mission-philosophy__grid { grid-template-columns: 1fr; gap: 2.25rem; }
    #r-d-section.band-rd .mission-philosophy__grid { grid-template-columns: 1fr; }
    .page-inner main > section.home-statement .section-title { max-width: none; }
}
@media (max-width: 640px) {
    .page-inner main > section:not(.hero):not(.contact-cta) .section-title { font-size: clamp(1.9rem, 8vw, 2.4rem); max-width: none; }
    .page-inner main > section.home-statement .section-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
    .band-mission .card li { padding-left: 2.9rem; }
    #open-positions .text-center { flex-direction: column; align-items: flex-start; }
    #r-d-section.band-rd .mission-philosophy__grid .card { padding: 1.5rem; }
}

/* titoli su blocchi scuri / spaziatura contatti */
#r-d-section.band-rd .section-title, #mission-philosophy.band-mission .section-title { color: #fff; }
.page-inner #contact .section-title { margin-bottom: 2.5rem; }
@media (max-width: 640px) { .contact-form, .contact-info { padding: 1.4rem 1.25rem; } .contact-info h3 { font-size: 1.6rem; } }

/* ---------- Privacy / 404 ---------- */
.privacy-head, .notfound { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.privacy-head .section-title, .notfound .section-title { color: #fff; max-width: 20ch; }
.privacy-head__lead { color: rgba(255, 255, 255, .82); font-size: 1.15rem; line-height: 1.6; max-width: 56ch; margin: 0; }
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound__btn { margin-top: 2rem; background: #fff; color: var(--navy); box-shadow: none; }
.notfound__btn:hover { background: #e8efff; color: var(--navy); }
.privacy__body { max-width: 760px; }
.privacy__body h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; padding-top: 1.75rem; border-top: 1px solid var(--color-border); color: var(--ink); }
.privacy__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.privacy__body p, .privacy__body li { line-height: 1.75; color: var(--color-text-dark); text-align: left; }
.privacy__body ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
.privacy__body li { margin-bottom: .5rem; }
.privacy__updated { margin-top: 3rem; font-size: .9rem; color: var(--color-secondary); }
.form-privacy-link { flex: none; align-self: center; font-size: .85rem; color: var(--accent-ink); border-bottom: 1px solid currentColor; white-space: nowrap; }
.form-privacy-link:hover { color: var(--accent-2); }
.page-inner main > section.privacy-head .section-title, .page-inner main > section.notfound .section-title { color: #fff; }
.page-inner main > section.home-dark.privacy-head .section-title, .page-inner main > section.home-dark.notfound .section-title { color: #fff; -webkit-text-fill-color: #fff; }
@media (max-width: 768px) { .page-home .parallax-text-container { padding: 0 2.9rem 0 1.4rem; } }
