/* ==========================================================================
   Casa del Tendaggio Favara — foglio di stile (v2)
   Bianco, nero caldo, un solo accento ottone. Titoli in serif, interfaccia in sans.
   Mobile first, nessun framework, solo tema chiaro.
   ========================================================================== */

:root {
  --bianco: #FFFFFF;
  --nero: #1C1B1A;
  --fascia: #F6F4F0;
  --ottone: #B3834A;
  --grigio: #5E5A55;
  --linea: #E6E1D9;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1320px;
  --header-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --header-h: 88px; --gutter: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bianco); color: var(--nero);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(84px + var(--safe-b));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ottone); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--nero); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section--fascia { background: var(--fascia); }
.section--tight { padding-top: 0; }

/* ---------- Tipografia ---------- */
.overline {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--grigio); margin: 0 0 20px;
}
.overline::before { content: ""; width: 28px; height: 1px; background: var(--ottone); flex: none; }
.center .overline, .overline.center { justify-content: center; }
.title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06; letter-spacing: -.005em;
}
.title em { font-style: italic; }
.title--sm { font-size: clamp(30px, 3.4vw, 44px); }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 29px); line-height: 1.42; }
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.prose p { margin-bottom: 1em; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.measure { max-width: 780px; }
.measure--narrow { max-width: 620px; }
.muted { color: var(--grigio); }
.rule { width: 48px; height: 1px; background: var(--ottone); border: 0; margin: 28px auto; }
.rule--left { margin-left: 0; }

.link {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid currentColor; transition: color .2s, border-color .2s, gap .2s;
}
.link::after { content: "→"; font-size: 15px; letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--ottone); border-color: var(--ottone); gap: 14px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 28px; border: 1px solid var(--nero);
  background: var(--nero); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #fff; color: var(--nero); } }
.btn--ghost { background: transparent; color: var(--nero); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--nero); color: #fff; } }
.btn--light { background: #fff; color: var(--nero); border-color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: transparent; color: #fff; } }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine) { .btn--line-light:hover { background: #fff; color: var(--nero); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.todo { font-family: var(--sans); font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: var(--ottone); border-bottom: 1px dashed var(--ottone); }

/* ---------- Segnaposto foto: tono caldo, come una foto in luce naturale ---------- */
.ph {
  position: relative; width: 100%; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(255,250,240,.95) 0%, rgba(255,250,240,0) 55%),
    linear-gradient(160deg, #EFE8DE 0%, #E2D7C8 55%, #CFC0AD 100%);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 38px, rgba(255,255,255,.18) 38px 52px, rgba(120,100,80,.06) 52px 64px);
  mix-blend-mode: soft-light;
}
.ph > span {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-size: 11px; letter-spacing: .08em; color: rgba(28,27,26,.62); line-height: 1.4; max-width: calc(100% - 28px);
}
.ph > span small { display: inline; font-size: 11px; }
.ph > span small::before { content: " · "; }
.ph--dark { background: radial-gradient(90% 80% at 70% 25%, #B9A68E 0%, #8C7A65 45%, #5A4D40 100%); }
.ph--dark > span { color: rgba(255,255,255,.75); }
.ph--sq { aspect-ratio: 1 / 1; }
.ph--43 { aspect-ratio: 4 / 3; }
.ph--34 { aspect-ratio: 3 / 4; }
.ph--45 { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Testata
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--linea); }
.header__in { height: var(--header-h); display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 var(--gutter); }
.brand { justify-self: center; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-size: 11px; font-weight: 500; letter-spacing: .26em; line-height: 1.35; text-transform: uppercase; }
.brand__name b { display: block; font-weight: 500; }
.brand__name span { display: block; color: var(--grigio); letter-spacing: .4em; }

.nav-toggle { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--nero); }
.nav-toggle i { display: block; width: 22px; height: 1px; background: currentColor; position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; transition: transform .25s; }
.nav-toggle i::before { top: -7px; } .nav-toggle i::after { top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 24px var(--gutter) 120px; display: none; overflow-y: auto; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 14px 0; text-decoration: none; font-family: var(--serif); font-size: 30px; border-bottom: 1px solid var(--linea); }
.nav a[aria-current="page"] { color: var(--ottone); }
.header__cta { display: none; }

@media (min-width: 1024px) {
  .header__in { grid-template-columns: 1fr auto 1fr; }
  .nav-toggle { display: none; }
  .nav { position: static; display: block; padding: 0; background: none; overflow: visible; }
  .nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 28px; row-gap: 2px; }
  .nav a { padding: 2px 0; border: 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
  @media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ottone); } }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 12px; }
  .header__cta { display: inline-flex; justify-self: end; min-height: 42px; padding: 10px 20px; font-size: 12px; }
}

