/* Magritte – gelati al cubo
   Fondi pieni come nei loro scatti su Instagram (rosso, azzurro, giallo, rosa),
   prodotto scontornato in primo piano, una parola scritta a mano dietro. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/jost.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Kaushan Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kaushan-script-400.woff2") format("woff2");
}

:root {
  --rosso: #d00d1f;
  --azzurro: #8ccfe8;
  --giallo: #f6c63a;
  --rosa: #f3b7c6;
  --verde: #7cb342;
  --panna: #fff8ee;
  --cacao: #2b1a14;
  --tenue: #6d5a52;
  --bianco: #ffffff;

  --testo: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --mano: "Kaushan Script", "Brush Script MT", cursive;

  /* con viewport-fit=cover la pagina arriva sotto notch e barra home: i margini ne tengono conto */
  --gutter: max(clamp(1rem, 4.5vw, 3.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --sezione: clamp(4.5rem, 10vw, 8.5rem);
  --max: 78rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--panna);
  color: var(--cacao);
  font-family: var(--testo);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: var(--cacao); color: var(--bianco); }
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }

/* ---------- Bottoni ---------- */

.actions, .slide-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--cacao); color: var(--bianco); }
.btn-solid:hover { background: var(--rosso); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--cacao); border-color: var(--cacao); color: var(--bianco); }

/* ---------- Testata ---------- */

.topbar {
  position: absolute; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; gap: 1.5rem;
  padding: clamp(0.9rem, 2.2vw, 1.5rem) max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
  color: var(--ink, var(--bianco));
}
.logo {
  display: inline-flex; flex-direction: column; margin: 0;
  font-family: var(--mano); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1;
  text-decoration: none;
}
.logo span { font-family: var(--testo); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; margin: 0.45rem 0 0 0.2rem; }
.topbar nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-list a { font-weight: 500; text-decoration: none; }
.nav-list a:hover { text-decoration: underline; }
.topbar-ig { font-weight: 600; text-decoration: none; padding: 0.45rem 1rem; border: 2px solid currentColor; border-radius: 999px; }
.nav-toggle { display: none; }

@media (max-width: 63.99rem) {
  .topbar-ig { display: none; }
  .nav-toggle {
    position: relative; z-index: 2; display: inline-flex; align-items: center;
    min-height: 2.75rem; padding: 0 1.15rem;
    border: 2px solid currentColor; border-radius: 999px;
    background: transparent; color: inherit; font: 600 1rem/1 var(--testo); cursor: pointer;
  }
  .nav-list {
    position: fixed; inset: 0; z-index: 1; display: none;
    flex-direction: column; justify-content: center; gap: 0.3rem;
    padding: 5rem var(--gutter) 3rem; background: var(--rosso); color: var(--bianco);
  }
  .nav-list a { font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; line-height: 1.2; }
  .nav-open .nav-list { display: flex; }
  .nav-open { overflow: hidden; }
  .nav-open .topbar { color: var(--bianco); }
  .logo { position: relative; z-index: 2; }
}

/* ---------- Apertura: carosello ---------- */

.hero {
  --bg: #d00d1f;
  --ink: var(--bianco);
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.6s ease;
}
.hero[data-ink="dark"] { --ink: var(--cacao); }
.hero .btn-solid { background: var(--ink); color: var(--bg); }
.hero .btn-solid:hover { background: var(--cacao); color: var(--bianco); }
.hero[data-ink="dark"] .btn-solid:hover { background: var(--bianco); color: var(--cacao); }
.hero .btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* tutte le slide nella stessa cella: l'altezza resta quella della più alta, niente salti */
.slides { position: relative; display: grid; }
.slide { grid-area: 1 / 1; }
html:not(.no-js) .slide[hidden] { display: grid; visibility: hidden; }

.slide {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5.5rem var(--gutter) 8.5rem;
  align-content: start;
}
.slide[hidden] { display: none; }

