/*
 * sito.css — stile di tutto il sito (index.html).
 * Ordine: font, base, menu, vetrina, nastro, gusti, tavola, territorio, foto, gioco,
 * etichetta, famiglia, locali, piè di pagina, ingresso 18+, accessibilità.
 * Attenzione: l'ordine delle regole conta (la cascata), non spostarle senza provare la pagina.
 * Dove una proprietà usa color-mix() (iOS 16.2+) c'è prima una riga di riserva per i browser più vecchi.
 */

/* ---- Font (ospitati nel sito, in fonts/) ---- */
@font-face {
  font-family: 'DM Serif Display';
  src: url(../fonts/DMSerifDisplay-Regular.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url(../fonts/DMSerifDisplay-Italic.woff) format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url(../fonts/Barlow-Regular.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url(../fonts/Barlow-Medium.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url(../fonts/Barlow-SemiBold.woff) format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url(../fonts/BarlowCondensed-Medium.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url(../fonts/BarlowCondensed-SemiBold.woff) format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url(../fonts/BarlowCondensed-Bold.woff) format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Colori, font e base della pagina ----
   Carta avorio materica, titoli maiuscoli con una parola in corsivo rosso, mosaico delle etichette. */
:root {
  --red: #e3202c;
  --ink: #1c1813;
  --cream: #f6f1e6;
  --paper: #ece4d3;
  --muted: #5e5547;
  --olive: #a8a848;
  --serif: 'DM Serif Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 5vw, 80px);
  --fl-bg: #f5dc3c;
  --fl-fg: #1c1813;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: clip;
}
body {
  background: var(--cream) var(--grain);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
::selection {
  background: var(--red);
  color: var(--cream);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  font-weight: 400;
}
p {
  margin: 0;
}
.wrap {
  padding-inline: var(--gut);
}
.T {
  font-family: var(--serif);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.T i {
  font-style: italic;
  text-transform: none;
  color: var(--red);
  letter-spacing: 0;
}
.label {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 500;
  font-size: 13px;
}

/* ---- Menu in alto (pillola fissa) ---- */
.nav {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  background: rgba(246, 241, 230, 0.82);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(28, 24, 19, 0.14);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(28, 24, 19, 0.35);
  max-width: calc(100% - 24px);
}
.nav img {
  height: 30px;
  width: auto;
  margin-right: 10px;
}
.nav a.l {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color 0.2s;
}
@media (hover: hover) {
  .nav a.l:hover {
    background: rgba(28, 24, 19, 0.08);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
  }
}
.nav .wa {
  background: var(--red);
  color: var(--cream);
  margin-left: 4px;
}
@media (max-width: 760px) {
  .nav a.l:not(.wa) {
    display: none;
  }
  .nav {
    left: auto;
    right: 12px;
    transform: none;
  }
}

main > section,
main > div,
footer {
  position: relative;
  z-index: 1;
}

/* ---- Vetrina in alto ---- */
.hero {
  padding-top: clamp(96px, 12vw, 140px);
  padding-bottom: clamp(48px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 7.2vw, 7.2rem);
}
.hero .lead {
  max-width: 36ch;
  margin-top: 30px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
}
.hero .label {
  color: var(--muted);
  margin-bottom: 22px;
  display: block;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  padding: 16px 26px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  transition:
    transform 0.16s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}
@media (hover: hover) {
  .btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--cream);
  }
}
.stage {
  position: relative;
  aspect-ratio: 1/1.12;
  max-width: 100%;
}
.mosaic {
  position: absolute;
  inset: 0 0 14% 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  border-radius: 28px;
  overflow: hidden;
}
.mosaic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cell {
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hero-bottle {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 96%;
  width: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 28px rgba(28, 24, 19, 0.3));
  transition: opacity 0.35s ease;
}
.hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 500px;
    width: 100%;
    margin-inline: auto;
  }
}

/* ---- "Il gesto": le tre righe dopo la vetrina ---- */
.gesto {
  padding-block: clamp(40px, 6vw, 90px) clamp(60px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.gesto p {
  grid-column: 3/11;
}
.gesto .g1 {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 15px;
  color: var(--muted);
}
.gesto .g2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  margin-top: 6px;
}
.gesto .g2 i {
  color: var(--red);
}
.gesto .g3 {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
  margin-top: 14px;
}
@media (max-width: 760px) {
  .gesto p {
    grid-column: 1/-1;
  }
}
/* ---- Nastro rosso inclinato con i nomi dei gusti ---- */
.marq-w {
  padding-block: 22px;
  overflow: hidden;
}
.marq {
  background: var(--red);
  color: var(--cream);
  overflow: hidden;
  padding-block: 16px;
  white-space: nowrap;
  margin-inline: -2%;
  transform: rotate(-1.6deg);
  clip-path: polygon(0 0, 100% 0, 98.6% 50%, 100% 100%, 0 100%, 1.4% 50%);
  box-shadow: 0 14px 26px -16px rgba(120, 10, 15, 0.6);
}
.marq div {
  display: inline-flex;
  gap: 40px;
  animation: mq 46s linear infinite;
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 30px);
}
.marq span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marq span::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--cream);
  transform: rotate(45deg);
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Schede dei gusti ---- */
.flav {
  background: var(--fl-bg) var(--grain);
  color: var(--fl-fg);
  transition:
    background-color 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.5s;
  padding-block: clamp(72px, 8vw, 130px);
  overflow: hidden;
}
.flav-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.flav-head h2 {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
}
.flav-head h2 i {
  color: inherit;
  opacity: 0.9;
}
.flav-head p {
  max-width: 38ch;
  opacity: 0.85;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: clamp(32px, 5vw, 60px);
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 15px;
  padding: 10px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.16s;
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-pressed='true'] {
  background: var(--fl-fg);
  color: var(--fl-bg);
}
.flav-body {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.75fr) 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.f-name {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs, clamp(3rem, 7vw, 7rem));
  line-height: 0.86;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}
.f-type {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  display: block;
  margin-top: 6px;
}
.f-tile {
  margin-top: 26px;
  width: min(300px, 100%);
  aspect-ratio: 2/1;
  background: #fbf8f1;
  padding: 10px;
  border-radius: 6px;
}
.f-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bottle-wrap {
  position: relative;
  height: clamp(380px, 46vw, 620px);
  touch-action: pan-y;
}
.bottle-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.25));
}
.bottle-wrap .solo {
  inset: auto 5% 30% 5%;
  width: 90%;
  height: auto;
  filter: none;
  background: #fbf8f1;
  padding: 14px;
  border-radius: 8px;
}
.facts {
  display: grid;
  min-width: 0;
}
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-block: 16px;
  border-top: 1.5px solid rgba(128, 128, 128, 0.45);
  border-top: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  align-items: baseline;
}
.fact:last-of-type {
  border-bottom: 1.5px solid rgba(128, 128, 128, 0.45);
  border-bottom: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
}
.fact dt {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  opacity: 0.8;
}
.fact dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fact dd.big {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}
.fact[hidden] {
  display: none;
}
.fact.key dd {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.1;
}
.fact.long {
  grid-template-columns: 1fr;
  gap: 6px;
}
.fact.long dd {
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.85;
}
.allergen {
  display: inline-block;
  font: 700 13px/1 var(--cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 6px 12px;
}
.f-made {
  margin: 14px 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}
.facts .btn {
  margin-top: 24px;
  justify-self: start;
  background: var(--fl-fg);
  color: var(--fl-bg);
  border-color: var(--fl-fg);
}
.flav-nav {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.flav-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.16s;
}
.flav-nav button:active {
  transform: scale(0.93);
}
@media (max-width: 900px) {
  .flav-body {
    grid-template-columns: 1fr;
  }
  .bottle-wrap {
    order: -1;
    height: 420px;
  }
}

/* Bottiglia 3D dentro la scheda del gusto */
#b3d {
  position: absolute;
  inset: 0;
}
.b3d-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.bottle-wrap.is3d #fBottle {
  visibility: hidden;
}
/* ---- Tavola: bottiglie e bicchierini ---- */
.tavola {
  padding-block: clamp(40px, 6vw, 90px) clamp(90px, 10vw, 150px);
}
.tv-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.tv-head h2 {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
}
.tv-head p {
  max-width: 36ch;
  color: var(--muted);
}
.tv-wrap {
  display: grid;
  gap: 18px;
  max-width: 1000px;
  margin-inline: auto;
}
.table {
  position: relative;
  aspect-ratio: 16/8;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #8a5a3b;
  box-shadow: 0 30px 60px -30px rgba(28, 24, 19, 0.55);
  touch-action: none;
}
.table::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 38px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #9a6a47, #7c4f33);
}
.cloth {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14%;
  bottom: 14%;
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, rgba(28, 24, 19, 0.05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(28, 24, 19, 0.05) 0 2px, transparent 2px 6px), #f3ecdd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.cup {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fbf8f1 0 58%, #e9e1d0 60% 100%);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.cup i {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #5a3a22, #2a1810 70%);
  box-shadow: inset 0 0 0 3px #fbf8f1;
}
.c1 {
  left: 14%;
  top: 22%;
}
.c2 {
  right: 14%;
  bottom: 22%;
}
.glass {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 34%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.35) 40%,
    rgba(200, 200, 200, 0.25) 70%
  );
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.75),
    0 6px 10px rgba(0, 0, 0, 0.18);
}
.glass b {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: var(--gl, transparent);
  transform: scale(var(--gs, 0));
  transition:
    transform 0.9s cubic-bezier(0.34, 1.3, 0.64, 1),
    background-color 0.4s;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.glass b::after {
  content: '';
  position: absolute;
  left: 22%;
  top: 18%;
  width: 28%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.g1 {
  left: 34%;
  top: 24%;
}
.g2 {
  left: 52%;
  top: 30%;
}
.g3 {
  left: 30%;
  top: 56%;
}
.g4 {
  left: 56%;
  top: 58%;
}
.glass b {
  transition: none;
}
.tv-wrap {
  position: relative;
}
.pourer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.28));
  will-change: transform;
}
.pourer img {
  display: block;
  position: absolute;
  left: 0;
  max-width: none;
}
.pourer .op {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pourer.open .op {
  opacity: 1;
}
.pourer.open .ph {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tcap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}
.stream {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 3px;
  transform-origin: 50% 0;
}
.glass.ripple::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: rip 0.7s ease-out infinite;
}
@keyframes rip {
  from {
    transform: scale(0.2);
    opacity: 0.9;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}
.tv-clear {
  justify-self: center;
  font: 600 13px/1 var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid currentColor;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}
.drop-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: #8d8372;
  border: 1.5px dashed #c9bfae;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(251, 248, 241, 0.7);
  transition: opacity 0.3s;
}
.table.over .drop-hint {
  color: var(--red);
  border-color: var(--red);
}
.table.full .drop-hint {
  opacity: 0;
}
.tv-note {
  justify-self: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 10px 18px;
  display: grid;
  gap: 2px;
  text-align: center;
  max-width: 90%;
}
.tv-note b {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1;
}
.tv-note span {
  font-size: 14px;
  color: #cfc5b4;
}
.shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}
.bt {
  flex: 0 0 auto;
  width: 66px;
  height: 132px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fbf8f1;
  padding: 6px 4px;
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
  transition:
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.2s;
}
.bt img {
  height: 118px;
  width: auto;
  pointer-events: none;
}
.bt[aria-pressed='true'] {
  border-color: var(--red);
}
@media (hover: hover) {
  .bt:hover {
    transform: translateY(-4px);
  }
}
.ghost-bt {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  height: 150px;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.3));
  transform: translate(-50%, -60%) rotate(-12deg);
}
@media (max-width: 640px) {
  .table {
    aspect-ratio: 4/3;
  }
  .glass {
    width: 13%;
  }
  .cup {
    width: 15%;
  }
  .g1 {
    left: 26%;
    top: 22%;
  }
  .g2 {
    left: 58%;
    top: 26%;
  }
  .g3 {
    left: 24%;
    top: 58%;
  }
  .g4 {
    left: 60%;
    top: 56%;
  }
  .c1 {
    left: 6%;
    top: 8%;
  }
  .c2 {
    right: 6%;
    bottom: 8%;
  }
}
/* ---- Territorio ---- */
.terr {
  padding-block: clamp(90px, 11vw, 170px) clamp(40px, 5vw, 80px);
  text-align: center;
  overflow: hidden;
}
.terr h2 {
  font-size: clamp(2.8rem, 7.6vw, 7rem);
}
.terr p {
  max-width: 56ch;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
}
.ves {
  margin-top: clamp(28px, 4vw, 56px);
  width: min(1300px, 100%);
  margin-inline: auto;
  opacity: var(--vo, 1);
  transform: translateY(var(--vy, 0px));
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.ves img {
  width: 100%;
  height: auto;
}
.terr .places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 22px;
}

