:root {
  --navy: #111f3d;
  --deep: #101b32;
  --ink: #15243e;
  --blue: #47a5e7;
  --blue-light: #e7f4ff;
  --paper: #f6f8fc;
  --white: #fff;
  --muted: #63728a;
  --border: #dbe3ef;
  --shadow: 0 14px 40px rgba(12, 31, 55, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.wrap {
  width: min(1420px, calc(100% - 56px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 29, 55, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff1d;
  color: white;
}
.head-inner {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-block;
  font-size: 22px;
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.075em;
  white-space: nowrap;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.19em;
  font-weight: 700;
  color: #b9cde8;
  margin-top: 8px;
}
.toplinks {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}
.toplinks a {
  padding: 30px 0;
  border-bottom: 2px solid transparent;
  color: #dbe6f5;
}
.toplinks a.active {
  border-color: var(--blue);
  color: white;
}
.rightnav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.roundbtn {
  width: 45px;
  height: 45px;
  border: 1px solid #ffffff49;
  border-radius: 50%;
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  position: relative;
}
.roundbtn svg {
  width: 21px;
  height: 21px;
}
.cart-bubble {
  position: absolute;
  right: -4px;
  top: -3px;
  font-size: 10px;
  background: var(--blue);
  color: #0a2138;
  border-radius: 20px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.menu-short {
  display: none;
}
.hero {
  background:
    radial-gradient(ellipse at 92% 42%, #255078 0%, transparent 46%),
    linear-gradient(130deg, #0d172b, #142845 75%);
  color: white;
  overflow: hidden;
}
.hero-shell {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  min-height: 350px;
  align-items: center;
  gap: 44px;
  padding-block: 55px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77c3f9;
}
.eyebrow:before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(67px, 9vw, 118px);
  letter-spacing: -0.09em;
  line-height: 0.85;
  margin: 25px 0 22px;
}
.hero p {
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.5;
  color: #d2ddeb;
  max-width: 660px;
  margin: 0;
}
.usp {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 33px;
}
.usp span {
  font-size: 12px;
  letter-spacing: 0.015em;
  color: #e2efff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.usp b {
  background: #ffffff1b;
  border: 1px solid #ffffff29;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #91d0ff;
  font-size: 16px;
}
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 125px 125px;
  gap: 10px;
  transform: rotate(-6deg) translate(10px, 4px);
}
.hero-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #c7e7ff24;
  box-shadow: 0 18px 26px #0712205c;
}
.hero-photos img:first-child {
  grid-row: span 2;
}
.hero-photos img:nth-child(2) {
  transform: translateY(-14px);
}
.hero-photos img:nth-child(3) {
  transform: translateY(-14px);
}
.section-main {
  padding: 48px 0 95px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: clamp(33px, 4.6vw, 56px);
  letter-spacing: -0.06em;
  margin: 9px 0 10px;
}
.section-head p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.demo-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: #e5f2ff;
  border: 1px solid #cfe3f5;
  border-radius: 9px;
  color: #1b567c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 16px 0 22px;
}
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: white;
  border: 1px solid var(--border);
  padding: 12px 17px;
  border-radius: 9px;
  color: #42536c;
  font-size: 13px;
  font-weight: 700;
  min-height: 43px;
}
.chip.selected {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 7px 18px #112b4a18;
}
.control-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.searchwrap {
  position: relative;
}
.searchwrap svg {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 18px;
  color: #61748d;
}
.searchwrap input {
  width: 225px;
  max-width: 40vw;
  min-height: 43px;
  padding: 10px 14px 10px 39px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.control-right select {
  padding: 11px 30px 11px 10px;
  min-height: 43px;
  border-radius: 9px;
  background: white;
  border: 1px solid var(--border);
  font-size: 13px;
  color: #2e405c;
}
.result-heading {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7e899a;
  margin: 0 0 14px;
  font-weight: 800;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}
.cover {
  position: relative;
  display: block;
  aspect-ratio: 1.9;
  background: #d6e3f2;
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s;
}
.product-card:hover .cover img {
  transform: scale(1.03);
}
.kind {
  display: inline-block;
  position: absolute;
  left: 15px;
  top: 15px;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 850;
  border-radius: 20px;
  color: #fff;
  background: #183658d9;
  backdrop-filter: blur(9px);
  box-shadow: 0 4px 14px #0002;
}
.product-body {
  padding: 22px 20px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.overline {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 900;
  font-size: 10px;
  color: #2977af;
  margin: 0;
}
.product-body h3 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 9px 0 9px;
}
.product-subtitle {
  color: #445770;
  margin: -4px 0 10px;
  font-size: 13px;
  font-weight: 700;
}
.small-description {
  color: #647185;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.grow {
  flex: 1;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e4eaf1;
  margin-top: 8px;
  padding-top: 17px;
  margin-bottom: 17px;
}
.price-row strong {
  font-size: 27px;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.price-row span {
  font-size: 11px;
  color: #8792a5;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.outline,
.filled {
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition:
    transform 0.18s,
    background 0.18s;
}
.outline {
  background: white;
  border: 1px solid #26476d;
  color: #17314d;
}
.filled {
  background: #132945;
  color: white;
  border: 1px solid #132945;
}
.filled:hover {
  background: #21517b;
}
.outline:hover {
  background: #ebf4fd;
}
.filled:active,
.outline:active {
  transform: scale(0.985);
}
.empty {
  padding: 46px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  grid-column: 1/-1;
  line-height: 1.5;
  color: #63728a;
}
.empty h2 {
  color: var(--ink);
}
.empty .inline-button {
  margin-top: 16px;
}
.bottom-strip {
  background: #eaf2fa;
  padding: 35px 0;
  border-top: 1px solid #dbe7f2;
}
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bottom-grid > div {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.bottom-grid .num {
  font-size: 27px;
  color: #4eabd7;
  font-weight: 900;
}
.bottom-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.bottom-grid p {
  font-size: 12px;
  color: #738197;
  line-height: 1.5;
  margin: 0;
}
.site-footer {
  background: #101e39;
  color: #d9e6f6;
  padding: 34px 0 105px;
  font-size: 12px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-row strong {
  font-size: 14px;
  color: white;
}
.footer-row a {
  color: #9dd5f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mobile-nav {
  display: none;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 85px;
  left: 50%;
  transform: translate(-50%, 12px);
  max-width: calc(100vw - 36px);
  background: #163857;
  color: white;
  box-shadow: 0 14px 26px #11274632;
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.page-title {
  padding: 55px 0 36px;
}
.page-title h1 {
  font-size: clamp(45px, 7vw, 72px);
  letter-spacing: -0.07em;
  margin: 12px 0;
}
.page-title p {
  color: #64738a;
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
}
.breadcrumbs {
  color: #7a889a;
  font-size: 12px;
  padding-top: 28px;
  display: flex;
  gap: 12px;
}
.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-layout {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 55px;
  padding: 35px 0 50px;
  align-items: center;
}
.detail-image {
  border-radius: 17px;
  overflow: hidden;
  background: #d8e5f4;
  position: relative;
  aspect-ratio: 1.32;
  box-shadow: var(--shadow);
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-copy h1 {
  font-size: clamp(41px, 4.7vw, 64px);
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 14px 0 14px;
}
.detail-subtitle {
  font-size: 20px;
  letter-spacing: -0.035em;
  color: #52677f;
  margin: 0 0 20px;
}
.detail-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #68798d;
  max-width: 570px;
}
.detail-price {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin: 20px 0 22px;
}
.detail-price small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: #7b8796;
  margin-left: 8px;
  white-space: nowrap;
}
.detail-buttons {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.large {
  font-size: 14px;
  min-height: 55px;
  padding: 16px 24px;
}
.detail-notes {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: grid;
  gap: 14px;
  color: #5e6b80;
  font-size: 13px;
}
.detail-notes span {
  color: #338ac3;
  font-size: 18px;
  margin-right: 8px;
}
.details-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}
.details-bottom section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 29px;
}
.details-bottom h2 {
  font-size: 30px;
  letter-spacing: -0.05em;
  margin: 12px 0;
}
.details-bottom p,
.details-bottom li {
  line-height: 1.75;
  font-size: 14px;
  color: #5f7188;
}
.details-bottom ul {
  padding-left: 19px;
}
.delivery {
  font-weight: 800;
  color: #244c71 !important;
}
.back-row {
  padding-bottom: 80px;
}
.back-row a {
  font-weight: 800;
  color: #285777;
}
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 25px;
  padding-bottom: 85px;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 23px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item:first-child {
  padding-top: 0;
}
.cart-item img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-item h2 {
  margin: 8px 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.cart-item strong {
  font-size: 15px;
}
.quantity {
  margin-top: 13px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.quantity button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  min-width: 32px;
  min-height: 32px;
}
.quantity .remove {
  border: none;
  color: #a54b4b;
  text-decoration: underline;
  margin-left: 7px;
}
.cart-main,
.order-side,
.checkout-formbox {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.order-side h2 {
  margin: 0 0 20px;
  font-size: 23px;
  letter-spacing: -0.035em;
}
.sumline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  color: #566781;
  font-size: 14px;
}
.sumline.total {
  border-top: 1px solid var(--border);
  color: var(--ink);
  margin-top: 10px;
  padding-top: 17px;
  font-weight: 850;
}
.sumline.total strong {
  font-size: 24px;
}
.order-side p {
  font-size: 12px;
  line-height: 1.7;
  color: #708097;
}
.full {
  width: 100%;
  margin-top: 15px;
}
.checkout-layout {
  grid-template-columns: 1.12fr 0.88fr;
}
.checkout-formbox h2 {
  margin: 0 0 22px;
  font-size: 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #566781;
  font-weight: 700;
}
.field.span {
  grid-column: 1/-1;
}
.field input {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  padding: 13px 14px;
  min-height: 45px;
}
.payment-box {
  margin: 24px 0 10px;
  border: 1px solid #c9dcf0;
  background: #f0f7ff;
  padding: 19px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.payment-box h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.payment-box p {
  margin: 7px 0;
  color: #596e85;
}
.demo-disabled {
  opacity: 0.6;
  background: #62748b;
  border-color: #62748b;
  cursor: not-allowed;
}
.checkout-item {
  padding: 12px 0;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}
.checkout-item small {
  color: #728397;
}
@media (max-width: 1080px) {
  .toplinks {
    gap: 18px;
  }
  .hero-shell {
    min-height: 300px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-layout {
    gap: 28px;
  }
  .actions {
    grid-template-columns: 1fr;
  }
  .cover {
    aspect-ratio: 1.85;
  }
  .price-row strong {
    font-size: 25px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .head-inner {
    height: 67px;
  }
  .brand {
    font-size: 19px;
  }
  .brand span {
    font-size: 7px;
    letter-spacing: 0.15em;
  }
  .toplinks {
    display: none;
  }
  .roundbtn {
    width: 43px;
    height: 43px;
  }
  .menu-short {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #bbd3ec;
  }
  .hero-shell {
    display: block;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 35px;
  }
  .hero h1 {
    font-size: clamp(67px, 18vw, 90px);
  }
  .hero p {
    font-size: 16px;
  }
  .hero-photos {
    display: none;
  }
  .usp {
    gap: 12px;
    margin-top: 23px;
  }
  .usp span {
    font-size: 10px;
  }
  .usp b {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
  .section-main {
    padding: 35px 0 72px;
  }
  .section-head {
    display: block;
  }
  .section-head h2 {
    font-size: 39px;
  }
  .demo-note {
    font-size: 11px;
  }
  .controls {
    display: grid;
    gap: 12px;
  }
  .chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .chip {
    padding: 9px 8px;
    font-size: 11px;
  }
  .control-right {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .searchwrap input {
    max-width: none;
    width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .product-card {
    border-radius: 15px;
  }
  .cover {
    aspect-ratio: 1.9;
  }
  .product-body {
    padding: 20px;
  }
  .product-body h3 {
    font-size: 23px;
  }
  .small-description {
    font-size: 13px;
  }
  .actions {
    grid-template-columns: 1fr 1fr;
  }
  .outline,
  .filled {
    padding: 12px 8px;
    font-size: 11px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .bottom-strip {
    padding: 30px 0;
  }
  .site-footer {
    padding-bottom: 120px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 33;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f6f9fff7;
    backdrop-filter: blur(14px);
    border-top: 1px solid #d7e4f1;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 25px #2137560a;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #263c58;
  }
  .mobile-nav a.active {
    color: #187dbf;
  }
  .mobile-nav svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.75;
    fill: none;
    stroke: currentColor;
  }
  .toast {
    bottom: 88px;
  }
  .page-title {
    padding: 36px 0 20px;
  }
  .page-title h1 {
    font-size: 51px;
  }
  .product-layout,
  .details-bottom,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .product-layout {
    gap: 28px;
    padding: 22px 0 35px;
  }
  .detail-image {
    aspect-ratio: 1.35;
  }
  .detail-copy h1 {
    font-size: 45px;
  }
  .detail-intro {
    font-size: 15px;
  }
  .details-bottom section {
    padding: 22px;
  }
  .back-row {
    padding-bottom: 50px;
  }
  .detail-buttons .filled,
  .detail-buttons .outline {
    flex: 1;
  }
  .cart-layout,
  .checkout-layout {
    padding-bottom: 55px;
  }
  .cart-item {
    grid-template-columns: 92px 1fr;
    gap: 13px;
  }
  .cart-item img {
    width: 92px;
    height: 94px;
  }
  .cart-item > strong {
    grid-column: 2;
    justify-self: end;
  }
  .cart-item h2 {
    font-size: 16px;
  }
  .cart-main,
  .order-side,
  .checkout-formbox {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.span {
    grid-column: 1;
  }
  .checkout-layout .order-side {
    order: -1;
  }
}
@media (max-width: 360px) {
  .actions {
    grid-template-columns: 1fr;
  }
  .usp span:nth-child(3) {
    display: none;
  }
  .chip {
    font-size: 10px;
  }
  .detail-buttons {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 2026-10-12 / Integrazione visiva con la home palladinonicola.it.
   Stessa tipografia, header chiaro, hero blu, azzurro, CTA arrotondate,
   fondo, spaziature e navigazione mobile della home. */
:root {
  --navy: #111f3d;
  --deep: #101e39;
  --ink: #111f3d;
  --blue: #47a5e7;
  --blue-light: #e7f4ff;
  --paper: #f6f8fc;
  --muted: #62718a;
  --border: #d9e3f1;
  --shadow: none;
}
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 22px;
}
.site-header {
  background: rgba(246, 248, 252, 0.96);
  color: var(--ink);
  border-bottom: 1px solid rgba(17, 31, 61, 0.13);
}
.head-inner {
  height: 70px;
  gap: 18px;
}
.brand {
  font-size: 24px;
  letter-spacing: -0.075em;
  line-height: 0.9;
}
.brand span {
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.19em;
  font-weight: 600;
  margin-top: 7px;
}
.toplinks {
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}
.toplinks a {
  color: var(--ink);
  padding: 26px 0;
}
.toplinks a.active {
  color: #155e9b;
  border-color: var(--blue);
}
.roundbtn {
  width: 44px;
  height: 44px;
  border: 1px solid #cbd0d9;
  background: transparent;
  color: var(--ink);
}
.roundbtn svg {
  width: 19px;
  height: 19px;
}
.cart-bubble {
  background: var(--blue);
  color: var(--ink);
}
.menu-short {
  color: var(--ink);
}
.hero {
  background: linear-gradient(145deg, #101c38, #18345b 78%);
}
.hero-shell {
  min-height: 570px;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding-block: 60px;
}
.hero h1 {
  font-size: clamp(72px, 9.2vw, 132px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.86;
  margin: 35px 0 24px;
}
.hero h1 span {
  color: #63b9f6 !important;
}
.hero p {
  font-size: 20px;
  color: #e0eaf6;
  line-height: 1.5;
  max-width: 550px;
}
.hero .eyebrow {
  color: #63b9f6;
}
.usp {
  margin-top: 30px;
  gap: 18px;
}
.usp span {
  color: #e0eaf6;
}
.hero-photos {
  display: block;
  height: 490px;
  transform: none;
  overflow: hidden;
  position: relative;
  border-radius: 22px;
  background: #192e4b;
}
.hero-photos:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(8, 20, 43, 0.43));
  pointer-events: none;
}
.hero-photos img {
  display: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}
.hero-photos img:first-child {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.section-main {
  background: #ecf1f8;
  padding: 85px 0 110px;
}
.section-head h2 {
  font-size: clamp(43px, 7vw, 76px);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.97;
  margin: 14px 0 20px;
}
.section-head p {
  font-size: 16px;
  line-height: 1.5;
  color: #69778b;
}
.eyebrow {
  letter-spacing: 0.16em;
}
.section-main .eyebrow,
.page-title .eyebrow {
  color: #2d76a8;
}
.demo-note {
  margin: 14px 0 27px;
  border-radius: 10px;
  background: #dcecf8;
  color: #174c77;
  border-color: #c8deef;
}
.chips {
  gap: 10px;
}
.chip {
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  color: #263d5d;
}
.chip.selected {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: none;
}
.searchwrap input,
.control-right select {
  border-radius: 999px;
}
.product-grid {
  gap: 28px 20px;
}
.product-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none !important;
}
.product-card:hover {
  box-shadow: none !important;
}
.cover {
  border-radius: 10px;
  overflow: hidden;
  background: #dce7f6;
}
.product-body {
  padding: 17px 1px 8px;
}
.product-body h3 {
  font-size: 21px;
  letter-spacing: -0.045em;
  line-height: 1.13;
  margin: 11px 0;
}
.overline {
  color: #346b9e;
}
.product-subtitle,
.small-description {
  color: #51627c;
}
.price-row {
  border-top: 1px solid #cedae8;
  margin-top: 16px;
  margin-bottom: 15px;
}
.price-row strong {
  font-size: 26px;
  letter-spacing: -0.05em;
  color: #111f3d;
}
.actions {
  gap: 9px;
}
.outline,
.filled {
  border-radius: 999px;
  min-height: 49px;
  padding: 13px 15px;
  box-shadow: none !important;
  font-weight: 800;
}
.filled {
  background: var(--blue);
  color: var(--ink);
  border: 1px solid var(--blue);
}
.filled:hover {
  background: #7cc1f0;
}
.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid #6a83a6;
}
.outline:hover {
  background: #fff;
}
.bottom-strip {
  background: #fff;
  padding: 70px 0;
  border-color: var(--border);
}
.bottom-grid .num {
  color: #47a5e7;
}
.site-footer {
  background: #101e39;
  color: #e0e9f5;
  padding: 52px 0 90px;
}
.footer-row a {
  color: #a8d6f7;
}
.page-title {
  padding-top: 65px;
}
.page-title h1,
.detail-copy h1 {
  letter-spacing: -0.075em;
}
.cart-main,
.order-side,
.checkout-formbox,
.details-bottom section {
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}
.detail-image {
  border-radius: 20px;
  box-shadow: none;
}
.demo-disabled {
  background: #8d9aad;
  border-color: #8d9aad;
  color: #fff;
}
.mobile-nav {
  background: #f6f8fcf2;
  border-top: 1px solid #d6e0ef;
  box-shadow: none;
  grid-template-columns: repeat(4, 1fr);
}
.mobile-nav a {
  color: var(--ink);
}
.mobile-nav a.active {
  color: #155e9b;
}
.mobile-nav svg {
  stroke: currentColor;
}
@media (min-width: 760px) {
  .wrap {
    padding-inline: 50px;
  }
  .head-inner {
    height: 86px;
  }
  .hero-shell {
    min-height: 670px;
  }
  .hero-photos {
    height: 580px;
  }
}
@media (max-width: 1080px) {
  .hero-shell {
    gap: 25px;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding-inline: 22px;
    width: 100%;
  }
  .head-inner {
    height: 70px;
  }
  .brand {
    font-size: 24px;
  }
  .brand span {
    font-size: 9px;
    letter-spacing: 0.19em;
  }
  .toplinks {
    display: none;
  }
  .roundbtn {
    width: 44px;
    height: 44px;
  }
  .menu-short {
    font-size: 13px;
  }
  .hero-shell {
    padding: 34px 22px 0;
    min-height: calc(100svh - 70px);
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero h1 {
    font-size: clamp(64px, 16vw, 100px);
    margin: 37px 0 22px;
  }
  .hero p {
    font-size: 17px;
    line-height: 1.45;
  }
  .usp {
    margin: 22px 0 0;
    gap: 10px;
  }
  .usp span {
    font-size: 10px;
  }
  .hero-photos {
    display: block;
    align-self: stretch;
    height: 390px;
    min-height: 310px;
    margin: 30px -22px 0;
    border-radius: 0;
    overflow: hidden;
    flex: 1;
  }
  .hero-photos img:first-child {
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .section-main {
    padding: 75px 0 95px;
  }
  .section-head h2 {
    font-size: clamp(43px, 8.3vw, 65px);
    line-height: 0.98;
  }
  .section-head p {
    font-size: 15px;
  }
  .controls {
    gap: 14px;
  }
  .chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chip {
    border-radius: 999px;
    font-size: 11px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .cover {
    aspect-ratio: 1.7;
    border-radius: 12px;
  }
  .product-body {
    padding: 17px 1px 4px;
  }
  .product-body h3 {
    font-size: 23px;
  }
  .actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .outline,
  .filled {
    font-size: 12px;
    min-height: 50px;
  }
  .site-footer {
    padding-bottom: 120px;
  }
  .bottom-strip {
    padding: 50px 0;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 4px max(8px, env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    font-size: 10px;
    gap: 5px;
    padding: 6px 0;
  }
  .mobile-nav svg {
    width: 22px;
    height: 22px;
  }
  .page-title {
    padding-top: 48px;
  }
}
@media (max-width: 390px) {
  .brand {
    font-size: 21px;
  }
  .brand span {
    font-size: 8px;
  }
  .hero h1 {
    font-size: clamp(55px, 16vw, 70px);
  }
  .usp span {
    font-size: 9px;
  }
}
/* Le immagini provvisorie hanno già la categoria impressa nel fotogramma.
   Evita che il badge HTML si sovrapponga due volte. */
.cover .kind,
.detail-image .kind {
  display: none;
}
.hero-photos img:first-child {
  object-position: right center;
}
@media (max-width: 720px) {
  .hero-photos img:first-child {
    object-position: right center;
  }
}

/* Mobile shop refinement: first screen shows product titles/prices immediately,
   and the catalog cards are grouped in clear white boxes. */
.mobile-catalog-preview {
  display: none;
}
@media (max-width: 720px) {
  .hero-shell {
    padding: 26px 22px 26px;
    min-height: auto;
    display: block;
  }
  .hero h1 {
    font-size: clamp(56px, 15vw, 82px);
    margin: 18px 0 14px;
  }
  .hero p {
    font-size: 15px;
    line-height: 1.4;
    max-width: none;
  }
  .usp {
    display: none;
  }
  .hero-photos {
    display: none;
  }
  .mobile-catalog-preview {
    display: block;
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #d8e4f0;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(9, 29, 56, 0.08);
  }
  .preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
  }
  .preview-head small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5f7fa1;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .preview-head strong {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #111f3d;
  }
  .preview-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #47a5e7;
    color: #111f3d;
    font-size: 12px;
    font-weight: 800;
  }
  .preview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .preview-stats div {
    background: #f4f8fd;
    border: 1px solid #e0e8f2;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
  }
  .preview-stats span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #67809a;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .preview-stats strong {
    font-size: 18px;
    letter-spacing: -0.04em;
    color: #111f3d;
  }
  .preview-list {
    display: grid;
    gap: 8px;
  }
  .preview-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    padding: 12px 13px;
  }
  .preview-list a span {
    font-size: 13px;
    line-height: 1.3;
    color: #15304d;
    font-weight: 700;
    min-width: 0;
  }
  .preview-list a strong {
    font-size: 14px;
    color: #111f3d;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .section-main {
    padding: 26px 0 95px;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 34px;
    margin: 8px 0 10px;
  }
  .section-head p {
    font-size: 14px;
    line-height: 1.45;
  }
  .demo-note {
    margin: 10px 0 18px;
  }
  .controls {
    margin-bottom: 18px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card {
    background: #fff !important;
    border: 1px solid #d9e3f1 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px rgba(9, 29, 56, 0.06) !important;
    overflow: hidden;
  }
  .cover {
    border-radius: 0;
    aspect-ratio: 1.68;
  }
  .product-body {
    padding: 18px 16px 16px;
  }
  .product-body h3 {
    font-size: 22px;
    margin: 8px 0 8px;
  }
  .small-description {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .price-row {
    margin-top: 10px;
    padding-top: 14px;
    margin-bottom: 14px;
  }
  .price-row strong {
    font-size: 24px;
  }
  .actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .outline,
  .filled {
    min-height: 47px;
    font-size: 11px;
    padding: 12px 9px;
  }
}
@media (max-width: 390px) {
  .preview-head {
    flex-direction: column;
    align-items: stretch;
  }
  .preview-head a {
    width: 100%;
  }
  .preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-list a span {
    font-size: 12px;
  }
}

/* V5: catalog overview remains compact on standard mobile displays. */
@media (min-width: 351px) and (max-width: 390px) {
  .preview-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .preview-head strong {
    font-size: 21px;
  }
  .preview-head a {
    width: auto;
    min-height: 38px;
    font-size: 10px;
    padding: 0 10px;
  }
  .preview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .preview-stats div {
    min-width: 0;
    padding: 9px 3px;
  }
  .preview-stats span {
    font-size: 8px;
    letter-spacing: 0;
    text-transform: none;
  }
  .preview-list a {
    padding: 10px 12px;
  }
  .hero-shell {
    padding-top: 20px;
  }
  .hero h1 {
    margin: 14px 0 12px;
  }
  .mobile-catalog-preview {
    margin-top: 14px;
    padding: 13px;
  }
}
@media (max-height: 750px) and (max-width: 720px) {
  .hero-shell {
    padding-top: 16px;
  }
  .hero h1 {
    margin-top: 12px;
    margin-bottom: 9px;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.3;
  }
  .mobile-catalog-preview {
    margin-top: 12px;
  }
  .preview-head {
    margin-bottom: 10px;
  }
  .preview-stats {
    margin-bottom: 10px;
  }
  .preview-list {
    gap: 5px;
  }
  .preview-list a {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

/* V6 - Navigazione inferiore esclusiva della home. Nessun menu fisso nello Shop. */
@media (max-width: 720px) {
  .site-footer {
    padding-bottom: 48px;
  }
  .toast {
    bottom: 22px;
  }
}

/* V7 - Mobile: catalogo iniziale a categorie con fotografie, titoli e conteggi.
   I prezzi restano soltanto nelle schede di vendita sottostanti. */
.shop-intro-mobile {
  display: none;
}
@media (max-width: 720px) {
  .hero-shell {
    padding-top: 21px;
    padding-bottom: 24px;
  }
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.13em;
  }
  .hero h1 {
    font-size: clamp(56px, 14vw, 79px);
    margin: 15px 0 12px;
    line-height: 0.9;
  }
  .shop-intro-wide {
    display: none;
  }
  .hero .shop-intro-mobile {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    max-width: 390px;
    color: #d8e7f6;
    margin: 0;
  }
  .mobile-catalog-preview {
    margin-top: 18px;
    background: #f7f9fd;
    border: 1px solid #d7e3f0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 8, 28, 0.13);
    color: #111f3d;
  }
  .preview-head {
    margin-bottom: 13px;
    align-items: center;
    flex-direction: row;
  }
  .preview-head small {
    font-size: 10px;
    letter-spacing: 0.16em;
    font-weight: 800;
    margin-bottom: 5px;
  }
  .preview-head strong {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.065em;
  }
  .preview-head a {
    min-height: 37px;
    padding: 0 12px;
    gap: 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .preview-head a span {
    font-size: 17px;
  }
  .preview-groups {
    display: grid;
    gap: 12px;
  }
  .preview-group {
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    padding: 11px 10px 7px;
  }
  .preview-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #eaf0f6;
  }
  .preview-group-title span {
    color: #2b6b9b;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.13em;
  }
  .preview-group-title b {
    font-size: 10px;
    font-weight: 800;
    color: #62758e;
    background: #eef5fb;
    border-radius: 100px;
    padding: 5px 9px;
    white-space: nowrap;
  }
  .preview-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 7px 2px;
    border-bottom: 1px solid #eef2f7;
    color: #162b4a;
  }
  .preview-item:last-child {
    border-bottom: 0;
    padding-bottom: 3px;
  }
  .preview-item img {
    width: 56px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #d8e8f3;
    flex: 0 0 auto;
  }
  .preview-item > span {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    flex: 1;
    min-width: 0;
  }
  .preview-item i {
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    color: #348dcc;
    margin-right: 4px;
  }
  .preview-item:focus-visible {
    outline: 3px solid #47a5e7;
    outline-offset: 2px;
    border-radius: 8px;
  }
}
@media (max-width: 390px) {
  .preview-head {
    flex-direction: row;
    align-items: center;
  }
  .preview-head a {
    width: auto;
  }
  .preview-head strong {
    font-size: 24px;
  }
  .mobile-catalog-preview {
    padding: 13px;
  }
  .preview-item img {
    width: 51px;
    height: 42px;
  }
  .preview-item > span {
    font-size: 12px;
  }
}

/* V8 - Shop: Home button round exactly as cart on all shop pages. */
.home-icon-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.rightnav .home-icon-btn,
.rightnav .roundbtn {
  width: 44px;
  height: 44px;
}
@media (max-width: 360px) {
  .head-inner {
    gap: 8px;
  }
  .brand {
    font-size: 19px;
  }
  .brand span {
    font-size: 7px;
    letter-spacing: 0.13em;
  }
  .rightnav {
    gap: 7px;
  }
  .rightnav .home-icon-btn,
  .rightnav .roundbtn {
    width: 41px;
    height: 41px;
  }
}

/* V8 - La prima schermata mobile è UN SOLO RIQUADRO con il catalogo completo.
   Allo scroll la pagina si assesta sulla sezione successiva. */
@media (max-width: 720px) {
  html.shop-catalog-page {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 70px;
  }
  body[data-page="catalog"] .hero,
  body[data-page="catalog"] .section-main {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  body[data-page="catalog"] .hero {
    height: calc(100svh - 70px);
    min-height: 0;
    overflow: hidden;
  }
  body[data-page="catalog"] .hero-shell {
    height: 100%;
    min-height: 0;
    padding: 14px 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  body[data-page="catalog"] .hero-shell > div:first-child {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }
  body[data-page="catalog"] .hero-shell > div:first-child > .eyebrow,
  body[data-page="catalog"] .hero-shell > div:first-child > h1,
  body[data-page="catalog"] .hero-shell > div:first-child > .shop-intro-wide,
  body[data-page="catalog"] .hero-shell > div:first-child > .shop-intro-mobile,
  body[data-page="catalog"] .hero-shell > div:first-child > .usp {
    display: none !important;
  }
  body[data-page="catalog"] .mobile-catalog-preview {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: clamp(10px, 2svh, 17px);
    border-radius: 21px;
    background: #f7f9fd;
    border: 1px solid #cddff1;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 14px 40px #020e2860;
    scrollbar-width: thin;
  }
  body[data-page="catalog"] .preview-head {
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 0 0 11px;
    border-bottom: 1px solid #dce7f2;
    align-items: center;
    gap: 12px;
  }
  body[data-page="catalog"] .preview-head small {
    color: #347cb1;
    font-size: 10px;
  }
  body[data-page="catalog"] .preview-head strong {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1;
  }
  body[data-page="catalog"] .preview-head a {
    background: #47a5e7;
    color: #111f3d;
    border-radius: 999px;
    min-height: 38px;
  }
  body[data-page="catalog"] .preview-groups {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    min-height: 0;
  }
  body[data-page="catalog"] .preview-group {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body[data-page="catalog"] .preview-group-title {
    padding: 5px 2px 5px;
    border-bottom: 1px solid #dbe5ef;
  }
  body[data-page="catalog"] .preview-group-title span {
    font-size: 10px;
  }
  body[data-page="catalog"] .preview-group-title b {
    font-size: 9px;
    padding: 4px 8px;
  }
  body[data-page="catalog"] .preview-item {
    min-height: 46px;
    padding: 4px 1px;
    gap: 10px;
  }
  body[data-page="catalog"] .preview-item img {
    width: 49px;
    height: 39px;
    border-radius: 7px;
  }
  body[data-page="catalog"] .preview-item > span {
    font-size: clamp(11px, 3.4vw, 13px);
    line-height: 1.15;
  }
  body[data-page="catalog"] .preview-item i {
    font-size: 18px;
  }
  body[data-page="catalog"] .section-main {
    scroll-margin-top: 70px;
    padding-top: 32px;
  }
  body[data-page="catalog"] .section-head h2 {
    font-size: clamp(31px, 8vw, 42px);
  }
}
@media (max-width: 720px) and (max-height: 700px) {
  body[data-page="catalog"] .hero-shell {
    padding: 8px 15px 9px;
  }
  body[data-page="catalog"] .mobile-catalog-preview {
    padding: 9px 12px;
    border-radius: 16px;
  }
  body[data-page="catalog"] .preview-head {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }
  body[data-page="catalog"] .preview-head strong {
    font-size: 22px;
  }
  body[data-page="catalog"] .preview-head a {
    min-height: 34px;
  }
  body[data-page="catalog"] .preview-groups {
    gap: 3px;
  }
  body[data-page="catalog"] .preview-group-title {
    padding: 3px 2px;
  }
  body[data-page="catalog"] .preview-item {
    min-height: 41px;
    padding: 3px 1px;
  }
  body[data-page="catalog"] .preview-item img {
    height: 34px;
    width: 45px;
  }
}
@media (max-width: 720px) and (max-height: 570px) {
  body[data-page="catalog"] .preview-head {
    margin-bottom: 5px;
    padding-bottom: 5px;
  }
  body[data-page="catalog"] .preview-group-title b {
    font-size: 8px;
  }
  body[data-page="catalog"] .preview-item {
    min-height: 37px;
    padding: 2px 1px;
  }
  body[data-page="catalog"] .preview-item img {
    height: 31px;
    width: 41px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.shop-catalog-page {
    scroll-behavior: auto;
  }
}

/* V8 fine tuning: balanced catalogue card, no large blank gaps between categories. */
@media (max-width: 720px) {
  body[data-page="catalog"] .hero-shell > div:first-child {
    justify-content: center;
  }
  body[data-page="catalog"] .mobile-catalog-preview {
    flex: 0 1 auto;
    height: auto;
    min-height: min(calc(100svh - 90px), max(480px, 70svh));
    max-height: 100%;
  }
  body[data-page="catalog"] .preview-groups {
    justify-content: space-evenly;
    gap: 9px;
  }
  body[data-page="catalog"] .preview-item img {
    width: 56px;
    height: 43px;
  }
  body[data-page="catalog"] .section-main {
    scroll-margin-top: 0;
  }
}
@media (max-width: 720px) and (max-height: 700px) {
  body[data-page="catalog"] .preview-groups {
    gap: 4px;
  }
  body[data-page="catalog"] .preview-item img {
    width: 45px;
    height: 34px;
  }
}

/* V9 - Mobile shop cleanup: the second screen starts directly with product cards.
   Hide repeated filters/search/menu elements on mobile, keeping the clean first-card intro. */
@media (max-width: 720px) {
  body[data-page="catalog"] .section-head,
  body[data-page="catalog"] .demo-note,
  body[data-page="catalog"] .controls,
  body[data-page="catalog"] .result-heading {
    display: none !important;
  }
  body[data-page="catalog"] .section-main {
    padding: 18px 0 72px;
    background: #ecf1f8;
  }
  body[data-page="catalog"] .product-grid {
    margin-top: 0;
    gap: 18px;
  }
  body[data-page="catalog"] .product-card {
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(12, 31, 55, 0.08);
  }
  body[data-page="catalog"] .cover {
    aspect-ratio: 1.68;
  }
  body[data-page="catalog"] .product-body {
    padding: 18px 16px 16px;
  }
  body[data-page="catalog"] .product-body h3 {
    font-size: 22px;
    margin: 8px 0 8px;
  }
  body[data-page="catalog"] .small-description {
    margin-bottom: 16px;
  }
  body[data-page="catalog"] .price-row {
    margin-top: 8px;
    padding-top: 14px;
    margin-bottom: 14px;
  }
}

/* V12 - Smartphone: un singolo prodotto riempie la schermata visibile.
   Il primo riquadro panoramico della V8 rimane; i prodotti diventano
   schermate successive con foto, dettagli, prezzo e azioni sempre visibili. */
@media (max-width: 720px) {
  html.shop-catalog-page {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 70px;
  }
  body[data-page="catalog"] .section-main {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding: 14px 0 20px;
  }
  body[data-page="catalog"] .product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body[data-page="catalog"] .product-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: calc(100svh - 70px);
    min-height: 0;
    background: #fff !important;
    border: 1px solid #d9e3f1 !important;
    border-radius: 19px !important;
    box-shadow: 0 12px 30px rgba(12, 31, 55, 0.08) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body[data-page="catalog"] .cover {
    height: clamp(185px, 47svh, 440px);
    min-height: 0;
    aspect-ratio: auto;
    flex: 0 0 auto;
    border-radius: 0;
    display: block;
  }
  body[data-page="catalog"] .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body[data-page="catalog"] .product-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(11px, 2.2svh, 18px) 17px clamp(12px, 2.3svh, 20px);
    overflow: hidden;
  }
  body[data-page="catalog"] .product-body .overline {
    font-size: 10px;
  }
  body[data-page="catalog"] .product-body h3 {
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.06;
    margin: 7px 0 8px;
  }
  body[data-page="catalog"] .product-subtitle {
    margin: -3px 0 7px;
    font-size: 12px;
  }
  body[data-page="catalog"] .small-description {
    margin: 0;
    font-size: clamp(12px, 3.15vw, 14px);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  body[data-page="catalog"] .product-body .grow {
    flex: 1;
    min-height: 4px;
  }
  body[data-page="catalog"] .price-row {
    flex: 0 0 auto;
    margin: 8px 0 11px;
    padding-top: 10px;
  }
  body[data-page="catalog"] .price-row strong {
    font-size: clamp(22px, 5.8vw, 27px);
  }
  body[data-page="catalog"] .price-row span {
    font-size: 10px;
    text-align: right;
  }
  body[data-page="catalog"] .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    gap: 7px;
  }
  body[data-page="catalog"] .actions .outline,
  body[data-page="catalog"] .actions .filled {
    min-height: 46px;
    font-size: clamp(10px, 2.9vw, 12px);
    padding: 10px 7px;
  }
  body[data-page="catalog"] .bottom-strip {
    scroll-snap-align: start;
  }
}
/* Compact-height phones: reserve enough room for two purchase actions. */
@media (max-width: 720px) and (max-height: 650px) {
  body[data-page="catalog"] .cover {
    height: clamp(156px, 36svh, 214px);
  }
  body[data-page="catalog"] .product-body {
    padding: 10px 13px 11px;
  }
  body[data-page="catalog"] .product-body h3 {
    font-size: 19px;
    margin: 5px 0 5px;
  }
  body[data-page="catalog"] .product-subtitle {
    font-size: 11px;
    margin: -2px 0 5px;
  }
  body[data-page="catalog"] .small-description {
    font-size: 11.5px;
    line-height: 1.26;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  body[data-page="catalog"] .price-row {
    margin: 6px 0 8px;
    padding-top: 7px;
  }
  body[data-page="catalog"] .actions .outline,
  body[data-page="catalog"] .actions .filled {
    min-height: 40px;
  }
}
@media (max-width: 720px) and (max-height: 480px) {
  html.shop-catalog-page {
    scroll-snap-type: y proximity;
  }
  body[data-page="catalog"] .product-card {
    height: auto;
    min-height: calc(100svh - 70px);
  }
  body[data-page="catalog"] .product-body {
    overflow: visible;
  }
}

/* V13 - checkout a bonifico, responsive e visivamente allineato allo shop. */
.checkout-step {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: #2877ac;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.checkout-account-status {
  font-size: 13px;
  line-height: 1.55;
  background: #e6f2fd;
  border: 1px solid #d0e4f6;
  border-radius: 12px;
  padding: 13px 15px;
  margin: 0 0 20px;
  color: #244d72;
}
.checkout-account-status strong {
  color: #102646;
}
.field input.filled-from-account {
  background: #f1f5f9;
  border-color: #c9d8e7;
}
.field-helper {
  color: #586f8b;
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 22px;
}
.pay-step {
  margin-top: 25px;
}
.payment-box .iban-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.checkout-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 16px;
  font-size: 13px;
  color: #354962;
  line-height: 1.5;
}
.checkout-agree input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #47a5e7;
  margin: 0;
}
.checkout-server-status {
  font-size: 13px;
  line-height: 1.45;
  color: #96502c;
  margin-bottom: 10px;
}
.checkout-success {
  margin: 20px auto 80px;
  background: #fff;
  padding: 40px;
  max-width: 860px;
  border: 1px solid #d8e3ef;
  border-radius: 24px;
  box-shadow: 0 15px 40px #12243b12;
}
.checkout-success[hidden],
#checkout-layout[hidden] {
  display: none !important;
}
.checkout-success h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.07em;
  margin: 10px 0;
}
.checkout-success > p {
  line-height: 1.6;
  color: #51657d;
}
.success-info {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.success-info > div {
  border: 1px solid #e2eaf3;
  padding: 16px;
  border-radius: 13px;
  display: grid;
  gap: 7px;
}
.success-info span {
  font-size: 12px;
  color: #667b94;
}
.success-info strong {
  font-size: 17px;
  color: #142847;
  overflow-wrap: anywhere;
}
.copy-small {
  justify-self: start;
  background: #e7f4ff;
  border: 1px solid #a8d6f7;
  color: #164d7b;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 800;
}
.test-warning {
  background: #fff2df;
  border: 1px solid #e2c395;
  padding: 15px 18px;
  border-radius: 12px;
  color: #78490a !important;
  font-weight: 900;
}
@media (max-width: 720px) {
  .checkout-success {
    padding: 22px 18px;
    margin: 12px 16px 54px;
  }
  .checkout-success h1 {
    font-size: 38px;
  }
  .checkout-account-status {
    margin-bottom: 17px;
  }
}

/* V19 · Ricevuta definitiva mobile-first in un'unica schermata. */
body[data-page="checkout"].checkout-complete {
  background: #edf3fa;
}
body[data-page="checkout"].checkout-complete .page-title,
body[data-page="checkout"].checkout-complete .site-footer {
  display: none !important;
}
body[data-page="checkout"].checkout-complete main {
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: center;
}
body[data-page="checkout"].checkout-complete .checkout-success {
  width: min(760px, calc(100% - 28px));
  max-width: 760px;
  margin: 14px auto;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.receipt-card {
  background: #fff;
  border: 1px solid #dce6f0;
  box-shadow: 0 16px 44px rgba(18, 44, 73, 0.11);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #14263d;
}
.receipt-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.receipt-tick {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  border-radius: 17px;
  background: #e0f7e9;
  color: #187548;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 30px;
}
.receipt-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #387499;
  font-weight: 900;
}
.receipt-heading h1 {
  font-size: clamp(25px, 3.6vw, 35px);
  margin: 5px 0 4px;
  letter-spacing: -0.05em;
  line-height: 1.03;
  color: #172a44;
}
.receipt-heading p {
  color: #617286;
  font-size: 13px;
  margin: 0;
}
.receipt-status {
  background: #ecf6ff;
  color: #235578;
  border: 1px solid #cde5fa;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.receipt-status strong {
  font-size: 12px;
}
.receipt-status span:last-child {
  color: #586d80;
  margin-left: auto;
}
.receipt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4099d9;
  flex: none;
}
.receipt-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.receipt-stat {
  background: #f4f7fb;
  border: 1px solid #e9eff5;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.receipt-stat span,
.receipt-bank span {
  font-size: 11px;
  color: #62768a;
}
.receipt-stat strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.receipt-stat .receipt-total {
  font-size: 26px;
  letter-spacing: -0.04em;
}
.receipt-products {
  font-size: 12px;
  line-height: 1.35;
  color: #506278;
  margin: 0;
  padding: 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-products span {
  font-weight: 850;
  color: #173650;
}
.receipt-bank {
  border: 1px solid #dce7f3;
  background: #fbfdff;
  border-radius: 14px;
  overflow: hidden;
}
.receipt-bank-title {
  padding: 10px 14px;
  background: #152b48;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 850;
}
.receipt-bank-beneficiary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px;
  border-bottom: 1px solid #e3ebf3;
}
.receipt-bank-beneficiary strong {
  font-size: 14px;
}
.receipt-bank-line {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.receipt-bank-line + .receipt-bank-line {
  border-top: 1px solid #e3ebf3;
}
.receipt-bank-line > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.receipt-bank-line strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.receipt-copy {
  flex: 0 0 auto;
  background: #e4f3ff;
  color: #1a5482;
  border: 1px solid #bedff8;
  border-radius: 9px;
  padding: 9px 12px;
  min-width: 74px;
  font-size: 12px;
  font-weight: 850;
}
.receipt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.receipt-email {
  color: #67778d;
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
  max-width: 65%;
}
.receipt-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b4c5d6;
  padding: 10px 13px;
  border-radius: 10px;
  font-weight: 850;
  font-size: 12px;
  white-space: nowrap;
}
.receipt-copy-status {
  font-size: 12px;
  color: #1e6e48;
  min-height: 0;
  text-align: center;
}
.receipt-copy-status:empty {
  display: none;
}
@media (max-width: 720px) {
  body[data-page="checkout"].checkout-complete main {
    min-height: calc(100svh - 70px);
  }
  body[data-page="checkout"].checkout-complete .checkout-success {
    margin: 8px auto;
    width: calc(100% - 20px);
  }
  .receipt-card {
    padding: clamp(12px, 3.5vw, 18px);
    border-radius: 17px;
    gap: 9px;
  }
  .receipt-heading {
    gap: 10px;
  }
  .receipt-tick {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 13px;
    font-size: 23px;
  }
  .receipt-heading h1 {
    font-size: clamp(19px, 5.35vw, 25px);
    margin: 3px 0;
  }
  .receipt-heading p {
    font-size: 11px;
  }
  .receipt-eyebrow {
    font-size: 9px;
  }
  .receipt-status {
    padding: 8px 10px;
    font-size: 10px;
    gap: 6px;
  }
  .receipt-status span:last-child {
    margin-left: 0;
  }
  .receipt-stat {
    padding: 8px 10px;
    gap: 3px;
  }
  .receipt-stat span,
  .receipt-bank span {
    font-size: 10px;
  }
  .receipt-stat strong {
    font-size: 12px;
  }
  .receipt-stat .receipt-total {
    font-size: 20px;
  }
  .receipt-products {
    font-size: 10px;
  }
  .receipt-bank-title {
    padding: 8px 11px;
    font-size: 10px;
  }
  .receipt-bank-beneficiary {
    padding: 8px 11px;
  }
  .receipt-bank-beneficiary strong {
    font-size: 11px;
  }
  .receipt-bank-line {
    padding: 7px 10px;
  }
  .receipt-bank-line strong {
    font-size: 11px;
    line-height: 1.15;
  }
  .receipt-copy {
    padding: 8px 9px;
    font-size: 10px;
    min-width: 58px;
  }
  .receipt-email {
    font-size: 10px;
    max-width: 60%;
    overflow-wrap: anywhere;
  }
  .receipt-home {
    font-size: 10px;
    padding: 9px 10px;
  }
}
@media (max-width: 380px) and (max-height: 700px) {
  .receipt-card {
    gap: 6px;
    padding: 10px;
  }
  .receipt-heading h1 {
    font-size: 19px;
  }
  .receipt-heading p {
    font-size: 10px;
  }
  .receipt-status {
    padding: 6px 8px;
  }
  .receipt-stat {
    padding: 6px 8px;
  }
  .receipt-bank-title {
    padding: 6px 9px;
  }
  .receipt-bank-beneficiary {
    padding: 5px 9px;
  }
  .receipt-bank-line {
    padding: 5px 9px;
  }
  .receipt-copy {
    padding: 6px 8px;
  }
  .receipt-home {
    padding: 8px 9px;
  }
}
@media (max-height: 530px) and (max-width: 720px) {
  body[data-page="checkout"].checkout-complete main {
    display: block;
  }
  .receipt-card {
    gap: 5px;
    padding: 9px;
  }
  .receipt-heading p {
    display: none;
  }
  .receipt-status span:last-child {
    display: none;
  }
  .receipt-products {
    display: none;
  }
}
