/************************** 

Base 


**************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f8fb;
  color: #333;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  margin-left: 201px;
  padding: 20px;
  flex: 1;
  margin-top: 20px;  /* Aggiungi un margine top per compensare l'altezza del top menu */
}


/************************** 


Grid


**************************/

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.grid-item {
  position: relative;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-item i {
  font-size: 48px;
  color: #006fa6;
  margin-bottom: 20px;
}

.grid-item .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #80bfff;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid white;
}




/************************** 


prodotti


**************************/

.product-cards {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px; /* compensa margini delle card */
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 16px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  
    /* 4 colonne con margine */
    /*
    width: calc(25% - 20px); 
    */

    /* 5 colonne con margine */
    width: calc(20% - 20px);

    flex: 0 0 auto;
    position: relative;
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  // max-height: 200px;
  max-height: 100%;
}

.product-card h4 {
  margin-top: 15px;
}

.product-card p {
  font-size: 14px;
  color: #666;
}

.product-card button i {
  margin-right: 8px;
  font-size: 16px;
}

/* Prezzi */
.product-pricing {
  display: flex;
  align-items: center;     /* allinea verticalmente i testi */
  justify-content: center; /* centra orizzontalmente */
  gap: 10px;               /* spazio tra prezzo vecchio e nuovo */
  margin: 12px 0;
}

.old-price {
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #006fa6; /* colore brand principale */
}
.product-price-iva {
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
}

.product-badge {
  position: absolute;
  top: 5px;
  right: 5px;           /* spostato a destra */
  background: #e63946;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  width: 52px;           /* dimensioni fisse */
  height: 52px;
  border-radius: 50%;    /* rende il badge circolare */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  font-size: 9px;
}


.product-title {
  text-align: center;     /* centra il titolo */
  margin: 12px 0;         /* spaziatura verticale */
  font-size: 16px;        /* dimensione coerente */
  font-weight: 700;       /* enfasi sul titolo */
  color: #333;            /* colore leggibile */
}


/************************** 


View


**************************/


.view-btn {
  background-color: #006fa6;
  color: white;
  border: 2px solid #006fa6;
}

.view-btn:hover {
  background-color: #005b8a;
  border-color: #005b8a;
  transform: translateY(-3px);
}


/************************** 


bottone carrello


**************************/

.cart-btn {
  background-color: #28a745;
  color: white;
  border: 2px solid #28a745;
}

.cart-btn:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-3px);
}





/************************** 


Tabella prodotti 


**************************/

.product-table {
    margin-top: 10px;
}

.product-table h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 15px;
  /* text-align: center; */
  border: 1px solid #ddd;
}

.table th {
  background-color: #006fa6;
  color: white;
  font-size:12px;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: #f1f1f1;
}

.product-image {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.table .btn {
  margin: 5px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.table .btn-primary {
  background-color: #006fa6;
  border-color: #006fa6;
  color: white;
}

.table .btn-primary:hover {
  background-color: #005b8a;
  border-color: #005b8a;
}

.table .btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.table .btn-success:hover {
  background-color: #218838;
  border-color: #218838;
}

.table tbody tr:hover {
  background-color: #e6f7ff;
  cursor: pointer;
}






/************************** 


topbar


**************************/

.topbar {
  background-color: #006fa6;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.topbar-brand {
  display: flex;
  align-items: center;
}

.ditta-name {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-right: 20px;
}

.topbar-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.topbar-menu li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.topbar-menu li a i {
  margin-right: 8px;
  font-size: 18px;
}







/******************

    Notifiche nella topbar

******************/

.ico_notifiche {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.ico_notifiche:hover .notification-badge {
  background-color: #ff4d4d;
}

.notification-message {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  width: auto;
  max-width: 400px;
  margin-right:8px;
}

.notification-message p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
}
.notif-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 0px 0px;
  border-bottom: 1px solid #f0f2f6;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f9fcff; }

.notif-ico i {
  color: #006fa6;       /* colore brand */
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.notif-body { display: grid; gap: 4px; }
.notif-text { color: #333; line-height: 1.35; }
.notif-time { color: #777; font-size: 12px; }




/****************


Mini riepilogo carrello


***************/

.cart-message {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  width: auto;
  max-width: 400px;
  margin-right:8px;
}

.cart-message p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}


/* ===== Mini Carrello (popup) ===== */
.cart-mini {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  background: #ffffff;
  border-radius: 12px;
}

.cart-mini__header {
  padding: 10px 14px;
  border-bottom: 1px solid #e6e9ef;
  background: #f7fbff;
}
.cart-mini__header h3 {
  font-size: 16px;
  color: #006fa6;
  margin: 0;
}

.cart-mini__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 40vh;          /* scroll se lungo */
  overflow-y: auto;
}

.cart-mini__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f2f6;
}
.cart-mini__row:last-child { border-bottom: 0; }

.cart-mini__info {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;               /* spazio fra codice e descrizione */
  min-width: 0;           /* per truncation eventuale */
}

.cart-mini__sku {
  font-weight: 700;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
}

.cart-mini__desc {
  color: #555;
  font-size: 14px;
  line-height: 1.3;
}

.cart-mini__desc_a {
  color: #000 !important;  
  text-decoration: underline !important;
}

/* Prezzo sempre a destra, no wrap */
.cart-mini__price {
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  margin-left: auto;      /* assicura l’allineamento a destra anche su mobile */
}

.cart-mini__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #e6e9ef;
  background: #f9fcff;
}
.cart-mini__total span { color: #333; }
.cart-mini__total strong { font-size: 16px; }

.cart-mini__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 10px 14px 2px;
}

/* ---- Actions in popup: mini-carrello ---- */
.cart-mini__actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;            /* niente sottolineatura */
  border: 0;
  transition: background .2s ease, color .2s ease, transform .06s ease;
}

