/* Custom Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Oswald:wght@500;700&family=Big+Shoulders+Display:wght@700;900&display=swap');

:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Big Shoulders Display', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}



.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    filter: brightness(0.4) contrast(1.1);
    transform: scale(1.1);
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes logoPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.2)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
}

.hero-logo-large {
    height: auto;
    max-height: 300px;
    width: auto;
    max-width: 100%;
    animation: logoPulse 5s ease-in-out infinite;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.hero-content {
    max-width: 1200px;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent);
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Sections */
section {
    padding: 10rem 0;
}

.section-header {
    margin-bottom: 6rem;
}

.section-tag {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 4rem;
    line-height: 1;
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.info-image-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s, border-color 0.4s;
}

.info-image-grid img.img-contain {
    object-fit: contain;
    background: #000;
}

.info-image-grid img:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

@media (min-width: 768px) {
    .info-image-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 100%;
    }
    
    .info-image-grid img {
        height: 300px;
    }
}

/* Design Section (Reparto Progettazione) */
.design-section {
    background: var(--secondary);
    position: relative;
}

.design-grid {
    display: grid;
    grid-template-cols: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.design-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 12px;
    backdrop-filter: blur(20px);
}

.design-card h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.design-features {
    list-style: none;
    margin-top: 3rem;
}

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

.design-features li i {
    color: var(--accent);
    font-size: 1.2rem;
}

.design-image {
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
}

.design-main-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.1));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-main-image:hover {
    transform: scale(1.05) rotateY(-5deg);
    filter: drop-shadow(0 0 50px rgba(245, 158, 11, 0.3));
    border-color: var(--accent);
}

/* Product Gallery */
.gallery-grid {
    display: grid;
    grid-template-cols: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 450px;
    group;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Certifications */
.certs {
    padding: 5rem 0;
    background: #000;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.certs-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 1;
    transition: transform 0.3s;
}

.certs-flex img {
    height: 180px;
    width: auto;
    transition: transform 0.3s;
}

.certs-flex img:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-text p {
    font-size: 2rem;
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 700;
}

.contact-text a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

@media (max-width: 992px) {
    section {
        padding: 5rem 0;
    }

    .info-grid, .design-grid, .contact-grid {
        grid-template-cols: 1fr;
        gap: 3rem;
    }
    
    .hero-main {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-logo-large {
        height: 180px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }

    .design-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-logo-large {
        max-height: 150px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 0;
    }

    .contact-text p {
        font-size: 1.5rem;
    }

    .info-image-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .info-image-grid img {
        height: 150px;
    }

    .product-card {
        height: 320px;
    }

    .certs-flex {
        flex-direction: column;
        gap: 3rem;
    }

    .certs-flex img {
        height: 120px;
    }

    .hero-tag {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
}
