/* Le Fantasie di Lory — v3. Telefono prima di tutto, caratteri comodi, movimento all'ingresso. */
:root {
  --notte: #222b56;
  --notte-2: #2d3770;
  --smalto: #f4f5f2;
  --smalto-2: #e7e8e2;
  --inchiostro: #1a1f3d;
  --tenue: #4d526d;
  --chiaro-tenue: #cdd1e8;
  --oro: #e6be1a;
  --oro-2: #f2cf45;
  --wa: #25d366;        /* verde WhatsApp ufficiale */
  --wa-2: #3ddc7a;
  --wa-ink: #0b2e1f;    /* testo scuro: sul verde chiaro il bianco non si legge */
  --lava: #3d3f46;
  --m: 20px;
  --alto: 76px;
  /* gerarchia: cinque passi, sempre gli stessi */
  --t-display: clamp(2.875rem, 13.4vw, 6rem);
  --t-titolo: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --t-sotto: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  --t-body: 1.125rem;
  --t-small: .9375rem;
  --uscita: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--oro) var(--notte); }
body {
  background: var(--smalto); color: var(--inchiostro);
  font: 400 var(--t-body)/1.6 "Sentient", "Iowan Old Style", Palatino, Georgia, serif;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--oro); color: var(--notte); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
h1, h2, h3 { font-weight: 300; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: var(--t-titolo); }
h3 { font-size: var(--t-sotto); }
p { text-wrap: pretty; }
.lead { font-size: var(--t-sotto); font-weight: 300; font-style: italic; line-height: 1.35; }
section[id] { scroll-margin-top: var(--alto); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.solo-lettori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salta { position: fixed; left: var(--m); top: -80px; z-index: 60; background: var(--oro); color: var(--notte); padding: 12px 16px; }
.salta:focus { top: 8px; }

/* bottoni: una sola forma, a pillola */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 56px; padding: 12px 26px; border-radius: 999px; border: 0;
  font-size: 1.0625rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--uscita), background-color .25s;
}
.bottone:active { transform: scale(.97); }
.oro { background: var(--oro); color: var(--notte); }
.oro:hover { background: var(--oro-2); }
.verde { background: var(--wa); color: var(--wa-ink); }
.verde:hover { background: var(--wa-2); }
.vuoto { background: var(--smalto-2); color: var(--inchiostro); }
.vuoto:hover { background: #d9dbd2; }

/* ---------- ingresso: il logo si scrive, poi il sipario sale ---------- */
.ingresso { display: none; }
.con-ingresso .ingresso {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--notte);
  animation: sipario .9s cubic-bezier(.7, 0, .2, 1) 1.5s forwards;
}
.ingresso img { width: min(74vw, 520px); height: auto; clip-path: inset(0 100% 0 0); animation: scrivi 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.ingresso::after {
  content: ""; position: absolute; left: 50%; bottom: 18%; width: 64px; height: 2px; margin-left: -32px; background: var(--oro);
  transform: scaleX(0); animation: riga 1.5s var(--uscita) .2s forwards;
}
@keyframes scrivi { to { clip-path: inset(0 0 0 0); } }
@keyframes riga { to { transform: scaleX(1); } }
@keyframes sipario { to { transform: translateY(-100%); visibility: hidden; } }
:root { --dopo: .15s; }
html.con-ingresso { --dopo: 1.8s; }

/* testata */
.testata {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--alto);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--m); background: var(--notte); color: var(--smalto);
}
.marchio { display: block; height: 62px; }
.marchio img { height: 100%; width: auto; }
.menu { display: none; }
.tasto-preferiti { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px 0 10px; color: var(--smalto); font-size: 1rem; }
.tasto-preferiti b { min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--oro); color: var(--notte); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.tasto-preferiti.batte svg { animation: batte .5s var(--uscita); }
@keyframes batte { 40% { transform: scale(1.35); } }

