/* ===== VARIABILI ===== */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #818CF8;
    --accent: #A5B4FC;
    --dark: #1E1E1E;
    --dark-gray: #4B5563;
    --light: #F8FAFC;
    --light-gray: #F1F5F9;
    --gradient: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    --glass: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary);
}

.logo-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: var(--radius-sm);
    z-index: -1;
    transition: var(--transition);
}

.logo:hover .logo-highlight {
    opacity: 0.2;
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: var(--transition);
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}
.login-btn {
    background-color: #4c6ef5;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
    background-color: #3b5bdb;
    color: white;
    transform: translateY(-2px);
}

.login-btn::after {
    display: none;
}

.signup-btn {
    background-color: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    margin-left: 10px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.signup-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.signup-btn::after {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}
.logo-img {
    height: 40px;
    /* Regola in base alle tue esigenze */
    width: auto;
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem 2rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    bottom: -200px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

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

.secondary-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    flex: 1;
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device {
    position: relative;
    width: 260px;
    height: 480px;
    background-color: #f8fafc;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 12px solid #ffffff;
    overflow: hidden;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

/* Continuazione del CSS da dove si è interrotto */
.scroll-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.decoration-circle-1 {
    width: 120px;
    height: 120px;
    background: rgba(99, 102, 241, 0.1);
    top: 20%;
    right: 10%;
}

.decoration-circle-2 {
    width: 80px;
    height: 80px;
    background: rgba(129, 140, 248, 0.15);
    bottom: 15%;
    right: 20%;
}

.decoration-circle-3 {
    width: 50px;
    height: 50px;
    background: rgba(165, 180, 252, 0.2);
    top: 60%;
    right: 5%;
}

/* ===== MENU PREVIEW ===== */
.menu-preview {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
}

.menu-preview::-webkit-scrollbar {
    width: 4px;
}

.menu-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.menu-preview::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.menu-preview::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

.menu-logo-section {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mustache {
    width: 48px;
    height: 12px;
    background-color: #000;
    border-radius: 50% 50% 0 0;
    position: relative;
    margin-bottom: 2px;
}

.mustache:before,
.mustache:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
}

.mustache:before {
    left: -5px;
    top: -4px;
    transform: rotate(-30deg);
}

.mustache:after {
    right: -5px;
    top: -4px;
    transform: rotate(30deg);
}

.bufali-text {
    font-size: 24px;
    font-weight: 900;
    color: #ff3b30;
    letter-spacing: 1px;
    line-height: 1;
}

.pizzeria-text {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 5px;
    margin-top: 2px;
}

.menu-sections {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title {
    background-color: #ff5722;
    color: white;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 66px;
    z-index: 9;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: #f9fafb;
    transform: translateX(2px);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 12px;
    color: #1f2937;
}

.item-desc {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.item-price {
    font-weight: 700;
    font-size: 12px;
    color: #1f2937;
    padding-left: 10px;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
}

.decoration-circle-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    top: 50px;
    left: -30px;
    animation: float 7s ease-in-out infinite;
}

.decoration-circle-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    bottom: 30px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.decoration-circle-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.2));
    top: 20px;
    right: 100px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 2rem;
    background-color: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* ===== DEMO SECTION ===== */
/* ===== DEMO SECTION WITH LARGER QR ===== */
.demo {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.demo-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.demo-phone-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 400px;
    flex: 0 0 450px;  /* Non si restringe ma occupa spazio fisso */
}

.demo-label {
    position: relative;
    margin-bottom: 20px;
    color: var(--primary);
    background: transparent;
    padding: 0.5rem 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    text-align: center;
}

.qr-showcase {
    position: relative;
    padding: 30px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    max-width: 100%;
    margin-bottom: 10px;
}

.qr-display {
    display: block;
    width: 100%;
    height: auto;
    max-height: 700px;
    min-height: 450px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.qr-callout {
    position: absolute;
    bottom: -10px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transform: rotate(-2deg);
}

.demo-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--dark);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-button:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-button i {
    font-size: 1.2rem;
}

.features-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.features-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-box {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.5rem;
}

.feature-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature-more {
    font-style: italic;
    background-color: #f1f5f9;
}

.feature-box .feature-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.feature-box span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .demo-phone-container {
        flex: 0 0 400px;
    }
    
    .qr-display {
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .demo-phone-container {
        flex: 0 0 350px;
    }
    
    .qr-display {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .demo-container {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-phone-container {
        min-width: 300px;
        width: 100%;
        max-width: 450px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-display {
        min-height: 300px;
    }
}

/* ===== DONATION SECTION ===== */
.donation {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.donation-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.donation-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.donation-box p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.donate-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    transition: var(--transition);
}

.donate-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
/* ===== PRICING SECTION ===== */
.pricing {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.pricing-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

.pricing-description {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pricing-features li i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1rem;
}

.pricing-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .amount {
        font-size: 2.8rem;
    }
    
    .pricing-features ul {
        padding-left: 1rem;
    }
}

/* ===== BACKEND PREVIEW SECTION ===== */
/* Distinzione desktop/mobile */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Stile per il carosello mobile */
.mobile-carousel {
    width: 100%;
    margin-bottom: 1.5rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.carousel-prev, .carousel-next {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.carousel-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Modifica allo stile delle immagini per mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
        flex-direction: column;
    }
    
    .backend-screens {
        min-height: auto;
        position: relative;
        overflow: visible;
    }
    
    .screen {
        position: relative;
        opacity: 1;
        display: none;
    }
    
    .screen.active {
        display: block;
    }
    
    .screen img {
        max-height: none;
        object-fit: cover;
    }
    
    /* Touch feedback per le immagini */
    .screen img {
        transition: transform 0.3s ease;
    }
    
    .screen img:active {
        transform: scale(0.98);
    }
    
    /* Miglioramenti al testo per mobile */
    .screen-caption {
        padding: 1.2rem 1rem;
    }
    
    .screen-caption h3 {
        font-size: 1.2rem;
    }
    
    .screen-caption p {
        font-size: 0.95rem;
    }
}
.backend-preview {
    padding: 6rem 2rem;
    background-color: #f8fafc;
}

.backend-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.backend-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tab-btn:hover {
    background-color: #e2e8f0;
    color: var(--dark);
}

.tab-btn.active {
    background-color: white;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.backend-screens {
    width: 100%;
    max-width: 1000px;
    position: relative;
    margin-bottom: 3rem;
    min-height: 550px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.backend-screens .screen img {
    max-height: 450px;
    object-fit: contain;
    width: 100%;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.screen.active {
    opacity: 1;
    display: block;
}

.screen img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: block;
}

.screen-caption {
    padding: 1.5rem;
    background-color: white;
    border-top: 1px solid #e2e8f0;
}

.screen-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.screen-caption p {
    color: var(--dark-gray);
    font-size: 1rem;
}

.backend-cta {
    text-align: center;
    margin-top: 2rem;
}

.backend-cta p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
/* Stile migliorato per il pulsante CTA del backend */
.backend-cta {
    text-align: center;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.backend-cta p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-button {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 30px; /* Più arrotondato come i pulsanti di navigazione */
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.cta-subtext {
    font-size: 0.9rem !important;
    margin-top: 0.8rem !important;
    opacity: 0.8;
}

/* Per dispositivi mobili */
@media (max-width: 768px) {
    .backend-tabs {
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .backend-screens {
        min-height: 400px;
    }
}
/* lightbox /*
/* Stile per il lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Indica che le immagini sono cliccabili */
.screen img {
    cursor: zoom-in;
}

/* Aggiunge un piccolo effetto hover alle immagini */
.screen img:hover {
    opacity: 0.95;
    transform: scale(1.01);
}
/* ===== FOOTER ===== */
.footer {
    background: #1e293b;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container {
    background-color: #fff;
    /* Sfondo chiaro per evidenziare il logo */
    padding: 10px;
    /* Spazio intorno al logo */
    border-radius: 5px;
    /* Angoli arrotondati (facoltativo) */
    margin-bottom: 10px;
}

.footer-logo img {
    max-width: 150px;
    /* Regola la dimensione del logo */
    width: 100%;
    height: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
        margin-top: 80px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: white;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        padding: 5rem 2rem;
        gap: 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .demo-container {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
    }

    .login-btn, .signup-btn {
        display: block;
        text-align: center;
    }
    
    .signup-btn {
        margin-left: 0;
    }
}
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .pricing-banner h2 {
        font-size: 1.5rem;
    }
}