/* Penfold — archetipo halo, palette sky */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafcff;
  --surface: #e9f0fa;
  --ink: #141b26;
  --muted: #66748a;
  --line: #d6e2f1;
  --accent: #3557b7;
  --on-accent: #ffffff;
  --accent-soft: rgba(53, 87, 183, 0.12);
  --accent-line: rgba(53, 87, 183, 0.35);

  --display: 'Outfit', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-weight: 600;
  --display-track: -0.025em;
  --display-case: none;

  --r-card: 26px;
  --r-btn: 999px;
  --r-input: 14px;
  --r-art: 26px;

  --s-section: clamp(42px, 6.3vw, 101px);
  --s-block: 34px;
  --s-gap: clamp(17px, 2.5vw, 34px);

  --page: 1200px;
  --gutter: clamp(18px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  text-transform: var(--display-case);
  line-height: 1.06;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.08rem; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

/* --- pulsanti --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit; font-size: 0.94rem; font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none; cursor: pointer;
  border-radius: var(--r-btn);
  transition: transform 150ms ease, filter 150ms ease, background 150ms ease, color 150ms ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); filter: none; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }

/* --- fascia annunci --- */

.announce {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px var(--gutter);
}
.announce strong { font-weight: 700; }

/* --- riga di fiducia --- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 4px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 0;
}
.trust__item { display: flex; gap: 11px; align-items: flex-start; padding: 6px 0; }
.trust__item svg { flex: none; width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 1.6; margin-top: 2px; }
.trust__t { font-weight: 700; font-size: 0.9rem; display: block; }
.trust__d { font-size: 0.82rem; color: var(--muted); }

.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.brand {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  text-transform: var(--display-case);
  font-size: 1.35rem;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 30px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.cart-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.01em;
  text-transform: none; font-weight: 500;
}
.cart-count {
  min-width: 21px; height: 21px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 16px; }
.site-head__row .brand { grid-column: 2; justify-self: center; font-size: 1.5rem; }
.site-head__row .cart-link { grid-column: 3; justify-self: end; }
.site-head__nav { display: flex; justify-content: center; padding-bottom: 14px; }
@media (max-width: 720px) {
  .site-head__row { grid-template-columns: auto 1fr; }
  .site-head__row .brand { grid-column: 1; justify-self: start; }
  .site-head__row .cart-link { grid-column: 2; }
  .site-head__nav { justify-content: flex-start; overflow-x: auto; }
}

.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 6vw, 78px) 0;
}
.hero__lede { font-size: 1.06rem; margin: 18px 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden; border-radius: var(--r-art);
  padding: 22px;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-art) - 8px); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.section { padding: var(--s-section) 0; }
.section--tight { padding-top: 0; }

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: var(--s-block); flex-wrap: wrap;
}
.section__head a { font-size: 0.9rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: var(--s-gap);
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card__art {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface);
  border-radius: var(--r-art); position: relative;
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .card__art img { transform: scale(1.04); }
.card__title { font-size: 1.02rem; margin: 0 0 3px; }
.card__price { font-size: 0.94rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__dots { display: flex; gap: 5px; margin-top: 9px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(128,128,128,0.35); }
.card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: var(--r-btn);
}
.card { text-decoration: none; display: block; text-align: center; }
.card__art { background: var(--surface); padding: 18px; margin-bottom: 14px; }
.card__art img { border-radius: calc(var(--r-art) - 10px); }
.card__title { margin-top: 2px; }

.promise { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 60px); align-items: center; }
.promise__art { aspect-ratio: 3 / 2; background: var(--surface); overflow: hidden; border-radius: var(--r-art); }
.promise__art img { width: 100%; height: 100%; object-fit: cover; }
.promise ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.promise li { padding-left: 26px; position: relative; }
.promise li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
}
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* Riquadri di fatto, non testimonianze: quello che il negozio garantisce
   davvero, scritto grande. Le recensioni arrivano quando ci sono gli ordini. */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-gap); }
.note {
  background: var(--surface);
  border: none;
  border-radius: var(--r-card);
  padding: 26px;
}
.note h3 { margin-bottom: 9px; }
.note p { font-size: 0.95rem; margin: 0; color: var(--muted); }
.note__num {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em;
  color: var(--accent); display: block; margin-bottom: 12px;
}

.foot-care { display: grid; gap: 9px; font-size: 0.92rem; }
.foot-care dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.foot-care dd { margin: 0 0 10px; }
.foot-care a { text-decoration: none; }
.foot-care a:hover { text-decoration: underline; }

.crumbs { padding-top: 20px; font-size: 0.84rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.product { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(26px, 5vw, 62px); padding: 24px 0 var(--s-section); align-items: start; }
.product__price { font-size: 1.42rem; font-weight: 700; margin: 12px 0 18px; font-variant-numeric: tabular-nums; }
.product__lede { font-size: 1.02rem; }

/* --- galleria --- */

.gallery { position: sticky; top: 96px; display: grid; gap: 10px; }
.gallery__main { aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; border-radius: var(--r-art); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; }
.thumb {
  padding: 0; border: 2px solid transparent; background: var(--surface); cursor: pointer;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--r-art) / 2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-selected="true"] { border-color: var(--ink); }
