/* Trattoria La Priora — "La tovaglia arancione" */
:root {
  --paper: #FBF3E4;
  --paper-2: #F4E7CF;
  --ink: #2B211C;
  --ink-soft: #5E4E44;
  --orange: #E2702A;
  --orange-deep: #B9521A;
  --sea: #1F5C8B;
  --sea-deep: #12395A;
  --pink: #D9487A;
  --sky: #3FA9D6;
  --white: #FFFDF8;
  --serif: "Gloock", "Georgia", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wrap: min(1180px, 100% - 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.site { overflow-x: clip; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 18px; }
.eyebrow--light { color: var(--paper); opacity: .85; }
.note { font: 700 28px/1 var(--hand); color: var(--orange-deep); transform: rotate(-3deg); display: inline-block; }
.note--blue { color: var(--sea); margin-top: 22px; }
.note--light { color: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--sans); text-decoration: none; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: var(--white); box-shadow: 0 10px 30px -10px rgba(185, 82, 26, .8); }
.btn--orange:hover { background: var(--orange-deep); }
.btn--ghost { color: var(--white); border: 1.5px solid rgba(255, 253, 248, .7); }
.btn--ghost:hover { background: rgba(255, 253, 248, .14); }
.btn--cream { background: var(--paper); color: var(--sea-deep); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(16px, calc((100% - 1180px) / 2)); color: var(--white); transition: background-color .35s, color .35s, box-shadow .35s, padding .35s; }
.nav--solid { background: rgba(251, 243, 228, .94); color: var(--ink); box-shadow: 0 1px 0 rgba(43, 33, 28, .08); padding-block: 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fan { width: 46px; height: 46px; color: var(--ink); }
.fan__pleats path { transform-origin: 32px 40px; transform-box: view-box; }
.brand__word { font: 400 26px/0.95 var(--serif); }
.brand__word small { display: block; font: 700 10px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .85; }
.nav__links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav__links a { text-decoration: none; opacity: .9; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--orange); }
.nav__call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--orange); color: var(--white); }
@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 520px) { .nav__call span { display: none; } .nav__call { padding: 12px; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--sea-deep); color: var(--white); }
.hero__media { position: absolute; inset: -12% 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(18, 57, 90, .55) 0%, rgba(18, 57, 90, 0) 28%),
  linear-gradient(0deg, rgba(30, 18, 10, .78) 0%, rgba(30, 18, 10, .25) 45%, rgba(30, 18, 10, 0) 70%); }
