/* ============================================================
   AREA-CLIENTI.CSS – Video-guide riservate ai clienti
   Barra scura dell'area sotto l'intestazione del sito, con una scheda per
   software; panoramica con le schermate dei programmi, pagina del software
   con indice dei capitoli, pagina guida con lettore e scaletta.
   ============================================================ */

body.ac-page {
  --ac-ink: #1f262d;
  --ac-graphite: #262d34;
  --ac-graphite-2: #313942;
  --ac-steel: #e6e9ec;
  --ac-steel-2: #d4d9de;
  --ac-paper: #f7f8f9;
  --ac-muted: #5d6973;
  --ac-orange: #ff7700;
  --ac-orange-ink: #b85300;
  --ac-orange-wash: #fff2e6;
  --ac-ok: #2f7d4f;
  --ac-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--ac-paper) !important;
}

/* I fogli del sito danno stili generici a main/h1/h2: qui si riportano neutri */
body.ac-page main {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.ac-page :is(.ac-app, .ac-accesso) :is(h1, h2, h3, p) {
  font-family: var(--ac-font);
  text-align: left;
  background: none;
  -webkit-text-fill-color: currentColor;
  letter-spacing: 0;
  text-transform: none;
}

body.ac-page :is(.ac-app, .ac-login) :is(h1, h2, h3) {
  color: var(--ac-ink) !important;
}

.ac-app,
.ac-accesso {
  font-family: var(--ac-font);
  color: var(--ac-ink);
  font-size: 15px;
  line-height: 1.5;
}

.ac-app a,
.ac-accesso a {
  color: var(--ac-orange-ink);
}

.ac-app :focus-visible,
.ac-accesso :focus-visible {
  outline: 2px solid var(--ac-orange);
  outline-offset: 2px;
}

.ac-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ac-hint {
  color: var(--ac-muted);
  font-size: .87em;
  font-weight: 400;
}

/* ---------- Disegno del foglio di lamiera ---------- */

.ac-lamiera {
  display: block;
  width: 100%;
  height: 100%;
}

.ac-lamiera__foglio {
  fill: var(--ac-graphite);
}

.ac-lamiera__bordo {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 1;
}

.ac-pz {
  fill: rgba(255, 255, 255, .035);
  stroke: rgba(255, 166, 89, .55);
  stroke-width: 1.2;
}

.ac-pz--taglio {
  fill: rgba(255, 119, 0, .16);
  stroke: var(--ac-orange);
  stroke-width: 1.6;
}

.ac-foro {
  fill: var(--ac-graphite);
  stroke: rgba(255, 166, 89, .55);
  stroke-width: 1;
}

/* ---------- Pagine di accesso ----------
   Stessa impostazione dello Studio di Overcam AI (generate.php): scheda unica
   centrata, a sinistra il "foglio" con il disegno, a destra il modulo. */

body.ac-page--accesso {
  background: #efefec !important;
}

body.ac-page main.ac-accesso {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 90px);
  padding: 32px 24px 48px !important;
}

.ac-login {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  width: min(1120px, 100%);
  min-height: min(640px, calc(100vh - 170px));
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 22, 22, .04), 0 30px 80px -40px rgba(22, 22, 22, .35);
}

/* Colonna sinistra: schermate dei software su due binari che scorrono
   in versi opposti, come la galleria dell'accesso di Overcam AI */
.ac-login__galleria {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 14px;
  overflow: hidden;
  background: var(--ac-orange);
  /* le immagini non allungano la scheda: l'altezza la decide il modulo */
  contain: size;
}

.ac-login__galleria::before,
.ac-login__galleria::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 72px;
  pointer-events: none;
}

.ac-login__galleria::before {
  top: 0;
  background: linear-gradient(180deg, var(--ac-orange), rgba(255, 119, 0, 0));
}

.ac-login__galleria::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--ac-orange), rgba(255, 119, 0, 0));
}

.ac-login__binario {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.ac-login__binario--su {
  animation: ac-binario-su 60s linear infinite;
}

.ac-login__binario--giu {
  animation: ac-binario-giu 60s linear infinite;
}

.ac-login__galleria:hover .ac-login__binario {
  animation-play-state: paused;
}

@keyframes ac-binario-su {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes ac-binario-giu {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.ac-login__tessera {
  margin: 0 0 14px !important;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(120, 50, 0, .55);
}

.ac-login__tessera img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

/* Colonna destra: il modulo */
.ac-login__pannello {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ac-login__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px 24px;
}

body.ac-page .ac-accesso__h1 {
  margin: 0 0 6px;
  color: #161616 !important;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.06;
}

body.ac-page .ac-accesso__intro {
  margin: 0 0 22px;
  color: var(--ac-muted);
}

body.ac-page .ac-accesso__alt {
  margin: 18px 0 0;
  color: var(--ac-muted);
  font-size: .9em;
  text-align: center !important;
}

body.ac-page .ac-login__aiuto {
  margin: 0;
  padding: 14px 48px 20px;
  border-top: 1px solid #e4e4e0;
  color: var(--ac-muted);
  font-size: .85em;
  text-align: center !important;
}

.ac-form--accesso label {
  margin-top: 14px;
  font-size: .9rem;
}

.ac-form--accesso label:first-of-type {
  margin-top: 0;
}

.ac-label-riga {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.ac-label-riga label {
  margin-top: 0 !important;
}

.ac-label-riga a {
  font-size: .85rem;
  font-weight: 600;
}

.ac-form--accesso input:not([type="checkbox"]) {
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #f5f5f3;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ac-form--accesso input::placeholder {
  color: #9a9a93;
}

.ac-form--accesso input:hover {
  border-color: #c9c9c3;
}

.ac-form--accesso input:focus {
  border-color: var(--ac-orange);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 119, 0, .16);
}

.ac-pass {
  position: relative;
  display: block;
}

.ac-pass input {
  padding-right: 50px !important;
}

.ac-occhio {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #8a8a83;
  cursor: pointer;
}

.ac-occhio:hover,
.ac-occhio[aria-pressed="true"] {
  color: var(--ac-ink);
}

.ac-btn-grande {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background: var(--ac-orange);
  color: #161616 !important;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(232, 106, 0, .8);
  transition: background 160ms ease, transform 160ms ease;
}

.ac-btn-grande:hover {
  background: #ff8a1f;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  body.ac-page main.ac-accesso {
    align-items: flex-start;
    padding: 16px !important;
  }

  .ac-login {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 22px;
  }

  /* Su telefono il modulo viene prima del disegno */
  .ac-login__pannello {
    order: -1;
  }

  .ac-login__body {
    padding: 28px 22px 18px;
  }

  body.ac-page .ac-login__aiuto {
    padding: 12px 22px 16px;
  }

  /* Su telefono una sola fila che scorre di lato, sotto il modulo */
  .ac-login__galleria {
    display: block;
    height: auto;
    padding: 14px 0;
    contain: none;
  }

  .ac-login__galleria::before,
  .ac-login__galleria::after,
  .ac-login__binario--giu {
    display: none;
  }

  .ac-login__binario--su {
    flex-direction: row;
    gap: 12px;
    width: max-content;
    height: 100%;
    animation: ac-binario-sinistra 50s linear infinite;
  }

  .ac-login__tessera {
    flex: none;
    margin: 0 !important;
    padding: 6px;
  }

  .ac-login__tessera img {
    width: 196px;
    height: 110px;
  }

  @keyframes ac-binario-sinistra {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-login__binario {
    animation: none !important;
  }

  .ac-btn-grande,
  .ac-form--accesso input {
    transition: none;
  }

  .ac-btn-grande:hover {
    transform: none;
  }
}

/* ---------- Moduli e pulsanti ---------- */

.ac-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-form label {
  margin-top: 10px;
  color: var(--ac-ink);
  font-size: .9em;
  font-weight: 600;
}

.ac-form input:not([type="checkbox"]),
.ac-form select,
.ac-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--ac-steel-2);
  border-radius: 6px;
  background: #fff;
  color: var(--ac-ink);
  font: inherit;
  box-sizing: border-box;
}

.ac-form textarea {
  min-height: 84px;
  resize: vertical;
}

.ac-form input:focus,
.ac-form select:focus,
.ac-form textarea:focus {
  border-color: var(--ac-orange);
  outline: 2px solid rgba(255, 119, 0, .25);
  outline-offset: 0;
}

.ac-form > .ac-btn {
  margin-top: 18px;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ac-steel-2);
  border-radius: 6px;
  background: #fff;
  color: var(--ac-ink) !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ac-btn:hover {
  border-color: var(--ac-ink);
}

.ac-btn:disabled {
  opacity: .5;
  cursor: default;
}

.ac-btn--pieno {
  border-color: var(--ac-orange);
  background: var(--ac-orange);
  color: #fff !important;
}

.ac-btn--pieno:hover {
  border-color: #e06900;
  background: #e06900;
}

.ac-alert {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid var(--ac-steel-2);
  background: #fff;
  font-family: var(--ac-font);
  line-height: 1.45;
}

.ac-alert--error {
  border-color: #f2b8b5;
  background: #fdf1f0;
  color: #8f1d17;
}

.ac-alert--success {
  border-color: #a9d8b9;
  background: #eef8f1;
  color: #1f5c38;
}

.ac-dev {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px dashed var(--ac-orange-ink);
  border-radius: 6px;
  background: var(--ac-orange-wash);
  font-size: .9em;
}

.ac-dev strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ac-orange-ink);
}

