/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"weight":["400","500","600","700"],"display":"swap","variable":"--font-inter"}],"variableName":"inter"} ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_8b3a0b';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_8b3a0b';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_8b3a0b {font-family: '__Inter_8b3a0b', '__Inter_Fallback_8b3a0b';font-style: normal
}.__variable_8b3a0b {--font-inter: '__Inter_8b3a0b', '__Inter_Fallback_8b3a0b'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* Font Inter caricato tramite next/font/google in layout.tsx */

/* 
 * Variabili CSS globali (:root) 
 */
:root {
  /* Colori Base */
  --bianco: #ffffff;
  --nero: #323232;
  --grigio-testo: #4b5563;
  --grigio-medio: #64748b;
  --grigio-chiaro: #f0f4f3;
  --border-gray: #e2e8f0;
  --divider: #f3f4f6;

  /* Colori Tema */
  --verde: #00964d;
  --verde-scuro: #007a3e;
  --blu: #0e7bbf;
  --blu-scuro: #0b6299;
  --rosso: #ef4444;
  --rosso-scuro: #dc2626;
  --rosso-chiaro: #fee2e2;
  --giallo-chiaro: #fef3c7;
  --giallo-scuro: #f59e0b;
  --celeste-chiaro: #dce5e4;

  /* Colori UI Specifici */
  --sfondo: #f0f4f3;
  --shadow-header: rgba(0, 0, 0, 0.1);
  --shadow-card: rgba(0, 0, 0, 0.06);
  --shadow-admin: rgba(0, 0, 0, 0.05);
  --focus-verde: rgba(0, 150, 77, 0.15);
  --focus-rosso: rgba(239, 68, 68, 0.15);

  /* Placeholder & Badge */
  --placeholder-start: #e2e8f0;
  --placeholder-end: #cbd5e1;
  --badge-bg: #e0f2fe;
  --badge-text: #0369a1;

  /* Admin Buttons */
  --edit-bg: #f1f5f9;
  --edit-text: #475569;
  --edit-hover: #e2e8f0;
  --delete-bg: #ffeeee;
  --delete-hover: #fecaca;
  --select-bg: #f8fafc;
  --close-icon: #94a3b8;

  --radius: 2rem;
}

/* Reset CSS di base */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--sfondo);
  color: var(--nero);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  flex-direction: column;
}

/* === HEADER === */
.sticky-header-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-header);
  background-color: var(--bianco);
}

header {
  background-color: var(--bianco);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content {
  max-width: 1600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-title {
  color: var(--bianco);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--nero);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background-color: var(--grigio-chiaro);
  color: var(--verde);
}

.nav-link.active {
  background-color: var(--verde);
  color: var(--bianco);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* === DISCLAIMER BANNER === */
.disclaimer-banner {
  background-color: var(--giallo-chiaro);
  color: var(--nero);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.85rem;
  line-height: 1.4;
}

.disclaimer-content {
  max-width: 1600px;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  padding-right: 2rem; /* Spazio per la X di chiusura */
}

.disclaimer-text-container {
  max-width: 900px;
}

.disclaimer-text-short {
  margin: 0;
  font-weight: 500;
}

.disclaimer-text-full {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-weight: 400;
  color: var(--grigio-testo);
  text-align: left;
  animation: fadeIn 0.3s ease-in-out;
}

.disclaimer-btn-link {
  background: none;
  border: none;
  color: var(--blu);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  margin-left: 0.25rem;
  font-size: inherit;
  cursor: pointer;
  display: inline-block;
}

.disclaimer-btn-link:hover {
  color: var(--blu-scuro);
}

.disclaimer-btn-less {
  margin-top: 0.5rem;
  margin-left: 0;
  display: block;
}

.disclaimer-close {
  position: absolute;
  right: 1.5rem;
  top: 0.75rem;
  background: none;
  border: none;
  color: var(--grigio-testo);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.disclaimer-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--nero);
}

/* === INPUT GLOBALI: stile base per tutti i campi form === */
input,
textarea,
select {
  font-family: inherit;
  background-color: var(--bianco);
  color: var(--nero);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.85rem;
  border: 1px solid var(--border-gray);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px var(--focus-verde);
}

/* === LAYOUT PRINCIPALE 2 COLONNE === */
.dashboard-layout {
  flex: 1 1;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start;
}

/* === COLONNA SINISTRA: sticky, scrollabile, larghezza fissa === */
.sidebar-left {
  width: 34%;
  min-width: 300px;
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* === COLONNA DESTRA: occupa lo spazio rimanente === */
.main-right {
  width: 66%;
  flex: 1 1;
}

/* === STILI DEL FORM (Profilo Utente) === */
.form-section {
  background-color: var(--bianco);
  padding: 1rem;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 2px 8px var(--shadow-card);
}

/* === FORM LAYOUT === */
.form-header {
  margin-bottom: 0.75rem;
}

/* Griglia a 2 colonne per i campi base del profilo */
.form-grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Label compatta sopra ogni input */
.label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grigio-testo);
}

