/* Sofi Beauty Outlet · la home fatta come una landing (step 5)
   Design: Design/kit/00-design/home-approvata.png (fette home-01/02/03)
   Font (il kit non li ha, i più simili, serviti dal sito, licenza OFL):
   - titoli: Newsreader (serif ad alto contrasto, con la dimensione ottica)
   - corsivo di «Ogni giorno.»: Allura
   - testi, menu, pulsanti: Figtree */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/allura-regular.woff2") format("woff2");
}

/* Colori misurati sul design (confronta-design.py --colori e campioni sulle fette) */
:root {
  --rosa-barra: #B2606B;   /* barra in alto */
  --rosa: #AB5F68;         /* pannello «La selezione outlet» */
  --rosa-chiaro: #FAE0E2;  /* fondo «Prossimamente» */
  --rosa-profondo: #7C4A47;
  --oro: #B8803B;          /* pulsanti pieni */
  --oro-corsivo: #BC833E;  /* «Ogni giorno.» */
  --oro-testo: #C36C07;    /* voce attiva, link, testo dei pulsanti chiari */
  --oro-icona: #BF7C23;    /* icone */
  --oro-linea: #E5920D;    /* trattino sotto i titoli, bordi dei pulsanti a filo */
  --oro-filo: #FDAF48;     /* filetti di testata e piede */
  --oro-bordo: #FEC981;    /* bordo delle schede prodotto */
  --rosso: #EA4A74;        /* sconto */
  --testo: #121212;
  --grigio: #8C92A2;
  --grigio-scuro: #747C8F;
  --grigio-chiaro: #A3AAB6;
  --bianco: #FFFFFF;
  --fondo-piede: #FAF9F7;
  --crema: #FAEFE4;
  --pesca: #F7DDD0;

  --serif: "Newsreader", "Times New Roman", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --corsivo: "Allura", "Snell Roundhand", cursive;

  --wrap: 1200px;
  --wrap-largo: 1330px;
  --margine: clamp(16px, 4vw, 40px);
  --ombra: 0 10px 30px rgba(124, 74, 71, .10), 0 2px 6px rgba(124, 74, 71, .06);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
html.menu-aperto { overflow: hidden; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--testo);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button, .btn, .menu__link, .hero__freccia, .testata__icona { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3, .hero__sotto, .outlet__sotto, .prossimamente__sotto, .mondo__sotto, .piede__luogo, .prezzo--attesa, .punto span { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--oro-testo); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--margine)); margin-inline: auto; padding-inline: var(--margine); }
.wrap-largo { width: 100%; max-width: calc(var(--wrap-largo) + 2 * var(--margine)); margin-inline: auto; padding-inline: var(--margine); }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--testo); color: var(--bianco); padding: 10px 16px; border-radius: 4px;
}
.salta:focus { top: 12px; }

/* occhiello: le parole maiuscole spaziate sopra i titoli */
.occhiello {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  line-height: 1.3;
}
.occhiello--filo { position: relative; }
.occhiello--filo::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 22px);
  width: 48px;
  height: 1px;
  background: var(--oro-linea);
}

.titolo-sezione {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: center;
}
.titolo-sezione::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--oro-linea);
}

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.btn .ico { width: 20px; height: 20px; stroke-width: 1.6; }
.btn:active { transform: scale(.97); }
.btn--oro { background: var(--oro); color: var(--bianco); }
.btn--bianco { background: var(--bianco); color: var(--oro-testo); border: 1.5px solid var(--oro-linea); font-weight: 500; }
.btn--filo { background: var(--bianco); color: var(--testo); border: 1.5px solid var(--oro-linea); font-size: 17px; min-height: 50px; padding-inline: 32px; }
.btn--filo .ico { color: var(--oro-linea); }
@media (hover: hover) and (pointer: fine) {
  .btn--oro:hover { background: #A9732F; }
  .btn--bianco:hover { background: #FDF6EE; }
  .btn--filo:hover { border-color: var(--oro); background: #FFFBF6; }
  .btn:hover .ico--freccia { transform: translateX(3px); }
}
.ico--freccia { transition: transform .2s var(--ease-out); }
/* la freccia in diagonale del design: freccia-destra del kit, ruotata */
.ico--diagonale { transform: rotate(-45deg); transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ico--diagonale { transform: rotate(-45deg) translateX(3px); }
}

.link-filo {
  display: inline-block;
  padding: 6px 0 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1.5px solid var(--oro-linea);
}
.link-oro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--oro-testo);
  font-size: 18px;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--oro-linea);
}
.link-oro .ico { width: 20px; height: 20px; stroke-width: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .link-filo:hover, .link-oro:hover { border-bottom-color: var(--oro); }
}

