/* ==========================================================================
   Scatigna Imbottiti — foglio di stile unico
   Palette: antracite #141414, panna #F5F2EB, oro #C6A972, rosso #ED1C24
   Font self-hosted: Cormorant Garamond (titoli), Inter (testi)
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --ink-soft: #1b1917;
  --ink-line: rgba(245, 242, 235, 0.14);
  --cream: #f5f2eb;
  --cream-dim: rgba(245, 242, 235, 0.72);
  --cream-faint: rgba(245, 242, 235, 0.5);
  --gold: #c6a972;
  --red: #ed1c24;
  --red-strong: #e0141d;
  --red-hover: #c8101a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.9rem, 1.6rem + 6vw, 6.5rem);
}

h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

p {
  margin: 0 0 1.1em;
  max-width: 62ch;
}

em,
.italic {
  font-style: italic;
}

strong {
  font-weight: 500;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--cream);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.6rem;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 56ch;
}

.muted {
  color: var(--cream-faint);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red-strong);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-hover);
  color: #fff;
}

/* la regola .nav a ha specificità maggiore: il CTA deve restare bianco sul rosso */
.nav a.btn--primary,
.nav a.btn--primary:hover {
  color: #fff;
}

.btn--ghost {
  border-color: rgba(245, 242, 235, 0.45);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
}

.btn--dark:hover {
  background: #2a2724;
  color: var(--cream);
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.35rem;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.55), transparent);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-line);
}

.site-header.is-scrolled::after {
  opacity: 0;
}

/* menu mobile aperto: niente blur, altrimenti il pannello fisso viene tagliato */
.site-header.nav-open {
  backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}

.site-header.nav-open::after {
  opacity: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: clamp(84px, 7vw, 96px);
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.nav a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  padding-block: 0.4rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cream);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.header-cta {
  padding: 0.8rem 1.35rem;
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    z-index: 2;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: #111111;
    padding: 4rem var(--pad);
    transform: translateY(-100%);
    transition: transform 0.35s var(--ease);
    visibility: hidden;
  }

  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav a {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
  }

  .header-cta {
    display: none;
  }

  .nav .btn {
    display: inline-flex;
    margin-top: 1rem;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-block: 8.5rem 3.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.55) 16%, rgba(10, 10, 10, 0.08) 38%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.55) 38%, rgba(10, 10, 10, 0.05) 72%);
}

.hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero__photo {
  margin: 0;
  min-width: 0;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid var(--ink-line);
  background: #101010;
}

.hero h1 {
  margin-bottom: 0.35em;
  max-width: 14ch;
}

.hero h1 em {
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--cream-dim);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cream-faint);
}

.hero__foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero__foot .dot {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .hero {
    align-items: stretch;
    padding-block: 7rem 2.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__photo {
    order: -1;
  }

  .hero__photo img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- sezioni ---------- */
.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}

.section--cream .eyebrow {
  color: #7a5f33;
}

.section--cream .lead,
.section--cream p {
  color: #3c3833;
}

.section--cream .muted {
  color: #6b645a;
}

/* Il focus dorato non basta sul fondo crema: serve un marrone più scuro. */
.section--cream :focus-visible {
  outline-color: #7a5f33;
}

.section--cream .link-arrow {
  color: var(--ink);
  border-color: #9a7b45;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head p {
  margin-bottom: 0.35rem;
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ---------- storia ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story__text :last-child {
  margin-bottom: 0;
}

.story__imgs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.story__imgs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.story__imgs img:last-child {
  margin-top: 2.5rem;
}

.story__badge {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  background: var(--red-strong);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 1rem 1.2rem;
  max-width: 11rem;
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story__badge {
    left: auto;
    right: 0.5rem;
    bottom: -1rem;
  }
}

/* ---------- card creazioni ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.card {
  grid-column: span 4;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--ink-soft);
}

.card:nth-child(1),
.card:nth-child(5) {
  grid-column: span 6;
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card:nth-child(1) .card__media,
.card:nth-child(5) .card__media {
  aspect-ratio: 16 / 10;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.5rem 1.35rem;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0));
}

.card__body h3 {
  margin: 0 0 0.15rem;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  /* il corpo della card è sempre su fondo scuro, anche dentro sezioni chiare */
  color: var(--cream);
}

.card__body p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

@media (max-width: 900px) {
  .card,
  .card:nth-child(1),
  .card:nth-child(5) {
    grid-column: span 12;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .card,
  .card:nth-child(1),
  .card:nth-child(5) {
    grid-column: span 6;
  }
}

/* ---------- tessuti ---------- */
.fabrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.fabrics__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.fabric-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}

.fabric-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 0.7rem;
}