/* Primario pieno */
.cart-mini__actions .btn-link-alt {
  background: #006fa6;
  color: #fff;
}
.cart-mini__actions .btn-link-alt:hover {
  background: #005b8a;
}

/* Secondario “pill” */
.cart-mini__actions .btn-link {
  background: #eaf3f8;
  color: #006fa6;
}
.cart-mini__actions .btn-link:hover {
  background: #d6e9f3;
}

/* Evita che i link dentro la popup ereditino un colore errato */
.cart-mini a {
  color: inherit;
}


/****************


Card-section 


***************/
.card-section {
  width: 100%;
  background-color: white;
  color: #333;
  padding: 20px 15px;
  text-align: left;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.card-section-title {
  font-size: 25px;
  font-weight: bold;
  color: #006FA6;
}


.sub-text {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}







/*********************

 Sidebar 

**********************/
.sidebar {
  background-color: #006fa6;
  color: white;
  width: 201px;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1200;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 10px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  position: relative;
}

.sidebar .badge-red {
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
  position: absolute;
  top: -2px;
  right: 0px;
}

.sidebar ul li a.active {
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-weight: bold;
  padding-bottom: 4px;
  padding-top: 7px;
  padding-left: 5px;
  /* color: #ffdd57; /* colore evidenziato */
}

.sidebar ul li a i {
  margin-right: 8px;
  font-size: 14px;
}

.sidebar ul li a.active i {
  /* color: #ffdd57;  /* evidenzia anche l’icona */
}

.sidebar-toggle {
  display: none;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
}

/* Logo */
.sidebar-logo {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-logo img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 0px;
}










/**************************


Form 


**************************/
.form-container {
  background-color: #ffffff;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.form-control:hover, .form-control:focus {
  border-color: #006fa6;
  outline: none;
}

.btn-submit {
  background-color: #006fa6;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: #005b8a;
}

.select-custom {
  background-color: #fff;
  color: #333;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  border: 2px solid #ddd;
  transition: border-color 0.3s ease;
}

.select-custom:hover, .select-custom:focus {
  border-color: #006fa6;
}

.checkbox-container {
  margin-top: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  min-width: 20px;
  height: 20px;
  border: 2px solid #006fa6;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  background-color: #fff;
  transition: background-color 0.3s ease, border 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background-color: #006fa6;
  border-color: #006fa6;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✔';
  font-size: 16px;
  color: white;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
}

.checkbox-label:hover .checkbox-custom {
  border-color: #005b8a;
}

.checkbox-label span {
  font-size: 14px;
  color: #666;
}

.checkbox-label-checkout {
    margin-left:-20px;
}





/*************************


    Assistenza tecnica


*************************/
.asstec-hr {
    margin:15px;
}
    
.asstec-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 10px;
}







/*************************


    LOGIN


*************************/