/* ---------- barra degli annunci ---------- */
.barra-annunci { background: var(--rosa-barra); color: var(--bianco); }
.barra-annunci__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.barra-annunci__testo { font-size: 16.5px; font-weight: 400; letter-spacing: .01em; text-align: center; padding: 8px 0; }
.barra-annunci__testo span[aria-hidden] { margin: 0 .9em; }
.social--barra {
  position: absolute;
  right: var(--margine);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}
.social--barra a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.social--barra .ico { width: 20px; height: 20px; stroke-width: 1.7; }
@media (hover: hover) and (pointer: fine) { .social--barra a:hover { background: rgba(255, 255, 255, .14); } }

/* ---------- testata ---------- */
.testata {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bianco);
  border-bottom: 1px solid var(--oro-filo);
  transition: box-shadow .25s ease;
}
.testata.is-scesa { box-shadow: 0 6px 20px rgba(124, 74, 71, .08); }
.testata__in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 100px;
}
.testata__menu { display: none; }
.logo { display: block; width: 230px; }
.logo img { width: 100%; height: auto; }

.menu { justify-self: center; }
.menu__testa, .social--menu { display: none; }
.menu__voci { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--testo);
  transition: color .2s ease;
}
.menu__link[aria-current="page"] { color: var(--oro-testo); }
.menu__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--oro-linea);
}
.ico--chevron { width: 18px; height: 18px; color: var(--oro-testo); stroke-width: 2; transition: transform .2s var(--ease-out); }
.menu__shop { position: relative; }
.sottomenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 220px;
  padding: 10px 0;
  background: var(--bianco);
  border: 1px solid var(--oro-bordo);
  border-radius: 4px;
  box-shadow: var(--ombra);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s var(--ease-out), visibility 0s linear .18s;
}
.sottomenu a { display: block; padding: 10px 22px; font-size: 16px; }
.sottomenu__tutto { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--crema); }
.sottomenu__tutto a { color: var(--oro-testo); font-weight: 500; }
.menu__shop.is-aperto .sottomenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .22s ease, transform .22s var(--ease-out), visibility 0s;
}
.menu__shop.is-aperto .ico--chevron { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .menu__link:hover, .sottomenu a:hover { color: var(--oro-testo); }
  .menu__shop:hover .sottomenu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .22s ease, transform .22s var(--ease-out), visibility 0s;
  }
  .menu__shop:hover .ico--chevron { transform: rotate(180deg); }
}

.testata__icone { display: flex; align-items: center; gap: 14px; }
.testata__icona {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--oro-icona);
  border-radius: 50%;
  transition: background-color .2s ease;
}
.testata__icona .ico { width: 32px; height: 32px; stroke-width: 1.5; }
.testata__icona:active { background: var(--crema); }
@media (hover: hover) and (pointer: fine) { .testata__icona:hover { background: var(--crema); } }
.testata__conta {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--rosa-barra);
  color: var(--bianco);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: clamp(520px, 42.2vw, 700px);
  overflow: hidden;
  background: var(--crema);
}
.hero__binario { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--crema);
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.hero__slide.is-attiva {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility 0s;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide--prima .hero__media img { object-position: 62% 30%; }
/* slide 2 e 3: i prodotti del kit a destra, il testo a sinistra come nella prima */
.hero__media--pannello {
  left: auto;
  width: 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}
.hero__media--pannello img { object-position: center 45%; }

/* il filo d'oro rotondo intorno alla modella, come nel design */
.hero__cerchio {
  position: absolute;
  left: 52.3%;
  top: -12%;
  width: 39.5vw;
  max-width: 760px;
  aspect-ratio: 1;
  border: 1.5px solid var(--oro-linea);
  border-radius: 50%;
  pointer-events: none;
}
.hero__testo {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10px;
}
.hero__testo .occhiello { margin-bottom: 18px; }
.hero__titolo {
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(44px, 4.9vw, 76px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--testo);
}
.hero__titolo .corsivo {
  display: block;
  margin-top: -.2em;
  margin-left: -.03em;
  font-family: var(--corsivo);
  font-weight: 400;
  font-size: 1.34em;
  -webkit-text-stroke: .012em currentColor;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--oro-corsivo);
}
.hero__sotto {
  max-width: 600px;
  margin-top: 6px;
  font-size: clamp(18px, 1.62vw, 25px);
  line-height: 1.42;
  font-weight: 400;
}
.hero__azioni {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 24px;
}
.hero__azioni .btn { min-width: 240px; min-height: 56px; font-size: 20px; }