/* ==========================================================================
   Apertura della home
   ========================================================================== */
.hero { position: relative; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 520px; color: #fff; }
.hero > .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,18,16,0) 35%, rgba(20,18,16,.55) 100%); pointer-events: none; }
.hero__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 64px; }
@media (min-width: 1024px) { .hero__in { padding-bottom: 88px; } }
.hero__kicker { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; opacity: .9; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 96px); line-height: 1.0; max-width: 12em; letter-spacing: -.01em; }
.hero__title em { font-style: italic; }
.hero .actions { margin-top: 36px; }

/* fatti chiave sotto l'apertura */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 22px 16px 22px 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--linea); }
@media (max-width: 899px) { .fact:nth-child(3) { padding-left: 0; border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--linea); } }
@media (min-width: 900px) { .fact { padding: 28px 24px; } .fact:first-child { padding-left: 0; } }
.fact b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.fact span { display: block; font-size: 14px; color: var(--grigio); margin-top: 4px; line-height: 1.45; }

.intro { display: grid; gap: 32px; }
@media (min-width: 900px) { .intro { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

/* ==========================================================================
   Griglia prodotti (editoriale)
   ========================================================================== */
.pgrid { display: grid; gap: 40px 24px; margin-top: 56px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .pgrid { grid-template-columns: repeat(6, 1fr); gap: 56px 28px; }
  .ptile { grid-column: span 2; }
  .ptile--big { grid-column: span 3; }
}
.ptile { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.ptile__media { overflow: hidden; }
.ptile .ph { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) { a.ptile:hover .ph { transform: scale(1.03); } }
.ptile h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-top: 20px; }
.ptile p { font-family: var(--serif); font-size: 19px; color: var(--grigio); margin: 8px 0 14px; line-height: 1.45; max-width: 30em; }
.ptile__more { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (hover: hover) and (pointer: fine) { a.ptile:hover .ptile__more { color: var(--ottone); } }
.ptile__more--soon { border-bottom: 0; color: var(--grigio); }

/* ==========================================================================
   Lettore a sequenza di fotogrammi
   ========================================================================== */
.seq { position: relative; height: 260vh; background: #2a2826; }
.seq__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); overflow: hidden; }
.seq canvas, .seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seq__poster { transition: opacity .4s; }
.seq.is-ready .seq__poster { opacity: 0; }
.seq__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.seq__overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter); color: #fff; text-align: center; pointer-events: none; }
.seq--fade .seq__overlay { opacity: calc(1 - var(--p, 0) * 2.2); transform: translateY(calc(var(--p, 0) * -60px)); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; max-width: 14em; text-shadow: 0 1px 30px rgba(0,0,0,.25); }
.seq__hint { position: absolute; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%); color: #fff; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: calc(1 - var(--p, 0) * 6); }
.seq__hint::after { content: ""; display: block; width: 1px; height: 36px; background: #fff; margin: 10px auto 0; animation: hint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.seq__badge { position: absolute; right: 12px; top: 12px; background: var(--nero); color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }
.seq__head { position: absolute; left: 0; right: 0; top: 40px; padding: 0 var(--gutter); color: #fff; }
.seq__head .overline { color: rgba(255,255,255,.85); }
.seq__captions { position: absolute; left: 0; right: 0; bottom: calc(48px + var(--safe-b)); padding: 0 var(--gutter); display: grid; pointer-events: none; }
.seq__captions p { grid-area: 1 / 1; justify-self: start; max-width: 22em; margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); color: #fff; line-height: 1.15; text-shadow: 0 1px 20px rgba(0,0,0,.35); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.seq__captions p.is-on { opacity: 1; transform: none; }
.seq__captions p small { display: block; font-family: var(--sans); font-size: 15px; line-height: 1.5; margin-top: 10px; opacity: .9; max-width: 34em; }
@media (min-width: 1024px) { .seq__captions { max-width: var(--max); margin: 0 auto; } }

.seq.is-static { height: auto; }
.seq.is-static .seq__sticky { position: relative; top: auto; height: 88vh; height: 88svh; }
.seq.is-static canvas, .seq.is-static .seq__hint { display: none; }
.seq.is-static .seq__poster { opacity: 1; }
.seq.is-static .seq__overlay { opacity: 1; transform: none; }
.seq.is-static .seq__captions p:first-child { opacity: 1; transform: none; }

/* ==========================================================================
   Comparse dei testi
   ========================================================================== */
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
    .js .reveal.is-visible { opacity: 1; transform: none; }
  }
}

/* ==========================================================================
   Carosello (pagine prodotto)
   ========================================================================== */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.rail-ctrl { display: none; gap: 8px; }
@media (min-width: 768px) { .rail-ctrl { display: flex; } }
.rail-ctrl button { width: 44px; height: 44px; border: 1px solid var(--nero); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--nero); }
@media (hover: hover) and (pointer: fine) { .rail-ctrl button:hover { background: var(--nero); color: #fff; } }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  --rail-pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: var(--rail-pad); padding: 0 var(--rail-pad) 12px; margin: 0; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--linea) transparent;
}
@media (min-width: 640px) { .rail { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 2 * var(--gutter) - 3 * 24px) / 3.3); gap: 24px; } }
.rail > li { scroll-snap-align: start; }
.card { display: block; text-decoration: none; }
.card__name { margin-top: 14px; font-family: var(--serif); font-size: 24px; line-height: 1.2; }

