/*
 * Meliodika UI — componenti moderni costruiti sulla palette del sito.
 * Si applica solo dentro .ml-ui, così le altre pagine restano invariate
 * finché non le aggiorniamo.
 */
:root {
  --ml-font-display: "Plus Jakarta Sans", "Open Sans", sans-serif;
  --ml-font-body: "Open Sans", sans-serif;
  --ml-ink: #1C1C1C;
  --ml-text: #3A3B3C;
  --ml-muted: #6B6E73;
  --ml-line: rgba(28, 28, 28, 0.08);
  --ml-surface: rgba(255, 255, 255, 0.82);
  --ml-blue: #4285E6;
  --ml-blue-dark: #346ab7;
  --ml-orange: #F2A145;
  --ml-orange-dark: #E56125;
  --ml-radius: 18px;
  --ml-shadow: 0 1px 2px rgba(28, 28, 28, 0.04), 0 8px 28px rgba(28, 28, 28, 0.07);
  --ml-shadow-hover: 0 2px 4px rgba(28, 28, 28, 0.05), 0 18px 44px rgba(28, 28, 28, 0.13);
}

.ml-ui {
  font-family: var(--ml-font-body);
  color: var(--ml-text);
  font-size: 17px;
  line-height: 1.65;
  max-width: 1080px;
  margin: 0 auto;
}
.ml-ui strong { color: var(--ml-ink); font-weight: 600; }

/* Tipografia */
.ml-ui .ml-h1, .ml-ui .ml-h2, .ml-ui .ml-h3 {
  font-family: var(--ml-font-display);
  color: var(--ml-ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.ml-ui .ml-h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.05; }
.ml-ui .ml-h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.ml-ui .ml-h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ml-ui .ml-eyebrow {
  display: inline-block;
  font-family: var(--ml-font-display);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ml-orange-dark);
  background: rgba(242, 161, 69, 0.16);
  border: 1px solid rgba(229, 97, 37, 0.18);
  padding: 8px 20px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.ml-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ml-muted);
  max-width: 600px;
  margin: 18px auto 0;
}
.ml-muted { color: var(--ml-muted); margin: 4px 0 0; font-size: 16px; }

/* Hero */
.ml-hero {
  text-align: center;
  padding: 20px 0 56px;
}

/* Pannelli */
.ml-panel {
  background: var(--ml-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  padding: 36px;
  margin-bottom: 56px;
}

/* Passaggi numerati */
.ml-step-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.ml-step-head-center {
  justify-content: center;
  text-align: left;
  margin-bottom: 32px;
}
.ml-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ml-orange);
  color: #fff;
  font-family: var(--ml-font-display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(242, 161, 69, 0.35);
}

.ml-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}
.ml-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ml-checklist i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ml-blue);
  background: rgba(66, 133, 230, 0.12);
}

/* Bottoni */
.ml-ui .ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--ml-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.ml-ui .ml-btn:focus-visible { outline: 3px solid rgba(66, 133, 230, 0.4); outline-offset: 2px; }
.ml-ui .ml-btn:active { transform: translateY(0) scale(0.98); }

.ml-ui .ml-btn-primary {
  background: var(--ml-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(66, 133, 230, 0.35);
}
.ml-ui .ml-btn-primary:hover {
  background: var(--ml-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(66, 133, 230, 0.45);
}
.ml-ui .ml-btn-outline {
  background: transparent;
  color: var(--ml-ink);
  border-color: var(--ml-ink);
}
.ml-ui .ml-btn-outline:hover {
  background: var(--ml-ink);
  color: #fff;
  transform: translateY(-2px);
}

/* Card prodotto */
.ml-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.ml-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--ml-radius);
  overflow: hidden;
  box-shadow: var(--ml-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ml-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ml-shadow-hover);
}
.ml-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ml-card-media { background: #E8EEF7; }
/* Le immagini delle card (img/cards/) sono già in 4:3: riempiono la scheda senza ritagli */
.ml-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ml-card:hover .ml-card-media img { transform: scale(1.04); }
.ml-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
}
.ml-price {
  font-family: var(--ml-font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--ml-orange-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 16px;
}
.ml-price span {
  font-size: 15px;
  font-weight: 600;
  color: var(--ml-muted);
  letter-spacing: 0;
  margin-right: 2px;
}
.ml-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ml-muted);
  margin: 0 0 18px;
}
.ml-features {
  list-style: none;
  padding: 16px 0 0;
  margin: auto 0 24px;
  border-top: 1px solid var(--ml-line);
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ml-text);
}
.ml-features i {
  width: 22px;
  margin-right: 8px;
  color: var(--ml-blue);
  text-align: center;
}
.ml-card .ml-btn { width: 100%; }