/* parola scritta a mano, enorme, dietro al prodotto */
.slide-word {
  position: absolute;
  left: 0; right: 0; top: 5.5rem;
  margin: 0;
  font-family: var(--mano);
  font-size: clamp(4.5rem, 2rem + 13vw, 15rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.slide-product {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: auto;
  max-width: min(92vw, 34rem);
  /* sul telefono il prodotto prende lo spazio che resta: testo e miniature stanno nel primo schermo */
  max-height: clamp(10rem, 100svh - 35rem, 46svh);
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgb(0 0 0 / 0.28));
}

.slide-text { position: relative; z-index: 2; max-width: 34rem; margin-top: 1rem; }
.slide-kicker { margin: 0 0 0.5rem; font-weight: 600; font-size: 1rem; }
.slide-title { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; }
.slide-body { margin-top: 0.9rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.5; max-width: 30rem; }

@media (min-width: 64rem) {
  .slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.35fr);
    align-content: center; align-items: center;
    padding: 7rem max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter)) 8rem;
  }
  /* come un'insegna: la parola attraversa lo schermo sopra al prodotto */
  .slide-word { top: 4.5rem; font-size: clamp(7rem, 3rem + 10vw, 14rem); }
  .slide-text { grid-column: 1; grid-row: 1; margin-top: 0; }
  .slide-title { font-size: clamp(2.2rem, min(1.2rem + 2.6vw, 6.2vh), 3.9rem); }
  .slide-product { grid-column: 2; grid-row: 1; max-width: 100%; max-height: 68vh; }
}