.hero__freccia {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border-radius: 50%;
  background: var(--bianco);
  color: var(--testo);
  box-shadow: 0 4px 16px rgba(124, 74, 71, .12);
  transition: transform .16s var(--ease-out), box-shadow .2s ease;
}
.hero__freccia .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.ico--sinistra { transform: rotate(90deg); }
.ico--destra { transform: rotate(-90deg); }
.hero__freccia--prima { left: 22px; }
.hero__freccia--dopo { right: 22px; }
.hero__freccia:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .hero__freccia:hover { box-shadow: 0 6px 22px rgba(124, 74, 71, .2); } }
.hero__pallini {
  position: absolute;
  left: 50%;
  bottom: 62px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.hero__pallini button { display: grid; place-items: center; width: 22px; height: 22px; }
.hero__pallini button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--bianco);
  box-shadow: 0 0 0 1px rgba(124, 74, 71, .18);
  background: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.hero__pallini button[aria-current="true"]::before { background: var(--oro); border-color: var(--oro); }

/* ---------- i quattro punti ---------- */
.punti { position: relative; z-index: 4; margin-top: -46px; }
.punti__scheda {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bianco);
  border-radius: 4px;
  box-shadow: var(--ombra);
  padding-block: 22px;
  max-width: calc(var(--wrap-largo) + 0px);
}
.punto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 18px;
}
.punto + .punto { border-left: 1.5px solid var(--oro-linea); }
.punto__ico { width: 48px; height: 48px; color: var(--oro-icona); stroke-width: 1.3; }
.punto p { display: flex; flex-direction: column; gap: 2px; }
.punto strong { font-size: 18px; font-weight: 500; line-height: 1.25; }
.punto span { font-size: 16px; color: var(--grigio); line-height: 1.3; }