.ac-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 8px;
  border: 1px solid #ffd2a8;
  border-radius: 4px;
  background: var(--ac-orange-wash);
  color: var(--ac-orange-ink);
  font-size: .78em;
  font-weight: 600;
}

.ac-tag--ok {
  border-color: #b9dcc6;
  background: #eef7f1;
  color: var(--ac-ok);
}

.ac-tag--spento {
  border-color: var(--ac-steel-2);
  background: var(--ac-paper);
  color: var(--ac-muted);
}

.ac-tag--errore {
  border-color: #f2b8b5;
  background: #fdf1f0;
  color: #8f1d17;
}

/* ---------- Struttura dell'area ----------
   Sotto l'intestazione del sito (che non si tocca) una barra scura dell'area:
   titolo, ricerca, menu utente e una scheda per ogni software. */

body.ac-page--app {
  background: #f1f3f5 !important;
}

.ac-app {
  --ac-display: "IBM Plex Sans Condensed", "IBM Plex Sans", "Segoe UI", sans-serif;
  --ac-bar: #1c2228;
  --ac-bar-2: #283039;
  --ac-bar-line: #38424c;
  --ac-bar-text: #c3cbd2;
  --ac-line: #dde2e6;
}

.ac-testata {
  background: var(--ac-bar);
  color: #fff;
}

.ac-testata__riga,
.ac-schede {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.ac-testata__riga {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.ac-app .ac-testata__titolo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #fff;
  text-decoration: none;
}

.ac-testata__titolo svg {
  color: var(--ac-orange);
}

.ac-testata__titolo span {
  display: flex;
  flex-direction: column;
  font-family: var(--ac-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
}

.ac-testata__titolo small {
  color: var(--ac-bar-text);
  font-family: var(--ac-font);
  font-size: .72rem;
  font-weight: 500;
}

.ac-testata__cerca {
  position: relative;
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto 0 12px;
  color: var(--ac-bar-text);
}

.ac-testata__cerca svg {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.ac-testata__cerca input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--ac-bar-line);
  border-radius: 8px;
  background: var(--ac-bar-2);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  box-sizing: border-box;
}

.ac-testata__cerca input::placeholder {
  color: #8f9aa4;
}

.ac-testata__cerca input:focus {
  border-color: var(--ac-orange);
  outline: none;
  background: #fff;
  color: var(--ac-ink);
}

/* Menu utente */
.ac-utente {
  position: relative;
  flex: none;
}

.ac-utente summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.ac-utente summary::-webkit-details-marker {
  display: none;
}

.ac-utente summary:hover,
.ac-utente[open] summary {
  background: var(--ac-bar-2);
}

.ac-utente__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ac-orange);
  color: var(--ac-bar);
  font-size: .82rem;
  font-weight: 700;
}

.ac-utente__nome {
  max-width: 180px;
  overflow: hidden;
  font-size: .92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-utente__freccia {
  color: var(--ac-bar-text);
}

.ac-utente__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  padding: 8px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 22, 28, .18);
  color: var(--ac-ink);
}

body.ac-page .ac-utente__chi {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--ac-line);
  line-height: 1.35;
}

.ac-utente__chi span {
  color: var(--ac-muted);
  font-size: .88rem;
}

body.ac-page .ac-utente__etichetta {
  margin: 10px 10px 4px;
  color: var(--ac-muted);
  font-size: .8rem;
  font-weight: 600;
}

.ac-utente__assistenze {
  margin: 0 0 6px;
  padding: 0 10px;
  list-style: none;
}

.ac-utente__assistenze li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: .9rem;
}

.ac-utente__assistenze li span {
  font-weight: 600;
}

.ac-utente__assistenze small {
  color: var(--ac-ok);
}

.ac-utente__assistenze li.is-scaduta {
  color: var(--ac-muted);
}

.ac-utente__assistenze li.is-scaduta small {
  color: var(--ac-muted);
}

.ac-utente__menu form {
  margin: 0;
}

.ac-app .ac-utente__voce {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ac-ink);
  font: inherit;
  font-size: .92rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ac-app .ac-utente__voce:hover {
  background: var(--ac-paper);
  color: var(--ac-orange-ink);
}

.ac-utente__esci {
  border-top: 1px solid var(--ac-line) !important;
  border-radius: 0 0 8px 8px !important;
}

/* Schede dei software */
.ac-schede {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ac-schede::-webkit-scrollbar {
  display: none;
}

.ac-app .ac-scheda {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 12px 14px 11px;
  border-bottom: 3px solid transparent;
  color: var(--ac-bar-text);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ac-scheda span {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ac-bar-2);
  color: var(--ac-bar-text);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
}

.ac-app .ac-scheda:hover {
  color: #fff;
}

.ac-app .ac-scheda.is-attiva {
  border-bottom-color: var(--ac-orange);
  color: #fff;
  font-weight: 600;
}

.ac-scheda.is-attiva span {
  background: var(--ac-orange);
  color: var(--ac-bar);
}

.ac-schede__spazio {
  flex: 1 0 24px;
}

.ac-app .ac-scheda--admin {
  color: #9aa4ad;
  font-size: .88rem;
}

/* Contenuto */
.ac-app .ac-pagina {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 34px 32px 80px !important;
  box-sizing: border-box;
}

.ac-pagina > .ac-alert {
  margin-bottom: 20px;
}

.ac-intesta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 30px;
}

