/* =========================================
   1. VARIABILI GLASS & DEEP BLUE
   ========================================= */
:root {
    /* Brand Colors - Più brillanti */
    --brand-primary: #0080ff;
    --brand-secondary: #4de5ff;
    --bg-dark: #0f172a;
    /* Schiarito: da #020617 (nero blu) a #0f172a (blu ardesia scuro) */

    /* Glass Effects - Più luminosi e trasparenti */
    --glass-bg: rgba(30, 41, 59, 0.5);
    /* Più chiaro e meno opaco */
    --glass-thick: rgba(30, 41, 59, 0.85);
    --glass-blur: blur(15px);
    /* Aumentato il blur per un effetto più morbido */

    /* Borders & Accents - Più visibili */
    --border-glass: 1px solid rgba(255, 255, 255, 0.15);
    --border-accent: 1px solid rgba(77, 229, 255, 0.4);
    --accent-glow: 0 0 20px rgba(0, 128, 255, 0.25);

    /* Text */
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    /* Testo secondario molto più leggibile */

    /* Layout */
    --header-height: 75px;
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-md: 10px;
}

svg.mdi {
    width: 1rem;
    height: 1rem;
    color: inherit;
    fill: currentColor !important;
}


/* Reset Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
    background-attachment: fixed;
    /* Mantiene lo sfondo fermo mentre scorri */
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding-top: var(--header-height);
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =========================================
   2. HEADER & DESKTOP NAV
   ========================================= */
header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-glass);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menu Desktop */
.menu-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-content>li>a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
}

.menu-content>li>a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}


/* Bottone con stile Accent */
.contact-cta {
    display: inline-block;
    padding: 0.5rem;
    background: var(--brand-primary);
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--accent-glow);
    transition: var(--transition);
    border: var(--border-accent);
    font-weight: bold;
}

.contact-cta a {
    padding: 0 !important;
    margin: 0;
    padding: 0 !important;
}

.contact-cta:hover {
    box-shadow: 0 0 25px rgba(0, 112, 243, 0.6);
    filter: brightness(1.1);
}

.contact-cta svg.mdi {
    color: inherit;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    fill: currentColor;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--glass-thick);
    border: var(--border-glass);
    border-radius: 12px;
    min-width: 200px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: var(--text-muted);
    border-radius: 6px;
}

.dropdown-content a:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* =========================================
   3. RESPONSIVE (Mobile Menu)
   ========================================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--brand-secondary);
    margin: 5px 0;
}

.close-menu {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility per JS */
body.menu-open {
    overflow: hidden;
}

/*INDEX E HERO*/
.hero-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Altezza dinamica basata sulla finestra */
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 'cover' è meglio di 'contain' per i banner a tutta larghezza */
}

/* Overlay che sfuma l'immagine verso il colore del body */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.3) 0%,
            /* Meno coprente sopra */
            var(--bg-dark) 100%);
    z-index: 2;
}

/* Contenuto sopra l'immagine */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 1rem 5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Dimensione adattiva */
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Bottone con stile Accent */
.btn-cta {
    display: inline-block;
    padding: 12px 32px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--accent-glow);
    transition: var(--transition);
    border: var(--border-accent);
}

.btn-cta:hover {
    box-shadow: 0 0 25px rgba(0, 112, 243, 0.6);
    filter: brightness(1.1);
}

/**/
.page-wrap {
    padding: 1rem 5rem;
}



@media (max-width: 768px) {
    .header-container {
        padding: 0 2rem;
    }

    .page-wrap {
        padding: 1rem 2rem;
    }

    .hamburger {
        display: block;
    }

    .menu-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 2rem;
        transition: var(--transition);
        border-left: var(--border-glass);
    }

    .menu-content.active {
        right: 0;
    }

    .close-menu {
        display: block;
        width: 100%;
        text-align: right;
        margin-bottom: 20px;
    }

    .close-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
    }

    .menu-content>li {
        width: 100%;
    }

    .menu-content>li>a {
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .hero-banner {
        height: 50vh;
    }

    .hero-content {
        padding: 0rem 2rem;
    }
}

