:root {
    --primary-color: #1a3a5f; /* Blu Navy Professionale */
    --accent-color: #c5a059;  /* Oro/Bronzo per un tocco di eleganza */
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}


.heading-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.service-card {
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color) !important;
}

.service-card:hover {
    transform: translateY(-10px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #122a45;
}


/* Layout Professionisti a Righe */
.prof-row {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden; /* Taglia lo sfondo colorato agli angoli arrotondati */
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.prof-row:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Sfondi per le aree */
.prof-bg-area {
    min-height: 400px;
    width: 100%;
    position: relative;
}

.bg-legale { background: linear-gradient(135deg, #1a3a5f 0%, #2c3e50 100%); }
.bg-tecnica { background: linear-gradient(135deg, #4a4a4a 0%, #2b2b2b 100%); }
.bg-agraria { background: linear-gradient(135deg, #2d5a27 0%, #1e3d1a 100%); }

/* Immagine Professionista */
.prof-img-large {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.2);
}

/* Desktop Fix: Assicuriamoci che le colonne abbiano la stessa altezza */
@media (min-width: 992px) {
    .prof-row {
        display: flex;
    }
}


/* Icone Contatti */
.contact-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(26, 58, 95, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Container Mappa per renderla responsive */
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Miglioria ai campi del form */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 58, 95, 0.1);
}

/* Stile Timeline CV */
.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
}

/* Hover sulle card dei successi */
.bg-light:hover {
    background-color: #e9ecef !important;
    transition: background-color 0.3s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Sfondo scuro semitrasparente per le frecce */
    border-radius: 50%;
    padding: 15px;
}

.hero-section {
    background-color: #000000 !important; /* Forza il nero assoluto */
    height: 80vh;
    position: relative;
}

/* Gestione delle immagini nel carosello */
.hero-img-overlay {
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Overlay scuro per migliorare la leggibilità del testo */
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

/* Posizionamento del testo fisso al centro */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Sopra le immagini */
    pointer-events: none; /* Permette di cliccare attraverso se necessario */
}

/* Riabilita i click per il bottone */
.hero-content-overlay .container {
    pointer-events: auto;
}

/* Transizione fluida tra le slide */
.carousel-fade .carousel-item {
    transition-duration: 2.5s;
}

