/* =====================================================
   INTERNATIONAL NETWORK BUSINESS — DESIGN SYSTEM
   Palette derivata dal logo (blu profondo -> petrolio -> salvia)
===================================================== */

@font-face {
    font-family: 'Big Shoulders Display';
    src: url('../fonts/BigShouldersDisplay.woff2') format('woff2-variations'),
         url('../fonts/BigShouldersDisplay.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter.woff2') format('woff2-variations'),
         url('../fonts/Inter.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colore — derivato dal logo */
    --navy-900: #0F1D4A;
    --navy-800: #14245C;
    --brand-blue: #1E3282;
    --teal-600: #0E7490;
    --teal-500: #14909E;
    --sage-300: #9CC9C4;
    --sage-100: #E4F0EE;

    --ink: #161B22;
    --ink-soft: #5A6472;
    --paper: #F5F7F8;
    --white: #FFFFFF;
    --line: rgba(15, 29, 74, 0.12);
    --line-light: rgba(255, 255, 255, 0.16);

    --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: min(1240px, calc(100% - 48px));
    --radius: 4px;

    --ease: cubic-bezier(.25, .8, .25, 1);
}

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

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-optical-sizing: auto;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--teal-500);
    outline-offset: 3px;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: .95;
    margin: 0;
    color: var(--navy-900);
}

p { line-height: 1.7; margin: 0 0 1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    color: var(--teal-600);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--teal-600);
    display: inline-block;
}

.section-label-dark .eyebrow,
.section-label-dark .eyebrow::before {
    color: var(--sage-300);
    background: var(--sage-300);
}

/* =====================================================
   SKIP LINK
===================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--navy-900);
    color: white;
    padding: 14px 22px;
    font-weight: 700;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    margin-top: 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.btn:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(14, 116, 144, .45);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid currentColor;
    color: var(--navy-900);
}

.btn-outline:hover {
    background: var(--navy-900);
    color: white;
}

.btn-light {
    background: white;
    color: var(--navy-900);
}

.btn-light:hover {
    background: var(--sage-100);
    color: var(--navy-900);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,.25);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(6px); }

.text-link-light { color: white; }

/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--paper);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease);
}

.header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 88px;
    width: auto;
    display: block;
}

.menu-toggle {
    position: relative;
    z-index: 2;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-900);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-navigation-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    width: min(340px, 86%);
    padding: 110px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: var(--navy-900);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
}

.main-navigation-mobile.open { transform: translateX(0); }

.main-navigation.main-navigation-mobile a { color: rgba(255,255,255,.9); }
.main-navigation.main-navigation-mobile a:hover,
.main-navigation.main-navigation-mobile a.active { color: white; }
.main-navigation.main-navigation-mobile .language-selector {
    color: white;
    border-color: var(--line-light);
}

.main-navigation a {
    position: relative;
    color: var(--navy-900);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    white-space: nowrap;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s var(--ease);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--brand-blue);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.language-selector {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--navy-900);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* =====================================================
   NETWORK MOTIF (elemento distintivo ricorrente dal logo)
===================================================== */

.network-motif {
    position: absolute;
    pointer-events: none;
    opacity: .55;
}

.network-divider {
    position: relative;
    height: 64px;
    overflow: hidden;
}

.network-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* =====================================================
   HERO SLIDER
===================================================== */

.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: white;
    background: var(--navy-900);
}

.hero-slider .slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    min-height: 100vh;
    transition: transform .8s var(--ease);
}

.hero-slider .slide {
    position: relative;
    width: 33.333%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 130px 0 90px;
}

.hero-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 29, 74, .92) 0%,
        rgba(15, 29, 74, .65) 50%,
        rgba(15, 29, 74, .25) 100%
    );
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s;
}

.hero-slider .slide.active .slide-content {
    opacity: 1;
    transform: translateX(0);
}

