/* ===================================================
   Boccacci S.p.A. — Made Green in Italy
   Custom styles on top of EcoNature template
   =================================================== */

/* ---- Logo ---- */
.navbar-logo {
    height: 48px;
    width: auto;
    /* logo bianco su navbar chiara: lo rendiamo visibile in verde scuro */
    /*filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(700%) hue-rotate(100deg) brightness(90%) contrast(95%);
    transition: filter 0.3s;*/
}

.footer-logo {
    height: 52px;
    width: auto;
}

@media (max-width: 767px) {
    .navbar-logo { height: 38px; }
    .footer-logo { height: 42px; }
}

/* ---- Menu mobile ---- */
@media (max-width: 991px) {
    /* sfondo bianco per il menu espanso su mobile */
    .navbar-collapse {
        /*background-color: rgba(255, 255, 255, 0.98);*/
        border-radius: 0 0 12px 12px;
        padding: 10px 16px 16px;
      /*  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);*/
        margin-top: 4px;
    }

    /* toggler (hamburger) sempre visibile */
    .navbar-toggler {
        border: 2px solid var(--primary-green) !important;
        border-radius: 6px !important;
        padding: 6px 10px !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232e8b57' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 24px;
        height: 24px;
    }

    .navbar-nav .nav-link {
        padding: 10px 12px !important;
        margin: 2px 0 !important;
        border-radius: 8px;
    }
}

/* ---- Hero overrides ---- */
.hero-section {
   background-image: url("../images/bg.jpeg");
}

.hero-badge {
    margin-bottom: 1rem;
}

.badge-mgi {
    display: inline-block;
    background: linear-gradient(135deg, #f4e04d, #f0a500);
    color: #1e5631;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
}

.hero-mgi-logo {
    max-width: 280px;
    width: 100%;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
    animation: mgi-float 4s ease-in-out infinite;
}

@keyframes mgi-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@media (max-width: 991px) {
    .hero-mgi-logo {
        max-width: 180px;
        margin-top: 2rem;
    }
}

.hero-ceo {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-size: 1rem;
}

/* ---- Logo MGI nella sezione certificazione ---- */
.cert-mgi-logo {
    max-width: 220px;
    width: 100%;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
    transition: transform 0.3s;
}

.cert-mgi-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .cert-mgi-logo {
        max-width: 160px;
        margin-top: 1.5rem;
    }
}

/* ---- Certification highlight box ---- */
.cert-highlight-box {
    background: linear-gradient(135deg, #e8f5e9, #f0fdf4);
    border-left: 5px solid var(--primary-green);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
}

.text-dark-green {
    color: var(--dark-green);
}

/* ---- Value info cards ---- */
.value-info-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--primary-green);
}

.text-green {
    color: var(--primary-green);
}

/* ---- Technology cards ---- */
.tech-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    border-bottom: 3px solid var(--secondary-green);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.15);
}

.tech-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    font-size: 1.6rem;
}

/* ---- Certification strip ---- */
.cert-strip {
    background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
    border-radius: 15px;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cert-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.cert-badge-secondary {
    background: linear-gradient(135deg, #5c7a5c, #7a9a7a);
}

/* ---- Products / Sector icons ---- */
.sector-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* ---- Ghisa types ---- */
.ghisa-box {
    background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
    border-radius: 15px;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.ghisa-type-card {
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ---- Impact counters ---- */
.count-text {
    font-size: 1.6rem;
    color: var(--dark-green);
    margin: 15px 0;
    font-weight: 700;
}

/* ---- Impact category cards ---- */
.impact-cat-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--primary-green);
    transition: 0.3s;
}

.impact-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px var(--shadow);
}

.impact-score {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.impact-bar {
    height: 8px;
    background: rgba(46, 139, 87, 0.15);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.impact-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ---- Class A result card ---- */
.class-result-card {
    background: linear-gradient(135deg, #e8f5e9, #f0fdf4);
    border-radius: 20px;
    border: 3px solid var(--primary-green);
    box-shadow: 0 15px 40px rgba(46, 139, 87, 0.15);
}

.class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.4);
}

/* ---- Declaration cards ---- */
.declaration-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--primary-green);
}

.decl-table td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
}

.decl-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.class-a-badge {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---- Benchmark table ---- */
.benchmark-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bench-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.bench-a {
    background: rgba(46, 139, 87, 0.12);
    border: 2px solid var(--primary-green);
}

.bench-b {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
}

.bench-c {
    background: rgba(220, 53, 69, 0.07);
    border: 2px solid #dc3545;
}

.bench-class {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bench-a .bench-class {
    background: var(--primary-green);
    color: #fff;
}

.bench-b .bench-class {
    background: #ffc107;
    color: #333;
}

.bench-c .bench-class {
    background: #dc3545;
    color: #fff;
}

.bench-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bench-desc span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.bench-result {
    font-size: 1.3rem;
    color: var(--primary-green);
}

/* ---- Table highlight ---- */
.table-highlight td {
    background: rgba(46, 139, 87, 0.06);
    font-weight: 600;
}

/* ---- Section title — override to left-align by default on index ---- */
.about-section .section-title::after,
.projects-section .section-title::after,
.mission-section .section-title::after,
.impact-section .section-title::after,
.contact-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---- Contact cards ---- */
.contact-card-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--primary-green);
    transition: 0.3s;
}

.contact-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px var(--shadow);
}

.contact-card-item h5 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.contact-card-item a {
    color: var(--primary-green);
    font-weight: 600;
}

.contact-card-item a:hover {
    color: var(--dark-green);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767px) {
    .badge-mgi {
        font-size: 0.85rem;
    }

    .impact-score {
        font-size: 1.6rem;
    }

    .class-badge {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .cert-badges {
        gap: 0.35rem;
    }
}
