/* ====================================================
   UTILITIES
==================================================== */

/* Garantisce che [hidden] nasconda sempre l'elemento,
   anche se una classe CSS imposta display esplicitamente */
[hidden] { display: none !important; }
.u-mt-1 { margin-top: var(--space-1); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-8 { margin-top: var(--space-8); }
.u-mt-10 { margin-top: var(--space-10, 2.5rem); }
.u-mt-12 { margin-top: var(--space-12); }
.u-mt-16 { margin-top: var(--space-16); }

.u-mb-1 { margin-bottom: var(--space-1); }
.u-mb-2 { margin-bottom: var(--space-2); }
.u-mb-3 { margin-bottom: var(--space-3); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-6 { margin-bottom: var(--space-6); }
.u-mb-8 { margin-bottom: var(--space-8); }
.u-mb-10 { margin-bottom: var(--space-10, 2.5rem); }
.u-mb-12 { margin-bottom: var(--space-12); }
.u-mb-16 { margin-bottom: var(--space-16); }

.body-md {
  font-size: 1.1rem;
  color: #666666;
  line-height: 1.7;
}

.body-sm {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
}

.text-bold { font-weight: var(--fw-bold); }
.text-semibold { font-weight: var(--fw-semibold); }
.text-dark { color: var(--grey-900); }
.text-muted { color: var(--grey-700); }
.text-blue { color: var(--blue-1); }
.text-white { color: var(--white); }
.text-white-soft { color: rgba(255, 255, 255, 0.4); }
.text-success { color: #4caf50; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.btn-full { width: 100%; }
.h-full { height: 100%; }

.grid-2--top { align-items: start; }
.grid-2--gap-lg { gap: var(--space-8); }
.grid-2--gap-8 { gap: var(--space-8); }
.grid-2--gap-12 { gap: var(--space-12); }
.grid-2--gap-16 { gap: var(--space-16); }

.btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-group--centered {
  justify-content: center;
}

.btn-group--full > .btn {
  flex: 1 1 0;
}

.btn-group--mt-8 {
  margin-top: var(--space-8);
}

.section-title--mb-4  { margin-bottom: var(--space-4); }
.section-title--mb-6  { margin-bottom: var(--space-6); }
.section-title--mb-8  { margin-bottom: var(--space-8); }
.section-title--mb-10 { margin-bottom: var(--space-10, 2.5rem); }

.section-dark--centered {
  text-align: center;
}

.video-actions {
  margin-top: var(--space-8);
}

.feature-visual {
  background: linear-gradient(160deg, #1a3d6e, #0d2547);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-80 {
  width: 80%;
  height: 80%;
}

.footer-brand-copy {
  color: var(--white);
}

.footer-brand-copy .login-brand-sub {
  color: rgba(255, 255, 255, 0.4);
}

.price-blue { font-weight: var(--fw-bold); color: var(--blue-1); }
.price-green { font-weight: var(--fw-bold); color: #1b8a4e; }

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.panel-stack--spaced {
  margin-top: var(--space-6);
}

.panel-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.panel-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  margin-bottom: var(--space-4);
}

.surface-panel {
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
  padding: var(--space-6);
}

.req-heading {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  margin-bottom: var(--space-6);
}

/* --- Breadcrumb links (MPA uses <a> tags) --- */
.breadcrumb a {
  color: rgba(255, 255, 255, 0.52);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ====================================================
   SHARED COMPONENTS
==================================================== */
.info-box {
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
  padding: var(--space-8);
}

.info-box-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-700);
  margin-bottom: var(--space-4);
}

.info-box-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  margin-bottom: var(--space-2);
}

.info-box-sub {
  font-size: var(--text-xs);
  color: var(--grey-700);
  margin-bottom: var(--space-4);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card + .product-card {
  margin-top: var(--space-4);
}

.use-case-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.use-case-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
}

.use-case-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.use-case-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-1);
  stroke-width: 2;
  fill: none;
}

.use-case-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
  margin-bottom: 4px;
}

.use-case-desc {
  font-size: var(--text-xs);
  color: var(--grey-700);
}

.format-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.format-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--grey-300);
}

.format-name {
  font-size: var(--text-sm);
  color: var(--grey-700);
}

.format-name--bold {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
}