/* Input in errore */
.input-error {
  border-color: var(--rosso) !important;
  box-shadow: 0 0 0 3px var(--focus-rosso) !important;
}

.field-error {
  color: var(--rosso);
  font-size: 0.78rem;
  font-weight: 500;
}

/* === RADIO BUTTONS === */
.radio-group,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.radio-group input[type="radio"],
.radio-label input[type="radio"] {
  width: auto;
  accent-color: var(--verde);
  cursor: pointer;
}

/* Radio group in errore */
.radio-group.input-error {
  border: 1.5px solid var(--rosso) !important;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 0 0 3px var(--focus-rosso) !important;
}

/* === DASHBOARD PRODOTTI === */
.products-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-header {
  padding: 0.75rem 1.25rem;
  background-color: var(--verde);
  border-radius: 1rem;
  color: var(--bianco);
  text-align: center;
}

.dashboard-header p {
  opacity: 0.9;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.products-grid-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

.product-card {
  background-color: var(--bianco);
  border-radius: 1rem;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 8px var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.4s ease-in-out;
}

/* === STILI AGGIUNTI DA PAGE.TSX === */
.section-title {
  color: var(--verde-scuro);
  border-bottom: 2px solid var(--verde-chiaro);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-left: 0.5rem;
}

.tag-capsule { background: #fee2e2; color: #991b1b; }
.tag-fiale { background: #e0f2fe; color: #075985; }
.tag-bustine { background: #fef3c7; color: #92400e; }
.tag-sciroppo { background: #dcfce7; color: #166534; }
.tag-default { background: #f1f5f9; color: #475569; }

.price-badge {
  font-weight: bold;
  color: var(--verde);
  font-size: 1.1rem;
}

.summary-box {
  background: white;
  border: 2px solid var(--verde);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.summary-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--verde-scuro);
}

.analysis-card {
  background: white;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-gray);
}

.analysis-title {
  color: var(--nero);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.analysis-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Compact Row Structure */
.analysis-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.35rem 0.6rem;
  background: white;
  border-bottom: 1px solid var(--divider);
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.analysis-row:last-child {
  border-bottom: none;
}

.row-left {
  display: flex;
  flex-direction: column;
}

.param-name {
  font-weight: 600;
  color: var(--nero);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.param-value {
  font-weight: 600;
  color: var(--grigio-medio);
  font-size: 0.8rem;
  white-space: nowrap;
}

.row-comment {
  font-size: 0.75rem;
  color: var(--grigio-medio);
  margin-top: 0.05rem;
  padding-left: 1.25rem;
}

/* Synthesis Box */
.synthesis-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.synthesis-box.neutral {
  background: var(--grigio-chiaro);
  color: var(--grigio-testo);
  border-left: 4px solid var(--border-gray);
}

.synthesis-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--grigio-medio);
  letter-spacing: 0.02em;
}

/* Goal Row */
.goal-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.goal-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grigio-testo);
}

.goal-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nero);
  margin: 0;
}

.full-width {
  grid-column: 1 / -1;
}

/* === FORM SECTION INPUTS: sfondo leggermente grigio, focus verde === */
.form-section input:not([type="checkbox"]):not([type="radio"]),
.form-section textarea,
.form-section select {
  border: 1px solid var(--border-gray);
  background-color: #f8fafc;
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
}