.fabric-list span {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
  min-width: 1.2rem;
}

.section--cream .fabric-list li {
  border-color: rgba(20, 20, 20, 0.14);
}

.section--cream .fabric-list span {
  color: #7a5f33;
}

@media (max-width: 900px) {
  .fabrics {
    grid-template-columns: 1fr;
  }
  .fabrics__img {
    order: -1;
  }
}

/* ---------- metodo ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.method__step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
}

.method__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

.method__step h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.method__step p {
  font-size: 0.9375rem;
  color: var(--cream-dim);
  margin: 0;
}

.section--cream .method__step {
  border-color: rgba(20, 20, 20, 0.14);
}

.section--cream .method__n {
  color: #9a7b45;
}

.section--cream .method__step p {
  color: #3c3833;
}

@media (max-width: 900px) {
  .method {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .method {
    grid-template-columns: 1fr;
  }
}

/* ---------- il mestiere ---------- */
.mestiere {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.mestiere__img {
  position: sticky;
  top: 96px;
}

.mestiere__img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mestiere__list article {
  border-top: 1px solid var(--ink-line);
  padding-top: 1.4rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.mestiere__list article:last-child {
  margin-bottom: 0;
}

.mestiere__list h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  margin-bottom: 0.45rem;
}

.mestiere__list p {
  color: var(--cream-dim);
  margin-bottom: 0.5rem;
}

.mestiere__list .small {
  margin-bottom: 0;
  color: var(--cream-faint);
}

@media (max-width: 900px) {
  .mestiere {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mestiere__img {
    position: static;
    order: -1;
  }

  .mestiere__img img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- processo produttivo ---------- */
#taglio {
  scroll-margin-top: 6rem;
}

/* Teaser in home: solo l'inquadratura del tema. Il processo completo,
   con i cinque passaggi fotografici, vive una volta sola in /laboratorio#taglio. */
.cnc-home .section-head {
  margin-bottom: 0;
}

.cnc-teaser__text .lead {
  margin-bottom: 0.85rem;
}

.cnc-teaser__more {
  margin: 1.4rem 0 0;
}

.processo__ia {
  margin: 1rem 0 0;
  color: #b7b0a4;
  font-size: 12px;
  line-height: 1.5;
}

.processo {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.processo__step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
}

.processo__step:nth-child(even) .processo__fig {
  order: 2;
}

.processo__fig {
  min-width: 0;
  margin: 0;
}

.processo__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #191715;
}

.processo__fig figcaption {
  margin-top: 0.65rem;
  color: var(--cream-faint);
  font-size: 0.75rem;
  line-height: 1.5;
}

.processo__body {
  min-width: 0;
}

.processo__n {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.processo__body h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.processo__body p:last-child {
  margin-bottom: 0;
  color: var(--cream-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.cnc-lab__actions {
  margin: 2.5rem 0 0;
}

@media (max-width: 900px) {
  .processo__step,
  .processo__step:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .processo__step:nth-child(even) .processo__fig {
    order: 0;
  }

  .processo__fig img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- recensioni ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.review {
  background: #fff;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review:nth-child(1) {
  grid-column: span 2;
}

.review__stars {
  display: flex;
  gap: 0.2rem;
  color: #b8860b;
}

.review__stars svg {
  width: 15px;
  height: 15px;
}

.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  line-height: 1.35;
  color: #221f1c;
}

.review figcaption {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b645a;
}

.reviews__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .reviews {
    grid-template-columns: 1fr 1fr;
  }
  .review:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .reviews {
    grid-template-columns: 1fr;
  }
  .review:nth-child(1) {
    grid-column: span 1;
  }
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
  background: var(--ink-soft);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 100%, rgba(237, 28, 36, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  margin-bottom: 0.4em;
}

.cta-band p {
  position: relative;
  margin-inline: auto;
  color: var(--cream-dim);
}

.cta-band .btn {
  position: relative;
  margin-top: 1.2rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: #0f0f0f;
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--cream-dim);
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
}

.footer-social__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.footer-brand img {
  height: clamp(150px, 15vw, 210px);
  width: auto;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  color: var(--cream-faint);
  font-size: 0.875rem;
  max-width: 30ch;
}


.footer-ai {
  flex-basis: 100%;
  order: -1;
  margin: 0 0 0.35rem;
  color: #b7b0a4;
  font-size: 12px;
  line-height: 1.5;
}

.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.75rem;
  color: var(--cream-faint);
}

.footer-legal p {
  margin: 0;
  max-width: 90ch;
}

.footer-legal .footer-ai {
  margin: 0 0 0.35rem;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- intestazione pagine interne ---------- */
.page-head {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ink-line);
}

.page-head h1 {
  margin-bottom: 0.3em;
}

.page-head .lead {
  margin-bottom: 0;
}

.contact-photo {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid var(--ink-line);
}

/* ---------- galleria ---------- */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink-line);
  color: var(--cream-dim);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.gallery-nav a:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.gallery-nav__count {
  color: var(--cream-faint);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.gallery-group {
  scroll-margin-top: 6.5rem;
}

.gallery-group + .gallery-group {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink-line);
}

.gallery-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 2rem;
  align-items: end;
  padding-bottom: 1.15rem;
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--ink-line);
}