/* Layout Griglia */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Card Prodotto */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border: var(--border-accent);
    box-shadow: var(--accent-glow);
}

/* Immagine */
.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    scale: 1.1;
}

/* Info Testuali */
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: var(--brand-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Bottone Glass */
.btn-details {
    margin-top: auto;
    padding: 0.8rem;
    text-align: center;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid var(--brand-primary);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--brand-primary);
    color: white;
}

.product-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Galleria */
.main-image-wrapper {
    background: var(--glass-bg);
    border: var(--border-glass);
    padding: 10px;
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
}

.main-image-wrapper img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: var(--border-glass);
    transition: var(--transition);
}

.thumb:hover {
    border: var(--border-accent);
}

/* Info e Titoli */
.product-title {
    font-size: 2.5rem;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumb {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.glass-info-card {
    background: var(--glass-thick);
    border-left: 4px solid var(--brand-primary);
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    margin-bottom: 2rem;
}

.glass-info-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glass-info-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Bottone Call to Action */
.btn-quote {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--brand-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: var(--accent-glow);
    transition: var(--transition);
}

.btn-quote:hover {
    transform: scale(1.05);
    background: var(--brand-secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FOOTER: GLASS & DEEP BLUE DESIGN
   ========================================= */
.site-footer {
    background: linear-gradient(to bottom, transparent, rgba(2, 6, 23, 0.8));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: var(--border-glass);
    padding: 5rem 0 0 0;
    margin-top: 5rem;
}

.footer-container {
    margin: 0 auto;
    padding: 0 5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

/* Brand Section */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 112, 243, 0.5);
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Navigazione */
.footer-nav h4 {
    color: var(--brand-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-nav ul li {
    margin-bottom: 1rem;
}

.footer-nav ul li a {
    color: var(--text-muted);
    font-size: 1rem;
    display: inline-block;
    position: relative;
}

.footer-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--brand-secondary);
    transition: width 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-nav ul li a:hover::after {
    width: 100%;
}

/* Area Riservata Button */
.admin-link {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.85rem !important;
}

.admin-link:hover {
    background: var(--brand-primary) !important;
    box-shadow: var(--accent-glow);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 5rem;
    padding: 2rem 5rem;
    background: rgba(2, 6, 23, 0.9);
    border-top: var(--border-glass);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bottom-flex strong {
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 2rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================
   IL SELETTORE CATEGORIE (CONTENITORE)
   ========================================= */
.category-nav {
    display: flex;
    justify-content: left;
    align-items: stretch;
    /* Fa sì che tutte le card abbiano la stessa altezza */
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 5rem;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

/* =========================================
   IL SINGOLO ELEMENTO (ICONA ACCANTO AL TESTO)
   ========================================= */
.cat-item {
    display: flex;
    flex-direction: row;
    /* Icona a sinistra, testo a destra */
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: var(--border-glass);
    border-radius: 12px;
    /* Un raggio leggermente minore sta meglio in orizzontale */
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    min-width: 140px;
    /* Un po' più largo per ospitare il testo accanto */
    max-width: 220px;
    /* Evita che diventino troppo larghi */
}

.cat-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.cat-item.active {
    background: var(--brand-primary);
    border-color: var(--brand-secondary);
    color: #fff;
    box-shadow: var(--accent-glow);
}

/* =========================================
   TESTO E ICONE
   ========================================= */
.cat-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Impedisce all'icona di rimpicciolirsi se il testo è lungo */
}

.cat-icon svg.mdi {
    width: 22px;
    /* Leggermente più piccola perché è sulla stessa riga */
    height: 22px;
    fill: currentColor;
    transition: var(--transition);
}

.cat-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: left;
    /* Testo allineato a sinistra rispetto all'icona */
    white-space: normal;
    /* Permette al testo di andare a capo */
    word-wrap: break-word;
}

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .category-nav {
        justify-content: flex-start;
        /* Fondamentale per lo scroll orizzontale */
        padding-left: 1.5rem;
    }

    .cat-item {
        min-width: 130px;
        padding: 0.7rem 1rem;
        flex-shrink: 0;
        /* Impedisce alle card di schiacciarsi nello scroll */
    }

    .cat-icon svg.mdi {
        width: 18px;
        height: 18px;
    }

    .cat-item span {
        font-size: 0.7rem;
    }
}



/*CHI SIAMO*/
/* Layout della pagina Chi Siamo */
.about-page {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.accent-title {
    color: var(--brand-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.highlight {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.glass-deco {
    background: var(--glass-bg);
    padding: 15px;
    border-radius: 30px;
    border: var(--border-glass);
    box-shadow: var(--accent-glow);
}

.glass-deco img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* Blocco Esperienza */
.experience-block {
    margin-bottom: 5rem;
}

.glass-card.full-width {
    background: var(--glass-thick);
    padding: 3.5rem;
    border-radius: 30px;
    border: var(--border-glass);
    position: relative;
    overflow: hidden;
}

.year-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.exp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

/* Call to Action Sopralluogo */
.cta-about .cta-glass {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem;
    background: linear-gradient(90deg, var(--glass-bg), rgba(0, 112, 243, 0.1));
    border: var(--border-accent);
    border-radius: 25px;
    backdrop-filter: var(--glass-blur);
}

.cta-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--brand-secondary);
}

.cta-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cta-info p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .exp-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-glass {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* --- Home Intro --- */
.home-intro {
    padding: 1rem 5rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 112, 243, 0.15);
    color: var(--brand-secondary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid var(--brand-primary);
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.features-list svg {
    width: 20px;
    fill: var(--brand-secondary);
}

/* Stat Cards */
.intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: var(--border-glass);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--brand-secondary);
    margin-bottom: 0.5rem;
}

/* --- Category Grid Home --- */
.home-categories {
    padding: 1rem 5rem;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.home-cat-card {
    background: var(--glass-bg);
    border: var(--border-glass);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.home-cat-card:hover {
    background: var(--glass-thick);
    transform: translateY(-10px);
    border-color: var(--brand-primary);
    box-shadow: var(--accent-glow);
}

.cat-card-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--brand-primary);
    margin-bottom: 1.5rem;
}

.home-cat-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.home-cat-card p {
    font-size: 0.85rem;
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 700;
}

.home-cat-card p svg.mdi {
    color: inherit;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    fill: currentColor;
}

/* Buttons */
.btn-secondary-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 15px;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 3rem;
    }

    .features-list li {
        justify-content: left;
    }

    .btn-secondary-outline {
        margin: 15px 0 0 0;
    }

    .home-intro {
        padding: 1rem 2rem;

    }

    .home-categories {
        padding: 1rem 2rem;

    }

    .intro-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: var(--border-glass);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

.info-card i,
.info-card svg {
    font-size: 2rem;
    color: var(--brand-secondary);
}

.contact-form-container {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--glass-thick);
    border: var(--border-accent);
    box-shadow: var(--accent-glow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
}

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

/* =========================================
   CONTACT FORM EXTRAS (Privacy & Product Badge)
   ========================================= */

/* Badge Prodotto Collegato */
.linked-product-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(77, 229, 255, 0.1);
    border: 1px solid rgba(77, 229, 255, 0.3);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.linked-product-badge svg {
    width: 24px;
    height: 24px;
    fill: var(--brand-secondary);
    flex-shrink: 0;
}

.linked-product-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.linked-product-badge .text-sm {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.linked-product-badge strong {
    color: var(--text-main);
    font-size: 1.05rem;
}

/* Custom Privacy Checkbox */
.privacy-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Il quadratino custom */
.checkmark {
    position: relative;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

/* Hover effect */
.custom-checkbox-container:hover input~.checkmark {
    border-color: var(--brand-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Checked state */
.custom-checkbox-container input:checked~.checkmark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.4);
}

/* Il tick (spunta) interno */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Mostra la spunta quando è checked */
.custom-checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Testo Privacy */
.privacy-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.privacy-text a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-text a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Il quadratino custom (Rinforzato per evitare il collasso) */
.checkmark {
    position: relative;
    top: 2px;
    /* Allineamento col testo */
    height: 20px;
    width: 20px;
    min-width: 20px;
    /* Forza la larghezza minima, impedisce che diventi una riga */
    min-height: 20px;
    /* Forza l'altezza minima */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
    display: inline-block;
    flex-shrink: 0;
    /* Ordina a flexbox di non restringere questo elemento */
}

/* Hover effect */
.custom-checkbox-container:hover input~.checkmark {
    border-color: var(--brand-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Checked state */
.custom-checkbox-container input:checked~.checkmark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.4);
}

/* Il tick (spunta) interno centrato nel quadratino */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    /* Distanza dal bordo sinistro del quadratino */
    top: 2px;
    /* Distanza dal bordo superiore del quadratino */
    width: 5px;
    /* Larghezza della stanghetta corta */
    height: 10px;
    /* Altezza della stanghetta lunga */
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Mostra la spunta quando è checked */
.custom-checkbox-container input:checked~.checkmark:after {
    display: block;
}


/* =========================================
   PRIVACY & COOKIE POLICY STYLES
   ========================================= */

.policy-header {
    text-align: left;
    margin-bottom: 3rem;
}

.policy-header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.policy-content {
    padding: 0rem;
    border-radius: var(--radius-md);
    margin-bottom: 4rem;
    line-height: 1.8;
    /* Aumenta l'interlinea per facilitare la lettura */
    color: var(--text-muted);
}

.policy-section h2 {
    font-size: 1.8rem;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--brand-primary);
    padding-left: 1rem;
}

.policy-section h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-section p {
    margin-bottom: 1.25rem;
}

.policy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.75rem;
}

.policy-section strong {
    color: var(--text-main);
}

.policy-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.cookie-type-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.cookie-type-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.cookie-type-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Utilities per pulsanti nella pagina */
.mt-4 {
    margin-top: 1.5rem;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--brand-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--accent-glow);
}

.btn-save:hover {
    background-color: var(--brand-secondary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-save svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .policy-content {
        padding: 1.5rem;
    }

    .policy-header h1 {
        font-size: 2rem;
    }
}

/* =========================================
   DATI AZIENDA E LISTE (Privacy Policy)
   ========================================= */

/* Box Dati Azienda */
.company-info-box {
    background: rgba(0, 128, 255, 0.05);
    /* Sfondo leggermente azzurrato */
    border: 1px solid rgba(0, 128, 255, 0.1);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.company-info-box p {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Spazio tra le emoji e il testo */
}

.company-info-box p:last-child {
    margin-bottom: 0;
}

.company-info-box a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.company-info-box a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.company-info-box svg.mdi {
    color: var(--brand-secondary);
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    fill: currentColor;
}

/* Liste Customizzate per la Policy */
.policy-section ul {
    list-style: none;
    /* Rimuove i pallini standard del browser */
    padding-left: 0;
    margin-bottom: 2rem;
}

.policy-section li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Creazione di un "Bullet" customizzato con i colori del brand */
.policy-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    /* Allineato verticalmente alla prima riga di testo */
    width: 8px;
    height: 8px;
    background-color: var(--brand-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(77, 229, 255, 0.5);
    /* Effetto glow */
}

.policy-section li strong {
    color: var(--text-main);
    font-weight: 600;
}

/* =========================================
   PAGINA DOVE TROVARCI
   ========================================= */

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

/* Info Card Verticale */
.info-card-vertical {
    padding: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item svg {
    width: 28px;
    height: 28px;
    fill: var(--brand-secondary);
    filter: drop-shadow(0 0 5px rgba(77, 229, 255, 0.4));
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Container Mappa */
.location-map {
    position: relative;
    padding: 10px;
    /* Effetto cornice */
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-container {
    border-radius: calc(var(--radius-md) - 5px);
    overflow: hidden;
    line-height: 0;
    /* Applichiamo un filtro per rendere la mappa leggermente più fredda in armonia col sito */
    filter: grayscale(0.2) contrast(1.1) brightness(0.9);
    transition: var(--transition);
}

.map-container:hover {
    filter: grayscale(0);
}

.map-container iframe {
    display: block;
}

/* Bottone Calcola Percorso */
.w-100 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-map {
        order: -1;
        /* Mette la mappa sopra le info su tablet/mobile */
    }
}

/* =========================================
   INTEGRAZIONI PAGINA "DOVE TROVARCI"
   ========================================= */

/* Spaziature e separatori */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Colonna di sinistra */
.location-info-wrapper {
    display: flex;
    flex-direction: column;
}

/* Mappa proporzionata all'altezza della colonna sinistra */
.location-grid .map-container iframe {
    height: 100%;
    min-height: 600px;
    object-fit: cover;
}

/* --- SEZIONE SOCIAL --- */
.social-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.social-card svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: var(--transition);
}

/* Hover specifici per i brand */
.social-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--accent-glow);
}

.social-card:hover svg {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 576px) {
    .social-cards {
        grid-template-columns: 1fr;
    }

    .location-grid .map-container iframe {
        min-height: 400px;
    }
}

/* --- SEZIONE SOCIAL (Premium Glass Style) --- */
.social-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.social-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.social-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    /* Forma a pillola super moderna */
    background: rgba(255, 255, 255, 0.03);
    /* Vetro quasi invisibile da spento */
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    overflow: hidden;
    /* Transizione "elastica" per un feeling molto fluido */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Livello interno per il gradiente hover */
.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Assicuriamoci che testo e icona stiano sopra il background colorato */
.social-card span,
.social-card svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-card svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* =========================================
   HOVER BRANDS (La magia dei colori)
   ========================================= */

/* Facebook */
.social-card.fb-btn:hover {
    border-color: #1877F2;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
}

.social-card.fb-btn::before {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0.4));
}

.social-card.fb-btn:hover::before {
    opacity: 1;
}

/* Instagram */
.social-card.ig-btn:hover {
    border-color: #E1306C;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.35);
}

.social-card.ig-btn::before {
    /* Gradiente ufficiale di Instagram alleggerito per il glassmorphism */
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.2), rgba(230, 104, 60, 0.3), rgba(220, 39, 67, 0.4), rgba(204, 35, 102, 0.4), rgba(188, 24, 136, 0.3));
}

.social-card.ig-btn:hover::before {
    opacity: 1;
}

/* Icone che si ingrandiscono leggermente */
.social-card:hover svg {
    transform: scale(1.15) rotate(-5deg);
    /* Piccolo tocco dinamico */
}

/* Responsive */
@media (max-width: 576px) {
    .social-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    /* Prende il colore del link */
}

.footer-social a:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: var(--accent-glow);
    transform: translateY(-3px);
}

.footer-disclaimer strong {
    color: var(--text-main);
    /* Evidenzia le keyword SEO */
}

/* =========================================
   404 ERROR PAGE (Glass & Neon)
   ========================================= */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    /* Occupa una buona porzione dello schermo */
    padding: 4rem 1rem;
    text-align: center;
}

.error-container {
    max-width: 650px;
    width: 100%;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Bagliore decorativo sullo sfondo della card */
.error-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.15) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    /* Effetto testo sfumato e luminoso */
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(0, 128, 255, 0.3));
}

.error-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.error-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Assicurati di avere uno stile anche per btn-cancel se non lo avevi nel lato pubblico */
.error-actions .btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--glass-bg);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: var(--border-glass);
    transition: var(--transition);
}

.error-actions .btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
}

.error-actions svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 576px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .error-actions a {
        width: 100%;
        justify-content: center;
    }
}