/* ---- "Come si beve": foto grandi a schede che si posano scorrendo ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 24px);
  padding-block: clamp(40px, 5vw, 80px) clamp(90px, 10vw, 150px);
}
.cards header {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.cards h2 {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
}
.card {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  transform: scale(var(--s, 1)) translateY(var(--ty, 0px));
  transition: transform 0.2s linear;
}
.card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--cream);
  border-radius: 18px;
  padding: 14px 16px;
}
.card figcaption b {
  display: block;
  font-family: var(--serif);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.card figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar {
    display: none;
  }
  .cards header {
    grid-column: 1/-1;
    grid-row: 1;
    position: sticky;
    left: 0;
    width: calc(100vw - 2 * var(--gut));
  }
  .card {
    scroll-snap-align: start;
    grid-row: 2;
  }
}

/* ---- Gioco "Completa il mosaico" ---- */
.wall-sec {
  padding-block: 0 clamp(90px, 10vw, 150px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.wall-sec h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}
.wall-sec p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 42ch;
}
.wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 2/1;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(28, 24, 19, 0.45);
}
.wall svg {
  width: 100%;
  height: 100%;
  display: block;
}
.g-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 28px;
}
.g-target {
  width: 200px;
  grid-template-columns: repeat(8, 1fr) !important;
  aspect-ratio: 2/1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px var(--cream),
    0 0 0 5px rgba(28, 24, 19, 0.25);
  box-shadow:
    0 0 0 4px var(--cream),
    0 0 0 5px color-mix(in srgb, var(--ink) 25%, transparent);
}
.g-target svg {
  width: 100%;
  height: 100%;
  display: block;
}
.g-count {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.g-wrap {
  position: relative;
}
.wall {
  cursor: pointer;
  touch-action: manipulation;
}
.wall svg {
  cursor: pointer;
}
.wall svg.ok .cell {
  filter: none;
}
.win {
  position: relative;
  margin-top: 16px;
  background: var(--cream) var(--grain);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-shadow: 0 30px 60px -20px rgba(28, 24, 19, 0.5);
  animation: pop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.win-t {
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-top: 8px;
}
.code {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--red);
  margin-top: 10px;
  padding: 6px 16px;
  border: 2px dashed var(--red);
  border-radius: 10px;
  user-select: all;
}
.win p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--muted);
}
@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .wall-sec {
    grid-template-columns: 1fr;
  }
}

