/* =========================================================
   QSISTEMI — Main Stylesheet (Ristretto, Colori Originali)
   Versione: 3.8.0
   Font: Inter | Primario: #980000 | Secondario: #ff9c00
   Layout: 60px margini, 1440px max-width
   ========================================================= */

/* ---------- VARIABILI BRAND + LAYOUT RISTRETTO ---------- */
:root {
    --brand-primary:      #980000;   /* Colore principale (btn-danger) */
    --brand-primary-hover:#7a0000;   /* Hover più scuro */
    --brand-secondary:    #ff9c00;   /* Arancio per elementi secondari (warning) */
    --brand-gray:         #aab0b5;
    --brand-gray-hover:   #8c9296;
    --brand-dark-bg:      #39414c;
    --brand-text:         #222;
    --brand-text-dark:    #212529;

    --nm-primary:      #0036b4;
    --nm-accent:       var(--brand-secondary);
    --nm-warning:      var(--brand-secondary);
    --nm-dark:         #272727;
    --nm-text:         #111;
    --nm-muted:        #6b7280;
    --nm-border:       #e5e7eb;
    --nm-bg:           #fafafa;
    --nm-white:        #fff;
    --nm-serif:        'Inter', sans-serif;
    --nm-sans:         'Inter', sans-serif;
    --nm-art-serif:    'Inter', sans-serif;

    /* LAYOUT RISTRETTO (come style.old.css) */
    --nm-max-w:        1320px;
    --nm-header-w:     1440px;
    --nm-margin:       60px;

    --nm-transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Colori soft */
    --header-top-bg:   #f7f7f7;
    --header-top-text: #242424; /*#6b7280;*/
    --header-top-hover:#980000;
    --header-main-bg:  #ffffff;
    --header-border:   #e5e7eb;
    --section-gray:    #f5f5f5;
    --section-white:   #ffffff;
    --card-radius:     12px;
    --card-shadow:     0 2px 8px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--section-gray) !important;
    color: var(--brand-text);
    line-height: 1.65;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Forza Inter su tutti gli elementi testuali importanti */
h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .dropdown-item, .btn,
.lead, .card-title, .fw-bold, .footer-text, .tophat-btn, .offcanvas-mobile .nav-link,
.card-link, .service-card h3, .team-name, .team-role {
    font-family: 'Inter', sans-serif !important;
}

