/* Sandra D's Italian Garden — spec demo by It's Already Done Web Co.
   Structure experiment: one-page scroll story ("an evening at Sandra D's").
   Motifs from the real storefront: red scalloped awning, lattice + ivy,
   teal wainscot, olive/plum checkerboard floor. */

/* Fonts are loaded via <link> in the HTML (not @import) so a slow font
   fetch can never block this stylesheet from applying. */

:root {
  --cream: #faf6ee;
  --cream-deep: #f3ecdd;
  --ink: #2a2320;
  --ink-soft: #5c534d;
  --red: #c0392b;
  --red-deep: #97281d;
  --teal: #2c6e63;
  --teal-deep: #1e4f47;
  --olive: #7a7c4f;
  --plum: #7c4f5e;
  --gold: #b98c3c;
  --display: 'Gloock', 'Georgia', serif;
  --script: 'Kaushan Script', cursive;
  --body: 'Figtree', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

/* ---------- shared bits ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-family: var(--script);
  color: var(--red);
  font-size: 1.5rem;
  display: block;
  margin-bottom: .35rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* scalloped awning edge — the signature divider */
.scallop {
  height: 26px;
  background:
    radial-gradient(circle at 50% 0, var(--red) 13px, transparent 14px) 0 0 / 26px 26px repeat-x;
}
.scallop.flip { transform: scaleY(-1); }
.scallop.teal {
  background:
    radial-gradient(circle at 50% 0, var(--teal) 13px, transparent 14px) 0 0 / 26px 26px repeat-x;
}

/* checkerboard floor strip accent */
.checker {
  height: 14px;
  background:
    conic-gradient(var(--olive) 90deg, var(--cream) 90deg 180deg, var(--plum) 180deg 270deg, var(--cream) 270deg) 0 0 / 28px 28px;
  opacity: .55;
}

/* ---------- progress bar + dot nav ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 100%;
  background: transparent; z-index: 60;
}
#progress b {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
#dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 14px;
}
#dots a {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(42,35,32,.25); border: 2px solid transparent;
  position: relative; transition: background .3s, transform .3s;
}
#dots a:hover { transform: scale(1.3); }
#dots a.on { background: var(--red); }
#dots a span {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--script); font-size: 1.05rem; color: var(--ink);
  background: var(--cream); padding: 2px 12px; border-radius: 999px;
  border: 1px solid rgba(42,35,32,.15);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s;
}
#dots a:hover span, #dots a.on span { opacity: 1; }

/* ---------- chapter 1: hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 96px 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  animation: slowzoom 24s ease-out forwards;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,12,.55), rgba(20,14,12,.35) 45%, rgba(20,14,12,.78));
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { padding-top: 24px; padding-bottom: 24px; }
.hero .over {
  font-family: var(--script); font-size: clamp(1.4rem, 3vw, 2rem);
  color: #f2c9a8; margin-bottom: .4rem;
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  letter-spacing: .01em;
}
.hero h1 span {
  display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg);
  animation: riseletter .7s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes riseletter { to { opacity: 1; transform: none; } }
.hero .under {
  margin-top: 1rem; font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(250,246,238,.92); font-weight: 500;
  opacity: 0; animation: fadeup 1s ease .9s forwards;
}
.hero .badges {
  margin-top: 1.6rem; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeup 1s ease 1.2s forwards;
}
.hero .badges b {
  font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  background: rgba(250,246,238,.14); border: 1px solid rgba(250,246,238,.35);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(3px);
}
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(250,246,238,.85); font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
}
.scrollcue i {
  display: block; width: 1px; height: 34px; margin: 8px auto 0;
  background: rgba(250,246,238,.7); animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 61% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* hero awning strip pinned to very top */
.awning-strip {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  height: 20px; background: var(--red);
}
.awning-strip::after {
  content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 26px;
  background: radial-gradient(circle at 50% 0, var(--red) 13px, transparent 14px) 0 0 / 26px 26px repeat-x;
}

/* ---------- reveal engine ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- chapter 2: la storia (timeline) ---------- */
.storia {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 56 56 0M-14 14 14-14M42 70 70 42' stroke='%232c6e63' stroke-opacity='.07' stroke-width='7'/%3E%3Cpath d='M0 0l56 56M-14 42l28 28M42-14l28 28' stroke='%232c6e63' stroke-opacity='.07' stroke-width='7'/%3E%3C/svg%3E"),
    var(--cream);
  padding: 90px 0 100px;
}
.storia-head { max-width: 720px; margin-bottom: 3rem; }
.storia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.storia-copy p { margin-bottom: 1rem; }
.storia-copy .quote {
  font-family: var(--display); font-size: 1.3rem; line-height: 1.4;
  border-left: 4px solid var(--red); padding: .4rem 0 .4rem 1.1rem;
  margin: 1.6rem 0; color: var(--ink);
}
.storia-copy .quote small { display: block; font-family: var(--body); font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.storia-img { border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(42,35,32,.22); position: sticky; top: 90px; }
.storia-img figcaption { font-size: .8rem; color: var(--ink-soft); padding: 10px 4px 0; }

.timeline { position: relative; margin-top: 4rem; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--teal), var(--teal)) top / 100% calc(var(--draw, 0) * 100%) no-repeat,
              rgba(44,110,99,.18);
  border-radius: 3px;
}
.tl-item { position: relative; padding: 0 0 2rem 22px; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--teal);
}
.tl-item.red::before { border-color: var(--red); }
.tl-item b { font-family: var(--display); font-size: 1.15rem; color: var(--teal-deep); display: block; }
.tl-item.red b { color: var(--red-deep); }
.tl-item p { color: var(--ink-soft); font-size: .98rem; max-width: 52ch; }