.form-section textarea {
  min-height: 60px;
  resize: vertical;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  background-color: var(--bianco);
  border-color: var(--verde);
  box-shadow: 0 0 0 2px var(--focus-verde);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-placeholder {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, var(--placeholder-start) 0%, var(--placeholder-end) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.product-title {
  font-size: 0.9rem;
  color: var(--verde);
  font-weight: 700;
  margin-bottom: 0;
}

.product-field {
  font-size: 0.8rem;
  line-height: 1.4;
}

.product-field strong {
  color: var(--nero);
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-contraindications {
  padding: 0.6rem;
  background-color: var(--rosso-chiaro);
  border-left: 4px solid var(--rosso);
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

.product-caution {
  padding: 0.6rem;
  background-color: var(--giallo-chiaro);
  border-left: 4px solid var(--giallo-scuro);
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

/* === BOTTONI === */

/* Azione principale (Genera proposta) */
.btn-primary {
  background-color: var(--verde);
  color: var(--bianco);
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--verde-scuro);
  transform: scale(1.02);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Azione secondaria (Dammi un'alternativa) */
.btn-secondary {
  margin-top: 0.35rem;
  background-color: var(--blu);
  color: var(--bianco);
  border: none;
  border-radius: 2rem;
  padding: 0.45rem 0.85rem;
  font-weight: 500;
  font-size: 0.8rem;
  transition: background-color 0.2s, transform 0.1s;
  width: 100%;
}

.btn-secondary:hover:not(:disabled) { background-color: var(--blu-scuro); }
.btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

/* Bottone Demo nella header del form */
.btn-demo {
  background-color: var(--bianco);
  color: var(--verde);
  border: 1px solid var(--verde);
  border-radius: var(--radius);
  padding: 0.3rem 0.8rem;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-demo:hover { background-color: var(--verde); color: var(--bianco); }
.btn-demo:active { transform: scale(0.95); }

/* === EMPTY STATE === */
.empty-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: var(--bianco);
  border-radius: var(--radius);
  text-align: center;
  gap: 1rem;
  min-height: 400px;
  box-shadow: 0 2px 8px var(--shadow-card);
}

.empty-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.empty-dashboard h3 {
  color: var(--verde);
  font-size: 1.3rem;
}

.empty-dashboard p {
  color: var(--grigio-medio);
  max-width: 360px;
  font-size: 0.95rem;
}

/* === NUOVI ELEMENTI PROFILO CLIENTE === */

/* === CHECKBOX PILLS: selezione multipla (bisogni, vincoli) === */
.label-optional {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--grigio-medio);
  margin-left: 3px;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  padding: 0.3rem 0;
}

/* Ogni opzione appare come una pill cliccabile */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--nero);
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  border: 1px solid var(--border-gray);
  background: var(--grigio-chiaro);
  transition: background-color 0.15s, border-color 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.checkbox-label:has(input:checked) {
  background: rgba(0, 150, 77, 0.1);
  border-color: var(--verde);
  color: var(--verde);
  font-weight: 600;
}

/* L'input checkbox è nascosto; la pill fa da toggle visuale */
.checkbox-label input[type="checkbox"] {
  display: none;
}

/* === TOGGLE SWITCH: On/Off per sezioni avanzate === */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--placeholder-end);
  transition: .3s;
  border-radius: 21px;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider { background-color: var(--verde); }
input:focus-visible + .toggle-slider { box-shadow: 0 0 0 3px var(--focus-verde); }
input:checked + .toggle-slider:before { transform: translateX(17px); }

/* === SEZIONE AVANZATA COLLASSABILE === */
.advanced-section {
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.advanced-toggle {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--grigio-chiaro);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grigio-testo);
  transition: background-color 0.2s;
}

.advanced-toggle:hover { background: var(--celeste-chiaro); }

/* Select styled like input */
select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* === ANIMAZIONI === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SPINNER === */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === LOADING OVERLAY === */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 244, 243, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayFadeIn 0.25s ease-out;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--bianco);
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--border-gray);
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-message {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grigio-testo);
  margin: 0;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === SEZIONE TRASPARENZA TECNICA (Vector DB + Candidati) ===
   Pannello collassabile nella sidebar sinistra che mostra i candidati
   restituiti dal retrieval semantico e il loro stato nella selezione. === */
