/**
 * APP_CUSTOM.CSS
 * 
 * File dedicato agli stili personalizzati dell'applicazione.
 * Questo file è separato dalla struttura di base per facilitare la manutenzione
 * e permettere aggiornamenti del motore senza rischiare di sovrascrivere i tuoi stili.
 * 
 * Le regole CSS definite qui avranno priorità su quelle predefinite grazie all'ordine
 * di inclusione nel file header.php.
 * 
 * Aggiungi qui tutti i tuoi stili personalizzati per l'interfaccia dell'accounting,
 * componenti custom, animazioni e qualsiasi altra personalizzazione grafica.
 */

/* Esempio di commento per organizzare le sezioni */
/* ===== STILI PERSONALIZZATI ===== f0f2f5  #092E24*/ 

  body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f0f2f5;
            margin: 0;
            padding-top: 25px;
            padding-left: 5px;
            padding-right: 5px;
            padding-bottom: 20px;
            min-height: 100vh;
        }
        .navbar-custom {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 45px;
            background: #f0f2f5;
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }
        .navbar-custom.show {
            display: flex;
        }
        .navbar-custom .navbar-brand {
            font-size: 22px;
            font-weight: bold;
            color: #fff;
            flex: 1;
            text-align: center;
             margin-left: 0px;
        }
        .navbar-custom .navbar-icons {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        .navbar-custom .navbar-icons button,
        .navbar-custom .navbar-icons a {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            transition: opacity 0.3s;
        }
        .navbar-custom .navbar-icons button:hover,
        .navbar-custom .navbar-icons a:hover {
            opacity: 0.8;
        }
        .navbar-custom .navbar-toggle {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
        }
        .app-container {
            display: none;
            width: 100%;
            max-width: 480px;
            background: #ffffff;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            text-align: center;
            margin: 0 auto;
        }
        .offcanvas-custom {
            max-width: 50%;
            background-color:#ccc;
            font-size:20px;
        }
.pwa-footer-bar {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 999;
    background-color: rgba(249, 249, 249, 0.98);
    box-shadow: 0 -5px 10px 0 rgb(0 0 0 / 20%);
    min-height: 60px;
    padding-top:2px;
    display: flex;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}        
        #nav-bottom {
            position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background-color: rgba(249, 249, 249, .98);
    box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, .06);
    min-height: 60px;
    height: calc(62px + (constant(safe-area-inset-bottom))*1.1);
    height: calc(62px + (env(safe-area-inset-bottom)) * 1.1);
    display: flex;
    text-align: center;

        }
        #nav-bottom.show {
            display: block;
        }
        #nav-bottom-content {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
        }
        #nav-bottom-content a {
            color: black;
            text-decoration: none;
            font-size: 18px;
            padding: 5px 0px;
            
        }
        #nav-bottom-content a:hover {
            opacity: 0.8;
        }
        body.with-nav-bottom {
            padding-bottom: 100px;
        }
        .form-control { margin-bottom: 15px; padding: 14px; border-radius: 12px; border: 1px solid #ddd; }
        .btn-primary { padding: 14px; font-weight: bold; width: 100%; border-radius: 12px; border: none; }
        .ios-guide {
            display: none;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
            text-align: left;
            border: 1px solid #eee;
        }
        .status-msg { margin-top: 15px; font-size: 14px; font-weight: 600; min-height: 20px; word-break: break-word; }
        .error { color: #e63946; }
        .success { color: #2a9d8f; }
        .info { color: #457b9d; }
        
.pwa-container{
     background: #ffffff;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top:10px;
}
.pwa-category-slider{
    
           padding-top:5px;
           margin-bottom:20px;
   
}
.pwa-index{
  padding-top:25px;
}
.card-account{
  padding-right:15px; 
  padding-left:15px;  
}
.icon-after{
    border: 1px solid #ddd;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: 0px;
    padding:12px;
    height: 54px;
    min-width: 15px;
     background-color: #f0f2f5;
}
.ms-10{
  margin-left:10px;  
}
.mt-10{
    margin-top:10px;
}
.mb-10{
    margin-bottom:10px;
}
.card-menu-fissi{
    padding:10px;
    border-radius:9px;
    margin:10px;
    background-color:#fff;
    box-shadow: 0 4px 10px 0 #ccc;
}
.card-fissi{
    padding:5px;
    border-radius:9px;
    margin:10px;
    background-color:#f0f2f5;
    box-shadow: 0 4px 10px 0 #777;
}
.pwa-h30{
    font-size: 30px !important;
}
.pwa-h22{
    font-size: 22px !important;
}
.pwa-h20{
    font-size: 20px !important;
}
/* Stile per lo scroll orizzontale fluido */
.horizontal-scroll-wrapper {
    -webkit-overflow-scrolling: touch; /* Scroll fluido su iOS */
    scroll-snap-type: x mandatory;    /* Fa sì che le card "aggancino" la posizione */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Nasconde la scrollbar su Chrome/Safari */
}

.horizontal-scroll-wrapper .card {
    scroll-snap-align: start; /* Allinea la card all'inizio dello scroll */
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}
/* Stile Slider Card Autoslide */
.card-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden; /* Nascondiamo la barra e lo scroll manuale per precisione */
    gap: 1rem;
    padding: 1rem 0;
    transform:translatex(); /* DISABILITA lo smooth del browser che causa il ritorno all'indietro */
}

/* Viewport: la "finestra" che maschera il resto delle card */
.slider-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.rounded-8{
        border-radius:8px !important;
        margin-right:1px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border:1px #ccc;
        width:30px;
       font-weight:600;
}
/* Track: la striscia che si sposta con translate3d */
.slider-track {
    display: flex;
    transition: transform 400ms cubic-bezier(0.42, 0.65, 0.27, 0.99);
    will-change: transform; /* Ottimizzazione GPU */
}

/* Card: dimensioni fisse per calcoli precisi */
.card-item {
    flex: 0 0 280px;
    margin-right: 16px; /* Equivalente a mx-2 (8px + 8px) */
    user-select: none;
}
.card-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.bottom_link_name{
    font-size:12px;
    color: #fff !important;
}
/* Effetto leggero al tocco */
.card-item:active {
    transform: scale(0.98);
}
/* Stile Grid Card PWA */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Effetto al passaggio del mouse (Desktop) */
@media (min-width: 992px) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    }
}

/* Arrotondamento accentuato per stile mobile-app */
.rounded-4 {
    border-radius: 1.25rem !important;
}

/* Immagini card sempre proporzionate */
.card-img-top {
    object-fit: cover;
    height: 180px;
}
/* Stile CTA Personalizzato */
.rounded-4 {
    border-radius: 1.25rem !important;
}

.z-index-1 {
    position: relative;
    z-index: 1;
}

/* Effetto pressione sui bottoni CTA */
.btn:active {
    transform: scale(0.96);
}

/* Animazione pulsante Hero */
.bg-primary .btn-light {
    transition: all 0.3s ease;
}
.bg-primary .btn-light:hover {
    box-shadow: 0 5px 15px rgba(255,255,255,0.3) !important;
}

.divider-trasparent{
    height: 1px;
    display: block;
    margin-bottom: 30px;
    
}
.title-slider-top{
    position:fixed;
    top:45px;
    background-color:#fff;
    width:100%;
    z-index:100;
    left: 0px;
    margin-left:10px;
}

.mceat-green{
    color:#092E24;
}
.allergeni{
    padding-bottom:10px;
}
.pwa-scrollmenu {
    width: 100%;
    height: 110px;
    position:fixed;
    top:45px;
    left: 0px;
    z-index:100;
    padding-top:5px;
    /**used to scroll text*/
    white-space: nowrap;    
    overflow-x: scroll;
    overflow-y: hidden;
    background-color:#f0f2f5;
    /**keep scrolling when
      *finger or cursor scrolling*/
    -webkit-overflow-scrolling: touch; 
   
}
 :root{
      --green:#1F7A4C;
      --red:#D62828;
      --white:#FFFFFF;
      --orange:#F4A300;
      --black:#1A1A1A;
      --green-dark:#0f3f28;
      --green-soft:#123f2c;
      --card:rgba(255,255,255,0.06);
      --border:rgba(255,255,255,0.12);
      --muted:rgba(255,255,255,0.75);
      --shadow:0 20px 60px rgba(0,0,0,0.28);
      --radius:24px;
    }

.pwa-product-card {
   
   
    border-radius: 9px;
    margin:4px;
    background-color: #f7f7f7;
    box-shadow: 0 5px 8px 0px #ccc;
    font-size: 20px;
    width:150px;
    float: none;
    display: inline-block;
}
/*to hide the scrollbars*/
::-webkit-scrollbar {
    display: none;
}
.rounded-bites-top{
   width: 80px;
    height: 25px;
    border-bottom-left-radius: 10px;
    text-align:center;
    background: linear-gradient(135deg, var(--green), var(--orange));
    position:fixed;
    right:-3px;
   top:-1px;
    
}
.rounded-bites-bottom{
   width: 80px;
    height: 25px;
    border-bottom-left-radius: 10px;
    text-align:center;
    background: linear-gradient(135deg, var(--green), var(--orange));
    position:fixed;
    
   bottom:12px;
    
}
.cr {
  width: 125px;
  padding: 0px;
  position: absolute;
  text-align: center;
  color: #fff;
}

.cr-sticky {
  position: fixed;
}

/* Positions */

.cr-top    { top: 25px; }
.cr-bottom { bottom: 10px; }
.cr-left   { left: -50px; }
.cr-right  { right: -30px; }

/* Rotations */

.cr-top.cr-left,
.cr-bottom.cr-right {
  transform: rotate(-40deg);
}

.cr-top.cr-right,
.cr-bottom.cr-left {
  transform: rotate(45deg);
}

/* Colors */

.cr-white     { background-color: #f0f0f0; color: #444; }
.cr-black     { background-color: #333; }
.cr-grey      { background-color: #999; }
.cr-blue      { background-color: #39d; }
.cr-green     { background-color: #1c593a; }
.cr-turquoise { background-color: #1b9; }
.cr-purple    { background-color: #95b; }
.cr-red       { background-color: #e43; }
.cr-orange    { background-color: #e82; }
.cr-yellow    { background-color: #ec0; }


.card-product{
    overflow: hidden;
    margin: -2px 16px 15px 16px;
    border-radius: 15px;
    border: none;
   box-shadow: #c3bebe 0px 1px 10px 0px;
}