.hero__content { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding: 120px 0 clamp(64px, 11vh, 120px); will-change: transform; }
.hero__kicker { font: 700 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px; }
.hero__kicker i { font-style: normal; color: var(--orange); margin: 0 .4em; }
.hero__title { font-size: clamp(76px, 15vw, 210px); line-height: .86; letter-spacing: -0.02em; text-shadow: 0 6px 40px rgba(0, 0, 0, .25); }
.hero__lead { font-size: clamp(18px, 2.1vw, 24px); line-height: 1.4; margin-top: 18px; max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__rating { margin-top: 22px; font-size: 14px; opacity: .9; }
.stars { color: #F5C04A; letter-spacing: 2px; }
.stars--part { opacity: .45; margin-right: 6px; }
/* Foreground: corner of an orange tablecloth with its white overlay square */
.hero__cloth { position: absolute; z-index: 3; right: -90px; bottom: -150px; width: 380px; height: 380px; background: var(--orange); transform-origin: center; rotate: 45deg; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); will-change: transform; pointer-events: none; }
.hero__cloth::after { content: ""; position: absolute; inset: 44px; background: var(--white); box-shadow: 0 0 0 1px rgba(43, 33, 28, .05); }
@media (max-width: 767px) {
  .hero__cloth { width: 220px; height: 220px; right: -90px; bottom: -120px; }
  .hero__cloth::after { inset: 26px; }
  .hero__content { padding-bottom: 104px; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* Intro */
.intro { padding: clamp(80px, 12vw, 150px) 0 clamp(50px, 8vw, 90px); }
.intro__grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 900px; }
.intro__title { font-size: clamp(38px, 5.6vw, 72px); }
.intro__title em { font-style: normal; color: var(--sea); }
.intro__text { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.facts li { padding: 18px 18px 0 0; display: grid; gap: 2px; }
.facts li + li { padding-left: 18px; border-left: 1px solid rgba(43, 33, 28, .2); }
.facts b { font: 400 24px/1.1 var(--serif); }
.facts span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(43, 33, 28, .2); margin-top: 16px; }
}

/* La sala */
.sala { padding: clamp(30px, 5vw, 60px) 0 clamp(100px, 14vw, 180px); }
.sala__grid { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.sala__big { grid-column: 1 / 9; grid-row: 1; margin: 0; will-change: transform; }
.sala__big img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(43, 33, 28, .45); }
.sala__small { grid-column: 7 / 13; grid-row: 1; margin: 46% 0 0; z-index: 2; will-change: transform; border: 10px solid var(--white); box-shadow: 0 30px 60px -25px rgba(43, 33, 28, .5); rotate: 2deg; }
.sala__small img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sala__copy { grid-column: 1 / 7; grid-row: 2; margin-top: -40px; padding: 34px 34px 0 0; background: var(--paper); position: relative; z-index: 3; will-change: transform; }
.sala__copy h2 { font-size: clamp(34px, 4.2vw, 54px); margin-bottom: 18px; }
.sala__copy p:not(.eyebrow):not(.note) { color: var(--ink-soft); font-size: 18px; max-width: 46ch; }
@media (max-width: 900px) {
  .sala__big { grid-column: 1 / 13; }
  .sala__small { grid-column: 4 / 13; grid-row: 2; margin: -60px 0 0; }
  .sala__copy { grid-column: 1 / 13; grid-row: 3; margin-top: 10px; padding-right: 0; }
}

/* La cucina: orange tablecloth band */
.cucina { position: relative; background: var(--orange); color: var(--white); padding: clamp(90px, 11vw, 140px) 0 clamp(90px, 11vw, 140px); overflow: hidden; }
.cucina__cloth { position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; translate: -50% -50%; rotate: 45deg; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 9px); }
.cucina::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px; background: radial-gradient(circle at 14px 0, var(--paper) 13px, transparent 14px) 0 0 / 28px 28px repeat-x; }
.cucina .wrap { position: relative; }
.cucina__head { max-width: 680px; margin-bottom: 56px; }
.cucina__head h2 { font-size: clamp(38px, 5.4vw, 70px); margin-bottom: 18px; }
.cucina__head p:last-child { font-size: 18px; opacity: .95; }
.dishes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.dish { margin: 0; background: var(--white); color: var(--ink); padding: 10px 10px 16px; border-radius: 3px; box-shadow: 0 24px 40px -24px rgba(60, 25, 5, .7); }
.dish--down { margin-top: 48px; }
.dish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.dish figcaption { padding: 12px 4px 0; display: grid; gap: 2px; }
.dish b { font: 400 21px/1.1 var(--serif); }
.dish span { font-size: 14px; color: var(--ink-soft); }
.placemat { position: relative; margin: 64px auto 0; max-width: 520px; background: var(--white); color: var(--ink); padding: 34px 40px 30px; rotate: -1.5deg; box-shadow: 0 30px 60px -30px rgba(60, 25, 5, .75);
  background-image: repeating-linear-gradient(0deg, transparent 0 35px, rgba(31, 92, 139, .12) 35px 36px); }
.placemat::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(217, 72, 122, .5); pointer-events: none; }
.placemat__title { font: 400 34px/1 var(--serif); text-align: center; margin-bottom: 14px; color: var(--sea-deep); }
.placemat ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; font: 700 27px/36px var(--hand); color: var(--ink); }
.placemat li::before { content: "~ "; color: var(--pink); }
.placemat__foot { text-align: center; margin-top: 12px; font: 500 24px/1 var(--hand); color: var(--orange-deep); }
@media (max-width: 1000px) {
  .dishes { grid-template-columns: repeat(6, 1fr); }
  .dish { grid-column: span 2; }
  .dish:nth-child(4) { grid-column: 2 / span 2; }
  .dish--down { margin-top: 0; }
}
@media (max-width: 640px) {
  .dishes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dish, .dish:nth-child(4) { grid-column: auto; }
  .dish:nth-child(even) { margin-top: 28px; }
  .dish:last-child { grid-column: 1 / -1; width: 60%; justify-self: center; }
  .dish b { font-size: 18px; }
  .dish span { font-size: 13px; }
  .placemat { padding: 28px 24px 24px; }
  .placemat ul { font-size: 24px; line-height: 34px; }
}