/* ---------- UTILITY CLASS (BRAND PRIMARY - ROSSO) ---------- */
.text-danger { color: var(--brand-primary) !important; }
.bg-danger { background-color: var(--brand-primary) !important; color: #fff !important; }
.border-danger { border-color: var(--brand-primary) !important; }

.btn-danger {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(152, 0, 0, 0.5) !important;
}
.btn-outline-danger {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    background-color: transparent;
}
.btn-outline-danger:hover {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(152, 0, 0, 0.25) !important;
}

/* ---------- UTILITY CLASS (BRAND SECONDARY - ARANCIO) ---------- */
.text-warning { color: var(--brand-secondary) !important; }
.bg-warning { background-color: var(--brand-secondary) !important; color: #fff !important; }
.border-warning { border-color: var(--brand-secondary) !important; }

.btn-warning {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-warning:hover,
.btn-warning:active,
.btn-warning:focus {
    background-color: #e68a00 !important;
    border-color: #e68a00 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 156, 0, 0.5) !important;
}
.btn-outline-warning {
    color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    background-color: transparent;
}
.btn-outline-warning:hover {
    background-color: var(--brand-secondary) !important;
    color: #fff !important;
}

/* =========================================================
   SITE WRAPPER — RISTRETTO (margini 60px, shadow)
   ========================================================= */
.site-wrapper {
    width: 100%;
    background-color: var(--section-gray) !important;
    padding: 0 var(--nm-margin);
    position: relative;
    z-index: 1;
}

.site-inner {
    max-width: var(--nm-header-w);
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 100vh;
}

.header-inner {
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 !important;
}
.header-wrapper {
    padding: 0 !important;
    background-color: transparent !important;
}
footer { margin-top: 0 !important; }

@media (max-width: 1560px) { .site-wrapper { padding: 0 30px; } }
@media (max-width: 1200px) { .site-wrapper { padding: 0 15px; } }
@media (max-width: 991px) {
    .site-wrapper { padding: 0; }
    .site-inner { box-shadow: none; }
    body { background-color: #ffffff !important; }
}

/* =========================================================
   HEADER & NAVIGAZIONE
   ========================================================= */
/* =========================================================
   TOPHAT — Colori originali (come style.old.css)
   ========================================================= */
.header-tophat {
    background-color: var(--header-top-bg);  /* #f7f7f7 */
    border-bottom: 1px solid var(--header-border);
    padding: 0.35rem 0;
    font-size: 0.75rem;
    font-weight: 500;
}

.header-tophat .container-header {
    max-width: var(--nm-header-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

.tophat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    color: var(--header-top-text);          /* #6b7280 */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.tophat-btn:hover {
    color: var(--header-top-hover);         /* #374151 */
    text-decoration: none;
}
.tophat-btn .icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.tophat-separator {
    width: 1px;
    height: 16px;
    background-color: var(--header-border);
    margin: 0 0.25rem;
}

/* --- NAVBAR: nero (override) --- */
.navbar-main {
    background-color: #000000 !important;
    padding: 0.6rem 0;
}

.navbar-main .container-header {
    max-width: var(--nm-header-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.navbar-main .navbar-brand {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.navbar-main .navbar-brand img { height: 36px; display: block; }

.navbar-main .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.navbar-main .navbar-nav .nav-link {
    color: #ffffff !important;  /* bianco per sfondo nero */
    /*font-size: 0.88rem;*/
    font-weight: 500;
    /*padding: 0.5rem 0.75rem; */
    font-size: 0.95rem !important;   
    padding: 0.6rem 1.25rem !important;
    text-transform: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-main .navbar-nav .nav-link:hover,
.navbar-main .navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
}

.navbar-contact-icon {
    color: #ffffff !important;
    transition: color 0.2s;
    padding: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.navbar-contact-icon:hover { color: var(--brand-primary) !important; }

.navbar-main .navbar-toggler {
    color: #f8f9fa !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    border: none;
    padding: 0.4rem;
    background: none;
}
.navbar-main .navbar-toggler:hover { border-color: #ffffff !important; }


/* =========================================================
NAVBAR 3D EFFECT - Taglio netto laterale
========================================================= */
.navbar-main {
    position: relative;
    background: linear-gradient(
        to bottom,
        #1a1a1a 0%,      /* Più chiaro sopra (luce) */
        #000000 40%,     /* Nero pieno al centro */
        #0a0a0a 100%     /* Leggermente più scuro sotto */
    ) !important;
    box-shadow: 
        /* Ombra esterna per profondità */
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        /* Riflesso superiore sottile */
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        /* Ombra interna inferiore per dare spessore */
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid #000;
    z-index: 1030;
}

/* Bordo inferiore "spessore" 3D - effetto fisico */
.navbar-main::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #1a1a1a 50%,
        #000000 100%
    );
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Riflesso superiore sottile (luce dall'alto) */
.navbar-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Tophat con effetto 3D coordinato */
.header-tophat {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f7f7f7 50%,
        #eeeeee 100%
    ) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #d1d5db;
    position: relative;
}

/* Effetto hover 3D sui link della navbar */
.navbar-main .navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-main .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(152, 0, 0, 0.6);
}

.navbar-main .navbar-nav .nav-link:hover::before,
.navbar-main .navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Effetto "pressed" sui link quando attivi */
.navbar-main .navbar-nav .nav-link.active {
    text-shadow: 0 0 10px rgba(152, 0, 0, 0.5);
}

/* Se il logo è scuro, decommenta questa riga:
   .navbar-main .navbar-brand img { filter: brightness(0) invert(1); }
*/

/* Offcanvas mobile */
.offcanvas-mobile { background-color: #ffffff !important; }
.offcanvas-mobile .offcanvas-header {
    border-bottom: 1px solid var(--header-border);
    padding: 1rem;
}
.offcanvas-tophat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.offcanvas-tophat .tophat-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    justify-content: flex-start;
    color: var(--header-top-text);
}
.offcanvas-tophat .tophat-btn:hover { color: var(--brand-primary); }
.offcanvas-mobile .nav-link {
    color: #4a5568 !important;
    font-size: 1.05rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
    text-decoration: none;
    display: block;
}
.offcanvas-mobile .nav-link.active { color: var(--brand-primary) !important; }
.offcanvas-mobile .offcanvas-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

/* =========================================================
   SEZIONI, CARD & MAIN CONTENT
   ========================================================= */
.section-white { background-color: var(--section-white); padding: 3rem 0; }
.section-gray { background-color: var(--section-gray); padding: 3rem 0; }

.section-content {
    max-width: var(--nm-max-w);
    margin: 0 auto;
    padding: 0 1rem;
}

main.container, .flex-grow-1 { flex: 1 0 auto; }
main.container {
    max-width: var(--nm-max-w);
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
}
@media (max-width: 767px) { main.container { padding: 1rem; } }
@media (max-width: 991.98px) {
    main.container { background-color: #ffffff; margin: 0; padding: 1rem; }
}

/* Card Standard */
.card-gg {
    background: #ffffff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--header-border);
}
.card-gg:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.card-gg .card-img-top { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-gg .card-body { padding: 1.25rem; }
.card-gg .card-title { font-size: 1.1rem; font-weight: 600; color: var(--brand-text-dark); margin-bottom: 0.75rem; }
.card-gg .card-text { font-size: 0.9rem; color: var(--nm-muted); line-height: 1.6; margin-bottom: 1rem; }
.card-gg .card-link {
    font-size: 0.85rem; font-weight: 500; color: var(--brand-primary);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem;
}
.card-gg .card-link:hover { text-decoration: underline; }

/* Card overlay */
.card-overlay {
    position: relative; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.card-overlay img, .card-overlay video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-overlay .overlay-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); color: #fff;
}
.card-overlay .overlay-title { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.card-overlay .overlay-arrow {
    position: absolute; bottom: 1.5rem; right: 1.5rem; color: #fff;
    opacity: 0.8; transition: transform 0.2s ease;
}
.card-overlay:hover .overlay-arrow { transform: translateX(6px); }

/* HERO, VIDEO & LINEE GUIDA */
.hero-section { width: 100%; max-width: 100%; margin: 0; padding: 0; background-color: var(--brand-dark-bg); }
.hero-content { max-width: var(--nm-max-w); margin: 0 auto; padding: 3rem 1rem; }

.video-wrapper { width: 100%; max-width: 100%; }
.video-wrapper video { max-height: 480px; object-fit: cover; width: 100%; display: block; }

.linee-guida i {
    width: 85px; height: 85px; border: 2px solid #666; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; background-color: #fff;
}
.linee-guida i::before { font-size: 38px; color: #00AEEF; }
.linee-guida h4 { font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin-bottom: 0; color: #222 !important; text-transform: capitalize; }

@media (max-width: 991.98px) {
    .linee-guida .row.g-3 { row-gap: 0.8rem !important; margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
    .linee-guida .row > div { max-width: 100%; border: none !important; }
    .linee-guida span:not(.icon) { display: none !important; }
}

/* CARD SERVIZI & TEAM */
.service-card {
    border: none; border-radius: var(--card-radius); background: #ffffff;
    transition: all 0.4s ease; box-shadow: var(--card-shadow); overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); }
.service-icon-wrapper {
    width: 90px; height: 90px; border-radius: 50%; background: var(--brand-primary);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.service-icon-wrapper .icon { color: #fff !important; font-size: 2.5rem; }
.service-card h3 { font-weight: 700; color: #121417; font-size: 1.35rem; }
.service-list li { color: #4a5568; font-size: 0.95rem; margin-bottom: 0.65rem; }
.btn-service { border: 2px solid var(--brand-primary); background: transparent; color: var(--brand-primary); font-weight: 600; }
.btn-service:hover { background: var(--brand-primary); color: #fff; }

.team-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--card-radius); transition: all 0.4s ease;
}
.team-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.1); border-color: rgba(152,0,0,0.3); }
.team-avatar { width: 130px; height: 130px; border-radius: 50%; border: 3px solid rgba(152,0,0,0.4); margin: 0 auto 1.2rem; overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { color: #fff; font-weight: 700; font-size: 1.15rem; }
.team-role { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.team-btn { border: 1px solid rgba(152,0,0,0.5); color: var(--brand-primary); border-radius: 30px; padding: 8px 20px; font-weight: 600; }
.team-btn:hover { background: var(--brand-primary); color: #fff; }

/* FOOTER & TICKER */
footer {
    background-color: var(--section-gray) !important;
    color: #000 !important;
    padding: 2rem 0;
    margin-top: auto;
    flex-shrink: 0;
}
footer h5 { font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.3rem; margin-bottom: 1rem; color: #1a1a1a !important; }
footer ul { padding-left: 0; list-style: none; margin: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li i { width: 20px; color: #aaa; }
footer a { color: #ccc; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; margin-top: 2rem;
    display: flex; justify-content: space-between; font-size: 0.8rem;
}
@media (max-width: 767.98px) {
    footer .d-flex.flex-md-row { flex-direction: column !important; }
    footer h5 { border-bottom: 1px solid rgba(255,255,255,0.3); width: 100%; }
    footer .d-flex > div { margin-bottom: 1.2rem; }
    footer ul li { font-size: 1rem !important; }
    footer ul.offset-list { padding-left: 1.5rem; position: relative; }
    footer ul.offset-list li::before { content: "–"; position: absolute; left: 0; color: #aaa; }
    .footer-bottom-bar { flex-direction: column; text-align: center; gap: 0.5rem; }
}

.ticker-bar {
    background: var(--nm-dark); color: #fff; font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.02em; padding: 0.35rem 0; overflow: hidden; text-transform: uppercase;
}
.ticker-bar .ticker-label { background: #dc2626; padding: 0.15rem 0.6rem; font-weight: 700; border-radius: 2px; white-space: nowrap; font-size: 0.68rem; flex-shrink: 0; }
.ticker-wrap { overflow: hidden; flex: 1; margin-left: 1rem; }
.ticker-track { display: flex; animation: tickerScroll 25s linear infinite; white-space: nowrap; will-change: transform; }
@keyframes tickerScroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 768px) { .ticker-track { animation-duration: 18s; } }

/* FORM, BOTTONI, LOGIN & DECORAZIONI */
.form-control, .form-select { border: 1px solid #cacaca; background-color: #fff; border-radius: 8px; padding: 12px; }

#btn-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-primary); color: #fff; border: none; display: flex; align-items: center;
    justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 900;
}
#btn-top.visible { opacity: 1; visibility: visible; }
#btn-top:hover { background: var(--brand-primary-hover); }

.line-warning { height: 3px; width: auto; margin: 0 auto; background-image: linear-gradient(to left, transparent 0%, #fd7e14 100%); border-radius: 150px; }

.bg-login-admin { background-color: #1A1A1A !important; color: #FFFFFF !important; }
.grecaptcha-badge { visibility: hidden; }

/* COOKIE BANNER & LOADING OVERLAY */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1050;
    background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px);
    padding: 12px 24px; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(0); transition: transform 0.3s ease;
}
.cookie-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1040; display: none; }
.cookie-banner .text-light { color: #f8f9fa; }
.cookie-banner .btn-outline-light { border-color: #fff; color: #fff; }
.cookie-banner .btn-outline-light:hover { background-color: #fff; color: #000; }

.loading-overlay {
    position: fixed; inset: 0; background: rgba(57, 65, 76, 0.95);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-content { display: flex; flex-direction: column; align-items: center; color: white; }
.loading-text { font-size: 0.9rem; opacity: 0.85; letter-spacing: 0.03em; }
body.loaded .loading-overlay { opacity: 0; visibility: hidden; pointer-events: none; }

/* SEZIONE ARANCIONE & OMBRE DECORATIVE */
.orange-section { background-color: #ff8c42; width: 100%; padding: 3rem 0; }
.orange-section .section-content { max-width: var(--nm-max-w); margin: 0 auto; padding: 0 1rem; color: #fff; }

.section-shadow-tb {
    background-color: #e7e7e7;
    position: relative;
    z-index: 10;
}
.section-shadow-tb::before {
    content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 4px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none;
}
.section-shadow-tb::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 4px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none;
}

/* RESPONSIVE HEADER & MOBILE OVERRIDES */
@media (max-width: 1560px) {
    .header-wrapper { padding: 0 30px; }
}
@media (max-width: 1200px) {
    .header-wrapper { padding: 0 15px; }
    .navbar-main .navbar-nav .nav-link { padding: 0.5rem 0.5rem; font-size: 0.82rem; }
}
@media (max-width: 991px) {
    body { background-color: #ffffff; }
    .header-wrapper { padding: 0; background-color: #ffffff; }
    .header-inner { box-shadow: none; }
    .navbar-main .navbar-nav .nav-link { font-size: 1.1rem; padding: 0.5rem 0; color: #4a5568 !important; }
    .header-tophat { display: none; }
    .navbar-main .container-header { justify-content: space-between; gap: 0; }
}
@media (max-width: 767px) {
    .hero-section h1.display-3 { font-size: 1.45rem !important; }
    .hero-subtitle { font-size: 0.95rem !important; }
    .card-gg .card-img-top { height: 160px; }
}
@media (min-width: 768px) {
    .last-col { border-right: 1px solid #dee2e6; }
    .col-text { border-left: 3px solid #ffc107 !important; padding-left: 2rem !important; }
}

/* =========================================================
   13. MOBILE OVERRIDES SPECIFICI (< 768px)
   ========================================================= */
@media (max-width: 767.98px) {
    .valori-bar .row > [class*="col-"] { flex: 0 0 33.3333%; max-width: 33.3333%; text-align: center; }
    .valori-bar .icon-circle, .valori-bar [class*="icon-circle"] { width: 38px !important; height: 38px !important; margin: 0 auto 5px !important; }
    .valori-bar h5, .valori-bar h6 { font-size: 0.75rem !important; margin-bottom: 0.15rem !important; }
    .valori-bar p, .valori-bar span:not([class*="icon"]) { font-size: 0.7rem !important; line-height: 1.3; }

    .card-metodo .card-body, .section-metodo .card .card-body { padding: 0.75rem !important; }
    .card-metodo h3, .card-metodo h4, .section-metodo .card h3, .section-metodo .card h4 { font-size: 1rem !important; }
    .card-metodo p, .section-metodo .card p { font-size: 0.82rem !important; margin-bottom: 0.35rem !important; }

    .section-video h1, .section-video h2, .section-video .section-title { font-size: 1.35rem !important; line-height: 1.25 !important; }
    .section-video h3 { font-size: 1.05rem !important; }
    .section-video .lead, .section-video .section-subtitle { font-size: 0.88rem !important; }
}

/* ============================================================
   FIX DEFINITIVO HEADER (Desktop + Mobile)
   ============================================================ */
@media (min-width: 992px) {
    .navbar-main .container-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
        gap: 1.5rem !important;
    }
    .navbar-main .navbar-brand { flex-shrink: 0 !important; }
    .navbar-main .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
    }
    .navbar-main .navbar-nav .nav-link {
        white-space: nowrap !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-main .container-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }
    .navbar-main .navbar-brand {
        flex-shrink: 0 !important;
        margin-left: 0.5rem !important;
    }
    .navbar-main .container-header .d-flex.d-lg-none {
        margin-left: auto !important;
        margin-right: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
    }
    .navbar-contact-icon,
    .navbar-toggler {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 40px !important;
        width: 40px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .navbar-contact-icon .icon,
    .navbar-toggler .icon {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
    }
}

.header-divider { height: 0px; background: #c2c2c2; }

/* --- Hero Title (GG) --- */
.gg-page-hero {
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}
.gg-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: #fce8e8;
    border: 1px solid #e6b3b3;
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 1.25rem;
}
.gg-page-hero__eyebrow .icon { color: var(--brand-primary); width: 14px; height: 14px; }
.gg-page-hero__title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1c20;
    letter-spacing: -.025em;
    margin-bottom: .75rem;
}
.gg-page-hero__accent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.1rem;
}
.gg-page-hero__accent-bar {
    display: inline-block;
    width: 36px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.gg-page-hero__accent-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--brand-primary);
}
.gg-page-hero__sub {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.65;
    max-width: 620px;
    margin: 0;
}

/* Intro Card */
.gg-intro-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--card-radius, 12px);
    padding: 1.75rem 2rem;
    box-shadow: var(--card-shadow);
}
.gg-intro-card__lead {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.gg-intro-card__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.gg-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.gg-feat__icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fce8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e6b3b3;
}
.gg-feat__icon .icon { color: var(--brand-primary); width: 18px; height: 18px; }
.gg-feat__title { font-size: 0.84rem; font-weight: 700; color: #111827; margin-bottom: 2px; }
.gg-feat__desc { font-size: 0.78rem; color: #6b7280; line-height: 1.45; }

@media (max-width: 767.98px) {
    .gg-page-hero { padding: 2rem 0.75rem 1.5rem; }
    .gg-page-hero__title { font-size: 1.75rem; }
    .gg-intro-card { padding: 1.25rem; }
    .gg-intro-card__features { grid-template-columns: 1fr; gap: .75rem; }
}

/* Disabilita il mask per le icone Lucide */
.icon[data-lucide] {
    background-color: transparent !important;
    mask: none !important;
    -webkit-mask: none !important;
    width: auto !important;
    height: auto !important;
}

[data-lucide].sm { width: 16px !important; height: 16px !important; display: inline-block; vertical-align: middle; }
[data-lucide].md { width: 20px !important; height: 20px !important; display: inline-block; vertical-align: middle; }
[data-lucide].lg { width: 24px !important; height: 24px !important; display: inline-block; vertical-align: middle; }
[data-lucide].xl { width: 32px !important; height: 32px !important; display: inline-block; vertical-align: middle; }
[data-lucide].xxl { width: 48px !important; height: 48px !important; display: inline-block; vertical-align: middle; }

[data-lucide].white { color: #ffffff !important; }
[data-lucide].orange { color: var(--brand-secondary) !important; }
[data-lucide].danger { color: var(--brand-primary) !important; }
[data-lucide].gray { color: #aab0b5 !important; }
[data-lucide].dark { color: #39414c !important; }

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: transparent;
    border: 0.2px solid #5c5d5e !important;
    transition: all 0.2s ease;
}
.icon-circle:hover {
    background-color: rgba(90, 89, 89, 0.151);
    transform: scale(1.05);
}
.icon-circle.danger {
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}
.icon-circle.danger:hover {
    background-color: rgba(152, 0, 0, 0.15) !important;
    transform: scale(1.05);
}

/* =========================================================
   STILI CONTATTI
   ========================================================= */
.gg-contact-item { transition: all 0.2s ease; }
.gg-contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(152, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.gg-contact-icon .icon {
    color: var(--brand-primary);
    width: 24px;
    height: 24px;
}
.gg-contact-item:hover .gg-contact-icon {
    background-color: rgba(152, 0, 0, 0.2);
    transform: scale(1.05);
}

.form-control-custom {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.2s;
}
.form-control-custom::placeholder { color: #adb5bd; font-weight: 400; }
.form-control-custom:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(152, 0, 0, 0.25);
}

/* =========================================================
   CARD METODO
   ========================================================= */
.card-metodo { 
    border-radius: 1.25rem; 
    border: 1px solid var(--brand-primary);
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(10px); 
}
.card-metodo .card-body .bg-danger { 
    height: 2px !important; 
    width: 24px !important; 
    background: var(--brand-primary) !important;
    margin-bottom: 0.5rem !important; 
}

@media (max-width: 767.98px) {
    .section-shadow-tb {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
    }
    .card-metodo { 
        border-radius: 0.75rem !important; 
        margin-top: -0.5rem !important;
    }
    .card-metodo .card-body { padding: 0.75rem !important; }
    .card-metodo .card-body h5 { font-size: 0.9rem !important; margin-bottom: 0.25rem !important; }
    .card-metodo .card-body .bg-danger { height: 2px !important; width: 24px !important; margin-bottom: 0.5rem !important; }
    .card-metodo .card-body .d-flex.gap-3 { gap: 0.5rem !important; }
    .card-metodo .card-body .fw-medium { font-size: 0.8rem !important; }
    .card-metodo .card-body .icon { width: 16px !important; height: 16px !important; }
}


/* =========================================================
   14. SLIDER NOTIZIE MULTI-ITEM (posts-slider.php)
   ========================================================= */

/* =========================================================
   14. SLIDER NOTIZIE MULTI-ITEM (posts-slider.php)
   ========================================================= */

.posts-slider-section {
    border-bottom: 1px solid var(--header-border, #e5e7eb);
}

/* Controlli prev/next custom */
.posts-slider-control {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border-color: #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
}

.posts-slider-control:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* Card singola */
.posts-slider-card {
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #ffffff;
    box-shadow: var(--card-shadow, 0 2px 8px rgba(0,0,0,0.06));
}

.posts-slider-card:hover {
    box-shadow: var(--card-shadow-hover, 0 8px 24px rgba(0,0,0,0.12));
    transform: translateY(-4px);
}

/* Wrapper immagine con aspect ratio fisso */
.posts-slider-img-wrap {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.posts-slider-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.posts-slider-card:hover .posts-slider-img-wrap img {
    transform: scale(1.05);
}

/* Badge categoria */
.posts-slider-img-wrap .badge {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.6rem;
    z-index: 2;
}

/* Indicatori carousel */
.posts-slider-indicators {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.posts-slider-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--brand-primary);
    opacity: 0.3;
    margin: 0 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.posts-slider-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Card title su hover */
.posts-slider-card .card-title {
    transition: color 0.2s ease;
}

.posts-slider-card:hover .card-title {
    color: var(--brand-primary) !important;
}

/* ═════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (< 768px)
   ═════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .posts-slider-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .posts-slider-section h3.h4 {
        font-size: 1.15rem;
    }
    
    .posts-slider-img-wrap {
        height: 200px;
    }
    
    .posts-slider-card .card-title {
        font-size: 0.95rem !important;
    }
    
    .posts-slider-card .card-text {
        font-size: 0.8rem !important;
        /* Proprietà standard + vendor prefix per compatibilità */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }
}

/* ═════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (768px - 991.98px)
   ═════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .posts-slider-img-wrap {
        height: 140px;
    }
}


/* Fix layout categorie */
.editorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card-editorial {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.article-card-editorial:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ace-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ace-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ace-tag {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1rem 1rem 0.5rem;
    border-radius: 4px;
}

.ace-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 1rem;
    color: #212529;
}

.ace-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0.5rem 1rem;
}

.ace-date {
    display: block;
    font-size: 0.8rem;
    color: #adb5bd;
    padding: 0.75rem 1rem 1rem;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   16. PAGINA BLOG — Banda navigazione e card (blog.php)
   ========================================================= */

/* Banda navigazione categorie */
.blog-nav-bar {
    border-bottom: 2px solid var(--header-border, #e5e7eb);
}

.blog-nav-btn {
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;

    transition: all 0.2s ease;
}

.blog-nav-btn.btn-danger {
    box-shadow: 0 2px 8px rgba(152, 0, 0, 0.2);
}

.blog-nav-btn.btn-outline-secondary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* Griglia articoli */
.blog-grid-section {
    background-color: var(--section-gray, #f8f9fa);
}

/* Card articolo blog */
.blog-card {
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #ffffff;
    box-shadow: var(--card-shadow, 0 2px 8px rgba(0,0,0,0.06));
}

.blog-card:hover {
    box-shadow: var(--card-shadow-hover, 0 8px 24px rgba(0,0,0,0.12));
    transform: translateY(-4px);
}

.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.05);
}

.blog-card-img-wrap .badge {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.6rem;
    z-index: 2;
}

.blog-card .card-title {
    transition: color 0.2s ease;
}

.blog-card:hover .card-title {
    color: var(--brand-primary) !important;
}

/* Responsive mobile */
@media (max-width: 767.98px) {
    .blog-nav-bar .d-flex {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem;
    }
    
    .blog-nav-btn {
        flex-shrink: 0;
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .blog-card-img-wrap {
        height: 200px;
    }
    
    .blog-card .card-title {
        font-size: 0.9rem !important;
    }
    
    .blog-card .card-text {
        font-size: 0.78rem !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }
}