/* =======================================================
   B-Link S.r.l. — Override e stili custom
   (caricato DOPO Bootstrap per sovrascriverne le basi)
   =======================================================

   INDICE:
   1.  Bootstrap override / variabili brand
   2.  Tipografia globale
   3.  Utilities e spaziature custom
   4.  Navbar
   5.  Hero
   6.  Sezioni — sfondi e tag
   7.  Chi siamo
   8.  Servizi
   9.  Perché B-Link
   10. Progetti
   11. Galleria
   12. Lightbox
   13. Contatti
   14. Footer
   15. Back to top
   16. Animazioni / Reveal
   17. Responsive fine-tuning
   ======================================================= */


/* =======================================================
   1. BOOTSTRAP OVERRIDE — VARIABILI BRAND
   ======================================================= */
:root {
    /* Palette B-Link */
    --bl-navy:          #0D1B2A;
    --bl-navy-mid:      #1B3A5C;
    --bl-accent:        #0096C7;
    --bl-accent-dark:   #0077B6;
    --bl-accent-light:  #48CAE4;
    --bl-accent-glow:   rgba(0, 150, 199, 0.28);
    --bl-white:         #FFFFFF;
    --bl-off-white:     #F4F7FA;
    --bl-gray-100:      #EEF2F7;
    --bl-text:          #1A2332;
    --bl-text-muted:    #5A6A7E;

    /* Override variabili Bootstrap */
    --bs-primary:            var(--bl-accent);
    --bs-primary-rgb:        0, 150, 199;
    --bs-body-font-family:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bs-body-color:         var(--bl-text);
    --bs-body-bg:            var(--bl-white);
    --bs-link-color:         var(--bl-accent);
    --bs-link-hover-color:   var(--bl-accent-dark);

    /* Layout */
    --navbar-h:  70px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Colori Bootstrap btn-primary allineati al brand */
.btn-primary {
    --bs-btn-bg:                 var(--bl-accent);
    --bs-btn-border-color:       var(--bl-accent);
    --bs-btn-hover-bg:           var(--bl-accent-dark);
    --bs-btn-hover-border-color: var(--bl-accent-dark);
    --bs-btn-active-bg:          #005F8E;
    --bs-btn-active-border-color: #005F8E;
    --bs-btn-focus-shadow-rgb:   0, 150, 199;
    font-weight: 600;
    box-shadow: 0 6px 20px var(--bl-accent-glow);
    transition: all .25s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,150,199,.45);
}

.btn-outline-light {
    font-weight: 600;
    transition: all .25s ease;
}
.btn-outline-light:hover { transform: translateY(-2px); }

/* Bottone bianco custom (usato nel form contatti) */
.btn-white {
    background: var(--bl-white);
    color: var(--bl-navy);
    border: 2px solid var(--bl-white);
    font-weight: 700;
    font-size: 1rem;
    padding: .875rem 2rem;
    border-radius: .375rem;
    transition: all .25s ease;
}
.btn-white:hover {
    background: var(--bl-off-white);
    color: var(--bl-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Spaziatura sezioni custom */
.py-section { padding-top: 6rem; padding-bottom: 6rem; }


/* =======================================================
   2. TIPOGRAFIA GLOBALE
   ======================================================= */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

h1, h2, h3, h4 { letter-spacing: -.02em; }

h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem);  font-weight: 800; line-height: 1.15; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem);  font-weight: 700; }

.section-title { margin-bottom: 1rem; color: var(--bl-text); }
.section-desc  { font-size: 1.08rem; line-height: 1.75; color: var(--bl-text-muted); }

/* Tag etichetta sezione */
.section-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bl-accent);
    background: rgba(0,150,199,.09);
    border: 1px solid rgba(0,150,199,.22);
    padding: .35rem .9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.section-tag.light {
    color: var(--bl-accent-light);
    background: rgba(72,202,228,.1);
    border-color: rgba(72,202,228,.22);
}


/* =======================================================
   3. SFONDI SEZIONI
   ======================================================= */
