/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Colors */
    --bg-main: #0B0F19;
    --bg-secondary: #131A2A;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    
    --accent-primary: #3B82F6; /* Tech Blue */
    --accent-primary-hover: #2563EB;
    --accent-secondary: #8B5CF6; /* Purple Glow */
    --accent-danger: #EF4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(19, 26, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   UTILITIES
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.subtitle {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text-brand {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo-text-brand:hover {
    transform: scale(1.05);
}

.logo-text-brand .m-icon {
    color: #EF4444; /* Vibrant Red M */
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.logo-text-brand .marossi-text {
    color: #F3F4F6;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-left: 0.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

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

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-primary);
}

.glow-2 {
    bottom: 10%;
    right: -10%;
    background: var(--accent-secondary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Visual (Server Status Card) */
.main-card {
    padding: 1.5rem;
    position: relative;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
}

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

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.card-header .title {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    width: 30px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.stat-row .value {
    font-family: monospace;
    font-weight: 600;
}

.stat-row .value.active {
    color: #27C93F;
}

/* =========================================
   FEATURED SERVICE (NOLEGGIO)
   ========================================= */
.featured-service {
    padding: 6rem 0 2rem 0;
    background: var(--bg-main);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.pricing-highlight {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.price-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    flex: 1;
}

.price-box .price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-box .price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-secondary);
    line-height: 1;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: 8rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    padding: 10px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 1.5rem;
    text-align: center;
    border-color: var(--accent-primary);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--accent-primary);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding: 3rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.info-items .item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-items .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-items h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.info-items p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #06090F;
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-text {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h3,
.footer-legal h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-container,
    .about-container,
    .contact-container,
    .featured-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .featured-card {
        padding: 2rem;
    }
    
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}