/* entrata della slide: il prodotto sale, il testo arriva */
.slide.is-entering .slide-product { animation: sale 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.slide.is-entering .slide-text { animation: arriva 0.6s 0.08s ease-out both; }
.slide.is-entering .slide-word { animation: parola 0.9s ease-out both; }
@keyframes sale { from { opacity: 0; transform: translateY(2.5rem) rotate(-4deg) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes arriva { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes parola { from { opacity: 0; letter-spacing: 0.05em; } to { opacity: 0.16; } }

.hero-controls {
  position: absolute; z-index: 5;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 1rem;
  padding: 0 max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter)) clamp(1rem, 3vh, 2rem);
}
.hero-arrows { display: flex; gap: 0.5rem; }
.arrow {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; color: inherit;
  font: 600 1.2rem/1 var(--testo); cursor: pointer;
}
.arrow:hover { background: var(--ink); color: var(--bg); }

/* Le miniature: icona tonda + nome, si capisce che sono bottoni */
.thumbs-box { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.thumbs-label { margin: 0; font-size: 0.95rem; font-weight: 600; }
.thumbs { display: flex; gap: 0.6rem; }
.thumbs button {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  width: 5.25rem; padding: 0.2rem 0;
  border: 0; background: none; color: inherit;
  font: 500 0.8rem/1.15 var(--testo); text-align: center; cursor: pointer;
}
.thumb-pic {
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem; padding: 0.45rem; border-radius: 50%;
  background: rgb(255 255 255 / 0.3);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.6);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero:not([data-ink="dark"]) .thumb-pic { background: rgb(0 0 0 / 0.16); }
.thumb-pic img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button:hover .thumb-pic { transform: translateY(-0.15rem); background: rgb(255 255 255 / 0.55); }
.thumbs button[aria-current="true"] .thumb-pic {
  background: var(--bianco);
  transform: scale(1.1);
  box-shadow: 0 0.4rem 1rem rgb(0 0 0 / 0.22);
}
.thumbs button[aria-current="true"] .thumb-name { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.no-js .hero-controls { display: none; }

@media (max-width: 63.99rem) {
  /* sul telefono l'apertura è alta quanto i suoi contenuti: niente vuoti */
  .slide { min-height: 0; padding: 5.25rem var(--gutter) 0.5rem; }
  /* il prodotto prende lo spazio che resta, così miniature e nomi stanno nel primo schermo */
  .slide-product { max-height: clamp(10rem, 100svh - 34rem, 42svh); }
  .slide-word { top: 4.5rem; }
  .hero-controls {
    position: static;
    display: block;
    padding: 0.85rem var(--gutter) 1.1rem;
  }
  /* frecce ai lati del prodotto */
  .hero-arrows {
    position: absolute; z-index: 4;
    left: 0; right: 0;
    top: calc(5.25rem + clamp(5rem, 50svh - 17rem, 21svh) - 1.4rem);
    display: flex; justify-content: space-between;
    padding-inline: 0.35rem;
    pointer-events: none;
  }
  .arrow {
    pointer-events: auto;
    width: 2.75rem; height: 2.75rem; border: 0;
    background: rgb(255 255 255 / 0.9); color: var(--cacao);
    box-shadow: 0 0.3rem 0.8rem rgb(0 0 0 / 0.2);
  }
  .arrow:hover { background: var(--bianco); color: var(--cacao); }
  .thumbs-box { align-items: center; margin: 0; }
  .thumbs { justify-content: space-between; gap: 0.2rem; width: 100%; max-width: 26rem; }
  .thumbs li { flex: 1; display: flex; justify-content: center; }
  .thumbs button { width: 100%; font-size: 0.72rem; }
  .thumb-pic { width: clamp(3.1rem, 14vw, 3.75rem); height: clamp(3.1rem, 14vw, 3.75rem); padding: 0.3rem; }
}

/* ---------- Le due città ---------- */

.towns { display: grid; grid-template-columns: 1fr 1fr; }
.town {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter);
  background: var(--cacao); color: var(--panna);
  text-decoration: none;
  transition: background-color 0.2s;
}
.town + .town { background: #3a251d; }
.town:hover { background: var(--rosso); }
.town-name { font-family: var(--mano); font-size: clamp(1.9rem, 1.4rem + 2vw, 3.2rem); line-height: 1.1; }
.town-info { font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem); font-weight: 500; opacity: 0.85; }
.town-status { display: flex; align-items: center; gap: 0.4rem; min-height: 1.3em; font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem); font-weight: 600; }
.town-status:empty { display: none; }
.town-status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #9e8a80; }
.town-status.is-open::before { background: #6fd36f; box-shadow: 0 0 0 0.2rem rgb(111 211 111 / 0.25); }

/* ---------- Gusti ---------- */

.gusti { padding-top: var(--sezione); overflow: hidden; }
.script-word {
  margin: 0 0 0.2em;
  font-family: var(--mano);
  font-size: min(9rem, 8.2vw + 0.2rem);
  line-height: 1;
  color: var(--rosso);
  opacity: 0.9;
  white-space: nowrap;
}
.gusti-head { display: grid; gap: 1rem 3rem; position: relative; }
.gusti-head p { color: var(--tenue); font-size: 1.125rem; max-width: 34rem; }
@media (min-width: 64rem) { .gusti-head { grid-template-columns: 1fr 1fr; align-items: end; } }

.flavours {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 78%);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: clamp(2rem, 4vw, 3.5rem) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
@media (min-width: 64rem) {
  .flavours { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; }
}
.flavour {
  scroll-snap-align: start;
  padding: 0.75rem 0.75rem 1.4rem;
  border-radius: 1.5rem;
  background: var(--tint, var(--bianco));
}
.flavour img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1rem; }
.flavour h3 { margin: 1rem 0.5rem 0.25rem; }
.flavour p { margin: 0 0.5rem; color: var(--tenue); }
.gusti-more { margin-top: 1.5rem; color: var(--tenue); }

.telabianca {
  margin-top: var(--sezione);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--bianco);
}
.telabianca-inner { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .telabianca-inner { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.telabianca-mark {
  margin: 0 0 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  color: var(--rosso);
}
.telabianca-text h2 { margin-bottom: 1rem; }
.telabianca-text p { color: var(--tenue); font-size: 1.1rem; }
/* Le schede dei gusti telabianca: si scorrono col dito sul telefono */
.telabianca-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 72%);
  gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
@media (min-width: 64rem) {
  .telabianca-list { grid-auto-flow: row; grid-template-columns: 1fr 1fr; margin-inline: 0; padding-inline: 0; overflow: visible; }
}
.telabianca-list li {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 0.5rem;
  min-height: 11rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--card, #fde3ea);
}
.telabianca-list li:nth-child(6n+2) { --card: #dcecf2; }
.telabianca-list li:nth-child(6n+3) { --card: #fbe7b5; }
.telabianca-list li:nth-child(6n+4) { --card: #e3d7f0; }
.telabianca-list li:nth-child(6n+5) { --card: #f7d6c4; }
.telabianca-list li:nth-child(6n+6) { --card: #e2edc9; }
.telabianca-list b { font-size: 1.25rem; font-weight: 700; line-height: 1.15; color: var(--cacao); }
.telabianca-list span { color: var(--tenue); font-size: 0.98rem; line-height: 1.4; }
.telabianca-list i { margin-top: auto; font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--rosso); }

/* ---------- Non solo gelato ---------- */

.menu { padding-block: var(--sezione); background: var(--giallo); overflow: hidden; }
.menu-lead { max-width: 36rem; margin-top: 1rem; font-size: 1.15rem; }
.menu-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 62%);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
@media (min-width: 64rem) {
  .menu-strip {
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr);
    max-width: var(--max); margin-inline: auto; overflow: visible;
  }
}
.menu-strip li { scroll-snap-align: start; }
.menu-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.25rem; }
.menu-strip h3 { margin-top: 0.9rem; }
.menu-strip p { margin-top: 0.25rem; font-size: 1rem; }

.praline-row { margin-top: clamp(3rem, 6vw, 4.5rem); }
.praline-row h3 { font-family: var(--mano); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 400; }
.praline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 0.75rem; margin-top: 1.25rem;
}
@media (min-width: 64rem) { .praline { grid-template-columns: repeat(8, 1fr); } }
.praline li { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; font-size: 0.85rem; line-height: 1.25; font-weight: 500; }
.praline img { width: min(100%, 5.5rem); filter: drop-shadow(0 0.5rem 0.6rem rgb(0 0 0 / 0.3)); transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.praline li:hover img { transform: rotate(-18deg) scale(1.1); }

/* ---------- SCOOP! ---------- */

.scoop { padding-block: var(--sezione); background: var(--azzurro); }
.scoop-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .scoop-inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.scoop h2 span {
  display: block;
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem);
  font-weight: 800;
  color: var(--rosso);
  line-height: 0.95;
  -webkit-text-stroke: 2px var(--cacao);
  text-shadow: 0.25rem 0.25rem 0 var(--cacao);
}
.scoop-text p { font-size: 1.1rem; max-width: 32rem; }
.scoop-text h2 { margin-bottom: 1.25rem; }
.scoop-names { font-weight: 600; }
.scoop-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.scoop-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1.25rem; }
.scoop-photos img:first-child { transform: rotate(-3deg); }
.scoop-photos img:last-child { transform: rotate(2deg) translateY(1.5rem); }

/* ---------- Premi ---------- */

.premi { padding-block: var(--sezione); background: var(--rosso); color: var(--bianco); }
.premi-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .premi-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem 4rem; } }
.premi-rank { margin: 0; font-size: clamp(8rem, 5rem + 14vw, 15rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; }
.premi h2 { max-width: 18ch; margin-top: 0.5rem; }
.premi-sub { margin-top: 1rem; font-size: 1.15rem; font-weight: 500; }
.premi-photo { margin: 0; }
.premi-photo img { width: 100%; border-radius: 1.25rem; }
.premi-photo figcaption { margin-top: 0.6rem; font-size: 0.95rem; }
.premi-list { display: grid; gap: 0; }
@media (min-width: 64rem) { .premi-list { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.premi-list li { padding: 1rem 0; border-top: 1px solid rgb(255 255 255 / 0.4); font-size: 1rem; }
.premi-list b { display: block; font-size: 1.1rem; }

/* ---------- Recensioni ---------- */

.reviews { padding-block: var(--sezione); background: #fde3ea; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.ratings { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ratings a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--bianco); color: var(--cacao);
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  box-shadow: 0 0.4rem 1rem -0.5rem rgb(43 26 20 / 0.3);
}
.ratings b { font-size: 1.1rem; }
.stars { color: #f2a516; letter-spacing: 0.06em; }

.review-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 84%);
  gap: 0.75rem; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 1.75rem calc(var(--gutter) * -1) 0;
  padding: 0.75rem var(--gutter) 1.25rem; scroll-padding-inline: var(--gutter);
}
@media (min-width: 64rem) {
  .review-list { display: block; columns: 3; column-gap: 1rem; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .review { break-inside: avoid; margin-bottom: 1rem; }
}
.review {
  scroll-snap-align: start;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--bianco); color: var(--cacao);
  box-shadow: 0 0.9rem 2rem -1.1rem rgb(43 26 20 / 0.35);
}
.review-head { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  flex: none; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--av); color: var(--cacao);
  font-weight: 700; font-size: 1.1rem;
}
.review-who { display: flex; flex-direction: column; line-height: 1.25; }
.review-who b { font-weight: 600; }
.review-who span { font-size: 0.85rem; color: var(--tenue); }
.review .stars { display: block; margin: 0.85rem 0 0.4rem; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; }

/* ---------- Regali ---------- */

.regali { padding-block: var(--sezione); background: var(--rosa); }
.regali-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .regali-inner { grid-template-columns: 1fr 1fr; } }
.regali p { font-size: 1.1rem; max-width: 34rem; margin-top: 1rem; }
.regali-foto { border-radius: 1.5rem; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 1.25rem 2.5rem -1rem rgb(43 26 20 / 0.35); }

