:root {
    --blue: #1f3855;
    --blue-dark: #122133;
    --blue-light: #2b4f7a;
    --orange: #E97537;
    --orange-hover: #f08953;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    --card-bg: #ffffff;
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(31, 56, 85, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--blue-dark);
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: 4rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.section-desc { font-size: 1.1rem; color: var(--text-muted); }

p { margin-bottom: 1rem; }

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

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

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

.text-center { text-align: center; }
.section { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--orange-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 117, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--blue);
    transform: translateY(-3px);
}

.btn-windows svg { color: #00a4ef; }
.btn-mac svg { color: #fff; }

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo img {
    height: 44px;
    max-width: 150px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--blue-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-gradient);
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero h1 {
    color: white;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 60%);
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--blue-light) 0%, transparent 60%);
    bottom: -200px;
    left: -200px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* About Section */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--orange);
    margin: 0 auto;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.glass-section {
    position: relative;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 300px;
    height: 250px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: var(--glass-border);
}

.item-large {
    flex: 2 1 calc(66.666% - 1.5rem);
}
.item-wide {
    flex: 2 1 calc(66.666% - 1.5rem);
}

@media (max-width: 768px) {
    .gallery-item, .item-large, .item-wide {
        flex: 1 1 100%;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Utilities */
.mt-3 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

/* Contatti Section */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}
.contact-info {
    font-size: 1.1rem;
}
.contact-info h3 { margin-top: 1.5rem; }
.contact-info h3:first-child { margin-top: 0; }
.map-container {
    margin-top: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.linkedin-btn:hover {
    background: var(--blue-light);
    color: white;
    transform: translateY(-3px);
}
.contact-form-container {
    background: var(--bg-main);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.form-group label {
    font-weight: 600;
    color: var(--blue-dark);
}
.form-group input, .form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(233,117,55,0.1);
}
.captcha-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.captcha-box input {
    width: 80px;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contatti-grid { grid-template-columns: 1fr; }
}

/* Remote Assistance Section */
.remote {
    position: relative;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="%231f3855" fill-opacity="0.05"/></svg>');
}

.download-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

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

.file-info {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--blue-dark);
    color: var(--text-main);
    padding-top: 3rem;
    border-top: 5px solid var(--orange);
}

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

.logo-text-footer {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    max-width: 300px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 2px;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .mobile-menu-btn { display: flex; }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    
    .hero-actions { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; }
}

/* Animations JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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