/* ==========================================
   CANONITY - DEFINITIVE PROFESSIONAL STYLE
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    --primary: #4285f4;
    --text-main: #0a0b10;
    --text-sec: #505565;
    --bg-white: #ffffff;
    --bg-alt: #f8f9fc;
    --bg-pillars: linear-gradient(135deg, rgba(66,133,244,0.08) 0%, rgba(155,81,224,0.08) 100%);
    --bg-footer: #0a0b10; 
    --border: rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background: var(--bg-white); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a:not(.btn):not(.nav-cart) {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-menu > li > a:not(.btn):not(.nav-cart):hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
.lang-menu {
    position: relative;
}

.lang-switcher {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f4ff;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s;
}

.lang-button:hover {
    background: #e3ebff;
    border-color: var(--primary);
}

.lang-icon {
    font-size: 1rem;
}

.lang-code {
    font-weight: 700;
}

.lang-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s;
}

.lang-dropdown a:hover {
    background: #f8f9fc;
    color: var(--text-main);
}

.lang-dropdown a.active {
    background: #f0f4ff;
    color: var(--primary);
    font-weight: 600;
}

.lang-flag {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-sec);
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================
   CART
   ========================================== */
.cart-link {
    position: relative;
}

.nav-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-sec);
    transition: all 0.2s;
}

.nav-cart:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
}

.cart-counter {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ea4335;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==========================================
   USER MENU
   ========================================== */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: #f0f4ff;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s;
}

.user-button:hover {
    background: #e3ebff;
    border-color: var(--primary);
}

.user-button img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-initial {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* User Dropdown */
.user-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu .dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s;
}

.user-menu .dropdown-menu a:hover {
    background: #f8f9fc;
    color: var(--text-main);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.user-menu .dropdown-menu a[href*="logout"] {
    color: #ea4335;
}

.user-menu .dropdown-menu a[href*="logout"]:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Login Button */
.nav-menu .btn-outline {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
}

.nav-menu .btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION (con 3 pilastri integrati)
   ========================================== */
.hero {
    padding: 100px 0 80px;
    background: var(--bg-white);
    background-image: radial-gradient(circle at 90% 10%, rgba(66,133,244,0.05), transparent);
    overflow: hidden;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #4285f4, #9b51e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-sec);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================
   HERO PILLARS (3 pilastri blu integrati)
   ========================================== */
.hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 10;
    background: var(--bg-white);
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.pillar-card {
    padding: 36px 32px;
    background: linear-gradient(135deg, #4285f4 0%, #5a9cf5 100%);
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 12px 40px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 11;
}

/* Effetto shine decorativo */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(66, 133, 244, 0.4);
}

/* Variante viola per il secondo */
.pillar-card:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #8b5cf6 100%);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.pillar-card:nth-child(2):hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

/* Variante indaco per il terzo */
.pillar-card:nth-child(3) {
    background: linear-gradient(135deg, #9b51e0 0%, #c084fc 100%);
    box-shadow: 0 12px 40px rgba(155, 81, 224, 0.3);
}

.pillar-card:nth-child(3):hover {
    box-shadow: 0 20px 60px rgba(155, 81, 224, 0.4);
}

.pillar-card h3 {
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    position: relative;
}

.pillar-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

/* Icona decorativa opzionale */
.pillar-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   VALUE PROPOSITION SECTION
   ========================================== */
.value-proposition {
    padding: 100px 0;
    background: var(--bg-white);
}

.value-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-image {
    flex: 0 0 auto;
    max-width: 400px;
}

.value-image img {
    width: 100%;
    max-height: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.value-content {
    flex: 1;
    min-width: 0;
}

.value-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
}

.value-content p {
    font-size: 1.1rem;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 32px;
}

.value-content .btn {
    display: inline-block;
}

/* ==========================================
   DEEP DIVE SECTION
   ========================================== */
.deep-dive {
    padding: 100px 0;
    background: var(--bg-white);
}

.deep-dive .section-title {
    margin-bottom: 20px;
}

.deep-dive-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.deep-dive-section {
    max-width: 900px;
    margin: 0 auto 32px;
    background: var(--bg-alt);
    padding: 40px 48px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.deep-dive-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.deep-dive-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.deep-dive-section p {
    font-size: 1.1rem;
    color: var(--text-sec);
    line-height: 1.8;
    margin: 0;
}

.deep-dive-benefits {
    max-width: 900px;
    margin: 48px auto 48px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    padding: 48px;
    border-radius: 20px;
    border: 2px solid rgba(66, 133, 244, 0.2);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
}

.deep-dive-benefits h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 28px;
    text-align: center;
}

.deep-dive-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deep-dive-benefits li {
    padding: 14px 0 14px 40px;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.7;
    position: relative;
    font-weight: 500;
}

.deep-dive-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.deep-dive-closing {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #4285f4 0%, #667eea 50%, #9b51e0 100%);
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.3);
}

.deep-dive-closing p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin: 8px 0;
    line-height: 1.4;
}

.deep-dive-closing p:last-child {
    font-size: 1.8rem;
    margin-top: 16px;
}

/* ==========================================
   FEATURES SECTION (Casi d'uso - sfondo BIANCO)
   ========================================== */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-sec);
    max-width: 700px;
    margin: -40px auto 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-alt);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 14px 0;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-sec);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   DETAILED FEATURES (Sezioni alternate)
   Ordine: Grigio → Bianco → Grigio
   ========================================== */