/* ---------- Dove siamo ---------- */

.dove { padding-block: var(--sezione); background: var(--cacao); color: var(--panna); }
.dove h2 { max-width: 18ch; }
.shops { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 64rem) { .shops { grid-template-columns: 1fr 1fr; } }
.shop { overflow: hidden; border-radius: 1.75rem; background: var(--panna); color: var(--cacao); }
.shop > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shop-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.shop h3 { font-family: var(--mano); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 400; line-height: 1; }
.shop-address { margin-top: 0.8rem; font-weight: 600; font-size: 1.15rem; }
.shop-rating { margin-top: -0.6rem; color: var(--rosso); font-weight: 600; }
.shop-body > p:not(.shop-address):not(.shop-rating) { color: var(--tenue); }
.hours-box { margin-top: 1.1rem; max-width: 24rem; }
.hours-box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 2.75rem; padding: 0.4rem 0;
  border-bottom: 1px solid rgb(43 26 20 / 0.15);
  cursor: pointer; list-style: none; font-weight: 600;
}
.hours-box summary::-webkit-details-marker { display: none; }
.shop-status { display: flex; align-items: center; gap: 0.45rem; }
.shop-status:empty::after { content: "Orari di ottobre"; }
.shop-status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #b9a79e; }
.shop-status:empty::before { display: none; }
.shop-status.is-open { color: #1f7a33; }
.shop-status.is-open::before { background: #38b54a; box-shadow: 0 0 0 0.22rem rgb(56 181 74 / 0.22); }
.hours-toggle { display: flex; align-items: center; gap: 0.35rem; color: var(--tenue); font-weight: 500; font-size: 0.95rem; }
.hours-toggle::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.25s ease; }
.hours-box[open] .hours-toggle::after { transform: translateY(0.1rem) rotate(-135deg); }
.hours { width: 100%; max-width: 22rem; margin-top: 0.5rem; border-collapse: collapse; font-size: 1rem; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: 0.35rem; }
.hours th, .hours td { padding: 0.35rem 0; border-bottom: 1px solid rgb(43 26 20 / 0.12); }
.hours th { text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.shop .btn-solid { background: var(--rosso); }
.shop .btn-solid:hover { background: var(--cacao); }
.dove-note { margin-top: 2rem; max-width: 42rem; opacity: 0.85; }

/* ---------- Chi siamo ---------- */

.chi { padding-block: var(--sezione); }
.chi-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .chi-inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.chi img { border-radius: 1.5rem; }
.chi p { font-size: 1.1rem; max-width: 36rem; margin-top: 1rem; }

/* ---------- Instagram ---------- */

.ig { padding-block: clamp(2.5rem, 5vw, 3.5rem); background: var(--giallo); }
.ig-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.ig h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 1.5rem; }
@media (min-width: 64rem) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 0.75rem; } }
.ig-grid a { display: block; overflow: hidden; border-radius: 0.9rem; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s ease; }
.ig-grid a:hover img { transform: scale(1.06); }