/* ---------- apertura ---------- */
.apertura { height: 175svh; background: var(--notte); color: var(--smalto); --p: 0; }
.palco { position: sticky; top: 0; height: 100svh; min-height: 580px; overflow: hidden; }
.apertura-testo {
  position: absolute; left: var(--m); right: var(--m); top: calc(var(--alto) + 22px);
  opacity: calc(1 - var(--p) * 2.2); transform: translateY(calc(var(--p) * -60px));
}
.apertura h1 { font-size: var(--t-display); line-height: .96; }
.riga { display: block; overflow: hidden; padding-bottom: .06em; }
.riga > span { display: block; transform: translateY(110%); animation: sali 1.1s var(--uscita) forwards; animation-delay: calc(var(--dopo) + var(--i, 0) * 120ms); }
.apertura-testo p { margin: 14px 0 18px; max-width: 30ch; color: var(--chiaro-tenue); }
.apertura-testo p, .apertura-testo .bottone { opacity: 0; animation: affiora .9s var(--uscita) forwards; animation-delay: calc(var(--dopo) + 320ms); }
.apertura-testo .bottone { animation-delay: calc(var(--dopo) + 440ms); }
@keyframes sali { to { transform: none; } }
@keyframes affiora { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.finestra {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc((1 - var(--p)) * (var(--alto) + 318px) + var(--p) * var(--alto));
  --lato: calc((1 - var(--p)) * var(--m));
  --arco: calc((1 - var(--p)) * 50vw);
  clip-path: inset(0 var(--lato) 0 var(--lato) round var(--arco) var(--arco) 0 0);
  background: var(--lava);
}
.diapo { position: absolute; inset: 0 0 calc(var(--p) * 150px); overflow: hidden; }
.diapo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  opacity: 0; transition: opacity 1.4s ease;
}
.diapo img.attiva { opacity: 1; animation: respiro 7s ease-out forwards; }
@keyframes respiro { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.velo { position: absolute; inset: 0; background: var(--notte); transform-origin: 50% 0; animation: apri-velo 1.3s cubic-bezier(.7, 0, .2, 1) forwards; animation-delay: calc(var(--dopo) + 150ms); }
@keyframes apri-velo { to { transform: scaleY(0); } }
.puntini { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; gap: 6px; }
.puntini button { width: 36px; height: 36px; display: grid; place-items: center; }
.puntini button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .55); transition: width .4s var(--uscita), background-color .3s; }
.puntini button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: #fff; }
.finestra figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--m) calc(92px + env(safe-area-inset-bottom)); background: var(--notte); color: var(--smalto);
  transform: translateY(calc((1 - var(--p)) * 101%)); font-size: var(--t-sotto); font-weight: 300; line-height: 1.2;
}
.finestra figcaption a { font-size: var(--t-body); color: var(--oro); padding: 10px 0; white-space: nowrap; }