.tech-section {
  margin-top: 0.75rem;
  background-color: var(--bianco);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px var(--shadow-card);
  overflow: hidden;
}

/* Header cliccabile del pannello tecnico */
.tech-section-toggle {
  width: 100%;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f3 100%);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nero);
  transition: background-color 0.2s;
}

.tech-section-toggle:hover { background: linear-gradient(135deg, #e2e8f0 0%, #dce5e4 100%); }
.tech-toggle-icon { font-size: 0.7rem; color: var(--grigio-medio); }

/* Contenuto espanso */
.tech-section-content {
  padding: 0.75rem 1rem;
  animation: fadeIn 0.3s ease-in-out;
}

.tech-subsection {
  margin-bottom: 0.85rem;
}

.tech-subsection:last-child { margin-bottom: 0; }

.tech-subsection h4 {
  font-size: 0.78rem;
  color: var(--verde);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tech-description {
  font-size: 0.76rem;
  color: var(--grigio-medio);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.candidates-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.candidate-item {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-gray);
  background: var(--grigio-chiaro);
  transition: border-color 0.2s, background-color 0.2s;
}

.candidate-item.candidate-selected {
  border-color: var(--verde);
  background: rgba(0, 150, 77, 0.06);
}

.candidate-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.candidate-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grigio-medio);
  background: var(--border-gray);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.candidate-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-success {
  color: #166534;
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
}

.badge-error {
  color: #991b1b;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
}

.badge-warning {
  color: #854d0e;
  background-color: #fef9c3;
  border: 1px solid #fef08a;
}

.badge-neutral {
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.badge-rotation {
  color: #92400e;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
}

.candidate-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.candidate-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blu);
  text-transform: capitalize;
}

.candidate-distance {
  font-size: 0.72rem;
  color: var(--grigio-medio);
  font-family: 'Courier New', monospace;
}

.candidate-desc {
  font-size: 0.8rem;
  color: var(--grigio-testo);
  line-height: 1.4;
  margin: 0;
}

/* === RESPONSIVITÀ === */
@media (max-width: 960px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar-left {
    width: 100%;
    min-width: unset;
    position: static;
    max-height: unset;
  }

  .main-right {
    width: 100%;
  }

  .products-grid-right {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) and (max-width: 1600px) {
  .products-grid-right {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === PAGINA ADMIN (Gestione Integratori e Principi Attivi) === */
.admin-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-form-card {
  background: var(--bianco);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-admin);
  margin-bottom: 2rem;
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.admin-badge {
  font-size: 0.8rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}

.status-inactive {
  background-color: var(--rosso-chiaro);
  color: var(--rosso-scuro);
  border: 1px solid var(--rosso);
}

.admin-card-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
}

.admin-btn-edit {
  flex: 1 1;
  padding: 0.65rem;
  background: var(--edit-bg);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--edit-text);
  transition: background-color 0.2s;
}

.admin-btn-edit:hover {
  background: var(--edit-hover);
}

.admin-btn-delete {
  flex: 1 1;
  padding: 0.65rem;
  background: var(--delete-bg);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--rosso);
  transition: background-color 0.2s;
}

.admin-btn-delete:hover {
  background: var(--delete-hover);
}

.admin-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-gray);
  background-color: var(--select-bg);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.admin-select:focus {
  border-color: var(--verde);
}

.close-x {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--close-icon);
  transition: color 0.2s;
}

.close-x:hover {
  color: var(--rosso);
}

.warning-alert {
  background-color: var(--giallo-chiaro);
  border: 1px solid var(--giallo-scuro);
  color: #92400e;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.7; }
}

/* === AVVERTENZE INFO TOOLTIP === */
.avv-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.avv-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #94a3b8;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  font-style: normal;
  line-height: 1;
  transition: background 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.avv-tooltip-wrap:hover .avv-tooltip-icon {
  background: #475569;
}

.avv-tooltip-box {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  width: 280px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.avv-tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.avv-tooltip-wrap:hover .avv-tooltip-box {
  display: block;
}

.avv-tooltip-box.right-align {
  left: auto;
  right: 0;
  transform: none;
}

.avv-tooltip-box.right-align::after {
  left: auto;
  right: 12px;
  transform: none;
}