.login-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 100vh; */
  background: #f4f8fb;
}

.login-main-margins {
    margin-left:0px; 
    margin-top:0px;
}

.login-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 400px;
  width: 100%;
}

.login-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
  color: #006fa6;
}

.login-sub {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.password-field {
  position: relative;
}

.toggle-visibility {
  position: absolute;
  right: 10px;
  top: 35px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.btn-secondary {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 20px;
  border: 2px solid #006fa6;
  background: #eaf3f8;
  color: #006fa6;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #d6e9f3;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  margin: 15px 0;
}
.login-divider::before, .login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}
.login-divider::before {
  margin-right: 10px;
}
.login-divider::after {
  margin-left: 10px;
}

.login-help-link
{
    cursor: pointer;
    text-decoration-line: underline;
    text-align: center;
}

.login-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  padding-bottom: 10px;
  width:30%;
}

.login-email-error {
    color: red;
    text-align: center;
    padding: 15px;
}








/************************** 


FAQ


**************************/

.faq-section .faq-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.faq-item {
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

/* summary nativo per accessibilità */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-weight: 600;
}
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary i {
  color: #006fa6;               /* colore brand */
  font-size: 18px;
  flex: 0 0 auto;
}

/* stato aperto/hover */
.faq-item[open] > summary { 
  background: #f4f8fb;
  border-bottom: 1px solid #e6e9ef;
}
.faq-item > summary:hover {
  background: #f7fbff;
}

/* contenuto risposta */
.faq-answer {
  padding: 14px 16px;
  color: #555;
  line-height: 1.45;
}

/* azioni sotto l’elenco */
.faq-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}


.faq_inbody_intro {
  margin-bottom: 15px;  
}



/**********************************


TOAST MESSAGES


**********************************/


/* ===== Toast (success / error) ===== */
.toast-container {
  position: fixed;
  top: 70px;           /* sotto la topbar fissa */
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;       /* sopra al resto, sotto eventuali modali critiche */
}

.toast {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 10px;
  min-width: 260px;
  max-width: 400px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #333;
  border: 1px solid #e6e9ef;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast .toast-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.toast .toast-title {
  font-weight: 700;
  margin-bottom: 2px;
  color: #333;
}

.toast .toast-msg {
  font-size: 14px;
  color: #555;
}

.toast .toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}
.toast .toast-close:hover { color: #333; }

/* Varianti */
.toast.success {
  border-left: 4px solid #28a745;    /* verde come i tuoi bottoni success */
}
.toast.success .toast-icon { color: #28a745; }

.toast.error {
  border-left: 4px solid #e03131;    /* rosso per errore */
}
.toast.error .toast-icon { color: #e03131; }

/* Toast con azioni */
.toast.actions {
  grid-template-columns: 24px 1fr auto;
}

.toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.toast-actions button {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background .2s ease;
}

/* Pulsanti conferma/annulla */
.toast-actions .confirm {
  background: #28a745;
  color: #fff;
}
.toast-actions .confirm:hover {
  background: #218838;
}
.toast-actions .cancel {
  background: #e6e9ef;
  color: #333;
}
.toast-actions .cancel:hover {
  background: #d6d9df;
}





/**********************************



BOTTONI



**********************************/


.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin: 10px 0;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.primary-btn i {
  margin-right: 8px;
}

.success-btn {
  background-color: #28a745;
  color: white;
  border: 2px solid #28a745;
  width: auto;
  display:inline-flex;
  text-decoration: none; /* rimuove sottolineatura */
}

.success-btn:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-3px);
}


.info-btn {
  background-color: #006fa6;
  color: white;
  border: 2px solid #006fa6;
  width: auto;
  display:inline-flex;
  text-decoration: none; /* rimuove sottolineatura */
}

.info-btn:hover {
  background-color: #005b8a;
  border-color: #005b8a;
  transform: translateY(-3px);
}

.danger-btn {
  background-color: #e60000;
  color: white;
  border: 2px solid #e60000;
  width: auto;
  display:inline-flex;
  text-decoration: none; /* rimuove sottolineatura */
}

.danger-btn:hover {
  background-color: #cc0000;
  border-color: #cc0000;
  transform: translateY(-3px);
}

.default-btn {
  background-color: #8c8c8c;
  color: white;
  border: 2px solid #8c8c8c;
  width: auto;
  display:inline-flex;
  text-decoration: none; /* rimuove sottolineatura */
}

.default-btn:hover {
  background-color: #737373;
  border-color: #737373;
  transform: translateY(-3px);
}

.warning-btn {
  background-color: #ff9933;
  color: white;
  border: 2px solid #ff9933;
  width: auto;
  display:inline-flex;
  text-decoration: none; /* rimuove sottolineatura */
}

.warning-btn:hover {
  background-color: #ff8000;
  border-color: #ff8000;
  transform: translateY(-3px);
}



/**********************************



STILI FONT E SPAZIATURE PARAGRAFI



**********************************/

.fontred {
    color: red;
}

.p_padded_t {
    padding-top: 10px;
}

.p_padded_b {
    padding-bottom: 10px;
}


/**********************************



UPLOAD FILE



**********************************/


.file-input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}

