.mra-preventivatore-shell {
  width: 100%;
  background: #000;
}

.mra-preventivatore-shell--full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.mra-preventivatore,
.mra-preventivatore *,
.mra-preventivatore *::before,
.mra-preventivatore *::after,
.mra-preventivatore__noscript {
  box-sizing: border-box;
}

.mra-preventivatore {
  --mra-red: #dc2626;
  --mra-red-dark: #b91c1c;
  --mra-black: #000;
  --mra-ink: #09090b;
  --mra-panel: #101013;
  --mra-line: #27272a;
  --mra-soft-line: #18181b;
  --mra-text: #fff;
  --mra-muted: #a1a1aa;
  --mra-dim: #71717a;
  min-height: 100vh;
  background: var(--mra-black);
  color: var(--mra-text);
  font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color-scheme: dark;
}

.mra-preventivatore :where(button, input, textarea) {
  font: inherit;
  border-radius: 0;
  letter-spacing: 0;
}

.mra-preventivatore [hidden] {
  display: none !important;
}

.mra-preventivatore button,
.mra-preventivatore a {
  -webkit-tap-highlight-color: transparent;
}

.mra-preventivatore__app,
.mra-preventivatore__success {
  position: relative;
  min-height: 100vh;
  padding: 32px;
}

.mra-preventivatore__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.mra-preventivatore__header {
  max-width: 880px;
  padding-top: 18px;
  margin-bottom: 54px;
}

.mra-preventivatore__header p {
  margin: 0 0 10px;
  color: var(--mra-red);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mra-preventivatore__header h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: 4rem;
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mra-preventivatore__header h1 span {
  color: var(--mra-red);
}

.mra-preventivatore__progress {
  margin-bottom: 48px;
}

.mra-preventivatore__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--mra-dim);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mra-preventivatore__bar {
  height: 4px;
  overflow: hidden;
  background: #18181b;
}

.mra-preventivatore__bar span {
  display: block;
  height: 100%;
  background: var(--mra-red);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.8);
  transition: width 220ms ease;
}

.mra-preventivatore__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}

.mra-preventivatore__step {
  animation: mra-preventivatore-fade-in 260ms ease both;
}

.mra-preventivatore__step h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mra-preventivatore__rule {
  display: block;
  width: 96px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--mra-red);
}

.mra-preventivatore__step-description,
.mra-preventivatore__hint {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--mra-muted);
  font-size: 1rem;
}

.mra-preventivatore__hint {
  padding-left: 16px;
  border-left: 2px solid var(--mra-red);
  font-style: italic;
}

.mra-preventivatore__options,
.mra-preventivatore__fields {
  display: grid;
  gap: 12px;
}

.mra-preventivatore__option {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 26px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--mra-line);
  background: #020202;
  color: var(--mra-muted);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mra-preventivatore__option:hover,
.mra-preventivatore__option:focus-visible {
  border-color: #52525b;
  background: var(--mra-panel);
  color: #fff;
  outline: 0;
}

.mra-preventivatore__option.is-selected {
  border-color: var(--mra-red);
  background: var(--mra-ink);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--mra-red);
}

.mra-preventivatore__option-thumb {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid var(--mra-soft-line);
  background-color: #111;
  background-position: center;
  background-size: cover;
  color: #fff;
  filter: grayscale(1);
  opacity: 0.64;
  transition: filter 180ms ease, opacity 180ms ease, border-color 180ms ease;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mra-preventivatore__option-thumb--label {
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.2), transparent 55%),
    #080808;
  text-align: center;
}

.mra-preventivatore__option:hover .mra-preventivatore__option-thumb,
.mra-preventivatore__option:focus-visible .mra-preventivatore__option-thumb,
.mra-preventivatore__option.is-selected .mra-preventivatore__option-thumb {
  border-color: #3f3f46;
  filter: grayscale(0);
  opacity: 1;
}

.mra-preventivatore__option-copy {
  min-width: 0;
}

.mra-preventivatore__option-title {
  display: block;
  color: currentColor;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mra-preventivatore__option-note {
  display: block;
  margin-top: 4px;
  color: var(--mra-red);
  font-size: 0.82rem;
  font-weight: 800;
}

.mra-preventivatore__option-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #3f3f46;
}

