﻿:root {
    --primary: #007AFF;
    --primary-dark: #0056B3;
    --bg-dark: #0D0D0D;
    --bg-surface: #1A1A1B;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent: #FFB400;
    --glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

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

/* Header & Nav */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* Altezza ottimale per l'header row */
    width: 280px; /* Sviluppo orizzontale */
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 0 15px rgba(0,122,255,0.4));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo img:hover {
    transform: scale(1.02);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-glass);
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-switcher a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.6;
}

.lang-switcher a.active, .lang-switcher a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../assets/images/hero.webp') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13, 13, 13, 0.9) 30%, rgba(13, 13, 13, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

h1 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 .highlight {
    color: var(--primary);
    background: linear-gradient(to bottom right, var(--primary), #8E2DE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-glass);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.btn-outline:hover {
    background: var(--glass);
}

/* Features */
#features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -100px;
    position: relative;
    z-index: 20;
    padding-bottom: 5rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-head);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Split Section */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 2rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    display: inline-block;
}

.image-placeholder {
    height: 400px;
    background: linear-gradient(45deg, #1a1a1b, #2a2a2b);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.glass-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

/* Inner Page Specifics */
.inner-page header {
    background: rgba(13, 13, 13, 0.9);
}

.page-hero {
    padding: 16rem 0 8rem;
    background: linear-gradient(rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0.95)), url('../assets/images/hero.webp') no-repeat center center/cover;
    border-bottom: 1px solid var(--border-glass);
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    background: var(--glass);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--primary);
}

.stat-item .label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Product Items */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 5rem 2rem;
}

.product-item {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: background 0.3s;
}

.product-item:hover {
    background: #252526;
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Machinery */
.skiving-box {
    background: linear-gradient(135deg, #1a1a1b 0%, #0d0d0d 100%);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--primary);
    margin: 5rem 0;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
    text-align: left;
}

.check-list li {
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 1rem;
    font-weight: 800;
}

.machinery-card {
    background: var(--glass);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    text-align: left;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding: 5rem 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.info-card {
    margin-bottom: 2rem;
    text-align: left;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Reveal Animation Setup */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Footer */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-glass);
    background: #050505;
}

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

footer h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-head);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.toggle .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}
.hamburger.toggle .line2 {
    opacity: 0;
}
.hamburger.toggle .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(10, 10, 11, 0.98);
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }
    
    .nav-links.mobile-active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }

    .lang-switcher {
        margin-left: auto; margin-right: 1rem; padding-left: 0; border-left: none;
    }

    .split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .logo img { width: 200px; height: 60px; }
}