.hero-slider .eyebrow { color: var(--sage-300); }
.hero-slider .eyebrow::before { background: var(--sage-300); }

.hero-slider h1,
.hero-slider .hero-heading {
    margin: 22px 0;
    font-size: clamp(36px, 6vw, 84px);
    color: white;
    line-height: 1.05;
}

.hero-slider h1 strong,
.hero-slider .hero-heading strong {
    display: block;
    color: var(--sage-300);
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, var(--sage-300), var(--sage-100));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-slider p {
    max-width: 780px;
    color: rgba(255, 255, 255, .82);
    font-size: 19px;
}

.hero-slider .btn {
    margin-top: 16px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .25s var(--ease), transform .25s var(--ease);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, .35);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dots button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background .25s var(--ease), transform .25s var(--ease);
}

.slider-dots button.active {
    background: white;
    transform: scale(1.15);
}

.hero-slider .hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .2em;
    animation: bob 2.2s ease-in-out infinite;
}

/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(120% 100% at 15% 0%, var(--brand-blue) 0%, var(--navy-900) 45%, var(--navy-900) 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 130px 0 90px;
    max-width: 780px;
}

.hero .eyebrow { color: var(--sage-300); }
.hero .eyebrow::before { background: var(--sage-300); }

.hero h1 {
    margin: 22px 0;
    font-size: clamp(36px, 6vw, 84px);
    color: white;
    line-height: 1.05;
}

.hero h1 strong {
    display: block;
    color: var(--sage-300);
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, var(--sage-300), var(--sage-100));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 560px;
    color: rgba(255,255,255,.78);
    font-size: 19px;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .2em;
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* =====================================================
   PAGE HERO (pagine interne)
===================================================== */

.page-hero {
    position: relative;
    padding: 170px 0 90px;
    background: linear-gradient(120deg, var(--navy-900) 0%, var(--brand-blue) 100%);
    color: white;
    overflow: hidden;
}

.page-hero .eyebrow { color: var(--sage-300); }
.page-hero .eyebrow::before { background: var(--sage-300); }

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(40px, 6vw, 76px);
    color: white;
    max-width: 900px;
}

.page-hero .lede {
    margin-top: 22px;
    max-width: 640px;
    font-size: 18px;
    color: rgba(255,255,255,.8);
}

/* =====================================================
   SECTIONS — LAYOUT GENERICO
===================================================== */

.section { padding: 120px 0; position: relative; }

.section-alt { background: var(--paper); }
.section-dark {
    background: var(--navy-900);
    color: white;
}
.section-dark p { color: rgba(255,255,255,.72); }

.section-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 820px;
    margin-bottom: 64px;
}

.section-intro h2 {
    font-size: clamp(36px, 4.6vw, 62px);
}

.section-intro p {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 17px;
}

.section-dark .section-intro h2 { color: white; }

/* =====================================================
   HOME — SVILUPPO BUSINESS
===================================================== */

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.business-card {
    padding: 44px 38px;
    background: white;
    transition: background .25s var(--ease);
}

.business-card:hover { background: var(--sage-100); }

.business-card .card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
}

.business-card h3 {
    font-size: 22px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 14px;
    color: var(--navy-900);
}

.business-card p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* =====================================================
   CHI SIAMO (home teaser + pagina)
===================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(155deg, var(--navy-900), var(--brand-blue) 60%, var(--teal-600));
}

.about-visual svg { width: 100%; height: 100%; }

.about-content h2 {
    font-size: clamp(36px, 4.6vw, 62px);
}

.about-content p { color: var(--ink-soft); line-height: 1.85; }

/* =====================================================
   MISSION
===================================================== */

.mission-text {
    max-width: 820px;
}

.mission-text p { font-size: 17px; }

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.mission-grid.reverse .mission-visual { order: 2; }

.mission-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 29, 74, 0.18);
}

.mission-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mission-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 29, 74, 0.25), rgba(20, 144, 158, 0.12));
    pointer-events: none;
}