/* ---- Etichetta personalizzata ---- */
.maker {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(80px, 9vw, 150px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  border-radius: 36px 36px 0 0;
}
.maker h2 {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
}
.maker p {
  margin-top: 18px;
  color: #cfc5b4;
  max-width: 44ch;
}
.form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  max-width: 460px;
}
.form label {
  display: grid;
  gap: 6px;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: #cfc5b4;
}
.form input {
  font: 500 18px var(--body);
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid #6b6152;
  color: var(--cream);
  border-radius: 0;
}
.form input:focus {
  outline: none;
  border-color: var(--red);
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sw {
  width: 64px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 2px;
  background: #fbf8f1;
}
.sw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw[aria-pressed='true'] {
  border-color: var(--red);
}
.phone {
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 20px;
  user-select: all;
}
.labelprev {
  display: grid;
  place-items: center;
}
.lab {
  width: min(340px, 100%);
  aspect-ratio: 6.75/11.75;
  background: #fbf8f1;
  color: var(--ink);
  padding: 8% 8% 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6);
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@media (hover: hover) {
  .lab:hover {
    transform: rotate(0);
  }
}
.lab > img:first-child {
  width: 34%;
}
.lab .lt {
  width: 92%;
  margin-top: 7%;
}
.lab .lsub {
  margin-top: 9%;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--olive);
}
.lab .lname {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--lab-c, #40b838);
}
.lab .ldate {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  margin-top: 6px;
}
.lab .lrule {
  display: flex;
  width: 80%;
  height: 2px;
  margin-top: 10px;
}
.lab .lrule i {
  flex: 1;
}
.lab .lfoot {
  margin-top: auto;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .maker {
    grid-template-columns: 1fr;
  }
}

