/* PP Neue Montreal (Pangram Pangram). Nel prototipo usa i file installati su questo Mac;
   per il sito pubblicato servono i file woff2 con licenza web, da mettere in assets/fonts.
   Il testo normale è Book (400); il Thin non è dichiarato, così il browser non può mai ripiegare su quello. */
@font-face { font-family: "PP Neue Montreal"; font-weight: 400; font-style: normal; src: local("PP Neue Montreal Book"), local("PPNeueMontreal-Book"); }
@font-face { font-family: "PP Neue Montreal"; font-weight: 400; font-style: italic; src: local("PP Neue Montreal Italic"), local("PPNeueMontreal-Italic"); }
@font-face { font-family: "PP Neue Montreal"; font-weight: 300; font-style: normal; src: local("Neue Montreal Light"), local("NeueMontreal-Light"); }
@font-face { font-family: "PP Neue Montreal"; font-weight: 500; font-style: normal; src: local("PP Neue Montreal Medium"), local("PPNeueMontreal-Medium"); }
@font-face { font-family: "PP Neue Montreal"; font-weight: 600; font-style: italic; src: local("PP Neue Montreal SemiBold italic"), local("PPNeueMontreal-SemiBolditalic"); }
@font-face { font-family: "PP Neue Montreal"; font-weight: 700; font-style: normal; src: local("PP Neue Montreal Bold"), local("PPNeueMontreal-Bold"); }

