/* Ristorante Due Lupi — concept demo
   Warm Italian Premium. Fraunces + Manrope. */

:root {
  --crema: #F5EFE4;
  --travertino: #E6DAC5;
  --espresso: #2B211B;
  --terracotta: #A8432E;
  --terracotta-deep: #8D3522;
  --oliva: #5F6146;
  --ottone: #B08A55;
  --notte: #1C1714;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}
.site-header :focus-visible,
.hero :focus-visible,
.sala :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ottone);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--crema);
  color: var(--espresso);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Type */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--ottone); }

main > section:not(.hero) .eyebrow { font-size: .8rem; }

.fineprint {
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(43, 33, 27, .78);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .88rem; }

.btn-primary { background: var(--terracotta); color: var(--crema); }
.btn-primary:hover { background: var(--terracotta-deep); }

.btn-ghost-light { border-color: rgba(245, 239, 228, .65); color: var(--crema); }
.btn-ghost-light:hover { background: rgba(245, 239, 228, .12); border-color: var(--crema); }

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

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ottone);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
  transition: text-decoration-color .2s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--crema);
  background: linear-gradient(180deg, rgba(28, 23, 20, .72), rgba(28, 23, 20, 0));
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(28, 23, 20, .97);
  box-shadow: 0 1px 0 rgba(245, 239, 228, .09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.wordmark-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wordmark-sub {
  margin-top: .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ottone);
}

.header-actions { display: flex; align-items: center; gap: .75rem; }

.site-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  background: rgba(28, 23, 20, .97);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .3s var(--ease), visibility 0s linear .3s;
}
.nav-open .site-nav {
  max-height: 24rem;
  visibility: visible;
  transition: max-height .3s var(--ease);
}
.site-nav ul { padding: .5rem var(--gutter) 1.25rem; }
.site-nav a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(245, 239, 228, .1);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero — mobile first: video on top, copy below */
.hero {
  position: relative;
  background: var(--notte);
  color: var(--crema);
  line-height: 1.65; /* pinned: hero is unchanged from V1 */
}
.hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 72svh;
  width: 100%;
  overflow: hidden;
  background: var(--notte);
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% 50%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(28, 23, 20, 0), var(--notte));
  pointer-events: none;
}

.hero-copy { padding-block: 1.25rem 3.5rem; }
.hero-copy-inner { max-width: 34rem; }

.hero h1 {
  font-size: clamp(2.5rem, 11vw, 4.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(245, 239, 228, .88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-actions .btn { flex: 1 1 10rem; }
@media (max-width: 479px) {
  .hero-actions .btn { flex-basis: 100%; }
}

@media (min-width: 900px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: max(40rem, 100svh);
    max-height: 62rem;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    max-height: none;
  }
  .hero-poster,
  .hero-video { object-position: 78% 50%; }
  /* readability only where the copy sits — the plate stays clear */
  .hero-media::after {
    inset: 0;
    height: auto;
    background:
      linear-gradient(90deg, rgba(28, 23, 20, .74) 0%, rgba(28, 23, 20, .5) 28%, rgba(28, 23, 20, 0) 52%);
  }
  .hero-copy {
    position: relative;
    padding-block: calc(var(--header-h) + 3rem) 4rem;
  }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Header: desktop nav inline */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: none;
    transition: none;
  }
  .site-nav ul { display: flex; gap: 2rem; padding: 0; }
  .site-nav a {
    padding: .4rem 0;
    border: 0;
    font-size: .96rem;
    background-image: linear-gradient(var(--ottone), var(--ottone));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .25s var(--ease);
  }
  .site-nav a:hover { background-size: 100% 2px; }
  .header-inner { gap: 2rem; }
  .wordmark-name { font-size: 1.75rem; }
}

/* Pillars */
.pillars { padding-block: clamp(2.5rem, 5vw, 4rem); }
.pillars-list {
  display: grid;
  gap: 2rem;
}
.pillars-list li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--terracotta);
}
.pillar-title {
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: .6rem;
}
.pillars-list p { max-width: 24rem; font-size: 1.0625rem; color: rgba(43, 33, 27, .88); }

@media (min-width: 800px) {
  .pillars-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* Cucina */
.cucina {
  background: var(--travertino);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.cucina-grid { display: grid; gap: 2.5rem; }
.cucina-figure img {
  width: 100%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  object-position: 50% 88%;
  border-radius: 2px;
}
.cucina-body h2 { margin-bottom: 2rem; }

.dishes { border-top: 1px solid rgba(43, 33, 27, .28); }
.dish-group {
  display: grid;
  align-items: baseline;
  gap: .4rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(43, 33, 27, .28);
}
.dish-cat {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.dish-group li {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  line-height: 1.3;
  padding-block: .25rem;
}
.dish-note {
  margin-left: .4rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--oliva);
}
.cucina .fineprint { margin-top: 1.75rem; }

@media (min-width: 560px) {
  .dish-group { grid-template-columns: 7.5rem 1fr; }
}
@media (min-width: 900px) {
  .cucina-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
  }
}

/* Storia */
.storia { padding-block: clamp(4rem, 9vw, 8rem); }
.storia-grid { display: grid; gap: 1.5rem; }
.storia-year {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 24vw, 13rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.03em;
  color: var(--terracotta);
}
.storia-body { max-width: 37rem; }
.storia-body h2 { margin-bottom: 1.5rem; }
.storia-body p { font-size: 1.125rem; line-height: 1.75; color: rgba(43, 33, 27, .92); }
.storia-body p + p { margin-top: 1.25rem; }

@media (min-width: 900px) {
  .storia-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
  }
}