/* ---------- storia: i gradini si impilano e formano una scala ---------- */
.storia { background: var(--smalto); padding: 96px 0 72px; }
.storia-testa { display: flex; align-items: flex-end; gap: 16px; padding: 0 var(--m); margin-bottom: 48px; }
.storia-testa h2 { max-width: 12ch; }
.storia-testa img { width: 74px; height: auto; flex: none; animation: ondeggia 6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes ondeggia { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.scala { --passo: 60px; }
.gradino {
  position: sticky; top: calc(var(--alto) + var(--n) * var(--passo));
  margin-left: calc(var(--n) * 5vw); margin-bottom: calc((3 - var(--n)) * var(--passo));
  background: var(--notte); color: var(--smalto);
}
.gradino + .gradino { margin-top: 12svh; }
.pedata { padding: 14px var(--m) 24px; min-height: 300px; }
.pedata h3 { font-size: 2rem; line-height: 1.1; margin-bottom: 16px; color: var(--oro); }
.pedata h3 b { font-weight: 300; font-variant-numeric: tabular-nums; }
.pedata blockquote { font-size: var(--t-sotto); font-style: italic; font-weight: 300; line-height: 1.3; margin-bottom: 10px; }
.pedata p { max-width: 34ch; }
/* le alzate di maiolica scorrono piano, come viste salendo */
.alzata { --x: 0px; height: 76px; background: url("img/alzata.webp") repeat-x; background-size: auto 100%; background-position: var(--x) 0; animation: maiolica 60s linear infinite; }
.a2 { --x: -120px; animation-direction: reverse; }
.a3 { --x: -240px; }
.a4 { --x: -60px; animation-direction: reverse; }
@keyframes maiolica { to { background-position: calc(var(--x) - 739.5px) 0; } }

/* intestazioni di sezione: titolo, poi una riga in corsivo */
.intesta { padding: 0 var(--m); margin-bottom: 28px; }
.intesta .lead { margin-top: 14px; max-width: 30ch; color: var(--tenue); }
.parola { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.parola > span { display: inline-block; }
.js .dividi:not(.dentro-vista) .parola > span { transform: translateY(105%); }
.js .dividi .parola > span { transition: transform 1s var(--uscita); transition-delay: calc(var(--k) * 70ms); }

/* ---------- creazioni: leggere ---------- */
.creazioni { padding: 72px 0 96px; background: var(--smalto); }
.filtri {
  position: sticky; top: var(--alto); z-index: 10; display: flex; gap: 2px; overflow-x: auto;
  padding: 6px calc(var(--m) - 12px); background: var(--smalto); scrollbar-width: none;
}
.filtri::-webkit-scrollbar, .tecniche::-webkit-scrollbar, .striscia::-webkit-scrollbar, .simili::-webkit-scrollbar, .galleria::-webkit-scrollbar, .voci::-webkit-scrollbar { display: none; }
.filtri button {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 6px 12px; white-space: nowrap; font-size: 1.0625rem; color: var(--tenue);
  transition: color .25s;
}
.filtri button svg { width: 20px; height: 20px; stroke-width: 1.5; transition: transform .35s var(--uscita); }
.filtri button[aria-pressed="true"] svg { color: var(--oro); stroke: var(--inchiostro); transform: scale(1.12); }
.filtri button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--inchiostro); transform: scaleX(0); transition: transform .35s var(--uscita); }
.filtri button[aria-pressed="true"] { color: var(--inchiostro); font-weight: 500; }
.filtri button[aria-pressed="true"]::after { transform: scaleX(1); }

.colori { display: flex; align-items: center; gap: 4px; padding: 4px var(--m) 0; flex-wrap: wrap; }
.colori > span { font-size: var(--t-small); color: var(--tenue); margin-right: 6px; }
.tessera { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.tessera i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); transition: transform .35s var(--uscita), box-shadow .25s; }
.tessera:hover i { transform: scale(1.15); }
.tessera[aria-pressed="true"] i { transform: scale(1.1); box-shadow: 0 0 0 3px var(--smalto), 0 0 0 5px var(--inchiostro); } /* taste-skill-ignore: anello di selezione, non un'ombra */
.esito { padding: 8px var(--m) 0; font-size: var(--t-small); color: var(--tenue); min-height: 2.6em; }
.esito button { color: var(--inchiostro); text-decoration: underline; min-height: 44px; padding: 0 4px; font-size: var(--t-small); }