body.ac-page .ac-intesta__h1 {
  margin: 0;
  color: var(--ac-ink);
  font-family: var(--ac-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
}

body.ac-page .ac-intesta__sub {
  max-width: 64ch;
  margin: 8px 0 0;
  color: var(--ac-muted);
}

.ac-avviso {
  max-width: 640px;
  padding: 26px 28px;
  border: 1px solid var(--ac-line);
  border-top: 4px solid var(--ac-orange);
  border-radius: 12px;
  background: #fff;
}

body.ac-page .ac-avviso :is(h1, h2) {
  margin: 0 0 8px;
  font-family: var(--ac-display);
  font-size: 1.6rem;
  font-weight: 700;
}

body.ac-page .ac-avviso p {
  margin: 0 0 14px;
  color: var(--ac-muted);
}

.ac-sezione {
  margin-bottom: 44px;
}

body.ac-page .ac-sezione__titolo {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Panoramica: una scheda per software, con la schermata del programma */
.ac-software {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.ac-app .ac-sw {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ac-ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ac-app .ac-sw:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 10px 28px rgba(16, 22, 28, .1);
}

.ac-sw__img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--ac-graphite);
}

.ac-sw__img img,
.ac-sw__img svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ac-sw:hover .ac-sw__img img {
  transform: scale(1.04);
}

.ac-sw__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 34, 40, 0) 35%, rgba(28, 34, 40, .88) 100%);
}

.ac-sw__nome {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 12px;
  color: #fff;
  font-family: var(--ac-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.ac-sw__corpo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.ac-sw__info {
  color: var(--ac-muted);
  font-size: .92rem;
}

.ac-sw__avanz,
.ac-prodotto-testa__avanz {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ac-muted);
  font-size: .88rem;
  white-space: nowrap;
}

.ac-sw__avanz .ac-barra {
  flex: 1 1 auto;
  width: auto;
}

.ac-sw__scad {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ac-ok);
  font-size: .86rem;
  font-weight: 500;
}

.ac-sw__scad::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Pagina di un software: indice dei capitoli a sinistra, guide a destra */
.ac-prodotto-testa {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ac-line);
}

body.ac-page .ac-prodotto-testa__nome {
  margin: 6px 0 12px;
  font-family: var(--ac-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.ac-prodotto-testa__dati {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  color: var(--ac-muted);
}

.ac-prodotto-testa__avanz .ac-barra {
  width: 140px;
}

.ac-corso {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.ac-indice {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  padding: 14px 10px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: #fff;
}

body.ac-page .ac-indice__titolo {
  margin: 0 8px 8px;
  color: var(--ac-muted);
  font-size: .82rem;
  font-weight: 600;
}

.ac-indice__lista {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-indice__cap summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}

.ac-indice__cap summary::-webkit-details-marker {
  display: none;
}

.ac-indice__cap summary:hover {
  background: var(--ac-paper);
}

.ac-indice__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ac-steel);
  font-size: .78rem;
  font-weight: 700;
}

.ac-indice__cap[open] .ac-indice__num {
  background: var(--ac-graphite);
  color: #fff;
}

.ac-indice__nome {
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.3;
}

.ac-indice__conta {
  color: var(--ac-muted);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.ac-indice__cap ul {
  margin: 2px 0 8px 19px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--ac-line);
  list-style: none;
}

.ac-app .ac-indice__cap ul a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ac-muted) !important;
  font-size: .86rem;
  line-height: 1.35;
  text-decoration: none;
}

.ac-app .ac-indice__cap ul a:hover {
  background: var(--ac-paper);
  color: var(--ac-orange-ink) !important;
}

.ac-app .ac-indice__cap ul a.is-vista::after {
  content: " \2713";
  color: var(--ac-ok);
  font-weight: 700;
}

.ac-capitolo {
  margin-bottom: 44px;
  scroll-margin-top: 110px;
}

.ac-capitolo__testa {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ac-capitolo__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ac-graphite);
  color: #fff;
  font-family: var(--ac-display);
  font-size: 1.1rem;
  font-weight: 700;
}

body.ac-page .ac-capitolo__titolo {
  margin: 0;
  font-family: var(--ac-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.ac-capitolo__conta {
  margin-left: auto;
  color: var(--ac-muted);
  font-size: .9rem;
  white-space: nowrap;
}

/* Riprendi: una sola fila di guide */
.ac-griglia--riga {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ac-risultati .ac-griglia {
  margin-top: 26px;
}

.ac-nessuno {
  color: var(--ac-muted);
}

[hidden] {
  display: none !important;
}

.ac-griglia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 22px 18px;
}

.ac-card-video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ac-ink) !important;
  text-decoration: none;
}

.ac-card-video[hidden] {
  display: none;
}

.ac-card-video__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--ac-graphite);
}

.ac-cover,
.ac-cover img {
  display: block;
  width: 100%;
  height: 100%;
}

.ac-cover img {
  object-fit: cover;
}

.ac-card-video__durata,
.ac-card-video__vista {
  position: absolute;
  bottom: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: .78em;
  font-weight: 600;
}

.ac-card-video__durata {
  right: 8px;
  background: rgba(20, 24, 28, .85);
  color: #fff;
}

.ac-card-video__vista {
  left: 8px;
  background: #fff;
  color: var(--ac-ok);
}

.ac-card-video__avanzamento {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, .35);
}

.ac-card-video__avanzamento span {
  display: block;
  height: 100%;
  background: var(--ac-orange);
}

.ac-card-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--ac-orange);
  color: #fff;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .15s, transform .15s;
}

.ac-card-video:hover .ac-card-video__play,
.ac-card-video:focus-visible .ac-card-video__play {
  opacity: 1;
  transform: none;
}

.ac-card-video:hover .ac-card-video__titolo {
  color: var(--ac-orange-ink);
}

.ac-card-video__testo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-card-video__dove {
  color: var(--ac-muted);
  font-size: .82em;
}

.ac-card-video__titolo {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ac-card-video__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ac-muted);
  font-size: .88em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ac-nessuno {
  color: var(--ac-muted);
}

/* ---------- Pagina guida ---------- */

.ac-guarda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "briciole briciole" "guida scaletta";
  gap: 0 32px;
  align-items: start;
}

.ac-guarda > .ac-briciole {
  grid-area: briciole;
  margin: 0 0 16px;
}

.ac-guarda__main {
  grid-area: guida;
  min-width: 0;
}

.ac-guarda > .ac-scaletta {
  grid-area: scaletta;
}