/* Reviews */
.reviews { padding: clamp(100px, 12vw, 160px) 0; }
.reviews__head { max-width: 760px; margin-bottom: 52px; }
.reviews__head h2 { font-size: clamp(34px, 4.6vw, 60px); }
.reviews__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; align-items: start; }
.review { margin: 0; background: var(--white); padding: 34px 30px 28px; border-top: 6px solid var(--orange); box-shadow: 0 20px 50px -30px rgba(43, 33, 28, .45); }
.review--tilt-l { rotate: -1deg; }
.review--tilt-r { rotate: 1.2deg; margin-top: 40px; }
.review--blue { background: var(--sea); color: var(--white); border-top-color: var(--pink); margin-top: 80px; }
.review blockquote { margin: 0 0 22px; font: 400 21px/1.42 var(--serif); }
.review figcaption { display: grid; gap: 2px; font-size: 14px; }
.review figcaption b { font-size: 16px; }
.review figcaption span { opacity: .75; }
@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .review--blue, .review--tilt-r { margin-top: 0; }
}

/* Visit */
.visit { padding: 0 0 clamp(100px, 12vw, 150px); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); border-top: 1.5px solid var(--ink); padding-top: 56px; }
.visit h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 26px; }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(43, 33, 28, .25); font-size: 18px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-closed dd { color: var(--orange-deep); font-weight: 700; }
.hours__note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.address { display: grid; gap: 4px; text-decoration: none; padding: 26px 0 26px; font-size: 19px; }
.address__line { font: 400 clamp(34px, 4vw, 50px)/1.05 var(--serif); }
.address__cta { margin-top: 12px; font-weight: 700; color: var(--sea); }
.address:hover .address__cta { text-decoration: underline; text-underline-offset: 5px; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone { display: grid; gap: 4px; padding: 18px 20px; background: var(--white); border-radius: 6px; text-decoration: none; font: 400 25px/1.1 var(--serif); border-left: 5px solid var(--orange); transition: transform .3s var(--ease); }
.phone:hover { transform: translateY(-2px); }
.phone small { font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.mail { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--sea); }
@media (max-width: 800px) {
  .visit__grid { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; }
}

/* CTA */
.cta { background: var(--sea-deep); color: var(--white); padding: clamp(80px, 10vw, 130px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; width: 260px; height: 260px; background: var(--orange); rotate: 45deg; opacity: .95; }
.cta::before { left: -150px; top: -150px; }
.cta::after { right: -150px; bottom: -150px; }
.cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.cta h2 { font-size: clamp(36px, 5vw, 66px); max-width: 16ch; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer__name { font: 400 28px/1.1 var(--serif); margin-bottom: 6px; }
.footer p { opacity: .85; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer__links a { text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--orange); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(251, 243, 228, .15); font-size: 13px; }

/* Mobile dock */
.dock { display: none; }
@media (max-width: 767px) {
  .dock { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 54px; font-weight: 700; text-decoration: none; }
  .dock__call { background: var(--orange); color: var(--white); }
  .dock__go { background: var(--white); color: var(--sea-deep); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Motion: transform-only reveal, content never hidden */
.motion-ok [data-reveal] { transform: translateY(34px); transition: transform 1s var(--ease); }
.motion-ok [data-reveal].is-in { transform: none; }
.motion-ok .review--tilt-l[data-reveal].is-in { transform: none; }
@keyframes fan-open { from { transform: rotate(-70deg) scale(.4); } to { transform: none; } }
.motion-ok .fan__pleats path { animation: fan-open 1.1s var(--ease) both; }
.motion-ok .fan__pleats path:nth-child(2) { animation-delay: .06s; }
.motion-ok .fan__pleats path:nth-child(3) { animation-delay: .12s; }
.motion-ok .fan__pleats path:nth-child(4) { animation-delay: .18s; }
.motion-ok .fan__pleats path:nth-child(5) { animation-delay: .24s; }
.motion-ok .fan__pleats path:nth-child(6) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .btn, .phone { transition: none; }
}

.footer__credit-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer__credit-link:hover { opacity: .75; }
