:root {
  --creme:     #F5F2EE;
  --sable:     #F1E0CB;
  --argile:    #CFA999;
  --terra:     #9F5434;
  --ink:       #1a1410;
  --ink-soft:  #3d2e25;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--creme);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

.official-image {
  width: 360px;
}

.tshirt-image {
  width: 300px;
}

/* ── LANG TOGGLE ── */
.lang-bar {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 100;
  display: flex;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  opacity: 0.4;
  transition: opacity 0.3s;
  padding: 4px;
}
.lang-btn.active { opacity: 1; border-bottom: 1px solid var(--terra); }
.lang-btn:hover { opacity: 0.8; }

[data-lang="it"] .en, [data-lang="en"] .it { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 6vw;
  position: relative;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sable) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 12vh;
  gap: 0;
  position: relative;
}

.claim-top {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(13px, 1.5vw, 16px);
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--terra);
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
  margin-bottom: 24px;
}

/* SVG Logo Recreation */
.logo-svg-wrap {
  opacity: 0;
  animation: fadeUp 1.2s ease 0.5s forwards;
  margin-bottom: 36px;
}

.logo-svg-wrap svg {
  width: clamp(220px, 38vw, 480px);
  height: auto;
  overflow: visible;
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
  margin-bottom: 52px;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.35s ease;
}

.btn-primary {
  background: var(--terra);
  color: var(--creme);
}
.btn-primary:hover { background: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--argile);
}
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }

.hero-scroll {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--argile), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 120px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-text {}

.section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 28px;
  display: block;
}

.manifesto-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 36px;
  color: var(--ink);
}

.manifesto-headline em {
  font-style: italic;
  color: var(--terra);
}

.manifesto-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  font-weight: 300;
}

.manifesto-body p + p { margin-top: 20px; }

.manifesto-visual {
  position: relative;
}

.manifesto-card {
  background: var(--sable);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.manifesto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--argile), var(--terra));
}

.big-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--terra);
  opacity: 0.18;
  position: absolute;
  bottom: 24px;
  right: 24px;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.quote-block {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.quote-attr {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--argile);
  position: relative;
  z-index: 1;
}

/* ── COLLECTION ── */
.collection {
  background: var(--ink);
  padding: 120px 8vw;
}

.collection-header {
  text-align: center;
  margin-bottom: 72px;
}

.collection-header .section-label { color: var(--argile); }

.collection-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--creme);
  line-height: 1.2;
}

.tshirt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.tshirt-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tshirt-card:hover .tshirt-mockup { transform: scale(1.04); }

/* T-shirt mockup drawn in CSS */
.tshirt-mockup {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}

.tshirt-mockup svg {
  width: 75%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.tshirt-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(26,20,16,0.85), transparent);
  color: var(--creme);
  transform: translateY(8px);
  transition: transform 0.4s ease;
}

.tshirt-card:hover .tshirt-info { transform: translateY(0); }

.tshirt-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.tshirt-color {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--argile);
  margin-top: 4px;
}

/* ── STORY ── */
.story {
  padding: 120px 8vw;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-visual {
  position: sticky;
  top: 80px;
}

.story-emblem {
  width: 100%;
  aspect-ratio: 1;
  background: var(--sable);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story-emblem-inner {
  text-align: center;
}

.emblem-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 134px;
  font-weight: 300;
  color: var(--terra);
  line-height: 1;
  opacity: 0.25;
  padding-bottom: 62px;
}

.emblem-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: -8px;
  display: block;
}

.story-content {}

.story-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 32px;
}

.story-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.story-body p + p { margin-top: 20px; }

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.pill {
  padding: 8px 20px;
  border: 1px solid var(--argile);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── VISION ── */
.vision {
  background: var(--sable);
  padding: 100px 8vw;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.vision::before {
  content: 'ours.';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(100px, 20vw, 260px);
  font-weight: 300;
  color: var(--argile);
  opacity: 0.18;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.vision-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  margin-bottom: 64px;
  position: relative;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.vision-item {
  background: var(--creme);
  padding: 32px 20px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.vision-item:hover { background: var(--terra); transform: translateY(-4px); }
.vision-item:hover .vision-item-label { color: var(--creme); }
.vision-item:hover .vision-item-icon { color: var(--sable); }

.vision-item-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-style: italic;
  color: var(--terra);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.vision-item-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  transition: color 0.3s;
}

/* ── PREORDER ── */
.preorder {
  padding: 120px 8vw;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.preorder-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}

.preorder-sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 52px;
  font-weight: 300;
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.field-group label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--argile);
}

.field-group input,
.field-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--argile);
  padding: 10px 0;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.field-group input:focus,