.mra-preventivatore__option.is-selected .mra-preventivatore__option-check::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--mra-red);
}

.mra-preventivatore__input,
.mra-preventivatore__textarea {
  width: 100%;
  border: 1px solid #3f3f46;
  background: #020202;
  color: #fff;
  padding: 16px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mra-preventivatore__textarea {
  min-height: 180px;
  resize: vertical;
}

.mra-preventivatore__input::placeholder,
.mra-preventivatore__textarea::placeholder {
  color: #52525b;
}

.mra-preventivatore__input:focus,
.mra-preventivatore__textarea:focus {
  border-color: var(--mra-red);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.65);
}

.mra-preventivatore__nested {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid var(--mra-soft-line);
}

.mra-preventivatore__three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mra-preventivatore__three .mra-preventivatore__option {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 94px;
}

.mra-preventivatore__three .mra-preventivatore__option-check {
  display: none;
}

.mra-preventivatore__three .mra-preventivatore__option-thumb {
  width: 64px;
  height: 64px;
}

.mra-preventivatore__nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  margin-top: 48px;
  border-top: 1px solid var(--mra-soft-line);
}

.mra-preventivatore__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 24px;
  color: inherit;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.mra-preventivatore__button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mra-preventivatore__button--secondary {
  border-color: var(--mra-line);
  background: transparent;
  color: var(--mra-muted);
}

.mra-preventivatore__button--secondary:hover:not(:disabled),
.mra-preventivatore__button--secondary:focus-visible {
  border-color: #52525b;
  color: #fff;
  outline: 0;
}

.mra-preventivatore__button--primary {
  background: var(--mra-red);
  color: #fff;
  box-shadow: 0 14px 24px -14px rgba(220, 38, 38, 0.75);
}

.mra-preventivatore__button--primary:hover:not(:disabled),
.mra-preventivatore__button--primary:focus-visible {
  background: var(--mra-red-dark);
  outline: 0;
}

.mra-preventivatore__button--submit {
  background: #fff;
  color: #000;
}

.mra-preventivatore__button--submit:hover:not(:disabled),
.mra-preventivatore__button--submit:focus-visible {
  background: #e4e4e7;
  outline: 0;
}

.mra-preventivatore__required,
.mra-preventivatore__error {
  margin: 16px 0 0;
  color: #fca5a5;
  font-size: 0.9rem;
}

.mra-preventivatore__summary {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid var(--mra-line);
  background: #030303;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.mra-preventivatore__summary-head {
  padding: 24px;
  border-bottom: 1px solid var(--mra-line);
  background: var(--mra-panel);
}

.mra-preventivatore__summary-head h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.mra-preventivatore__summary-head span {
  display: block;
  width: 46px;
  height: 4px;
  background: var(--mra-red);
}

.mra-preventivatore__summary ul {
  min-height: 120px;
  padding: 8px 24px;
  margin: 0;
  list-style: none;
}

.mra-preventivatore__summary li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mra-soft-line);
}

.mra-preventivatore__summary li:last-child {
  border-bottom: 0;
}