/* Info consegna */
.ml-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ml-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ml-info-item > i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ml-orange-dark);
  background: rgba(242, 161, 69, 0.15);
}
.ml-info-item strong {
  display: block;
  font-family: var(--ml-font-display);
  font-size: 16px;
  line-height: 1.3;
}
.ml-info-item span { font-size: 14px; color: var(--ml-muted); }

/* Responsive */
@media (max-width: 991px) {
  .ml-cards { grid-template-columns: repeat(2, 1fr); }
  .ml-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ml-ui { font-size: 16px; }
  .ml-hero { padding: 0 0 36px; }
  .ml-panel { padding: 24px 20px; margin-bottom: 40px; }
  .ml-cards { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .ml-info { grid-template-columns: 1fr; gap: 18px; }
  .ml-step-head { gap: 14px; }
  .ml-step-num { width: 40px; height: 40px; font-size: 17px; }
  .ml-ui .ml-panel > .ml-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-card, .ml-card-media img, .ml-ui .ml-btn { transition: none; }
  .ml-card:hover, .ml-ui .ml-btn:hover { transform: none; }
}

/* ---- Home studio ------------------------------------------------------ */
.ml-hero-logo {
  max-width: min(420px, 80%);
  height: auto;
  margin: 0 auto 36px;
  display: block;
}
.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.ml-section-tight { padding-top: 24px !important; }
.ml-section-head {
  text-align: center;
  margin-bottom: 32px;
}
.ml-section-head .ml-muted { margin-top: 8px; }

/* ---- Recensioni ------------------------------------------------------- */
.ml-reviews { position: relative; }
.ml-reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  column-gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 28px;
  margin: 0 -4px;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}
.ml-reviews-track::-webkit-scrollbar { display: none; }

.ml-review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  padding: 26px 26px 22px;
  min-height: 280px;
}
.ml-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ml-stars { color: #FBBC04; font-size: 16px; letter-spacing: 3px; }
.ml-review-google svg { width: 22px; height: 22px; display: block; }
.ml-ui .ml-review-text {
  flex: 1;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ml-text);
}
.ml-review-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ml-line);
}
.ml-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ml-orange), var(--ml-orange-dark));
  color: #fff;
  font-family: var(--ml-font-display);
  font-weight: 800;
  font-size: 15px;
}
.ml-avatar { position: relative; overflow: hidden; }
.ml-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.ml-review:nth-child(even) .ml-avatar { background: linear-gradient(135deg, #5B9BF0, var(--ml-blue-dark)); }
.ml-review-who { flex: 1; min-width: 0; line-height: 1.3; }
.ml-review-who strong { display: block; font-family: var(--ml-font-display); font-size: 15px; }
.ml-review-who span { font-size: 13px; color: var(--ml-muted); }
.ml-ui .ml-review-link {
  color: var(--ml-muted);
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.ml-ui .ml-review-link:hover { color: var(--ml-blue); background: rgba(66, 133, 230, 0.1); }

.ml-reviews-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ml-reviews-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ml-line);
  background: #fff;
  color: var(--ml-ink);
  box-shadow: var(--ml-shadow);
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s, transform .2s;
}
.ml-reviews-nav button:hover:not(:disabled) { background: var(--ml-ink); color: #fff; transform: translateY(-2px); }
.ml-reviews-nav button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.ml-reviews:not(.ml-reviews-ready) .ml-reviews-nav,
.ml-reviews-static .ml-reviews-nav,
.ml-reviews-empty .ml-reviews-nav { display: none; }

.ml-reviews-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.ml-ui .ml-btn-light {
  background: #fff;
  color: var(--ml-ink);
  box-shadow: var(--ml-shadow);
}
.ml-ui .ml-btn-light:hover { color: var(--ml-ink); transform: translateY(-2px); box-shadow: var(--ml-shadow-hover); }
.ml-ui .ml-btn svg { width: 18px; height: 18px; }

@media (max-width: 991px) {
  .ml-reviews-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .ml-reviews-track { grid-auto-columns: 86%; column-gap: 14px; }
  .ml-review { padding: 22px 20px 18px; min-height: 0; }
  .ml-hero-actions .ml-btn, .ml-reviews-actions .ml-btn { width: 100%; }
}

/* ---- Fares ------------------------------------------------------------ */
.ml-plan .ml-card-body { padding: 30px 28px 30px; }
.ml-plan-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--ml-orange), var(--ml-orange-dark));
  box-shadow: 0 6px 16px rgba(229, 97, 37, 0.28);
  margin-bottom: 18px;
}
.ml-step-head .ml-plan-icon { margin-bottom: 0; }
.ml-plan .ml-muted { font-size: 15px; margin: 6px 0 0; }
.ml-plan .ml-price { margin: 20px 0 18px; font-size: 40px; }
.ml-plan .ml-price span { font-size: 15px; }
.ml-plan .ml-features { margin-top: auto; }
.ml-tiers {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-radius: 12px;
  background: rgba(232, 238, 247, 0.6);
}
.ml-tiers li {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 15px;
}
.ml-tiers li + li { border-top: 1px solid rgba(28, 28, 28, 0.06); }
.ml-tiers strong { font-family: var(--ml-font-display); }

