:root {
  --bg: #ffffff;
  --text: #121212;
  --muted: #666666;
  --line: #e9e9e9;
  --panel: #f7f7f7;
  --accent: #111111;
  --radius: 24px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  --container: min(1120px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.04; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

.copyright{display: block;width: 100%;text-align: center; color: #999; font-size: 14px;}
.main-nav + a{font-size: 0.8em;padding: 5px 10px;min-height: 35px;}
.container { width: var(--container); margin: 0 auto; }
.section { padding: 44px 0 88px; }
.section-soft { background: #fafafa; }
.narrow { max-width: 760px; }
.centered { text-align: center; }

.hero.section{position: relative; overflow: hidden;}

/*galleria lavori home*/
.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/*pagina lavori*/
.work-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 60px;
}

.work-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-row:hover img {
  transform: scale(1.03);
}

.work-content h2 {
  margin: 10px 0;
}

.meta {
  font-size: 14px;
  color: #666;
}

/*gallery lavoro singolo*/
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery img {
  width: 100%;
  object-fit: cover;
}

/*galleria lavoro singolo*/
.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
  display: grid;
}


.work-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/public/images/Lavoro-corzoneso-3.png') center/cover no-repeat;
  filter: blur(5px);
  transform: scale(1.1); /* evita bordi vuoti */
  z-index: -1;
}
.bg-home {
  position: relative;
  inset: 0;
  background: url('/public/images/Lavoro-corzoneso-2.png') center/cover no-repeat;
  transform: scale(1.1); /* evita bordi vuoti */
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: #808080;
}
.lead { font-size: 1.08rem; max-width: 62ch; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
  transition: all 0.3s ease;
}
.header .btn-dark{  transition: all 0.3s ease; background: #313131}
.brand {
  /*width: 280px;*/
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand img{
  height: 48px;
  transition: height 0.3s ease;
}
.brand img.brand--mobile{display: none; height: 28px}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #777);
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: #5e5e5e;
  font-size: 0.96rem;
}
.main-nav a.is-active,
.main-nav a:hover { color: #111; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #111;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: #111; color: #fff; }
.btn-light { background: #fff; color: #111; border-color: #d9d9d9; }
.text-link { color: #111; font-weight: 600; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 120px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.inline-points {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #404040;
  font-size: .95rem;
}
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0;
  box-shadow: var(--shadow);
}
.hero-card-top { display: none; gap: 8px; margin-bottom: 14px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d6d6;
}
.hero-card-caption {display: none; margin: 16px 8px 0; font-size: 0.95rem; }

.before-after {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  background: #efefef;
  touch-action: none;

}
.before-after__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after__overlay {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  pointer-events: none;
  border-right: 1px solid rgba(255,255,255,0.7);
}
.before-after__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  margin: 0;
  opacity: 0;
  z-index: 10;
}
.before-after__range::-webkit-slider-thumb {
  appearance: none;
  width: 44px;
  height: 44px;
  opacity: 0;
}
.before-after__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.95);
  transform: translateX(-50%);
}
.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.08);
}
.before-after__handle::before,
.before-after__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
}
.before-after__handle::before { left: 15px; transform: translateY(-50%) rotate(-135deg); }
.before-after__handle::after { right: 15px; transform: translateY(-50%) rotate(45deg); }
.before-after__label {
  position: absolute;
  top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
}
.before-after__label.before { left: 16px; }
.before-after__label.after { right: 16px; }

.section-heading {
  margin-bottom: 28px;
}
.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.cards {
  display: grid;
  gap: 18px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.compact .card { padding: 20px; }

.work-card,
.gallery-item,
.visual-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.work-card img,
.work-row img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.work-card__body { padding: 18px; }
.meta { color: #878787; font-size: .88rem; margin-bottom: 8px; }

.process-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
}
.steps { display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.step span { font-weight: 700; color: #a0a0a0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item figcaption {
  padding: 14px 16px 18px;
  color: #666;
  font-size: .94rem;
}
.gallery-preview .gallery-item figcaption { display: none; }

.page-intro { padding-bottom: 18px; }
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.visual-panel {
  min-height: 520px;
  background: linear-gradient(135deg, #1a1a1a 0%, #575757 35%, #f1f1f1 36%, #ffffff 100%);
}
.works-list { display: grid; gap: 18px; }
.work-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}
.contact-card,
.contact-form { padding: 28px; }
.contact-form label {
  display: block;
  margin-bottom: 14px;
  color: #2a2a2a;
  font-weight: 600;
}
input, textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid #dcdcdc;
  padding: 14px 16px;
  font: inherit;
}
.success-box {
  background: #f3f3f3;
  color: #222;
  border-radius: 18px;
  padding: 14px 16px;
}

.cta-band { padding-top: 16px; }
.cta-band__inner {
  background: #111;
  color: #fff;
  border-radius: 32px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta-band__inner p,
.cta-band__inner h2 { color: #fff; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.about-features ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #444;
}

/* Pallino minimal */
.about-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}

/*galleria*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  margin: 0;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.gallery-trigger img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-trigger:hover img {
  transform: scale(1.03);
}

/*punti forti lavorazione*/
.work-highlights {
  max-width: 980px;
  margin: 30px auto;
}

.work-highlights h3 {
  margin-bottom: 10px;
}

.work-highlights ul {
  list-style: none;
  padding: 0;
}

.work-highlights li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.work-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #000;
  position: absolute;
  left: 0;
  top: 8px;
  border-radius: 50%;
}