.vetrina { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; padding: 16px var(--m) 0; }
.pezzo { min-width: 0; }
.cornice { position: relative; }
.apri { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--smalto-2); }
.apri img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--uscita); }
.apri:hover img { transform: scale(1.05); }
.js .pezzo[data-entra] .apri img { transform: scale(1.16); }
.js .pezzo.dentro-vista .apri img { transform: scale(1); transition-duration: 1.4s; }
.js .pezzo.dentro-vista .apri:hover img { transform: scale(1.05); transition-duration: .9s; }
.cuore {
  position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--notte);
  transition: transform .3s var(--uscita), color .25s;
}
.cuore::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgb(244 245 242 / .88); z-index: -1; }
.cuore svg { width: 20px; height: 20px; }
.cuore:active { transform: scale(.86); }
.cuore[aria-pressed="true"] { color: #b3202e; }
.cuore[aria-pressed="true"] svg { fill: currentColor; animation: batte .5s var(--uscita); }
.pezzo h3 { font-size: 1.125rem; font-weight: 400; line-height: 1.25; margin-top: 12px; }
.pezzo h3 a { text-decoration: none; }
.pezzo h3 a::after { content: ""; position: absolute; inset: 0; } /* tutta la scheda si tocca */
.pezzo { position: relative; }
.pezzo .cuore { z-index: 2; }
.altre { display: flex; margin: 48px auto 0; }
.senza-js { padding: var(--m); }

/* ---------- dicono di Lory ---------- */
.dicono { background: var(--notte); color: var(--smalto); padding: 88px 0; overflow: hidden; }
.dicono .intesta .lead { color: var(--chiaro-tenue); }
.voci { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--m) 4px; scroll-padding: 0 var(--m); }
/* il commento come appare su Instagram: fondo bianco, carattere di sistema, nome in grassetto */
.voce {
  flex: 0 0 86vw; max-width: 440px; scroll-snap-align: start; padding: 16px 16px 10px; border-radius: 14px;
  background: #fff; color: #0c0c0d;
  font: 400 1rem/1.42 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.voce b { font-weight: 600; }
.ig-post { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding-bottom: 14px; margin-bottom: 14px; background: linear-gradient(#efefef, #efefef) no-repeat 0 100% / 100% 1px; } /* taste-skill-ignore: la riga che separa didascalia e commenti su Instagram */
.ig-post img { width: 32px; height: 32px; padding: 3px; border-radius: 50%; background: var(--notte); }
.ig-post p { padding-top: 5px; }
.ig-commento { display: grid; grid-template-columns: 32px 1fr 20px; gap: 12px; align-items: start; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #dbdbdb; color: #555; font-weight: 600; font-size: .9375rem; }
.voce blockquote { padding-top: 5px; font-size: 1.0625rem; }
.voce figcaption { margin-top: 4px; font-size: .875rem; color: #6b6b6b; }
.voce figcaption a { display: inline-block; padding: 10px 0; color: #6b6b6b; font-weight: 600; text-decoration: none; }
.voce figcaption a:hover { color: #0c0c0d; }
.ig-cuore { width: 16px; height: 16px; margin-top: 9px; color: #ed4956; fill: #ed4956; stroke: #ed4956; }

/* tecniche */
.mani { background: var(--notte); color: var(--smalto); padding: 88px 0; }
.mani .intesta .lead { color: var(--chiaro-tenue); }
.tecniche { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--m); scroll-padding: 0 var(--m); }
.tecniche li { flex: 0 0 80vw; max-width: 420px; scroll-snap-align: start; }
.tecniche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.tecniche h3 { margin: 18px 0 8px; color: var(--oro); }

/* col tuo nome */
.natale { background: var(--oro); color: var(--notte); padding: 88px 0; }
.natale .intesta .lead { color: var(--notte); }
.prova { padding: 0 var(--m); display: grid; gap: 24px; }
.anteprima { text-align: center; }
.anteprima svg { width: min(62%, 300px); height: auto; margin: 0 auto; stroke: none; animation: dondola 5s ease-in-out infinite alternate; transform-origin: 50% 0; }
.anteprima p { font-size: var(--t-small); }
.filo { stroke: var(--notte); stroke-width: 3; fill: none; }
.corpo { fill: #a9182b; }
.fiocco { fill: var(--notte); }
.ricamo { fill: #ffe3a0; font: 400 40px "Sentient", Georgia, serif; }
@keyframes dondola { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.modulo { display: grid; gap: 12px; width: 100%; max-width: 440px; margin: 0 auto; }
.modulo > label, legend { font-weight: 500; }
.modulo input[type="text"] { width: 100%; min-height: 56px; padding: 10px 20px; border: 2px solid transparent; border-radius: 999px; background: var(--smalto); font-size: 1.1875rem; }
.modulo input[type="text"]:focus { border-color: var(--notte); outline: none; }
.modulo input::placeholder { color: var(--tenue); }
fieldset { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
legend { margin-bottom: 8px; }
fieldset label { position: relative; }
fieldset input { position: absolute; opacity: 0; }
fieldset span { display: flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 999px; background: var(--smalto); cursor: pointer; }
fieldset input:checked + span { background: var(--notte); color: var(--smalto); }
fieldset input:focus-visible + span { outline: 3px solid var(--notte); outline-offset: 2px; }

/* in giro */
.giro { padding: 88px 0; }
.giro .intesta { margin-bottom: 32px; }
.striscia { display: flex; align-items: flex-end; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--m); scroll-padding: 0 var(--m); }
.striscia a { flex: none; scroll-snap-align: start; overflow: hidden; }
.striscia img { height: 340px; width: auto; max-width: none; transition: transform .7s var(--uscita); }
.striscia a:nth-child(even) img { height: 270px; }
.striscia a:hover img { transform: scale(1.05); }

/* domande */
.domande { padding: 24px var(--m) 96px; }
.domande h2 { margin-bottom: 32px; max-width: 10ch; }
.elenco { display: grid; gap: 8px; }
details { background: var(--smalto-2); border-radius: 16px; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 14px 20px; cursor: pointer; font-size: 1.25rem; line-height: 1.3; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--uscita); }
details[open] summary::after { transform: rotate(225deg); }
details p { padding: 0 20px 22px; max-width: 48ch; }

/* scrivimi */
.scrivimi { background: var(--notte); padding-bottom: 56px; }
.scrivimi > img { width: 100%; height: 70svh; object-fit: cover; }
.biglietto { position: relative; margin: -72px var(--m) 0; padding: 28px 24px; background: var(--smalto); border-radius: 20px; display: grid; gap: 12px; }

/* piede: torna il logo intero */
.piede { background: var(--notte); color: var(--smalto); text-align: center; padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
.piede .alzata { margin-bottom: 48px; }
.piede-logo { width: min(86vw, 620px); height: auto; margin: 0 auto 20px; }
.piede p { padding: 0 var(--m); margin-top: 8px; color: var(--chiaro-tenue); }
.piede a { display: inline-block; padding: 10px; }

/* barra a portata di pollice */
.barra {
  position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 4px; padding: 6px;
  background: var(--notte-2); color: var(--smalto); border-radius: 999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .28); /* taste-skill-ignore: barra che galleggia sopra la pagina */
  transform: translateY(160%); visibility: hidden; transition: transform .45s var(--uscita), visibility 0s .45s;
}
.barra.su { transform: none; visibility: visible; transition: transform .45s var(--uscita); }
.barra > * { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 999px; text-decoration: none; font-size: 1rem; color: var(--smalto); }
.barra b { color: var(--oro); font-weight: 500; }
.barra .wa { background: var(--wa); color: var(--wa-ink); font-weight: 500; }
.barra-prodotto { grid-template-columns: 1fr 2fr; }

/* fogli che salgono dal basso */
.foglio {
  width: 100%; max-width: 560px; max-height: 92svh; margin: auto auto 0; border: 0; padding: 0;
  background: var(--smalto); color: var(--inchiostro); border-radius: 24px 24px 0 0; overflow-y: auto; overscroll-behavior: contain;
}
.foglio[open] { animation: sale .45s var(--uscita); }
.foglio::backdrop { background: rgb(10 14 40 / .7); }
@keyframes sale { from { transform: translateY(40%); opacity: 0; } }
.chiudi { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--smalto-2); display: grid; place-items: center; }
.dati { padding: 24px var(--m) 8px; }
.dati h2 { font-size: 2rem; margin-bottom: 12px; padding-right: 48px; }
.azioni { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 14px var(--m) calc(18px + env(safe-area-inset-bottom)); background: var(--smalto); }
.dentro { margin-top: 12px; display: grid; gap: 14px; }
.dentro li { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center; }
.dentro img { width: 68px; height: 84px; object-fit: cover; }
.dentro a { text-decoration: none; line-height: 1.3; }
.dentro button { min-height: 44px; padding: 8px; text-decoration: underline; font-size: var(--t-small); }

.avviso {
  position: fixed; z-index: 40; left: 50%; top: calc(var(--alto) + 10px); transform: translate(-50%, -12px);
  background: var(--oro); color: var(--notte); padding: 12px 20px; border-radius: 999px; width: max-content; max-width: calc(100% - 40px);
  font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--uscita);
}
.avviso.vivo { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pagina prodotto ---------- */
.prodotto { padding-top: var(--alto); }
.briciole { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px var(--m) 8px; font-size: var(--t-small); color: var(--tenue); }
.briciole a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--inchiostro); }
.briciole a:hover { text-decoration: underline; }
.galleria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 0 var(--m); scroll-padding: 0 var(--m); }
.galleria button { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 50% 50% 0 0 / 34% 34% 0 0; background: var(--smalto-2); cursor: zoom-in; }
.galleria:has(button + button) button { flex-basis: 88%; }
.galleria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; animation: respiro 2.2s var(--uscita) both; }
.galleria .lente { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--smalto); color: var(--notte); font-size: var(--t-small); }
.galleria .lente svg { width: 18px; height: 18px; }
.scheda-testo { padding: 28px var(--m) 0; }
.scheda-testo h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); }
.scheda-testo .lead { margin-top: 12px; color: var(--tenue); }
.scheda-testo .lungo { margin-top: 22px; max-width: 46ch; }
.scheda-testo h2, .passaggi h2, .commento h2 { font-size: var(--t-sotto); font-weight: 400; letter-spacing: 0; }
.dettagli { margin-top: 32px; }
.garanzie { margin-top: 14px; display: grid; gap: 12px; font-size: var(--t-small); color: var(--tenue); }
.garanzie li { display: flex; gap: 12px; align-items: center; line-height: 1.4; }
.garanzie svg { width: 22px; height: 22px; color: var(--inchiostro); }
.tinte { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tinte a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--smalto-2); text-decoration: none; font-size: var(--t-small); }
.tinte i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.scegli { display: grid; gap: 10px; padding: 28px var(--m) 0; }
.scegli .due { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .scegli .due { grid-template-columns: 1fr 1fr; } }
.scegli .vuoto[aria-pressed="true"] { background: var(--notte); color: var(--smalto); }
.scegli .vuoto[aria-pressed="true"] svg { fill: #e5566a; stroke: #e5566a; }
.commento { margin: 48px var(--m) 0; }
.commento .voce { max-width: none; margin-top: 14px; box-shadow: 0 0 0 1px #dedfd8; } /* taste-skill-ignore: bordo del riquadro bianco su fondo chiaro */
.passaggi { margin: 48px var(--m) 0; }
.passaggi ol { display: grid; gap: 18px; margin-top: 18px; }
.passaggi li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.passaggi li svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--smalto-2); color: var(--inchiostro); }
.passaggi strong { display: block; font-weight: 500; }
.passaggi span { color: var(--tenue); font-size: var(--t-small); }
.simili-sezione { padding: 72px 0 40px; }
.simili-sezione h2 { padding: 0 var(--m); margin-bottom: 24px; }
.simili { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--m); scroll-padding: 0 var(--m); }
.simili li { flex: 0 0 58vw; max-width: 280px; scroll-snap-align: start; }
.simili a { text-decoration: none; }
.simili img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.simili h3 { font-size: 1.125rem; font-weight: 400; margin-top: 10px; }
.simili p { font-size: var(--t-small); color: var(--tenue); }
.lente-foglio { max-width: none; width: 100%; height: 100svh; max-height: none; margin: 0; border-radius: 0; background: #0e1126; }
.lente-foglio .chiudi { position: fixed; top: 14px; right: 14px; margin: 0; }
.lente-foglio img { width: 200%; max-width: none; height: auto; margin: auto; }
.lente-scorri { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }

/* entrate allo scorrimento (solo se lo script è attivo) */
.js [data-entra] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--uscita), transform .8s var(--uscita); transition-delay: var(--ritardo, 0ms); }
.js [data-entra].dentro-vista { opacity: 1; transform: none; }

