/*
Theme Name: Nital (Flatsome Child)
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0-20260603
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ---- Checkout checboxes ---- */
.woocommerce-terms-and-conditions-wrapper #terms {
    display: none;
}

.woocommerce-terms-and-conditions-wrapper #terms ~ .required {
    display: none;
}

/* ---- End of Checkout checboxes ---- */

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/nital/fonts/Gilroy-Light.otf') format('opentype');
    font-weight: 100 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/nital/fonts/Gilroy-ExtraBold.otf') format('opentype');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Gilroy', sans-serif;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ============================================================
   Mega Menu Prodotti — layout tabs verticali (CSS Grid)
   ============================================================ */

/* 2 colonne esplicite: categorie | pannelli prodotti — niente wrap */
.nvl-mm-tabs.tabbed-content {
    display: grid !important;
    grid-template-columns: 22% 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}

/* Colonna sinistra: tab categorie in verticale */
.nvl-mm-tabs > ul.nav {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    border-bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nvl-mm-tabs > ul.nav > li.tab {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.nvl-mm-tabs > ul.nav > li.tab > a {
    display: block;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 8px;
    color: #1d1d1f !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: none !important;
    text-align: left;
    transition: background .15s ease;
}

.nvl-mm-tabs > ul.nav > li.tab > a:hover {
    background: #f5f5f7;
}

.nvl-mm-tabs > ul.nav > li.tab.active > a {
    background: #f0f0f0;
    color: #1d1d1f !important;
}

/* Colonna destra: pannelli prodotti */
.nvl-mm-tabs > .tab-panels {
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
}

/* "Title Small" del featured_box come pre-titolo (sopra) stile NUOVO */
.nvl-mm-tabs .icon-box-text {
    display: flex;
    flex-direction: column;
}

.nvl-mm-tabs .icon-box-text h6 {
    order: -1; /* sposta sopra il titolo h5 */
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #d94343;
}

/* Tile attività (placeholder finché non carichi le immagini) */
/* Col 3 — tile attività a dimensione fissa come l'originale (180×100) */
.nvl-mm-tile {
    width: 180px !important;
    max-width: 180px !important;
    height: 100px !important;
    min-height: 100px !important;
    border-radius: 8px;
    overflow: hidden;
    margin-left: auto; /* allinea a destra nella colonna come l'originale */
}

/* Mobile (off-canvas accordion): tabs orizzontali scrollabili */
@media (max-width: 768px) {
    .nvl-mm-tabs.tabbed-content {
        display: block !important;
    }

    .nvl-mm-tabs > ul.nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nvl-mm-tabs > ul.nav > li.tab {
        width: auto;
    }

    .nvl-mm-tabs > ul.nav > li.tab > a {
        white-space: nowrap;
    }
}

/* Rimuove l'indicatore "line" nero di Flatsome sulle tab categorie */
.nvl-mm-tabs > ul.nav > li.tab > a::before,
.nvl-mm-tabs > ul.nav > li.tab > a::after {
    display: none !important;
    content: none !important;
}

.nvl-mm-tabs > ul.nav {
    border: 0 !important;
    box-shadow: none !important;
}

/* Col 2 — card prodotto come l'originale (#f9fafb, raggio 8px) */
.nvl-mm-tabs .tab-panels .col-inner {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px !important;
}