/* =========================================================
   GRUPPO GERARDI — Main Stylesheet (Completo e Riorganizzato)
   Versione: 3.6.0 (Pulito, Commenti Corretti, Menu Sistemato)
   Font: Inter | Brand Orange: #ff9c00
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABILI BRAND & RESET
   --------------------------------------------------------- */
:root {
    --brand-orange:       #ff9c00;
    --brand-orange-hover: #e68a00;
    --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-orange);
    --nm-warning:         var(--brand-orange);
    --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;
    --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:    #6b7280;
    --header-top-hover:   #374151;
    --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;
}

/* 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;
}

/* ---------------------------------------------------------
   2. SITE WRAPPER (Contenitore unico con margini e shadow)
   --------------------------------------------------------- */
.site-wrapper {
    width: 100%;
    background-color: var(--section-gray) !important; /* Sfondo grigio chiaro del body */
    padding: 0 var(--nm-margin); /* 60px margini fissi dx/sx */
    position: relative;
    z-index: 1;
}

.site-inner {
    max-width: var(--nm-header-w); /* 1440px */
    margin: 0 auto; /* Centrato */
    background-color: #ffffff; /* Sfondo bianco interno */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Shadow su entrambi i lati */
    position: relative;
    min-height: 100vh; /* Almeno tutta l'altezza viewport */
}

.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; }
}

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

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

.btn-outline-warning {
    color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    background-color: transparent;
}
.btn-outline-warning:hover {
    background-color: var(--brand-orange) !important;
    color: #fff !important;
}

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

/* =========================================================
   4. HEADER & NAVIGAZIONE (SISTEMATO E COMMENTATO)
   ========================================================= */

/* --- 4.1 TOPHAT (Barra superiore Desktop) --- */
.header-tophat {
    background-color: var(--header-top-bg);
    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);
    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); 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;
}

/* --- 4.2 NAVBAR PRINCIPALE (DESKTOP: Allineato a sinistra) --- */
.navbar-main {
    background-color: var(--header-main-bg) !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; /* ALLINEATO A SINISTRA (Logo + Menu) */
    align-items: center;
    gap: 2rem; /* Spazio tra logo e menu */
}

.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; }

/* Link menu principale */
.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: #4a5568 !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    text-transform: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.navbar-main .navbar-nav .nav-link:hover { color: var(--brand-orange) !important; }
.navbar-main .navbar-nav .nav-link.active {
    color: var(--brand-orange) !important;
    font-weight: 600;
}

/* --- 4.3 ICONE E MENU MOBILE --- */
.navbar-contact-icon {
    color: #6b7280;
    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-orange); }

.navbar-main .navbar-toggler {
    border: none;
    color: var(--brand-text-dark);
    padding: 0.4rem;
    background: none;
}

/* --- 4.4 OFFCANVAS MOBILE (Menu a scomparsa) --- */
.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;
}

.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-orange) !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;
}

/* ---------------------------------------------------------
   5. 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 {
    background-color: #ffffff;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 2rem 1rem;
    max-width: var(--nm-max-w);
}
@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-orange);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem;
}
.card-gg .card-link:hover { text-decoration: underline; }

/* Card overlay (video/immagine con titolo in sovrimpressione) */
.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); }

/* ---------------------------------------------------------
   6. 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; }
}

/* ---------------------------------------------------------
   7. CARD SERVIZI & TEAM SECTION
   --------------------------------------------------------- */
.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-orange);
    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-orange); background: transparent; color: var(--brand-orange); font-weight: 600; }
.btn-service:hover { background: var(--brand-orange); 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(255,156,0,0.3); }
.team-avatar { width: 130px; height: 130px; border-radius: 50%; border: 3px solid rgba(255,156,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(255,156,0,0.5); color: var(--brand-orange); border-radius: 30px; padding: 8px 20px; font-weight: 600; }
.team-btn:hover { background: var(--brand-orange); color: #fff; }

/* ---------------------------------------------------------
   8. 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; } }

/* ---------------------------------------------------------
   9. 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-orange); 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-orange-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; }

/* ---------------------------------------------------------
   10. 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; }

/* ---------------------------------------------------------
   11. 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; }

/* Sfondo grigio della sezione */
.section-shadow-tb {
    background-color: #e7e7e7;
    position: relative;
    z-index: 10; /* Fondamentale per far andare l'ombra sopra i blocchi bianchi */
    /* Nessun box-shadow sul div principale! Così i lati restano perfetti. */
}
/* 1. LINEA D'OMBRA SOPRA (sfuma verso l'alto sul bianco) */
.section-shadow-tb::before {
    content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 4px; /* Spessore dell'ombra */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none;
}
/* 2. LINEA D'OMBRA SOTTO (sfuma verso il basso sul bianco) */
.section-shadow-tb::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 4px; /* Spessore dell'ombra */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none;
}

/* ---------------------------------------------------------
   12. 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; }
    
    /* MOBILE: Logo a sinistra, icone a destra (gestito via ms-auto in top.php) */
    .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: 3 colonne centrate, elementi più piccoli */
    .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 "Il Nostro Metodo" (home.php) */
    .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: titolo più piccolo */
    .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)
   ============================================================ */

/* 1. DESKTOP (≥992px) — Logo + Menu allineati a sinistra SENZA spazi inutili */
@media (min-width: 992px) {
    .navbar-main .container-header {
        padding-left: 0 !important;   /* elimina padding sinistro extra */
        padding-right: 0 !important;  /* elimina padding destro extra (se serve) */
        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.85rem !important;
    }
}

/* 2. MOBILE (<992px) — Logo a sinistra, icone a destra, SENZA spazi laterali */
@media (max-width: 991.98px) {
    .navbar-main .container-header {
        padding-left: 0 !important;   /* RIMUOVE SPAZI LATERALI SU MOBILE */
        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;  /* piccolo margine per non attaccare al bordo */
    }

    /* Forza il blocco icone a destra */
    .navbar-main .container-header .d-flex.d-lg-none {
        margin-left: auto !important;
        margin-right: 0.5rem !important; /* piccolo margine destro */
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
    }

    /* Allineamento verticale icone e hamburger */
    .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: 1px;
    background: #c2c2c2;
}


/* --- Hero Title --- */
.gg-page-hero {
    padding: 3rem 0 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-orange);
    background: #fff8e6;
    border: 1px solid #ffd780;
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 1.25rem;
}
.gg-page-hero__eyebrow .icon {
    color: var(--brand-orange);
    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-orange);
    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-orange);
}
.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: #fff8e6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #fcd97a;
}
.gg-feat__icon .icon {
    color: var(--brand-orange);
    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;
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
    .gg-page-hero { padding: 2rem 0 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;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    width: auto !important;
    height: auto !important;
}

/* Dimensioni per le icone */
[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; }

/* Colori */
[data-lucide].white { color: #ffffff !important; }
[data-lucide].orange { color: #ff9c00 !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);
}

/* Cerchio arancione per le icone social */
.icon-circle.orange {
    border-color: #ff9c00 !important;
    color: #ff9c00 !important;
}

/* Hover per cerchio arancione */
.icon-circle.orange:hover {
    background-color: rgba(200, 92, 46, 0.15) !important;
    transform: scale(1.05);
}