@charset "UTF-8";
/* ==============================================
   Drag & Drop File Upload Styles
   ============================================== */
.drag-drop-container {
  margin: 20px 0;
}

.drag-drop-zone {
  border: 2px dashed #E2E2E2;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
  margin: 20px 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.drag-drop-zone:hover {
  border-color: #ccc;
  background-color: #f5f5f5;
}

.drag-drop-zone.dragover {
  border-color: #E61E1E;
  background-color: #fff5f5;
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
}

.drag-drop-zone.has-files {
  border-color: #28a745;
  background-color: #f8fff8;
}

.drag-drop-icon {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.drag-drop-zone:hover .drag-drop-icon {
  color: #E61E1E;
}

.drag-drop-text {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.drag-drop-hint {
  font-size: 14px;
  color: #999;
  line-height: 1.4;
}

.drag-drop-hint span {
  font-weight: 600;
}

.drag-drop-hint small {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #aaa;
}

.hidden-input {
  display: none !important;
}

/* File Preview Styles */
.file-preview {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
}

.file-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  max-width: 280px;
  min-width: 180px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.file-item:hover {
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.file-item .file-name {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin-right: 8px;
  word-break: break-all;
  color: #333;
  font-weight: 500;
}

.file-item .remove-file {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.file-item .remove-file:hover {
  background: #c82333;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.file-item .remove-file:active {
  -webkit-transform: scale(0.95);
  transform: scale(0.95);
}

/* Toggle Old Method */
.old-upload-toggle {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.old-upload-toggle a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.old-upload-toggle a:hover {
  background-color: #f5f5f5;
  color: #333;
  text-decoration: underline;
}

/* Old Upload Method (nascosto di default) */
#old-upload-method {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

/* States and Animations */
.drag-drop-zone.uploading {
  pointer-events: none;
  opacity: 0.7;
}

.drag-drop-zone.uploading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #E61E1E;
  border-top-color: transparent;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .drag-drop-zone {
    padding: 30px 15px;
    margin: 15px 0;
  }

  .drag-drop-icon {
    font-size: 36px;
  }

  .drag-drop-text {
    font-size: 15px;
  }

  .drag-drop-hint {
    font-size: 13px;
  }

  .file-preview {
    gap: 10px;
  }

  .file-item {
    max-width: 100%;
    min-width: auto;
    font-size: 13px;
    padding: 8px 10px;
  }

  .file-item .remove-file {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .drag-drop-zone {
    padding: 25px 10px;
  }

  .drag-drop-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .drag-drop-text {
    font-size: 14px;
  }

  .file-preview {
    gap: 8px;
  }

  .file-item {
    font-size: 12px;
    padding: 6px 8px;
  }
}
/* Dark mode support (opzionale) */
@media (prefers-color-scheme: dark) {
  .drag-drop-zone {
    background-color: #2d2d2d;
    border-color: #555;
  }

  .drag-drop-zone.dragover {
    background-color: #3d1f1f;
    border-color: #E61E1E;
  }

  .drag-drop-zone.has-files {
    background-color: #1f3d1f;
    border-color: #28a745;
  }

  .drag-drop-text {
    color: #ccc;
  }

  .drag-drop-hint {
    color: #999;
  }

  .file-item {
    background: #3d3d3d;
    border-color: #555;
    color: #ccc;
  }
}
/* Print styles */
@media print {
  .drag-drop-container,
.old-upload-toggle {
    display: none;
  }
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: "Source Sans 3", sans-serif;
  background-color: #FAFAFA;
  min-height: 100%;
}
body.fixed {
  overflow: hidden;
}

input:focus,
textarea:focus {
  outline: 0;
}

figure {
  margin: 0;
}

a {
  text-decoration: none;
}

.m-btn {
  border: 0;
  background: transparent;
}
.m-btn--primary {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  color: #fff;
  border-radius: 32px;
  background-color: #E61E1E;
  padding: 8px 16px;
}
.m-btn--primary:visited {
  color: #fff;
}
.m-btn--primary:hover {
  color: #fff;
}
.m-btn--primary:active {
  color: #fff;
}
.m-btn--primary.white {
  background-color: #fff;
  color: #E61E1E;
  text-transform: uppercase;
}
.m-btn--primary.green {
  background-color: #28a745;
  color: #fff;
  text-transform: uppercase;
}
.m-btn--primary.black {
  background-color: #000;
  color: #fff;
  text-transform: uppercase;
}
.m-btn--primary.quad {
  font-size: 14px;
  border-radius: 0;
  color: #fff;
  text-transform: uppercase;
}
.m-btn--primary.quad:visited {
  color: #fff;
}
.m-btn--primary.quad:hover {
  color: #fff;
}
.m-btn--primary.quad:active {
  color: #fff;
}
.m-btn--primary.apply {
  font-weight: 700;
  font-size: 14px;
  line-height: 17.6px;
  padding: 9px 60px;
}
.m-btn--primary[disabled] {
  background-color: #E2E2E2;
}
.m-btn--table {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  border-radius: 32px;
  background-color: #E61E1E;
  padding: 4px 8px;
}
.m-btn--table:visited {
  color: #fff;
}
.m-btn--table:hover {
  color: #fff;
}
.m-btn--table:active {
  color: #fff;
}
.m-btn--table.green {
  background-color: #28a745;
}
.m-btn--table.ghost {
  color: #E61E1E;
  background-color: transparent;
}
.m-btn--table[disabled] {
  background-color: #E2E2E2;
}
.m-btn--actions {
  display: block;
  text-align: center;
}
.m-btn--simple {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 100%;
  text-align: center;
  color: #E61E1E;
  text-decoration: none;
  padding: 6px 0;
}
.m-btn--simple:visited {
  color: #E61E1E;
}
.m-btn--simple:hover {
  color: #E61E1E;
}
.m-btn--simple:active {
  color: #E61E1E;
}
.m-btn--simple i {
  font-weight: 400;
}
.m-btn--cancel {
  font-size: 14px;
  font-weight: 700;
  line-height: 100%;
  text-align: center;
  color: #333;
  text-decoration: underline;
  padding: 9px 24px;
}
.m-btn--cancel:visited {
  color: #333;
}
.m-btn--cancel:hover {
  color: #333;
}
.m-btn--cancel:active {
  color: #333;
}
.m-btn--cancel i {
  font-weight: 400;
}
.m-btn--back {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 100%;
  text-align: center;
  color: #333;
  text-decoration: none;
  padding: 9px 24px;
}
.m-btn--back:visited {
  color: #333;
}
.m-btn--back:hover {
  color: #333;
}
.m-btn--back:active {
  color: #333;
}
.m-btn--back i {
  font-weight: 400;
}

.m-aside--admin {
  position: sticky;
  top: 0;
  background-color: #333;
  min-height: 100vh;
}
.m-aside--admin .m-aside__logo {
  border-bottom: 1px solid #555;
  padding: 16px;
}
.m-aside--admin .m-aside__logo img {
  max-width: 160px;
}
.m-aside--admin .m-aside__logo figcaption {
  font-size: 14px;
  line-height: 1;
  color: #fff;
  margin-top: 8px;
}

.m-logo {
  width: 180px;
}

.m-nav {
  background-color: #fff;
  padding: 0;
}
.m-nav__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.m-nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-nav ul li {
  padding: 28px 46px;
}
.m-nav ul li.signin {
  border-left: 1px solid #E2E2E2;
  padding-right: 0;
}
.m-nav ul li.signout {
  border-left: 1px solid #E2E2E2;
  padding-right: 0;
}
.m-nav ul li .logout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 24px;
  padding-right: 0;
}
.m-nav ul li .logout p {
  font-weight: 400;
  font-size: 12px;
  line-height: 15.08px;
  margin: 0;
}
.m-nav ul li .logout span {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 15.08px;
  color: #333;
}
.m-nav ul li.active a {
  pointer-events: none;
  /* Disabilita il click */
  cursor: default;
  /* Cambia il cursore in uno standard (non cliccabile) */
  color: #E61E1E;
}
.m-nav ul li.active a:visited {
  color: #E61E1E;
}
.m-nav ul li.active a:hover {
  color: #E61E1E;
}
.m-nav ul li.active a:active {
  color: #E61E1E;
}
.m-nav ul li a {
  font-weight: 700;
  font-size: 16px;
  line-height: 17.6px;
  text-decoration: none;
  color: #333;
}
.m-nav ul li a:visited {
  color: #333;
}
.m-nav ul li a:hover {
  color: #333;
}
.m-nav ul li a:active {
  color: #333;
}
.m-nav--admin {
  position: sticky;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-bottom: 1px solid #E2E2E2;
  margin: 0;
  padding: 12px 24px;
  z-index: 999;
}
.m-nav--admin h2 {
  margin: 0;
}
.m-nav--admin .user-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
}
.m-nav--admin .user-info a {
  color: #333;
}
.m-nav--admin .user-info a:visited {
  color: #333;
}
.m-nav--admin .user-info a:hover {
  color: #333;
}
.m-nav--admin .user-info a:active {
  color: #333;
}
@media screen and (max-width: 767px) {
  .m-nav ul li {
    padding: 12px 20px;
  }
}

.m-menu {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.m-menu li {
  border-bottom: 1px solid #555;
}
.m-menu li a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  padding: 16px;
}
.m-menu li a:visited {
  color: #fff;
}
.m-menu li a:hover {
  color: #fff;
}
.m-menu li a:active {
  color: #fff;
}
.m-menu li a i {
  width: 20px;
  text-align: center;
}
.m-menu li a:hover {
  background-color: #E61E1E;
}

.m-header__inner {
  border-bottom: 1px solid #E2E2E2;
  padding: 40px 0;
}
.m-header__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin: 0;
}
.m-header__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #333;
}
.m-header__link:visited {
  color: #333;
}
.m-header__link:hover {
  color: #333;
}
.m-header__link:active {
  color: #333;
}
.m-header__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 16px;
}

.m-section {
  padding: 40px 0;
}
.m-section__inner {
  --gap: 40px;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: var(--gap);
  padding: 48px 32px;
  height: calc(100% - var(--gap));
}
.m-section__header {
  margin-bottom: 32px;
}
.m-section__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.m-section__description {
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
}
.m-section__text p:last-of-type {
  margin: 0;
}
.m-section__text ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.m-section__text ul li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.m-section--homepage .m-section__header {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-bottom: 80px;
}
.m-section--homepage .m-section__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 8px;
}
.m-section--homepage .m-section__description {
  font-size: 24px;
  font-weight: 400;
  line-height: 100%;
  margin: 0;
}
.m-section--homepage .m-section__footer {
  border-top: 1px solid #E2E2E2;
  margin-top: 180px;
  padding: 16px 0;
}
.m-section--homepage .m-section__footer p {
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
}
.m-section--homepage .m-section__footer ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}
.m-section--homepage .m-section__footer ul li {
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
}
.m-section--homepage .m-section__footer ul li a {
  color: #333;
}
.m-section--homepage .m-section__footer ul li a:visited {
  color: #333;
}
.m-section--homepage .m-section__footer ul li a:hover {
  color: #333;
}
.m-section--homepage .m-section__footer ul li a:active {
  color: #333;
}