.field-group select:focus { border-color: var(--terra); }

.field-group select { cursor: pointer; }

.tshirt-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 24px;
}

.tshirt-choice {
  border: 1px solid var(--argile);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.tshirt-choice input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tshirt-choice.selected {
  border-color: var(--terra);
  background: var(--sable);
}

.tshirt-choice-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--terra);
}

.tshirt-choice-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.selector-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--argile);
  text-align: left;
  margin-bottom: 0;
  display: block;
}

.form-note {
  font-size: 11px;
  color: var(--argile);
  line-height: 1.7;
  margin-top: 8px;
}

.success-msg {
  display: none;
  background: var(--sable);
  border-left: 3px solid var(--terra);
  padding: 20px 24px;
  text-align: left;
  margin-top: 20px;
}

.success-msg.show { display: block; }

.success-msg strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.success-msg span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(159,84,52,0.15);
  padding: 48px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--terra);
  letter-spacing: 0.05em;
}

.footer-claim {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--argile);
}

.footer-copy {
  font-size: 11px;
  color: var(--argile);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .manifesto, .story {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tshirt-grid { grid-template-columns: 1fr; max-width: 360px; }
  .vision-grid { grid-template-columns: repeat(3, 1fr); }
  .vision-item { padding: 10%; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .story-visual { position: static; }

  .official-image {
      width: 160px;
    }

}
/* ── COLLECTION NEW LAYOUT ── */
.collection-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

/* ── SLIDER ── */
.slider-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #1a1410;
  max-height: 780px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Frecce */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 242, 238, 0.12);
  border: 1px solid rgba(245, 242, 238, 0.2);
  color: var(--creme);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover { background: rgba(159, 84, 52, 0.6); }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 242, 238, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--creme);
  width: 24px;
  border-radius: 3px;
}

/* ── DESCRIZIONE DESTRA ── */
.collection-info {
  background: var(--ink);
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 500px;
}

.collection-desc {
  padding: 56px 52px;
  display: none;
  flex-direction: column;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.collection-desc.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.collection-desc-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--argile);
  margin-bottom: 20px;
}

.collection-desc-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 300;
  font-style: italic;
  color: var(--creme);
  line-height: 1;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.collection-desc-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  border-top: 1px solid rgba(207, 169, 153, 0.15);
  border-bottom: 1px solid rgba(207, 169, 153, 0.15);
  padding: 24px 0;
}

.collection-desc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.collection-desc-key {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--argile);
}

.collection-desc-val {
  font-size: 13px;
  color: var(--creme);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.collection-desc-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--argile);
  line-height: 1.7;
}

/* ── RESPONSIVE SLIDER ── */
@media (max-width: 768px) {
  .collection-layout {
    grid-template-columns: 1fr;
  }

  .slider-wrap {
    max-height: 520px;
    aspect-ratio: 9/16;
    margin: 0 auto;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    background: rgba(245, 242, 238, 0.15);
  }
  .slider-arrow svg { width: 16px; height: 16px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  .collection-info {
    min-height: auto;
  }

  .collection-desc {
    padding: 36px 28px;
  }

  .collection-desc-word {
    font-size: 52px;
    margin-bottom: 28px;
  }
}

/* ── VISION AGGIORNATA ── */

/* Desktop: griglia 3 colonne, hover con frase */
.vision-item {
  position: relative;
  overflow: hidden;
}

.vision-item-phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(26,20,16,0.88) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  color: var(--creme);
  line-height: 1.6;
  pointer-events: none;
}

.vision-item:hover .vision-item-phrase {
  opacity: 1;
  transform: translateY(0);
}

/* Su mobile: colonna singola, frase sempre visibile */
@media (max-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px;
  }

  .vision-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 8px;
  }

  .vision-item-phrase {
    position: static;
    opacity: 1;
    transform: none;
    background: none;
    color: var(--ink-soft);
    font-size: 13px;
    padding: 0;
    margin-top: 6px;
  }

  /* Rimuovi hover su mobile */
  .vision-item:hover .vision-item-phrase {
    background: none;
    color: var(--ink-soft);
  }
  .vision-item:hover {
    background: var(--terra);
  }
  .vision-item:hover .vision-item-phrase {
    color: var(--sable);
  }
}

/* ── EDITORIAL GALLERY ── */
.editorial-gallery {
  padding: 80px 4vw;
  background: var(--ink);
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header .section-label {
  color: var(--argile);
}

/* Grid editoriale */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 16, 0);
  transition: background 0.4s ease;
}