/*in progress*/
.work-image,
.gallery-trigger,
.gallery-item {
  position: relative;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  padding: 5px 10px;
  text-transform: uppercase;
}

/*sezione shop*/
.section--support {
  background: #eee;
  border-top: 1px solid #eee;
}

.support-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.support-content h2 {
  margin: 10px 0 16px;
}

.support-actions {
  margin: 20px 0;
}

.small-note {
  font-size: 13px;
  color: #777;
}

.support-visual img {
  width: 100%;
  max-width: 360px;
  display: block;
}

.tshirt-colors {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
}

.color {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color:hover {
  transform: scale(1.1);
}

.color.active {
  outline: 2px solid #000;
}

.footer-logo > img{max-width: 70%}
nav + a.btn-dark > i{display: none; font-size: 25px}


/*slide lavori*/
.work-slider {
  overflow: hidden;
}

/* TRACK */
.work-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* NASCONDI SCROLLBAR */
.work-slider-track::-webkit-scrollbar {
  display: none;
}

/* SLIDE */
.slide {
  min-width: 100%;
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  display: block;
}



@media (min-width: 768px) {
  .work-slider-track {
    overflow: visible;
  }

  .slider-dots {
    display: none;
  }

  .works-list .work-content .text-link{display: none}
}

/* Mobile */
@media (max-width: 768px) {
  .work-gallery {grid-template-columns: 1fr;}
  .work-row{border-radius: 10px; padding: 0; margin-bottom: 10px}
  .support-box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 30px
  }

  .container.works-list{width: 100%}
  .container.works-list .work-content{padding: 10px 20px}
  .support-visual {
    order: -1;
  }

  .brand img {
    height: 56px;
  }

  .header.scrolled .brand img {
    height: 18px;
  }
  .header.scrolled .btn-dark {
    top: 8px;

  }
  .header.scrolled .nav-wrap{
    gap:16px
  }

  nav + a.btn-dark{
    top: 8px;
    width: auto;
  }
  .header a.btn-dark > i{
    font-size: 20px
  }

  /*slide lavori*/
  .work-image-slider img:not(.active) {
    display: none;
  }
  .slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  height: 10px
}

.dot {
  width: 6px;
  height: 6px;
  background: #ccc;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.dot.active {
  background: #000;
  transform: scale(1.2);
}
.work-row:hover img {
  transform: none;
}

.work-content > a.text-link{
  margin-top: 5px;
  float: left;
  width: auto;
  display: inline-block;
  padding: 10px;
  text-decoration: underline;
  text-align: center;
  width: 100%;

}


}

@media (max-width: 980px) {

/*.header a.btn-dark > span{display: none}
.header a.btn-dark > i{display: block; color: #eee}

nav + a.btn-dark{
  position: absolute;
  right: 20px;
  top: 15px;
  padding: 5px 20px;
}*/
nav + a.btn-dark{
  padding: 0px 20px;
  min-height: 30px;
}

  .footer-logo,
  .footer-contact{
  text-align: center;
}
.footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.footer-logo img {
  display: block;
  margin: 0 auto 10px;
  height: 40px; /* regola come vuoi */
}
    .brand{width: auto; margin: 0 20%}
  .brand img.brand--mobile{display: block;}
  .brand img.brand--desktop{display: none;}
  #tshirt-image{margin: 0 auto}
  main.section{background: #eee}
  .hero-grid,
  .process-grid,
  .about-grid,
  .contact-grid,
  .work-row,
  .footer-grid,
  .split-heading,
  .cards-3,
  .cards-2,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .work-row img { aspect-ratio: 16/15; }
  .nav-wrap { flex-wrap: wrap; justify-content: center; padding: 14px 0; }
  .main-nav { justify-content: center; }

  .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
}

}

@media (max-width: 720px) {
  .section { padding: 28px 0 64px; }
  .hero-grid { min-height: auto; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .cta-band__inner { padding: 26px; }
}
@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
