/* =========================================
   1. IMPORT E IMPOSTAZIONI BASE
   ========================================= */

/* Contenuto principale con Roboto */
body {
    font-family: 'Roboto', sans-serif;
    color: #212529; /* Colore testo base scuro */
}

/* Elementi con Lexend Deca (Titoli e UI) */
.navbar-brand,
.nav-link,
.dropdown-item,
.btn,
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4,
.lead,
.card-title,
.fw-bold,
.footer-text {
    font-family: 'Lexend Deca', sans-serif;
}

/* Smooth scroll per le ancore */
html {
    scroll-behavior: smooth;
}

/* =========================================
   2. VARIABILI COLORI BRAND (DAL LOGO)
   ========================================= */
:root {
    /* Arancione scuro "Gerardi" e icona sinistra */
    --brand-orange: #c85c2e; 
    --brand-orange-hover: #a6461f; 
    
    /* Grigio medio icona centrale */
    --brand-gray: #aab0b5;   
    --brand-gray-hover: #8c9296; 
}

/* =========================================
   3. OVERRIDE BOOTSTRAP: CLASS WARNING
   (Sostituisce il giallo con l'Arancione Brand)
   ========================================= */

/* Testo Arancione */
.text-warning {
    color: var(--brand-orange) !important;
}
a.text-warning:hover {
    color: var(--brand-orange-hover) !important;
}

/* Sfondi Arancioni (es. Badge) */
.bg-warning {
    background-color: var(--brand-orange) !important;
    color: #ffffff !important;
}

/* Bordi Arancioni */
.border-warning {
    border-color: var(--brand-orange) !important;
}

/* Bottoni Warning (es. Richiedi Consulenza) */
.btn-warning {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #ffffff !important; /* Testo bianco per leggibilità */
    font-weight: 600;
}

.btn-warning:hover,
.btn-warning:active,
.btn-warning:focus {
    background-color: var(--brand-orange-hover) !important;
    border-color: var(--brand-orange-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(200, 92, 46, 0.5) !important;
}

/* Bottoni Outline Warning */
.btn-outline-warning {
    color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}
.btn-outline-warning:hover {
    background-color: var(--brand-orange) !important;
    color: #ffffff !important;
}

/* Input form focus (bordo arancione quando clicchi) */
.form-control:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(200, 92, 46, 0.25) !important;
}

/* Checkbox quando selezionata */
.form-check-input:checked {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}

/* =========================================
   4. OVERRIDE BOOTSTRAP: CLASS SECONDARY
   (Sostituisce il grigio default con Grigio Brand)
   ========================================= */

.text-secondary {
    color: var(--brand-gray) !important;
}

.bg-secondary {
    background-color: var(--brand-gray) !important;
    color: #ffffff !important;
}

.border-secondary {
    border-color: var(--brand-gray) !important;
}

.btn-secondary {
    background-color: var(--brand-gray) !important;
    border-color: var(--brand-gray) !important;
    color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus {
    background-color: var(--brand-gray-hover) !important;
    border-color: var(--brand-gray-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(170, 176, 181, 0.5) !important;
}

/* =========================================
   5. EFFETTI E COMPONENTI SPECIFICI
   ========================================= */

/* Effetti hover card */
.hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(200, 92, 46, 0.15); /* Ombra aranciata leggera */
}

/* Navbar scroll transition */
.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* SVG Styles */
.footer-text { 
    font-weight: 700; 
    font-size: 24px; 
    fill: #ffffff; 
}

/* Se vuoi mantenere il blu per "Associati" nel footer */
.footer-blue { fill: #0d6efd; }


/* Impedisce alla navbar fissa di coprire i titoli delle sezioni */
section[id] {
    scroll-margin-top: 100px; /* Regola questo valore in base all'altezza della navbar */
}

/* Se usi ancore su div specifici fuori dalle section */
[id] {
    scroll-margin-top: 100px;
}

#consulenza, #servizi, #team, #contatti {
    scroll-margin-top: 100px; /* Altezza navbar + respiro */
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(200, 92, 46, 0.25) !important;
    outline: none;
}