.section-light  { background-color: var(--bl-white); }
.section-dark   { background-color: var(--bl-navy); }
.section-accent { background: linear-gradient(135deg, var(--bl-navy-mid) 0%, var(--bl-navy) 100%); }


/* =======================================================
   4. NAVBAR
   ======================================================= */
#navbar {
    height: var(--navbar-h);
    background: var(--bl-white);
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
    transition: box-shadow .3s ease;
}
#navbar.scrolled {
    box-shadow: 0 2px 18px rgba(0,0,0,.12);
}

/* Logo */
.navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar-logo  { width: auto; display: block; }

/* Logo nel footer: forza il colore bianco tramite filtro CSS */
.footer-logo .navbar-logo { filter: brightness(0) invert(1); }

/* Nav links */
.navbar-nav .nav-link {
    color: var(--bl-text-muted) !important;
    font-size: .9rem;
    font-weight: 500;
    padding-left: .6rem  !important;
    padding-right: .6rem !important;
    position: relative;
    transition: color .22s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: .6rem; right: .6rem;
    height: 2px;
    background: var(--bl-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .22s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active-link { color: var(--bl-text) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active-link::after { transform: scaleX(1); }

/* CTA nav */
.nav-cta {
    background: var(--bl-accent) !important;
    border-radius: .375rem !important;
    color: var(--bl-white) !important;
    padding: .45rem 1.2rem !important;
    transition: background .22s ease, transform .22s ease !important;
}
.nav-cta::after  { display: none !important; }
.nav-cta:hover   { background: var(--bl-accent-dark) !important; transform: translateY(-2px); }

/* Mobile navbar collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bl-white);
        padding: 1rem 1.5rem 1.5rem;
        border-top: 1px solid var(--bl-gray-100);
        margin-top: .25rem;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }
    .navbar-nav .nav-link {
        padding: .65rem 0 !important;
        border-bottom: 1px solid var(--bl-gray-100);
    }
    .navbar-nav .nav-link::after { display: none; }
    .nav-cta { display: inline-block !important; margin-top: .75rem !important; }
}


/* =======================================================
   5. HERO
   ======================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Immagine di sfondo con zoom lento */
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.00); }
}

/* Overlay gradiente scuro */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,27,42,.92) 0%,
        rgba(27,58,92,.68) 55%,
        rgba(13,27,42,.84) 100%
    );
}

.hero-container  { position: relative; z-index: 2; padding-top: var(--navbar-h); }
.hero-content    { padding: 4rem 0; }

/* Badge animato */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--bl-accent-light);
    background: rgba(72,202,228,.1);
    border: 1px solid rgba(72,202,228,.25);
    padding: .375rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bl-accent-light);
    flex-shrink: 0;
    animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.7); }
}

.hero-title {
    color: var(--bl-white);
    margin-bottom: 1.25rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: rgba(255,255,255,.75);
    line-height: 1.78;
    margin-bottom: 2.25rem;
    max-width: 580px;
}

/* Statistiche */
.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: .5rem;
}
.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--bl-white);
    line-height: 1;
    letter-spacing: -.03em;
}
.stat-label {
    display: block;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    margin-top: .25rem;
}

/* Indicatore scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    animation: fadeInUp .8s 2s ease both;
}
.hero-scroll-indicator span {
    display: block;
    font-size: .7rem;
    color: rgba(255,255,255,.38);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(255,255,255,.22);
    border-radius: 11px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.scroll-wheel {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 7px;
    background: rgba(255,255,255,.55);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel {
    0%   { top:6px;  opacity:1; }
    80%  { top:20px; opacity:0; }
    100% { top:6px;  opacity:0; }
}

/* Animazioni fade-in sequenziali hero */
.hero-content .fade-in {
    opacity: 0;
    transform: translateY(22px);
    animation: fadeInUp .7s ease forwards;
}
.hero-badge.fade-in    { animation-delay: .20s; }
.hero-title.fade-in    { animation-delay: .40s; }
.hero-subtitle.fade-in { animation-delay: .55s; }
.d-flex.fade-in        { animation-delay: .70s; }
.hero-stats.fade-in    { animation-delay: .88s; }


