/* ============================================
   AI B2B Suite - Landing Page CSS
   ============================================ */

/* Color Palette */
:root {
    --primary-dark: #034386;
    --primary: #0a7df3;
    --primary-light: #10cfdf;
    --accent: #0ff0fb;
    --secondary: #2699fb;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.intro-curtain {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.intro-curtain[hidden] {
    display: none;
}

.intro-curtain__panel {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #031b3d;
}

.intro-curtain__panel--left {
    left: 0;
}

.intro-curtain__panel--right {
    right: 0;
}

.intro-curtain__logo {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: min(90vw, 1200px);
}

.intro-curtain__symbol {
    height: 350px;
    max-height: 40vh;
    max-width: 100%;
    object-fit: contain;
}

.intro-curtain__wordmark {
    width: 90%;
    height: auto;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 3rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    width: 100%;
}
.text-center {
    text-align: center;
}
.mb-3 {
    margin-bottom: 3rem;
}
/* Navigation Bar */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-hero {
    height: 150px;
    width: auto;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    flex: 1;
    justify-content: flex-end;
    margin-right: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    z-index: 110;
    flex-shrink: 0;
}

.hamburger-icon {
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 105;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu-links {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-links li:last-child {
    border-bottom: none;
}

.mobile-menu-links a {
    display: block;
    padding: 16px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-menu-links a:hover {
    background: var(--bg-light);
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: 24px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-content {
        justify-content: space-between;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: calc(100svh - var(--hero-header-height, 80px));
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
}

.hero {
    overflow: hidden;
}

.hero-title__word {
    display: inline-block;
}

.hero-title {
    font-size: 8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-secondary {
    border-color: white;
    color: white;
}

.hero-cta .btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 6rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 5rem;
    margin-bottom: 50px;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 2.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Why AI B2B Suite */
.why-suite {
    background: var(--bg-light);
}

.why-suite__copy,
.integration-suite__copy {
    max-width: 90ch;
    margin: 0 auto;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    text-align: left;
}

/* Business software integration */
.integration-suite {
    background: white;
}

/* Tech Section */
.tech-section {
    background: var(--bg-light);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.tech-text h3 {
    color: var(--primary-dark);
    margin-top: 25px;
}

.tech-text h3:first-child {
    margin-top: 0;
}

.tech-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.mt-4 {
    margin-top: 1.5rem;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.tech-feature {
    background: white;
    padding: 15px;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    color: var(--primary-dark);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.tech-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
}

.tech-box-title {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.tech-box-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item strong {
    color: var(--primary-dark);
}

.tech-item span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tech-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }
}

/* Contact/Form Section */
.contact {
    background: var(--bg-white);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 125, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-light);
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
}

.success-message {
    background: #ecfdf5;
    border: 2px solid var(--success);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.success-message h3 {
    color: var(--success);
    margin-bottom: 10px;
}

.success-message p {
    color: #059669;
    margin: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    /* Navigation Mobile */
    .nav-links {
        display: none !important;
    }
    
    .hamburger-menu {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-text {
        display: none;
    }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 8rem);
}

.hero {
    padding: clamp(24px, 6vh, 80px) 0;
}

.hero .logo-hero {
    height: clamp(60px, 14svh, 150px);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 2.5rem);
    max-width: 65ch;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    nav,
    .hero-cta,
    .contact-form {
        display: none;
    }
}


/* ===== Schema di flusso ===== */
#schema { background: var(--bg-light); }
#schema .lead { text-align: center; color: var(--text-light); margin: -30px auto 40px; max-width: 60ch; }
#schema *, #schema *::before, #schema *::after { box-sizing: border-box; }
#schema .box h2, #schema .core h2 { text-align: left; }
#schema .diagram {
  display: grid;
  grid-template-columns: 1fr 96px 1.5fr 96px 1fr;
  grid-template-areas:
    ".      .     src   .     ."
    ".      .     asrc  .     ."
    "input  ain   core  aout  output";
  align-items: center;
}
#schema .src { grid-area: src; }
#schema .asrc { grid-area: asrc; }
#schema .input { grid-area: input; }
#schema .ain { grid-area: ain; }
#schema .core { grid-area: core; }
#schema .aout { grid-area: aout; }
#schema .output { grid-area: output; }
#schema .box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
#schema .box h2 { font-size: 1.05rem; font-weight: 700; margin: 12px 0 4px; }
#schema .box p { font-size: .88rem; color: var(--text-light); }
#schema .icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
}
#schema .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#schema .input { border-top: 4px solid var(--primary-light); }
#schema .input .icon { background: rgba(16, 207, 223, .14); color: var(--primary-dark); }
#schema .output-stack { display: grid; gap: 16px; }
#schema .output-stack .box { border-top: 4px solid var(--success); }
#schema .output-stack .icon { background: rgba(16, 185, 129, .13); color: #0b7d59; }
#schema .src {
  background: var(--bg-white);
  border: 1.5px dashed var(--secondary);
  border-radius: 14px;
  padding: 16px 18px 18px;
}
#schema .src-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--primary-dark);
  margin-bottom: 12px;
}
#schema .src-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#schema .src-head span { font-weight: 500; color: var(--text-light); font-size: .85rem; }
#schema .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#schema .chip {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
}
#schema .chip b { display: block; font-size: .95rem; color: var(--primary-dark); }
#schema .chip small { font-size: .78rem; color: var(--text-light); }
#schema .arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--primary); }
#schema .arrow svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#schema .arrow .h { width: 64px; height: 24px; }
#schema .arrow .v { width: 24px; height: 56px; display: none; }
#schema .arrow em { font-style: normal; font-size: .78rem; font-weight: 700; }
#schema .ain { color: var(--primary-light); }
#schema .aout { color: var(--success); }
#schema .asrc { color: var(--secondary); padding: 6px 0; }
#schema .asrc .h { display: none; }
#schema .asrc .v { display: block; stroke-dasharray: 5 5; }
#schema .asrc svg path.head { stroke-dasharray: none; }
#schema .core {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(15, 240, 251, .35);
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: center;
}
#schema .core h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; color:white; }
#schema .core .sub { color: rgba(255,255,255,.8); font-size: .92rem; margin: 2px 0 22px; }
#schema .steps { display: grid; gap: 10px; }
#schema .step {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
}
#schema .step b { display: block; font-weight: 700; }
#schema .step span { color: rgba(255,255,255,.78); font-size: .82rem; }
#schema .legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; font-size: .85rem; color: var(--text-light); }
#schema .legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 8px; }
#schema .legend .l1 { border-color: var(--primary-light); }
#schema .legend .l2 { border-color: var(--secondary); border-top-style: dashed; }
#schema .legend .l3 { border-color: var(--success); }
@media (max-width: 860px) {
    #schema .diagram {
    grid-template-columns: 1fr;
    grid-template-areas: "input" "ain" "src" "asrc" "core" "aout" "output";
    row-gap: 4px;
  }
    #schema .arrow .h { display: none; }
    #schema .arrow .v { display: block; }
    #schema .chips { grid-template-columns: 1fr; }
    #schema .core h2 { font-size: 1.6rem; }
}