.ml-addons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.ml-addons li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ml-line);
}
.ml-addons li > span { display: flex; flex-direction: column; font-size: 14px; color: var(--ml-muted); line-height: 1.4; }
.ml-addons li strong { font-family: var(--ml-font-display); font-size: 16px; }
.ml-addons em {
  font-style: normal;
  font-family: var(--ml-font-display);
  font-weight: 800;
  color: var(--ml-orange-dark);
  white-space: nowrap;
}

.ml-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: var(--ml-radius);
  background: linear-gradient(135deg, #1C1C1C, #34363A);
  box-shadow: var(--ml-shadow-hover);
}
.ml-ui .ml-cta .ml-h2 { color: #fff; }
.ml-cta .ml-muted { color: rgba(255, 255, 255, 0.7); }
.ml-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.ml-ui .ml-cta .ml-btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.ml-ui .ml-cta .ml-btn-outline:hover { background: #fff; color: var(--ml-ink); border-color: #fff; }

@media (max-width: 991px) {
  .ml-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .ml-addons { grid-template-columns: 1fr; }
  .ml-cta { padding: 26px 20px; }
  .ml-cta-actions, .ml-cta-actions .ml-btn { width: 100%; }
}

/* Griglia a 2 card centrata (es. Mastering + Mixing) */
.ml-cards.ml-cards-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .ml-cards.ml-cards-2 { grid-template-columns: 1fr; }
}

/* ---- Mastering Room --------------------------------------------------- */
.ml-section { margin-bottom: 56px; }

.ml-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
.ml-stat {
  background: var(--ml-surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  padding: 22px 22px 20px;
  text-align: center;
}
.ml-stat strong {
  display: block;
  font-family: var(--ml-font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ml-orange-dark);
  line-height: 1.15;
}
.ml-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--ml-muted); }

.ml-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ml-feature {
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  padding: 28px;
}
.ml-feature .ml-h3 { margin-bottom: 10px; }
.ml-ui .ml-feature p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ml-muted); }

/* Schede (tabs) */
.ml-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.06);
}
.ml-ui .ml-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: transparent;
  color: var(--ml-muted);
  font-family: var(--ml-font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ml-ui .ml-tab:hover { color: var(--ml-ink); }
.ml-ui .ml-tab[aria-selected="true"] { background: #fff; color: var(--ml-ink); box-shadow: var(--ml-shadow); }
.ml-video {
  border-radius: 14px;
  overflow: hidden;
  background: #1C1C1C;
  aspect-ratio: 16 / 9;
}
.ml-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ml-specs { margin-bottom: 64px; }

/* Galleria (carosello Bootstrap) */
.ml-gallery {
  border-radius: var(--ml-radius);
  overflow: hidden;
  box-shadow: var(--ml-shadow-hover);
  background: #1C1C1C;
}
.ml-gallery .carousel-item img { aspect-ratio: 4208 / 1754; object-fit: cover; }
.ml-gallery .carousel-indicators { margin-bottom: 14px; gap: 6px; }
.ml-gallery .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  opacity: .55;
  transition: width .3s ease, opacity .3s ease, background .3s ease;
}
.ml-gallery .carousel-indicators .active { width: 26px; opacity: 1; background: var(--ml-orange); }
.ml-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ml-ink);
  box-shadow: var(--ml-shadow);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease, background .2s ease, color .2s ease;
}
.ml-gallery-prev { left: 16px; }
.ml-gallery-next { right: 16px; }
.ml-gallery:hover .ml-gallery-nav, .ml-gallery-nav:focus-visible { opacity: 1; }
.ml-gallery-nav:hover { background: var(--ml-ink); color: #fff; }

@media (max-width: 991px) {
  .ml-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ml-features-grid { grid-template-columns: 1fr; }
  .ml-feature { padding: 22px 20px; }
  .ml-stats { margin-bottom: 44px; }
  .ml-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 16px; }
  .ml-ui .ml-tab { padding: 10px 6px; font-size: 13px; line-height: 1.2; border-radius: 12px; }
  .ml-gallery-nav { opacity: 1; width: 38px; height: 38px; margin-top: -19px; }
  .ml-gallery-prev { left: 10px; }
  .ml-gallery-next { right: 10px; }
}

/* ---- Credits ---------------------------------------------------------- */
.ml-stats.ml-stats-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.ml-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ml-chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ml-line);
  font-family: var(--ml-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ml-ink);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.ml-chips li:hover { border-color: var(--ml-orange); color: var(--ml-orange-dark); transform: translateY(-1px); }