.gallery-group__kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gold);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-group__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
}

.gallery-group__intro {
  grid-column: 1;
  margin: 0.25rem 0 0;
  max-width: 62ch;
  color: var(--cream-dim);
}

.gallery-group__count {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  color: var(--cream-faint);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

.gallery--feature .gallery__item {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.045);
  opacity: 0.82;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 10, 10, 0.86),
    rgba(10, 10, 10, 0.36) 26%,
    transparent 48%
  );
  opacity: 1;
  pointer-events: none;
}

.gallery__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.gallery__cap b {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.gallery__cap span {
  color: var(--cream-faint);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* l'attributo hidden deve sempre vincere su eventuali display delle classi */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-group__head {
    grid-template-columns: 1fr;
  }

  .gallery-group__count {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery--feature .gallery__item {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: rgba(8, 8, 8, 0.97);
  color: var(--cream);
}

.lightbox::backdrop {
  background: rgba(8, 8, 8, 0.9);
}

.lightbox__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 4rem) 1.5rem;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__cap {
  font-size: 0.875rem;
  color: var(--cream-dim);
  text-align: center;
  margin: 0;
}

.lightbox__cap b {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  display: block;
}

.lightbox__ai {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #b7b0a4;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--cream);
  width: 46px;
  height: 46px;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--cream);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__nav--prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.info-block {
  border-top: 1px solid var(--ink-line);
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-block h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.info-block p,
.info-block ul {
  margin: 0;
}

.info-block ul {
  list-style: none;
  padding: 0;
}

.info-block li {
  margin-bottom: 0.4rem;
}

.info-block a {
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 235, 0.5);
  display: inline-block;
  padding-bottom: 1px;
}

.info-block a:hover {
  border-color: var(--gold);
}

.info-block .pec-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.2rem;
  margin: 0 -0.2rem;
}

.tel-role {
  color: var(--cream-faint);
  font-size: 0.8125rem;
  margin-left: 0.4rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.info-block .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(245, 242, 235, 0.32);
  color: var(--cream);
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.info-block .social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.social-link__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- form ---------- */
.form {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.form h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  margin-bottom: 0.3em;
}

.form > p {
  color: var(--cream-dim);
  font-size: 0.9375rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--cream-dim);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(245, 242, 235, 0.5);
  color: var(--cream);
  padding: 0.8rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 242, 235, 0.6);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #e8877f;
}