/* ==========================================================================
   Il servizio (quattro passaggi)
   ========================================================================== */
.steps { display: grid; gap: 0; margin-top: 56px; border-top: 1px solid var(--linea); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 0; border-bottom: 1px solid var(--linea); display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; }
@media (min-width: 900px) { .step { display: block; padding: 32px 28px 8px; border-bottom: 0; } .step:first-child { padding-left: 0; } .step + .step { border-left: 1px solid var(--linea); } }
.step__n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ottone); grid-row: span 2; }
.step h3 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 0 0 10px; }
@media (min-width: 900px) { .step h3 { margin-top: 22px; } }
.step p { font-size: 16px; line-height: 1.6; color: var(--grigio); margin: 0; }

/* ==========================================================================
   Per chi lavoriamo
   ========================================================================== */
.audience { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.aud h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 22px 0 10px; }
.aud p { font-size: 16px; line-height: 1.6; color: var(--grigio); margin: 0 0 16px; }

/* marchi */
.brands { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.38; max-width: 30em; }
.brands strong { font-weight: 500; }

/* guida in anteprima */
.gteaser { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--nero); }
@media (min-width: 900px) { .gteaser { grid-template-columns: repeat(3, 1fr); } }
.gteaser a { display: block; padding: 28px 0 32px; text-decoration: none; border-bottom: 1px solid var(--linea); }
@media (min-width: 900px) { .gteaser a { padding: 32px 28px 36px; border-bottom: 0; } .gteaser a:first-child { padding-left: 0; } .gteaser a + a { border-left: 1px solid var(--linea); } }
.gteaser .overline { margin-bottom: 14px; }
.gteaser h3 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.gteaser p { color: var(--grigio); margin: 0; }
@media (hover: hover) and (pointer: fine) { .gteaser a:hover h3 { color: var(--ottone); } }

/* ==========================================================================
   Due colonne generiche, contatti, negozio
   ========================================================================== */
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split--rev > :first-child { order: 2; } }
.visit { display: grid; gap: 40px; }
@media (min-width: 900px) { .visit { grid-template-columns: 6fr 5fr; gap: 72px; align-items: stretch; } }
.visit > * { min-width: 0; }
.dl { display: grid; margin: 28px 0 0; }
.dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.dl > div:first-child { border-top: 1px solid var(--linea); }
.dl dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); padding-top: 4px; }
.dl dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.dl a { text-decoration: none; border-bottom: 1px solid var(--linea); }
@media (hover: hover) and (pointer: fine) { .dl a:hover { border-color: var(--ottone); } }

/* ---------- Testata pagina interna ---------- */
.page-hero { position: relative; color: #fff; }
.page-hero .ph { aspect-ratio: auto; height: 72vh; height: 72svh; min-height: 420px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,18,16,0) 40%, rgba(20,18,16,.5) 100%); pointer-events: none; }
.page-hero__title { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 56px; pointer-events: none; }
.page-hero__title h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; }
.page-hero .ph > span { top: 14px; bottom: auto; }
.crumbs { font-size: 12px; letter-spacing: .08em; color: var(--grigio); padding: 20px 0 0; }
.crumbs a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ottone); } }