.mra-preventivatore__summary li span {
  color: var(--mra-dim);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mra-preventivatore__summary li strong {
  color: #fff;
  font-size: 0.92rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.mra-preventivatore__summary li.mra-preventivatore__empty {
  display: block;
  color: var(--mra-dim);
  font-size: 0.92rem;
}

.mra-preventivatore__total {
  padding: 24px;
  border-top: 1px solid var(--mra-line);
  background: var(--mra-panel);
}

.mra-preventivatore__total p {
  margin: 0 0 4px;
  color: var(--mra-dim);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mra-preventivatore__total strong {
  display: block;
  color: var(--mra-red);
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.mra-preventivatore__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0 18px;
  margin-top: 72px;
  border-top: 1px solid var(--mra-soft-line);
  color: var(--mra-dim);
}

.mra-preventivatore__footer strong,
.mra-preventivatore__footer span,
.mra-preventivatore__footer a {
  display: block;
}

.mra-preventivatore__footer strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.mra-preventivatore__footer a {
  color: var(--mra-muted);
  text-align: right;
  text-decoration: none;
}

.mra-preventivatore__footer a:hover,
.mra-preventivatore__footer a:focus-visible {
  color: #fff;
}

.mra-preventivatore__success {
  display: grid;
  place-items: center;
}

.mra-preventivatore__success-card {
  width: min(680px, 100%);
  border: 1px solid var(--mra-line);
  background: #020202;
  padding: 42px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

.mra-preventivatore__success-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin: 0 auto 24px;
  border: 4px solid var(--mra-red);
  background: #000;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.28);
}

.mra-preventivatore__success-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--mra-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.mra-preventivatore__success h1 {
  margin: 0 0 8px;
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.mra-preventivatore__success-subtitle {
  margin: 0 0 28px;
  color: var(--mra-muted);
  font-size: 1.2rem;
}

.mra-preventivatore__success-body {
  border: 1px solid var(--mra-soft-line);
  background: var(--mra-panel);
  padding: 28px;
}

.mra-preventivatore__success-body p,
.mra-preventivatore__success-body strong,
.mra-preventivatore__success-body span {
  display: block;
  margin: 0;
}

.mra-preventivatore__success-body p {
  color: var(--mra-muted);
}

.mra-preventivatore__success-body strong {
  margin-top: 8px;
  color: #fff;
  font-size: 1.15rem;
}

.mra-preventivatore__success-body span {
  margin-top: 4px;
  color: var(--mra-dim);
  font-size: 0.9rem;
}

.mra-preventivatore__next {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--mra-line);
  text-align: left;
}

.mra-preventivatore__next h2 {
  margin: 0 0 18px;
  color: var(--mra-red);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.mra-preventivatore__next ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: mra-next;
}

.mra-preventivatore__next li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--mra-muted);
}

.mra-preventivatore__next li::before {
  counter-increment: mra-next;
  content: counter(mra-next);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--mra-line);
  color: var(--mra-red);
  font-weight: 900;
}

.mra-preventivatore__success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.mra-preventivatore__noscript {
  padding: 24px;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes mra-preventivatore-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .mra-preventivatore__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mra-preventivatore__summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .mra-preventivatore__app,
  .mra-preventivatore__success {
    padding: 18px;
  }

  .mra-preventivatore__header {
    padding-top: 0;
    margin-bottom: 34px;
  }

  .mra-preventivatore__header h1 {
    font-size: 2.55rem;
  }

  .mra-preventivatore__step h2 {
    font-size: 2rem;
  }

  .mra-preventivatore__progress {
    margin-bottom: 32px;
  }

  .mra-preventivatore__option {
    grid-template-columns: 68px minmax(0, 1fr) 24px;
    min-height: 94px;
    gap: 14px;
    padding: 12px;
  }

  .mra-preventivatore__option-thumb {
    width: 68px;
    height: 68px;
    font-size: 0.8rem;
  }

  .mra-preventivatore__three {
    grid-template-columns: 1fr;
  }

  .mra-preventivatore__three .mra-preventivatore__option {
    grid-template-columns: 68px minmax(0, 1fr) 24px;
  }

  .mra-preventivatore__three .mra-preventivatore__option-check {
    display: grid;
  }

  .mra-preventivatore__three .mra-preventivatore__option-thumb {
    width: 68px;
    height: 68px;
  }

  .mra-preventivatore__nav,
  .mra-preventivatore__footer {
    flex-direction: column;
  }

  .mra-preventivatore__button {
    width: 100%;
  }

  .mra-preventivatore__footer a {
    text-align: left;
  }

  .mra-preventivatore__success-card {
    padding: 28px 18px;
  }

  .mra-preventivatore__success h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 420px) {
  .mra-preventivatore__header h1 {
    font-size: 2.1rem;
  }

  .mra-preventivatore__step h2 {
    font-size: 1.65rem;
  }

  .mra-preventivatore__option {
    grid-template-columns: 58px minmax(0, 1fr) 22px;
  }

  .mra-preventivatore__option-thumb {
    width: 58px;
    height: 58px;
  }

  .mra-preventivatore__total strong {
    font-size: 1.9rem;
  }
}