.ml-chips li.ml-chip-more {
  background: transparent;
  border-style: dashed;
  color: var(--ml-muted);
  font-weight: 600;
}

.ml-logos {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ml-logos li {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ml-logos li:hover { transform: translateY(-4px); box-shadow: var(--ml-shadow-hover); }
/* Il logo occupa il riquadro meno il margine interno, sempre per intero */
.ml-logos img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: .82;
  transition: opacity .25s ease;
}
.ml-logos li:hover img { opacity: 1; }
.ml-logos-more {
  margin: -36px 0 56px;
  text-align: center;
  font-family: var(--ml-font-display);
  font-weight: 700;
  color: var(--ml-muted);
}

@media (max-width: 991px) {
  .ml-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ml-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
  .ml-chips { gap: 8px; }
  .ml-chips li { font-size: 14px; padding: 7px 13px; }
}

/* ---- Gears & Softwares ------------------------------------------------ */
/* Colonne bilanciate: ogni scheda è alta quanto il suo contenuto, senza buchi */
.ml-gear-grid {
  column-count: 3;
  column-gap: 24px;
  margin-bottom: 56px;
}
.ml-gear {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ml-gear:hover { transform: translateY(-4px); box-shadow: var(--ml-shadow-hover); }
.ml-gear-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ml-gear-head .ml-plan-icon { margin-bottom: 0; }
.ml-gear-head .ml-muted { font-size: 14px; margin-top: 2px; line-height: 1.4; }
.ml-gear-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ml-gear-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ml-line);
  font-size: 15px;
  line-height: 1.45;
}
.ml-gear-list li span { color: var(--ml-ink); font-weight: 600; }
.ml-gear-list li small {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ml-muted);
  background: rgba(232, 238, 247, 0.8);
  padding: 2px 8px;
  border-radius: 999px;
}
.ml-gear-list li.ml-gear-more span { color: var(--ml-muted); font-weight: 400; }

@media (max-width: 991px) {
  .ml-gear-grid { column-count: 2; }
}
@media (max-width: 640px) {
  .ml-gear-grid { column-count: 1; margin-bottom: 40px; }
  .ml-gear { padding: 22px 20px; margin-bottom: 18px; }
}

/* ---- Contacts --------------------------------------------------------- */
.ml-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}
.ml-contact-cards { display: grid; gap: 14px; }
.ml-ui .ml-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  color: var(--ml-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ml-ui a.ml-contact-card:hover { transform: translateY(-3px); box-shadow: var(--ml-shadow-hover); color: var(--ml-ink); }
.ml-contact-card .ml-plan-icon { margin-bottom: 0; width: 44px; height: 44px; font-size: 18px; }
.ml-contact-card > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.ml-contact-card strong { font-family: var(--ml-font-display); font-size: 16px; }
.ml-contact-card > span:last-child > span { font-size: 15px; color: var(--ml-muted); overflow-wrap: anywhere; }
.ml-contact-card small { margin-top: 8px; font-size: 13px; color: var(--ml-muted); }

/* Modulo: stessi ID e classi Bootstrap del modulo originale, solo restyling */
.ml-form-panel { margin-bottom: 0; }
.ml-form-panel .ml-muted { margin-bottom: 24px; }
.ml-form-panel .form-group { margin-bottom: 18px !important; }
.ml-form-panel .form-label {
  font-family: var(--ml-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ml-ink);
  margin-bottom: 6px;
}
.ml-form-panel .form-control {
  border: 1px solid rgba(28, 28, 28, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ml-form-panel .form-control:focus {
  border-color: var(--ml-blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 230, 0.15);
}
.ml-form-panel textarea.form-control { min-height: 140px; resize: vertical; }
.ml-form-panel .form-check { margin: 4px 0 22px; padding-left: 1.8em; }
.ml-form-panel .form-check-input { width: 1.15em; height: 1.15em; margin-left: -1.8em; }
.ml-form-panel .form-check-input:checked { background-color: var(--ml-blue); border-color: var(--ml-blue); }
.ml-form-panel .form-check-label { font-size: 14px; color: var(--ml-muted); }
.ml-form-panel .help-block { font-size: 13px; color: var(--ml-orange-dark); margin-top: 6px; }
.ml-ui .ml-btn-block { width: 100%; }

@media (max-width: 991px) {
  .ml-contact { grid-template-columns: 1fr; }
  .ml-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ml-contact-cards { grid-template-columns: 1fr; }
}

/* ---- Pagine di conferma (message-success, details-sent) --------------- */
.ml-success {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px 40px;
  text-align: center;
  background: var(--ml-surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--ml-shadow-hover);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ml-success .ml-lead { margin-top: 14px; }
.ml-ui .ml-success .ml-h1 { font-size: clamp(32px, 4.4vw, 46px); }
.ml-success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ml-orange), var(--ml-orange-dark));
  box-shadow: 0 12px 30px rgba(229, 97, 37, 0.35);
  display: grid;
  place-items: center;
  animation: ml-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.ml-success-icon svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ml-success-icon circle { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.ml-success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ml-draw .45s .35s ease forwards; }
@keyframes ml-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ml-draw { to { stroke-dashoffset: 0; } }

.ml-success-steps {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
  text-align: left;
}
.ml-success-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ml-line);
}
.ml-success-step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ml-blue);
  background: rgba(66, 133, 230, 0.12);
}
.ml-success-steps li > span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.ml-success-steps strong { font-family: var(--ml-font-display); font-size: 15px; }
.ml-success-steps small { font-size: 14px; color: var(--ml-muted); }
.ml-success-steps small a { color: var(--ml-blue); }
.ml-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 640px) {
  .ml-success { padding: 36px 20px 26px; border-radius: 20px; }
  .ml-success-actions .ml-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-success-icon, .ml-success-icon path { animation: none; stroke-dashoffset: 0; }
}