/* =======================================================
   6. CHI SIAMO
   ======================================================= */
.about-text {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--bl-text-muted);
    margin-bottom: 1rem;
}

.about-image-wrapper { position: relative; }
.about-image {
    width: 100%; height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    position: relative; z-index: 1;
    display: block;
}
.about-image-accent {
    position: absolute;
    bottom: -16px; right: -16px;
    width: 52%; height: 52%;
    background: linear-gradient(135deg, var(--bl-accent), var(--bl-accent-light));
    border-radius: var(--radius-xl);
    z-index: 0;
    opacity: .15;
}

/* Value cards */
.value-card {
    padding: 2rem 1.75rem;
    background: var(--bl-off-white);
    border: 1px solid var(--bl-gray-100);
    border-radius: var(--radius-lg);
    text-align: center;
    height: 100%;
    transition: all .26s ease;
}
.value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: rgba(0,150,199,.2);
}
.value-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--bl-accent), var(--bl-accent-light));
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    color: var(--bl-white);
    transition: transform .26s ease;
}
.value-card:hover .value-icon { transform: scale(1.08) rotate(-3deg); }
.value-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--bl-text); }
.value-card p  { font-size: .9rem; line-height: 1.7; color: var(--bl-text-muted); margin: 0; }


/* =======================================================
   7. SERVIZI
   ======================================================= */
.service-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all .26s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,150,199,.07), transparent);
    opacity: 0;
    transition: opacity .26s ease;
}
.service-card:hover {
    border-color: rgba(0,150,199,.35);
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(0,0,0,.38);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 54px; height: 54px;
    background: rgba(0,150,199,.12);
    border: 1px solid rgba(0,150,199,.2);
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--bl-accent-light);
    transition: all .26s ease;
}
.service-card:hover .service-icon {
    background: var(--bl-accent);
    border-color: var(--bl-accent);
    color: var(--bl-white);
}
.service-card h3 {
    color: var(--bl-white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .6rem;
}
.service-card p {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    line-height: 1.72;
    margin: 0;
}


/* =======================================================
   8. PERCHÉ B-LINK
   ======================================================= */
.strength-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bl-off-white);
    border: 1px solid var(--bl-gray-100);
    border-radius: var(--radius-lg);
    height: 100%;
    transition: all .26s ease;
}
.strength-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: rgba(0,150,199,.18);
}
.strength-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--bl-accent);
    opacity: .22;
    flex-shrink: 0;
    min-width: 60px;
    letter-spacing: -.04em;
    transition: opacity .26s ease;
}
.strength-item:hover .strength-number { opacity: .75; }
.strength-content h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--bl-text); }
.strength-content p  { font-size: .92rem; line-height: 1.72; color: var(--bl-text-muted); margin: 0; }


/* =======================================================
   9. PROGETTI
   ======================================================= */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 280px;
    background: var(--bl-navy-mid);
}
.project-card--featured { min-height: 380px; }

.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .65s ease;
}
.project-card:hover img { transform: scale(1.06); }

