/* ============================================================
   VANILLA DESSERT — Pasticceria & Caffetteria, Senigallia
   Palette ispirata al feed reale: rosa cipria del logo, oro
   antico dello script, crema pasticceria, bruno vinaccia scuro
   per i testi. Font: Cormorant Garamond (titoli) + Jost (corpo).
   ============================================================ */

:root {
  --rosa: #f4d9dc;
  --rosa-scuro: #d9a7ad;
  --oro: #ad8a58;
  --oro-chiaro: #c9ab7c;
  --crema: #fbf5ef;
  --bianco: #fffdfa;
  --testo: #2f2228;
  --testo-soft: rgba(47, 34, 40, 0.62);
  --testo-faint: rgba(47, 34, 40, 0.4);
  --linea: rgba(47, 34, 40, 0.12);
  --ombra: 0 30px 60px -30px rgba(47, 34, 40, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--testo);
  font-family: 'Jost', 'Arial', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  margin: 0;
  color: var(--testo);
}

p { margin: 0; line-height: 1.6; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--oro);
  font-weight: 600;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.17,.85,.28,1), box-shadow .35s ease, background .3s ease, color .3s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--testo);
  color: var(--bianco);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--ombra); }
.btn-outline {
  background: transparent;
  border-color: rgba(47,34,40,0.25);
  color: var(--testo);
}
.btn-outline:hover { border-color: var(--testo); transform: translateY(-3px); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.17,.85,.28,1), transform .9s cubic-bezier(.17,.85,.28,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.is-scrolled {
  background: rgba(251, 245, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(47,34,40,0.3);
  padding: 12px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; }
.nav__logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav__links a:not(.nav__cta) { position: relative; padding: 4px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--oro);
  transition: width .35s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--testo); color: var(--bianco); padding: 11px 22px; border-radius: 100px; font-weight: 500;
  transition: transform .3s ease, box-shadow .3s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--ombra); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav__burger span { width: 24px; height: 2px; background: var(--testo); transition: all .3s ease; }
.nav__mobile {
  position: fixed; inset: 0; z-index: 490; background: var(--crema);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transform: translateY(-100%); transition: transform .5s cubic-bezier(.17,.85,.28,1);
  font-family: 'Cormorant Garamond', serif; font-size: 28px;
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile a { padding: 6px 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 70px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,34,40,0.15) 0%, rgba(47,34,40,0.15) 40%, rgba(47,34,40,0.78) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; color: var(--bianco); }
.hero .eyebrow { color: var(--oro-chiaro); }
.hero h1 {
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.03;
  color: var(--bianco);
  max-width: 900px;
}
.hero h1 em {
  font-style: italic;
  color: var(--rosa);
}
.hero__sub {
  margin-top: 22px;
  max-width: 480px;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
}
.hero__btns { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__btns .btn-outline { color: var(--bianco); border-color: rgba(255,255,255,0.4); }
.hero__btns .btn-outline:hover { border-color: var(--bianco); }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll span { width: 1px; height: 40px; background: rgba(255,255,255,0.5); overflow: hidden; position: relative; }
.hero__scroll span::after {
  content: ''; position: absolute; top: -40px; left: 0; width: 100%; height: 40px; background: var(--bianco);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 50% { top: 0; } 100% { top: 40px; } }

/* ---------- SECTION shared ---------- */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.section-head p { margin-top: 18px; color: var(--testo-soft); font-size: 16.5px; }
.section--dark { background: var(--testo); color: var(--bianco); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--bianco); }
.section--dark .section-head p { color: rgba(255,255,255,0.65); }
.section--rosa { background: linear-gradient(180deg, var(--crema) 0%, var(--rosa) 130%); }