.mission-text blockquote {
    margin: 44px 0;
    padding: 0 0 0 26px;
    border-left: 3px solid var(--sage-300);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    color: white;
}

/* =====================================================
   MONDO / EXPORT — grid con visual
===================================================== */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-visual {
    position: relative;
    aspect-ratio: 16 / 12;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sage-100);
}

.split-visual svg,
.split-visual img { width: 100%; height: 100%; }

.split-visual img {
    object-fit: cover;
    border-radius: var(--radius);
}

.split-content h3 { margin: 30px 0 18px; font-size: 22px; text-transform: none; letter-spacing: 0; }

.split-content ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.split-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--ink-soft);
}

.split-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-600);
}

.export-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.export-grid h2 { font-size: clamp(32px, 4vw, 48px); }

.export-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.export-cards article {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.export-cards span {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--teal-600);
    font-family: var(--font-display);
    font-size: 26px;
}

.export-cards h3 { font-size: 19px; text-transform: none; letter-spacing: 0; margin-bottom: 10px; }
.export-cards p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* =====================================================
   PERCHÉ INB
===================================================== */

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.why-grid h2 { font-size: clamp(32px, 4vw, 52px); }
.why-grid p { font-size: 17px; color: var(--ink-soft); }

/* =====================================================
   TEAM
===================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.team-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -20px rgba(15, 29, 74, .25);
}

.team-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--brand-blue), var(--teal-600));
    color: white;
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: .05em;
}

.team-info h3 {
    font-size: 20px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 6px;
    color: var(--navy-900);
}

.team-info > span {
    display: block;
    margin-bottom: 18px;
    color: var(--teal-600);
    font-size: 13px;
    font-weight: 700;
}

.team-info a {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
}

.team-info a:hover { color: var(--brand-blue); }

/* =====================================================
   CTA
===================================================== */

.section-cta {
    text-align: center;
    background: linear-gradient(120deg, var(--navy-900), var(--brand-blue));
    color: white;
    padding: 110px 0;
}

.section-cta .eyebrow { justify-content: center; color: var(--sage-300); }
.section-cta .eyebrow::before { background: var(--sage-300); }

.section-cta h2 {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 64px);
    color: white;
}

.section-cta p {
    max-width: 520px;
    margin: 20px auto 0;
    color: rgba(255,255,255,.78);
}

/* =====================================================
   PAGINA CONTATTI
===================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: start;
}

.contact-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.contact-card h3 { font-size: 19px; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.contact-card span { display: block; color: var(--teal-600); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.contact-card a { display: block; margin-bottom: 6px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.contact-card a:hover { color: var(--brand-blue); }

.contact-form {
    padding: 44px;
    background: var(--paper);
    border-radius: var(--radius);
}

.form-row { margin-bottom: 22px; }
.form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900);
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    background: white;
    color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--teal-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, .18);
}

.form-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 26px;
    font-size: 13px;
    color: var(--ink-soft);
}

.form-consent input { width: auto; margin-top: 3px; }
.form-consent a { color: var(--brand-blue); }

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-soft);
}

/* Stati errore validazione form */
.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select {
    border-color: #dc3545;
    background: #fff;
}

.form-row.has-error input:focus,
.form-row.has-error textarea:focus,
.form-row.has-error select:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .18);
}

.form-consent.has-error {
    color: #dc3545;
}

/* Bolla di errore stile browser */
.field-error {
    position: relative;
    margin-top: 8px;
    padding: 8px 12px;
    background: #dc3545;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, .3);
    animation: fieldErrorIn .18s ease-out;
}

/* Freccia della bolla */
.field-error::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 14px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dc3545;
}

@keyframes fieldErrorIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   PAGINE LEGALI
===================================================== */

.legal-content {
    max-width: 820px;
}

