:root {
  --espresso: #2b1d17;
  --coffee: #4a3328;
  --cocoa: #6b4a3a;
  --ivory: #f7f1e7;
  --paper: #fffbf5;
  --beige: #ded0bd;
  --sand: #cbb79e;
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --sans: Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 76px);
  --section: clamp(44px, 6vw, 88px);
  --line: rgba(74, 51, 40, .19);
  --frame-height: clamp(310px, 36vw, 485px);
  --photo-gap: clamp(12px, 1.8vw, 28px);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font: 1rem/1.6 var(--sans);
}
h1, h2, h3, figure, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
img { display: block; max-width: 100%; }
.shell { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.masthead {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.masthead img { width: 52px; height: 52px; object-fit: contain; }
.signature { font: 1.2rem/1.2 var(--serif); }
.location {
  margin-left: auto;
  color: var(--cocoa);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: var(--espresso);
}
.hero-image { width: 100%; height: auto; opacity: .63; }
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(43,29,23,.54), rgba(43,29,23,.13) 76%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px var(--gutter);
  text-align: center;
  text-shadow: 0 2px 18px rgba(43,29,23,.75);
}
.hero h1 {
  font-size: clamp(2.35rem, 8.6vw, 9.2rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.hero h1 span { font-style: italic; white-space: nowrap; }
.hero-copy p { margin-top: clamp(4px, 1vw, 14px); font: italic clamp(1.05rem, 2.25vw, 2rem)/1.35 var(--serif); }

.album { padding-block: var(--section); }
.album + .album { border-top: 1px solid var(--line); }
/* Gli angoli alternano le tre tinte della bottega in ordine di pagina. */
.album:nth-child(3n + 1 of .album:has(.angolo-title)) { background: var(--paper); }
.album:nth-child(3n + 2 of .album:has(.angolo-title)) { background: var(--ivory); }
.album:nth-child(3n of .album:has(.angolo-title)), .album-negozio {
  background: var(--espresso);
  color: var(--ivory);
  --album-copy: var(--beige);
  --album-button: var(--ivory);
}
.angolo-title, .mascotte { display: flex; align-items: center; }
.angolo-title { gap: clamp(8px, 1.4vw, 22px); }
.mascotte { flex: none; gap: 2px; }
.mascotte img {
  width: auto;
  max-width: clamp(40px, 6.4vw, 92px);
  height: clamp(55px, 8vw, 112px);
  object-fit: contain;
}
.album-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 2.4vw, 36px);
}
h2 {
  font-size: clamp(2.45rem, 4.8vw, 4.9rem);
  letter-spacing: -.047em;
  line-height: 1.04;
  text-wrap: balance;
}
.album-heading p { max-width: 55ch; margin-top: .65em; color: var(--album-copy, var(--cocoa)); }
.filmstrip {
  display: flex;
  align-items: center;
  gap: var(--photo-gap);
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}
.filmstrip.enhanced { scrollbar-width: none; }
.filmstrip.enhanced::-webkit-scrollbar { display: none; }
.photograph {
  flex: 0 0 min(100%, calc(var(--frame-height) * var(--ratio)));
  min-width: 0;
  scroll-snap-align: center;
}
.photograph:first-child { scroll-snap-align: start; }
.photograph:last-child { scroll-snap-align: end; }
.photograph img {
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.5vw, 23px);
}
.album-enoteca .album-inner { max-width: calc(var(--frame-height) * 2.47); }
.album-controls { flex: 0 0 auto; display: flex; gap: 9px; margin-left: auto; }
.album-controls button {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--album-button, var(--coffee));
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.album-controls button::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.album-controls .previous::before { transform: translateX(2px) rotate(-135deg); }
.album-controls button:disabled { opacity: .36; cursor: default; }
.album-controls button:focus-visible, .filmstrip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (hover: hover) {
  .album-controls button:hover:enabled { color: var(--paper); background: var(--coffee); }
}

.album-caffe .album-inner:has(.photograph:only-child) {
  text-align: center;
}
.album-caffe .album-inner:has(.photograph:only-child) .album-heading { justify-content: center; }
.album-caffe .filmstrip:has(.photograph:only-child) { width: min(100%, 218px); margin-inline: auto; }
.album-caffe .photograph:only-child { flex-basis: 100%; }
.spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  max-width: 1000px;
  margin-inline: auto;
  padding: var(--section) var(--gutter);
  gap: clamp(30px, 7vw, 110px);
}
.spread + .spread { border-top: 1px solid var(--line); }
.spread .album { padding: 0; border: 0; }
.spread .shell { width: 100%; }
.spread .album-inner { display: flex; flex-direction: column; height: 100%; }
.spread .album-heading { flex: 1; align-items: start; }
.spread h2 { font-size: clamp(2.2rem, 3.5vw, 3.75rem); }
.spread .photograph:only-child { flex-basis: min(100%, calc(var(--frame-height) * var(--ratio))); }
.spread .filmstrip:has(.photograph:only-child) { justify-content: center; }
.spread .album:has(.photograph:nth-child(2)) { grid-column: 1 / -1; }