.invite { text-align: center; }
.invite .lead { max-width: 30em; margin: 0 auto 8px; }

/* ==========================================================================
   Guida
   ========================================================================== */
.level-switch { display: inline-flex; border: 1px solid var(--nero); margin-top: 28px; }
.level-switch button { min-height: 44px; padding: 10px 20px; border: 0; background: #fff; color: var(--nero); cursor: pointer; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.level-switch button[aria-pressed="true"] { background: var(--nero); color: #fff; }
.toc { list-style: none; padding: 0; margin: 56px 0 0; display: grid; counter-reset: toc; }
@media (min-width: 768px) { .toc { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.toc li { border-top: 1px solid var(--linea); }
.toc a { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; text-decoration: none; font-family: var(--serif); font-size: 22px; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--ottone); font-family: var(--sans); font-size: 12px; letter-spacing: .1em; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ottone); } }
.article { padding: 64px 0; border-top: 1px solid var(--linea); }
.article__grid { display: grid; gap: 24px; }
.article__grid > * { min-width: 0; }
@media (min-width: 900px) { .article__grid { grid-template-columns: 320px 1fr; gap: 72px; } }
.article h2 { font-family: var(--serif); font-size: 32px; line-height: 1.12; }
.article__n { display: block; color: var(--ottone); font-family: var(--sans); font-size: 12px; letter-spacing: .12em; margin-bottom: 12px; }
.article__more { margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); }
.level--tecnico { display: none; border-left: 1px solid var(--ottone); padding-left: 20px; margin-top: 8px; }
[data-livello="tecnico"] .level--tecnico { display: block; }
.future { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 768px) { .future { grid-template-columns: 1fr 1fr; } }
.future > div { border: 1px solid var(--linea); padding: 28px; background: #fff; }
.future h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.future p { margin: 0; color: var(--grigio); }

/* ==========================================================================
   Piè di pagina
   ========================================================================== */
.footer { border-top: 1px solid var(--linea); padding: 64px 0 40px; font-size: 15px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h2 { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grigio); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer .brand { justify-self: start; display: inline-flex; }
.footer a { text-decoration: none; } @media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ottone); } }
.footer address { font-style: normal; line-height: 1.8; margin-top: 20px; }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linea); font-size: 13px; color: var(--grigio); display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   Barra flottante a pillola (telefono e tablet)
   ========================================================================== */
.pill { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); display: flex; gap: 4px; padding: 5px; background: rgba(28,27,26,.94); border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pill a + a { background: #fff; color: var(--nero); }
.pill svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .pill { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  /* niente movimento: restano solo dissolvenze e cambi di colore, che aiutano a capire */
  .pt > img, .au-card__img img, .mosaic__t img, .ptile .ph, .btn, .au-pill, .pill a, .header__cta, .rail-ctrl button, .needs__list button, .pt__go, .nav-toggle, .card--cta { transform: none !important; }
}

/* ==========================================================================
   v3 — prodotti e scelta
   ========================================================================== */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__sub { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; max-width: 30em; margin: 22px 0 0; opacity: .95; }

/* Di cosa avete bisogno? */
.needs { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 900px) { .needs { grid-template-columns: 360px 1fr; gap: 56px; align-items: start; } }
.needs__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.needs__list::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .needs__list { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--linea); } }
.needs__list button {
  flex: none; min-height: 44px; padding: 10px 18px; border: 1px solid var(--linea); background: #fff; color: var(--nero);
  font-family: var(--sans); font-size: 15px; text-align: left; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
@media (min-width: 900px) {
  .needs__list button { white-space: normal; border: 0; border-bottom: 1px solid var(--linea); padding: 16px 0; font-family: var(--serif); font-size: 23px; display: flex; justify-content: space-between; align-items: center; }
  .needs__list button::after { content: "→"; font-family: var(--sans); font-size: 16px; color: var(--ottone); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
  .needs__list button[aria-selected="true"]::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .needs__list button:hover::after { opacity: 1; transform: none; } }
}
@media (hover: hover) and (pointer: fine) { .needs__list button:hover { border-color: var(--nero); } }
.needs__list button[aria-selected="true"] { background: var(--nero); color: #fff; border-color: var(--nero); }
@media (min-width: 900px) { .needs__list button[aria-selected="true"] { background: transparent; color: var(--ottone); } }
.need { background: var(--fascia); padding: 32px 24px; }
@media (min-width: 900px) { .need { padding: 48px 56px; min-height: 100%; } }
.need__for { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ottone); margin-bottom: 12px; }
.need h3 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; margin-bottom: 18px; }
.need p { font-family: var(--serif); font-size: 21px; line-height: 1.55; max-width: 32em; }