/* Hover solo su desktop */
@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.35);
  }
  .gallery-item:hover .gallery-overlay {
    background: rgba(26, 20, 16, 0.15);
  }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(26, 20, 16, 0.7);
  border: 1px solid rgba(245, 242, 238, 0.3);
  color: var(--creme);
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: background 0.2s;
  z-index: 10000;
  line-height: 1;
  border-radius: 50%;
}

.lightbox-close:hover { background: rgba(159, 84, 52, 0.8); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 242, 238, 0.1);
  border: 1px solid rgba(245, 242, 238, 0.2);
  color: var(--creme);
  font-size: 36px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10000;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(159, 84, 52, 0.5); }

/* Mobile gallery — 2 colonne */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }

  .lightbox { padding: 16px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ── PREORDER AGGIORNATO ── */
.preorder {
  position: relative;
  overflow: hidden;
  padding: 120px 8vw;
}

/* Elemento grafico decorativo */
.preorder-deco {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.preorder-deco-word {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(160px, 28vw, 340px);
  font-weight: 300;
  font-style: italic;
  color: var(--argile);
  opacity: 0.08;
  bottom: -40px;
  right: -20px;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Bordo superiore decorativo */
.preorder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8vw;
  right: 8vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terra), transparent);
}

/* Bordo inferiore decorativo */
.preorder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8vw;
  right: 8vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--argile), transparent);
}

.preorder-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Taglia dentro la card maglia */
.tshirt-choice-size {
  margin-top: 10px;
  display: none;
}

.tshirt-choice.selected .tshirt-choice-size {
  display: block;
}

.tshirt-choice-size select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--argile);
  padding: 6px 0;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  letter-spacing: 0.08em;
}

.tshirt-choice-size select:focus {
  border-color: var(--terra);
}

/* Totale carrello */
.preorder-total {
  margin-top: 24px;
  background: var(--sable);
  padding: 20px 24px;
  border-left: 3px solid var(--terra);
  text-align: left;
}

.preorder-total-rows {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--argile);
}

.preorder-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.preorder-total-final {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--argile);
  font-weight: 400;
  color: var(--ink);
}

.preorder-total-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--terra);
}

.preorder-total-final .preorder-total-val {
  font-size: 20px;
}

/* Info reso */
.preorder-reso {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(207, 169, 153, 0.3);
  text-align: left;
}

.preorder-reso-icon {
  font-size: 18px;
  color: var(--terra);
  flex-shrink: 0;
  margin-top: 2px;
}

.preorder-reso p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* Mobile */
@media (max-width: 768px) {
  .preorder-deco-word {
    font-size: 120px;
    bottom: -20px;
    right: -10px;
  }
}

/* ── SPEDIZIONE GRATUITA PREORDER ── */
.preorder-shipping-free {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.shipping-crossed {
  text-decoration: line-through;
  color: var(--argile);
  font-size: 12px;
  margin-right: 8px;
}

.shipping-free {
  color: var(--terra);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── FIX MOBILE PREORDER ── */
@media (max-width: 768px) {

  /* Carrello totale visibile su mobile */
  .preorder-total {
    margin-top: 16px;
    padding: 16px;
  }

  .preorder-total-line {
    font-size: 12px;
  }

  .preorder-total-val {
    font-size: 14px;
  }

  .preorder-total-final .preorder-total-val {
    font-size: 18px;
  }

  /* Selector maglie — colonna singola su mobile */
  .tshirt-selector {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .tshirt-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
    text-align: left;
  }

  .tshirt-choice-word {
    font-size: 20px;
    min-width: 48px;
  }

  .tshirt-choice-label {
    flex: 1;
    font-size: 10px;
  }

  .tshirt-choice-size {
    min-width: 120px;
    margin-top: 0;
  }

  /* Quando selezionata su mobile mostra taglia inline */
  .tshirt-choice.selected .tshirt-choice-size {
    display: block;
  }

  .tshirt-choice-size select {
    font-size: 12px;
    text-align: right;
  }

  /* Reso su mobile */
  .preorder-reso {
    text-align: left;
    padding: 12px 14px;
  }
}

/* ── FORM VALIDATION ERRORS ── */
.field-group input:invalid,
.field-group input[style*="c0392b"] {
  border-color: #c0392b !important;
}

.field-group input::placeholder {
  color: var(--argile);
  opacity: 0.7;
}

/* Shake animation sui campi in errore */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.field-error-shake {
  animation: shake 0.4s ease;
}