.visit { padding-block: var(--section); }
.visit h2 { margin-bottom: clamp(24px, 4vw, 50px); }
.visit-details {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.2fr;
  gap: 22px;
}
.visit-block h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.visit-block address { font-style: normal; }
.visit-block .social, .hours dd { color: var(--coffee); }
.visit-block .social a { color: inherit; text-underline-offset: .15em; }
.visit-block .social { font-size: .9rem; overflow-wrap: anywhere; }
.hours div + div { margin-top: 6px; }
.site-footer { background: var(--espresso); color: var(--ivory); }
.footer-details { padding-block: 28px 20px; border-bottom: 1px solid rgba(222, 208, 189, .25); }
.footer-details p { max-width: 100ch; margin-top: 12px; color: var(--beige); font-size: .8125rem; line-height: 1.65; }
.payment-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 0; margin: 0 0 18px; list-style: none; }
.payment-methods li { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; white-space: nowrap; }
.payment-methods svg { flex: 0 0 20px; }
.fiscal-code { white-space: nowrap; }
.footer-inner { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 22px; font-size: .8rem; }
.footer-name { font: 1.15rem var(--serif); }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.3,1); }
  .awaiting-reveal { opacity: 0; transform: translateY(16px); }
}
@media (max-width: 720px) {
  :root { --frame-height: clamp(250px, 66vw, 390px); }
  .masthead { min-height: 64px; gap: 8px; }
  .masthead img { width: 42px; height: 42px; }
  .signature { font-size: 1rem; }
  .location { font-size: .62rem; }
  .album-heading { flex-wrap: wrap; align-items: center; row-gap: 12px; }
  .album-controls button { width: 44px; height: 44px; }
  .filmstrip:has(.photograph:nth-child(2)) .photograph {
    flex-basis: min(calc(100% - 24px), calc(var(--frame-height) * var(--ratio)));
  }
  .album-caffe .album-heading { margin-bottom: 20px; }
  .album-caffe .filmstrip:has(.photograph:only-child) { width: min(100%, 210px); margin-inline: auto; }
  .spread { grid-template-columns: minmax(0,1fr); gap: var(--section); }
  .spread .photograph:only-child { flex-basis: min(100%, 210px); }
  .spread .album-heading { flex: initial; }
  .visit-details { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .visit-block + .visit-block { border-top: 1px solid var(--line); padding-top: 16px; }
}

.novita {
  background: var(--ivory);
  padding-block: var(--section);
  border-bottom: 1px solid var(--line);
}
.novita h2 { font-style: italic; margin-bottom: clamp(24px, 3.5vw, 48px); }
.novita-prodotto {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "foto titolo" "foto testo";
  align-content: center;
  align-items: end;
  column-gap: clamp(26px, 4vw, 62px);
  row-gap: 16px;
  padding-top: clamp(24px, 3.3vw, 44px);
  border-top: 1px solid var(--line);
}
.novita-prodotto + .novita-prodotto { margin-top: clamp(38px, 5vw, 76px); }
.novita-mixology {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-areas: "titolo foto" "testo foto";
}
.novita h3 {
  grid-area: titolo;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.novita-testo { grid-area: testo; align-self: start; color: var(--coffee); }
.novita-testo ul { margin: 0; padding-left: 1.15em; }
.novita-testo li + li { margin-top: .25em; }
.novita-testo li::marker { color: var(--cocoa); font-size: .75em; }
.novita-testo > * + * { margin-top: .9em; }
.novita-testo > p + ul { margin-top: .9em; }
.novita-origine { font-style: italic; font-family: var(--serif); }
.novita-foto {
  grid-area: foto;
  align-self: center;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: clamp(6px, .7vw, 12px);
}
.novita-foto img { width: 100%; height: auto; border-radius: clamp(8px, 1vw, 16px); }
.novita-foto img:first-child { grid-column: 1; grid-row: 1 / 3; }
.novita-foto img:nth-child(2) { grid-column: 2; grid-row: 1; }
.novita-foto img:nth-child(3) { grid-column: 2; grid-row: 2; }
.novita-foto img:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.novita-trolley .novita-foto { grid-template-columns: 1fr 1fr 3.16fr; }
.novita-trolley img:first-child { grid-area: 1 / 1; }
.novita-trolley img:nth-child(2) { grid-area: 1 / 3; }
.novita-trolley img:nth-child(3) { grid-area: 2 / 3; }
.novita-trolley img:nth-child(4) { grid-area: 2 / 2; }
.novita-trolley img:nth-child(5) { grid-area: 1 / 2; }
.novita-trolley img:nth-child(6) { grid-area: 2 / 1; }

@media (max-width: 800px) {
  .novita .novita-prodotto {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "titolo" "foto" "testo";
  }
  .novita-testo { max-width: 64ch; }
}
@media (max-width: 540px) {
  .novita .novita-foto { grid-template-columns: 1fr 1fr; gap: 8px; }
  .novita .novita-foto img { grid-area: auto; }
  .novita .novita-foto img:nth-child(2) { grid-area: 1 / 1 / 2 / -1; }
  .novita .novita-foto img:nth-child(3) { grid-area: 3 / 1 / 4 / -1; }
}