.legal-content h2 {
    margin-top: 52px;
    font-size: 26px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--navy-900);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 16px; }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.legal-content th, .legal-content td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.legal-content th {
    background: var(--paper);
    color: var(--navy-900);
    font-family: var(--font-body);
}

.legal-updated {
    display: inline-block;
    margin-bottom: 40px;
    padding: 6px 14px;
    background: var(--sage-100);
    color: var(--navy-900);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    background: var(--paper);
    color: var(--ink-soft);
    padding-top: 90px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line-light);
}

.footer-brand img {
    height: 84px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 14px;
    color: var(--ink-soft);
}

/* LinkedIn links */
.linkedin-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #0A66C2 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
    transition: opacity .2s var(--ease);
}

.linkedin-link:hover {
    opacity: .75;
}

.linkedin-link svg {
    flex-shrink: 0;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    color: var(--navy-900);
    text-decoration: none;
    transition: color .2s var(--ease);
}

.linkedin-icon:hover {
    color: #0A66C2;
}

.footer-column h2 {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy-900);
    margin-bottom: 20px;
}

.footer-column a,
.footer-column button {
    display: block;
    margin-bottom: 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}

.footer-column a:hover,
.footer-column button:hover { color: var(--brand-blue); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 26px 0;
    font-size: 13px;
    color: var(--ink-soft);
}

.site-credit {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}

.site-credit a {
    color: var(--teal-600);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s var(--ease);
}

.site-credit a:hover {
    color: var(--navy-900);
    text-decoration: underline;
}

/* =====================================================
   COOKIE BANNER (GDPR)
===================================================== */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 4000;
    max-width: 720px;
    margin: 0 auto;
    background: white;
    color: var(--ink);
    border-radius: 10px;
    box-shadow: 0 30px 60px -20px rgba(15, 29, 74, .45);
    padding: 30px;
    display: none;
}

.cookie-banner.visible { display: block; animation: rise .4s var(--ease); }

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner h3 {
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.cookie-banner p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.cookie-banner p a { color: var(--brand-blue); font-weight: 700; }

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-actions .btn { margin-top: 0; }

.cookie-actions .btn-text {
    background: transparent;
    border: 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    padding: 16px 6px;
}

.cookie-panel {
    display: none;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.cookie-panel.visible { display: block; }

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cookie-category:last-child { border-bottom: 0; }

.cookie-category h3 {
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
    color: var(--navy-900);
}

.cookie-category p { font-size: 13px; margin: 0; color: var(--ink-soft); }

.switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-track {
    position: absolute;
    inset: 0;
    background: #C7CDD4;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s var(--ease);
}

.switch-track::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform .2s var(--ease);
}

.switch input:checked + .switch-track { background: var(--teal-600); }
.switch input:checked + .switch-track::before { transform: translateX(18px); }
.switch input:disabled + .switch-track { background: var(--navy-900); opacity: .4; cursor: not-allowed; }

/* =====================================================
   REVEAL ON SCROLL
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 980px) {

    .menu-toggle { display: flex; }

    .main-navigation-desktop { display: none; }

    .business-grid,
    .about-grid,
    .split-grid,
    .why-grid,
    .team-grid,
    .contact-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid.reverse .mission-visual { order: 0; }

    .about-grid, .split-grid { gap: 48px; }

    .export-grid { grid-template-columns: 1fr; gap: 30px; }
    .export-cards { grid-template-columns: 1fr; }

    .footer-main { grid-template-columns: 1fr 1fr; }

    .section { padding: 90px 0; }
}

@media (max-width: 640px) {

    :root { --container: min(1240px, calc(100% - 32px)); }

    .section { padding: 72px 0; }

    .hero-content { padding: 110px 0 70px; }

    .business-card { padding: 34px 26px; }

    .footer-main { grid-template-columns: 1fr; gap: 36px; }

    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 22px; }

    .cookie-actions { flex-direction: column; }

    .cookie-actions .btn,
    .cookie-actions .btn-text { width: 100%; justify-content: center; }
}
