:root {
    /* OSItalia Brand Colors */
    --os-gold: #FCB900;
    --os-black: #000000;
    --os-white: #FFFFFF;
    --os-gray-100: #F8F9FA;
    --os-gray-200: #E9ECEF;
    --os-gray-600: #6C757D;
    --os-gray-800: #343A40;
    --os-gray-900: #212529;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--os-gold) !important;
    border-color: var(--os-gold) !important;
    color: var(--os-black) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #E5A700 !important;
    border-color: #E5A700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 185, 0, 0.3);
}

.btn-outline-primary {
    border-color: var(--os-gold) !important;
    color: var(--os-black) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--os-gold) !important;
    border-color: var(--os-gold) !important;
}

.text-primary {
    color: var(--os-gold) !important;
}

.bg-primary {
    background-color: var(--os-gold) !important;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--os-gray-800);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--os-black);
    line-height: 1.2;
}

/* Navbar Styling */
.navbar {
    padding: 1px 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--os-gray-800) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--os-gold) !important;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--os-white) 0%, var(--os-gray-100) 100%);
    position: relative;
    overflow: hidden;
}

/* Hero V2 with background image */
.hero-v2 {
    padding: 50px 0 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.95) 100%), url('../images/saas/home-shape.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(252, 185, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--os-black);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--os-gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--os-gray-600);
}

/* Value Cards */
.value-card {
    background: var(--os-white);
    border-radius: 1rem;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--os-gray-200);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--os-gold);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(252, 185, 0, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--os-gold);
    margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-card {
    background: var(--os-white);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--os-gray-200);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--os-black);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--os-gold);
    margin-bottom: 1rem;
}

/* Metric Cards */
.metric-card {
    background: var(--os-white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--os-gray-200);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--os-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.metric-icon {
    font-size: 2rem;
    color: var(--os-gold);
    margin-bottom: 1rem;
}

.metric-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--os-gray-600);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--os-black);
}

/* Vertical Cards */
.vertical-card {
    background: var(--os-white);
    border-radius: 1rem;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--os-gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vertical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--os-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vertical-card:hover::before {
    transform: scaleX(1);
}

.vertical-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.vertical-icon {
    font-size: 2.5rem;
    color: var(--os-gold);
    margin-bottom: 1.5rem;
}

/* Consultancy Section */
.consultancy-section {
    background: var(--os-gray-100);
}

.quote-box {
    background: var(--os-white);
    border-left: 4px solid var(--os-gold);
    padding: 2rem;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--os-gray-800);
}

.comparison-card {
    background: var(--os-white);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

.comparison-card.highlight {
    border: 2px solid var(--os-gold);
    position: relative;
}

.comparison-card.highlight::after {
    content: 'OSITALIA';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--os-gold);
    color: var(--os-black);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1rem;
}

/* ERP Section */
.erp-visual {
    background: var(--os-gray-100);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}

.erp-box {
    background: var(--os-white);
    border: 2px solid var(--os-gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    display: inline-block;
    font-weight: 600;
}

.erp-box.primary {
    background: var(--os-black);
    color: var(--os-white);
    border-color: var(--os-black);
}

.erp-arrow {
    color: var(--os-gold);
    font-size: 2rem;
    margin: 0 1rem;
}

/* Form Styling */
.form-control {
    border: 1px solid var(--os-gray-200);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--os-gold);
    box-shadow: 0 0 0 0.2rem rgba(252, 185, 0, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--os-gray-800);
}

/* Footer */
footer {
    background: var(--os-black) !important;
}

footer .text-primary {
    color: var(--os-gold) !important;
}

/* Pipeline Stages */
.pipeline-stage {
    text-align: center;
    min-width: 100px;
}

.stage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--os-white);
    margin: 0 auto 0.75rem;
}

.stage-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--os-gray-800);
}

/* Integration Cards */
.integration-card {
    background: var(--os-white);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.integration-card:hover {
    border-color: var(--os-gold) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.integration-logo {
    color: var(--os-gold);
}

/* Utility Classes */
.bg-light-custom {
    background: var(--os-gray-100);
}

.text-gold {
    color: var(--os-gold);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .value-card,
    .vertical-card {
        padding: 1.5rem;
    }
}