.m-card--dashboard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  background-color: #fff;
  padding: 32px 16px;
  height: 100%;
}
.m-card--dashboard .m-card__icon {
  color: var(--color);
  opacity: 0.4;
  text-align: center;
  margin-bottom: 16px;
}
.m-card--dashboard .m-card__label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}
.m-card--dashboard .m-card__number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 100%;
  text-align: center;
  color: var(--color);
  padding: 18px 0;
}
.m-card--dashboard.dot .m-card__label:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color);
}
.m-card--dashboard.dot .m-card__number {
  color: #333;
}
.m-card--brand {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 47px;
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  background-color: #fff;
  padding: 80px 0 24px;
}
.m-card--brand p {
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  text-align: center;
  text-decoration: underline;
  margin: 0;
}
.m-card--brand a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.m-form__fieldset {
  margin-bottom: 40px;
}
.m-form__fieldset:last-of-type {
  margin: 0;
}
.m-form__legend {
  margin-bottom: 32px;
}
.m-form__label {
  display: block;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.m-form__field {
  margin-bottom: 20px;
}
.m-form input[type=text],
.m-form input[type=password],
.m-form input[type=email],
.m-form textarea {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #333;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  padding: 14px;
}
.m-form input[type=text][disabled=disabled],
.m-form input[type=password][disabled=disabled],
.m-form input[type=email][disabled=disabled],
.m-form textarea[disabled=disabled] {
  border: 1px solid #898989;
  background-color: #898989;
}
.m-form input[type=text]::-webkit-input-placeholder, .m-form input[type=password]::-webkit-input-placeholder, .m-form input[type=email]::-webkit-input-placeholder, .m-form textarea::-webkit-input-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form input[type=text]::-moz-placeholder, .m-form input[type=password]::-moz-placeholder, .m-form input[type=email]::-moz-placeholder, .m-form textarea::-moz-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form input[type=text]:-ms-input-placeholder, .m-form input[type=password]:-ms-input-placeholder, .m-form input[type=email]:-ms-input-placeholder, .m-form textarea:-ms-input-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form input[type=text]::-ms-input-placeholder, .m-form input[type=password]::-ms-input-placeholder, .m-form input[type=email]::-ms-input-placeholder, .m-form textarea::-ms-input-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form input[type=text]::placeholder,
.m-form input[type=password]::placeholder,
.m-form input[type=email]::placeholder,
.m-form textarea::placeholder {
  color: #898989;
  opacity: 1;
}
.m-form input[type=text]:focus::-webkit-input-placeholder, .m-form input[type=password]:focus::-webkit-input-placeholder, .m-form input[type=email]:focus::-webkit-input-placeholder, .m-form textarea:focus::-webkit-input-placeholder {
  color: #bcbcbc;
}
.m-form input[type=text]:focus::-moz-placeholder, .m-form input[type=password]:focus::-moz-placeholder, .m-form input[type=email]:focus::-moz-placeholder, .m-form textarea:focus::-moz-placeholder {
  color: #bcbcbc;
}
.m-form input[type=text]:focus:-ms-input-placeholder, .m-form input[type=password]:focus:-ms-input-placeholder, .m-form input[type=email]:focus:-ms-input-placeholder, .m-form textarea:focus:-ms-input-placeholder {
  color: #bcbcbc;
}
.m-form input[type=text]:focus::-ms-input-placeholder, .m-form input[type=password]:focus::-ms-input-placeholder, .m-form input[type=email]:focus::-ms-input-placeholder, .m-form textarea:focus::-ms-input-placeholder {
  color: #bcbcbc;
}
.m-form input[type=text]:focus::placeholder,
.m-form input[type=password]:focus::placeholder,
.m-form input[type=email]:focus::placeholder,
.m-form textarea:focus::placeholder {
  color: #bcbcbc;
}
.m-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: #898989;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("../icons/icon_arrow-down-grey.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px);
  padding: 8px 12px;
}
.m-form__switch {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
  gap: 8px;
}
.m-form__switch input {
  display: none;
}
.m-form__switch input:checked + span {
  background-color: #E61E1E;
}
.m-form__switch input:checked + span:before {
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}
.m-form__switch span {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #898989;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border-radius: 50px;
  cursor: pointer;
}
.m-form__switch span:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.m-form__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 48px;
}
.m-form__text {
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  color: #333;
  margin-bottom: 16px;
}
.m-form__text.disabled {
  background-color: #fff;
  max-height: 250px;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  padding: 8px 38px 8px 12px;
  overflow: scroll;
}
.m-form__radio, .m-form__checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
}
.m-form__radio input, .m-form__checkbox input {
  margin: 0 8px 0 0;
}
.m-form__search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  background-color: #fff;
  padding: 8px 12px;
}
.m-form__search input {
  width: 100%;
  font-size: 16px;
  line-height: 150%;
  color: #898989;
  border: 0;
  padding: 0;
}
.m-form__search input.placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__search input:-moz-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__search input::-moz-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__search input:-ms-input-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__search input::-webkit-input-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__search:before {
  font-family: "Font Awesome 6 Pro";
  content: "";
  font-weight: 300;
  color: #898989;
}
.m-form__date {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  background-color: #FFF;
  padding: 14px;
}
.m-form__date::-webkit-input-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form__date::-moz-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form__date:-ms-input-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form__date::-ms-input-placeholder {
  color: #898989;
  opacity: 1;
}
.m-form__date::placeholder {
  color: #898989;
  opacity: 1;
}
.m-form__date:focus::-webkit-input-placeholder {
  color: #bcbcbc;
}
.m-form__date:focus::-moz-placeholder {
  color: #bcbcbc;
}
.m-form__date:focus:-ms-input-placeholder {
  color: #bcbcbc;
}
.m-form__date:focus::-ms-input-placeholder {
  color: #bcbcbc;
}
.m-form__date:focus::placeholder {
  color: #bcbcbc;
}
.m-form__date input {
  width: 100%;
  font-size: 16px;
  line-height: 150%;
  color: #333;
  border: 0;
  padding: 0;
}
.m-form__date input.placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__date input:-moz-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__date input::-moz-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__date input:-ms-input-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__date input::-webkit-input-placeholder {
  font-size: 16px;
  line-height: 150%;
  color: #898989;
}
.m-form__date:after {
  font-family: "Font Awesome 6 Pro";
  content: "";
  font-weight: 300;
  color: #898989;
}
.m-form__submit {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
  color: #FFF;
  border: 0;
  background-color: #E61E1E;
  padding: 12px 0;
}
.m-form .error-message {
  margin-top: 4px;
}
.m-form .error-message ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.m-form .error-message ul li {
  font-size: 12px;
  line-height: 1;
  color: #E61E1E;
}
.m-form--info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 24px;
  background-color: #898989;
  padding: 40px;
  height: 100%;
}
.m-form--info .m-form__fieldset--footer {
  border-width: 1px 0;
  border-style: solid;
  border-color: #898989;
  padding: 24px 0;
}
.m-form--info .m-form__title {
  font-size: 16px;
  line-height: 150%;
  font-weight: 700;
  margin-bottom: 8px;
}
.m-form--white {
  position: relative;
  background-color: #fff;
  padding: 64px 148px;
}
.m-form--white .m-form__header {
  margin-bottom: 40px;
}
.m-form--white .m-form__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  color: #E61E1E;
  margin: 0;
}
.m-form--white .m-form__description {
  font-size: 18px;
  line-height: 146%;
  font-weight: 400;
  margin: 0;
}
.m-form--white .m-form__fieldset {
  margin-bottom: 24px;
}
.m-form--white .m-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
  color: #333;
  margin-bottom: 6px;
}
.m-form--white .m-form__input {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  padding: 8px 12px;
}
.m-form--white .m-form__checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}
.m-form--white .m-form__checkbox label {
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: #333;
}
.m-form--white .m-form__checkbox label a {
  font-weight: 700;
  color: #E61E1E;
}
.m-form--white .m-form__checkbox label a:visited {
  color: #E61E1E;
}
.m-form--white .m-form__checkbox label a:hover {
  color: #E61E1E;
}
.m-form--white .m-form__checkbox label a:active {
  color: #E61E1E;
}
.m-form--white .m-form__submit {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
  color: #FFF;
  border: 0;
  background-color: #E61E1E;
  padding: 12px 0;
}
.m-form--white .m-form__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: #000;
  margin: 0;
}
.m-form--white .m-form__text a {
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
  color: #E61E1E;
}
.m-form--white .m-form__text a:visited {
  color: #E61E1E;
}
.m-form--white .m-form__text a:hover {
  color: #E61E1E;
}
.m-form--white .m-form__text a:active {
  color: #E61E1E;
}