/* Sala */
.sala {
  position: relative;
  background: var(--notte);
  color: var(--crema);
}
.sala-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 50%;
}
.sala-panel { padding-block: 2.5rem 3.5rem; max-width: 32rem; }
.sala-panel h2 { font-size: clamp(2.1rem, 5vw, 3.25rem); margin-bottom: 1.25rem; }
.sala-panel p { font-size: 1.1875rem; line-height: 1.65; color: rgba(245, 239, 228, .95); }
.sala-panel p + p { margin-top: 1rem; }
.sala-link { margin-top: 1.75rem !important; }

@media (min-width: 900px) {
  .sala {
    display: flex;
    align-items: center;
    min-height: 36rem;
  }
  .sala-media { position: absolute; inset: 0; }
  .sala-media img { height: 100%; aspect-ratio: auto; object-position: 60% 50%; }
  .sala-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 23, 20, .86) 0%, rgba(28, 23, 20, .78) 40%, rgba(28, 23, 20, 0) 66%);
  }
  .sala-inner { position: relative; padding-block: 5rem; }
  .sala-panel { padding: 0; text-shadow: 0 0 18px rgba(28, 23, 20, .6); }
}

/* Recensioni (hidden until verified quotes exist) */
.recensioni { padding-block: clamp(3.5rem, 8vw, 6rem); }
.recensioni h2 { margin-bottom: 2rem; }
.reviews-grid { display: grid; gap: 1.5rem; }
.review {
  padding: 1.5rem;
  border-top: 2px solid var(--terracotta);
  background: var(--travertino);
}
.review blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.4; }
.review figcaption { margin-top: 1rem; font-size: .9rem; color: rgba(43, 33, 27, .8); }
@media (min-width: 800px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contatti — the main conversion moment */
.contatti {
  background: var(--travertino);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.contatti-grid { display: grid; gap: 2.5rem; }
.contatti-body h2 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.contatti-lede { font-size: 1.25rem; margin-bottom: 2rem; }

.contact-list { display: grid; gap: 1.75rem; margin-bottom: 2rem; }
.contact-list > div {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(43, 33, 27, .28);
}
.contact-list dt {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: .4rem;
}
.contact-list dd { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.35; overflow-wrap: anywhere; }
.contact-list > div:nth-child(2) dd { font-size: clamp(1.65rem, 3.2vw, 1.95rem); }
.contact-list address { font-style: normal; }
.contact-list a { text-decoration-color: var(--ottone); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.contact-list a:hover { text-decoration-color: currentColor; }

.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.contact-actions .btn { flex: 1 1 9rem; }
.contact-actions .btn-primary {
  flex: 1 1 100%;
  min-height: 3.5rem;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}
.contact-actions .btn-outline { font-weight: 500; border-color: rgba(43, 33, 27, .55); }
.contact-actions .btn-outline:hover { border-color: var(--espresso); }

/* Exterior keeps its native wide ratio so no sign is ever cropped */
.contatti-figure img {
  width: 100%;
  aspect-ratio: 1584 / 672;
  object-fit: contain;
  border-radius: 2px;
}
.contatti-figure figcaption {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .85rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(43, 33, 27, .8);
}
.contatti-figure figcaption::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

@media (min-width: 900px) {
  .contatti-grid { gap: 3.5rem; }
  .contatti-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "intro list" "cta list";
    column-gap: clamp(3rem, 6vw, 5.5rem);
    align-content: start;
  }
  .contatti-intro { grid-area: intro; }
  .contact-list { grid-area: list; margin-bottom: 0; align-self: start; }
  .contatti-cta { grid-area: cta; }
  .contact-actions .btn { flex: 0 0 auto; }
  .contact-actions .btn-primary { flex: 0 0 auto; }
}

/* Footer */
.site-footer {
  background: var(--notte);
  color: var(--crema);
  padding-block: 3rem 2.5rem;
  font-size: 1rem;
}
.footer-inner { display: grid; gap: 1.75rem; }
.footer-name { font-family: var(--font-serif); font-size: 1.6rem; }
.footer-since {
  margin-top: .15rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ottone);
}
.footer-contact p { color: rgba(245, 239, 228, .88); }
.footer-contact p + p { margin-top: .35rem; }
.footer-contact a { text-underline-offset: .2em; }
.demo-note {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 239, 228, .14);
  font-size: .875rem;
  color: rgba(245, 239, 228, .78);
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .demo-note { grid-column: 1 / -1; }
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion: static poster, no entrance animation, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