/* indice prodotti */
.pindex { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.pindex a { font-size: 13px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--linea); background: #fff; transition: border-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .pindex a:hover { border-color: var(--nero); } }

/* riga prodotto */
.prow { display: grid; gap: 28px; padding: 56px 0; border-bottom: 1px solid var(--linea); scroll-margin-top: 0; }
.prow:last-child { border-bottom: 0; }
.prow > * { min-width: 0; }
@media (min-width: 900px) { .prow { grid-template-columns: 7fr 5fr; gap: 64px; padding: 88px 0; align-items: start; } .prow--rev { grid-template-columns: 5fr 7fr; } .prow--rev .prow__media { order: 2; } }
.prow__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prow__img--sq { aspect-ratio: 4 / 3; }
.prow__media .ph { aspect-ratio: 3 / 2; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.credit { font-size: 12px; color: var(--grigio); margin: 10px 0 0; }
.prow h3 { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
.prow__lead { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin: 16px 0 24px; }
.prow__facts { margin: 0 0 24px; border-top: 1px solid var(--linea); }
.prow__facts > div { padding: 14px 0; border-bottom: 1px solid var(--linea); display: grid; gap: 4px; }
@media (min-width: 600px) { .prow__facts > div { grid-template-columns: 130px 1fr; gap: 16px; } }
.prow__facts dt { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ottone); padding-top: 3px; }
.prow__facts dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--nero); }

/* tabelle di confronto */
.compare { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; line-height: 1.45; table-layout: fixed; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--linea); }
.compare thead th { font-family: var(--serif); font-size: 21px; font-weight: 500; border-bottom: 1px solid var(--nero); }
.compare tbody th { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ottone); width: 26%; }
.compare thead th:first-child { width: 26%; }
@media (max-width: 520px) { .compare { font-size: 14px; } .compare thead th { font-size: 18px; } .compare tbody th, .compare thead th:first-child { width: 24%; } }

.audience--text { margin-top: 40px; }
.audience--text .aud h3 { margin-top: 0; }

/* marchi */
.brandlist { display: grid; gap: 32px; margin-top: 48px; border-top: 1px solid var(--nero); padding-top: 32px; }
@media (min-width: 900px) { .brandlist { grid-template-columns: 1fr 1fr; gap: 64px; } }
.brandlist__k { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ottone); margin-bottom: 12px; }
.brandlist__main { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.25; margin: 0; }
.brandlist__more { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.5; color: var(--grigio); margin: 0; }

/* lavori */
.works { display: grid; gap: 40px 24px; margin-top: 40px; }
@media (min-width: 640px) { .works { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .works { grid-template-columns: repeat(3, 1fr); gap: 48px 28px; } .work--wide { grid-column: span 2; } .work--wide .ph { aspect-ratio: auto; height: calc(100% - 140px); min-height: 320px; } }
.work { display: block; text-decoration: none; min-width: 0; }
.work__k { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); margin: 18px 0 6px; }
.work h3 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.work p:not(.work__k) { color: var(--grigio); margin: 0; }
@media (hover: hover) and (pointer: fine) { a.work:hover h3 { color: var(--ottone); } }

/* ==========================================================================
   v4 — impatto visivo in stile lookbook (immagini a tutta pagina, interfaccia sottile)
   ========================================================================== */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* tipografia più asciutta */
.title { font-size: clamp(32px, 4vw, 52px); }
.overline { font-size: 11px; letter-spacing: .2em; }
.overline::before { display: none; }

