:root {
    --primary-green: #00794D; 
    --secondary-blue: #70A3D8;
    --text-dark: #1a1a1a;
}

body {
    font-family: 'Kantumruy Pro', sans-serif; /* Applicato a tutto il sito */
    color: var(--text-dark);
}
html {
    scroll-behavior: smooth; /* Questo rende l'ancoraggio fluido come in Axis */
}

/* Applica l'offset a tutte le sezioni che hanno un ID (ancore) */
#chi-sono, 
#aree-competenza, 
#strategia-microservizi,
#partnership, 
#contatti, 
#strategia-sostenibilita,
#compliance-tassonomia,
#reporting-control,
#sustainable-finance,
#riskmanagement-audit {
    scroll-margin-top: 145px; /* Sostituisci con l'altezza reale della tua navbar */
}

/* --- HEADER / NAVBAR --- */
.navbar-brand {padding: 0;}

.nav-link {
    font-family: 'Kantumruy Pro', sans-serif;
    font-weight: 700; 
    color: var(--text-dark)!important;
    font-size: 1.1rem;
    padding-left: 1.5rem !important;
}

/* --- HERO SECTION --- */

#hero-section {
    padding-top: 12.5rem !important;    /* 200px */
    padding-bottom: 12.5rem !important; /* 200px */
}
.hero-section {
    background: linear-gradient(90deg, #00794D 0%, #70A3D8 100%);
    color: white;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 132px);
}

.hero-bg-icon {
    position: absolute;
    top: 0;
    right: 0; /* Appoggiato al bordo destro */
    width: 600px; /* Larghezza proporzionale */
    height: 800px; /* Altezza precisa del tuo file */
    background-image: url('../img/logoicon-campionetaddei-background.svg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    
    /* Gestione colore e trasparenza */
    /* Se l'SVG è nero, questo filtro lo porta verso il blu #70A3D8 */
    filter: opacity(0.4) drop-shadow(0 0 0 #000); 
    
    z-index: 1;
}

/* Tipografia Kantumruy Pro */
.hero-top-text p {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 5.625rem;
}

.hero-lead {
    font-weight: 400;
    font-size: 2.8rem;
}

/* --- CHI SONO --- */
#chi-sono {
    background-color: #F2F2F2;
    padding-top: 8.75rem !important;    /* 140px */
    padding-bottom: 8.75rem !important; /* 140px */
}

#chi-sono .ps-lg-5{
        padding-left: 8rem !important;
}

.text-heading-xl{
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 3.5rem;      /* 56px */
    line-height: 1.2;       /* 120% */
    font-weight: 700;       
}

.text-primary{
    color:var(--primary-green)!important;
    font-size: 1rem;      /* 16px */
    line-height: 1.5;     /* 150% */
    text-transform: uppercase;
    letter-spacing: 4px!important;
    font-weight: 700;  
}

.text-body {
    font-family: 'Kantumruy Pro', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;      /* 24px */
    line-height: 1.5;       /* 150% */
}

/* Tab CV Campione */

.custom-tab {
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888 !important;
    border: none !important;
    background: none !important;
    padding-bottom: 15px;
    margin: 0 15px;
    position: relative;
    /*text-transform: uppercase;*/
}

.text-p {
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 1.1rem;      /* 16px */
    line-height: 1.5;     /* 150% */
    font-weight: 400;
}

.custom-tab.active {
    color: var(--text-dark)!important;
}

/* La linea sotto attiva */
.custom-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green); /* Puoi usare il tuo verde #0d4d4d se preferisci */
}

.custom-tab:hover {
    color: var(--primary-green)!important;
}

/* --- AREE DI COMPETENZA --- */
#aree-competenza {
    padding-top: 8.75rem !important;    /* 140px */ 
    padding-bottom: 8.75rem !important; /* 140px */
}

/* Versione compatta del cerchio per la Bento Grid */
.icon-gradient-circle-sm {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
}

.icon-size { 
    width: 45px;
    height: auto; }

.icon-size-grad {
    width: 95px;
    height: auto;
}

#aree-competenza h2{margin-bottom: 4rem !important;}

/* Stile base della riga superiore */
.border-top-custom {
    border-top: 5px solid transparent !important; /* Spessore della riga */
}

/* Varianti Colore Riga Superiore */
.border-black { border-top-color: var(--text-dark) !important; }
.border-green { border-top-color: var(--primary-green)!important; }
.border-blue  { border-top-color: var(--secondary-blue) !important; }