.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,.92) 0%, transparent 65%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.75rem;
    transition: background .28s ease;
}
.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0,100,160,.85) 0%, rgba(13,27,42,.3) 100%);
}
.project-overlay h3 {
    color: var(--bl-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
.project-overlay p {
    color: rgba(255,255,255,0);
    font-size: .88rem;
    line-height: 1.55;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: color .3s ease, max-height .4s ease;
}
.project-card:hover .project-overlay p {
    color: rgba(255,255,255,.82);
    max-height: 80px;
}


/* =======================================================
   10. GALLERIA
   ======================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 255px;
    gap: 6px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item.gallery-wide { grid-column: 1 / 3; }
.gallery-item.gallery-tall { grid-row: span 2; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}
.gallery-item:hover img { transform: scale(1.09); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(13,27,42,.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .24s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    color: var(--bl-white);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .05em;
    background: rgba(0,150,199,.82);
    padding: .4rem 1rem;
    border-radius: .375rem;
    backdrop-filter: blur(4px);
}
.gallery-item:focus-visible {
    outline: 3px solid var(--bl-accent);
    outline-offset: 2px;
    z-index: 1;
}


/* =======================================================
   11. LIGHTBOX
   ======================================================= */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.96);
    z-index: 2000;
    display: none;
    align-items: center; justify-content: center; flex-direction: column;
    padding: 2rem;
}
.lightbox.active { display: flex; animation: fadeIn .22s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.lightbox img {
    max-width: 90vw; max-height: 80vh;
    object-fit: contain;
    border-radius: .5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    animation: zoomIn .25s ease;
}
@keyframes zoomIn {
    from { transform:scale(.92); opacity:0; }
    to   { transform:scale(1);   opacity:1; }
}
.lightbox-caption {
    color: rgba(255,255,255,.55);
    margin-top: .75rem;
    font-size: .88rem;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    color: var(--bl-white);
    font-size: 2.4rem;
    line-height: 1;
    padding: .3rem .5rem;
    opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
    border: none; background: none; cursor: pointer;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }


/* =======================================================
   12. CONTATTI
   ======================================================= */
.contact-desc {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.78;
    margin-bottom: 2rem;
}
.contact-details { font-style: normal; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    margin-bottom: 1.25rem;
}
.contact-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--bl-accent-light);
    transition: background .22s ease;
}
.contact-item:hover .contact-icon { background: rgba(0,150,199,.2); }
.contact-item strong { display: block; color: var(--bl-white); font-size: .88rem; font-weight: 600; margin-bottom: .1rem; }
.contact-item span,
.contact-item a { color: rgba(255,255,255,.6); font-size: .88rem; text-decoration: none; }
.contact-item a:hover { color: var(--bl-accent-light); }

/* Form wrapper */
.contact-form-wrapper {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Bootstrap form override per contesto scuro */
.contact-form .form-label {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: .4rem;
}
.contact-form .form-label span { color: var(--bl-accent-light); }
.contact-form .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--bl-white);
    font-size: .95rem;
    padding: .825rem 1rem;
    border-radius: .375rem;
    transition: all .22s ease;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,.28); }
.contact-form .form-control:focus {
    background: rgba(0,150,199,.07);
    border-color: var(--bl-accent);
    color: var(--bl-white);
    box-shadow: 0 0 0 3px rgba(0,150,199,.18);
}
.contact-form .form-control.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248,113,113,.15);
}

/* Feedback form */
.form-message { border-radius: .375rem; font-size: .88rem; padding: .7rem 1rem; display: none; }
.form-message.success  { display: block; background: rgba(0,200,100,.1);  border: 1px solid rgba(0,200,100,.3);  color: #6ee7b7; }
.form-message.error-msg{ display: block; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }


/* =======================================================
   13. FOOTER
   ======================================================= */
.footer { background: #07111C; }

.footer-desc {
    color: rgba(255,255,255,.38);
    font-size: .88rem;
    line-height: 1.75;
    max-width: 280px;
}
.footer-heading {
    color: var(--bl-white);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.footer-links li,
.footer-links li a { color: rgba(255,255,255,.38); font-size: .88rem; margin-bottom: .4rem; text-decoration: none; transition: color .2s ease; }
.footer-links li a:hover { color: var(--bl-accent-light); }

.footer-address { font-style: normal; font-size: .88rem; }
.footer-address p { color: rgba(255,255,255,.38); margin-bottom: .35rem; }
.footer-address a { color: rgba(255,255,255,.38); text-decoration: none; transition: color .2s ease; }
.footer-address a:hover { color: var(--bl-accent-light); }

.footer-copy  { color: rgba(255,255,255,.25); font-size: .78rem; }
.footer-legal { display: flex; gap: 1.5rem; justify-content: flex-end; }
.footer-legal a { color: rgba(255,255,255,.25); font-size: .78rem; text-decoration: none; transition: color .2s ease; }
.footer-legal a:hover { color: var(--bl-accent-light); }


/* =======================================================
   13b. CERTIFICAZIONE ISO
   ======================================================= */
.cert-strip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    background: var(--bl-off-white);
    border: 1px solid var(--bl-gray-100);
    border-left: 4px solid var(--bl-accent);
    border-radius: var(--radius-lg);
}
.cert-icon {
    font-size: 2rem;
    color: var(--bl-accent);
    flex-shrink: 0;
}
.cert-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--bl-accent);
    margin-bottom: .2rem;
}
.cert-text {
    font-size: .95rem;
    color: var(--bl-text);
    margin: 0;
}