.field__optional {
  color: var(--cream-faint);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.field__error {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: #f0a49d;
}

.form__privacy {
  margin: 1.1rem 0 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

.form__privacy a {
  color: var(--cream);
}

.mb-0 {
  margin-bottom: 0;
}

.footer-address {
  margin-bottom: 0.6rem;
}

.card--half {
  grid-column: span 6;
}

.card__media--wide {
  aspect-ratio: 16 / 10;
}

@media (max-width: 720px) {
  .card--half {
    grid-column: span 12;
  }
}

.form__actions {
  display: grid;
  gap: 0.7rem;
}

.form__note {
  font-size: 0.75rem;
  color: var(--cream-faint);
  margin: 1.1rem 0 0;
  line-height: 1.6;
}

.form__status {
  margin: 0.9rem 0 0;
  font-size: 0.8375rem;
  color: var(--gold);
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- pagine legali ---------- */
.legal {
  max-width: 78ch;
  padding-block: clamp(6.5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
}

.legal h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  margin-bottom: 0.4em;
}

.legal h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 0.5em;
}

.legal h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.35em;
}

.legal p,
.legal li {
  color: var(--cream-dim);
  font-size: 0.9375rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 1.1em;
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal .note {
  border-left: 2px solid var(--red);
  padding: 0.9rem 1.1rem;
  background: rgba(237, 28, 36, 0.06);
  font-size: 0.875rem;
  color: var(--cream-dim);
}

.legal a {
  color: var(--gold);
}

.legal a.btn--primary {
  color: #fff;
}

.legal a.btn--ghost {
  color: var(--cream);
}

.legal a.btn--ghost:hover {
  color: var(--ink);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
}

.legal th,
.legal td {
  border-bottom: 1px solid var(--ink-line);
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
  color: var(--cream-dim);
}

.legal th {
  color: var(--cream);
  font-weight: 500;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-faint);
}

.back-link:hover {
  color: var(--gold);
}

/* ---------- b2b ---------- */
.b2b {
  border: 1px solid var(--ink-line);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(120deg, rgba(198, 169, 114, 0.08), transparent 60%);
}

.b2b h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  margin-bottom: 0.2em;
}

.b2b p {
  margin: 0;
  color: var(--cream-dim);
  max-width: 62ch;
}

@media (max-width: 760px) {
  .b2b {
    grid-template-columns: 1fr;
  }
}

/* ---------- banner cookie (spento, pronto all'uso) ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: rgba(20, 20, 20, 0.98);
  border-top: 1px solid var(--ink-line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 82ch;
  color: var(--cream-dim);
}

.cookie-banner__text a {
  color: var(--cream);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex: none;
}

.cookie-banner .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.75rem;
}

/* ---------- fotografie rimosse: contenitori neutri ---------- */
.photo-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 12rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(245, 242, 235, 0.05), rgba(245, 242, 235, 0.015));
  border: 1px solid var(--ink-line);
  color: var(--cream-dim);
  text-align: center;
}

.photo-pending__inner {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  max-width: 30ch;
}

.photo-pending__kicker {
  color: #ff8a8a;
  font-size: 0.5625rem;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo-pending__brief {
  max-width: 28ch;
  overflow-wrap: break-word;
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.section--cream .photo-pending {
  background: rgba(20, 20, 20, 0.045);
  border-color: rgba(20, 20, 20, 0.14);
  color: #6b645a;
}

.section--cream .photo-pending__kicker {
  color: #9b1c24;
}

.story__imgs .photo-pending {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.story__imgs .photo-pending + .photo-pending {
  margin-top: 2.5rem;
}

.fabrics__img .photo-pending {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.mestiere__img .photo-pending {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.card__media .photo-pending,
.gallery__item .photo-pending {
  height: 100%;
  min-height: 0;
}

.card__media .photo-pending {
  padding-bottom: 6rem;
  background: linear-gradient(135deg, rgba(245, 242, 235, 0.05), rgba(245, 242, 235, 0.015));
  border-color: var(--ink-line);
  color: var(--cream-dim);
}

.gallery__item .photo-pending {
  padding-bottom: 4.75rem;
}

.photo-pending--wide {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.photo-wide {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery__item--pending {
  cursor: default;
}

.gallery__item--pending::after {
  display: none;
}

.gallery__item--pending .gallery__cap {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .mestiere__img .photo-pending {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- animazioni leggere ---------- */
/* l'animazione si attiva solo se il JS è disponibile: senza JS
   i contenuti restano visibili */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- stampa ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .hero__media,
  .lightbox,
  .gallery-nav,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
