:root {
    --primary-color: #c0ff00; /* Ohvale Neon Green */
    --primary-dark: #a0d800;
    --bg-dark: #000000;
    --bg-darker: #111111;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.accent-text {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(192, 255, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: #000;
}

.link-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.link-btn:hover {
    gap: 12px;
    color: var(--text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: #000000;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.logo img {
    height: 35px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.multiline-link {
    flex-direction: column;
    text-align: center;
    line-height: 1.1;
    justify-content: center;
}

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

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px 0;
        border-top: 2px solid var(--primary-color);
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
    
    .multiline-link {
        flex-direction: row;
        gap: 10px;
    }
}

/* Lang selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #fff;
}

.flag-icon {
    width: 25px;
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 50px;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.hero-line {
    flex: 1;
    height: 3px;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.hero-text-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.italian-flag {
    display: flex;
    width: 90%;
    height: 8px;
    margin-bottom: 10px;
}

.flag-green { background-color: #009246; flex: 1; }
.flag-white { background-color: #ffffff; flex: 1; }
.flag-red { background-color: #ce2b37; flex: 1; }

.hero-text-block h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    font-weight: 500;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-family: 'Oswald', var(--font-heading);
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Models Section */
.models {
    background-color: var(--bg-darker);
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.model-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-image {
    height: 250px;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-info {
    padding: 30px;
}

.model-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.model-info p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 255, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #000;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* About Section */
.about {
    background-color: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.oracing-logo {
    max-width: 200px;
    margin-top: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

/* Footer */
footer {
    background-color: #050505;
    padding-top: 80px;
    border-top: 1px solid #222;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border-radius: 50%;
    color: var(--text-light);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #000;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col > a, .footer-col > p {
    display: block;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.footer-col > a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 15px;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none; 
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.wide, .gallery-item.large {
        grid-column: span 1;
    }
}

/* Company Page Hero - 3/4 height */
.hero--company {
    min-height: 75vh;
}

/* Company Page Styles */
.company-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.company-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
}

.company-grid.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.company-text p {
    font-size: 1.05rem;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

.company-text ul {
    list-style-type: none;
    padding-left: 0;
    color: #cccccc;
}

.company-text ul li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    position: relative;
    padding-left: 15px;
    line-height: 1.6;
}

.company-text ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #cccccc;
}

.company-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.company-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.company-wide-image {
    width: 100%;
    max-width: 700px;
    margin: 40px auto 0;
    display: block;
}

.company-wide-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- Modern Footer --- */
.modern-footer {
    background-color: #050505;
    border-top: 2px solid var(--primary-color);
    padding-top: 60px;
    color: var(--text-gray);
}
.footer-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-left {
    flex: 1;
    min-width: 250px;
}
.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    margin-bottom: 15px;
}
.footer-desc {
    line-height: 1.8;
}
.footer-center {
    flex: 1;
    min-width: 250px;
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer-contact-list {
    list-style: none;
    padding: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.footer-contact-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.footer-right {
    flex: 1;
    min-width: 250px;
}
.social-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #111;
    border: 1px solid #222;
    padding: 12px 25px;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-hero-btn i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.social-hero-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(192, 255, 0, 0.08);
    transform: translateY(-3px);
}
.social-hero-btn:hover i {
    color: #fff;
}

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #1a1a1a;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #555;
}

@media (max-width: 992px) {
    .dealer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .dealer-cta {
        text-align: center;
    }
    .social-big {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .company-grid, .company-grid.reverse {
        grid-template-columns: 1fr;
    }
    .social-big {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 576px) {
    .hero-line {
        display: none;
    }
}