/* ---------- Piè di pagina ---------- */

.footer { padding: 3rem 0 2.5rem; background: #1d110d; color: rgb(255 248 238 / 0.8); font-size: 0.95rem; }
.footer a { color: var(--panna); }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; } }
.logo-footer { color: var(--panna); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.875rem; }
.footer-legal p { margin: 0; }

/* ---------- Barra chiamate (telefono) ---------- */

/* attaccata al bordo dello schermo: il rosso continua anche sotto la barra home dell'iPhone */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--rosso);
  transform: translateY(100%); transition: transform 0.25s ease;
}
.call-bar.is-visible { transform: none; }
.call-bar a { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; background: var(--rosso); color: var(--bianco); font-weight: 600; text-decoration: none; }
.call-bar a + a { box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.35); }
.call-bar a:focus-visible { outline-offset: -5px; }
@media (max-width: 63.99rem) { .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }
@media (min-width: 64rem) { .call-bar { display: none; } }

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .call-bar, .praline img, .thumbs button, .town { transition: none; }
  .slide.is-entering .slide-product,
  .slide.is-entering .slide-text,
  .slide.is-entering .slide-word { animation: none; }
}


/* ---------- File scorrevoli («rail»): una scheda alla volta, frecce e pallini ---------- */

.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (max-width: 63.99rem) {
  .rail {
    grid-auto-columns: 100%;
    gap: var(--gutter);
    scroll-snap-type: x mandatory;
  }
  .rail > li { scroll-snap-stop: always; }
}
.rail-nav { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.75rem; }
.rail-nav[hidden] { display: none; }
.rail-arrow {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; color: inherit;
  font: 600 1.1rem/1 var(--testo); cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}
