/* ==========================================================================
   DESIGN SYSTEM & SETUP (Local People Lab)
   ========================================================================== */

:root {
    /* Tavolozza Colori (HSL per massima omogeneità) */
    --bg-dark: 222 47% 6%;         /* Slate 950 - Sfondo scuro profondo */
    --bg-card: 222 47% 10%;        /* Slate 900 - Sfondo card */
    --text-primary: 210 40% 98%;   /* Bianco ghiaccio */
    --text-muted: 215 20% 65%;     /* Grigio freddo chiaro */
    
    --color-primary: 239 84% 67%;  /* Indigo 500 - Viola elettrico */
    --color-cyan: 188 86% 53%;     /* Cyan 500 - Ciano brillante */
    --color-pink: 322 81% 54%;     /* Pink 500 - Accento rosa */
    --color-green: 142 71% 45%;    /* Green 500 - Verde success */
    
    --border-glass: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(15, 23, 42, 0.65);
    
    /* Font */
    --font-titles: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transizioni */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   DECORATIVE GLOW BACKGROUNDS (Stripe/Linear Effect)
   ========================================================================== */

.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, hsl(var(--color-primary)) 0%, transparent 80%);
}

.bg-glow-2 {
    top: 50%;
    left: -150px;
    background: radial-gradient(circle, hsl(var(--color-cyan)) 0%, transparent 80%);
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.15) translate(40px, -20px); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-20px, 40px); opacity: 0.12; }
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.bg-dark-subtle {
    background-color: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: hsl(var(--text-muted));
    font-size: 1.125rem;
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASS
   ========================================================================== */

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--color-primary)) 0%, hsl(var(--color-primary) / 0.8) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, hsl(var(--color-primary) / 0.9) 0%, hsl(var(--color-primary)) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--text-primary));
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--color-primary)) 0%, hsl(var(--color-cyan)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.navbar-container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.logo-text-gradient {
    background: linear-gradient(135deg, #fff 0%, hsl(var(--color-cyan)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--text-primary));
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: hsl(var(--text-primary));
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

.hero-section {
    padding: 160px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-new {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: hsl(var(--color-primary));
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-family: var(--font-titles);
}

.hero-title {
    font-family: var(--font-titles);
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: hsl(var(--text-muted));
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Dashboard Preview Visualizer */
.dashboard-preview {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.db-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.db-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    font-family: var(--font-titles);
}

.db-body {
    padding: 24px;
}

.db-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.db-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-titles);
}

.stat-value.text-green {
    color: #10b981;
}

.db-flow-visual {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.flow-node.highlight .flow-icon {
    background: rgba(99, 102, 241, 0.15);
    border-color: hsl(var(--color-primary));
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    animation: nodePulse 2s infinite alternate ease-in-out;
}

@keyframes nodePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.flow-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.flow-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

.flow-connector {
    flex: 0.5;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    margin: 0 8px;
}

.flow-line-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, hsl(var(--color-cyan)), transparent);
    animation: flowGlow 2.5s infinite linear;
}

@keyframes flowGlow {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* ==========================================================================
   CHI SIAMO / MODELLO
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.about-card {
    padding: 40px;
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.about-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-primary));
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-title {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-text {
    color: hsl(var(--text-muted));
    font-size: 0.975rem;
    line-height: 1.7;
}

.philosophy-box {
    margin-top: 40px;
    padding: 32px 40px;
    border-left: 4px solid hsl(var(--color-cyan));
}

.philosophy-title {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.philosophy-text {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   SERVIZI
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px 24px;
    text-align: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon-wrapper.purple {
    background: rgba(99, 102, 241, 0.1);
    color: hsl(var(--color-primary));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.service-icon-wrapper.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: hsl(var(--color-cyan));
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.service-icon-wrapper.pink {
    background: rgba(236, 72, 153, 0.1);
    color: hsl(var(--color-pink));
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.service-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.service-card:hover .service-icon-wrapper.purple { background-color: hsl(var(--color-primary)); color: #fff; }
.service-card:hover .service-icon-wrapper.cyan { background-color: hsl(var(--color-cyan)); color: #000; }
.service-card:hover .service-icon-wrapper.pink { background-color: hsl(var(--color-pink)); color: #fff; }
.service-card:hover .service-icon-wrapper.green { background-color: #10b981; color: #fff; }

.service-title {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-description {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   PROGETTO PILOTA / CASO STUDIO
   ========================================================================== */

.case-study {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 56px;
    align-items: center;
}

.case-study-tag {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: hsl(var(--color-cyan));
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.case-study-title {
    font-family: var(--font-titles);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.case-study-text {
    color: hsl(var(--text-muted));
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.case-study-features {
    list-style: none;
}

.case-study-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: hsl(var(--text-muted));
    line-height: 1.6;
}

.case-study-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: hsl(var(--color-cyan));
    font-weight: bold;
}

.case-study-features li strong {
    color: hsl(var(--text-primary));
}

/* App Mockup Visualizer */
.app-mockup {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.95);
    border-radius: 12px;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-domain {
    font-size: 0.65rem;
    color: hsl(var(--text-muted));
    margin-left: 12px;
    font-family: var(--font-body);
}

.mockup-body {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    height: 250px;
}

.mockup-sidebar {
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--border-glass);
    padding: 16px 12px;
    font-size: 0.7rem;
}

.mockup-logo {
    font-weight: 700;
    margin-bottom: 24px;
    color: hsl(var(--text-primary));
}

.mockup-nav-item {
    padding: 6px 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: hsl(var(--text-muted));
}

.mockup-nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: hsl(var(--color-primary));
    font-weight: bold;
}

.mockup-main {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.mockup-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.mockup-title-bar h4 {
    font-size: 0.8rem;
    font-family: var(--font-titles);
}

.user-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: hsl(var(--text-muted));
}

.mockup-calendar-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px;
    flex-grow: 1;
}

.cal-header {
    font-size: 0.65rem;
    color: hsl(var(--color-primary));
    font-weight: 600;
    margin-bottom: 8px;
}

.appointment-item {
    font-size: 0.65rem;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.appointment-item.active {
    background: rgba(6, 182, 212, 0.05);
}

.app-time {
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.app-patient {
    color: hsl(var(--text-muted));
    margin-left: 6px;
    flex-grow: 1;
}

.app-status {
    font-size: 0.55rem;
}

/* Audio waves mock-up */
.audio-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 12px;
    margin-top: 10px;
}

.audio-waves span {
    display: block;
    width: 2px;
    height: 100%;
    background-color: hsl(var(--color-cyan));
    animation: bounceWave 1.2s infinite ease-in-out;
}

.audio-waves span:nth-child(2) { animation-delay: 0.2s; }
.audio-waves span:nth-child(3) { animation-delay: 0.4s; }
.audio-waves span:nth-child(4) { animation-delay: 0.1s; }
.audio-waves span:nth-child(5) { animation-delay: 0.3s; }

@keyframes bounceWave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* ==========================================================================
   TECH STACK
   ========================================================================== */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stack-item {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
    cursor: default;
}

.stack-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.02);
    transform: scale(1.02);
}

.stack-logo-wrapper {
    font-size: 1.75rem;
}

.stack-item span {
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1rem;
}

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

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
    min-height: 24px;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

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

.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(10, 16, 28, 0.8);
    padding: 60px 0 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-desc {
    color: hsl(var(--text-muted));
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    color: hsl(var(--text-muted));
    font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .case-study {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    
    .case-study-visual {
        justify-content: center;
        display: flex;
    }
    
    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-wrapper {
        padding: 24px;
    }
    
    /* Mobile Menu Navbar */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background: hsl(var(--bg-dark));
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-glass);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-cta {
        display: none; /* Nascondiamo la CTA principale o la integriamo */
    }
    
    .footer-container {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stack-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stack-item {
        padding: 16px;
        gap: 12px;
    }
    
    .stack-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .db-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .db-body {
        padding: 16px;
    }
    
    .db-flow-visual {
        padding: 16px 8px;
    }
    
    .flow-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .flow-label {
        font-size: 0.65rem;
    }
    
    .stack-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ANIMAZIONI DI COMPARSA ALLO SCROLL (Intersection Observer)
   ========================================================================== */

.about-card, .service-card, .case-study, .stack-item, .contact-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.about-card.visible, .service-card.visible, .case-study.visible, .stack-item.visible, .contact-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