.ac-player {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(16, 22, 28, .16);
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.ac-riprendi {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 8px;
  background: rgba(31, 38, 45, .9);
  color: #fff;
  font-size: .9rem;
}

.ac-riprendi[hidden] {
  display: none;
}

.ac-riprendi button {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.ac-riprendi button:hover {
  border-color: var(--ac-orange);
  color: var(--ac-orange);
}

.ac-player__avviso {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
}

.ac-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ac-briciole {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--ac-muted);
  font-size: .9em;
}

.ac-app .ac-briciole a {
  color: var(--ac-muted) !important;
  text-decoration: none;
}

.ac-app .ac-briciole a:hover {
  color: var(--ac-orange-ink) !important;
}

body.ac-page .ac-guarda__h1 {
  margin: 22px 0 0;
  color: var(--ac-ink);
  font-family: var(--ac-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.ac-guarda__info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0 !important;
  color: var(--ac-muted);
}

body.ac-page .ac-guarda__desc {
  max-width: 70ch;
  margin: 16px 0 0;
  line-height: 1.65;
}

.ac-prossima {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid var(--ac-steel-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ac-ink) !important;
  text-decoration: none;
}

.ac-prossima:hover,
.ac-prossima.is-pronta {
  border-color: var(--ac-orange);
}

.ac-prossima.is-pronta {
  box-shadow: 0 0 0 3px rgba(255, 119, 0, .2);
}

.ac-prossima__cover {
  flex: none;
  width: 128px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}

.ac-prossima__cover img,
.ac-scaletta__cover img,
.ac-mini-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-prossima__testo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-prossima__testo small {
  color: var(--ac-muted);
}

.ac-modulo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 70ch;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--ac-orange-wash);
}

body.ac-page .ac-modulo p {
  flex: 1 1 280px;
  margin: 0;
  line-height: 1.5;
}

/* Scaletta delle guide del prodotto */
.ac-scaletta {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: #fff;
}

/* Intestazione: la categoria in corso e a che punto sei */
.ac-scaletta__testa {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ac-steel);
  background: #fff;
}

body.ac-page .ac-scaletta__titolo {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

body.ac-page .ac-scaletta__sub {
  margin: 2px 0 0;
  color: var(--ac-muted);
  font-size: .85rem;
  text-align: left;
}

.ac-scaletta__gruppo + .ac-scaletta__gruppo {
  border-top: 1px solid var(--ac-steel);
}

body.ac-page .ac-scaletta__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 11px 16px;
  color: var(--ac-ink);
  font-size: .9rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.ac-scaletta__cat::-webkit-details-marker {
  display: none;
}

.ac-scaletta__cat::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  opacity: .6;
}

.ac-scaletta__gruppo[open] > .ac-scaletta__cat::after {
  transform: rotate(45deg);
}

.ac-scaletta__cat:hover {
  background: var(--ac-paper);
}

.ac-scaletta__cat span {
  color: var(--ac-muted);
  font-size: .85em;
  font-weight: 400;
}

.ac-scaletta__lista {
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
}

.ac-scaletta__voce {
  display: grid;
  grid-template-columns: 22px 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-left: 3px solid transparent;
  color: var(--ac-ink) !important;
  text-decoration: none;
}

.ac-scaletta__voce:hover {
  background: var(--ac-paper);
}

.ac-scaletta__voce.is-corrente {
  border-left-color: var(--ac-orange);
  background: var(--ac-orange-wash);
}

.ac-scaletta__num {
  color: var(--ac-muted);
  font-size: .85em;
  text-align: right;
}

.ac-scaletta__cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.ac-scaletta__testo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.ac-scaletta__nome {
  display: -webkit-box;
  overflow: hidden;
  font-size: .92em;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ac-scaletta__testo small {
  color: var(--ac-muted);
}

.ac-scaletta__voce.is-corrente small {
  color: var(--ac-orange-ink);
  font-weight: 600;
}

/* ---------- Gestione ---------- */

.ac-pannello {
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: #fff;
}

.ac-verifica {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
  margin: 12px 0;
}

.ac-verifica input {
  flex: 1 1 260px;
}

.ac-verifica__dettagli p {
  white-space: pre-line;
}

.ac-verifica__dettagli pre {
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: var(--ac-paper);
  font-size: .8rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.ac-pannello--nuovi {
  border-left: 3px solid var(--ac-orange);
}

body.ac-page .ac-pannello__titolo {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ac-pannello__titolo span {
  color: var(--ac-muted);
  font-weight: 400;
}

.ac-form--admin {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 8px 32px;
}

.ac-form__campi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-content: start;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-field--wide {
  grid-column: 1 / -1;
}

.ac-field--coppia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.ac-field--coppia > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 16px !important;
}

.ac-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ac-orange);
}

.ac-form__anteprima {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

body.ac-page .ac-form__etichetta {
  margin: 0;
  font-size: .9em;
  font-weight: 600;
}

.ac-form__anteprima video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.ac-form__copertine figure {
  margin: 0;
}

.ac-form__copertine img {
  display: block;
  width: 200px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ac-steel-2);
}

.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ac-file-nuovi {
  margin: 0;
  padding-left: 18px;
  line-height: 2;
}

.ac-table-wrap {
  overflow-x: auto;
}

.ac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93em;
}

.ac-table th,
.ac-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ac-steel);
  text-align: left;
  vertical-align: middle;
}

.ac-table th {
  color: var(--ac-muted);
  font-size: .85em;
  font-weight: 600;
}

.ac-app .ac-table td a,
.ac-app .ac-elenco-semplice a {
  color: var(--ac-ink) !important;
  font-weight: 600;
}

.ac-app .ac-table td a:hover,
.ac-app .ac-elenco-semplice a:hover {
  color: var(--ac-orange-ink) !important;
}

.ac-table__cover {
  width: 104px;
}