.m-success {
  display: none;
  opacity: 0;
  -webkit-transition: opacity 0.6s ease, -webkit-transform 0.4s ease;
  transition: opacity 0.6s ease, -webkit-transform 0.4s ease;
  transition: opacity 0.6s ease, transform 0.4s ease;
  transition: opacity 0.6s ease, transform 0.4s ease, -webkit-transform 0.4s ease;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.4);
  border-radius: 4px;
  padding: 2.7rem 1.5rem;
  text-align: center;
  color: #155724;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.m-success.is-visible {
  display: block;
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.m-success span {
  display: inline-block;
  max-width: 80%;
}

.m-required {
  color: #ED291E;
  font-size: 9px;
}

.m-filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 60px;
}
.m-filters__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.m-filters__item {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.m-filters__item #id_status,
.m-filters__item #id_tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 16px;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  background-color: #fff;
}
.m-filters__item #id_status label,
.m-filters__item #id_tags label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
}
.m-filters__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 100%;
  margin-bottom: 10px;
}
.m-filters__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.m-datepicker {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  background-color: #fff;
  padding: 8px 12px;
}
.m-datepicker input[type=text] {
  border: 0;
  padding: 0;
}
.m-datepicker:after {
  content: url("../icons/icon_glass-grey.svg");
  font-size: 0;
  line-height: 0;
}

