:root {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #171719;
  background: #fff;
  font-synthesis: none;
  --blue: #c83f2b;
  --muted: #606067;
  --line: #dedee3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
button {
  transition:
    background 0.15s,
    border-color 0.15s;
}
button,
input {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.demo-bar {
  padding: 10px 24px;
  background: #fff2ee;
  color: #803c30;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.demo-bar span {
  margin-left: 15px;
  font-weight: 400;
}
.header {
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  text-decoration: none;
  font-weight: 700;
  font-size: 39px;
  letter-spacing: -2.4px;
  line-height: 1;
}
.wordmark span {
  font-size: 13px;
  vertical-align: top;
  letter-spacing: 0;
  margin-left: 5px;
}
.header-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-left: 32px;
  margin-right: auto;
}
.bag-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 11px 16px;
  font-size: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.bag-button span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #171719;
  color: white;
  min-width: 24px;
  height: 24px;
  font-size: 12px;
}
main {
  max-width: 1312px;
  margin: auto;
  padding: 0 32px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 47px 0 30px;
}
.intro h1 {
  font-size: 64px;
  letter-spacing: -3.4px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: right;
}
.journey {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.journey span {
  padding: 0 0 16px;
}
.journey .active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr);
  gap: 70px;
  align-items: start;
}
.visual-column {
  position: sticky;
  top: 24px;
}
.product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.product-tabs button {
  border: 1px solid transparent;
  background: #f5f5f7;
  color: #525258;
  padding: 12px 23px;
  border-radius: 24px;
  font-size: 14px;
}
.product-tabs button[aria-pressed="true"] {
  background: #171719;
  color: white;
}
.stage {
  height: 550px;
  background: #f5f5f7;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.stage-top,
.stage-bottom {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #62626b;
}
.stage-top {
  top: 22px;
}
.stage-bottom {
  bottom: 20px;
  align-items: center;
}
.stage-bottom .text-button {
  font-size: 12px;
  color: #62626b;
}
.product-art {
  position: absolute;
  inset: 55px 0 50px;
  background-image: url("products.webp");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: 0% 50%;
  transition: filter 0.2s;
}
.product-art.light {
  filter: invert(0.91) contrast(0.83);
  mix-blend-mode: multiply;
}
.logo-zone {
  position: absolute;
  left: 58%;
  top: 38%;
  width: 13%;
  height: 13%;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: white;
  text-align: center;
  line-height: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -1px;
}
.logo-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-zone.glass {
  color: #36363a;
}
.logo-zone.light {
  color: #202024;
}
.logo-zone.glass img {
  filter: grayscale(1);
  opacity: 0.65;
}
.preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-top: 23px;
}
.preview-caption > span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.6px;
  min-width: 150px;
}
.preview-caption strong {
  font-weight: 500;
  color: #82828a;
}
.preview-caption p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0;
}
.product-heading h2 {
  font-size: 36px;
  letter-spacing: -1.4px;
  font-weight: 500;
  margin: 0 0 8px;
}
.product-heading p {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 16px;
}
fieldset {
  margin: 0 0 23px;
  padding: 0;
  border: 0;
}
legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  width: 100%;
}
legend span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 9px;
}
.swatches {
  display: flex;
  gap: 12px;
}
.swatch {
  width: 33px;
  height: 33px;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 0;
  background: var(--swatch);
}
.swatch[aria-pressed="true"] {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  font-size: 14px;
  font-weight: 600;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  height: 42px;
}
.stepper button {
  border: 0;
  background: transparent;
  width: 38px;
  height: 100%;
  font-size: 22px;
  font-weight: 400;
}
.stepper input {
  width: 56px;
  text-align: center;
  border: 0;
  background: none;
  font-size: 16px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button {
  appearance: none;
}
.field-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.field-title > span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sizes label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.sizes input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 3px;
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
}
#sizes-wrap {
  margin-bottom: 23px;
}
.text-button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
#fill-sizes {
  margin-top: 9px;
}
.segmented {
  display: flex;
  gap: 8px;
}
.segmented button {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 14px;
  flex: 1;
}
.segmented button[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 14px;
  border: 1px dashed #a8a9b2;
  border-radius: 7px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload:hover {
  background: #fff7f4;
}
.upload:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-symbol {
  font-size: 29px;
  font-weight: 300;
}
.upload strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}
.upload small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.upload-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.file-status {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 12px 0 22px;
}
.file-status.warning {
  color: #865100;
}
.width-control label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 9px;
}
.width-control output {
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  accent-color: #171719;
  margin: 0 0 23px;
}
.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}
.check-line input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
  margin: 2px 0;
}
.check-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.price-box {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.price-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price-box > div > span {
  font-size: 14px;
}
.price-box strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
.price-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 9px 0 14px;
}
details {
  font-size: 13px;
  margin: 14px 0 20px;
}
summary {
  cursor: pointer;
  color: var(--muted);
}
dl {
  font-size: 13px;
}
dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0;
}
dd {
  margin: 0;
}
.primary,
.secondary {
  border-radius: 7px;
  width: 100%;
  padding: 16px 20px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #a62d1c;
}
.secondary {
  background: white;
  color: #171719;
  border-color: var(--line);
  margin-top: 10px;
}
.secondary:hover {
  background: #f5f5f7;
}
.microcopy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.error {
  font-size: 13px;
  color: #a4202b;
  line-height: 1.5;
}
.process {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 34px 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}
.process > div > span {
  font-size: 13px;
  color: var(--muted);
}
.process h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.process p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 270px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px max(32px, calc((100vw - 1248px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.footer-mark {
  font-size: 26px;
  color: #171719;
  font-weight: 600;
  letter-spacing: -1.2px;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 30px;
  width: min(620px, calc(100% - 24px));
  max-height: 90vh;
  box-shadow: 0 24px 100px #0003;
  color: #171719;
}
dialog::backdrop {
  background: #14141d70;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-top h2 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 7px;
}
.close-button {
  border: 0;
  background: #f2f2f5;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  font-size: 25px;
  line-height: 1;
}
.cart-line {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.cart-line h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}
.cart-line p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0;
}
.cart-line > strong {
  font-size: 17px;
  font-weight: 500;
}
.cart-line .text-button {
  grid-column: 2;
  text-align: right;
}
.cart-line .review-label {
  color: #865100;
}
.delivery-options {
  display: grid;
  gap: 10px;
}
.delivery-options label {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.delivery-options input {
  accent-color: var(--blue);
}
.delivery-options span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
#bag-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.cart-totals {
  font-size: 14px;
}
.cart-totals .grand-total {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 15px;
  font-size: 24px;
  font-weight: 500;
}
.notice {
  background: #f5f6f9;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #53535c;
  margin: 20px 0;
}
#notes-dialog p,
#review-result p {
  font-size: 15px;
  line-height: 1.65;
}
#review-result h3 {
  font-size: 27px;
  letter-spacing: -0.8px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #171719;
  color: white;
  padding: 15px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 6px 28px #0002;
  z-index: 5;
  max-width: calc(100% - 24px);
  text-align: center;
}
@media (min-width: 1500px) {
  .stage {
    height: 580px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  }
  .header {
    padding: 25px 32px;
  }
  .stage {
    height: 440px;
  }
  .preview-caption {
    display: block;
  }
  .preview-caption p {
    margin-top: 14px;
  }
  .intro h1 {
    font-size: 56px;
  }
}
@media (max-width: 700px) {
  .demo-bar {
    font-size: 12px;
    padding: 8px 12px;
  }
  .demo-bar span {
    display: block;
    margin: 0;
  }
  .header {
    padding: 21px 20px;
  }
  .wordmark {
    font-size: 33px;
  }
  .header-note {
    display: none;
  }
  .bag-button {
    font-size: 12px;
    padding: 8px 10px;
    gap: 8px;
  }
  main {
    padding: 0 20px;
  }
  .intro {
    margin: 30px 0 24px;
    align-items: flex-start;
    gap: 12px;
  }
  .intro h1 {
    font-size: 48px;
    letter-spacing: -2.8px;
  }
  .intro p {
    font-size: 13px;
    line-height: 1.5;
  }
  .journey {
    gap: 15px;
    font-size: 12px;
    margin-bottom: 22px;
  }
  .journey span {
    flex: 1;
    line-height: 1.4;
    padding-bottom: 12px;
  }
  .workspace {
    display: block;
  }
  .visual-column {
    position: static;
  }
  .product-tabs {
    gap: 7px;
  }
  .product-tabs button {
    flex: 1;
    padding: 11px 10px;
  }
  .stage {
    height: 420px;
  }
  .product-art {
    inset: 45px 0 40px;
  }
  .stage-top,
  .stage-bottom {
    left: 16px;
    right: 16px;
    font-size: 11px;
  }
  .preview-caption {
    display: flex;
    padding-top: 16px;
    gap: 20px;
  }
  .preview-caption > span {
    font-size: 19px;
    min-width: 115px;
  }
  .preview-caption p {
    font-size: 12px;
    margin: 0;
  }
  .controls-column {
    margin-top: 32px;
  }
  .product-heading h2 {
    font-size: 30px;
  }
  .product-heading p {
    font-size: 15px;
  }
  .process {
    margin-top: 38px;
    padding-top: 28px;
    gap: 18px;
  }
  .process h3 {
    font-size: 19px;
  }
  .process p {
    font-size: 12px;
  }
  .process > div > span {
    font-size: 12px;
  }
  footer {
    padding: 25px 20px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  footer .text-button {
    font-size: 12px;
  }
  dialog {
    padding: 23px 20px;
  }
  .dialog-top h2 {
    font-size: 28px;
  }
  .delivery-options label {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Persistent price remains usable while editing long configurations. */
body {
  padding-bottom: 94px;
}
.quickbar {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffffed;
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 13px max(24px, calc((100vw - 1248px) / 2));
}
.quickbar > div {
  margin-right: auto;
}
.quickbar small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.quickbar strong {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.quickbar button {
  width: auto;
  margin: 0;
  padding: 12px 22px;
}
.quickbar .secondary {
  font-size: 14px;
}
body:has(dialog[open]) .quickbar {
  visibility: hidden;
}
.toast {
  bottom: 100px;
}
.product-tabs button {
  white-space: nowrap;
}
.product-art {
  inset: auto;
  width: 78%;
  max-width: 350px;
  height: 80%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 700px) {
  body {
    padding-bottom: 105px;
  }
  .quickbar {
    padding: 12px 16px;
    gap: 9px;
  }
  .quickbar small {
    font-size: 11px;
    max-width: 150px;
    line-height: 1.3;
  }
  .quickbar strong {
    font-size: 21px;
  }
  .quickbar button {
    padding: 12px;
    font-size: 13px;
  }
  .quickbar .secondary {
    font-size: 12px;
  }
  .quickbar .primary {
    max-width: 110px;
  }
  .toast {
    bottom: 115px;
  }
  .product-art {
    width: 72%;
    max-width: 290px;
  }
}

.product-tabs {
  flex-wrap: wrap;
}
.product-tabs button {
  padding: 11px 17px;
}
.intro h1 {
  font-size: 54px;
}
@media (max-width: 700px) {
  .intro {
    display: block;
  }
  .intro h1 {
    font-size: 44px;
  }
  .intro p {
    text-align: left;
    margin-top: 16px;
  }
  .product-tabs button {
    flex: 0 1 auto;
    padding: 11px 14px;
  }
  .stage {
    height: 420px;
  }
}

.product-art.apparel {
  height: auto;
  aspect-ratio: 1/1;
}

/* Percorso senza blocchi anticipati. */
.wordmark,
.footer-mark {
  font-size: 28px;
  letter-spacing: 1.2px;
  font-weight: 750;
}
.contact-field {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0;
}
.contact-field > span,
.optional {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid #b8b8bf;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  box-sizing: border-box;
  background: white;
}
.contact-field textarea {
  resize: vertical;
}
.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
#review-result h3 {
  margin-top: 0;
}
#sizes-fields {
  margin-top: 17px;
}
.advanced {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.advanced > summary {
  font-weight: 500;
  color: #171719;
}
.advanced[open] > summary {
  margin-bottom: 18px;
}
.cart-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 22px;
}
.cart-actions .text-button {
  width: auto;
}
.quickbar .primary {
  min-width: 0;
}
.product-tabs {
  flex-wrap: wrap;
}
#request-success:focus {
  outline: 2px solid var(--blue);
}
#request-form[aria-busy="true"] {
  opacity: 0.75;
}
.microcopy a {
  text-decoration: underline;
}
.preview-caption p {
  max-width: 320px;
}
@media (max-width: 700px) {
  .intro {
    display: block;
  }
  .intro p {
    text-align: left;
    margin-top: 15px;
  }
  .product-tabs button {
    flex: 1 1 auto;
  }
  .quickbar {
    gap: 8px;
  }
  .quickbar .primary {
    padding: 12px 9px;
  }
  .quickbar .secondary {
    padding: 12px 8px;
  }
  .quickbar small {
    font-size: 10px;
  }
  .wordmark {
    font-size: 24px;
  }
  .header {
    padding: 18px 20px;
  }
  .stage {
    height: 360px;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .process p {
    max-width: none;
  }
  .journey {
    font-size: 12px;
  }
  .contact-field input,
  .contact-field textarea {
    font-size: 16px;
  }
}

.contact-links { display: grid; gap: 12px; margin-top: 8px; }
.contact-links .button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 52px; padding: 14px 20px; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none;
}
.contact-links .button:hover { background: #a62d1c; }
.contact-waiting { color: var(--muted); font-size: 0.95rem; margin: 0; }