/* Bilingual navigation and editorial pages */
.nav-content {
    gap: 20px;
}

.nav-links {
    gap: 20px;
    margin-right: 0;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.language-switch a {
    padding: 6px 4px;
    color: var(--text-dark);
}

.language-switch a[aria-current="page"] {
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.copyright,
.footer-bottom a {
    color: white;
}

.article-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.article-hero h1 {
    max-width: 900px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.article-hero .eyebrow,
.article-hero .article-lead {
    color: white;
    max-width: 750px;
}

.eyebrow {
    font-weight: 600;
}

.article-lead {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.article-hero .btn-primary {
    background: white;
    color: var(--primary-dark);
}

.article-content,
.legal-content {
    max-width: 940px;
    margin: 50px auto;
    overflow-wrap: break-word;
}

.article-content section,
.legal-content section {
    padding: 25px 0;
    scroll-margin-top: 100px;
}

.article-content h2,
.legal-content h1,
.legal-content h2,
.legal-content h3 {
    color: var(--primary-dark);
}

.article-content ol,
.legal-content ul,
.legal-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.article-content li,
.legal-content li {
    color: var(--text-light);
    margin-bottom: 12px;
}

.article-toc,
.legal-content .toc {
    padding: 25px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
}

.article-toc h2 {
    font-size: 1.3rem;
}

.article-toc ol {
    margin-bottom: 0;
}

.article-requirements li {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 6px;
    margin: 8px;
}

.article-conclusion {
    margin-top: 20px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 12px;
    border-top: 4px solid var(--success);
    box-shadow: var(--shadow);
}

.article-home-link {
    display: inline-block;
    margin: 15px;
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 25px;
    background: var(--bg-light);
}

@media (max-width: 1100px) {
    .nav-links {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
    }

    .nav-content > .language-switch {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .nav-content {
        gap: 12px;
    }

    .article-hero {
        padding: 45px 0;
    }

    .article-conclusion {
        padding: 20px;
    }
}