.file-input:hover {
  border-color: #006fa6;
}




/**********************************



BADGES



**********************************/

.badge-success {
  background-color: #28a745;   /* verde */
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.badge-warning {
  background-color: #ff9933;   /* arancione */
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.badge-danger {
  background-color: #ff3300;   /* rosso */
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}








/**********************************



SCHEDA MACCHINA



**********************************/




/* Layout header scheda: foto + dettagli */
.machine-card {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dbe9f7;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 76, 145, .08);
}

.machine-card-title i {
  font-size: 42px;
}

.machine-header {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.machine-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0px;
  padding: 12px;
  background: #fff;
  border: 1px solid #cfdef1;
  border-radius: 12px;
}

.machine-photo img {
    max-height: 260px;
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.machine-details {
  /* padding-top: 16px; */
  color: #1a2b49;
  font-size: 16px;
  line-height: 1.6;
}

.machine-details h2 {
  margin-bottom: 8px;
  color: #006fa6;
}
.detail-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.detail-list li i { color: #006fa6; margin-right: 8px; }

/* Descrizione estesa e tabella riusano stile card-section/table dell’app */
.machine-description.card-section { margin-top: 20px; }
.machine-data.card-section { margin-top: 20px; }

/* Tabella 3x3: puoi personalizzare le larghezze qui se serve */
.machine-data .table th, .machine-data .table td { text-align: left; }
.machine-data .table tr:hover { background-color: #f7fbff; }
    
    








/* ===== Modal overlay + sheet ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 3000; /* sopra sidebar/topbar */
}

.modal-sheet {
  position: fixed;
  z-index: 3001;
  inset: 0;
  margin: auto;
  width: 50vw;          /* metà larghezza app (desktop) */
  max-width: 960px;     /* limite opzionale */
  min-width: 320px;
  height: 90vh;         /* quasi tutta l'altezza */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  display: grid;
  grid-template-rows: auto 1fr auto; /* header | body (scroll) | footer */
  overflow: hidden;
}

/* Header / Body / Footer */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e9ef;
  background: #f7fbff;
}
.modal-header h3 { margin: 0; font-size: 18px; color: #006fa6; }

.modal-close {
  appearance: none; border: 0; background: transparent;
  font-size: 22px; line-height: 1; cursor: pointer; color: #666;
}
.modal-close:hover { color: #333; }

.modal-body {
  padding: 16px;
  overflow-y: auto; /* scroll verticale */
}

.modal-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid #e6e9ef; background: #fff;
}

/* Checkbox stile coerente (riusa tua classe .checkbox se già presente) */
.modal-footer .checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.modal-footer .checkbox input { width: 18px; height: 18px; accent-color: #006fa6; }

/* Animazione leggera */
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-sheet { animation: modalIn .18s ease-out; }

/* Nascondi davvero gli elementi con [hidden] */
.modal-overlay[hidden],
.modal-sheet[hidden] {
  display: none !important;
}






/* ===== PRODUCT DETAIL (Dashboard) ===== */
.product-detail.card-section {
  padding: 20px;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 33% / 66% */
  gap: 20px;
}

/* MEDIA LEFT */
.pd-media {
  display: grid;
  gap: 12px;
  max-height: 400px;       /* imposta un limite massimo */
}

.pd-main {
  padding: 4px;           /* ridotto rispetto a prima */
  margin-bottom: 8px;     /* piccolo margine controllato */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 400px;       /* imposta un limite massimo */
  overflow: hidden;        /* taglia l’eccesso se l’immagine è troppo alta */  
}
.pd-main img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain; /* mantiene proporzioni corrette */  
  max-height: 100%;
}

/* ZOOM PANEL */
/* Overlay a tutto schermo */
.pd-zoom {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8); /* oscuramento sfondo */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Contenitore immagine */
.pd-zoom-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

/* Immagine zoomata */
.pd-zoom-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Pulsante chiudi */
.pd-zoom-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.pd-zoom[hidden] { display: none !important; }


/* THUMBS */
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 0;          /* rimuove eventuale distacco eccessivo */
}
.pd-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: transform .12s ease, outline-color .12s ease;
}
.pd-thumb:hover {
  transform: translateY(-2px);
  outline-color: #d6e9f3;
}
.pd-thumb.is-active {
  outline-color: #006fa6;
}

/* INFO RIGHT */
.pd-info { display: grid; gap: 14px; }
.pd-title {
  font-size: 22px;
  font-weight: 800;
  color: #333;
  margin: 0;
}
.pd-subtitle {
  font-size: 15px;
  color: #333;
  margin: 0;
}
.pd-desc {
  color: #555;
  line-height: 1.5;
}

/* Prezzi container in colonna */
.pd-pricing {
  display: flex;
  flex-direction: column; /* prezzo sopra/sotto */
  align-items: flex-start;
  gap: 4px;
}

/* Prezzo barrato più grande */
.pd-old {
  color: #888;
  text-decoration: line-through;
  font-size: 18px;      /* più grande rispetto a prima */
  font-weight: 500;
}

/* Riga prezzo attuale + iva */
.pd-current-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* Prezzo attuale */
.pd-current {
  color: #006fa6;
  font-weight: 800;
  font-size: 22px;
}

/* Testo iva */
.pd-iva {
  font-size: 12px;
  color: #666;
}

/* QTY */
.pd-qty {
  border: 1px solid #e6e9ef;
  background: #fff;
  
  display: inline-flex;     /* si misura sul proprio contenuto */
  width: auto;              /* no fill */
  flex: 0 0 auto;           /* se è figlio di un flex container, non crescere */
  justify-self: start;      /* se è in CSS Grid, niente stretch orizzontale */
  align-self: start;        /* idem verticale in Grid */  
}
.pd-qty-btn {
  appearance: none;
  border: 0;
  background: #eaf3f8;
  color: #006fa6;
  font-weight: 700;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
#pd-qty-input {
  width: 56px;
  height: 36px;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #333;
  outline: none;
}

/* ACTIONS */
.pd-actions .product-btn {
  display: inline-flex; /* come chiesto in precedenza */
  text-decoration: none;
}

/* FEATURES */
.pd-features h3 {
  margin: 6px 0;
  font-size: 16px;
  color: #333;
}
.pd-features h2 {
  margin-top: 12px;
  margin-bottom: 3px;
  color: #333;
}
.pd-features table {
  width: 100%;
  border-collapse: collapse;
}
.pd-features table tr:first-child {
  border-top: 1px solid #ddd; /* bordo grigio chiaro sopra la prima riga */
}
.pd-features table tr {
    border-bottom: 1px solid #ddd; /* grigio chiaro */
}
.pd-features table td, 
.pd-features table th {
  padding: 8px 12px;
  text-align: left;
  vertical-align:top;
}

.pd-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.pd-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
}
.pd-features-list i {
  color: #28a745;
}
.pd-features ul {
  margin-left: 20px;
}