/* tablet e computer */
@media (min-width: 700px) {
  .vetrina { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 24px; }
  .prova { grid-template-columns: 1fr 1fr; align-items: center; }
  .simili li { flex-basis: 30vw; }
  .voce { flex-basis: 46vw; }
  /* scheda prodotto a due colonne già sul tablet: il nome resta nel primo schermo */
  .prodotto-corpo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 var(--m); align-items: start; }
  .prodotto-corpo .galleria { position: sticky; top: calc(var(--alto) + 16px); padding: 0; }
  .prodotto-corpo .galleria button { flex-basis: 100%; }
  .prodotto-corpo .scheda-testo, .prodotto-corpo .scegli { padding-left: 0; padding-right: 0; }
  .prodotto-corpo .scheda-testo:first-child { padding-top: 4px; }
  .prodotto-corpo .scheda-testo h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
  .prodotto-corpo .passaggi, .prodotto-corpo .commento { margin-left: 0; margin-right: 0; }
  .prodotto-corpo .scegli .due { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) { .prodotto-corpo .scegli .due { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  :root { --m: 48px; --alto: 88px; --t-display: clamp(3.75rem, 6.4vw, 6rem); }
  .marchio { height: 72px; }
  .menu { display: flex; gap: 32px; font-size: 1.0625rem; }
  .menu a { text-decoration: none; padding: 10px 0; }
  .menu a:hover { color: var(--oro); }
  .apertura { height: auto; }
  .palco { position: relative; height: 100svh; min-height: 660px; max-height: 980px; display: grid; grid-template-columns: 1fr 1fr; }
  .apertura-testo { position: static; opacity: 1; transform: none; align-self: center; padding: var(--alto) var(--m) 0; }
  .apertura-testo p { font-size: var(--t-sotto); margin: 24px 0 32px; }
  .finestra { position: relative; top: 0; clip-path: inset(0 round 25vw 25vw 0 0); margin: calc(var(--alto) + 24px) var(--m) 0 0; min-height: 0; }
  .diapo { inset: 0 0 66px; }
  .finestra figcaption { transform: none; padding: 18px 24px; }
  .storia { padding: 140px var(--m) 120px; }
  .storia-testa { padding: 0; }
  .storia-testa img { width: 110px; }
  .scala { --passo: 66px; max-width: 1200px; }
  .gradino { margin-left: calc(var(--n) * 12%); max-width: 64%; }
  .pedata { padding: 20px 40px 32px; min-height: 270px; }
  .creazioni, .mani, .natale, .giro, .dicono { padding-top: 130px; padding-bottom: 130px; }
  .vetrina { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tecniche li { flex-basis: 30vw; }
  .voce { flex-basis: 30vw; }
  .striscia img { height: 440px; }
  .striscia a:nth-child(even) img { height: 340px; }
  .domande { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 130px; }
  .scrivimi { position: relative; padding: 0; }
  .scrivimi > img { height: 100svh; max-height: 880px; }
  .biglietto { position: absolute; top: 80px; right: var(--m); margin: 0; width: 420px; }
  .barra { left: auto; right: 24px; bottom: 24px; width: 420px; }
  .foglio { margin: auto; border-radius: 24px; }
  .prodotto-corpo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 0 var(--m); align-items: start; }
  .prodotto-corpo .galleria { position: sticky; top: calc(var(--alto) + 16px); padding: 0; }
  .prodotto-corpo .galleria button { flex-basis: 100%; }
  .scheda-testo, .scegli { padding-left: 0; padding-right: 0; }
  .scheda-testo { padding-top: 12px; }
  .passaggi, .commento { margin-left: 0; margin-right: 0; }
  .simili li { flex-basis: 22vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .riga > span, .apertura-testo p, .apertura-testo .bottone { transform: none; opacity: 1; }
  .velo, .ingresso { display: none !important; }
  .apertura { height: auto; }
  .palco { position: relative; }
  .gradino { position: relative; top: 0; margin-bottom: 16px; }
  .gradino + .gradino { margin-top: 0; }
}

/* ---------- v3 ritocchi: la tua coffa ---------- */
.cuore[aria-pressed="true"] { color: var(--notte); }
.cuore[aria-pressed="true"]::before { background: var(--oro); }
.cuore[aria-pressed="true"] svg { fill: none; }
.cuore[aria-pressed="true"] .corpo-coffa, .scegli .vuoto[aria-pressed="true"] .corpo-coffa { fill: var(--oro); }
.scegli .vuoto[aria-pressed="true"] svg { fill: none; stroke: var(--oro); }
.coffa-scena { position: relative; width: min(100%, 320px); height: 240px; margin: 8px auto 18px; }
.coffa-dietro, .coffa-davanti { position: absolute; left: 0; width: 100%; height: auto; }
.coffa-dietro { top: 0; }
.coffa-davanti { bottom: 0; z-index: 2; }
.coffa-dentro { position: absolute; inset: 0; z-index: 1; }
.coffa-dentro > * {
  position: absolute; left: var(--x); bottom: 112px; width: 78px; height: 96px; margin-left: -39px;
  object-fit: cover; border-radius: 12px; border: 3px solid #fff; background: var(--smalto-2);
  transform: rotate(var(--r)); animation: cade .7s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--d);
}
.coffa-dentro span { display: grid; place-items: center; font-weight: 500; color: var(--notte); }
@keyframes cade { from { transform: translateY(-120px) rotate(0); opacity: 0; } }
.foglio[open] .coffa-davanti { animation: dondola-coffa 1.2s ease-in-out .3s; transform-origin: 50% 100%; }
@keyframes dondola-coffa { 25% { transform: rotate(-2deg); } 60% { transform: rotate(1.5deg); } }

/* ---------- Natale: le foto vere ---------- */
.foto-natale { padding: 48px var(--m) 0; }
.foto-natale h3 { margin-bottom: 18px; }
.coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
.coppia a { display: block; text-decoration: none; color: var(--notte); }
.coppia img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; transition: transform .7s var(--uscita); }
.coppia a:hover img { transform: scale(1.03); }
.coppia span { display: block; margin-top: 10px; font-weight: 500; }

