@font-face { font-family: "Raleway"; font-weight: 400; font-display: swap; src: url("../fonts/raleway_n4.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 700; font-display: swap; src: url("../fonts/raleway_n7.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/opensans_n4.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 500; font-display: swap; src: url("../fonts/opensans_n5.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/opensans_n7.woff2") format("woff2"); }

:root {
  --c-ink: #23272a;
  --c-red: #e70000;
  --c-yellow: #fbc101;
  --c-blue: #4b8bbe;
  --c-light: #f5f5f5;
  --c-white: #fff;
  --f-heading: "Raleway", sans-serif;
  --f-body: "Open Sans", sans-serif;
  --gutter: 40px;
  --radius: 8px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.4 var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 16px; background: var(--c-white); }

/* Typography */
.heading-xl, .heading-lg { font-family: var(--f-heading); font-weight: 700; }
.heading-xl { font-size: clamp(40px, 5vw, 72px); line-height: 1.1; letter-spacing: -0.03em; }
.heading-lg { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -0.03em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 28px; min-height: 44px;
  border-radius: 999px;
  background: var(--c-red); color: var(--c-white);
  text-decoration: none; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 0 0 / .2); }
.link-arrow { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.icon-button {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Header: trasparente sopra la hero, scuro quando si scorre */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--c-white);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid { background: var(--c-ink); border-bottom-color: rgb(255 255 255 / .25); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding: 0 calc(var(--gutter) - 10px);
}
.site-header__burger { display: none; }
.site-nav ul { display: flex; gap: 16px; }
.site-nav a {
  font: 700 16px/1 var(--f-heading); text-decoration: none; opacity: .85;
  padding: 14px 0; display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
/* Logo: 4 varianti colore in dissolvenza, 2s ciascuna */
.logo-cycle { position: relative; display: block; width: 40px; height: 45px; border-radius: 4px; overflow: hidden; }

/* Desktop: logo grande sotto il menu, si rimpicciolisce quando si scorre */
@media (min-width: 990px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "nav actions" "logo .";
    height: auto; padding-top: 10px; padding-bottom: 12px; row-gap: 6px;
  }
  .site-nav { grid-area: nav; }
  .site-header__actions { grid-area: actions; }
  .site-header__logo { grid-area: logo; }
  .logo-cycle { width: 96px; height: 108px; border-radius: 6px; transition: width .25s ease, height .25s ease; }
  .site-header.is-scrolled .logo-cycle, .site-header.is-solid .logo-cycle { width: 40px; height: 45px; }
}
.logo-cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: logo-cycle 8s infinite; }
.logo-cycle img:nth-child(1) { animation-delay: 0s; }
.logo-cycle img:nth-child(2) { animation-delay: 2s; }
.logo-cycle img:nth-child(3) { animation-delay: 4s; }
.logo-cycle img:nth-child(4) { animation-delay: 6s; }
@keyframes logo-cycle {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-cycle img { animation: none; }
  .logo-cycle img:first-child { opacity: 1; }
}
.site-header__actions { display: flex; justify-content: flex-end; }

/* Sections */
.section { padding: 40px var(--gutter); }
.section--dark { background: var(--c-ink); color: var(--c-white); }
.section--yellow { background: var(--c-yellow); }
.section--red { background: var(--c-red); color: var(--c-white); }

/* Hero */
.hero { position: relative; height: 585px; overflow: hidden; color: var(--c-white); background: var(--c-red); }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__actions--bottom { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; }
.hero__content { position: relative; padding: 72px var(--gutter); max-width: 760px; }
.hero__content .heading-xl { margin-bottom: 16px; }
.hero__lead { font-size: 18px; max-width: 590px; margin-bottom: 24px; }