/* ---------- chapter 3: il menu (sticky course scenes) ---------- */
.menu-ch { background: var(--teal-deep); color: var(--cream); padding: 90px 0 30px; }
.menu-ch .kicker { color: #f2c9a8; }
.menu-ch .lede { color: rgba(250,246,238,.85); }
.menu-note {
  margin-top: 1.4rem; display: inline-block; font-size: .95rem;
  background: rgba(250,246,238,.1); border: 1px dashed rgba(250,246,238,.45);
  padding: 10px 18px; border-radius: 8px;
}
.course { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 70px 0; }
.course-visual { position: relative; }
.course-visual .stick { position: sticky; top: 12vh; }
.course-visual img { border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.course-visual .tag {
  position: absolute; top: -14px; left: -10px; z-index: 2;
  font-family: var(--script); font-size: 1.5rem; color: var(--cream);
  background: var(--red); padding: 4px 20px; border-radius: 999px;
  transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.dish { border-bottom: 1px solid rgba(250,246,238,.16); padding: 1.05rem 0; }
.dish h3 { color: #fff; }
.dish h3 em { font-family: var(--script); font-style: normal; color: #f2c9a8; font-size: 1rem; margin-left: .5rem; }
.dish p { color: rgba(250,246,238,.78); font-size: .96rem; max-width: 56ch; }
.gravy-note {
  font-family: var(--script); font-size: 1.35rem; color: #f2c9a8;
  text-align: center; padding: 34px 24px 60px; margin: 0 auto; max-width: 34ch; line-height: 1.5;
}

/* ---------- chapter 4: parole (stats + quotes) ---------- */
.parole { padding: 90px 0 70px; background: var(--cream-deep); overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 3rem 0 3.6rem; text-align: center; }
.stat b {
  font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--red); display: block; line-height: 1;
}
.stat b sup { font-size: .45em; color: var(--gold); }
.stat span { font-size: .9rem; color: var(--ink-soft); }
.marquee { display: flex; gap: 24px; width: max-content; padding: 10px 0; }
.marquee.row2 { margin-top: 18px; }
.m-anim { animation: slide 60s linear infinite; }
.m-anim.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .m-track, .marquee:focus-within .m-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.m-track { display: flex; gap: 24px; width: max-content; }
.mq {
  background: #fff; border: 1px solid rgba(42,35,32,.12); border-radius: 12px;
  padding: 16px 22px; max-width: 380px; box-shadow: 0 8px 20px rgba(42,35,32,.06);
  font-size: .95rem;
}
.mq small { display: block; margin-top: .5rem; color: var(--red); font-weight: 600; }
.bigquote {
  max-width: 780px; margin: 4rem auto 0; text-align: center;
}
.bigquote blockquote {
  font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35;
}
.bigquote blockquote::before { content: '“'; font-family: var(--script); color: var(--red); font-size: 1.4em; }
.bigquote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--ink-soft); font-size: .95rem; }

/* ---------- chapter 5: trovateci ---------- */
.trova { padding: 90px 0; }
.trova-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-top: 2.6rem; }
.hours { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.hours td { padding: 9px 12px; border-bottom: 1px solid rgba(42,35,32,.12); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today { background: #fff; outline: 2px solid var(--teal); border-radius: 6px; }
.hours tr.today td:first-child::after { content: ' · today'; font-family: var(--script); color: var(--teal); }
.open-badge {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: .8rem;
}
.open-badge.yes { background: #e3efe6; color: var(--teal-deep); border: 1px solid var(--teal); }
.open-badge.no { background: #f6e6e3; color: var(--red-deep); border: 1px solid var(--red); }
.cta-call {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.1rem; padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(192,57,43,.35); transition: transform .25s, box-shadow .25s;
}
.cta-call:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(192,57,43,.45); }
.trova .fine { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; max-width: 46ch; }
.mapbox { border-radius: 10px; overflow: hidden; box-shadow: 0 14px 36px rgba(42,35,32,.18); }
.mapbox iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: rgba(250,246,238,.8); padding: 46px 0 60px; font-size: .9rem; }
footer .fb-link { color: #f2c9a8; }
footer .disclaimer {
  margin-top: 1.6rem; padding: 16px 20px; border: 1px dashed rgba(250,246,238,.35);
  border-radius: 10px; font-size: .84rem; line-height: 1.55; max-width: 70ch;
}
footer .credit { margin-top: 1.4rem; font-size: .84rem; }
footer .credit a { color: #f2c9a8; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  #dots { display: none; }
  .storia-grid, .course, .trova-grid { grid-template-columns: 1fr; gap: 34px; }
  .storia-img { position: static; }
  .course-visual .stick { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .course { padding: 46px 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .hero h1 span, .hero .under, .hero .badges { animation: none; opacity: 1; transform: none; }
  .scrollcue i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .m-anim { animation: none; }
  .marquee { flex-wrap: wrap; width: auto; }
  .m-track { flex-wrap: wrap; width: auto; }
}