.m-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  background-color: #fff;
  padding: 8px 12px;
}
.m-search input[type=text] {
  border: 0;
  padding: 0;
}
.m-search:after {
  content: url("../icons/icon_glass-grey.svg");
  font-size: 0;
  line-height: 0;
}

.m-table {
  border-radius: 4px;
}
.m-table table {
  width: 100%;
  background: #fff;
  border: 1px solid #E2E2E2;
  border-collapse: collapse;
}
.m-table table tr th,
.m-table table tr td {
  font-size: 14px;
  line-height: 1;
  border-bottom: 1px solid #E2E2E2;
  padding: 12px 16px;
}
.m-table table tr th {
  color: #333;
  font-weight: 600;
  background-color: #FAFAFA;
}

.m-pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.m-pagination a, .m-pagination span {
  font-size: 14px;
  line-height: 1;
  color: #333;
  text-decoration: none;
  border: 1px solid #E2E2E2;
  padding: 8px 12px;
}
.m-pagination span.active {
  color: #fff;
  border-color: #E61E1E;
  background-color: #E61E1E;
}

.m-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  border-radius: 12px;
  padding: 4px 8px;
}
.m-badge.active {
  color: #155724;
  background-color: #d4edda;
}
.m-badge.inactive {
  color: #721c24;
  background-color: #f8d7da;
}
.m-badge.manager {
  color: #856404;
  background-color: #fff3cd;
}
.m-badge.administrator {
  color: #0277bd;
  background-color: #e1f5fe;
}
.m-badge.admin {
  color: #721c24;
  background-color: #f1c0c7;
}

.m-tag.brand {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  border-radius: 2px;
  background-color: #E61E1E;
  margin-right: 4px;
  padding: 2px 4px;
}

.m-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.m-list--tag li {
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  background-color: #E2E2E2;
  border-radius: 100px;
  padding: 4px 8px;
}

.m-grid {
  display: grid;
}
.m-grid--images {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.m-thumbnail {
  margin: 0;
}
.m-thumbnail img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
  object-fit: cover;
  margin-bottom: 4px;
}
.m-thumbnail figcaption {
  font-size: 14px;
  line-break: 1;
}

.comment-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #333;
  margin: 0;
  /* Fix per parole lunghe senza spazi */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  /* Mantiene gli a capo dell'utente */
}

.no-comment {
  color: #898989;
  font-style: italic;
  margin: 0;
}

/* Stili per i componenti */
.stats-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stats-card .number {
  font-size: 32px;
  font-weight: 700;
  color: #E61E1E;
  margin-bottom: 5px;
}

.stats-card .label {
  font-size: 14px;
  color: #666;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}