/* testata trasparente sopra l'apertura della home */
.home .header--over { position: fixed; left: 0; right: 0; background: transparent; color: #fff; transition: background .35s, color .35s, border-color .35s; }
.home .header--over .brand__name span { color: rgba(255,255,255,.8); }
.home .header--over .header__cta { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.home .header--over.is-scrolled { background: rgba(255,255,255,.97); color: var(--nero); }
.home .header--over.is-scrolled .brand__name span { color: var(--grigio); }
.home .header--over.is-scrolled .header__cta { background: var(--nero); border-color: var(--nero); color: #fff; }
.home .nav.is-open { color: var(--nero); }
.home .header--over:has(.nav.is-open) { background: #fff; color: var(--nero); }
.home .hero { height: 100vh; height: 100svh; }
.home .seq__sticky { top: 0; height: 100vh; height: 100svh; }

/* apertura: testo piccolo in basso, l'immagine comanda */
.hero__kicker { font-size: 11px; letter-spacing: .24em; }
.hero__title { font-size: clamp(36px, 5.2vw, 72px); max-width: 13em; }
.hero__sub { font-family: var(--sans); font-size: 15px; line-height: 1.6; max-width: 36em; }

/* mosaico a tutta pagina */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.mosaic__t { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; }
.mosaic__t img, .mosaic__t .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) { .mosaic__t:hover img, .mosaic__t:hover .ph { transform: scale(1.04); } }
.mosaic__t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.mosaic__l { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.mosaic__t .ph > span { display: none; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 34vw; }
  .mosaic__t { aspect-ratio: auto; }
  .mosaic__t--tall { grid-row: span 2; }
  .mosaic__l { left: 24px; bottom: 22px; }
}
@media (min-width: 1400px) { .mosaic { grid-auto-rows: 26vw; } }

/* fascia fotografica */
.band { position: relative; margin: 0; height: 80vh; height: 80svh; min-height: 420px; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption { position: absolute; left: var(--gutter); bottom: 20px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.band figcaption span { display: block; font-weight: 400; letter-spacing: .04em; text-transform: none; opacity: .85; margin-top: 4px; }

/* schede prodotto: l'immagine arriva al bordo dello schermo */
.prow__media .thumbs { gap: 2px; margin-top: 2px; }
@media (min-width: 900px) {
  .prow { --bleed: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter)); }
  .prow:not(.prow--rev) .prow__media { margin-left: calc(var(--bleed) * -1); }
  .prow--rev .prow__media { margin-right: calc(var(--bleed) * -1); }
  .prow:not(.prow--rev) .credit { padding-left: var(--bleed); }
  .prow__img { aspect-ratio: 4 / 3; }
}
.prow h3 { font-size: clamp(30px, 3vw, 42px); }
.prow__lead { font-size: 19px; }

/* ==========================================================================
   v5 — palette neutra (bianco sporco, grigio caldo, quasi nero, nessun accento)
   ========================================================================== */
:root {
  --bianco: #FAF9F7;   /* fondo pagina */
  --nero: #1A1918;     /* testo e pulsanti */
  --fascia: #F0EEEA;   /* fasce alternate */
  --ottone: #6F6A64;   /* ex accento: ora grigio caldo per etichette e linee sottili */
  --grigio: #5F5A55;
  --linea: #E2DFDA;
}
body { background: var(--bianco); }
.header, .nav { background: rgba(250,249,247,.97); }
.home .header--over.is-scrolled { background: rgba(250,249,247,.97); }
.mosaic { background: var(--bianco); }
.pindex a, .needs__list button, .rail-ctrl button, .future > div, .level-switch button { background: var(--bianco); }
.need { background: var(--fascia); }
@media (hover: hover) and (pointer: fine) { .link:hover, .nav a:hover, .footer a:hover, .crumbs a:hover, .toc a:hover, .gteaser a:hover h3, a.work:hover h3, a.ptile:hover .ptile__more { color: var(--nero); border-color: var(--nero); opacity: .65; } }
.needs__list button[aria-selected="true"] { color: var(--nero); }
@media (min-width: 900px) { .needs__list button[aria-selected="true"] { font-style: italic; } }
.nav a[aria-current="page"] { color: var(--nero); text-decoration: underline; text-underline-offset: 6px; }
.step__n { color: var(--nero); }
.rule { background: var(--nero); opacity: .25; }
:focus-visible { outline-color: var(--nero); }
.todo { color: #8A5A2B; border-color: #8A5A2B; }
/* segnaposto foto in grigi caldi neutri */
.ph { background: radial-gradient(120% 90% at 78% 12%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 55%), linear-gradient(160deg, #ECEAE6 0%, #DEDAD4 55%, #CFCAC3 100%); }
.ph--dark { background: radial-gradient(90% 80% at 70% 25%, #A9A49D 0%, #7E7973 45%, #55514D 100%); }
@media (min-width: 1024px) { .nav { background: none; } }
.home .header--over:not(.is-scrolled) .nav:not(.is-open) { background: none; }

/* ==========================================================================
   Correzioni visive
   ========================================================================== */
/* scheda attiva "Di cosa avete bisogno?" leggibile su telefono */
.needs__list button[aria-selected="true"] { background: var(--nero); color: #fff; border-color: var(--nero); }
@media (min-width: 900px) { .needs__list button[aria-selected="true"] { background: transparent; color: var(--nero); } }

/* menu su telefono: fondo pieno e marchio leggibile */
.nav.is-open { background: var(--bianco); }
.home .header--over:has(.nav.is-open) { background: var(--bianco); }
.home .header--over:has(.nav.is-open) .brand__name span { color: var(--grigio); }

/* menu desktop solo quando c'è spazio: su tablet resta il menu a scomparsa */
@media (min-width: 1024px) and (max-width: 1239px) {
  .header__in { grid-template-columns: 48px 1fr auto; }
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; display: none; padding: 24px var(--gutter) 120px; background: var(--bianco); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav ul { display: block; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linea); font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .brand { justify-self: center; }
  body { padding-bottom: calc(84px + var(--safe-b)); }
  .pill { display: flex; }
}

/* apertura su telefono: i pulsanti non finiscono sotto la barra a pillola */
@media (max-width: 1239px) { .hero__in { padding-bottom: calc(104px + var(--safe-b)); } }

/* sequenza: l'etichetta della sezione non si sovrappone ad altro */
.seq__head { top: 24px; }
.seq__head .overline { background: rgba(26,25,24,.55); display: inline-flex; padding: 6px 10px; color: #fff; }
.seq__badge { top: auto; bottom: 12px; }
.seq__badge { top: 12px; bottom: auto; }
.seq__head { top: 64px; }
.page-hero__title { padding-left: var(--gutter); padding-right: var(--gutter); max-width: var(--max); margin: 0 auto; }
.page-hero__title h1 { font-size: clamp(38px, 6vw, 84px); }
.nav-toggle { color: inherit; }
.home .header--over:has(.nav.is-open) .header__cta { background: var(--nero); border-color: var(--nero); color: #fff; }


/* ==========================================================================
   Logo definitivo: Trama, variante pulita, scritta in maiuscolo spaziato
   ========================================================================== */
.brand { gap: 12px; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-family: "Jost", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; line-height: 1.05; font-weight: 400; }
.brand__name .brand__a { display: block; font-size: 8px; letter-spacing: .38em; color: inherit; opacity: .85; }
.brand__name b { display: block; font-size: 15px; font-weight: 400; letter-spacing: .14em; margin-top: 2px; }
.brand__name .brand__c { display: none; }
@media (min-width: 1024px) { .brand__mark { width: 38px; height: 38px; } .brand__name .brand__a { font-size: 9px; } .brand__name b { font-size: 18px; } }
.footer .brand__mark { width: 48px; height: 48px; }
.footer .brand__name .brand__a { font-size: 10px; }
.footer .brand__name b { font-size: 22px; }
.footer .brand__name .brand__c { display: block; font-size: 9px; letter-spacing: .5em; margin-top: 5px; opacity: .75; }

/* ==========================================================================
   Schede tecniche (dati dai cataloghi tecnici dei produttori)
   ========================================================================== */
.specs { margin: 28px 0 0; border-top: 1px solid var(--nero); }
.specs > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 700px) { .specs > div { grid-template-columns: 240px 1fr; gap: 24px; } }
.specs dt { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--nero); padding-top: 3px; }
.specs dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--nero); }
.specs-note { font-size: 13px; color: var(--grigio); margin-top: 14px; max-width: 70ch; }
.specs-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .specs-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.specs-grid h3 { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; font-size: 20px; margin: 0; }

/* pagina corrente nei link: segnata, non cliccabile */
.footer a[aria-current="page"], .pindex a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: default; }

/* barra rapida: WhatsApp come icona tonda */
.pill a.pill__wa { padding: 0; width: 46px; justify-content: center; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.pill a.pill__wa svg { width: 20px; height: 20px; }