.model-card {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.model-card--a { background: linear-gradient(160deg, #1a3d6e, #0d2547); }
.model-card--b { background: linear-gradient(160deg, #0d2547, #163caa); }
.model-card--c { background: linear-gradient(160deg, #163caa, #214ecd); }
.model-card--d { background: linear-gradient(160deg, #214ecd, #0a2b4c); }

.model-card-label,
.mono-note {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-card-locked,
.mono-note--centered {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  text-align: center;
}

.mono-note--centered {
  position: static;
}

.model-preview {
  width: 80%;
  height: 80%;
}

.svg-full { width: 100%; height: 100%; }
.svg-80 { width: 80%; height: 80%; }

.version-box {
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.version-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.version-box-number {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
}

.version-box-meta {
  font-size: var(--text-xs);
  color: var(--grey-700);
  margin-bottom: var(--space-4);
}

.version-box-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
  margin-bottom: var(--space-3);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.changelog-list li {
  display: flex;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--grey-500);
}

.changelog-arrow {
  color: var(--blue-1);
  flex-shrink: 0;
}

.dl-card--featured {
  border-color: var(--blue-1);
  border-width: 2px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
  padding: 3% !important;
  margin-top: 3% !important;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--blue-1);
  stroke-width: 1.5;
  fill: none;
}

.contact-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  margin-bottom: 4px;
}

.contact-value {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  text-decoration: none;
}

.contact-value:hover { color: var(--blue-1); }

.contact-hours {
  font-size: var(--text-xs);
  color: var(--grey-700);
  margin-top: 4px;
}

.dashboard-hidden { display: none; }

.dashboard-wrap {
  padding-top: var(--header-height);
  background: var(--bg-section-alt);
  min-height: 100vh;
}

.dashboard-container {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.dashboard-header,
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.dashboard-welcome {
  font-size: var(--text-xs);
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.dashboard-name {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
}

.acc-panel { display: none; }
.acc-panel.active,
.acc-panel[style*="display:block"],
.acc-panel[style*="display: block"] { display: block; }

.acc-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.acc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.acc-card-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
}

.dl-item-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
}

.dl-item-left {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.dl-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-item-icon--dark { background: var(--blue-dark); }
.dl-item-icon--blue { background: var(--blue-1); }

.dl-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
  fill: none;
}

.dl-item-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
}

.dl-item-meta {
  font-size: var(--text-xs);
  color: var(--grey-500);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.update-item {
  padding: var(--space-4);
  border-left: 4px solid var(--grey-300);
  background: var(--bg-section-alt);
}

.update-item--current {
  border-left-color: var(--blue-1);
}

.update-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.update-version {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
}

.update-item-desc {
  font-size: var(--text-xs);
  color: var(--grey-500);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--grey-300);
}

.doc-label {
  font-size: var(--text-sm);
  color: var(--grey-700);
}

.license-box {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--blue-light);
  border-left: 4px solid var(--blue-1);
}

.license-box-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-2);
  margin-bottom: 4px;
}

.license-box-text {
  font-size: var(--text-sm);
  color: var(--grey-700);
}

.login-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  margin-bottom: var(--space-6);
  text-align: center;
}

.login-brand-name {
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-brand-sub {
  font-size: 0.65rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-recover {
  font-size: var(--text-xs);
  color: var(--grey-500);
  text-align: center;
  margin-top: var(--space-4);
}

.login-recover a { color: var(--blue-1); }

.login-register {
  border-top: 1px solid var(--grey-300);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  text-align: center;
}

.login-register-label {
  font-size: var(--text-sm);
  color: var(--grey-700);
  margin-bottom: var(--space-4);
}

.login-back {
  font-size: var(--text-xs);
  color: var(--grey-500);
  cursor: pointer;
  text-align: center;
  margin-top: var(--space-4);
  text-decoration: none;
  display: block;
}

.login-back:hover { color: var(--blue-1); }

.product-box {
  background: var(--bg-section-alt);
  border: 1px solid var(--grey-300);
  padding: var(--space-8);
}

.product-box-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-bottom: var(--space-6);
}

.product-box-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-box-item {
  background: var(--white);
  border: 1px solid var(--grey-300);
  padding: var(--space-6);
}

.product-box-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-1);
  margin-bottom: var(--space-2);
}

.product-box-item-sub {
  font-size: var(--text-xs);
  color: var(--grey-500);
  margin-bottom: var(--space-4);
}

.product-box--compact {
  padding: var(--space-4);
}

.product-box--compact .product-box-list {
  gap: var(--space-2);
}

.product-box--compact .product-box-item {
  padding: var(--space-3) var(--space-4);
}

.product-box--compact .product-box-item-title {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
  line-height: 1.25;
}

.product-box--compact .product-box-item-sub {
  margin-bottom: 0;
  line-height: 1.35;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-hours {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--space-2);
}

.dashboard-toggle {
  width: 100%;
  margin-top: var(--space-4);
}

.account-user-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
}

.account-user-email {
  font-size: var(--text-xs);
  color: var(--grey-500);
}