/* ---- Famiglia ---- */
.fam {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(30px, 4vw, 60px) clamp(90px, 11vw, 160px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.fam .q {
  grid-column: 2/12;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3.3rem);
  line-height: 1.18;
}
.fam .q i {
  color: var(--red);
}
.fam .meta {
  grid-column: 2/12;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 36px;
  color: #a69c8a;
}
@media (max-width: 700px) {
  .fam .q,
  .fam .meta {
    grid-column: 1/-1;
  }
  .fam .q {
    font-size: 1.55rem;
    line-height: 1.28;
  }
}

/* ---- Per i locali ---- */
.trade {
  background: var(--red);
  color: var(--cream);
  padding-block: clamp(56px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.trade h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}
.trade h2 i {
  color: var(--cream);
}
.trade p {
  margin-top: 12px;
  max-width: 48ch;
}
.trade .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ---- Piè di pagina ---- */
footer {
  background: var(--ink);
  color: #cfc5b4;
  padding-block: 72px 40px;
}
.ft {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.ft h3 {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: #8d8372;
  margin-bottom: 14px;
}
.ft ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ft a {
  text-decoration: none;
}
.ft img {
  width: 150px;
}
.nl {
  display: flex;
  border-bottom: 1.5px solid #6b6152;
  margin-top: 22px;
  max-width: 340px;
}
.nl input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--cream);
  font: 16px var(--body);
  padding: 10px 0;
}
.nl input:focus {
  outline: none;
}
.nl button {
  background: none;
  border: 0;
  color: var(--cream);
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid #3a332a;
  font-size: 13px;
  color: #8d8372;
}
.ft > * {
  min-width: 0;
}
.ft li {
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .ft {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .ft {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* ---- Ingresso: avviso età 18+ e versamento ---- */
.age {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--cream) var(--grain);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.age-box {
  margin: auto;
  text-align: center;
  max-width: 460px;
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.pour {
  width: min(420px, 92vw);
  height: min(46vh, 380px);
  display: block;
}
.age-txt {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  display: grid;
  gap: 14px;
  justify-items: center;
}
.age-txt.on {
  opacity: 1;
  transform: none;
}
.age {
  transition: opacity 0.6s ease;
}
.age:focus {
  outline: none;
}
.age.out {
  opacity: 0;
  pointer-events: none;
}
.age-box h2 {
  font-size: clamp(2.6rem, 9vw, 4rem);
}
.age-box p {
  color: var(--muted);
}
.age-no {
  color: var(--red) !important;
}
.age-txt[hidden] {
  display: none;
}
#ageTxt,
#pourTxt,
#cheers {
  min-height: 220px;
  align-content: start;
}
.hold {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
.hold.on {
  transform: scale(0.96);
  background: var(--ink);
}
#cheers b {
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 400;
}

/* ---- Accessibilità: collegamento "Vai al contenuto" (compare solo con la tastiera) ---- */
.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
main:focus {
  outline: none;
}
.skip:focus {
  width: auto;
  height: auto;
  padding: 10px 16px;
  overflow: visible;
  clip-path: none;
}

/* ---- Accessibilità: meno animazioni se il visitatore lo chiede ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