/* ---------- STORIA ---------- */
.storia { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.storia__imgs { position: relative; }
.storia__imgs img { border-radius: var(--radius); box-shadow: var(--ombra); }
.storia__imgs .img-b {
  position: absolute; width: 55%; bottom: -50px; right: -40px;
  border: 6px solid var(--bianco); border-radius: 18px;
}
.storia__text p + p { margin-top: 18px; color: var(--testo-soft); }
.storia__badge {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-radius: 100px; background: var(--bianco); box-shadow: var(--ombra);
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
}
.storia__badge b { color: var(--oro); font-size: 24px; }

/* ---------- GALLERY / PRODOTTI ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: default;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.17,.85,.28,1), filter .5s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 14px;
  background: linear-gradient(0deg, rgba(47,34,40,0.75), transparent);
  color: var(--bianco); font-size: 13px; letter-spacing: 0.5px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }
.gallery__item--a { grid-column: span 3; grid-row: span 3; }
.gallery__item--b { grid-column: span 3; grid-row: span 2; }
.gallery__item--c { grid-column: span 2; grid-row: span 2; }
.gallery__item--d { grid-column: span 2; grid-row: span 2; }
.gallery__item--e { grid-column: span 2; grid-row: span 2; }
.gallery__item--f { grid-column: span 3; grid-row: span 3; }
.gallery__item--g { grid-column: span 3; grid-row: span 3; }

/* ---------- RECENSIONI ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card {
  background: var(--bianco); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 20px 40px -30px rgba(47,34,40,0.3);
}
.review-card__stars { color: var(--oro); font-size: 15px; letter-spacing: 3px; margin-bottom: 16px; }
.review-card p { color: var(--testo); font-size: 15.5px; font-style: italic; }
.review-card__meta { margin-top: 20px; font-size: 13px; color: var(--testo-faint); text-transform: uppercase; letter-spacing: 1px; }
.reviews-source { margin-top: 40px; text-align: center; color: var(--testo-soft); font-size: 14px; }
.reviews-source b { color: var(--oro); }

/* ---------- DOVE SIAMO ---------- */
.dove { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.dove__img { position: relative; min-height: 480px; }
.dove__img img { width: 100%; height: 100%; object-fit: cover; }
.dove__info {
  background: var(--testo); color: var(--bianco);
  padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
.dove__info h2 { color: var(--bianco); }
.dove__row { display: flex; gap: 16px; align-items: flex-start; }
.dove__row .ico {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--oro-chiaro); font-size: 17px;
}
.dove__row div p { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.dove__row div strong { display: block; margin-bottom: 4px; font-size: 16px; }
.dove__map-link { margin-top: 10px; }

/* ---------- CONTATTI / CTA ---------- */
.cta-band {
  padding: 110px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--rosa) 0%, var(--crema) 65%);
}
.cta-band h2 { font-size: clamp(34px, 6vw, 58px); }
.cta-band p { margin: 20px auto 0; max-width: 480px; color: var(--testo-soft); }
.cta-band .hero__btns { justify-content: center; margin-top: 36px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--testo); color: rgba(255,255,255,0.6); padding: 60px 0 30px; }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer__brand span { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--bianco); }
.footer__links { display: flex; gap: 30px; flex-wrap: wrap; font-size: 14px; }
.footer__links a:hover { color: var(--bianco); }
.footer__social { display: flex; gap: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: background .3s ease, border-color .3s ease; font-size: 16px; }
.footer__social a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer__badge a { color: var(--oro-chiaro); }
.footer__badge a:hover { text-decoration: underline; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--oro); z-index: 999; width: 0%; }

/* ---------- MENU PAGE (menu.html) ---------- */
.menu-hero { padding: 150px 0 70px; text-align: left; background: linear-gradient(180deg, var(--rosa) 0%, var(--crema) 100%); }
.menu-hero .wrap { max-width: 900px; }
.menu-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 10px; }
.menu-hero p { margin-top: 16px; color: var(--testo-soft); font-size: 16.5px; max-width: 560px; }
.menu-back { display: inline-block; margin-bottom: 20px; font-size: 13px; color: var(--testo-soft); }
.menu-back:hover { color: var(--oro); }
.menu-note { margin-top: 24px; padding: 14px 20px; background: var(--bianco); border-radius: 14px; font-size: 13.5px; color: var(--testo-soft); border-left: 3px solid var(--oro); }

#menuCategories { max-width: 900px; margin: 0 auto; padding: 70px 24px 40px; }
.menu-category { margin-bottom: 56px; }
.menu-category__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 6px; }
.menu-category__head h2 { font-size: 28px; white-space: nowrap; }
.menu-category__line { flex: 1; height: 1px; background: var(--linea); }
.menu-category__note { color: var(--testo-soft); font-size: 14px; margin-bottom: 24px; font-style: italic; }
.menu-dish-list { display: flex; flex-direction: column; }
.menu-dish { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--linea); }
.menu-dish__info h4 { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 16.5px; }
.menu-dish__info p { font-size: 13.5px; color: var(--testo-soft); margin-top: 4px; }
.menu-dish__allergens { font-style: italic; opacity: 0.7; }
.menu-dish__price { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--oro); white-space: nowrap; }
.menu-dish__price--tbd { font-family: 'Jost', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--testo-faint); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .storia { grid-template-columns: 1fr; gap: 90px 0; }
  .storia__imgs { margin-bottom: 20px; }
  .storia__imgs .img-b { width: 60%; bottom: -30px; right: -20px; }
  .reviews { grid-template-columns: 1fr; }
  .dove { grid-template-columns: 1fr; }
  .dove__img { min-height: 320px; }
  .dove__info { padding: 50px 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--a, .gallery__item--b, .gallery__item--c, .gallery__item--d, .gallery__item--e, .gallery__item--f, .gallery__item--g {
    grid-column: span 1; grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 120px 0 50px; align-items: flex-end; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .hero__btns .btn { justify-content: center; }
  .section { padding: 80px 0; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; text-align: left; }
  .menu-category__head h2 { font-size: 22px; }
  .menu-dish { flex-direction: column; gap: 4px; }
  .menu-dish__price { align-self: flex-start; }
}
