/* Noto Bar · Sesto Rondò
   Direzione: caffè-pasticceria di lusso (vedi docs/RICERCA_STILE_LUSSO.md).
   Avorio, bordeaux del logo, ottone. Caslon leggero + Jost spaziato. Foto ad arco come l'arco dell'insegna. */

:root {
  --avorio: oklch(0.972 0.012 80);
  --avorio-2: oklch(0.946 0.018 62);
  --cipria: oklch(0.915 0.03 40);
  --bordeaux: oklch(0.27 0.062 25);
  --bordeaux-2: oklch(0.34 0.085 24);
  --bordeaux-deep: oklch(0.215 0.048 24);
  --ottone: oklch(0.6 0.075 75);
  --ottone-chiaro: oklch(0.82 0.07 82);
  --testo: oklch(0.3 0.05 26);
  --muted: oklch(0.46 0.035 35);
  --crema: oklch(0.955 0.02 82);
  --crema-muted: oklch(0.84 0.03 70);
  --rule: oklch(0.6 0.075 75 / 0.55);
  --rule-dark: oklch(0.82 0.07 82 / 0.35);

  --f-display: "Libre Caslon Display", "Big Caslon", "Libre Caslon Text", Georgia, serif;
  --f-text: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --slow: 1.1s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--avorio);
  color: var(--testo);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

:focus-visible {
  outline: 1px solid var(--bordeaux-2);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2 * var(--gutter), 40rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--bordeaux);
  color: var(--crema);
  font-family: var(--f-sans);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Voce di servizio: etichette, bottoni ---------- */

.label {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ottone);
}

.epigraph {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.9;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  min-height: 50px;
  padding: 0 1.8em;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: var(--bordeaux);
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.btn::after {
  content: "→";
  font-family: var(--f-text);
  font-size: 1.05rem;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn:hover {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--crema);
}

.btn--solid {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--crema);
}

.btn--solid:hover {
  background: var(--bordeaux-deep);
  border-color: var(--bordeaux-deep);
}

.on-dark .btn {
  color: var(--crema);
}

.on-dark .btn:hover {
  background: var(--crema);
  border-color: var(--crema);
  color: var(--bordeaux-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-row .btn {
  flex: 1 1 180px;
  max-width: 260px;
}

.link {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.7em;
  transition: text-decoration-color 0.3s;
}

.link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Ornamento: filetto con la "o" del logo ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ottone);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.ornament span {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.on-dark .ornament {
  color: var(--ottone-chiaro);
}

/* ---------- Foto: arco, correzione colore ---------- */

.photo {
  overflow: hidden;
  background: var(--avorio-2);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03) sepia(0.07);
}

.arch {
  border-radius: 999px 999px 0 0;
}

.arch.photo {
  aspect-ratio: 3 / 4.2;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--avorio);
  border-bottom: 1px solid oklch(0.6 0.075 75 / 0.28);
}

.header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.brand {
  grid-column: 2;
  grid-row: 1;
  display: block;
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bordeaux);
  cursor: pointer;
}

.nav-toggle span {
  grid-area: 1 / 1;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.is-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.is-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

.header__call {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 12px 0;
  color: var(--bordeaux);
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--avorio);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s var(--ease),
    visibility 0.5s;
}

.is-open .nav {
  opacity: 1;
  visibility: visible;
}

.nav__links {
  display: grid;
  gap: 6px;
}