/* Marquee */
.marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; gap: 24px; padding-right: 24px; }
.marquee__group span {
  font: 700 72px/1.2 var(--f-heading); letter-spacing: -0.03em; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Intro */
.intro { padding-top: 40px; padding-bottom: 20px; }
.intro__card { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(377px, auto); border-radius: var(--radius); overflow: hidden; }
.intro__media { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.intro__media-wrap { position: relative; }
.intro__text { background: var(--c-red); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.intro__text p { max-width: 520px; }

/* Product list */
.product-list { padding-top: 20px; padding-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card__link { display: block; text-decoration: none; }
.product-card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--c-light); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card__link:hover img { transform: scale(1.03); }
.badge {
  position: absolute; left: 12px; bottom: 12px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--c-blue); color: var(--c-ink); font-size: 12px;
}
.product-card__title { margin-top: 12px; font: 400 18px/1.4 var(--f-body); }
.product-card .price { font-size: 18px; }

/* Manifesto */
.manifesto { min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; }
.manifesto__text { max-width: 728px; }
.stars { display: flex; gap: 4px; }
.stars svg { width: 20px; height: 20px; fill: none; stroke: var(--c-white); stroke-width: 1.2; stroke-linejoin: round; }
.stars svg.is-filled { fill: var(--c-yellow); stroke: var(--c-yellow); }

/* Media with content */
.media-content { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; background: var(--c-light); }
.media-content__text { display: flex; align-items: flex-end; padding: 40px var(--gutter); }
.media-content__text .heading-lg { max-width: 635px; }
.media-content__media { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer { padding: 64px var(--gutter) 0; }
.site-footer__grid { display: grid; grid-template-columns: 208px 1fr 1fr; gap: 0; padding-bottom: 48px; }
.footer-col__title { font: 700 18px/1.3 var(--f-heading); margin-bottom: 12px; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.newsletter { display: flex; align-items: center; border-bottom: 1px solid #384147; max-width: 675px; }
.newsletter input {
  flex: 1; min-width: 0; border: 0; padding: 12px 0; background: transparent;
  font: 500 24px/1.1 var(--f-body); color: #000;
}
.newsletter input:focus { outline: none; }
.newsletter button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; }
.newsletter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__utilities {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid rgb(0 0 0 / .08); font-size: 12px;
}
.site-footer__utilities a { text-decoration: none; }
.policy-links { display: flex; gap: 16px; }

/* Tablet / mobile */
@media (max-width: 989px) {
  :root { --gutter: 20px; }
  .site-header__burger { display: inline-grid; justify-self: start; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; background: var(--c-ink);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { font-size: 22px; padding: 12px 0; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .site-header.menu-open { background: var(--c-ink); }

  .hero { height: 480px; }
  .marquee__group span { font-size: 48px; }
  .intro__card, .media-content { grid-template-columns: 1fr; grid-template-rows: auto; }
  .intro__media-wrap { aspect-ratio: 16 / 10; }
  .media-content__media { aspect-ratio: 16 / 10; order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-col--newsletter { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero { height: 420px; }
  .site-header__actions .icon-button:nth-child(2) { display: none; }
}

/* ---------- Pagine interne: header in flusso, sempre scuro ---------- */
.site-header.is-solid { position: sticky; top: 0; }

/* Prezzi e badge */
.price { font-size: 18px; display: flex; gap: 8px; align-items: baseline; }
.price--large { font-size: 22px; }
.price__compare { opacity: .6; font-size: .85em; }
.price__sale { color: var(--c-red); }
.badge--sale { background: var(--c-red); color: var(--c-white); }

.button--block { width: 100%; }
.button:disabled { background: #9a9ea1; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Catalogo ---------- */
.collection { padding: 48px var(--gutter) 64px; }
.collection__header { margin-bottom: 32px; }
.collection__toolbar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 24px; border-block: 1px solid rgb(0 0 0 / .1);
}
.collection__count { margin-right: auto; opacity: .7; font-size: 14px; order: 2; }
.collection__toolbar .toggle { order: 1; }
.collection__toolbar .select { order: 3; }
.toggle, .select { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--c-red); }
.select select {
  font: inherit; padding: 8px 32px 8px 12px; border: 1px solid rgb(0 0 0 / .2); border-radius: 6px;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%2323272a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  appearance: none; color: var(--c-ink);
}
.empty-state { text-align: center; padding: 64px 0; display: grid; gap: 16px; justify-items: center; }

/* ---------- Scheda prodotto ---------- */
.breadcrumb { padding: 20px var(--gutter) 0; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .4; }
.breadcrumb a { text-decoration: none; opacity: .7; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb [aria-current] { opacity: .9; }

.product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px;
  padding: 24px var(--gutter) 72px; align-items: start;
}
.product__gallery { display: grid; gap: 12px; }
.product__gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--c-light); }
.product__info { position: sticky; top: 140px; display: grid; gap: 16px; max-width: 520px; }
.product__title { font: 700 clamp(28px, 3vw, 40px)/1.15 var(--f-heading); letter-spacing: -0.02em; }
.product__tax { font-size: 13px; opacity: .7; margin-top: -8px; }

.notice { padding: 12px 16px; border-radius: 6px; background: #fff4cc; border-left: 4px solid var(--c-yellow); font-size: 14px; }

.product-form { display: grid; gap: 20px; margin-top: 8px; }
.size-picker { border: 0; margin: 0; padding: 0; }
.size-picker legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.size-picker__options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-picker__option { position: relative; }
.size-picker__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-picker__option span:first-of-type {
  display: grid; place-items: center; min-width: 56px; height: 44px; padding: 0 14px;
  border: 1px solid rgb(0 0 0 / .25); border-radius: 999px; font-size: 15px; transition: background .15s, color .15s, border-color .15s;
}
.size-picker__option:hover span:first-of-type { border-color: var(--c-ink); }
.size-picker__option input:checked + span { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.size-picker__option input:focus-visible + span { outline: 2px solid var(--c-red); outline-offset: 2px; }
.size-picker__option.is-sold-out span:first-of-type {
  opacity: .4; cursor: not-allowed;
  background: linear-gradient(to top right, transparent calc(50% - .5px), currentColor, transparent calc(50% + .5px));
}
.size-picker__option.is-sold-out input { cursor: not-allowed; }
.size-picker__stock { font-size: 13px; min-height: 1.4em; margin-top: 8px; color: var(--c-red); }

.product-form__actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgb(0 0 0 / .25); border-radius: 999px; }
.qty__btn { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 36px; border: 0; text-align: center; font: inherit; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product__description { margin-top: 8px; line-height: 1.6; }
.product__description ul { list-style: disc; padding-left: 20px; margin-top: 12px; }
.product__description li { margin-bottom: 4px; }

.accordion { border-top: 1px solid rgb(0 0 0 / .12); }
.accordion:last-child { border-bottom: 1px solid rgb(0 0 0 / .12); }
.accordion summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.accordion[open] summary::after { content: "−"; }
.accordion p { padding-bottom: 16px; font-size: 15px; line-height: 1.6; }

.related__title { margin-bottom: 24px; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 64px var(--gutter); }
.not-found__code { font: 700 120px/1 var(--f-heading); color: var(--c-red); letter-spacing: -0.04em; }

@media (max-width: 989px) {
  .product { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .product__info { position: static; max-width: none; }
  .product__gallery { grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .product__gallery img { scroll-snap-align: start; }
  .product__gallery:has(img:only-child) { grid-auto-columns: 100%; }
  .collection { padding-top: 32px; }
}
@media (max-width: 599px) {
  .collection__toolbar { gap: 12px 16px; }
  .collection__count { order: 3; width: 100%; }
}

/* ---------- Carrello, checkout, ordine ---------- */
.cart-link { position: relative; }
.cart-link__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--c-red); color: var(--c-white);
  font: 700 11px/18px var(--f-body); text-align: center;
}
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; color: inherit; opacity: .75; }
.link-button:hover { opacity: 1; }
.notice { margin-bottom: 16px; }
.notice--error { background: #ffe5e5; border-left-color: var(--c-red); }

.cart, .checkout, .order-page { padding: 48px var(--gutter) 72px; }
.cart > .heading-xl, .checkout > .heading-xl, .order-page .heading-xl { margin-bottom: 32px; }
.cart__layout, .checkout__layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 48px; align-items: start;
}
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid rgb(0 0 0 / .1);
}
.cart-line:first-child { border-top: 1px solid rgb(0 0 0 / .1); }
.cart-line__media img { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; background: var(--c-light); }
.cart-line__title { font-weight: 700; text-decoration: none; }
.cart-line__title:hover { text-decoration: underline; }
.cart-line__meta { font-size: 14px; opacity: .7; margin: 4px 0 12px; }
.cart-line__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-line__total { font-weight: 700; }
.cart__summary, .checkout__summary {
  position: sticky; top: 140px; display: grid; gap: 16px;
  padding: 24px; border-radius: var(--radius); background: var(--c-light);
}
.cart__secure, .checkout__secure, .checkout__country { font-size: 13px; opacity: .7; }

.totals { margin: 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt, .totals dd { margin: 0; }
.totals__grand { padding-top: 12px; margin-top: 4px; border-top: 1px solid rgb(0 0 0 / .12); font-weight: 700; font-size: 18px; }
.totals__grand small { font-weight: 400; font-size: 12px; opacity: .6; margin-left: 4px; }

.checkout__form { display: grid; gap: 28px; }
.checkout__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.checkout__form legend { font: 700 20px/1.2 var(--f-heading); margin-bottom: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field__optional { font-weight: 400; opacity: .6; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid rgb(0 0 0 / .25); border-radius: 6px;
  background: var(--c-white); color: var(--c-ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-ink); outline-offset: 0; border-color: var(--c-ink); }
.field.has-error input { border-color: var(--c-red); }
.field__error { color: var(--c-red); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--3 { grid-template-columns: 1fr 2fr 1fr; }
.button--paypal { background: #ffc439; color: #111; font-weight: 700; }

.checkout__summary-title { font: 700 18px/1.2 var(--f-heading); }
.summary-lines { display: grid; gap: 12px; }
.summary-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.order-card .summary-lines li { grid-template-columns: 1fr auto; padding-bottom: 12px; border-bottom: 1px solid rgb(0 0 0 / .08); }
.summary-lines__media { position: relative; }
.summary-lines__media img { width: 56px; height: 70px; object-fit: cover; border-radius: 6px; background: var(--c-white); }
.summary-lines__qty {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--c-ink); color: var(--c-white); font-size: 12px; line-height: 20px; text-align: center;
}
.summary-lines__name small { display: block; opacity: .65; font-size: 13px; }

.order-page__kicker { font: 700 18px/1.2 var(--f-heading); color: var(--c-red); margin-bottom: 8px; }
.order-page .heading-xl { margin-bottom: 16px; }
.order-page__lead { max-width: 640px; margin-bottom: 32px; font-size: 18px; }
.order-page__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 32px; align-items: start; }
.order-card { padding: 24px; border-radius: var(--radius); background: var(--c-light); display: grid; gap: 14px; }
.order-card h2 { font: 700 20px/1.2 var(--f-heading); }
.order-card__meta, .order-card__hint { font-size: 14px; opacity: .75; }
.order-card address { font-style: normal; line-height: 1.6; }
.order-card__notes { font-size: 14px; font-style: italic; }

@media (max-width: 989px) {
  .cart__layout, .checkout__layout, .order-page__grid { grid-template-columns: 1fr; gap: 28px; }
  .cart__summary, .checkout__summary { position: static; }
  .checkout__summary { order: -1; }
}
@media (max-width: 599px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line__media img { width: 72px; height: 90px; }
  .cart-line__total { grid-column: 2; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
}
.cart__summary .link-arrow, .checkout__summary .link-arrow { justify-self: start; }

/* ---------- Scelta del colore ---------- */
[hidden] { display: none !important; }
.color-picker { border: 0; margin: 0; padding: 0; }
.color-picker legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.color-picker legend span { font-weight: 400; }
.color-picker__options { display: flex; gap: 10px; }
.color-picker__option { position: relative; cursor: pointer; }
.color-picker__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgb(0 0 0 / .25); box-shadow: inset 0 0 0 3px var(--c-white);
}
.swatch--nera { background: #1b1b1d; }
.swatch--bianca { background: #f4f4f2; }
.color-picker__option input:checked + .swatch { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.color-picker__option input:focus-visible + .swatch { outline: 2px solid var(--c-red); outline-offset: 2px; }
.product-list__more { margin-top: 32px; text-align: center; }

/* ---------- Collezioni ---------- */
.collection__kicker { font-size: 14px; margin-bottom: 8px; }
.collection__kicker a { text-decoration: none; opacity: .7; }
.collection__kicker a:hover { opacity: 1; text-decoration: underline; }
.collection__intro { max-width: 680px; margin-top: 12px; font-size: 17px; line-height: 1.5; }
.collection-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.collection-tabs a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(0 0 0 / .2);
  text-decoration: none; font-size: 14px; white-space: nowrap;
}
.collection-tabs a:hover { border-color: var(--c-ink); }
.collection-tabs a[aria-current] { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }

.collections-page { padding: 48px var(--gutter) 72px; }
.collections-page .collection__header { margin-bottom: 32px; }
.collection-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.collection-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--c-white); text-decoration: none; background: var(--c-ink); }
.collection-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: .85; }
.collection-card:hover img { transform: scale(1.04); opacity: 1; }
.collection-card__body {
  position: absolute; inset: auto 0 0; padding: 48px 16px 16px; display: grid; gap: 2px;
  background: linear-gradient(transparent, rgb(0 0 0 / .8));
}
.collection-card__title { font: 700 22px/1.15 var(--f-heading); letter-spacing: -0.02em; }
.collection-card__count { font-size: 13px; opacity: .8; }

.home-collections { background: var(--c-ink); color: var(--c-white); padding-top: 48px; padding-bottom: 56px; }
.home-collections__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.product__collection { font-size: 14px; }
.product__collection a { font-weight: 700; }

@media (max-width: 599px) {
  .collection-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .collection-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .collection-card__title { font-size: 17px; }
}
