/* Cannapiz, Massa – Via Quercioli.
   Palette taken from the room in the venue's own photographs: the orange wall with the
   white jagged ridge painted across it, and the paper the pizza is served on. */

:root {
  --ink:      #1d1a17;
  --ink-soft: #5f574d;
  --paper:    #fbf4e8;
  --paper-2:  #f3e8d5;
  --arancio:  #cf5518;
  --arancio-scuro: #9a3a0e;
  --bordo:    #e0d2ba;
  --misura:   68rem;
  --raggio:   2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Karla, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--arancio-scuro); }
a:hover { color: var(--arancio); }

:focus-visible {
  outline: 3px solid var(--arancio);
  outline-offset: 3px;
}

.guscio {
  width: min(100% - 2.5rem, var(--misura));
  margin-inline: auto;
}

.salta {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 20;
}
.salta:focus { left: 0; }

/* ---------- header ---------- */

.testata {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.testata__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  padding: 1rem 0 1.15rem;
}

.marchio {
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  display: block;
}
.marchio__nome {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.marchio__nome b { color: var(--arancio); font-weight: inherit; }
.marchio__luogo {
  display: block;
  font-size: 0.775rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8bba6;
  margin-top: 0.4rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-size: 0.94rem;
}
.menu a {
  color: #e9dfcd;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: #fff; border-bottom-color: var(--arancio); }

.numero {
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid #4a423a;
  border-radius: var(--raggio);
  padding: 0.5rem 0.95rem;
  white-space: nowrap;
}
.numero:hover { background: var(--arancio); border-color: var(--arancio); color: #fff; }

/* the ridge painted on their wall, reused as the edge between dark and light */
.cresta {
  height: 26px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 92% 90%, 84% 30%, 76% 85%, 68% 25%, 60% 100%,
                     52% 35%, 44% 92%, 36% 20%, 28% 88%, 20% 45%, 12% 95%, 5% 40%, 0 80%);
}

/* ---------- hero ---------- */

.apertura { padding: 3.2rem 0 2.6rem; }

.apertura__in {
  display: grid;
  gap: 2.4rem;
}

.occhiello {
  font-size: 0.79rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arancio-scuro);
  font-weight: 700;
  margin-bottom: 1rem;
}

.apertura h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.35rem);
  max-width: 16ch;
}

.sommario {
  font-size: 1.15rem;
  margin-top: 1.3rem;
  max-width: 46ch;
  color: #3a352e;
}

.azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.bottone {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--raggio);
  border: 2px solid var(--arancio-scuro);
}
.bottone--pieno { background: var(--arancio-scuro); color: #fff; }
.bottone--pieno:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.bottone--vuoto { color: var(--arancio-scuro); background: transparent; }
.bottone--vuoto:hover { background: var(--paper-2); color: var(--arancio-scuro); }

.voto {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordo);
  max-width: 24rem;
}
.voto__n {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--arancio-scuro);
}
.voto__t { font-size: 0.95rem; line-height: 1.35; color: var(--ink-soft); }
.voto__t b { color: var(--ink); }

.apertura__foto img {
  width: 100%;
  border-radius: var(--raggio);
  border: 1px solid var(--bordo);
}
.apertura__foto figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
.apertura__foto { margin: 0; }

/* ---------- generic section ---------- */

.fascia { padding: 3.4rem 0; }
.fascia--chiara { background: var(--paper-2); }

.titolo {
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  margin-bottom: 1.1rem;
}
.titolo::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  background: var(--arancio);
  margin-top: 0.85rem;
}

.introduzione {
  max-width: 54ch;
  font-size: 1.06rem;
  color: #3a352e;
}

/* ---------- banco ---------- */

.banco {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}
.banco li {
  background: var(--paper);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fascia--chiara .banco li { background: var(--paper); }
.banco img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.banco__testo { padding: 1.1rem 1.2rem 1.3rem; }
.banco h3 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.banco p { font-size: 0.98rem; color: var(--ink-soft); }

.elenco {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem 2rem;
  max-width: 46rem;
}
.elenco li {
  padding: 0.6rem 0 0.6rem 1.7rem;
  border-bottom: 1px solid var(--bordo);
  position: relative;
  font-size: 1.02rem;
}
.elenco li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--arancio);
  transform: rotate(45deg);
}

.nota {
  margin-top: 1.8rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- asporto ---------- */

.due {
  display: grid;
  gap: 2.2rem;
  align-items: start;
}

.riquadro {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--raggio);
  padding: 1.8rem 1.7rem;
}
.riquadro h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.7rem; }
.riquadro p { color: #d9cfbe; font-size: 1rem; }
.riquadro .bottone--pieno {
  background: var(--arancio);
  border-color: var(--arancio);
  margin-top: 0.6rem;
}
.riquadro .bottone--pieno:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- dove ---------- */

.scheda {
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0;
}
.scheda > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bordo);
}
.scheda dt {
  font-size: 0.79rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.22rem;
}
.scheda dd { margin: 0; font-size: 1.05rem; }

/* ---------- footer ---------- */

.piede {
  background: var(--ink);
  color: #cdc2b1;
  padding: 2.6rem 0;
  font-size: 0.97rem;
}
.piede strong { color: var(--paper); font-size: 1.1rem; }
.piede a { color: #f0b48c; }
.piede a:hover { color: #fff; }
.piede__in { display: grid; gap: 1.2rem; }

/* ---------- 404 ---------- */

.perso {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}
.perso h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1.1rem; }

/* ---------- larger screens ---------- */

@media (min-width: 46rem) {
  .banco { grid-template-columns: repeat(2, 1fr); }
  .elenco { grid-template-columns: repeat(2, 1fr); }
  .elenco li { border-bottom: 1px solid var(--bordo); }
  .scheda > div { grid-template-columns: 8.5rem 1fr; gap: 0.6rem 1rem; }
  .scheda--larga { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}

@media (min-width: 58rem) {
  .apertura { padding: 4.4rem 0 3.4rem; }
  .apertura__in {
    grid-template-columns: minmax(0, 1fr) 37.5rem;
    gap: 3.2rem;
    align-items: center;
  }
  .banco { grid-template-columns: repeat(4, 1fr); }
  .due { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .piede__in { grid-template-columns: 1fr auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
