/* tivi atelier — bianco, nero, spazio. Le borse sono l'unico colore della pagina. */
:root {
  --fondo: #f3eee6;
  --tenue: #e9e2d6;
  --inchiostro: #211d19;
  --grigio: #8a8074;
  --riga: #ddd5c8;
  --espresso: #2a241f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --lato: 20px;
  --alto: env(safe-area-inset-top, 0px);
  --basso: env(safe-area-inset-bottom, 0px);
  --carta: var(--fondo); --carta-2: var(--tenue); --foglio: var(--fondo); --filo: var(--inchiostro); --verde: var(--inchiostro);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); }
body { color: var(--inchiostro); font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.6; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
#app { min-height: 100vh; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pezzo .nome, .pezzo .n, .etichetta h2, .gruppo, .campo span, .bottone, .vicina small, .stato, .tutte { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 400; }

/* ---------- testata ---------- */
.testata {
  position: sticky; min-height: 70px; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--alto) + 16px) var(--lato) 16px;
  background: rgba(243, 238, 230, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.marchio { grid-column: 2; text-decoration: none; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.lingue { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 2px; }
.lingue button { background: none; border: 0; padding: 6px 5px; color: var(--grigio); font-size: 10.5px; letter-spacing: .14em; }
.lingue button[aria-pressed="true"] { color: var(--inchiostro); }
.chiave { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; color: var(--grigio); }
.chiave svg { width: 14px; height: 14px; stroke-width: 1.3; }
.testata .pillola { grid-column: 3; justify-self: end; }

/* ---------- apertura ---------- */
.apertura { padding: 28px var(--lato) 8px; text-align: center; }
.apertura p { margin: 0; color: var(--grigio); font-size: 12.5px; letter-spacing: .04em; }

/* ---------- filtro ---------- */
.filtro { display: flex; justify-content: center; gap: 26px; padding: 22px var(--lato) 26px; }
.filtro button { background: none; border: 0; padding: 4px 0; color: var(--grigio); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.filtro button[aria-pressed="true"] { color: var(--inchiostro); box-shadow: inset 0 -1px 0 var(--inchiostro); }
.filtro .conta { display: none; }

/* ---------- collezione ---------- */
.collezione { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 6px; align-items: start; padding: 0 12px 64px; }
.pezzo { display: block; text-decoration: none; }

.pezzo .foto { position: relative; overflow: hidden; background: var(--tenue); aspect-ratio: 1; }
.pezzo .foto img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.pezzo .foto img.ok { opacity: 1; }
.pezzo .riga { display: flex; flex-direction: column; gap: 1px; padding: 8px 2px 0; }
.pezzo .nome { font-size: 9.5px; letter-spacing: .14em; }
.pezzo .n { color: var(--grigio); font-size: 8.5px; }
.pezzo.fuori .foto img.ok { opacity: .55; }

.timbro, .novita { position: absolute; left: 6px; top: 6px; padding: 4px 6px; background: var(--fondo); color: var(--inchiostro); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.timbro.grande { top: calc(var(--alto) + 70px); left: 14px; }

/* ---------- piede ---------- */
.punto { display: none; }
.piede { background: var(--espresso); color: #efe8dd; padding: 44px var(--lato) calc(44px + var(--basso)); text-align: center; }
.piede h2 { margin: 0 0 22px; font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.piede p:empty { display: none; }
.contatti { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.firma { margin-top: 44px; display: flex; justify-content: center; gap: 22px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); }
.firma a { color: #a89d8f; text-decoration: none; }
.piede .firma { color: #a89d8f; }
.piede .bottone { background: #efe8dd; color: var(--espresso); border-color: #efe8dd; }
.piede .bottone.chiaro { background: transparent; color: #efe8dd; border-color: #6b6158; }

/* ---------- bottoni ---------- */
.bottone { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid var(--inchiostro); border-radius: 0; background: var(--inchiostro); color: #fff; text-decoration: none; transition: opacity .2s; }
.bottone:active { opacity: .8; }
.bottone.chiaro { background: transparent; color: var(--inchiostro); }
.bottone.filo { background: var(--inchiostro); color: #fff; }
.bottone[disabled] { opacity: .35; pointer-events: none; }
.bottone svg { width: 16px; height: 16px; flex: none; }

/* ---------- scheda ---------- */
.scheda { padding-bottom: calc(96px + var(--basso)); }
.galleria { position: relative; }
.scorri { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--tenue); }
.scorri::-webkit-scrollbar { display: none; }
.scorri img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.puntini { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.puntini i { width: 14px; height: 1px; background: rgba(17, 17, 17, .25); }
.puntini i.su { background: var(--inchiostro); }
.indietro { position: fixed; top: calc(var(--alto) + 10px); left: 10px; z-index: 25; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(243,238,230,.92); color: var(--inchiostro); text-decoration: none; border-radius: 50%; }
.indietro svg { width: 18px; height: 18px; stroke-width: 1.3; }
.miniature { display: none; }

.titolo { position: relative; padding: 28px var(--lato) 0; text-align: center; }
.titolo .n { display: none; }
.titolo h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: .04em; }
.titolo .sotto { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-top: 10px; }
.titolo .prezzo { font-size: 14px; font-weight: 400; letter-spacing: .04em; }
.vecchio { color: var(--grigio); font-size: 13px; }
.stato { color: var(--grigio); font-size: 10px; }
.condividi { position: absolute; right: var(--lato); top: 28px; width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; color: var(--grigio); }
.condividi svg { width: 16px; height: 16px; stroke-width: 1.3; }
.descr { padding: 22px var(--lato) 0; margin: 0 auto; max-width: 34em; text-align: center; font-size: 14px; line-height: 1.7; white-space: pre-line; }

.etichetta { margin: 30px var(--lato) 0; }
.etichetta h2 { margin: 0 0 6px; color: var(--grigio); font-size: 10px; }
.etichetta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--riga); }
.etichetta dt, .etichetta dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--riga); font-size: 13px; }
.etichetta dt { color: var(--grigio); padding-right: 20px; }
.etichetta dd { text-align: right; }

.vicine { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 40px var(--lato) 0; }
.vicina { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.vicina.suc { flex-direction: row-reverse; text-align: right; }
.vicina img { width: 40px; height: 52px; object-fit: cover; flex: none; }
.vicina span { min-width: 0; font-family: var(--serif); font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vicina small { display: block; font-family: var(--sans); color: var(--grigio); font-size: 9.5px; }
.tutte { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 34px var(--lato) 0; color: var(--grigio); text-decoration: none; }
.tutte svg { width: 13px; height: 13px; }

.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px var(--lato) calc(10px + var(--basso)); background: rgba(243,238,230,.96); border-top: 1px solid var(--riga); }
.barra .bottone { flex: 1; }
.barra .tondo { flex: 0 0 50px; padding: 0; }

/* ---------- foglio dal basso ---------- */
.velo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .3); display: flex; align-items: flex-end; animation: velo .2s both; }
@keyframes velo { from { background: rgba(0, 0, 0, 0); } }
.foglio { width: 100%; max-height: 92vh; overflow-y: auto; background: var(--fondo); padding: 14px var(--lato) calc(24px + var(--basso)); animation: foglio .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes foglio { from { transform: translateY(100%); } }
.foglio .maniglia { width: 32px; height: 2px; background: var(--riga); margin: 0 auto 22px; }
.foglio h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: .02em; }
.foglio h2 em { font-style: normal; }
.foglio .nota { margin: 0 0 22px; color: var(--grigio); font-size: 13px; }
.campo { display: block; margin-bottom: 16px; }
.campo span { display: block; margin-bottom: 6px; color: var(--grigio); font-size: 10px; }
.campo input, .campo textarea, .campo select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--riga); border-radius: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 300; color: var(--inchiostro); outline: none; appearance: none; }
.campo textarea { min-height: 70px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-bottom-color: var(--inchiostro); }
.fatto { text-align: center; padding: 16px 0 6px; }
.fatto .segno { width: 44px; height: 44px; margin: 0 auto 18px; }
.errore { margin: 0 0 12px; font-size: 13px; }

/* ---------- foto a tutto schermo ---------- */
.lente { position: fixed; inset: 0; z-index: 80; background: var(--fondo); }
.lente-scorri { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lente-scorri::-webkit-scrollbar { display: none; }
.lastra { flex: 0 0 100%; height: 100%; scroll-snap-align: center; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.lastra img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lastra.zoom { overflow: auto; place-items: start; cursor: zoom-out; }
.lastra.zoom img { max-width: none; max-height: none; width: 250%; }
.chiudi-lente { position: absolute; top: calc(var(--alto) + 10px); right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; }
.chiudi-lente svg { width: 20px; height: 20px; stroke-width: 1.2; }
.lente-indice { position: absolute; left: 0; right: 0; bottom: calc(var(--basso) + 20px); text-align: center; color: var(--grigio); font-size: 11px; letter-spacing: .16em; }

/* ---------- area riservata ---------- */
.atelier { padding: 0 var(--lato) calc(40px + var(--basso)); }
.atelier .testa { display: flex; align-items: flex-end; justify-content: space-between; padding: 22px 0 16px; }
.atelier h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .02em; line-height: 1.1; }
.atelier h1 em { font-style: normal; }
.schede { display: flex; gap: 24px; border-bottom: 1px solid var(--riga); margin-bottom: 18px; }
.schede button { background: none; border: 0; padding: 10px 0; color: var(--grigio); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.schede button[aria-pressed="true"] { color: var(--inchiostro); box-shadow: inset 0 -1px 0 var(--inchiostro); }
.pallino { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 6px; border-radius: 99px; background: var(--inchiostro); color: #fff; font-size: 10px; letter-spacing: 0; }
.elenco { display: grid; }
.voce { display: flex; align-items: center; gap: 14px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--riga); background: none; width: 100%; text-align: left; text-decoration: none; }
.voce img, .voce .vuota { width: 52px; height: 66px; object-fit: cover; flex: none; background: var(--tenue); }
.voce .testo { flex: 1; min-width: 0; }
.voce .nome { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.voce .info { display: flex; gap: 10px; align-items: center; margin-top: 2px; color: var(--grigio); font-size: 12px; }
.voce .freccia { color: var(--riga); }
.aggiungi { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-bottom: 8px; border: 1px solid var(--inchiostro); background: none; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.visite { display: inline-flex; align-items: center; gap: 4px; }
.visite svg { width: 13px; height: 13px; }

.prenot { padding: 16px 0; border-bottom: 1px solid var(--riga); }
.prenot.nuova .chi::after { content: " ●"; font-size: 9px; vertical-align: middle; }
.prenot.chiusa { opacity: .5; }
.prenot .capo { display: flex; gap: 12px; align-items: center; }
.prenot .capo img { width: 40px; height: 52px; object-fit: cover; }
.prenot .chi { font-size: 15px; font-weight: 400; }
.prenot .cosa { font-size: 12px; color: var(--grigio); }
.prenot .msg { margin: 10px 0 0; font-size: 14px; white-space: pre-line; }
.prenot .azioni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pillola { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--riga); background: none; text-decoration: none; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.pillola.scura { background: var(--inchiostro); color: #fff; border-color: var(--inchiostro); }
.pillola.rossa { color: #a33; }

.editor .riquadri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.riquadro { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tenue); }
.riquadro img { width: 100%; height: 100%; object-fit: cover; }
.riquadro.primo { grid-column: span 2; grid-row: span 2; }
.riquadro .etic { position: absolute; left: 8px; top: 8px; background: #fff; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; }
.riquadro .comandi { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 6px; }
.riquadro .comandi button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 13px; }
.riquadro.nuovo { display: grid; place-items: center; border: 1px dashed var(--grigio); background: none; color: var(--grigio); text-align: center; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.riquadro.nuovo input { position: absolute; inset: 0; opacity: 0; }
.riquadro.carica::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); animation: pulsa 1s ease-in-out infinite alternate; }
@keyframes pulsa { to { background: rgba(255,255,255,.2); } }
.suggerimento { margin: 0 0 22px; color: var(--grigio); font-size: 12px; }
.gruppo { margin: 26px 0 12px; color: var(--grigio); font-size: 10px; }
.segmenti { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--riga); margin-bottom: 16px; }
.segmenti button { border: 0; border-right: 1px solid var(--riga); background: none; padding: 11px 2px; color: var(--grigio); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.segmenti button:last-child { border-right: 0; }
.segmenti button[aria-pressed="true"] { background: var(--inchiostro); color: #fff; }
.due { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.salva { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 calc(14px + var(--basso)); background: linear-gradient(rgba(243,238,230,0), var(--fondo) 30%); }
.salva .bottone { flex: 1; }
.avviso { margin: 18px 0; padding: 14px; background: var(--tenue); font-size: 13px; }
.avviso b { font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--basso)); transform: translateX(-50%); z-index: 90; padding: 11px 18px; background: var(--inchiostro); color: #fff; font-size: 12px; letter-spacing: .06em; white-space: nowrap; animation: toast 2.6s both; }
@keyframes toast { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }

.entra { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; max-width: 380px; margin: 0 auto; padding: 0 var(--lato); }
.entra h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: .02em; }
.entra h1 em { font-style: normal; }
.entra p { margin: 0 0 28px; color: var(--grigio); font-size: 13px; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (min-width: 760px) {
  :root { --lato: 40px; }
  .collezione { grid-template-columns: repeat(4, 1fr); gap: 48px 16px; padding: 0 40px 90px; max-width: 1300px; margin: 0 auto; }
  .pezzo .nome { font-size: 10.5px; }
  .marchio { font-size: 40px; }
  
  .scheda { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 64px; max-width: 1300px; margin: 0 auto; padding: 20px 40px 80px; align-items: start; }
  .scheda .galleria { grid-column: 1; }
  .scheda .destra { grid-column: 2; position: sticky; top: 100px; }
  .scheda .barra { position: static; background: none; border: 0; padding: 32px 0 0; }
  .titolo, .descr { text-align: left; padding-left: 0; padding-right: 0; }
  .titolo .sotto { justify-content: flex-start; }
  .etichetta, .vicine, .tutte { margin-left: 0; margin-right: 0; }
  .indietro { position: absolute; }
  .atelier, .entra { max-width: 620px; margin: 0 auto; }
  .velo { align-items: center; justify-content: center; }
  .foglio { max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* foto nuove: due vie, scatta o galleria */
.riquadro.nuovo { display: grid; grid-template-rows: 1fr 1fr; place-items: stretch; padding: 0; }
.riquadro.nuovo button, .riquadro.nuovo label { position: relative; display: grid; place-items: center; border: 0; background: none; color: var(--inchiostro); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.riquadro.nuovo button { border-bottom: 1px dashed var(--grigio); }
/* ritaglio quadrato */
.taglio, .camera { position: fixed; inset: 0; z-index: 95; background: #14110f; color: #efe8dd; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: calc(var(--alto) + 10px) 0 calc(var(--basso) + 20px); }
.taglio-testa { position: absolute; top: calc(var(--alto) + 8px); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a89d8f; }
.taglio-testa button { background: none; border: 0; color: #efe8dd; padding: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.taglio-area, .camera-quadro { position: relative; width: 100vw; max-width: 600px; aspect-ratio: 1; margin: 0 auto; overflow: hidden; touch-action: none; }
.taglio-area canvas { width: 100%; height: 100%; display: block; }
.taglio-griglia { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.28) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.28) 0 calc(66.66% + .5px), transparent 0),
              linear-gradient(transparent calc(33.33% - .5px), rgba(255,255,255,.28) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.28) 0 calc(66.66% + .5px), transparent 0); }
.taglio input[type=range] { width: min(70vw, 360px); margin: 0 auto; accent-color: #efe8dd; }
.camera-quadro video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-comandi { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; }
.camera-comandi button[data-a] { justify-self: start; background: none; border: 0; color: #efe8dd; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.otturatore { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #efe8dd; background: #efe8dd; box-shadow: inset 0 0 0 4px #14110f; }
.otturatore:active { transform: scale(.94); }

/* ===== il marchio ===== */
.testata { grid-template-columns: 60px 1fr 60px; }
.testata .marchio { grid-column: 2; justify-self: center; font-size: 26px; transition: opacity .35s, transform .35s; }
.testata .lingue { grid-column: 3; }
.testata.in-casa .marchio { opacity: 0; transform: translateY(6px); pointer-events: none; }
body.oltre .testata.in-casa .marchio { opacity: 1; transform: none; pointer-events: auto; }
.su-indietro { grid-column: 1; justify-self: start; width: 36px; height: 36px; display: grid; place-items: center; margin-left: -8px; color: var(--inchiostro); }
.su-indietro svg { width: 20px; height: 20px; stroke-width: 1.2; }
.testatona { text-align: center; padding: 8px var(--lato) 34px; }
.monogramma { display: inline-grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--inchiostro); border-radius: 50%; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; padding-top: 3px; }
.marchio-grande { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 16vw, 104px); line-height: .95; letter-spacing: .04em; }
.motto { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; max-width: 520px; color: var(--grigio); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.motto::before, .motto::after { content: ""; flex: 1; max-width: 48px; height: 1px; background: var(--riga); }
.filtro { border-top: 1px solid var(--riga); padding-top: 20px; margin: 0 var(--lato); }
.marchio-piede { font-family: var(--serif); font-size: 44px; letter-spacing: .04em; line-height: 1; margin-bottom: 34px; color: #efe8dd; }
.indietro { display: none; }
.timbro.grande { top: 14px; }
@media (min-width: 760px) { .testatona { padding: 30px 40px 50px; } .monogramma { width: 64px; height: 64px; font-size: 36px; } }

/* ===== stile, terzo passo ===== */
/* il marchio entra piano, una volta sola */
.marchio-grande { animation: entra 1.6s cubic-bezier(.2,.7,.2,1) both; }
.monogramma { animation: appare 1.2s ease both; }
.motto { animation: appare 1.4s .5s ease both; }
@keyframes entra { from { opacity: 0; letter-spacing: .14em; } }
@keyframes appare { from { opacity: 0; } }
.marchio-grande { font-weight: 300; font-size: clamp(56px, 17vw, 120px); }
.monogramma { position: relative; }
.monogramma::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--riga); border-radius: 50%; }

/* la copertina: l'ultima nata, come nella prima pagina di un catalogo */
.copertina { display: block; margin: 0 var(--lato) 56px; text-decoration: none; }
.copertina-foto { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tenue); }
.copertina-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.copertina:active .copertina-foto img, .copertina:hover .copertina-foto img { transform: scale(1.03); }
.copertina-foto::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(243,238,230,.65); pointer-events: none; }
.copertina-testo { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 16px 2px 0; border-bottom: 1px solid var(--riga); padding-bottom: 16px; }
.copertina-testo small { grid-column: 1 / -1; color: var(--grigio); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; }
.copertina-testo strong { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: .03em; }
.copertina-testo span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* titolo della collezione */
.capitolo { text-align: center; padding: 0 var(--lato) 4px; }
.capitolo h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 30px; letter-spacing: .02em; }
.capitolo span { display: block; margin-top: 4px; color: var(--grigio); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; }
.filtro { border-top: 0; margin-top: 6px; }

/* frase a meta' vetrina */
.frase { grid-column: 1 / -1; margin: 24px 0; padding: 38px 16px; text-align: center; border-top: 1px solid var(--riga); border-bottom: 1px solid var(--riga); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; letter-spacing: .01em; }

/* griglia: respiro e tocco */
.collezione { gap: 30px 8px; padding: 6px 14px 72px; }
.pezzo .foto img { transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pezzo:hover .foto img.ok { transform: scale(1.04); }
.pezzo .riga { padding-top: 10px; }

/* scheda */
.titolo .n { display: block; margin-bottom: 10px; color: var(--grigio); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; }
.titolo h1 { font-weight: 300; font-size: 48px; letter-spacing: .04em; }
.titolo .sotto { margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--riga); margin-left: var(--lato); margin-right: var(--lato); }
.titolo { padding-left: 0; padding-right: 0; }
.titolo .sotto { margin-left: 0; margin-right: 0; }
.scheda .destra { padding: 0 var(--lato); }
.scheda .titolo, .scheda .descr, .scheda .etichetta, .scheda .vicine, .scheda .tutte { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.descr { font-family: var(--serif); font-size: 19px; line-height: 1.55; font-weight: 400; }
.scorri::after { content: none; }
.galleria::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(243,238,230,.6); pointer-events: none; }

@media (min-width: 760px) {
  .copertina { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; max-width: 1200px; margin: 0 auto 90px; padding: 0 40px; }
  .copertina-testo { border: 0; padding: 0 0 20px; }
  .copertina-testo strong { font-size: 64px; }
  .frase { font-size: 32px; padding: 60px 16px; }
  .scheda .destra { padding: 0; }
}

/* l'ultima nata, piu' raccolta: foto e testo affiancati */
.copertina { display: grid; grid-template-columns: 52% 1fr; gap: 18px; align-items: end; margin-bottom: 48px; }
.copertina-testo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 0 4px; border: 0; }
.copertina-testo strong { font-size: 32px; }
.copertina-testo span { margin-top: 8px; border-bottom: 1px solid var(--inchiostro); padding-bottom: 2px; }
.copertina-foto::after { inset: 6px; }
@media (min-width: 760px) {
  .copertina { grid-template-columns: 420px 1fr; max-width: 900px; gap: 48px; }
  .copertina-testo strong { font-size: 52px; }
}