.rail-arrow:not(:disabled):hover { background: rgb(0 0 0 / 0.08); }
.rail-arrow:disabled { opacity: 0.25; cursor: default; }
.rail-dots { display: flex; gap: 0.1rem; }
.rail-dots button {
  display: grid; place-items: center;
  min-width: 1.4rem; height: 1.5rem; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.rail-dots button::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: currentColor; opacity: 0.28;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.rail-dots button[aria-current="true"]::before { width: 1.6rem; opacity: 0.85; }

/* ---------- Lo sfondo della pagina cambia colore mentre scorri ---------- */

html.morph body { background-color: var(--page-bg, var(--panna)); transition: background-color 0.7s ease; }
html.morph main > [data-tone],
html.morph .telabianca { background: transparent; color: var(--page-ink, var(--cacao)); transition: color 0.7s ease; }

/* ---------- I contenuti entrano mentre scorri ---------- */

html.reveal [data-reveal] {
  opacity: 0;
  transform: translateY(2.2rem) scale(0.97);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
html.reveal img[data-reveal] { transform: scale(1.08); }
html.reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.morph body, html.morph main > [data-tone] { transition: none; }
}

/* le file scorrevoli e la loro spintarella non devono mai far scorrere la pagina di lato */
main { overflow-x: clip; }

/* telefoni bassi (iPhone SE): miniature e nomi sempre nel primo schermo */
@media (max-width: 63.99rem) and (max-height: 720px) {
  .slide-product { max-height: clamp(8.5rem, 100svh - 33rem, 42svh); }
  .hero-arrows { top: calc(5.25rem + 4.25rem - 1.4rem); }
  .hero-controls { padding-top: 0.6rem; padding-bottom: 0.8rem; }
  .thumbs-box { gap: 0.4rem; }
}


/* Frecce disegnate (non caratteri di testo): sempre al centro del cerchio */
.arrow, .rail-arrow { display: inline-grid; place-items: center; padding: 0; }
.arrow svg, .rail-arrow svg {
  display: block; width: 1.25rem; height: 1.25rem;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
