:root {
    --graderp-primary: #0066cc;
    --graderp-dark: #1a1a2e;
}

/* ============================================================
   FONT
   ============================================================ */
body {
    font-family: 'Titillium Web', sans-serif;
}

/* ============================================================
   OVERRIDE BOOTSTRAP ITALIA — HEADER
   Bootstrap Italia 2.x imposta background blu primario su
   .it-header-wrapper e .it-header-center-wrapper per default.
   Qui forziamo sfondo bianco con testo scuro per il nostro header.
   ============================================================ */
.it-header-wrapper,
.it-header-center-wrapper,
.it-header-wrapper.bg-white,
.it-header-center-wrapper.bg-white {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
}

/* Logo: testo "GradErp" */
.it-header-wrapper .text-primary,
.it-header-center-wrapper .text-primary {
    color: var(--graderp-primary) !important;
}

/* Sottotitolo logo "GESTIONE GRADUATORIE ERP ON-LINE" */
.it-header-wrapper .text-muted,
.it-header-center-wrapper .text-muted {
    color: #6c757d !important;
}

/* Voci di menu nav */
.it-header-wrapper .nav-link-header,
.it-header-center-wrapper .nav-link-header {
    color: #1a1a2e !important;
}

.it-header-wrapper .nav-link-header:hover,
.it-header-center-wrapper .nav-link-header:hover {
    color: var(--graderp-primary) !important;
}

/* Bottone "Richiedi Demo" nell'header */
.it-header-wrapper .btn-primary,
.it-header-center-wrapper .btn-primary {
    background-color: var(--graderp-primary) !important;
    border-color: var(--graderp-primary) !important;
    color: #ffffff !important;
}

/* Bottone hamburger mobile */
.it-header-wrapper .btn-outline-primary,
.it-header-center-wrapper .btn-outline-primary {
    border-color: var(--graderp-primary) !important;
    color: var(--graderp-primary) !important;
}

/* ---- Header nav link base ---- */
.nav-link-header {
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link-header:hover {
    color: var(--graderp-primary) !important;
}

/* ============================================================
   LOGO ICON
   ============================================================ */
.graderp-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0066cc, #004a9f);
    border-radius: 10px;
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%, #f8faff 100%);
    padding-top: 3rem;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(0,102,204,0.06) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(0,102,204,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================================
   MOCKUP BROWSER
   ============================================================ */
.hero-mockup-browser {
    border: 1px solid #e8edf2;
    background: white;
}

.mockup-titlebar {
    border-bottom: 1px solid #e8edf2;
}

.mockup-url-bar {
    border: 1px solid #e8edf2;
    font-size: 0.7rem;
}

.dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex-shrink: 0;
}

.mockup-step {
    border: 1px solid #e0e9f5;
    background: #f7fbff;
    font-size: 0.6rem;
    color: #6b7e96;
    transition: all 0.2s;
}

.mockup-step.active {
    background: var(--graderp-primary);
    border-color: var(--graderp-primary);
    color: white;
}

.mockup-field {
    border: 1px solid #e8edf2;
}

/* ============================================================
   SPIACCIATURA SEZIONI
   ============================================================ */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.12) !important;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   BANDO CARDS
   ============================================================ */
.bando-card {
    transition: transform 0.25s, box-shadow 0.25s;
}

.bando-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
}

.bando-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow-connector {
    position: absolute;
    top: 38px;
    left: calc(8.33% + 36px);
    right: calc(8.33% + 36px);
    height: 2px;
    background: linear-gradient(to right, #0066cc, #66aaff);
    z-index: 0;
}

.workflow-step-icon {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 1;
}

.step-number {
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: white;
    border: 2px solid #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #0066cc;
}

/* ============================================================
   VANTAGGI
   ============================================================ */
.vantaggio-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   ROADMAP — RIBBON DI FASE
   ============================================================ */
.phase-ribbon {
    position: absolute;
    top: 12px;
    right: -28px;
    padding: 4px 36px 4px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px 0 0 4px;
    letter-spacing: 0.05em;
}

/* ============================================================
   TECH ICONS
   ============================================================ */
.tech-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   FORM
   ============================================================ */
.form-control:focus {
    border-color: var(--graderp-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 1.5rem;
    }

    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-mockup-wrapper {
        margin-top: 1.5rem;
    }

    .workflow-step {
        border-left: 3px solid #0066cc;
        padding-left: 1rem;
        text-align: left;
    }

    .workflow-step-icon {
        width: 48px;
        height: 48px;
        margin: 0 0 0.5rem 0 !important;
    }
}

.text-justify {
    text-align: justify;
}