/* ---------- categorie ---------- */
.categorie { padding: 30px 0 6px; }
.categorie__testa { position: relative; }
.categorie__testa .link-oro { position: absolute; right: 0; bottom: 0; }
.link-oro--piccolo { font-size: 16px; }
.categorie__elenco {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: 4px;
}
.categoria { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.categoria__foto { display: block; width: 112%; max-width: 290px; margin-inline: -6%; transition: transform .35s var(--ease-out); }
.categoria__foto img { width: 100%; }
.categoria__nome {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.categoria:active .categoria__foto { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .categoria:hover .categoria__foto { transform: translateY(-4px); }
  .categoria:hover .categoria__nome { color: var(--oro-testo); }
}

/* ---------- la selezione outlet ---------- */
.outlet { padding: 18px 0 8px; }
.outlet__scatola { display: grid; grid-template-columns: 40.4% 1fr; padding-inline: 0; }
@media (min-width: 768px) {
  .outlet__scatola { width: calc(100% - 2 * var(--margine)); max-width: var(--wrap-largo); }
}
.outlet__testo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(28px, 4.2vw, 62px) 40px clamp(40px, 6.4vw, 92px);
  background: var(--rosa);
  color: var(--bianco);
  overflow: hidden;
}
.outlet__testo .occhiello { font-size: 14px; }
.outlet__titolo {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(36px, 3.7vw, 58px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.outlet__sotto { margin-top: 12px; font-size: clamp(17px, 1.6vw, 24px); font-weight: 300; line-height: 1.35; }
.outlet__testo .btn { align-self: flex-start; margin-top: 30px; min-width: 260px; }
.outlet__foto { position: relative; min-height: 344px; overflow: hidden; }
.outlet__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- la selezione della settimana ---------- */
.selezione { padding: 22px 0 10px; }
.selezione__testa { position: relative; }
.selezione__testa .link-oro { position: absolute; right: 0; bottom: 0; }
.prodotti {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.prodotto {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 18px;
  background: var(--bianco);
  border: 1.5px solid var(--oro-bordo);
  border-radius: 3px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .prodotto:hover { box-shadow: var(--ombra); border-color: var(--oro-linea); }
  .prodotto:hover .prodotto__foto img { transform: translateY(-4px) scale(1.02); }
}
.prodotto__foto {
  position: relative;
  aspect-ratio: 1.3;
  background-color: var(--pesca);
  background-size: cover;
  background-position: center;
}
.prodotto__foto--1 { background-image: url("/assets/img/fondo-fiori-1.webp"); }
.prodotto__foto--2 { background-image: url("/assets/img/fondo-fiori-2.webp"); }
.prodotto__foto--3 { background-image: url("/assets/img/fondo-fiori-3.webp"); }
.prodotto__foto--4 { background-image: url("/assets/img/fondo-fiori-4.webp"); }
.prodotto__foto img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: calc(100% + 52px);
  max-width: calc(100% + 26px);
  object-fit: contain;
  object-position: center bottom;
  translate: -50% 0;
  transition: transform .4s var(--ease-out);
  filter: drop-shadow(0 8px 12px rgba(124, 74, 71, .18));
}
.prodotto__cuore {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--oro-linea);
  border-radius: 50%;
  transition: transform .16s var(--ease-out), color .2s ease;
}
.prodotto__cuore .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.prodotto__cuore:active { transform: scale(.86); }
.prodotto__cuore[aria-pressed="true"] .ico { fill: var(--oro-linea); }
.prodotto__marca {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.2;
}
.prodotto__nome {
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}
.prodotto__prezzi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 16px;
}
.prezzo { font-size: 25px; font-weight: 600; }
.prezzo-pieno { font-size: 21px; color: var(--grigio-chiaro); text-decoration-thickness: 1px; }
.sconto { font-size: 24px; color: var(--rosso); font-weight: 400; }
.prezzo.prezzo--attesa { font-size: 17px; font-weight: 500; color: var(--grigio-scuro); }
.prodotto__prezzi { margin-bottom: 18px; }
.prodotto__pezzi { margin-top: 8px; font-size: 18px; color: var(--grigio-chiaro); }
.btn--carrello { margin-top: auto; width: 100%; min-height: 48px; padding: 10px 14px; font-size: 19px; gap: 10px; }
.btn--carrello .ico { width: 24px; height: 24px; stroke-width: 1.6; }
.selezione__nota { margin-top: 18px; text-align: center; font-size: 15px; color: var(--grigio); }

/* ---------- prossimamente ---------- */
.prossimamente {
  position: relative;
  width: calc(100% - 2 * clamp(0px, 2vw, 28px));
  max-width: 1400px;
  margin: 16px auto 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  background: var(--rosa-chiaro);
  overflow: hidden;
}
.prossimamente__sfondo { position: absolute; inset: 0; }
.prossimamente__sfondo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.prossimamente__testo { position: relative; z-index: 1; padding-block: 26px; }
.prossimamente__testo .occhiello { font-size: 14px; }
.prossimamente__titolo {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.prossimamente__sotto { max-width: 600px; margin-top: 6px; font-size: clamp(17px, 1.45vw, 21px); color: #2A2125; }
.prossimamente__testo .btn { margin-top: 16px; min-height: 44px; padding: 8px 32px; font-size: 18px; }

/* ---------- il mondo Sofi ---------- */
.mondo { padding: 28px 0 30px; }
.mondo__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.mondo__testo .occhiello { font-size: 14px; }
.mondo__titolo {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.mondo__sotto { margin-top: 8px; font-size: 17px; color: var(--grigio-scuro); }
.mondo__azioni { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- piede ---------- */
.piede { background: var(--fondo-piede); border-top: 1px solid var(--oro-filo); padding: 30px 0 26px; font-size: 16px; }
.piede__colonne { display: grid; grid-template-columns: 1.25fr 1fr 1fr .8fr; gap: 28px; }
.piede__titolo { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.3; margin-bottom: 8px; }
.piede__luogo, .piede__colonna a, .piede__pagamenti, .piede__legali a { color: var(--grigio-scuro); }
.piede__colonna li + li { margin-top: 2px; }
.piede__colonna a { display: inline-block; padding: 2px 0; overflow-wrap: anywhere; }
.piede__luogo { max-width: 22em; }
@media (hover: hover) and (pointer: fine) {
  .piede a:hover { color: var(--oro-testo); }
}
.piede__fondo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--oro-filo);
}
.piede__pagamenti p + p { margin-top: 2px; }
.piede__legali { display: flex; flex-wrap: wrap; }
.piede__legali li + li::before { content: "·"; margin: 0 .7em; color: var(--oro-linea); }
.piede__dati, .credit { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--grigio); }
.piede__dati span { white-space: nowrap; }
.credit { margin-top: 4px; }
.credit a { color: var(--grigio-scuro); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pagine legali ---------- */
.legale-pagina { padding: 48px 0 64px; }
.legale { max-width: 780px; margin-inline: auto; font-size: 17px; line-height: 1.65; }
.legale h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.02em; }
.legale h1 + p { margin-top: 8px; color: var(--grigio); font-size: 15px; }
.legale h2 { margin-top: 34px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.legale h3 { margin-top: 22px; font-size: 18px; font-weight: 600; }
.legale p, .legale ul, .legale ol, .legale table { margin-top: 12px; }
.legale ul { list-style: disc; padding-left: 1.3em; }
.legale ol { padding-left: 1.3em; }
.legale li + li { margin-top: 6px; }
.legale a { color: var(--oro-testo); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legale table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legale th, .legale td { padding: 8px 10px; border: 1px solid var(--oro-bordo); text-align: left; vertical-align: top; }

/* ---------- 404 ---------- */
.pagina-404 { padding: 90px 0 110px; text-align: center; }
.pagina-404 h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.02em; line-height: 1.08; }
.pagina-404 p { margin-top: 12px; font-size: 19px; color: var(--grigio-scuro); }
.pagina-404__azioni { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 36px; margin-top: 30px; }

/* =================================================================
   Tablet
   ================================================================= */
@media (max-width: 1180px) {
  .testata__in { gap: 16px; }
  .logo { width: 190px; }
  .menu__link { font-size: 17px; }
  .testata__icone { gap: 4px; }
  .punto { flex-direction: column; text-align: center; gap: 10px; }
  .punto p { align-items: center; }
  .prodotto { padding-inline: 14px; }
  .prezzo { font-size: 20px; }
  .prezzo-pieno, .sconto { font-size: 18px; }
  .btn--carrello { font-size: 16px; }
}

/* =================================================================
   Telefono e tablet: menu a tutto schermo (sotto i 1100 px le cinque voci non stanno in una riga)
   ================================================================= */
@media (max-width: 1100px) {
  .testata__in { grid-template-columns: 1fr auto 1fr; min-height: 72px; gap: 8px; }
  .testata__menu {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: -8px;
    color: var(--oro-icona);
    border-radius: 50%;
  }
  .testata__menu .ico { width: 30px; height: 30px; }
  .testata__menu:active { background: var(--crema); }
  .logo { width: 156px; justify-self: center; }
  .testata__icone { justify-self: end; margin-right: -6px; }
  .testata__icona--account { display: none; }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 0 var(--margine) 40px;
    background: var(--bianco);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s linear .2s;
  }
  .menu.is-aperto {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .28s ease, transform .28s var(--ease-out), visibility 0s;
  }
  .menu__testa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    border-bottom: 1px solid var(--oro-filo);
  }
  .menu__logo { width: 156px; }
  .menu__chiudi { display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px; color: var(--oro-icona); border-radius: 50%; }
  .menu__chiudi .ico { width: 28px; height: 28px; }
  .menu__chiudi:active { background: var(--crema); }
  .menu__voci { flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px; }
  .menu__voci > li { border-bottom: 1px solid var(--crema); }
  .menu__link { width: 100%; justify-content: space-between; padding: 18px 0; font-family: var(--serif); font-size: 26px; font-weight: 400; }
  .menu__link[aria-current="page"]::after { display: none; }
  .menu__link:active { color: var(--oro-testo); }
  .sottomenu {
    position: static;
    min-width: 0;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .menu__shop.is-aperto .sottomenu { display: block; transform: none; }
  .sottomenu a { padding: 10px 0 10px 14px; font-size: 18px; }
  .sottomenu__tutto { border-top: 0; margin-top: 0; padding-top: 0; }
  .social--menu { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
  .social--menu a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--oro-testo); font-weight: 500; }
  .social--menu .ico { color: var(--oro-icona); }

  .punti__scheda { grid-template-columns: repeat(2, 1fr); row-gap: 8px; padding-block: 14px; }
  .punto { padding: 12px; }
  .punto:nth-child(3) { border-left: 0; }
  .punto:nth-child(n+3) { border-top: 1.5px solid var(--crema); }
}

/* =================================================================
   Telefono (base da telefono: 09 § 5)
   ================================================================= */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .barra-annunci__in { min-height: 34px; }
  .barra-annunci__testo { font-size: 13px; padding: 7px 0; }
  .barra-annunci__testo span[aria-hidden] { margin: 0 .6em; }
  .social--barra { display: none; }

  /* hero: la foto sopra, il testo sotto; le tre slide scorrono col dito */
  .hero { height: auto; overflow: hidden; background: var(--crema); }
  .hero__binario {
    position: relative;
    inset: auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .hero__binario::-webkit-scrollbar { display: none; }
  .hero__slide {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    opacity: 1;
    visibility: visible;
    transition: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .hero__freccia { display: none; }
  .hero__pallini { bottom: auto; top: calc(85.25vw - 36px); }
  .hero__media, .hero__media--pannello {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    aspect-ratio: 800 / 682;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__media img { position: absolute; inset: 0; object-position: center; }
  .hero__cerchio { left: 14%; top: -18%; width: 92vw; max-width: none; }
  .hero__testo { height: auto; padding-top: 24px; padding-bottom: 70px; justify-content: flex-start; }
  .hero__testo .occhiello { font-size: 12px; margin-bottom: 12px; letter-spacing: .28em; }
  .hero__titolo { font-size: clamp(36px, 10vw, 46px); }
  .hero__titolo .corsivo { font-size: 1.36em; margin-top: -.1em; }
  .hero__sotto { margin-top: 4px; font-size: 17px; }
  .hero__azioni { gap: 14px 26px; margin-top: 20px; }
  .hero__azioni .btn { min-width: 0; min-height: 52px; font-size: 18px; padding-inline: 26px; }

  .punti { margin-top: -46px; }
  .punti__scheda { width: calc(100% - 2 * var(--margine)); padding-inline: 0; }
  .punto { padding: 10px 6px; gap: 8px; }
  .punto__ico { width: 36px; height: 36px; }
  .punto strong { font-size: 15px; }
  .punto span { font-size: 13px; }

  .titolo-sezione { font-size: 30px; }
  .titolo-sezione::after { width: 52px; margin-top: 10px; }

  /* categorie: una riga che scorre, col bordo della successiva in vista */
  .categorie { padding: 30px 0 6px; }
  .categorie .wrap-largo { padding-inline: 0; }
  .categorie__elenco {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 4px var(--margine) 8px;
    overscroll-behavior-x: contain;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--margine);
    scrollbar-width: none;
  }
  .categorie__elenco::-webkit-scrollbar { display: none; }
  .categorie__elenco li { flex: 0 0 34%; scroll-snap-align: start; }
  .categoria { gap: 8px; }
  .categoria__foto { width: 100%; margin-inline: 0; }
  .categoria__nome { font-size: 14px; }

  .outlet { padding: 16px 0 6px; }
  .outlet__scatola { grid-template-columns: 1fr; width: calc(100% - 2 * var(--margine)); }
  .outlet__foto { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .outlet__testo { padding: 26px 22px 28px 50px; }
  .outlet__testo .occhiello--filo::before { width: 22px; right: calc(100% + 10px); }
  .outlet__testo .occhiello { font-size: 12px; letter-spacing: .26em; }
  .outlet__titolo { margin-top: 12px; font-size: 34px; }
  .outlet__sotto { font-size: 17px; }
  .outlet__testo .btn { margin-top: 22px; min-width: 0; font-size: 18px; }

  .selezione { padding-top: 22px; }
  .selezione__testa { text-align: center; }
  .selezione__testa .link-oro, .categorie__testa .link-oro { position: static; margin-top: 12px; font-size: 16px; }
  .categorie__testa { text-align: center; }
  .prezzo.prezzo--attesa { font-size: 14px; line-height: 1.35; }
  .prodotto__prezzi { margin-bottom: 12px; }
  .prodotti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; margin-top: 32px; }
  .prodotto { padding: 20px 10px 12px; }
  .prodotto__cuore { top: 2px; right: 2px; }
  .prodotto__cuore .ico { width: 24px; height: 24px; }
  .prodotto__foto img { height: calc(100% + 30px); max-width: calc(100% + 16px); }
  .prodotto__marca { margin-top: 14px; font-size: 13.5px; }
  .prodotto__nome { font-size: 16px; }
  .prodotto__prezzi { gap: 2px 10px; margin-top: 10px; }
  .prezzo { font-size: 19px; }
  .prezzo-pieno { font-size: 15px; }
  .sconto { font-size: 17px; }
  .prodotto__pezzi { margin-top: 4px; font-size: 14px; }
  .btn--carrello { margin-top: auto; min-height: 44px; padding: 8px 4px; font-size: 13.5px; gap: 6px; letter-spacing: -.005em; }
  .prodotto__pezzi { margin-bottom: 12px; }
  .btn--carrello .ico { width: 18px; height: 18px; }
  .selezione__nota { font-size: 13px; }

  .prossimamente { flex-direction: column; align-items: stretch; width: 100%; min-height: 0; }
  .prossimamente__sfondo { position: relative; inset: auto; aspect-ratio: 2 / 1; }
  .prossimamente__sfondo img { position: absolute; inset: 0; }
  .prossimamente__testo { padding: 24px var(--margine) 30px calc(var(--margine) + 32px); }
  .prossimamente__testo .occhiello--filo::before { width: 22px; right: calc(100% + 10px); }
  .prossimamente__testo .occhiello { font-size: 12px; letter-spacing: .26em; }
  .prossimamente__titolo { font-size: 30px; }
  .prossimamente__sotto { font-size: 16px; }

  .mondo { padding: 34px 0 36px; }
  .mondo__in { flex-direction: column; align-items: stretch; gap: 22px; }
  .mondo__testo .occhiello { font-size: 12px; letter-spacing: .26em; }
  .mondo__titolo { font-size: 32px; }
  .mondo__sotto { font-size: 16px; }
  .mondo__azioni { flex-direction: column; gap: 12px; }
  .mondo__azioni .btn { width: 100%; justify-content: space-between; }

  .piede { padding: 28px 0 24px; font-size: 15px; }
  .piede__colonne { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 22px 18px; }
  .piede__colonna--nome, .piede__colonna:nth-child(3) { grid-column: 1 / -1; }
  .piede__fondo { flex-direction: column; gap: 12px; }
  .piede__dati { font-size: 12px; }

  .legale-pagina { padding: 32px 0 48px; }
  .legale { font-size: 16px; }
  .legale h2 { font-size: 22px; }
  .legale table { display: block; overflow-x: auto; }
}

@media (max-width: 1000px) and (min-width: 768px) {
  .prodotti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 22px; }
}
@media (max-width: 389px) {
  .btn--carrello { font-size: 12.5px; gap: 4px; padding-inline: 2px; white-space: normal; }
  .btn--carrello .ico { width: 16px; height: 16px; }
}
@media (max-width: 359px) {
  .logo, .menu__logo { width: 132px; }
  .testata__icona { width: 42px; }
  .hero__azioni .btn { width: 100%; }
  .prodotto__nome { font-size: 14px; }
  .btn--carrello { font-size: 12.5px; white-space: normal; }
}



/* =================================================================
   Step 5-bis · il movimento (regole di Emil Kowalski: 09 § 0-bis-2)
   Solo transform e opacity; entrate 0,7-0,9 s e 28-32 px; uscite più veloci.
   ================================================================= */
@keyframes thk-sale { from { opacity: 0; transform: translateY(var(--sale, 28px)); } to { opacity: 1; transform: none; } }
@keyframes thk-firma { from { clip-path: inset(-30% 100% -45% -10%); } to { clip-path: inset(-30% -10% -45% -10%); } }
@keyframes thk-cerchio { from { opacity: 0; transform: scale(var(--cerchio, .94)); } to { opacity: 1; transform: none; } }
@keyframes thk-respira { from { transform: scale(var(--zoom, 1.06)); } to { transform: none; } }
@keyframes thk-batte { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* la prima schermata che entra: testo in cascata, la firma d'oro che si scrive, il cerchio, la scheda dei punti.
   La foto non parte mai da opacity 0: si assesta soltanto. */
.hero__testo > * { --d: 0s; }
.hero__testo > :nth-child(2) { --d: .12s; }
.hero__testo > :nth-child(3) { --d: .3s; }
.hero__testo > :nth-child(4) { --d: .42s; }
.hero__slide--prima .hero__testo > * { animation: thk-sale .9s var(--ease-out) calc(var(--d) + .1s) both; }
.hero__slide--prima .corsivo { animation: thk-firma 1.3s var(--ease-in-out) .5s both; }
.hero__slide--prima .hero__media img { animation: thk-respira 1.8s var(--ease-out) both; }
.hero__cerchio { animation: thk-cerchio 1.4s var(--ease-out) .35s both; }
.punti__scheda { animation: thk-sale .9s var(--ease-out) .55s both; }

@media (min-width: 768px) {
  /* da computer ogni slide che arriva rientra col suo testo */
  .hero__slide .hero__testo > *, .hero__slide .corsivo, .hero__slide .hero__media img { animation: none; }
  .hero__slide.is-attiva .hero__testo > * { animation: thk-sale .8s var(--ease-out) calc(var(--d) + .12s) both; }
  .hero__slide.is-attiva .corsivo { animation: thk-firma 1.2s var(--ease-in-out) .42s both; }
  .hero__slide.is-attiva .hero__media img { animation: thk-respira 1.8s var(--ease-out) both; }
}

/* le sezioni che arrivano scorrendo (.reveal → .in, una volta sola) */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--sale, 32px));
  transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 70ms), transform .8s var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .prodotto.reveal {
  transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 70ms), transform .8s var(--ease-out) calc(var(--i, 0) * 70ms),
              box-shadow .25s ease, border-color .25s ease;
}
/* la foto del banner outlet si svela dal pannello rosa */
.js .reveal.rivela { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-in-out) .1s; }
.js .reveal.rivela.in { clip-path: inset(0); }
.js .rivela img { transform: scale(1.08); transition: transform 1.6s var(--ease-out) .1s; }
.js .rivela.in img { transform: none; }