.text-black, .text-black h4, .text-black a, .text-black a:hover { color: var(--text-dark) !important; }
.text-green, .text-green h4, .text-green a , .text-green a:hover { color: var(--primary-green)!important; }
.text-blue, .text-blue h4, .text-blue a, .text-blue a:hover  { color: var(--secondary-blue) !important; }

#aree-competenza a.btn-scopri:hover { color: var(--primary-green)!important; }

/* Hover effect per la card */
.card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* --- MICROSERVIZI --- */
/* --- SEZIONE MICRO-SERVIZI (Unified Style) --- */

.service-micro-card {
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    /* Unione dei bordi: sottile sui lati e marcato sopra */
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid transparent; 
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.service-micro-card:hover {
    /* Effetto traslazione verso destra combinato */
    transform: translateX(8px);
    border-color: rgba(0,0,0,0.1); /* Mantiene il bordo leggero */
    /* Colore di accento sull'hover ereditato dal verde brand */
    color: var(--primary-green, #0d4d4d);
    box-shadow: 0 10px 25px rgba(13, 77, 77, 0.1) !important;
}

/* Varianti colore per la riga superiore (Bento Style) */
.border-top-black { border-top-color: var(--text-dark, #1a1a1a) !important; }
.border-top-green { border-top-color: var(--primary-green, #00794D) !important; }
.border-top-blue  { border-top-color: var(--secondary-blue, #70A3D8) !important; }

/* --- STRUTTURA E LAYOUT --- */

/* Linea sottile di accento a sinistra dell'area intro */
.col-lg-5.service-intro-col {
    border-left: 3px solid var(--secondary-blue, #70A3D8);
    padding-left: 30px;
}

/* Utility per icone SVG bianche */
.filter-white {
    filter: brightness(0) invert(1);
}

/* Spaziatura coerente tra le sezioni (140px) */
.py-128 {
    padding-top: 8.75rem !important;  /* 140px */
    padding-bottom: 8.75rem !important; /* 140px */
}

/* Linea sottile di accento a sinistra dell'area */
.border-dx-blue {
    border-right: 3px solid var(--secondary-blue) !important;
    padding-right: 30px;
}
.border-dx-black {
    border-right: 3px solid var(--text-dark) !important; 
    padding-right: 30px;
}
.border-dx-green {
    border-right: 3px solid var(--primary-green)!important; 
    padding-right: 30px;
}
.border-sx-blue {
    border-left: 3px solid var(--secondary-blue) !important;
    padding-left: 30px;
}
.border-sx-black {
    border-left: 3px solid var(--text-dark) !important; 
    padding-left: 30px;
}
.border-sx-green {
    border-left: 3px solid var(--primary-green)!important; 
    padding-left: 30px;
}

/* --- PARTNERSHIP  --- */
#partnership {
    padding-top: 8.75rem !important;    /* 140px */
    padding-bottom: 8.75rem !important; /* 140px */
}

.section-partnership-gradient {
    background: linear-gradient(105deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.logo-white {
    transition: transform 0.3s ease;
}

.partner-item:hover .logo-white {
    transform: scale(1.1);
}

.partner-item a {
    opacity: 0.8;
    transition: opacity 0.3s;
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
}

.partner-item a:hover {
    opacity: 1;
}

/* --- CONTATTI --- */
#contatti {
    padding-top: 8.75rem !important;    /* 140px */
    padding-bottom: 8.75rem !important; /* 140px */
    background-color: #f5faf8;
}

/* Stile icone contatti */
.contact-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social Icons in basso */
.social-link-icon {
    color: #1a1a1a;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link-icon:hover {
    color: #00794D;
}

/* Effetto Mappa Bianco e Nero */
.blend-luminosity {mix-blend-mode: luminosity!important;}
.map-container iframe {
    filter: grayscale(80%) invert(0%) contrast(100%);
    border-radius: var(--bs-border-radius-xl) !important;
}



@media (max-width: 991px) {
    .map-container {
        min-height: 400px !important;
    }
}

/* --- FOOTER --- */

.footer-minimal {
    background-color: #003D29 !important; 
    font-family: 'Kantumruy Pro', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Linea sottile di chiusura */
}

/* Effetti hover per i link */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

.hover-link:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

/* Forza la dimensione dei testi piccoli */
.footer-minimal .small {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}