.detailed-feature {
    padding: 100px 0;
    background: var(--bg-alt); /* Default grigio */
}

.detailed-feature:nth-of-type(2n) {
    background: var(--bg-white); /* Pari = bianco */
}

.feature-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-flex.layout-reverse {
    flex-direction: row-reverse;
}

.feature-image,
.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-sec);
    margin: 0 0 28px 0;
}

.feature-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}

.workflow-mockup {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ==========================================
   FAQ SECTION (sfondo BIANCO)
   ========================================== */
.faq-section {
    background: var(--bg-white);
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
}

.faq-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-question span {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-sec);
    line-height: 1.7;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ==========================================
   CTA SECTION (gradiente finale)
   ========================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #4285f4 0%, #667eea 50%, #9b51e0 100%);
    text-align: center;
}

.cta-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px 0;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-footer);
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-legal-links span {
    opacity: 0.5;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom p a {
    color: white;
    font-weight: 600;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #3574e0;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: white;
        padding: 1rem;
        border-top: 1px solid var(--border);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a:not(.btn):not(.nav-cart) {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Language switcher mobile */
    .lang-switcher {
        width: 100%;
    }

    .lang-button {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        border-radius: 12px;
    }

    .lang-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .lang-switcher.open .lang-dropdown {
        display: block;
    }

    /* User menu mobile */
    .user-menu {
        width: 100%;
    }

    .user-button {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }

    .user-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .user-menu.open .dropdown-menu {
        display: block;
    }

    /* Cart mobile */
    .cart-link {
        width: 100%;
    }

    .nav-cart {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 12px;
        gap: 10px;
    }

    .nav-cart::after {
        content: 'Carrello';
        font-weight: 500;
    }

    /* Hero */
    .hero-top {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Hero Pillars */
    .hero-pillars {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillar-card {
        padding: 28px 24px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Detailed features */
    .feature-flex,
    .feature-flex.layout-reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-text h2 {
        font-size: 2rem;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   WORKFLOW VISUALIZER (optional extra)
   ========================================== */
.workflow-visualizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: rgba(66,133,244,0.05);
    border-radius: 30px;
    border: 1px dashed var(--primary);
}

.node {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-family: monospace;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.connector {
    width: 2px;
    height: 30px;
    background: var(--primary);
    opacity: 0.3;
}}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 768px) {
    .value-flex {
        flex-direction: column;
        gap: 40px;
    }

    .value-image {
        max-width: 100%;
    }

    .value-content h2 {
        font-size: 1.75rem;
    }

    .deep-dive {
        padding: 60px 0;
    }

    .deep-dive-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .deep-dive-section {
        padding: 28px 24px;
        margin-bottom: 24px;
    }

    .deep-dive-section h3 {
        font-size: 1.5rem;
    }

    .deep-dive-section p {
        font-size: 1rem;
    }

    .deep-dive-benefits {
        padding: 32px 24px;
        margin: 32px auto;
    }

    .deep-dive-benefits h3 {
        font-size: 1.4rem;
    }

    .deep-dive-benefits li {
        font-size: 1rem;
        padding-left: 32px;
    }

    .deep-dive-closing {
        padding: 32px 24px;
    }

    .deep-dive-closing p {
        font-size: 1.2rem;
    }

    .deep-dive-closing p:last-child {
        font-size: 1.35rem;
    }
}