/* il cuore dei preferiti batte quando si accende */
.prodotto__cuore .ico { transition: fill .2s ease; }
.prodotto__cuore[aria-pressed="true"] .ico { animation: thk-batte .32s var(--ease-out); }

/* la scheda prodotto risponde anche al dito */
.prodotto:active { border-color: var(--oro-linea); }

/* le bolle di «Prossimamente»: una profondità leggera (la muove main.js, solo col mouse) */
.prossimamente__sfondo img { will-change: transform; }

/* il menu da telefono: le voci arrivano una dopo l'altra, e se ne vanno più in fretta */
@media (max-width: 1100px) {
  .menu__voci > li, .social--menu {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .15s ease, transform .15s var(--ease-out);
  }
  .menu.is-aperto .menu__voci > li, .menu.is-aperto .social--menu {
    opacity: 1;
    transform: none;
    transition: opacity .35s var(--ease-out) calc(var(--i, 0) * 45ms + 60ms), transform .35s var(--ease-out) calc(var(--i, 0) * 45ms + 60ms);
  }
  .menu__voci > li:nth-child(2) { --i: 1; }
  .menu__voci > li:nth-child(3) { --i: 2; }
  .menu__voci > li:nth-child(4) { --i: 3; }
  .menu__voci > li:nth-child(5) { --i: 4; }
  .social--menu { --i: 5; }
}

/* meno movimento, non zero: restano le dissolvenze, spariscono gli spostamenti */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; --sale: 0px; --zoom: 1; --cerchio: 1; }
  .hero__slide--prima .corsivo, .hero__slide.is-attiva .corsivo { animation-name: thk-cerchio; }
  .js .reveal.rivela { clip-path: none; opacity: 0; transition: opacity .8s ease; }
  .js .reveal.rivela.in { opacity: 1; }
  .js .rivela img { transform: none; }
  .prodotto__cuore[aria-pressed="true"] .ico { animation: none; }
  .categoria__foto, .prodotto__foto img, .ico--freccia { transition: none; }
  .menu__voci > li, .social--menu { transform: none !important; }
}

/* la barra in alto da telefono: la seconda metà solo se ci sta */
@media (max-width: 479px) { .barra-annunci__seconda { display: none; } }