/* Pulsanti frecce */
.pd-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10000;
}

.pd-zoom-nav:hover {
  background: #fff;
}

.pd-zoom-prev { left: 20px; }
.pd-zoom-next { right: 20px; }



/* Sezione a tutta larghezza */
.alt-buttons-section {
  width: 100%;
  padding: 20px;
  background: #f9fafc;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}

/* Titolo sezione */
.alt-buttons-section .section-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* Titolo sezione2 */
.section-title-2 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    // font-weight: 700;
    color: #333;
}


/* Gruppo pulsanti */
.alt-buttons-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pulsante singolo */
.alt-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #006fa6;
  background: #fff;
  color: #006fa6;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Stato attivo */
.alt-btn.active,
.alt-btn:hover {
  background: #006fa6;
  color: #fff;
}











    /*****
    
    pagina carrello
    
    ********/


/* ===== Cart Summary ===== */
.cart-summary { display: grid; gap: 14px; }

/* Header */
.cart-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cart-header .btn-link { white-space: nowrap; }

/* Tabella */
.cart-table-wrap { overflow-x: visible; } /* niente scroll */
.cart-table th, .cart-table td { vertical-align: middle; }
.cart-table th.qty, .cart-table td.qty-cell { text-align: center; }
.cart-table th.num, .cart-table td.num { text-align: right; white-space: nowrap; }

