        @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

        .morquee {
            display: flex;
            justify-content: center ;
            background-color: #114274;
            padding: 20px 0;
            font-size: 18px;
            
            
        }

        .partnerships .container {
            
            display: flex;
            justify-content: center;
            padding: 20px 0;
            gap: 40px;
            flex-wrap: wrap;
        }

        .partner {
            max-height: 80px;
        }


        .morquee marquee {
            color: #ffff;
            
         }

        .banner{
            width: 100%;
            background-color: #114274;
            color: white;
            text-align: center;
            padding: 10px 0px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .banner span {
            font-size: 11px;
            font-weight: 600;
        }
        /* ==========================================================================
           VARIABILI CSS E REGOLE BASE
           ========================================================================== */
        :root {
            --primary-color: #0d6efd;
            --primary-hover: #0b5ed7;
            --text-dark: #212529;
            --text-muted: #6c757d;
            --bg-light: #f8f9fa;
            --navbar-height: 76px;
            --transition-smooth: all 0.25s ease-in-out;
            --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
            font-family: Inter
        }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--text-dark);
            background-color: #ffffff;
            padding-top: 0;
        }

        /* ==========================================================================
           NAVBAR PERSONALIZZATA
           ========================================================================== */
        .custom-navbar {
            background-color: #ffffff !important;
            box-shadow: var(--shadow-subtle);
            transition: var(--transition-smooth);
            padding: 2px 0;
           
        }

        /* Logo Brand Style */
        .navbar-brand img {
            max-height: 60px;
            width: auto;
            object-fit: contain;
        }

        /* Nav Links Centrati */
        .navbar-nav .nav-link {
            font-weight: 500;
            font-size: 0.85rem;
            color: var(--text-dark);
            padding: 0.5rem 1rem !important;
            position: relative;
            transition: var(--transition-smooth);
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--primary-color);
        }

        /* Effetto Underline per Hover sui link desktop */
        @media (min-width: 992px) {
            .navbar-nav .nav-link::after {
                content: '';
                position: absolute;
                bottom: 2px;
                left: 50%;
                width: 0;
                height: 2px;
                background-color: var(--primary-color);
                transition: var(--transition-smooth);
                transform: translateX(-50%);
                border-radius: 2px;
            }

            .navbar-nav .nav-link:hover::after,
            .navbar-nav .nav-link.active::after {
                width: 60%;
            }
        }

        /* Pulsanti e Icone Azione (Cerca / Carrello) */
        .btn-action-icon {
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: var(--text-dark);
            background-color: #f1f3f5;
            border: none;
            position: relative;
            transition: var(--transition-smooth);
            text-decoration: none;
        }

        .btn-action-icon:hover {
            background-color: var(--primary-color);
            color: #ffffff;
            transform: translateY(-2px);
        }

        /* Badge del Carrello */
        .cart-badge {
            position: absolute;
            top: -3px;
            right: -3px;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 0.25em 0.5em;
            border-radius: 50rem;
            border: 2px solid #ffffff;
        }

        /* Form di Ricerca Comprimibile */
        .search-collapse-container {
            max-width: 300px;
        }

        .search-input-group .form-control {
            border-radius: 50rem 0 0 50rem;
            border-right: none;
            padding-left: 1.25rem;
        }

        .search-input-group .btn {
            border-radius: 0 50rem 50rem 0;
            border-left: none;
        }

        /* Navbar Toggler (Hamburger) Custom */
        .navbar-toggler {
            border: none;
            padding: 0.4rem 0.6rem;
            border-radius: 8px;
            background-color: #f8f9fa;
            z-index: 1060; /* Assicura che rimanga sopra il menu fullscreen */
        }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
        }

        /* ==========================================================================
           NAVBAR FULLSCREEN OVERLAY PER MOBILE
           ========================================================================== */
        @media (max-width: 991.98px) {
            .custom-navbar .navbar-collapse {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                height: 100dvh; /* Supporto per viewport dinamico mobile */
                background-color: #ffffff;
                z-index: 1050;
                display: flex !important;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 2rem 1.5rem;
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
                overflow-y: auto;
            }

            .custom-navbar .navbar-collapse.show {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .custom-navbar .navbar-nav {
                width: 100%;
                text-align: center;
                margin-bottom: 2rem !important;
            }

            .custom-navbar .navbar-nav .nav-link {
                font-size: 1.5rem;
                font-weight: 600;
                padding: 0.85rem 0 !important;
            }

            .custom-navbar .dropdown-menu {
                border: none !important;
                background-color: #f8f9fa;
                text-align: center;
                margin-top: 0.5rem;
                border-radius: 1rem !important;
                padding: 1rem;
            }

            .custom-navbar .dropdown-item {
                font-size: 1.1rem;
                text-align: left;
                white-space: normal !important;
                word-wrap: break-word;
            }

            /* Blocco dello scroll del corpo pagina quando il menu è aperto */
            body.menu-open {
                overflow: hidden !important;
            }

            .navbar-toggler {
                position: relative;
                z-index: 1060;
                border: none;
                outline: none;
                box-shadow: none !important;
                padding: 0.5rem;
            }
        }

        /* Dropdown Categorie Mega Menu */
        .custom-navbar .dropdown-menu {
            border: 1px solid var(--card-border);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
            border-radius: 1rem;
            padding: 1.25rem;
            max-height: 320px;
            overflow-y: auto;
            
            
        }

        .category-dropdown-menu {
            min-width: 320px;
            max-height: 75vh;
            overflow-y: auto;
        }

        .category-sublink {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-decoration: none;
            transition: var(--transition-smooth);
            display: inline-block;
            padding: 0.15rem 0;
        }

        .category-sublink:hover {
            color: var(--primary-color);
        }

        /* ==========================================================================
           HERO SECTION & CONTENUTO DIMOSTRATIVO
           ========================================================================== */
        .hero-section {
            background: linear-gradient(rgba(255, 255, 255, 0.445), rgba(139, 138, 138, 0.466)), 
                        url('/static/img/hero.png') center/cover no-repeat;
            
            height: 80vh;
            
            
        }

        .hero-section .container {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: start;
            justify-content: center;
            gap: 4px;

        }

        .hero-section .container h1 {
            font-weight:bolder;
            line-height: 42px;
            font-size: 42px;
            
        }

         .hero-section .container p {
            color: #000000;
         }

        .hero-section .container button {
            padding: 12px 15px;
        }

       

        
        

        

        /* ==========================================================================
           SEZIONE CATEGORIE MINIMAL
           ========================================================================== */
        .category-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--text-dark);
            transition: var(--transition-smooth);
        }

        .category-img-container {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 1.25rem;
            overflow: hidden;
            background-color: #f1f5f9;
            margin-bottom: 0.75rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            transition: var(--transition-smooth);
        }

        .category-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .category-card:hover .category-img-container img {
            transform: scale(1.08);
        }

        .category-card:hover .category-img-container {
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }

        .category-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-dark);
            transition: var(--transition-smooth);
            text-align: center;
        }

        .category-card:hover .category-name {
            color: var(--primary-color);
        }


        /* Prodotti in evdenza */

        .card-product {
            border: 1px solid #edf2f7;
            border-radius: 1rem;
            transition: var(--transition-smooth);
            overflow: hidden;
        }

        .card-product:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        }

        .product-img-wrapper {
            position: relative;
            background-color: #f8f9fa;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .product-img-wrapper img {
            max-height: 80%;
            object-fit: contain;
            transition: var(--transition-smooth);
        }

        .card-product:hover .product-img-wrapper img {
            transform: scale(1.05);
        }


        /* best seller Product Cards */
        .product-card {
            border: 1px solid var(--card-border);
            border-radius: 1rem;
            overflow: hidden;
            transition: var(--transition-smooth);
            background: #ffffff;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            box-shadow: 0 10px 25px rgba(0,0,0,0.06);
            transform: translateY(-3px);
        }

        .product-img-holder a {
            position: relative;
            aspect-ratio: 4/3;
            overflow: hidden;
            background-color: #ffff;
            display: flex;
            align-items: center;
            justify-content: center;
            
        }

        .product-img-holder a img {
            max-height: 86%;
            object-fit: contain;
            border-radius: 8px;

            
            transition: var(--transition-smooth);
        }

        

        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.35em 0.65em;
            border-radius: 0.5rem;
        }

        /* PROMO BANNER (Exact design match) */
        .promo-banner-section {
            background-color: #114274;
            color: #ffffff;
            padding: 70px 20px;
            text-align: center;
            margin-top: 3rem;
            margin-bottom: 3rem;
        }

        .promo-banner-title {
            font-size: clamp(1.8rem, 4vw, 2.75rem);
            font-weight: 700;
            line-height: 1.25;
            max-width: 850px;
            margin: 0 auto 1.75rem auto;
            letter-spacing: -0.01em;
        }

        .btn-promo {
            
            font-weight: 600;
            padding: 0.75rem 2rem;
            border-radius: 0.75rem;
            border: none;
            font-size: 1rem;
            transition: all 0.25s ease;
            
        }

        .btn-promo:hover {
            background-color: #1260c4;
            color: #ffffff;
            transform: translateY(-2px);
            
        }


        /* ISO SECTION */
        .iso-section .container{
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px 0;
        }

        .iso-img{
            max-height: 100px;
        }

        /* FOOTER STYLING */
        .site-footer {
            background-color: #114274;
            color: #94a3b8;
            font-size: 0.9rem;
        }

        .site-footer h5 {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1.25rem;
        }

        .site-footer ul li {
            margin-bottom: 0.6rem;
        }

        .site-footer ul li a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .site-footer ul li a:hover {
            color: #ffffff;
        }

        .footer-social-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background-color: #1e293b;
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .footer-social-btn:hover {
            background-color: #ffff;
            color: #0b5ed7;
        }

        .footer-bottom {
            border-top: 1px solid #1e293b;
        }

        .footer-brand img{
            max-height: 90px;
            width: auto;
            object-fit: contain;
        }


        /* Mobile Carousel for Products */
        @media (max-width: 900px) {
            .mobile-products-carousel {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 1rem;
                gap: 1rem !important;
            }
            .mobile-products-carousel > [class*="col"] {
                flex: 0 0 82% !important;
                max-width: 82% !important;
                scroll-snap-align: start;
            }
            .mobile-products-carousel::-webkit-scrollbar {
                height: 4px;
            }
            .mobile-products-carousel::-webkit-scrollbar-thumb {
                background: #cbd5e1;
                border-radius: 4px;
            }
        }

        /* ==========================================================================
           SOSTITUZIONE STILI INLINE (CSP: niente 'unsafe-inline' in style-src)
           Ogni classe sotto sostituisce un attributo style="..." rimosso
           dai template per rispettare la Content Security Policy rigorosa.
           ========================================================================== */

        /* --- Navbar / bottoni azione (base.html) --- */
        .btn-action-icon {
            width: 40px;
            height: 40px;
        }

        /* --- Icone contatti (contatti.html) --- */
        .contact-icon {
            width: 48px;
            height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        /* --- Logo area admin login (admin/login.html) --- */
        .admin-logo-wrap {
            width: 68px;
            height: 68px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* --- Immagini prodotto dettaglio (prodotto.html) --- */
        .prodotto-img {
            max-height: 350px;
            object-fit: contain;
        }

        /* --- Immagini griglia catalogo (prodotti.html, index.html) --- */
        .catalogo-img {
            max-height: 140px;
            object-fit: contain;
        }

        /* --- Badge sottocategoria piccola (prodotti.html) --- */
        .badge-sub {
            font-size: 0.75rem;
        }

        /* --- Titolo prodotto troncato a due righe (prodotti.html) --- */
        .titolo-clamp {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* --- Input quantità --- */
        .qty-80 {
            width: 80px;
        }
        .qty-80-48 {
            width: 80px;
            height: 48px;
        }

        /* --- Bottone torna su (prodotti.html) --- */
        .back-to-top {
            width: 45px;
            height: 45px;
            z-index: 1000;
        }

        /* --- Descrizione prodotto (prodotto.html) --- */
        .prodotto-desc {
            line-height: 1.7;
            overflow-wrap: anywhere;
        }

        /* --- Testo piccolo (carrello.html) --- */
        .fs-075 {
            font-size: 0.75rem;
        }

        /* --- Chi siamo banner (index.html) --- */
        .chi-siamo-banner {
            background-color: #114274;
            color: #ffffff;
            padding: 60px 0;
        }
        .chi-siamo-banner .lead-chi {
            line-height: 1.6;
        }
        .chi-siamo-img {
            max-height: 480px;
            object-fit: cover;
            object-position: center;
        }

        /* --- Titolo FAQ (index.html) --- */
        .faq-title {
            letter-spacing: -0.02em;
        }

        /* --- Bordi accordion FAQ (index.html) --- */
        .faq-item {
            border-color: #111111 !important;
        }

        /* --- Valori chi siamo (chi_siamo.html) --- */
        .about-values-text {
            max-width: 600px;
        }

        /* --- Tabella magazzino admin (admin/catalog.html) --- */
        .admin-scroll-wrap {
            max-height: 550px;
            overflow-y: auto;
        }
        .admin-sticky-head {
            position: sticky;
            top: 0;
            z-index: 5;
        }
        .admin-th-img {
            min-width: 190px;
        }
        .admin-th-stock {
            width: 100px;
        }
        .admin-th-actions {
            width: 130px;
        }

        /* ==========================================================================
           CHI SIAMO (spostato dal blocco <style> inline di chi_siamo.html per CSP)
           ========================================================================== */
        .about-hero {
            background: linear-gradient(135deg, #0b2a4a 0%, #114274 100%);
            color: #ffffff;
            padding: clamp(60px, 10vh, 110px) 0;
            text-align: center;
            position: relative;
        }

        .about-hero h1 {
            font-size: clamp(2.2rem, 5vw, 3.5rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 0.75rem;
            position: relative;
            z-index: 1;
        }

        .about-hero p.lead {
            font-size: clamp(1rem, 2vw, 1.25rem);
            opacity: 0.95;
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        /* Testo storia */
        .about-story {
            padding: clamp(40px, 8vh, 80px) 0;
            background: #ffffff;
        }

        .about-story .section-title {
            font-size: clamp(1.75rem, 3vw, 2.25rem);
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .about-story .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -10px;
            width: 60px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .about-story .text-block p {
            font-size: clamp(1rem, 1.4vw, 1.125rem);
            line-height: 1.8;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
        }

        .about-story .text-block p:first-child::first-letter {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            float: left;
            margin-right: 0;
            line-height: 0.85;
            margin-top: -0.15rem;
            margin-bottom: -0.1rem;
        }

        .about-story .text-block .highlight {
            color: var(--text-dark);
            font-weight: 600;
        }

        /* Immagine con picture */
        .about-image {
            padding: clamp(40px, 8vh, 80px) 0;
            background: var(--bg-light);
        }

        .about-image .image-wrapper {
            position: relative;
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.6);
        }

        .about-image .image-wrapper img {
            display: block;
            width: 100%;
            height: auto;
        }

        /* Valori */
        .about-values {
            padding: clamp(40px, 8vh, 80px) 0;
            background: #ffffff;
        }

        .value-card {
            background: #ffffff;
            border: 1px solid #e9ecef;
            border-radius: 1.25rem;
            padding: 2rem 1.5rem;
            height: 100%;
            transition: var(--transition-smooth);
            text-align: center;
        }

        .value-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
            border-color: var(--primary-color);
        }

        .value-icon {
            width: 70px;
            height: 70px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(13, 110, 253, 0.1);
            color: var(--primary-color);
            font-size: 1.75rem;
            border-radius: 1rem;
            margin-bottom: 1.5rem;
            transition: var(--transition-smooth);
        }

        .value-card:hover .value-icon {
            background: var(--primary-color);
            color: #ffffff;
            transform: rotate(-5deg) scale(1.1);
        }

        .value-card h4 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 0.75rem;
        }

        .value-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* CTA finale */
        .about-cta {
            background: linear-gradient(135deg, #0b2a4a 0%, #114274 100%);
            color: #ffffff;
            padding: clamp(50px, 8vh, 90px) 0;
            text-align: center;
        }

        .about-cta h2 {
            font-size: clamp(1.75rem, 3vw, 2.25rem);
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .about-cta p {
            font-size: clamp(1rem, 1.5vw, 1.125rem);
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 2rem auto;
        }

        @media (max-width: 767.98px) {
            .about-story .text-block p:first-child::first-letter {
                float: none;
                font-size: 1.5rem;
                margin-right: 0;
            }
        }

        /* ==========================================================================
           ADMIN LOGIN (spostato dal blocco <style> inline di admin/login.html per CSP)
           ========================================================================== */
        .login-page {
            min-height: 100vh;
            background: linear-gradient(135deg, #f3f6fa, #e8eef6);
        }

        .login-card {
            width: min(100%, 430px);
        }