/* ---------- caroselli laterali: scorrimento pulito ---------- */
.striscia, .tecniche, .voci, .simili, .galleria { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.striscia { scroll-snap-type: x mandatory; align-items: center; }
.striscia a { scroll-snap-align: start; flex: none; }
.striscia img, .striscia a:nth-child(even) img { height: 300px; width: auto; }
@media (min-width: 900px) { .striscia img, .striscia a:nth-child(even) img { height: 400px; } }

/* ---------- v4: idee regalo ---------- */
.regali { background: #7e1626; color: #fbf3f1; padding: 88px 0; }
.regali .intesta .lead { color: #f2cfd2; }
.entro { margin: 0 var(--m) 22px; padding: 14px 18px; border-radius: 16px; background: var(--oro); color: var(--notte); line-height: 1.4; }
.entro strong { display: block; font-weight: 500; }
.occasioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--m); max-width: 900px; }
.occasioni button { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 16px; border-radius: 999px; background: #95293a; text-align: left; line-height: 1.2; transition: background-color .25s, color .25s, transform .25s var(--uscita); }
.occasioni button:active { transform: scale(.97); }
.occasioni button[aria-pressed="true"] { background: var(--smalto); color: #7e1626; font-weight: 500; }
.fasce { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 14px var(--m) 0; }
.fasce button { min-height: 44px; padding: 6px 12px; font-size: var(--t-small); color: #f2cfd2; text-decoration: none; border-radius: 999px; }
.fasce button[aria-pressed="true"] { background: #95293a; color: #fff; font-weight: 500; }
.regali-lista { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 22px var(--m) 4px; scroll-padding: 0 var(--m); scrollbar-width: none; }
.regali-lista::-webkit-scrollbar { display: none; }
.regali-lista li { flex: 0 0 56vw; max-width: 270px; scroll-snap-align: start; }
.regali-lista a { text-decoration: none; display: block; }
.regali-lista img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.regali-lista span { display: block; margin-top: 10px; line-height: 1.25; }
.regali-lista .vuoto-regali { flex-basis: 100%; }
.regali-lista.nuove li { animation: affiora .6s var(--uscita) both; }
.regali-lista.nuove li:nth-child(2) { animation-delay: 80ms; }
.regali-lista.nuove li:nth-child(3) { animation-delay: 160ms; }
.aiuto { display: flex; width: fit-content; margin: 30px var(--m) 0; }

/* foto delle clienti */
.clienti { padding: 48px var(--m) 0; display: grid; gap: 14px; justify-items: start; }
.clienti p { max-width: 40ch; color: var(--chiaro-tenue); }
.foto-clienti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 760px; }
.foto-clienti img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.foto-clienti figcaption { font-size: var(--t-small); line-height: 1.3; margin-top: 6px; }
.segnaposto { aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 8px; text-align: center; border-radius: 12px; background: var(--notte-2); }

/* scheda prodotto: prezzo e domande pronte */
.prezzo { margin-top: 18px; font-size: var(--t-sotto); font-weight: 300; }
.prezzo strong { font-weight: 500; }
.scegli .entro { margin: 0 0 4px; }
.veloci { margin: 26px var(--m) 0; }
.veloci h2 { font-size: var(--t-sotto); font-weight: 400; letter-spacing: 0; margin-bottom: 12px; }
.veloci div { display: flex; flex-wrap: wrap; gap: 8px; }
.veloci a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px 999px 999px 4px; background: #dcf8c6; color: var(--wa-ink); text-decoration: none; font-size: 1rem; transition: transform .25s var(--uscita); }
.veloci a:active { transform: scale(.96); }
.dettagli + .commento { margin-top: 48px; }
.esempio { display: inline-block; padding: 0 8px; border-radius: 999px; background: #fff; color: #7e1626; font-size: .8125rem; font-style: normal; font-weight: 500; vertical-align: middle; }
@media (min-width: 700px) {
  .occasioni { grid-template-columns: repeat(4, 1fr); }
  .regali-lista li { flex-basis: 24vw; }
  .prodotto-corpo .veloci { margin-left: 0; margin-right: 0; }
}
@media (min-width: 900px) { .regali { padding: 130px 0; } .entro { max-width: 620px; } }

/* schermi stretti e caratteri ingranditi: niente deve allargare la pagina */
.occasioni, .barra, .coppia, .tessere { min-width: 0; }
.occasioni { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.occasioni button, .occasioni span, .barra > * { min-width: 0; overflow-wrap: anywhere; }
.barra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.barra-prodotto { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.testata { gap: 10px; }
.marchio { flex: 0 1 auto; min-width: 0; }
.marchio img { max-width: 100%; object-fit: contain; object-position: left; }
.tasto-preferiti { flex: none; white-space: nowrap; }
@media (max-width: 420px) { .occasioni button { padding: 10px 12px; gap: 8px; font-size: 1rem; } }
@media (max-width: 359px) {
  :root { --m: 16px; }
  .tasto-preferiti span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .occasioni button { flex-direction: column; justify-content: center; text-align: center; border-radius: 22px; }
  .barra > * { font-size: .9375rem; }
}

@media (min-width: 700px) { .occasioni { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