/* =======================================================
   13c. COOKIE BANNER
   ======================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    background: var(--bl-navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
    transform: translateY(110%);
    transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    min-width: 260px;
}
.cookie-text strong {
    display: block;
    color: var(--bl-white);
    font-size: .95rem;
    margin-bottom: .2rem;
}
.cookie-text p {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    margin: 0;
    line-height: 1.55;
}
.cookie-text a {
    color: var(--bl-accent-light);
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: .625rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.btn-cookie-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: .375rem;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-cookie-outline:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.6);
    color: var(--bl-white);
}
.btn-cookie-primary {
    background: var(--bl-accent);
    border: 1px solid var(--bl-accent);
    color: var(--bl-white);
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem 1.25rem;
    border-radius: .375rem;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-cookie-primary:hover {
    background: var(--bl-accent-dark);
    border-color: var(--bl-accent-dark);
}

/* Modal cookie */
.cookie-modal-content { border-radius: var(--radius-lg); border: none; }

.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bl-gray-100);
}
.cookie-cat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-cat-info strong { font-size: .95rem; display: block; margin-bottom: .25rem; }
.cookie-cat-info p { font-size: .82rem; color: var(--bl-text-muted); margin: 0; line-height: 1.55; }
.cookie-cat-toggle { flex-shrink: 0; padding-top: .1rem; }

.badge-always-on {
    font-size: .72rem;
    font-weight: 600;
    color: var(--bl-accent);
    background: rgba(0,150,199,.1);
    border: 1px solid rgba(0,150,199,.2);
    padding: .25rem .6rem;
    border-radius: 100px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cookie-actions { width: 100%; }
    .btn-cookie-outline, .btn-cookie-primary { flex: 1; text-align: center; }
}


/* =======================================================
   14. BACK TO TOP
   ======================================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 50px; height: 50px;
    background: var(--bl-accent);
    color: var(--bl-white);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    opacity: 0; visibility: hidden;
    transform: translateY(14px);
    transition: all .26s ease;
    z-index: 990; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,150,199,.38);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
    background: var(--bl-accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,150,199,.5);
}


/* =======================================================
   15. ANIMAZIONI / REVEAL
   ======================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Ritardi sfalsati per elementi Bootstrap row */
.row > *:nth-child(2) > .reveal { transition-delay: .08s; }
.row > *:nth-child(3) > .reveal { transition-delay: .16s; }
.row > *:nth-child(4) > .reveal { transition-delay: .06s; }
.row > *:nth-child(5) > .reveal { transition-delay: .12s; }

/* Ritardo diretto quando il .reveal è il figlio diretto della row */
.row > div:nth-child(2).reveal { transition-delay: .08s; }
.row > div:nth-child(3).reveal { transition-delay: .16s; }
.row > div:nth-child(4).reveal { transition-delay: .06s; }

@keyframes fadeInUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}


/* =======================================================
   16. RESPONSIVE FINE-TUNING
   ======================================================= */
@media (max-width: 991.98px) {
    .py-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .about-image { height: 360px; }
}

@media (max-width: 767.98px) {
    .py-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .about-image { height: 300px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .gallery-item.gallery-wide { grid-column: 1 / -1; }
    .gallery-item.gallery-tall { grid-row: span 1; }

    .hero-stats { gap: 2rem; }

    .footer-legal { justify-content: center; flex-wrap: wrap; }
    .footer-desc  { max-width: 100%; }
}

@media (max-width: 575.98px) {
    .py-section { padding-top: 3rem; padding-bottom: 3rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item.gallery-wide { grid-column: 1; }

    .contact-form-wrapper { padding: 1.5rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 2rem; }
}
