:root {
  /* Palette ispirata al logo: bianco, verde, nero, rosso */
  --accent: #DB0208;
  --accent-2: #037E3D;
  --bg: #0E0E0E;
  --panel: #171717;
  --text: #FFFFFF;
  --text-soft: #E6E6E6;
  --muted: #A6A6A6;
  --faint: #6E6E6E;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
img { image-rendering: -webkit-optimize-contrast; }

/* ==============================
   Header
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  min-height: var(--header-h);
}
.site-header.floating {
  position: absolute;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header.floating .nav-link { color: #FFFFFF; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.site-header.floating .nav-link:hover { color: var(--accent); }
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 28px; width: auto; }
.site-header.floating .logo {
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #191919;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--accent); }

/* ==============================
   Hero fullscreen
   ============================== */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
  isolation: isolate;
}
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-video video.active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 24px 64px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #FFFFFF;
}
.hero-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-content h1 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero-content .lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-content .cta { max-width: 320px; margin-top: 8px; }

/* ==============================
   Layout container per il resto
   ============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
section { scroll-margin-top: 88px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.divided { border-top: 1px solid var(--line); padding-top: 56px; }

h1, h2, h3, h4, p { margin: 0; }
h2 { font-family: 'Bebas Neue', sans-serif; font-size: 40px; font-weight: normal; letter-spacing: 0.5px; }

.eyebrow-muted {
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.lead { font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.body-muted { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ==============================
   Bottoni
   ============================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--accent);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 18px 24px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  text-decoration: none;
}
.cta:hover { transform: translateY(-1px); background: #b30207; }
.cta:active { transform: translateY(0); }
.cta.outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
}
.cta.outline:hover { background: rgba(255, 255, 255, 0.05); }
.cta.is-disabled { opacity: 0.55; cursor: not-allowed; }
.cta.is-disabled:hover { transform: none; background: var(--accent); }
.cta:disabled { opacity: 0.7; cursor: wait; }

.chip { border: 1px solid var(--line-strong); border-radius: 4px; }

/* ==============================
   Chi siamo
   ============================== */