/* ---- About Us --------------------------------------------------------- */
.ml-about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}
.ml-about .ml-panel { margin-bottom: 0; }
.ml-about-text .ml-h2 { margin-bottom: 14px; }
.ml-ui .ml-about-text p, .ml-ui .ml-bio-text p { margin: 0 0 14px; }
.ml-ui .ml-about-text p:last-child, .ml-ui .ml-bio-text p:last-child { margin-bottom: 0; }
.ml-about-cards { display: grid; gap: 14px; }

.ml-bio {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}
.ml-bio-photo {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ml-shadow-hover);
  position: sticky;
  top: 100px;
}
.ml-bio-photo img { display: block; width: 100%; height: auto; }
.ml-bio-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.ml-bio-photo figcaption strong { font-family: var(--ml-font-display); font-size: 18px; color: var(--ml-ink); }
.ml-bio-photo figcaption span { font-size: 14px; color: var(--ml-muted); }
.ml-bio-text .ml-h2 { margin-bottom: 18px; }
.ml-bio .ml-panel { margin-bottom: 0; }
.ml-bio-head { margin-bottom: 20px; }
.ml-bio-head .ml-eyebrow { margin-bottom: 0; }

.ml-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.ml-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  line-height: 1.35;
}
.ml-timeline-when {
  font-family: var(--ml-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ml-orange-dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ml-timeline strong { font-family: var(--ml-font-display); font-size: 16px; color: var(--ml-ink); }
.ml-timeline li > span:last-child { font-size: 14px; color: var(--ml-muted); }
.ml-mentors { text-align: center; margin-bottom: 56px; }
.ml-mentors .ml-muted { margin: 0 0 14px; }
.ml-mentors .ml-chips { justify-content: center; }

@media (max-width: 991px) {
  .ml-about, .ml-bio { grid-template-columns: 1fr; }
  .ml-bio-photo { position: relative; top: 0; max-width: 420px; margin: 0 auto; }
  .ml-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ml-about, .ml-bio { margin-bottom: 48px; gap: 24px; }
  .ml-timeline { grid-template-columns: 1fr; }
}

/* ======================================================================
 * Area clienti e pannello studio
 * ==================================================================== */
.ml-ui.ml-ui-wide { max-width: 1180px; }
.ml-app .bloc-lg { padding-top: 64px; }
.ml-back { margin: 0 0 18px; font-size: 14px; }
.ml-ui .ml-back a { color: var(--ml-muted); text-decoration: none; font-weight: 600; }
.ml-ui .ml-back a:hover { color: var(--ml-orange-dark); }
.ml-section-head-left { text-align: left; margin-bottom: 18px; }
.ml-panel-title { margin-bottom: 18px !important; }
.ml-ui .ml-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Avvisi */
.ml-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  margin: 0 0 20px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.ml-alert i { margin-top: 3px; }
.ml-alert-error { background: rgba(229, 97, 37, 0.1); color: #A53E10; border: 1px solid rgba(229, 97, 37, 0.25); }
.ml-alert-success { background: rgba(46, 160, 90, 0.1); color: #1E7A43; border: 1px solid rgba(46, 160, 90, 0.25); }

/* Pannello di login / registrazione */
.ml-auth {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 36px 32px;
  background: var(--ml-surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--ml-shadow-hover);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ml-auth .ml-eyebrow { margin-bottom: 14px; }
.ml-auth .ml-h2 { margin-bottom: 6px; }
.ml-auth > .ml-muted { margin: 0 0 24px; }
.ml-auth-switch { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--ml-muted); }
.ml-ui .ml-auth-switch a, .ml-ui .ml-form-aside a { color: var(--ml-blue); font-weight: 600; text-decoration: none; }
.ml-ui .ml-auth-switch a:hover, .ml-ui .ml-form-aside a:hover { color: var(--ml-blue-dark); text-decoration: underline; }
.ml-form-aside { margin: -4px 0 18px; text-align: right; font-size: 14px; }

/* Campi dei moduli */
.ml-field { display: block; margin-bottom: 16px; }
.ml-field > span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--ml-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ml-ink);
}
.ml-field input, .ml-field textarea, .ml-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(28, 28, 28, 0.14);
  border-radius: 12px;
  background: #fff;
  font: 16px var(--ml-font-body);
  color: var(--ml-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ml-field textarea { resize: vertical; min-height: 110px; }
.ml-field input:focus, .ml-field textarea:focus, .ml-field select:focus {
  outline: none;
  border-color: var(--ml-blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 230, 0.15);
}
.ml-field small { display: block; margin-top: 6px; font-size: 13px; color: var(--ml-muted); }
.ml-check { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font-size: 14px; color: var(--ml-text); }
.ml-check input { width: 18px; height: 18px; accent-color: var(--ml-blue); }

/* Intestazione delle pagine account / pannello */
.ml-account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.ml-account-head .ml-h1 { font-size: clamp(30px, 4vw, 44px); }
.ml-account-head .ml-eyebrow { margin-bottom: 12px; }

/* Stato dell'ordine */
.ml-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--ml-font-display);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(28, 28, 28, 0.06);
  color: var(--ml-ink);
}
.ml-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ml-status-paid { background: rgba(242, 161, 69, 0.18); color: #B4560F; }
.ml-status-files_uploaded { background: rgba(66, 133, 230, 0.14); color: #2559A6; }
.ml-status-files_downloaded { background: rgba(20, 150, 170, 0.14); color: #0F6E7D; }
.ml-status-refunded, .ml-status-partially_refunded { background: rgba(200, 60, 60, 0.1); color: #A52B2B; }
.ml-alert-info { background: rgba(66, 133, 230, 0.08); color: #2559A6; border: 1px solid rgba(66, 133, 230, 0.22); }

.ml-status-in_progress { background: rgba(124, 92, 230, 0.14); color: #5B3FC4; }
.ml-status-revision { background: rgba(229, 97, 37, 0.14); color: #B4440F; }
.ml-status-delivered { background: rgba(46, 160, 90, 0.14); color: #1E7A43; }
.ml-status-cancelled, .ml-status-pending { background: rgba(28, 28, 28, 0.07); color: var(--ml-muted); }

/* Elenco ordini del cliente */
.ml-orders { display: grid; gap: 12px; }
.ml-ui .ml-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--ml-radius);
  box-shadow: var(--ml-shadow);
  color: var(--ml-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ml-ui .ml-order-row:hover { transform: translateY(-2px); box-shadow: var(--ml-shadow-hover); color: var(--ml-ink); }
.ml-order-main { display: flex; flex-direction: column; min-width: 0; }
.ml-order-main strong { font-family: var(--ml-font-display); font-size: 17px; }
.ml-order-main span { color: var(--ml-muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-order-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ml-order-meta small { color: var(--ml-muted); font-size: 13px; }
.ml-order-go { font-family: var(--ml-font-display); font-weight: 700; font-size: 14px; color: var(--ml-blue); white-space: nowrap; }
.ml-empty { text-align: center; padding: 44px 28px; }
.ml-empty .ml-plan-icon { margin: 0 auto 14px; }
.ml-empty .ml-muted { margin: 6px 0 22px; }

/* Avanzamento dell'ordine */
.ml-progress {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ml-progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--ml-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ml-muted);
}
.ml-progress li span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(28, 28, 28, 0.08);
}
.ml-progress li.is-done { color: var(--ml-ink); background: #fff; }
.ml-progress li.is-done span { background: var(--ml-blue); color: #fff; }
.ml-progress li.is-current { color: var(--ml-ink); background: #fff; box-shadow: var(--ml-shadow); }
.ml-progress li.is-current span { background: var(--ml-orange); color: #fff; }

/* Pagina ordine: colonna principale + colonna laterale */
.ml-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ml-order-grid .ml-panel { margin-bottom: 24px; padding: 28px; }
.ml-order-main-col, .ml-order-side-col, .ml-upload-row, .ml-upload-info { min-width: 0; }
.ml-order-grid .ml-step-num { font-size: 18px; }

/* Zona di caricamento */
.ml-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  border: 2px dashed rgba(66, 133, 230, 0.35);
  border-radius: 18px;
  background: rgba(66, 133, 230, 0.04);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.ml-dropzone:hover, .ml-dropzone.is-over { border-color: var(--ml-blue); background: rgba(66, 133, 230, 0.09); }
.ml-dropzone > i { font-size: 34px; color: var(--ml-blue); margin-bottom: 6px; }
.ml-dropzone strong { font-family: var(--ml-font-display); font-size: 18px; color: var(--ml-ink); }
.ml-dropzone span { color: var(--ml-muted); font-size: 15px; }
.ml-dropzone label { color: var(--ml-blue); font-weight: 700; cursor: pointer; text-decoration: underline; }
.ml-upload-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ml-upload-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ml-line);
}
.ml-upload-row > i { font-size: 20px; color: var(--ml-blue); }
.ml-upload-info { flex: 1; min-width: 0; }
.ml-upload-info strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-upload-info small { display: block; font-size: 13px; color: var(--ml-muted); }
.ml-upload-bar { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(28, 28, 28, 0.08); overflow: hidden; }
.ml-upload-bar span { display: block; height: 100%; width: 0; background: var(--ml-blue); transition: width .3s ease; }
.ml-upload-row.is-done .ml-upload-bar span { background: #2EA05A; }
.ml-upload-row.is-done > i { color: #2EA05A; }
.ml-upload-row.is-error small { color: #A53E10; }
.ml-upload-row.is-error > i { color: var(--ml-orange-dark); }

/* File caricati */
.ml-file-list { list-style: none; padding: 0; margin: 0; }
.ml-file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ml-line);
  font-size: 15px;
}
.ml-file-list li:last-child { border-bottom: 0; }
.ml-file-list li > i { color: var(--ml-blue); font-size: 18px; }
.ml-file-list li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ml-ink); }
.ml-file-list li > small { color: var(--ml-muted); font-size: 13px; white-space: nowrap; }
.ml-file-list li.ml-file-empty { color: var(--ml-muted); border-bottom: 0; }
.ml-file-list li[hidden] { display: none; }
.ml-notify { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ml-line); }
.ml-notify .ml-muted { margin: 0 0 14px; }

/* Riepilogo */
.ml-summary { list-style: none; padding: 0; margin: 0; }
.ml-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ml-line); font-size: 15px; }
.ml-summary li small { display: block; color: var(--ml-muted); font-size: 13px; }
.ml-summary-total { font-family: var(--ml-font-display); font-weight: 800; border-bottom: 0 !important; }
.ml-checklist-sm { margin: 0; gap: 10px; font-size: 14px; }
.ml-checklist-sm i { width: 22px; height: 22px; font-size: 10px; }
.ml-ui .ml-notes { margin: 8px 0 0; white-space: normal; }

/* Pannello studio */
.ml-admin-stats { margin-bottom: 28px; }
.ml-admin-tabs { margin: 0 0 22px; justify-content: flex-start; }
.ml-ui a.ml-tab { text-decoration: none; display: inline-block; }
.ml-table-wrap { padding: 8px 8px; overflow-x: auto; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ml-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--ml-font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ml-muted);
  border-bottom: 1px solid var(--ml-line);
}
.ml-table td { padding: 14px; border-bottom: 1px solid var(--ml-line); vertical-align: middle; color: var(--ml-ink); }
.ml-table tr:last-child td { border-bottom: 0; }
.ml-table td small { display: block; color: var(--ml-muted); font-size: 12px; }

.ml-success-icon-wait { background: linear-gradient(135deg, #5B9BF0, var(--ml-blue-dark)); color: #fff; font-size: 30px; }

@media (max-width: 991px) {
  /* minmax(0, …): i nomi di file lunghi non possono allargare la colonna oltre lo schermo */
  .ml-order-grid { grid-template-columns: minmax(0, 1fr); }
  .ml-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ml-auth { padding: 30px 20px 24px; }
  .ml-account-head { flex-direction: column; }
  .ml-ui .ml-order-row { grid-template-columns: 1fr; gap: 10px; }
  .ml-order-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .ml-order-grid .ml-panel { padding: 22px 18px; }
}

/* Start: nota sotto le regole del bounce */
.ml-step-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(66, 133, 230, 0.08);
  color: var(--ml-ink);
  font-size: 15px;
}
.ml-step-note i { color: var(--ml-blue); margin-top: 4px; }
.ml-summary-refund { color: #A52B2B; font-weight: 700; border-bottom: 0 !important; }

/* ---- Fattura elettronica ---------------------------------------------- */
.ml-invoice-details > summary { list-style: none; cursor: pointer; width: fit-content; }
.ml-invoice-details > summary::-webkit-details-marker { display: none; }
.ml-invoice-details[open] > summary { margin-bottom: 22px; }
.ml-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
.ml-form-grid[hidden], .ml-form-hint[hidden], [data-for][hidden] { display: none !important; }
.ml-field-wide { grid-column: 1 / -1; }
.ml-field > span em { font-style: normal; font-weight: 600; color: var(--ml-muted); }
.ml-field.has-error input, .ml-field.has-error textarea { border-color: var(--ml-orange-dark); box-shadow: 0 0 0 3px rgba(229, 97, 37, 0.12); }
.ml-field-error { color: #A53E10 !important; font-weight: 600; }
.ml-form-hint { margin: -4px 0 18px; font-size: 13px; color: var(--ml-muted); }
.ml-segmented { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ml-segmented legend {
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--ml-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ml-ink);
}
.ml-segmented label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.14);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ml-segmented label:has(input:checked) { border-color: var(--ml-blue); box-shadow: 0 0 0 3px rgba(66, 133, 230, 0.15); }
.ml-segmented input { accent-color: var(--ml-blue); }
.ml-invoice-data { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.ml-invoice-data dt { color: var(--ml-muted); font-weight: 600; }
.ml-invoice-data dd { margin: 0; color: var(--ml-ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ml-form-grid { grid-template-columns: minmax(0, 1fr); }
}
.ml-admin-invoice .ml-account-head { margin-bottom: 16px; align-items: center; }
.ml-copy-field { margin-top: 18px; }
.ml-copy-field textarea { font: 13px/1.5 ui-monospace, Menlo, monospace; background: #F7F9FC; }

/* Password: requisiti che si spuntano, mostra/nascondi */
.ml-password-wrap { position: relative; display: block; }
.ml-ui .ml-password-wrap input { padding-right: 48px; }
.ml-password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ml-muted); font-size: 16px; cursor: pointer;
}
.ml-password-toggle:hover { color: var(--ml-ink); background: rgba(28, 28, 28, 0.05); }
.ml-password-rules { list-style: none; margin: -6px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13px; color: var(--ml-muted); }
.ml-password-rules li { display: flex; align-items: center; gap: 7px; transition: color .15s; }
.ml-password-rules i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; color: transparent; border: 1.5px solid rgba(28, 28, 28, 0.2); transition: all .15s; }
.ml-password-rules li.is-ok { color: #1E7A43; }
.ml-password-rules li.is-ok i { background: #2EA05A; border-color: #2EA05A; color: #fff; }
@media (max-width: 420px) { .ml-password-rules { grid-template-columns: minmax(0, 1fr); } }

/* Campo trappola per i bot */
.ml-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Codice di verifica */
.ml-otp-input {
  width: 100%; text-align: center; font: 700 30px/1 "Plus Jakarta Sans", ui-monospace, monospace !important;
  letter-spacing: 0.45em; padding: 16px 0 16px 0.45em !important;
}
.ml-otp-sent { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 0 0 20px; border-radius: 14px; background: rgba(66, 133, 230, 0.08); color: #2559A6; font-size: 14px; text-align: left; }
.ml-otp-sent i { font-size: 20px; }
.ml-otp-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.ml-otp-actions button { border: 0; background: none; padding: 0; color: var(--ml-blue); font-weight: 600; cursor: pointer; font-size: 14px; }
.ml-otp-actions button:disabled { color: var(--ml-muted); cursor: default; }
.ml-otp-actions a { color: var(--ml-muted); }

/* ---- Domande frequenti (pagina prezzi) --------------------------------- */
.ml-faq details { border-top: 1px solid var(--ml-line); }
.ml-faq details:last-of-type { border-bottom: 1px solid var(--ml-line); }
.ml-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--ml-font-display);
  font-weight: 700;
  color: var(--ml-ink);
  cursor: pointer;
  list-style: none;
}
.ml-faq summary::-webkit-details-marker { display: none; }
.ml-faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--ml-blue); transition: transform .2s ease; }
.ml-faq details[open] summary::after { transform: rotate(45deg); }
.ml-faq details p { margin: 0 0 18px; color: var(--ml-text); }

/* ---- Consegne e revisioni (area riservata e pannello studio) ----------- */
.ml-file-list .ml-inline-form { margin: 0 0 0 auto; }
.ml-file-list li > .ml-btn { margin-left: auto; flex: none; }
.ml-delivery-round { margin: 22px 0 8px; font-size: 15px; }
.ml-delivery-round:first-of-type { margin-top: 0; }
.ml-revision-open { border-left: 4px solid var(--ml-orange); }
.ml-deliver-form { margin-top: 18px; }
.ml-deliver-form + .ml-h3 { margin-top: 30px; }
.ml-revision-form { margin-top: 18px; }
.ml-revision-form textarea { min-height: 120px; }
.ml-history { list-style: none; padding: 0; margin: 18px 0 0; }
.ml-history li { padding: 12px 0; border-top: 1px solid var(--ml-line); font-size: 15px; }
.ml-history li small { display: block; color: var(--ml-muted); }