.thumb:hover { border-color: var(--muted); }
@media (max-width: 820px) { .gallery { position: static; } }

/* --- i tre motivi --- */

.bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.bullets li { padding-left: 26px; position: relative; font-size: 0.96rem; }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- il blocco d'acquisto --- */

.buy { display: flex; gap: 12px; align-items: stretch; margin-bottom: 18px; }
.qty--buy { flex: none; border-radius: var(--r-btn); }
.qty--buy button { width: 42px; height: auto; font-size: 1.1rem; }
.qty--buy span { width: 40px; font-weight: 700; }
.buy .btn { flex: 1; }

.volume {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--r-card); padding: 15px 18px; margin-bottom: 18px;
}
.volume__label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.volume ul { list-style: none; padding: 0; margin: 9px 0 6px; display: grid; gap: 5px; font-size: 0.92rem; }
.volume__note { font-size: 0.8rem; color: var(--muted); }

.microtrust {
  list-style: none; padding: 0 0 22px; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 0.84rem; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.microtrust li { position: relative; padding-left: 15px; }
.microtrust li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --- la fisarmonica --- */

.acc { margin-top: 6px; }
.acc__row { border-bottom: 1px solid var(--line); }
.acc__row summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 700; font-size: 0.96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc__row summary::-webkit-details-marker { display: none; }
.acc__row summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms ease;
}
.acc__row[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.acc__body { padding: 0 0 18px; font-size: 0.94rem; color: var(--muted); max-width: 60ch; }
.acc__body a { color: var(--ink); }

/* --- la barra d'acquisto che segue, sul telefono --- */

.stickybuy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 10px 0; box-shadow: 0 -6px 22px rgba(0,0,0,0.12);
}
.stickybuy[hidden] { display: none; }
.stickybuy__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stickybuy__what { display: flex; align-items: center; gap: 11px; min-width: 0; }
.stickybuy__what img { border-radius: calc(var(--r-art) / 3); object-fit: cover; flex: none; }
.stickybuy__title { display: block; font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw; }
.stickybuy__price { display: block; font-size: 0.86rem; color: var(--muted); }
.stickybuy .btn { padding: 12px 24px; flex: none; }
@media (min-width: 821px) { .stickybuy { display: none; } }

.option { margin-bottom: 22px; }
.option__label { display: block; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; font-weight: 700; }
.option__values { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 17px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--r-btn); font: inherit; font-size: 0.92rem; cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip--color { display: inline-flex; align-items: center; gap: 8px; }
.chip--color .dot { width: 14px; height: 14px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }

.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__art { aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; border-radius: var(--r-art); }
.line__art img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--display); font-weight: var(--display-weight); }
.line__meta { font-size: 0.86rem; color: var(--muted); }
.line__price { font-variant-numeric: tabular-nums; text-align: right; }
.line__save { font-size: 0.84rem; color: var(--accent); font-weight: 700; }
.line__remove { background: none; border: none; padding: 0; font: inherit; font-size: 0.82rem; color: var(--muted); text-decoration: underline; cursor: pointer; }

.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-btn); overflow: hidden; }
.qty button { width: 32px; height: 32px; background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
.qty button:hover { background: var(--surface); }
.qty span { width: 34px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

.totals { margin-top: 26px; display: grid; gap: 9px; max-width: 350px; margin-left: auto; }
.totals__row { display: flex; justify-content: space-between; gap: 24px; font-variant-numeric: tabular-nums; }
.totals__row--sum { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.12rem; font-weight: 700; }
.totals__row--save { color: var(--accent); font-weight: 700; }

.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 5vw, 56px); align-items: start; padding: 30px 0 var(--s-section); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-input);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 0.96rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary { background: var(--surface); padding: 26px; border-radius: var(--r-card); position: sticky; top: 96px; }
.descriptor { border: 1px dashed var(--line); border-radius: var(--r-input); padding: 13px 15px; margin-top: 18px; font-size: 0.86rem; }
.descriptor code, .num--mono { font-family: var(--mono); }
.pay-brands { font-size: 0.86rem; color: var(--muted); margin: 0 0 12px; }
.pay-element { min-height: 48px; margin: 8px 0 16px; }
.pay-status { color: #d0342c; margin: 0 0 12px; }
.pay-status--ok { color: var(--accent); }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

.prose { max-width: 68ch; padding: clamp(30px, 5vw, 60px) 0; }
.prose h2 { margin: 38px 0 12px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 26px; margin: 0; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: var(--s-section);
  padding: clamp(40px, 5vw, 64px) 0 48px;
  background: var(--surface);
}
.foot-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(28px, 5vw, 60px); margin-bottom: 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
.foot-cols h3 {
  font-family: var(--body); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 13px; letter-spacing: 0.1em;
}
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-legal {
  border-top: 1px solid var(--line); padding-top: 22px;
  font-size: 0.82rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