.bullets { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.bullet { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.bullet::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(3, 126, 61, 0.15);
}

/* ==============================
   Contatti
   ============================== */
.rows { display: flex; flex-direction: column; gap: 14px; }
.rows .row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.rows .row .label { color: var(--muted); }
.rows .row .value { color: var(--text); text-align: right; }
a.value:hover { color: #FFFFFF; text-decoration: underline; }

/* ==============================
   Footer
   ============================== */
.footer { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer small { font-size: 13px; color: var(--faint); }

/* ==============================
   Sezione shop
   ============================== */
.section-shop { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.section-lead { font-size: 16px; line-height: 1.55; color: var(--text-soft); margin: 0; }

.products-list { display: flex; flex-direction: column; gap: 32px; }

/* Card prodotto */
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.product-card-head { display: flex; justify-content: space-between; align-items: center; }
.product-tag {
  font-size: 11px;
  color: var(--accent-2);
  background: rgba(3, 126, 61, 0.15);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Il prodotto vero e proprio: galleria + info */
.product { display: flex; flex-direction: column; gap: 28px; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-info { display: flex; flex-direction: column; gap: 20px; }

.product-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  font-size: 56px;
  line-height: 0.92;
  letter-spacing: 0.5px;
}
.tagline { font-size: 17px; line-height: 1.5; color: var(--text-soft); max-width: 38ch; }
.product-desc { font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.product-desc em { color: var(--text); font-style: normal; font-weight: 600; }

.price-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.price-block { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-family: 'Bebas Neue', sans-serif; font-size: 22px; padding: 8px 18px; border-color: var(--line-strong); }
.price-old {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(219, 2, 8, 0.7);
}
.price-save {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text);
  background: var(--accent);
  padding: 4px 10px 3px;
  border-radius: 4px;
}
.price-note {
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(3, 126, 61, 0.15);
  border-radius: 4px;
}

/* Galleria — foto delle magliette in alta risoluzione, centrate */
.frame { border-radius: 10px; overflow: hidden; }
.frame.main,
.thumb-frame {
  background: #1a1a1a;
  border: 1px solid var(--line-strong);
}
.frame.main {
  aspect-ratio: 1 / 1;
  position: relative;
}
.frame.main img,
.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thumb {
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  color: inherit;
}
.thumb-frame {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  transition: border-color .15s ease;
  background: #1a1a1a;
}
.thumb.is-active .thumb-frame { border-color: var(--accent); }
.thumb > span:last-child { font-size: 12px; color: var(--muted); text-align: center; }
.thumb.is-active > span:last-child { color: var(--text); }

/* Configuratore */
.config { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.config-group { display: flex; flex-direction: column; gap: 10px; }
.config-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.config-label strong {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.colors { display: flex; gap: 12px; }
.swatch {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease;
}
.swatch:hover { border-color: rgba(255, 255, 255, 0.4); }
.swatch.is-active { border-color: var(--accent); }
.swatch-dot { width: 100%; height: 100%; border-radius: 50%; display: block; }
.swatch-dot.dark  { background: #0E0D0B; border: 1px solid rgba(255, 255, 255, 0.15); }
.swatch-dot.light { background: #F2EFEA; border: 1px solid rgba(20, 18, 15, 0.2); }

.size-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  min-width: 48px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.size-chip:hover { border-color: rgba(255, 255, 255, 0.4); }
.size-chip.is-active {
  background: var(--accent-2);
  color: var(--text);
  border-color: var(--accent-2);
}

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  width: max-content;
}
.qty-btn {
  background: none;
  border: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  width: 44px;
  cursor: pointer;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.06); }
.qty-input {
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  width: 52px;
  text-align: center;
  padding: 10px 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.totals {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}
.totals-row strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  font-weight: normal;
  color: var(--text);
  letter-spacing: 0.5px;
}
.totals-note { font-size: 13px; color: var(--faint); }

.hint { font-size: 13px; color: var(--accent); margin: 0; }

/* Dettagli & Come funziona (dentro card) */
.details-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sub-title { font-family: 'Bebas Neue', sans-serif; font-weight: normal; font-size: 22px; letter-spacing: 0.5px; }
.details { display: flex; flex-direction: column; gap: 12px; }
.details .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.details .row .label { color: var(--muted); }
.details .row .value { color: var(--text); text-align: right; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--text);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-2);
  padding-top: 2px;
}
.step .t { font-size: 15px; color: var(--text-soft); padding-top: 4px; }

/* Placeholder "Prossimamente" */
.product-card.is-placeholder {
  border-style: dashed;
  background: transparent;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 12px;
  max-width: 480px;
  margin: 0 auto;
}
.placeholder-icon {
  color: var(--muted);
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 4px;
}
.placeholder-eyebrow {
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.placeholder-title { font-family: 'Bebas Neue', sans-serif; font-weight: normal; font-size: 30px; letter-spacing: 0.5px; }
.placeholder-inner p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.placeholder-inner .cta { max-width: 280px; margin-top: 8px; }

/* ==============================
   Modale checkout
   ============================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden], .modal-body[hidden], .modal-success[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  animation: modal-fade .2s ease;
}
.modal-panel {
  position: relative;
  background: #1A1A1A;
  color: var(--text);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  animation: modal-up .25s ease;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
}
.modal-body { display: flex; flex-direction: column; gap: 20px; }

.order-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}
.order-summary-row strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: var(--text);
  letter-spacing: 0.5px;
}
.order-summary-note { font-size: 13px; color: var(--faint); }

.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.field-label em { color: var(--accent); font-style: normal; }
.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s ease;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }

.pay-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pay-option:hover { border-color: rgba(255, 255, 255, 0.35); }
.pay-option input { accent-color: var(--accent-2); margin: 0; }
.pay-option:has(input:checked) {
  border-color: var(--accent-2);
  background: rgba(3, 126, 61, 0.1);
}

.terms-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terms-title {
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.terms-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.terms-list li::marker { color: var(--accent-2); }

.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  cursor: pointer;
}
.field-check input { accent-color: var(--accent-2); margin: 2px 0 0; flex-shrink: 0; }
.checkout-error {
  font-size: 13px;
  color: var(--accent);
  background: rgba(219, 2, 8, 0.08);
  border: 1px solid rgba(219, 2, 8, 0.3);
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0;
}

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0;
}
.success-icon { color: var(--accent-2); }
.modal-success p { font-size: 15px; color: var(--text-soft); line-height: 1.5; margin: 0; max-width: 360px; }
.modal-success .cta { max-width: 200px; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==============================
   Tablet (>= 720px)
   ============================== */
@media (min-width: 720px) {
  .site-header { padding: 18px 40px; }
  .site-header .logo img { height: 32px; }
  .nav { gap: 32px; }

  .hero-content { padding: 120px 40px 80px; }
  .hero-eyebrow { font-size: 24px; }
  .hero-content h1 { font-size: 72px; }
  .hero-content .lead { font-size: 17px; }

  .container { padding: 112px 40px 120px; gap: 112px; }
  .divided { padding-top: 72px; }
  h2 { font-size: 48px; }

  .bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
  .rows { max-width: 640px; }

  .product-card { padding: 32px; }
  .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .product-gallery { position: sticky; top: 96px; }
  .product-title { font-size: 72px; }
  .tagline { font-size: 19px; }

  .details-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 28px;
  }

  .modal { align-items: center; }
  .modal-panel { border-radius: 12px; max-height: 88vh; }
  @keyframes modal-up { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}

/* ==============================
   Desktop (>= 1080px)
   ============================== */
@media (min-width: 1080px) {
  .site-header { padding: 20px 56px; }
  .site-header .logo img { height: 36px; }

  .hero-content { padding: 140px 56px 96px; }
  .hero-content h1 { font-size: 84px; }
  .hero-content .lead { font-size: 18px; line-height: 1.6; }

  .container { padding: 128px 56px 140px; gap: 128px; }
  h2 { font-size: 56px; }

  .product-card { padding: 40px; }
  .product { gap: 64px; }
  .product-title { font-size: 84px; }
}