.cart-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block;
}
.cart-desc .cart-title { font-weight: 700; color: #333; }
.cart-desc .cart-sku { font-size: 12px; color: #777; }

/* Quantità (riusa stile già definito in scheda prodotto; solo fix contenitore) */
.qty-cell .pd-qty { display: inline-flex; width: auto; flex: 0 0 auto; justify-self: start; align-self: start; }
.qty-cell .pd-qty-input,
.qty-cell .pd-qty .pd-qty-input { width: 56px !important; text-align: center; }

/* Coupon */
.cart-coupon {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.coupon-input {
  flex: 1 1 260px; min-width: 220px;
  border: 3px solid #006fa6; border-radius: 8px; padding: 10px 12px; font-size: 14px;
}

/* Totali */
.cart-totals {
  margin-top: 6px;
  border-top: 1px solid #e6e9ef;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.tot-row {
  display: flex;
  justify-content: flex-end;   /* tutto spinto a destra */
  gap: 20px;                   /* spazio tra etichetta e valore */
}

.tot-row span {
  color: #444;
  text-align: right;           /* etichette allineate a destra */
}

.tot-row strong {
  font-size: 16px;
  text-align: right;           /* valori allineati a destra */
}

.tot-grand strong {
  font-size: 18px;
  color: #006fa6;
}

/* CTA finale */
.cart-cta { display: flex; justify-content: flex-end; }


/* Pulsante Update (aggiorna) */
.cart-update {
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #e03131;
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-update:hover {
  background-color: #218838;
  border-color: #218838;
}

/* Pulsante Elimina */
.cart-remove {
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #e03131;
  background: #fff;
  color: #e03131;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-remove:hover {
  background: #e03131;
  color: #fff;
}

.coupon_price_green {
    color: #00b300
}



/*
 sezione messaggio sfondo azzurro e contorno
*/
.message-blue-section {
  width: 100%;
  padding: 20px;
  /* background: #f9fafc; */
  background: #cceeff;
  border-radius: 12px;
  /* margin: 0px 0; */
  margin-top:10px;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
  font-size: 14px;
  line-height: 1.5;
}
.message-blue-section-fontblue {
    color: #006fa6;
    font-weight: bold;
    font-weight: 800;
}

.message-blue-btn {
  padding: 5px 10px 5px 10px;
  border-radius: 999px;
  border: 1px solid #006fa6;
  background: #fff;
  color: #006fa6;
  /* font-weight: 600; */
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Stato attivo */
.message-blue-btn.active,
.message-blue-btn:hover {
  background: #006fa6;
  color: #fff;
}



/*

    stile per sezione della foto con sotto il pulsante di apertura ticket

*/

.machine-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.machine-media .machine-photo {
  width: 100%;
}

.machine-ticket-btn {
  margin-top: 12px;
}


/*

    nuovo titolo delle card da usare dappertutto

*/

.new-card-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  /* color: #1045a2; */
  color: #006FA6;
  font-size: 22px;
  line-height: 1.25;
}




/* 
    stile del contenitore pannello con 2 colonne per la scheda macchina
*/
.machine-panels 
{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 25px;
}

.machine-panels-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.machine-panels-right > .card-section {
  margin: 0;
}

.machine-panels .machine-card,
.machine-panels .machine-data 
{
  width: 100%;
  min-width: 0;
  margin: 0;
}

/* questo aggiunge lo spazio tra una riga di panel e un'altra */
/*
.machine-panels + .machine-panels {
  margin-top: 20px;
}
*/

/* 

Questo definisce quando i panel delle macchine devono mettersi tutti uno sopra l'altro

@media (max-width: 768px) { 
@media (max-width: 1024px) {
*/
@media (max-width: 1280px) 
{
    .machine-panels 
    {
        grid-template-columns: 1fr;
    }
  
    .product-card {
        width: calc(50% - 20px);
    }  
}