.ac-mini-cover {
  display: block;
  width: 96px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.ac-table__file {
  display: block;
  color: var(--ac-muted);
}

.ac-table__azioni {
  white-space: nowrap;
}

.ac-table__azioni form {
  display: inline;
  margin: 0 0 0 12px;
}

.ac-link-danger {
  padding: 0;
  border: 0;
  background: none;
  color: #a2271f;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Caricamento dei video */
.ac-carica {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 2px dashed var(--ac-steel-2);
  border-radius: 10px;
  background: var(--ac-paper);
  color: var(--ac-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.ac-carica input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ac-carica strong {
  color: var(--ac-ink);
  font-size: 1.05rem;
}

.ac-carica svg {
  color: var(--ac-orange-ink);
}

.ac-carica:hover,
.ac-carica:focus-within,
.ac-carica.is-sopra {
  border-color: var(--ac-orange);
  background: var(--ac-orange-wash);
}

.ac-caricamenti {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-caricamenti li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 220px);
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ac-steel);
  font-size: .92em;
}

.ac-caricamenti li:first-child {
  margin-top: 12px;
}

.ac-caricamenti .ac-barra {
  width: 100%;
}

.ac-caricamenti__nome {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-caricamenti__stato {
  color: var(--ac-muted);
}

.ac-caricamenti li.is-fatto .ac-barra span {
  background: var(--ac-ok);
}

.ac-caricamenti li.is-errore .ac-caricamenti__stato {
  color: #a2271f;
}

.ac-caricamenti li.ac-caricamenti__nota {
  display: block;
  color: var(--ac-ink);
}

/* Tabella delle guide: gruppi, maniglia, stato */
.ac-filtri {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ac-filtri select,
.ac-filtri input {
  width: auto !important;
  min-width: 0;
}

.ac-filtri input {
  flex: 1 1 200px;
}

.ac-gruppo__testa th {
  padding-top: 22px !important;
  border-bottom: 2px solid var(--ac-steel-2) !important;
  color: var(--ac-ink) !important;
  font-size: .95em !important;
}

.ac-gruppo__testa span {
  margin-left: 4px;
  color: var(--ac-muted);
  font-weight: 400;
}

.ac-table__maniglia {
  width: 28px;
  padding-right: 0 !important;
}

.ac-maniglia {
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ac-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: grab;
}

.ac-maniglia:hover,
.ac-maniglia:focus-visible {
  background: var(--ac-steel);
  color: var(--ac-ink);
}

.ac-guida-riga.is-trascinata {
  opacity: .45;
}

.ac-guida-riga.is-trascinata td {
  background: var(--ac-orange-wash);
}

.ac-stato {
  padding: 2px 10px;
  white-space: nowrap;
  border: 1px solid;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: .85em;
  font-weight: 600;
  cursor: pointer;
}

.ac-stato.is-visibile {
  border-color: #b9dcc6;
  background: #eef7f1;
  color: var(--ac-ok);
}

.ac-stato.is-bozza {
  border-color: var(--ac-steel-2);
  color: var(--ac-muted);
}

.ac-stato:hover {
  border-color: var(--ac-orange);
}

@media (max-width: 700px) {
  .ac-caricamenti li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Clienti e statistiche */
.ac-form--riga {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.ac-form--riga input {
  flex: 1 1 220px;
  width: auto !important;
}


.ac-pannello__testa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.ac-page .ac-pannello__testa .ac-pannello__titolo {
  margin: 0;
}

.ac-filtro {
  width: min(320px, 100%);
}

.ac-barra {
  display: block;
  width: 120px;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ac-steel);
}

.ac-barra span {
  display: block;
  height: 100%;
  background: var(--ac-orange);
}

.ac-barra--ok span {
  background: var(--ac-ok);
}

.ac-colonne {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ac-elenco-semplice {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-elenco-semplice li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ac-steel);
}

.ac-elenco-semplice small {
  display: block;
  color: var(--ac-muted);
}

.ac-table td.ac-num,
.ac-table th.ac-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .ac-colonne {
    grid-template-columns: 1fr;
  }
}

/* ---------- Schermi più stretti ---------- */

@media (max-width: 1180px) {
  .ac-guarda {
    grid-template-columns: 1fr !important;
    grid-template-areas: "briciole" "guida" "scaletta" !important;
  }

  .ac-scaletta {
    position: static;
    max-height: none;
    margin-top: 32px;
  }

  .ac-form--admin {
    grid-template-columns: 1fr;
  }

  .ac-corso {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
  }

  .ac-griglia--riga {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ac-corso {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ac-indice {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .ac-testata__riga,
  .ac-schede {
    padding: 0 16px;
  }

  .ac-testata__riga {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .ac-testata__cerca {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }

  .ac-utente {
    margin-left: auto;
  }

  .ac-utente__nome {
    display: none;
  }

  .ac-utente__menu {
    width: min(290px, calc(100vw - 32px));
  }

  .ac-app .ac-pagina {
    padding: 22px 16px 56px !important;
  }

  body.ac-page .ac-intesta__h1 {
    font-size: 1.9rem;
  }

  body.ac-page .ac-prodotto-testa__nome {
    font-size: 2.3rem;
  }

  .ac-software {
    grid-template-columns: 1fr;
  }

  /* Riprendi: una fila che scorre di lato */
  .ac-griglia--riga {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .ac-griglia--riga > * {
    scroll-snap-align: start;
  }

  .ac-griglia {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .ac-capitolo__testa {
    flex-wrap: wrap;
  }

  .ac-capitolo__conta {
    flex-basis: 100%;
    margin-left: 48px;
  }

  .ac-form__campi {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-card-video__play,
  .ac-sw,
  .ac-sw__img img {
    transition: none;
  }

  .ac-sw:hover .ac-sw__img img {
    transform: none;
  }
}

/* Il CSS del sito colora i link e allinea i paragrafi: nelle pagine di accesso valgono questi */
body.ac-page main.ac-accesso a {
  color: var(--ac-orange-ink) !important;
  font-weight: 600;
}

body.ac-page main.ac-accesso a.ac-btn-grande {
  color: #161616 !important;
}

body.ac-page main.ac-accesso :is(.ac-accesso__alt, .ac-login__aiuto) {
  text-align: center !important;
}

/* ---------- Stile minimal a pillole (pagine dell'area, non l'accesso) ----------
   Niente fascia scura: barra chiara con ricerca e menu utente a pillola, schede dei
   software come pillole (piena quella attiva), superfici bianche senza bordi,
   angoli molto arrotondati. Va in fondo al file e sovrascrive gli stili sopra. */

body.ac-page--app {
  background: #f5f6f7 !important;
}

.ac-app {
  --ac-display: var(--ac-font);
  --ac-scuro: #1c2228;
  --ac-ombra: 0 1px 2px rgba(16, 22, 28, .05), 0 0 0 1px rgba(16, 22, 28, .04);
  --ac-ombra-su: 0 14px 34px rgba(16, 22, 28, .09), 0 0 0 1px rgba(16, 22, 28, .04);
}

/* Barra dell'area */
.ac-testata {
  background: transparent;
  color: var(--ac-ink);
}

.ac-testata__riga {
  min-height: 84px;
}

.ac-app .ac-testata__titolo {
  color: var(--ac-ink);
}

.ac-testata__titolo span {
  font-size: 1.15rem;
  font-weight: 600;
}

.ac-testata__titolo small {
  color: var(--ac-muted);
}

.ac-testata__cerca {
  color: var(--ac-muted);
}

.ac-testata__cerca svg {
  left: 18px;
}

.ac-testata__cerca input {
  min-height: 46px;
  padding: 0 20px 0 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ac-ink);
  box-shadow: var(--ac-ombra);
}

.ac-testata__cerca input::placeholder {
  color: #8d979f;
}

.ac-testata__cerca input:focus {
  box-shadow: 0 0 0 1px var(--ac-orange), 0 0 0 5px rgba(255, 119, 0, .14);
}

.ac-utente summary {
  padding: 5px 14px 5px 5px;
  background: #fff;
  box-shadow: var(--ac-ombra);
}

.ac-utente summary:hover,
.ac-utente[open] summary {
  background: #fff;
  box-shadow: var(--ac-ombra-su);
}

.ac-utente__avatar {
  width: 34px;
  height: 34px;
  color: #fff;
}

.ac-utente__freccia {
  color: var(--ac-muted);
}

.ac-utente__menu {
  top: calc(100% + 10px);
  padding: 10px;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--ac-ombra-su);
}

.ac-app .ac-utente__voce {
  border-radius: 999px;
  padding: 9px 14px;
}

.ac-utente__esci {
  margin-top: 4px;
  border-top: 0 !important;
  border-radius: 999px !important;
}

body.ac-page .ac-utente__chi {
  padding: 8px 14px 12px;
}

body.ac-page .ac-utente__etichetta {
  margin: 10px 14px 4px;
}

.ac-utente__assistenze {
  padding: 0 14px;
}

/* Schede dei software: pillole */
.ac-schede {
  gap: 8px;
  padding-bottom: 6px;
}

.ac-app .ac-scheda {
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 0;
  border-radius: 999px;
  color: var(--ac-muted);
  font-size: .92rem;
}

.ac-app .ac-scheda:hover {
  background: #fff;
  color: var(--ac-ink);
  box-shadow: var(--ac-ombra);
}

.ac-scheda span {
  padding: 0 7px;
  background: #e9ecef;
  color: var(--ac-muted);
}

.ac-app .ac-scheda.is-attiva {
  background: var(--ac-scuro);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.ac-scheda.is-attiva span {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.ac-app .ac-scheda--admin {
  color: var(--ac-muted);
}

.ac-app .ac-pagina {
  padding-top: 26px !important;
}

/* Titoli: stesso carattere del testo, più leggeri */
body.ac-page .ac-intesta__h1,
body.ac-page .ac-prodotto-testa__nome,
body.ac-page .ac-guarda__h1 {
  font-weight: 600;
  letter-spacing: -.02em;
}

body.ac-page .ac-intesta__h1 {
  font-size: 2.3rem;
}

body.ac-page .ac-prodotto-testa__nome {
  font-size: 2.7rem;
}

body.ac-page .ac-capitolo__titolo {
  font-weight: 600;
  font-size: 1.35rem;
}

/* Superfici bianche senza bordi */
.ac-avviso,
.ac-pannello,
.ac-indice,
.ac-scaletta {
  border: 0;
  border-radius: 24px;
  box-shadow: var(--ac-ombra);
}

.ac-pannello--nuovi {
  border-left: 0;
  box-shadow: 0 0 0 1px #ffd9b8, 0 1px 2px rgba(16, 22, 28, .05);
}

.ac-avviso {
  border-top: 0;
}

/* Panoramica */
.ac-app .ac-sw {
  padding: 8px;
  border: 0;
  border-radius: 26px;
  box-shadow: var(--ac-ombra);
}

.ac-app .ac-sw:hover {
  box-shadow: var(--ac-ombra-su);
}

.ac-sw__img {
  border-radius: 20px;
}

.ac-sw__nome {
  font-weight: 600;
  letter-spacing: -.02em;
}

.ac-sw__corpo {
  padding: 14px 12px 10px;
}

.ac-sw__scad {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef7f1;
}

.ac-barra {
  height: 5px;
  border-radius: 999px;
}

.ac-barra span {
  border-radius: 999px;
}

/* Copertine e schede delle guide */
.ac-card-video__media {
  border-radius: 18px;
}

.ac-card-video__durata,
.ac-card-video__vista {
  bottom: 10px;
  padding: 2px 9px;
  border-radius: 999px;
}

.ac-card-video__durata {
  right: 10px;
}

.ac-card-video__vista {
  left: 10px;
}

.ac-card-video__avanzamento {
  right: 12px;
  bottom: 8px;
  left: 12px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
}

/* Pagina del software */
.ac-prodotto-testa {
  padding-bottom: 6px;
  border-bottom: 0;
}

.ac-prodotto-testa__dati > span {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ac-ombra);
  font-size: .9rem;
}

.ac-prodotto-testa__dati {
  gap: 8px;
}

.ac-indice {
  padding: 14px 10px;
}

.ac-indice__cap summary {
  border-radius: 999px;
  padding: 7px 12px 7px 7px;
}

.ac-indice__num,
.ac-capitolo__num {
  border-radius: 999px;
}

.ac-indice__num {
  background: #eef0f2;
}

.ac-indice__cap ul {
  border-left: 0;
  margin-left: 14px;
}

.ac-app .ac-indice__cap ul a {
  border-radius: 999px;
  padding: 6px 12px;
}

.ac-capitolo__num {
  width: 32px;
  height: 32px;
  background: #e9ecef;
  color: var(--ac-ink);
  font-size: .95rem;
}

.ac-capitolo__conta {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ac-ombra);
  font-size: .85rem;
}

/* Pagina guida */
.ac-player {
  border-radius: 24px;
  box-shadow: var(--ac-ombra-su);
}

.ac-riprendi {
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}

.ac-riprendi button {
  border-radius: 999px;
  padding: 6px 14px;
}

.ac-guarda__info .ac-tag,
.ac-guarda__info > span:first-child {
  padding: 3px 12px;
  border-radius: 999px;
}

.ac-guarda__info > span:first-child {
  background: #fff;
  box-shadow: var(--ac-ombra);
}

.ac-prossima {
  border: 0;
  border-radius: 22px;
  box-shadow: var(--ac-ombra);
}

.ac-prossima:hover,
.ac-prossima.is-pronta {
  box-shadow: 0 0 0 2px var(--ac-orange);
}

.ac-prossima__cover {
  border-radius: 14px;
}

.ac-modulo {
  border-radius: 22px;
}

.ac-scaletta__testa {
  border-bottom: 0;
  padding: 18px 20px 10px;
}

.ac-scaletta__gruppo + .ac-scaletta__gruppo {
  border-top: 0;
}

body.ac-page .ac-scaletta__cat {
  margin: 0 8px;
  padding: 10px 14px;
  border-radius: 999px;
}

.ac-scaletta__lista {
  padding: 0 8px 8px;
}

.ac-scaletta__voce {
  border-left: 0;
  border-radius: 16px;
  padding: 7px 10px;
}

.ac-scaletta__voce.is-corrente {
  background: var(--ac-orange-wash);
}

.ac-scaletta__cover {
  border-radius: 10px;
}

/* Pulsanti, campi ed etichette a pillola */
.ac-app .ac-btn {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  box-shadow: var(--ac-ombra);
}

.ac-app .ac-btn--pieno {
  box-shadow: none;
}

.ac-app .ac-btn:hover {
  box-shadow: var(--ac-ombra-su);
}

.ac-app .ac-form input:not([type="checkbox"]):not([type="file"]),
.ac-app .ac-form select {
  border: 0;
  border-radius: 999px;
  padding-left: 16px;
  padding-right: 16px;
  background: #f1f3f5;
}

.ac-app .ac-form textarea {
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  background: #f1f3f5;
}

.ac-app .ac-form :is(input, select, textarea):focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-orange), 0 0 0 5px rgba(255, 119, 0, .14);
}

.ac-tag {
  border-radius: 999px;
  padding: 1px 10px;
}

.ac-alert,
.ac-dev {
  border-radius: 16px;
}

.ac-carica {
  border-radius: 24px;
}

.ac-mini-cover {
  border-radius: 10px;
}

.ac-table th {
  font-weight: 500;
}

.ac-table th,
.ac-table td {
  border-bottom-color: #eef0f2;
}

.ac-gruppo__testa th {
  border-bottom: 0 !important;
}

.ac-gruppo__testa th > * {
  vertical-align: middle;
}

.ac-maniglia {
  border-radius: 999px;
}

@media (max-width: 760px) {
  .ac-testata__riga {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .ac-utente summary {
    padding: 4px;
  }

  .ac-utente__freccia {
    display: none;
  }

  body.ac-page .ac-intesta__h1 {
    font-size: 1.8rem;
  }

  body.ac-page .ac-prodotto-testa__nome {
    font-size: 2.1rem;
  }

  .ac-capitolo__conta {
    margin-left: 46px;
    flex-basis: auto;
  }
}

.ac-app .ac-verifica input {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--ac-ink);
  font: inherit;
}

.ac-app .ac-verifica input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-orange), 0 0 0 5px rgba(255, 119, 0, .14);
}

/* ---------- Gestione video (area-clienti-admin.php) ----------
   Le guide a sinistra, caricamento e verifica overCRM in una colonna a destra che resta in vista.
   L'arancione pieno solo sui segni piccoli (maniglia, barre, focus); le sue tinte sulle superfici.
   Griglia: 1fr + 24px + 340px dentro i 1320px della pagina. */
.ac-gv {
  --gv-ink: #1c2228;
  --gv-muted: #5d6973;
  --gv-line: #eceef0;
  --gv-campo: #f1f3f5;
  --gv-tinta: #fff2e6;
  --gv-tinta-ink: #9a4600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ac-gv__testa {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

body.ac-page #maincontent .ac-gv__h1 {
  margin: 0;
  color: var(--gv-ink);
  font-size: 28px !important;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

body.ac-page .ac-gv__sub {
  margin: 6px 0 0;
  color: var(--gv-muted);
  font-size: 15px;
}

body.ac-page .ac-gv__sub a {
  margin-left: 4px;
  color: var(--gv-tinta-ink) !important;
  font-weight: 600;
  text-decoration: none;
}

body.ac-page .ac-gv__sub a:hover {
  text-decoration: underline;
}

.ac-app .ac-gv .ac-btn--pieno {
  background: var(--gv-ink);
  color: #fff;
}

.ac-app .ac-gv .ac-btn--pieno:hover {
  background: #000;
}

.ac-gv__griglia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.ac-gv__griglia.is-solo {
  grid-template-columns: minmax(0, 1fr);
}

.ac-gv__lato {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 24px;
  grid-column: 2;
  grid-row: 1;
}

.ac-gv__principale > * {
  min-width: 0;
}

.ac-gv__principale {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.ac-gv .ac-pannello {
  margin: 0;
  padding: 24px;
}

body.ac-page #maincontent .ac-gv .ac-pannello__titolo {
  margin: 0 0 16px;
  color: var(--gv-ink);
  font-size: 17px !important;
  font-weight: 600;
}

body.ac-page #maincontent .ac-gv .ac-pannello__testa .ac-pannello__titolo {
  margin: 0;
}

.ac-gv .ac-pannello__titolo span {
  margin-left: 4px;
}

.ac-gv .ac-hint {
  color: var(--gv-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Colonna destra: caricamento */
.ac-gv .ac-carica {
  gap: 4px;
  padding: 26px 18px;
  border: 1.5px dashed #d4d9de;
  border-radius: 18px;
  background: #fafbfb;
  font-size: 14px;
}

.ac-gv .ac-carica strong {
  font-size: 15px;
  font-weight: 600;
}

.ac-gv .ac-carica svg {
  margin-bottom: 4px;
  color: var(--ac-orange);
}

.ac-gv .ac-carica:hover,
.ac-gv .ac-carica:focus-within,
.ac-gv .ac-carica.is-sopra {
  border-color: var(--ac-orange);
  background: var(--gv-tinta);
}

.ac-gv .ac-caricamenti li {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gv-line);
  font-size: 14px;
}

.ac-gv .ac-caricamenti .ac-barra {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 4px;
  background: var(--gv-line);
}

.ac-gv .ac-caricamenti__nome {
  font-weight: 500;
}

.ac-gv .ac-caricamenti__stato {
  font-size: 13px;
  text-align: right;
}

/* Colonna destra: verifica */
.ac-gv .ac-verifica {
  flex-direction: column;
  max-width: none;
  margin: 14px 0 0;
}

.ac-gv .ac-verifica input {
  flex: none;
}

.ac-app .ac-gv .ac-verifica .ac-btn {
  min-height: 42px;
  background: var(--gv-campo);
  box-shadow: none;
  color: var(--gv-ink);
}

.ac-app .ac-gv .ac-verifica .ac-btn:hover {
  background: #e6e9ec;
  box-shadow: none;
}

.ac-gv #acVerificaEsito:not(:empty) {
  margin-top: 14px;
}

.ac-gv #acVerificaEsito .ac-alert {
  margin: 0 0 8px;
  font-size: 14px;
}

body.ac-page .ac-gv__fonte {
  margin: 14px 0 0;
  color: var(--gv-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ac-gv__fonte code {
  font-size: 12px;
}

/* Da sistemare: una riga per cosa, l'azione a destra */
.ac-gv .ac-gv__dafare {
  background: var(--gv-tinta);
  box-shadow: none;
}

.ac-gv .ac-gv__compiti {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.ac-gv__compiti li {
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #ffdcbd;
}

.ac-gv__compiti li:first-child {
  padding-top: 0;
  border-top: 0;
}

.ac-gv__compiti li:last-child {
  padding-bottom: 0;
}

.ac-gv__compito {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ac-gv__compito strong {
  color: var(--gv-ink);
  font-weight: 600;
}

.ac-gv__compito small {
  overflow: hidden;
  color: #6b4a2e;
  font-size: 13px;
  text-overflow: ellipsis;
}

.ac-app .ac-gv .ac-btn--piccolo {
  flex: none;
  min-height: 34px;
  padding: 0 16px;
  background: #fff;
  box-shadow: none;
  color: var(--gv-ink);
  font-size: 14px;
  font-weight: 600;
}

.ac-app .ac-gv .ac-btn--piccolo:hover {
  background: var(--gv-ink);
  box-shadow: none;
  color: #fff;
}

/* Elenco delle guide */
.ac-gv .ac-gv__elenco {
  padding-bottom: 12px;
}

.ac-gv .ac-pannello__testa {
  margin-bottom: 8px;
}

.ac-gv .ac-filtri select,
.ac-gv .ac-filtri input {
  min-height: 36px;
  font-size: 14px;
}

.ac-gv .ac-filtri {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.ac-gv .ac-filtri input {
  flex: 0 1 220px;
}

body.ac-page .ac-gv__aiuto {
  margin: 0 0 8px;
  font-size: 13px;
}

.ac-gv #acOrdineStato {
  color: var(--gv-tinta-ink);
  font-weight: 600;
}

.ac-gv .ac-table-wrap {
  position: relative;
}

.ac-gv .ac-table {
  font-size: 15px;
}

.ac-gv .ac-table thead th {
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3e6e9;
  color: var(--gv-muted);
  font-size: 13px;
  font-weight: 400;
}

.ac-gv .ac-table td {
  padding: 10px;
  border-bottom: 1px solid var(--gv-line);
}

.ac-gv .ac-gruppo__testa th {
  padding: 26px 10px 8px !important;
  border-bottom: 1px solid #e3e6e9 !important;
  color: var(--gv-muted) !important;
  font-size: 14px !important;
  font-weight: 400;
}

.ac-gv .ac-gruppo__testa strong {
  margin-right: 4px;
  color: var(--gv-ink);
  font-weight: 600;
}

.ac-gv .ac-gruppo__testa span {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gv-campo);
  font-size: 12px;
}

.ac-gv .ac-gruppo tr:last-child td {
  border-bottom: 0;
}

.ac-gv .ac-table__maniglia {
  width: 24px;
  padding-left: 0 !important;
}

.ac-gv .ac-maniglia {
  color: #8a949c;
}

.ac-gv .ac-maniglia:hover,
.ac-gv .ac-maniglia:focus-visible {
  background: var(--gv-tinta);
  color: var(--ac-orange-ink);
}

.ac-gv .ac-table__cover {
  width: 92px;
  padding-right: 4px !important;
}

.ac-gv .ac-mini-cover {
  width: 84px;
  border-radius: 8px;
  background: var(--gv-campo);
}

.ac-app .ac-gv .ac-gv__guida a {
  color: var(--gv-ink) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.ac-app .ac-gv .ac-gv__guida a:hover {
  color: var(--ac-orange-ink) !important;
  text-decoration: underline !important;
}

.ac-gv .ac-table__file {
  overflow: hidden;
  max-width: 30ch;
  margin-top: 2px;
  color: var(--gv-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-gv .ac-tag--errore {
  margin-right: 4px;
  font-size: 12px;
}

.ac-gv .ac-gv__durata,
.ac-gv .ac-gv__viste {
  width: 1%;
  color: var(--gv-ink);
}

.ac-gv__unita {
  display: none;
}

.ac-gv__vuoto {
  color: var(--gv-muted);
  font-size: 13px;
}

.ac-gv .ac-stato {
  min-height: 26px;
  padding: 2px 12px;
  border: 0;
  font-size: 13px;
  font-weight: 500;
}

.ac-gv .ac-stato.is-visibile {
  background: #e3f4e9;
  color: #1f6b40;
}

.ac-gv .ac-stato.is-bozza {
  background: var(--gv-campo);
  color: var(--gv-muted);
}

.ac-gv .ac-stato:hover {
  box-shadow: 0 0 0 1px var(--ac-orange);
}

.ac-gv .ac-table__azioni {
  width: 1%;
  text-align: right;
}

.ac-app .ac-gv .ac-table__azioni a {
  color: var(--gv-ink) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.ac-app .ac-gv .ac-table__azioni a:hover {
  text-decoration: underline !important;
}

.ac-gv .ac-link-danger {
  color: var(--gv-muted);
  text-decoration: none;
}

.ac-gv .ac-link-danger:hover,
.ac-gv .ac-link-danger:focus-visible {
  color: #a2271f;
  text-decoration: underline;
}

.ac-gv .ac-guida-riga:hover td {
  background: #fafbfb;
}

/* Scheda di una guida */
.ac-gv .ac-gv__scheda {
  margin-bottom: 24px;
}

.ac-gv .ac-field label,
.ac-gv .ac-field--coppia label {
  color: var(--gv-ink);
  font-size: 14px;
  font-weight: 500;
}

.ac-gv .ac-form__campi {
  gap: 16px;
}

.ac-gv .ac-check {
  margin-top: 0 !important;
}

.ac-gv .ac-form__anteprima {
  padding: 16px;
  border-radius: 18px;
  background: var(--gv-campo);
}

.ac-app .ac-gv #acScatta {
  background: #fff;
  box-shadow: none;
  color: var(--gv-ink);
}

.ac-app .ac-gv #acScatta:not(:disabled):hover {
  background: var(--gv-ink);
  color: #fff;
}

.ac-gv .ac-form__anteprima video {
  border-radius: 12px;
}

.ac-gv .ac-form__copertine img {
  border: 0;
  border-radius: 8px;
}

/* Pulsanti secondari: un tono di grigio, nessuna ombra */
.ac-app .ac-gv .ac-btn:not(.ac-btn--pieno):not(.ac-btn--piccolo):not(#acScatta) {
  background: var(--gv-campo);
  box-shadow: none;
  color: var(--gv-ink);
}

.ac-app .ac-gv .ac-btn:hover {
  box-shadow: none;
}

@media (max-width: 1100px) {
  .ac-gv__griglia {
    grid-template-columns: minmax(0, 1fr);
  }

  .ac-gv__lato,
  .ac-gv__principale {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .ac-gv__lato {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}


@media (max-width: 900px) {
  /* Le righe diventano schede a due righe: copertina e titolo, poi durata, persone, stato e azioni.
     Sul telefono non si riordina: la maniglia resta per tastiera e mouse. */
  .ac-gv .ac-table-wrap {
    overflow: visible;
  }

  .ac-gv .ac-table thead,
  .ac-gv .ac-table__maniglia {
    display: none;
  }

  .ac-gv .ac-table,
  .ac-gv .ac-table tbody,
  .ac-gv .ac-gruppo__testa,
  .ac-gv .ac-gruppo__testa th {
    display: block;
  }

  .ac-gv .ac-gruppo[hidden],
  .ac-gv .ac-guida-riga[hidden] {
    display: none;
  }

  .ac-gv .ac-gruppo__testa th {
    padding: 22px 0 8px !important;
  }

  .ac-gv .ac-guida-riga {
    display: grid;
    grid-template-columns: 72px auto auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gv-line);
  }

  .ac-gv .ac-gruppo .ac-guida-riga:last-child {
    border-bottom: 0;
  }

  .ac-gv .ac-guida-riga td {
    width: auto;
    padding: 0;
    border: 0;
    font-size: 13px;
  }

  .ac-gv .ac-table__cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .ac-gv .ac-mini-cover {
    width: 72px;
  }

  .ac-gv .ac-guida-riga .ac-gv__guida {
    grid-column: 2 / -1;
    grid-row: 1;
    font-size: 15px;
  }

  .ac-gv .ac-table__file {
    max-width: none;
  }

  .ac-gv__unita {
    display: inline;
    font-size: 13px;
  }

  .ac-gv .ac-guida-riga > .ac-gv__durata { grid-column: 2; grid-row: 2; }
  .ac-gv .ac-guida-riga > .ac-gv__viste { grid-column: 3; grid-row: 2; }
  .ac-gv .ac-guida-riga > td:nth-child(6) { grid-column: 4; grid-row: 2; }

  .ac-gv .ac-guida-riga > .ac-table__azioni {
    grid-column: 5;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  /* Azioni su una terza riga, sotto i dati */
  .ac-gv .ac-guida-riga > .ac-table__azioni {
    grid-column: 2 / -1;
    grid-row: 3;
    justify-self: start;
  }

  .ac-gv .ac-table__azioni form {
    margin-left: 16px;
  }}

@media (max-width: 760px) {
  body.ac-page #maincontent .ac-gv__h1 {
    font-size: 24px !important;
  }

  .ac-gv__testa .ac-btn {
    width: 100%;
  }

  /* Sul telefono: caricamento, poi le guide, la verifica in fondo */
  .ac-gv__lato {
    display: contents;
  }

  .ac-gv__principale {
    order: 1;
  }

  .ac-gv__lato > .ac-pannello:last-of-type {
    order: 2;
  }

  .ac-gv .ac-pannello {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .ac-gv .ac-filtri {
    width: 100%;
  }

  .ac-gv .ac-filtri select {
    flex: 1 1 140px;
  }

  .ac-gv .ac-filtri input {
    flex: 1 1 100%;
  }

  .ac-gv__compiti li {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-gv .ac-carica {
    transition: none;
  }
}