:root {
  --paper: #F3F1EC;
  --ink: #151515;
  --stone: #77736B;
  --line: #D9D5CC;
  --accent: #BD9979;
  --night: #121212;
  --on-dark: rgba(243, 241, 236, .62);
  --on-dark-line: rgba(243, 241, 236, .16);
  --serif: "PP Neue Montreal", "Helvetica Neue", Arial, system-ui, sans-serif;   /* niente serif: tutto in PP Neue Montreal */
  --sans: "PP Neue Montreal", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.portfolio :focus-visible, .contact :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 20px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
em { font-style: italic; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo SVG: molto largo e basso, quindi si regola l'altezza */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; width: 200px; height: auto; }
.nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.nav a { font-size: 14px; text-decoration: none; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; }
.nav .nav-cta::after { display: none; }
/* Sul colore accento il testo è nero: contrasto 6.95:1 (il bianco arriverebbe a 2.6:1) */
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.menu-btn { display: none; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 104px) 0 clamp(56px, 8vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(44px, 6.8vw, 104px); line-height: 1; letter-spacing: -.015em; }
.hero h1 em { color: var(--accent); }
.hero-sub { max-width: 46ch; margin: 36px 0 40px; font-size: 18px; color: #3b3935; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: background .25s;
}
.btn:hover { background: var(--accent); color: var(--ink); }
.link-arrow { font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: var(--accent); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 40%; }
.hero-figure figcaption { margin-top: 14px; font-size: 13px; color: var(--stone); display: flex; justify-content: space-between; gap: 16px; }

/* Slideshow della hero: le foto si sovrappongono e si alternano in dissolvenza */
.slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E6E3DC; }
.slides .slide {
  position: absolute; inset: 0; height: 100%; aspect-ratio: auto;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.slides .slide.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.slides .slide.was-active { opacity: 1; transform: scale(1); z-index: 1; }   /* la foto di prima resta piena sotto quella nuova finché la dissolvenza non è finita */
.slide-brand { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.slide-brand::after { content: " →"; }
.slide-brand:hover { border-bottom-color: var(--accent); }
.slide-count { font-variant-numeric: tabular-nums; }

/* Numeri */
.facts { padding-bottom: clamp(64px, 9vw, 128px); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(16px, 3vw, 40px); }
.facts li { border-top: 1px solid var(--ink); padding-top: 18px; }
.facts strong { display: block; font: 500 clamp(32px, 3.4vw, 48px)/1 var(--sans); margin-bottom: 10px; }
.facts span { font-size: 14px; color: var(--stone); }

/* Portfolio */
.portfolio { background: var(--night); color: var(--paper); padding: clamp(72px, 10vw, 144px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.section-head > p { margin: 0; max-width: 44ch; justify-self: end; }
.portfolio .eyebrow { color: var(--on-dark); }
.portfolio .section-head > p { color: var(--on-dark); }
/* Testata senza titolo: etichetta a sinistra e testo a destra, allineati in alto */
.section-head.no-title { grid-template-columns: 1fr 2fr; align-items: start; }
.section-head.no-title > p { justify-self: start; max-width: none; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; }
/* l'etichetta è un h2 per i lettori di schermo, ma resta piccola come le altre etichette */
.section-head.no-title .eyebrow { margin: 0; font-size: 12px; line-height: 1.4; }
.brands { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--on-dark-line); }
.brand a, .brand .row {
  display: grid; grid-template-columns: 72px 1fr minmax(240px, 360px) 32px;
  gap: 24px; align-items: center;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--on-dark-line);
  text-decoration: none;
}
.brand-num { font: 400 15px/1 var(--sans); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.brand-name { font: 500 clamp(32px, 4.4vw, 60px)/1 var(--sans); transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s; }
.brand-meta { font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.brand-meta b { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 8px; }
.brand-arrow { font-size: 22px; justify-self: end; transition: transform .3s; }
.brand-thumb { display: none; }
.brand a:hover .brand-name, .brand a:focus-visible .brand-name { transform: translateX(16px); font-style: italic; color: var(--accent); }
.brand a:hover .brand-arrow { transform: translateX(4px); }
.brands-note { margin-top: 28px; font-size: 14px; color: var(--on-dark); }
.brands-note a { color: var(--paper); }
.brands-note a:hover, .all-link:hover { color: var(--accent); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 300px; aspect-ratio: 1232 / 1099; object-fit: cover;
  pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(.92);
  transition: opacity .25s, transform .25s cubic-bezier(.2,.7,.2,1);
}
.preview.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1); }

/* Servizi */
.services { padding: clamp(72px, 10vw, 144px) 0; }
.services .section-head > p { color: var(--stone); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.side { padding: 36px clamp(0px, 3vw, 48px) 0 0; }
.side + .side { padding: 36px 0 0 clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
.side-label { display: inline-block; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.side h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; font-style: italic; max-width: 20ch; margin-bottom: 36px; }
.side dl { margin: 0; }
.side dt { font-weight: 600; font-size: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.side dd { margin: 4px 0 22px; color: var(--stone); font-size: 16px; max-width: 46ch; }

/* About */
.about { padding: 0 0 clamp(72px, 10vw, 144px); }
.about .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.about-figure { margin: 0; max-width: 300px; }
.about-figure img { width: 100%; aspect-ratio: 298 / 463; object-fit: cover; }
.about-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--stone); }
.about blockquote { margin: 0 0 48px; font: 500 clamp(22px, 2.4vw, 32px)/1.25 var(--sans); }
.about blockquote::before { content: "“"; color: var(--accent); margin-left: -.42em; }
.about blockquote::after { content: "”"; color: var(--accent); }
/* Due colonne (i primi due paragrafi a sinistra, l'ultimo a destra) che diventano una sola quando manca lo spazio: niente scorrimento orizzontale */
.about-text { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.about-text p { margin: 0 0 1.1em; }
.signature { font: 500 18px/1 var(--sans); margin-top: 16px; }

/* Contatti */
.contact { background: var(--night); color: var(--paper); padding: clamp(72px, 10vw, 144px) 0; }
.contact .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 112px); }
.contact .eyebrow { color: rgba(243, 241, 236, .7); }
.contact h2 { font-size: clamp(52px, 6.6vw, 100px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.contact-sub { max-width: 40ch; margin: 28px 0 36px; color: rgba(243, 241, 236, .82); }
.mail { font: 500 clamp(20px, 2vw, 26px)/1.2 var(--sans); text-decoration: none; border-bottom: 1px solid rgba(243, 241, 236, .5); overflow-wrap: anywhere; }
.mail:hover { border-bottom-color: var(--accent); }
.socials { margin-top: 28px; display: flex; gap: 24px; font-size: 14px; }
.socials a { text-decoration: none; opacity: .8; }
.socials a:hover { opacity: 1; color: var(--accent); }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, fieldset, .consent, .form-foot { grid-column: 1 / -1; }
label, legend { font: 500 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 241, 236, .72); }
input[type=text], input[type=email], textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(243, 241, 236, .38);
  color: var(--paper); font: 400 17px/1.4 var(--sans); padding: 8px 0 10px; border-radius: 0;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 12px; }
/* "I am a…": radio button prima della parola, con sfumatura (non piatto); testo piccolo e maiuscolo come il menu, niente pillole */
.chips { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  display: inline-flex; align-items: center; gap: 11px;
  font: 500 14px/22px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 241, 236, .45);
  padding: 0; cursor: pointer; transition: color .2s;
}
.chips label::before {
  content: ""; flex: none; box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(243, 241, 236, .38);
  background: radial-gradient(circle at 34% 28%, rgba(243, 241, 236, .2), rgba(243, 241, 236, .03) 65%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 1px 0 rgba(243, 241, 236, .06);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.chips label:hover { color: var(--paper); }
.chips label:hover::before {
  border-color: var(--accent);
  background: radial-gradient(circle at 34% 28%, rgba(243, 241, 236, .28), rgba(189, 153, 121, .16) 70%);
}
/* scelta attiva: disco color sabbia con il centro crema che sfuma morbido verso il bordo */
.chips input:checked + label { color: var(--paper); }
.chips input:checked + label::before {
  border-color: #9C7B5B;
  background: radial-gradient(circle at 50% 50%, #EAE3D3 0, #EAE3D3 28%, #D6C5AB 44%, #B99877 68%, #A07F5E 100%);
  box-shadow: 0 0 6px rgba(234, 227, 211, .22), 0 1px 3px rgba(0, 0, 0, .4);
}
.chips input:focus-visible + label::before { outline: 2px solid var(--paper); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: rgba(243, 241, 236, .82); }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Invio: link di testo, non bottone */
.send { background: none; border: 0; padding: 0; font: 500 14px/22px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); cursor: pointer; transition: color .2s; }
.send::after { content: " →"; }
.send:hover, .send:focus-visible { color: var(--accent); }
.form-status { font-size: 14px; color: rgba(243, 241, 236, .82); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark); font-size: 13px; padding: 28px 0 64px; border-top: 1px solid var(--on-dark-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .contact .wrap, .about .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head.no-title { grid-template-columns: 1fr; gap: 16px; }
  .section-head > p { justify-self: start; }
  .brand a, .brand .row { grid-template-columns: 48px 1fr 24px; }
  .brand-meta { grid-column: 2 / 3; }
  .brand-arrow { grid-column: 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; background: none; border: 1px solid var(--ink); border-radius: 999px;
    padding: 8px 16px; font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer;
  }
  .nav ul {
    display: none; position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav ul.open { display: flex; }
  .nav li a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { border: 0; border-radius: 0; padding: 14px 0; }
  .nav .nav-cta:hover { background: none; color: inherit; }
  .wordmark img { width: min(200px, calc(100vw - 140px)); }
  .facts ul { gap: 0 12px; }
  .sides { grid-template-columns: 1fr; }
  .side, .side + .side { padding: 36px 0 0; border-left: 0; }
  .side + .side { border-top: 1px solid var(--line); margin-top: 16px; }
  .brand a, .brand .row { grid-template-columns: 1fr 24px; gap: 14px; }
  .brand-thumb { display: block; grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .brand-num { grid-column: 1; grid-row: 2; }
  .brand-arrow { grid-column: 2; grid-row: 2; }
  .brand-name { grid-column: 1 / -1; grid-row: 3; }
  .brand-meta { grid-column: 1 / -1; grid-row: 4; }
  form { grid-template-columns: 1fr; }
}
@media (hover: none), (pointer: coarse) { .preview { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Pagine Portfolio e Brand ===== */

.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Home: piede dell'indice brand */
.brands-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 28px; }
.brands-foot .brands-note { margin: 0; }
.all-link { font-size: 15px; font-weight: 500; color: var(--paper); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Testata di pagina */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; font-size: 13px; color: var(--stone); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(44px, 6.6vw, 100px); line-height: 1; letter-spacing: -.02em; max-width: 16ch; }
.page-hero h1 em { color: var(--accent); }
.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-top: 40px; }
.page-intro p { margin: 0; max-width: 46ch; color: #3b3935; }

/* Filtri */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-self: end; }
.filter {
  font: 400 15px/1 var(--sans); color: var(--ink); background: none; cursor: pointer;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--accent); }
.filter sup { font-size: 10px; margin-left: 3px; color: var(--stone); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: var(--on-dark); }

/* Griglia brand */
.cards {
  list-style: none; margin: 0; padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 10vw, 144px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 5vw, 72px) clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--ink);
}
.card:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.cards.filtered .card { margin-top: 0; }
.card a { display: block; text-decoration: none; }
.card-media { overflow: hidden; background: #E6E3DC; }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card a:hover .card-media img { transform: scale(1.04); }
.card-body { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: baseline; padding-top: 18px; }
.card-num { font-size: 14px; color: var(--stone); font-variant-numeric: tabular-nums; }
.card-name { font: 500 clamp(24px, 2.6vw, 34px)/1 var(--sans); }
.card a:hover .card-name, .card a:focus-visible .card-name { font-style: italic; }
.card-arrow { font-size: 20px; transition: transform .3s; }
.card a:hover .card-arrow { transform: translateX(4px); }
.card-tags { grid-column: 2 / -1; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.card-line { grid-column: 2 / -1; margin: 0; font-size: 15px; color: #3b3935; max-width: 44ch; }

/* Fascia invito */
.cta-band { background: var(--night); color: var(--paper); padding: clamp(56px, 8vw, 112px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(40px, 6vw, 88px); line-height: 1; max-width: 18ch; }
.cta-band p { margin: 16px 0 0; max-width: 44ch; color: rgba(243, 241, 236, .82); }

/* Pagina brand: una scheda chiara che si apre sopra la foto del brand */
.sheet-page { background: var(--night); }
.sheet-backdrop { position: fixed; inset: 0; z-index: 0; }
.sheet-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.sheet {
  position: relative; z-index: 1;
  margin: 12px; min-height: calc(100vh - 24px);
  background: var(--paper);
  animation: sheet-in .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(56px); } }

.sheet-bar {
  position: sticky; top: 12px; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 64px; padding: 0 clamp(16px, 3vw, 32px);
  background: var(--paper);
}
.sheet-bar .wordmark { justify-self: start; max-width: 100%; }
/* nella scheda il logo è più piccolo, così il nome del brand al centro resta il titolo */
.sheet-bar .wordmark img { height: auto; width: min(200px, 100%); }
.sheet-bar h1 { font: 500 16px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.close { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
/* Croce e "+" sono disegnate con due linee in un quadrato, così girano esattamente attorno al loro centro */
.close span, .gate-plus { position: relative; display: inline-block; font-size: 0; line-height: 0; animation: turn 3.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.close span { width: 13px; height: 13px; }
.close span::before, .close span::after, .gate-plus::before, .gate-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.close span::before { transform: rotate(45deg); }
.close span::after { transform: rotate(-45deg); }
.gate-plus::after { transform: rotate(90deg); }
@keyframes turn { 0% { transform: rotate(0); } 30%, 100% { transform: rotate(360deg); } }   /* un giro veloce, poi una breve pausa */
@media (prefers-reduced-motion: reduce) { .close span, .gate-plus { animation: none; } }

.sheet-intro { max-width: 600px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) 20px clamp(48px, 6vw, 80px); }
.sheet-tags { margin: 0 0 32px; text-align: center; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.sheet-text p { margin: 0; text-indent: 2em; }
.sheet-site { display: inline-block; margin: 20px 0 0 2em; text-underline-offset: 3px; text-decoration-color: var(--line); }
.sheet-site:hover { text-decoration-color: var(--accent); }
.sheet-facts { margin: 36px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.sheet-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet-facts dt { color: var(--stone); }
.sheet-facts dd { margin: 0; }

.gallery {
  list-style: none; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .ph { display: grid; place-items: center; aspect-ratio: 4 / 5; background: #E6E3DC; font-size: 13px; color: var(--stone); }

.sheet-end { max-width: 600px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 20px clamp(48px, 6vw, 80px); text-align: center; }
.sheet-end h2 { margin-bottom: 14px; font: 400 16px/1.4 var(--sans); }
/* Link di testo, come il menu in basso a sinistra: piccoli, maiuscoli, senza bottoni */
.sheet-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.sheet-links a, .sheet-next .next-name { font: 500 14px/22px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: color .2s, transform .45s cubic-bezier(.2,.7,.2,1); }
.sheet-links a:hover, .sheet-links a:focus-visible, .sheet-next:hover .next-name, .sheet-next:focus-visible .next-name { color: var(--accent); }
.sheet-links .dot { flex: none; width: 3.3px; height: 3.3px; border-radius: 50%; background: rgba(21, 21, 21, .3); }

.sheet-next {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px clamp(16px, 3vw, 32px); border-top: 1px solid var(--line); text-decoration: none;
}
.sheet-next small { font-size: 12px; color: var(--stone); }
.sheet-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 18px clamp(16px, 3vw, 32px) 22px; background: var(--night); font-size: 12px; color: var(--on-dark);
}
.sheet-foot a { text-decoration: none; }
.sheet-foot a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .page-intro { grid-template-columns: 1fr; }
  .filters { justify-self: start; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .sheet { margin: 8px; min-height: calc(100vh - 16px); }
  .sheet-bar { top: 8px; grid-template-columns: 1fr auto; height: 56px; }
  .sheet-bar .wordmark { display: none; }
  .sheet-bar h1 { font-size: 15px; text-align: left; }
  .gallery { grid-template-columns: 1fr; }
  .sheet-facts div { grid-template-columns: 96px 1fr; }
  .sheet-next { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
/* Lenis (scorrimento morbido) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ===== Ingresso: due metà, "I am a store" e "I am a brand" ===== */
.gate-page { display: flex; flex-direction: column; min-height: 100svh; }
.gate-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--gutter); }
.gate-title { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); text-align: right; }
/* Stesse dimensioni e stessa posizione della foto in brands/ e stores/: coppia centrata, centro della foto a metà schermo */
.gate { --gw: min(30vw, calc(64svh * 3 / 4)); position: absolute; left: 0; right: 0; top: calc(50svh - var(--gw) * 2 / 3); display: flex; justify-content: center; align-items: flex-start; gap: 8px; padding: 0 var(--gutter); pointer-events: none; }   /* il contenitore a tutta larghezza non deve coprire il menu in basso: i clic passano solo sulle foto */
.gate-side { pointer-events: auto; position: relative; display: flex; flex-direction: column; width: var(--gw); text-decoration: none; }
.gate-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #E6E3DC; }
.gate-media.slides { aspect-ratio: 3 / 4; }
.gate-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-media > img:not(.slide) { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gate-side:hover .gate-media > img:not(.slide) { transform: scale(1.03); }
.gate-side:hover .slides .slide { transform: scale(1.03); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }   /* tutte e tre le foto del brand, anche quando lo slideshow cambia con il mouse sopra */
/* Nome del brand della foto: bianco con un'ombra morbida, leggibile su foto chiare e scure */
.gate-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; display: flex; gap: 12px;
  font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 14px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35);
}
.gate-tag .slide-brand { color: inherit; border: 0; font-weight: inherit; }
.gate-tag .slide-brand::after { content: none; }
.gate-caption { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 16px; text-align: center; }
.gate-who { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.gate-what { font-size: 14px; color: var(--stone); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.gate-plus { display: none; width: 18px; height: 18px; }   /* "+" che gira: su telefono dice che il blocco è cliccabile */
.gate-what::after { content: " →"; }
.gate-side:hover .gate-what, .gate-side:focus-visible .gate-what { color: var(--ink); border-bottom-color: var(--accent); }
.gate-foot { position: relative; z-index: 6; margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 24px; padding: 22px var(--gutter) 56px; font-size: 12px; color: var(--stone); }
.gate-foot .idx-foot-left { display: flex; flex-direction: column; align-items: flex-start; font-size: 16px; }
.gate-foot button { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); cursor: pointer; line-height: 22px; text-align: left; }
.gate-foot button:hover { color: var(--accent); }
.gate-foot-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; margin-bottom: -42px; }   /* sotto la linea dei 40px: una riga a 14px dal bordo */
.gate-foot-right .idx-legal { line-height: 22px; margin-bottom: 0; }
.gate-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.idx-legal .dot, .gate-foot .dot { flex: none; width: 3.3px; height: 3.3px; border-radius: 50%; font-size: 0; background: var(--idx-dim, rgba(21, 21, 21, .3)); }   /* mini pallino al posto del punto */
.gate-foot .dot { background: var(--stone); }   /* stesso grigio dei testi */
.gate-foot a { text-decoration: none; }
.gate-foot a:hover { color: var(--ink); }
.idx-legal a { text-decoration: none; }

/* ===== Pagine brands e stores: una sola schermata fissa, stile Infinite Agency ===== */
html:has(.idx-page), .idx-page { height: 100%; overflow: hidden; }
.idx-page { position: fixed; inset: 0; width: 100%; font-size: 16px; line-height: 1.4; }

.idx-top { position: absolute; z-index: 5; top: 28px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: flex-start; }
.idx-switch { display: flex; gap: 24px; }
.idx-switch a { text-decoration: none; color: var(--idx-dim); transition: color .2s; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }   /* come il menu in basso */
.idx-switch a[aria-current="page"], .idx-switch a:hover { color: var(--ink); }

.idx-page { --idx-dim: rgba(21, 21, 21, .3); --idx-photo-top: max(76px, calc(50% - min(20vw, 32svh) - 6px)); }   /* altezza del bordo alto della foto (3:4, larga min(30vw, 48svh)), meno 6px perché la prima riga di testo parta alla stessa altezza */

/* Elenco dei nomi a sinistra: quello attivo è nero, gli altri sono tenui */
.idx-list { position: absolute; z-index: 3; top: var(--idx-photo-top); left: var(--gutter); display: flex; flex-direction: column; max-height: calc(100svh - 280px); }
.idx-item { color: var(--idx-dim); text-decoration: none; line-height: 22px; transition: color .15s; width: fit-content; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.idx-item.is-active, .idx-item:focus-visible { color: var(--ink); }
.idx-intro { position: absolute; z-index: 3; top: var(--idx-photo-top); left: var(--gutter); width: min(300px, 22vw); font-size: 14px; line-height: 1.45; }   /* pagina Stores: testo di benvenuto al posto dell'elenco */
.idx-intro p { margin: 0; }
.idx-intro-title { font-size: 16px; line-height: 22px; margin-bottom: 14px !important; }
.idx-intro-text { color: var(--stone); }
.idx-intro-cta { margin-top: 14px !important; }
.idx-intro-cta button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.idx-intro-cta button:hover { color: var(--accent); }
.idx-list[hidden] { display: none; }   /* pagina Stores: nessun elenco di nomi, solo lo slideshow */

/* Foto al centro, sempre la stessa dimensione */
.idx-stage { position: absolute; z-index: 1; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); width: min(30vw, calc(64svh * 3 / 4)); }
.idx-photo { display: block; position: relative; overflow: hidden; }
.idx-image-next { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; opacity: 0; transition: opacity .9s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.idx-image-next.on { opacity: 1; }   /* seconda foto che appare sopra la prima: dissolvenza dello slideshow */
.idx-photo[href="#"] { cursor: default; }
.idx-image { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #E6E3DC; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .idx-photo:hover .idx-image { transform: scale(1.03); } }   /* come nella homepage: la foto si ingrandisce al passaggio del mouse */
.idx-meta { position: absolute; top: 100%; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 12px; color: var(--stone); }
.idx-count { font-variant-numeric: tabular-nums; flex: none; }
.idx-now { display: none; }

/* Cosa faccio, a destra */
.idx-offer { position: absolute; z-index: 3; top: var(--idx-photo-top); right: var(--gutter); width: min(300px, 22vw); font-size: 14px; line-height: 1.45; }
.idx-offer-title { margin: 0 0 14px; font-size: 16px; line-height: 22px; }
.idx-offer dl { margin: 0; }
.idx-offer dt { font-weight: 500; margin-top: 14px; }
.idx-offer dd { margin: 2px 0 0; color: var(--stone); }
.idx-offer a { color: inherit; }

.idx-foot { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.idx-foot-left { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.idx-foot button, .idx-foot a { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; line-height: 22px; text-align: left; }
.idx-foot button:hover, .idx-foot a:hover { color: var(--accent); }
/* Voci del menu in basso: maiuscole e più marcate come l'elenco */
.idx-foot-left button { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.idx-legal { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: -42px; }   /* sotto la linea dei 40px: a 14px dal bordo, il menu resta a 56px */
.idx-legal a { color: var(--idx-dim); }
.idx-legal .idx-copy { color: var(--idx-dim); }
.idx-legal a:hover { color: var(--ink); }

/* ===== Pannelli che salgono dal basso: About Cecilie e Contact ===== */
.panel-backdrop {
  position: fixed; inset: 0; z-index: 39; background: rgba(18, 18, 18, .55);
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
/* Pannelli: salgono dal basso con una curva morbida (parte veloce e si ferma piano) e arrivano in dissolvenza;
   per chiudersi scendono con la stessa curva, un po' più in fretta */
.panel {
  position: fixed; left: 12px; right: 12px; bottom: 0; z-index: 40;
  max-height: calc(100svh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 0;
  background: var(--paper); color: var(--ink); transform: translateY(100%); opacity: 0; visibility: hidden;
  will-change: transform, opacity;
  touch-action: pan-y;
  transition: transform .7s cubic-bezier(.5, 0, .1, 1), opacity .5s ease .1s, visibility .7s;
}
.panel-dark { background: var(--night); color: var(--paper); }
.panel-open .panel-backdrop { opacity: 1; visibility: visible; }
/* in apertura è subito visibile, così il focus può andare su "Close" */
.panel.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .95s cubic-bezier(.16, 1, .3, 1), opacity .45s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .panel, .panel.is-open, .panel-backdrop { transition-duration: .01s; transition-delay: 0s; }
}
.panel-bar {
  position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 clamp(16px, 3vw, 32px); background: inherit;
}
.panel-bar h2 { grid-column: 2; font: 500 16px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.panel-bar .close { grid-column: 3; }
.panel-dark .close { color: var(--paper); }
button.close { background: none; border: 0; padding: 0; color: var(--ink); font-family: var(--sans); cursor: pointer; }
.panel-dark button.close { color: var(--paper); }

.about-body {
  display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: start;
  max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3vw, 40px) clamp(16px, 5vw, 72px) clamp(24px, 3vw, 40px);
}
.panel .about-figure { max-width: 220px; }
.panel .about-text { font-size: 15px; }
.panel blockquote { margin: 0 0 28px; font: 400 clamp(22px, 2.4vw, 30px)/1.25 var(--sans); letter-spacing: -.005em; }
.panel blockquote::before { content: "“"; }
.panel blockquote::after { content: "”"; }
.panel .signature { font: 400 15px/1 var(--sans); margin-top: 8px; color: var(--stone); }
@media (min-width: 961px) { .panel .signature { text-align: right; } }   /* su desktop la firma chiude il testo, a destra */
.panel .facts { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px) clamp(28px, 3vw, 44px); }
.panel .facts-inline { display: none; }   /* sul telefono i numeri vengono prima del testo di Cecilie, non dopo */
@media (max-width: 960px) {
  .panel .facts-inline { display: block; max-width: none; margin: 0 0 28px; padding: 0; }
  .panel .facts-end { display: none; }
}
.panel .facts strong { font: 400 clamp(26px, 3vw, 38px)/1 var(--sans); margin-bottom: 6px; }
.offer-body { max-width: 640px; margin: 0 auto; padding: 8px clamp(16px, 5vw, 72px) 40px; }   /* pannello "What I do": le due descrizioni, per gli store e per i brand */
.about-offer + .about-offer { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }   /* linea leggera tra le due descrizioni */
.about-offer .idx-offer-title { margin: 0 0 4px; font-size: 16px; line-height: 22px; }
.idx-offer-btn { display: none; }   /* serve solo dove il blocco a destra non c'è */
.about-offer { font-size: 15px; line-height: 1.45; }
.about-offer dl { margin: 0; }
.about-offer dt { font-weight: 500; margin-top: 0; padding-top: 14px; }
.about-offer dd { margin: 2px 0 0; color: var(--stone); }   /* come "What I do" sul computer: titolo scuro, testo grigio, niente rientro */

.contact-body {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px);
  max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3vw, 40px) clamp(16px, 5vw, 72px) clamp(32px, 4vw, 56px);
}
.contact-body .contact-sub { margin: 0 0 28px; font-size: 18px; max-width: 34ch; color: rgba(243, 241, 236, .82); }
.contact-body .mail { font: 400 18px/1.3 var(--sans); }

@media (max-width: 960px) {
  .about-body, .contact-body { grid-template-columns: 1fr; }
  .panel .about-figure { max-width: 160px; }
}
@media (max-width: 900px) {
  .idx-offer { display: none; }
  .idx-foot .idx-offer-btn { display: block; }
}
@media (max-width: 760px) {
  /* Foto una sopra l'altra, abbastanza piccole da stare insieme nello schermo; il testo sta al centro della foto */
  /* Le due foto occupano tutto lo schermo, una sopra l'altra, senza spazio in mezzo; logo e menu in bianco sopra le foto */
  .gate-page { display: block; height: 100svh; min-height: 0; overflow: hidden; }
  .gate { position: absolute; inset: 0; flex-direction: column; align-items: stretch; justify-content: stretch; gap: 0; padding: 0; }
  .gate-side { width: 100%; flex: 1 1 0; min-height: 0; }
  .gate-media, .gate-media.slides { flex: 1; aspect-ratio: auto; min-height: 0; }
  /* Le foto passano dietro logo e menu (in bianco); una linea sottile li separa dalle foto */
  .gate-bar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; justify-content: center; padding: 24px var(--gutter) 22px; border-bottom: 1px solid rgba(255, 255, 255, .85); }
  .gate-bar .wordmark img { filter: invert(1) brightness(2); }
  .gate-title { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 14px var(--gutter) 0; text-align: center; color: #fff; font-size: 11px; font-weight: 300; text-shadow: 0 0 12px rgba(0, 0, 0, .5); }   /* sotto la linea, come Brands / Stores nelle pagine interne */
  .gate-where { display: none; }
  @media (max-width: 340px) { .gate-title { font-size: 10px; letter-spacing: .1em; } }
  .gate-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(18, 18, 18, .34); }
  .gate-caption {
    position: absolute; inset: 0; z-index: 2; justify-content: center; padding: 0 12px;
    color: #fff; text-shadow: 0 0 16px rgba(0, 0, 0, .45);
  }
  .gate-who, .gate-what { color: #fff; }
  /* I due testi si avvicinano alla linea di mezzo tra le foto: "store" in basso nella prima, "brand" in alto nella seconda */
  .gate-side:first-child .gate-caption { justify-content: flex-end; padding-bottom: 16px; }
  .gate-side:last-child .gate-caption { justify-content: flex-start; padding-top: 22px; }
  .gate-plus { display: block; margin-top: 8px; color: #fff; }
  .gate-tag { z-index: 2; top: 16px; bottom: auto; left: 0; right: 0; justify-content: center; }   /* nome del brand in alto al centro della stessa foto */
  .gate-foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; margin-top: 0; padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .85); }
  .gate-foot button { color: #fff; text-shadow: 0 0 12px rgba(0, 0, 0, .5); }
  .gate-foot-right { display: none; }
  .gate-foot .idx-foot-left { flex-direction: row; gap: 8px 16px; width: 100%; justify-content: space-between; }
  .gate-foot .idx-offer-btn { display: block; }
  .gate-foot button { white-space: nowrap; }
  @media (max-width: 340px) { .gate-foot .idx-foot-left { gap: 8px 10px; } .gate-foot button { font-size: 13px; letter-spacing: .06em; } }

  /* Brands e stores su mobile: foto a tutto schermo che cambia da sola, con il nome al centro in bianco */
  .idx-page { color: #fff; }
  .idx-page { touch-action: none; overscroll-behavior: none; }   /* niente scroll della pagina: lo swipe cambia brand */
  .idx-page .wordmark img { filter: invert(1) brightness(2); }
  /* Logo in alto, poi la linea sottile (alla stessa altezza della homepage), poi Brands / Stores sotto la linea */
  .idx-top { top: 0; left: 0; right: 0; padding: 0; flex-direction: column; align-items: center; gap: 0; }
  .idx-top .wordmark { padding: 24px var(--gutter) 22px; }
  .idx-switch { justify-content: center; width: 100%; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .85); }
  .idx-switch a { color: rgba(255, 255, 255, .6); text-shadow: 0 0 12px rgba(0, 0, 0, .4); }
  .idx-switch a[aria-current="page"], .idx-switch a:hover { color: #fff; }
  .idx-stage { inset: 0; top: 0; left: 0; width: auto; transform: none; }
  .idx-stage::after { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, .3); pointer-events: none; }   /* il velo scuro non deve bloccare il tocco: tutta la foto porta al brand */
  .idx-photo { height: 100%; }
  .idx-image { width: 100%; height: 100%; aspect-ratio: auto; }
  .idx-list, .idx-legal { display: none; }
  .idx-intro { z-index: 4; top: 50%; left: 0; right: 0; width: auto; transform: translateY(-50%); padding: 0 calc(var(--gutter) + 8px); text-align: center; color: #fff; text-shadow: 0 0 16px rgba(0, 0, 0, .5); pointer-events: none; }   /* sul telefono il testo sta al centro della foto, come i nomi dei brand */
  .idx-intro-title { font-size: 20px; line-height: 1.25; }
  .idx-intro-text { color: rgba(255, 255, 255, .85); font-size: 14px; }
  .idx-intro-cta { margin-top: 18px !important; }
  .idx-intro-cta button { color: #fff; pointer-events: auto; text-align: center; }   /* il resto del testo non cattura il tocco, il pulsante sì */
  /* Città e paese (o le info del brand) sotto il nome, al centro, in bianco; il contatore non serve */
  .idx-meta { display: block; z-index: 4; top: calc(50% + 22px); padding: 0 var(--gutter); text-align: center; color: rgba(255, 255, 255, .85); font-size: 14px; text-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
  .idx-count { display: none; }
  .idx-plus { display: block; position: absolute; z-index: 4; left: 50%; top: calc(50% + 78px); margin: -9px 0 0 -9px; color: #fff; pointer-events: none; }   /* "+" che gira sotto il nome: tutta la foto è cliccabile */
  .idx-now { display: block; position: absolute; z-index: 4; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: #fff; text-decoration: none; font-size: 20px; text-shadow: 0 0 16px rgba(0, 0, 0, .5); }
  .idx-foot { left: 0; right: 0; bottom: 0; padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom)); justify-content: center; border-top: 1px solid rgba(255, 255, 255, .85); }
  .idx-foot-left { flex-direction: row; gap: 8px 16px; width: 100%; justify-content: space-between; }
  .idx-foot button { white-space: nowrap; }
  .idx-foot button, .idx-foot a { color: #fff; text-shadow: 0 0 12px rgba(0, 0, 0, .5); }
  .panel { left: 8px; right: 8px; max-height: calc(100svh - 16px); }
  .panel-bar { grid-template-columns: 1fr auto; height: 56px; }
  .panel-bar h2 { grid-column: 1; }
  .panel-bar .close { grid-column: 2; }
}

/* ===== Privacy policy: pagina di testo, in sans piccolo, a scorrimento ===== */
.legal-top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter) 16px; background: var(--paper);
}
.legal-body { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 120px; font-size: 15px; line-height: 1.6; }
.legal-body h1 { margin: 0 0 32px; font: 500 16px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.legal-body h2 { margin: 56px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 14px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.legal-body h3 { margin: 32px 0 8px; font: 500 16px/1.4 var(--sans); }
.legal-body h4 { margin: 22px 0 6px; font: 500 15px/1.4 var(--sans); color: var(--stone); }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { text-underline-offset: 3px; text-decoration-color: var(--idx-dim, rgba(21, 21, 21, .3)); }
.legal-body a:hover { text-decoration-color: var(--accent); }
.legal-source { margin-top: 56px; font-size: 12px; color: var(--stone); }
@media (max-width: 760px) {
  .legal-top { padding-top: 20px; }
  .legal-body { padding-top: 32px; }
}

/* ===== Gallery: foto di Instagram, ognuna porta al suo post ===== */
.gallery-body { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.gallery-intro { margin: 0 0 20px; font-size: 14px; color: var(--stone); }
.gallery-intro a { color: var(--ink); }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { position: relative; display: block; background: #E6E3DC; }
.ig-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .25s; }
.ig-grid a:hover img { opacity: .82; }
.ig-tag { position: absolute; left: 8px; bottom: 8px; font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.gallery-all { margin: 20px 0 0; font-size: 14px; }
.gallery-all a { color: var(--ink); text-underline-offset: 3px; }
.gallery-all a:hover, .gallery-intro a:hover { color: var(--accent); }
@media (max-width: 960px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .idx-foot-left { gap: 22px; }
}

/* Crediti: "Designed by" normale, solo il nome in maiuscolo; l'hover è quello degli altri link (nero) */
.credit-name { text-transform: uppercase; letter-spacing: .08em; }   /* solo la parola Doppiostudio in maiuscolo */