.nav__links a {
  color: var(--bordeaux);
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  line-height: 1.25;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.is-open .nav__links a {
  opacity: 1;
  transform: none;
}

.is-open .nav__links a:nth-child(2) {
  transition-delay: 0.06s;
}

.is-open .nav__links a:nth-child(3) {
  transition-delay: 0.12s;
}

.is-open .nav__links a:nth-child(4) {
  transition-delay: 0.18s;
}

.is-open .nav__links a:nth-child(5) {
  transition-delay: 0.24s;
}

.nav__links a[aria-current="page"] {
  font-family: var(--f-text);
  font-style: italic;
}

.nav__foot {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

@media (min-width: 1000px) {
  :root {
    --header-h: 96px;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .nav-toggle,
  .header__call,
  .nav__foot {
    display: none;
  }

  .nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    display: block;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
  }

  .nav__links {
    display: grid;
    grid-template-columns: 1fr 1fr 140px 1fr 1fr;
    align-items: center;
    gap: 0;
  }

  .nav__links a {
    justify-self: center;
    padding: 10px 4px;
    border-bottom: 1px solid transparent;
    font-family: var(--f-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: border-color 0.3s;
  }

  .nav__links a:nth-child(3) {
    grid-column: 4;
  }

  .nav__links a:nth-child(4) {
    grid-column: 5;
  }

  .nav__links a:nth-child(5) {
    display: none;
  }

  .nav__links a:hover,
  .nav__links a[aria-current="page"] {
    border-bottom-color: var(--ottone);
    font-family: var(--f-sans);
    font-style: normal;
  }

  .brand {
    position: relative;
    z-index: 2;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: min(58svh, 520px);
  min-height: 360px;
  overflow: hidden;
  background: var(--bordeaux-deep);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 55%;
  filter: saturate(0.9) contrast(1.04) sepia(0.06);
}

@media (min-width: 1000px) {
  .hero {
    height: min(calc(100svh - var(--header-h)), 900px);
  }

  .hero img {
    object-position: 50% 62%;
  }
}

.intro {
  padding: clamp(44px, 10vw, 128px) 0 clamp(80px, 12vw, 160px);
  text-align: center;
}

.intro .label {
  margin-bottom: 22px;
}

.intro h1 {
  color: var(--bordeaux);
  font-size: clamp(2.9rem, 9vw, 5.6rem);
}

.intro h1 em {
  display: block;
  margin-top: 0.2em;
  color: var(--ottone);
  font-family: var(--f-text);
  font-size: 0.4em;
}

.intro .ornament {
  margin: 34px 0 30px;
}

.intro__lede {
  max-width: 30ch;
  margin: 0 auto 40px;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Sezioni ---------- */

.section {
  padding: clamp(80px, 12vw, 160px) 0;
}

.section--tight-top {
  padding-top: 0;
}

.head {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: clamp(48px, 7vw, 88px);
  text-align: center;
}

.h2 {
  color: var(--bordeaux);
  font-size: clamp(2.3rem, 6.5vw, 4rem);
}

.head p:not(.label) {
  max-width: 36ch;
  color: var(--muted);
  font-style: italic;
}

.on-dark {
  color: var(--crema-muted);
}

.on-dark .h2,
.on-dark h2,
.on-dark h3 {
  color: var(--crema);
}

.on-dark .label {
  color: var(--ottone-chiaro);
}

.bg-deep {
  background: var(--bordeaux-deep);
}

/* I riti: quattro archi */

.rites {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 16px;
  padding: 0;
  list-style: none;
}

.rite {
  text-align: center;
}

.rite a {
  display: grid;
  gap: 16px;
  text-decoration: none;
}

.rite .photo img {
  transition: transform 1.4s var(--ease);
}

.rite a:hover .photo img {
  transform: scale(1.04);
}

.rite h3 {
  margin-top: 4px;
  color: var(--bordeaux);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
}

.rite p:not(.label) {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .rites {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .rite:nth-child(even) {
    margin-top: 72px;
  }
}

/* Pannello diviso (pasticceria, dove siamo) */

.panel {
  display: grid;
  overflow: hidden;
  border-radius: 6px;
  background: var(--avorio-2);
}

.panel--cipria {
  background: var(--cipria);
}

.panel__text {
  display: grid;
  align-content: center;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px);
  text-align: center;
}

.panel__text > .inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.panel__text p:not(.label):not(.epigraph) {
  max-width: 34ch;
}

.panel__photo {
  min-height: 440px;
}

@media (min-width: 900px) {
  .panel {
    grid-template-columns: 1fr 1fr;
    min-height: 660px;
  }

  .panel--flip .panel__photo {
    order: -1;
  }
}

/* Aperitivo, sezione scura */

.evening {
  display: grid;
  align-items: center;
  gap: 56px;
}

.evening__photo.photo {
  aspect-ratio: 4 / 5;
}

.evening__text {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.evening__text p:not(.label) {
  max-width: 32ch;
  font-size: 1.12rem;
  font-style: italic;
}

@media (min-width: 900px) {
  .evening {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
}

/* Le feste: mosaico */

.feasts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0;
  list-style: none;
}

.feasts .photo {
  aspect-ratio: 3 / 4;
}

.feasts figcaption {
  margin-top: 14px;
  text-align: center;
}

/* Instagram */

.insta {
  text-align: center;
}

.insta__handle {
  display: inline-block;
  margin: 18px 0 14px;
  color: var(--bordeaux);
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 1;
  text-decoration: none;
}

.insta__handle:hover {
  font-family: var(--f-text);
  font-style: italic;
}

.insta p:not(.label) {
  max-width: 34ch;
  margin: 0 auto 36px;
  color: var(--muted);
  font-style: italic;
}

.strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 0;
  list-style: none;
}

.strip a {
  display: block;
}

.strip .photo {
  aspect-ratio: 1;
}

.strip img {
  transition: transform 1.2s var(--ease);
}

.strip a:hover img {
  transform: scale(1.04);
}

@media (min-width: 900px) {
  .strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Dati essenziali */

.facts {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.facts dt {
  margin-bottom: 2px;
}

.facts dd small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.facts a {
  text-decoration-color: var(--rule);
  text-underline-offset: 0.25em;
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(72px, 10vw, 120px) 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--bordeaux-deep);
  color: var(--crema-muted);
  text-align: center;
}

.footer img {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
}

.footer__claim {
  margin-top: 28px;
  color: var(--crema);
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
}

.footer .ornament {
  margin: 32px 0;
}

.footer .epigraph a {
  text-decoration: none;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.footer__nav a {
  color: var(--crema);
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.6em;
}

.footer__small {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------- Pagine interne ---------- */

.page-intro {
  padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px);
  text-align: center;
}

.page-intro h1 {
  margin: 24px 0 0;
  color: var(--bordeaux);
  font-size: clamp(3rem, 9vw, 5.4rem);
}

.page-intro .ornament {
  margin: 30px 0 26px;
}

.page-intro p:not(.label) {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.12rem;
  font-style: italic;
}

.page-intro .btn-row {
  margin-top: 36px;
}

/* Menu: carta stampata */

.menu-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.menu-index a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-index a:hover {
  border-bottom-color: var(--ottone);
}

.card {
  position: relative;
  width: min(100% - 2 * var(--gutter), 46rem);
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding: clamp(56px, 8vw, 88px) clamp(22px, 6vw, 72px);
  border: 1px solid var(--rule);
  background: var(--avorio);
  text-align: center;
}

.card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid oklch(0.6 0.075 75 / 0.3);
  pointer-events: none;
}

.card__photo {
  width: min(200px, 56%);
  margin: 0 auto 36px;
}

.card h2 {
  margin: 14px 0 0;
  color: var(--bordeaux);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.card .ornament {
  margin: 26px 0 34px;
}

.card__items {
  display: grid;
  gap: 26px;
  padding: 0;
  list-style: none;
}

.card__items .item {
  display: block;
  color: var(--bordeaux);
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.card__items .desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.5;
}

.card__note {
  max-width: 34ch;
  margin: 0 auto;
  padding-bottom: clamp(80px, 11vw, 140px);
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Galleria */

.gallery {
  columns: 2;
  column-gap: 14px;
  padding-bottom: clamp(80px, 12vw, 160px);
}

.gallery figure {
  margin: 0 0 28px;
  break-inside: avoid;
}

.gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.gallery figcaption .label {
  display: block;
  margin-bottom: 2px;
  font-style: normal;
}

@media (min-width: 800px) {
  .gallery {
    columns: 3;
    column-gap: 32px;
  }

  .gallery figure {
    margin-bottom: 44px;
  }
}

/* Dove siamo */

.visit {
  display: grid;
  gap: 56px;
  padding-bottom: clamp(80px, 12vw, 160px);
}

.visit__facts {
  display: grid;
  align-content: start;
  text-align: center;
}

.visit__facts > div {
  display: grid;
  gap: 6px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.visit__facts > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.visit__facts small {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

.visit__facts a {
  text-decoration-color: var(--rule);
  text-underline-offset: 0.25em;
}

.map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid var(--rule);
  background: var(--avorio-2);
  text-align: center;
}

.map__cover {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 32ch;
  padding: 32px 20px;
}

.map__cover .title {
  color: var(--bordeaux);
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1.1;
}

.map__cover small {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
}

.map__cover small a {
  text-underline-offset: 0.2em;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.15) saturate(0.85);
}

.map.is-live .map__cover {
  visibility: hidden;
}

@media (min-width: 900px) {
  .visit {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }

  .map {
    min-height: 560px;
  }
}

/* ---------- Movimento: lento, solo dissolvenze ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero img {
    animation: settle 2.6s var(--ease) both;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity var(--slow) var(--ease),
      transform var(--slow) var(--ease);
    transition-delay: calc(var(--i, 0) * 120ms);
  }

  .js [data-reveal].is-in,
  .js.reveal-all [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    opacity: 0.4;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
