/* ─────────────────────────────────────────────────────────────────────────────
   AGRITURISMO LA STALLA — Stylesheet
   ───────────────────────────────────────────────────────────────────────────── */

/* ═══ CUSTOM PROPERTIES ══════════════════════════════════════════════════════ */
:root {
  /* Hex fallbacks — overridden to OKLCH below for modern browsers */
  --brown:      #3d2c1e;
  --olive:      #4a3c28;
  --gold:       #8a7340;
  --gold-light: #b09a5a;
  --cream:      #faf5ed;
  --cream-dark: #f0e8d8;
  --text:       #2a1f14;
  --text-muted: #6b5740;

  --font-sc:    'Cormorant SC', serif;
  --font-cg:    'Cormorant Garamond', serif;
  --font-eb:    'EB Garamond', serif;
  --ff-dancing: 'Dancing Script', cursive;

  --container:  1140px;
  --section-v:  100px;
  --nav-h:      72px;

  /* Motion tokens — expo/quart out for premium deceleration */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
}

@supports (color: oklch(0% 0 0)) {
  :root {
    /* OKLCH — perceptually uniform; tinted neutrals harmonize with brand gold */
    --brown:      oklch(25.8% 0.046 42);
    --olive:      oklch(29.5% 0.042 58);
    --gold:       oklch(51.8% 0.065 74);
    --gold-light: oklch(67%   0.066 76);
    --cream:      oklch(97.2% 0.012 82);
    --cream-dark: oklch(93.1% 0.019 78);
    --text:       oklch(18.3% 0.038 42);
    --text-muted: oklch(42.7% 0.04  47);
  }
}

/* ═══ SKIP LINK ══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 9999;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--font-sc);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: top 0.15s var(--ease-out-quart);
}

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

/* ═══ FOCUS STYLES ═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.menu-section :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold-light);
}

.hero :focus-visible {
  outline-color: var(--cream);
}

/* ═══ RESET & BASE ═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-eb);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  text-wrap: balance;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ═══ LANGUAGE SYSTEM ════════════════════════════════════════════════════════ */
[data-lang="en"],
[data-lang="es"] {
  display: none;
}

body.lang-en [data-lang="it"] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }

body.lang-es [data-lang="it"] { display: none; }
body.lang-es [data-lang="es"] { display: revert; }

/* ═══ LAYOUT UTILITIES ════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-dark .section-label { color: var(--gold-light); }
.section-header-dark .section-title { color: var(--cream); }

.section-label {
  font-family: var(--font-sc);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--olive);
  line-height: 1.18;
  margin-bottom: 24px;
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.rule-left {
  margin: 0 0 32px 0;
}

/* ═══ NAV ════════════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}

#nav.scrolled {
  background: var(--cream);
  box-shadow: 0 2px 24px rgba(45, 30, 10, 0.12);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--ff-dancing);
  font-weight: 700;
  font-style: normal;
  font-size: 1.75rem;
  color: rgba(250, 245, 237, 0.92);
  line-height: 1;
  transition: color 0.25s var(--ease-out-quart);
}

#nav.scrolled .nav-logo-text {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sc);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(250, 245, 237, 0.85);
  transition: color 0.25s var(--ease-out-quart);
}

.nav-links a:hover {
  color: var(--gold-light);
}

#nav.scrolled .nav-links a {
  color: var(--text-muted);
}

#nav.scrolled .nav-links a:hover {
  color: var(--gold);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  font-family: var(--font-sc);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid rgba(250, 245, 237, 0.35);
  color: rgba(250, 245, 237, 0.75);
  transition: background 0.25s var(--ease-out-quart),
              border-color 0.25s var(--ease-out-quart),
              color 0.25s var(--ease-out-quart);
  min-height: 32px;
  min-width: 36px;
}

.lang-btn:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}

#nav.scrolled .lang-btn {
  border-color: rgba(74, 60, 40, 0.3);
  color: var(--text-muted);
}

#nav.scrolled .lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

#nav.scrolled .lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}

/* ═══ HERO ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--olive);
  text-align: center;
  padding: 120px 40px 100px;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-logo {
  width: 300px;
  max-width: 62vw;
  height: auto;
  display: block;
  margin: 0 auto 36px;
  mix-blend-mode: multiply;
}

/* Text shadow on all hero text ensures WCAG AA contrast (4.5:1)
   regardless of which video frame is behind the overlay */
.hero-eyebrow,
.hero-title-sub,
.hero-title-wordmark,
.hero-tagline {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-eyebrow {
  font-family: var(--font-sc);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 28px;
  line-height: 1;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-cg);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 3.2vw, 2.4rem);
  color: var(--cream);
  opacity: 0.85;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero-title-wordmark {
  display: block;
  font-family: var(--ff-dancing);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2.4rem, 10vw, 6.5rem);
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
}

.hero-tagline {
  font-family: var(--font-sc);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 245, 237, 0.80);
  margin-bottom: 48px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sc);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--cream);
  padding: 16px 40px;
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-quart),
              transform 0.2s var(--ease-out-quart);
  min-height: 52px;
  line-height: 1;
}

@media (hover: hover) {
  .cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: float 2.4s var(--ease-in-out) infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(176, 154, 90, 0.7);
}

.scroll-label {
  font-family: var(--font-sc);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══ INTRO STRIP ════════════════════════════════════════════════════════════ */
.intro-strip {
  background: var(--olive);
  padding: 22px 40px;
  text-align: center;
}

.intro-strip-text {
  font-family: var(--font-sc);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 245, 237, 0.80);
}

.strip-gold {
  color: var(--gold-light);
  font-weight: 600;
}

/* ═══ LA STORIA ══════════════════════════════════════════════════════════════ */
.storia {
  padding: var(--section-v) 0;
  background: var(--cream);
}

.storia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.storia-image-col {
  position: relative;
}

.storia-img-wrapper {
  position: relative;
}

.storia-img-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gold);
  border-radius: 1px;
  z-index: 0;
  pointer-events: none;
}

.storia-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1px;
}

.storia-text-col .section-label {
  text-align: left;
}

.storia-text-col .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.storia-paragraphs p:not(.storia-sub-title) {
  color: var(--text);
  margin-bottom: 0;
  text-wrap: pretty;
}

.storia-sub-title {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.25em;
}

.storia-subsection {
  margin-bottom: 1.5em;
}

.storia-subsection:last-child {
  margin-bottom: 0;
}

.storia-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(138, 115, 64, 0.25);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-sc);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(138, 115, 64, 0.25);
  flex-shrink: 0;
}

/* ═══ MENU SECTION ═══════════════════════════════════════════════════════════ */
.menu-section {
  background: var(--brown);
  padding: var(--section-v) 0;
}

.menu-section .section-label {
  color: var(--gold-light);
}

.menu-section .section-title {
  color: var(--cream);
}

.menu-section .gold-rule {
  background: var(--gold);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  font-family: var(--font-sc);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(176, 154, 90, 0.4);
  color: rgba(250, 245, 237, 0.65);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-quart),
              border-color 0.25s var(--ease-out-quart),
              color 0.25s var(--ease-out-quart);
  min-height: 44px;
}

.tab-btn:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}

.menu-panel {
  max-width: 780px;
  margin: 0 auto;
}

.menu-panel[hidden] {
  display: none;
}

.menu-list {
  list-style: none;
}

.menu-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(176, 154, 90, 0.15);
}

.menu-item:first-child {
  border-top: 1px solid rgba(176, 154, 90, 0.15);
}

.menu-item-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.menu-item-name {
  font-family: var(--font-eb);
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.4;
  flex: 1;
}

.menu-item-qty {
  font-size: 0.85rem;
  color: var(--text-muted);
  color: rgba(250, 245, 237, 0.5);
}

.badge-gf {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.menu-item-price {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.per-etto {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(176, 154, 90, 0.65);
  font-style: normal;
}

.menu-item-desc {
  font-family: var(--font-eb);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(250, 245, 237, 0.68);
  margin-top: 4px;
  line-height: 1.5;
}

.grill-subsection {
  font-family: var(--ff-dancing);
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 40px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(176, 154, 90, 0.2);
}

.grill-degustation {
  margin-top: 40px;
}

.per-etto-note {
  font-family: var(--font-sc);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(176, 154, 90, 0.72);
  text-align: center;
  margin-bottom: 8px;
}

.availability-note {
  font-family: var(--font-sc);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(176, 154, 90, 0.65);
  text-align: center;
  margin-top: 32px;
}

.oil-desc {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.menu-loading {
  text-align: center;
  font-family: var(--font-sc);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.6;
  padding: 48px 0;
}

.menu-error {
  text-align: center;
  font-family: var(--font-eb);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 48px 24px;
  line-height: 1.8;
}

.menu-section-title {
  font-family: var(--ff-dancing);
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 40px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(176, 154, 90, 0.2);
}

.menu-items > .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.menu-item-left {
  flex: 1;
  min-width: 0;
}

#panel-oli .menu-item-desc,
#panel-acque .menu-item-desc {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

/* ═══ GALLERIA ═══════════════════════════════════════════════════════════════ */
.galleria {
  background: var(--cream-dark);
  padding: var(--section-v) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 1px;
}

@media (hover: hover) {
  .gallery-item:hover .gallery-img {
    opacity: 1;
    transform: scale(1.04);
  }
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* ═══ IMAGE PLACEHOLDERS ══════════════════════════════════════════════════════ */
.img-placeholder {
  background-color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  width: 100%;
  height: 100%;
}

/* ═══ REAL IMAGES ════════════════════════════════════════════════════════════ */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 0.5s var(--ease-out-quart), opacity 0.5s var(--ease-out-quart);
}

.storia-real-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
  display: block;
}

/* ═══ SCROLL REVEAL ══════════════════════════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ PHOTO BREAK ════════════════════════════════════════════════════════════ */
.photo-break {
  height: 56vh;
  min-height: 340px;
  max-height: 640px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
    url('../images/asado-fuoco.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .photo-break {
    background-attachment: scroll;
    height: 44vh;
    min-height: 260px;
  }
}

/* ═══ CONTATTI ═══════════════════════════════════════════════════════════════ */
.contatti {
  background: var(--cream);
  padding: var(--section-v) 0;
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(138, 115, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.contact-label {
  font-family: var(--font-sc);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.contact-value {
  font-family: var(--font-eb);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-eb);
  font-size: 0.95rem;
  color: var(--text);
  gap: 16px;
}

.hours-row.closed {
  opacity: 0.45;
}

.hours-day {
  font-family: var(--font-sc);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 90px;
}

.hours-time {
  font-family: var(--font-eb);
  font-size: 0.92rem;
  color: var(--text);
  text-align: right;
}

.hours-note {
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-sc);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-quart),
              transform 0.2s var(--ease-out-quart);
  min-height: 50px;
  align-self: flex-start;
  margin-top: 8px;
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
  }
}

@media (hover: hover) {
  .contact-link:hover {
    color: var(--gold);
  }
}

.contatti-map {
  border-radius: 2px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 4px 24px rgba(45, 30, 10, 0.10);
}

.contatti-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
}

/* ═══ FOOTER ══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--brown);
  padding: 60px 40px;
  padding-bottom: max(60px, calc(60px + env(safe-area-inset-bottom)));
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: auto;
  height: 110px;
  max-width: 240px;
  display: block;
  object-fit: contain;
  opacity: 1;
}

.storia-logo-signature {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(138, 115, 64, 0.2);
  text-align: left;
}

.storia-logo-img {
  width: 120px;
  height: auto;
  display: block;
  opacity: 0.85;
}

.footer-tagline {
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 245, 237, 0.45);
  margin-bottom: 28px;
}

.footer-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.5;
}

.footer-copy {
  font-family: var(--font-sc);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 245, 237, 0.3);
}

/* ═══ NAV — switch to hamburger at 1080px ══════════════════════════════════ */
@media (max-width: 1080px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
}

/* ═══ RESPONSIVE — 900px ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --section-v: 72px;
  }

  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .storia-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .storia-image-col {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .storia-img-wrapper::before {
    left: -12px;
    top: 12px;
  }

  .storia-text-col .section-label,
  .storia-text-col .section-title {
    text-align: center;
  }

  .rule-left {
    margin: 0 auto 32px;
  }

  .storia-stats {
    justify-content: center;
  }

  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contatti-map {
    min-height: 320px;
  }

  .contatti-map iframe {
    min-height: 320px;
  }

  .hero {
    padding: 100px 24px 90px;
  }
}

/* ═══ RESPONSIVE — 560px ══════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  :root {
    --section-v: 56px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-logo-text {
    font-size: 1.5rem;
  }

  .footer-logo-img {
    height: 80px;
    max-width: 200px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .storia-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .menu-tabs {
    gap: 6px;
  }

  .tab-btn {
    font-size: 0.62rem;
    padding: 8px 14px;
  }

  .footer {
    padding: 48px 24px;
  }

  .hero {
    padding: 90px 20px 80px;
  }

  .intro-strip {
    padding: 20px 20px;
  }

  .intro-strip-text {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .cta-btn {
    padding: 14px 28px;
  }

  .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ RESPONSIVE — 1024px (tablet / narrow desktop) ══════════════════════════ */
@media (max-width: 1024px) {
  .storia-inner {
    gap: 48px;
  }

  .contatti-grid {
    gap: 40px;
  }
}

/* ═══ ACTIVE / PRESS STATES ══════════════════════════════════════════════════ */
.cta-btn:active {
  transform: translateY(0) scale(0.97);
}

.whatsapp-btn:active {
  transform: translateY(0) scale(0.97);
}

.tab-btn:active {
  opacity: 0.80;
}

.lang-btn:active {
  opacity: 0.80;
}

/* ═══ PARAGRAPH LINE LENGTH ══════════════════════════════════════════════════ */
.storia-paragraphs {
  max-width: 62ch;
}

/* ═══ TESTIMONIALS ══════════════════════════════════════════════════════════ */
.testimonials {
  background-color: var(--olive);
  padding: 96px 40px;
}

.testimonials-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-label {
  font-family: var(--font-sc);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.testimonials-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 56px;
}

.testimonials-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-item {
  width: 100%;
}

.testimonial-mark {
  display: block;
  font-family: var(--font-cg);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 0.5;
  margin-bottom: 8px;
}

.testimonial-text {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--cream);
}

.testimonial-attr {
  font-family: var(--font-sc);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 20px;
}

.testimonial-divider {
  font-family: var(--font-cg);
  color: var(--gold-light);
  opacity: 0.5;
  font-size: 1rem;
  letter-spacing: 0.3em;
  margin: 48px auto;
}

/* ═══ STICKY WHATSAPP BUTTON ════════════════════════════════════════════════ */
.sticky-wa {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-wa.is-visible {
  opacity: 1;
}

@media (hover: hover) {
  .sticky-wa:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  }
}

.sticky-wa:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .sticky-wa {
    display: flex;
  }

  .testimonials {
    padding: 56px 20px;
  }

  .contatti {
    padding: 56px 20px;
  }

  .hours-day {
    min-width: 80px;
    font-size: 0.62rem;
  }

  .lang-switcher {
    display: none;
  }
}

/* ═══ INTRO STRIP STATS ═════════════════════════════════════════════════════ */
.strip-stats-rule {
  width: 48px;
  height: 1px;
  background: rgba(250, 245, 237, 0.3);
  margin: 24px auto;
}

.strip-stats {
  display: flex;
  justify-content: center;
  align-items: center;
}

.strip-stat {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.strip-stat--divided {
  border-right: 1px solid rgba(250, 245, 237, 0.2);
  border-left: 1px solid rgba(250, 245, 237, 0.2);
}

.strip-stat-number {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold-light);
  line-height: 1;
}

.strip-stat-label {
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 245, 237, 0.7);
}

/* ═══ MENU ORNAMENT & PHOTO BREAK ═══════════════════════════════════════════ */
.menu-panel-title {
  font-family: var(--ff-dancing);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.1;
}

.menu-divider-ornament {
  text-align: center;
  color: var(--gold);
  opacity: 0.4;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin: 0 0 40px 0;
}


#panel-dessert .menu-item {
  margin-bottom: 32px;
}

/* ── FARM SECTION ──────────────────────────────────────────────────────────── */
.farm-section {
  background: var(--cream-dark);
  padding: 96px 24px;
}

.farm-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 80px;
  align-items: center;
}

.farm-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.2;
}

.farm-body {
  font-family: var(--font-eb);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 28px;
}

.farm-callout {
  font-family: var(--font-sc);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  display: block;
  margin-top: 32px;
}

.farm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.farm-placeholder {
  background: var(--cream-dark);
  border: 1px dashed rgba(138, 115, 64, 0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.6;
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  height: 200px;
}

.farm-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.92;
}

.farm-photo:hover {
  transform: scale(1.03);
  opacity: 1;
}

@media (max-width: 900px) {
  .farm-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 560px) {
  .farm-placeholder,
  .farm-photo {
    height: 160px;
  }
}

/* ═══ PREFERS-REDUCED-MOTION ════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══ GALLERY CAROUSEL ══════════════════════════════════════════════════════ */
.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--brown);
  border-radius: 2px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
}

.slide-photo {
  overflow: hidden;
  border-radius: 2px;
  background: var(--olive);
  aspect-ratio: 4 / 3;
}

.slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.9;
}

@media (hover: hover) {
  .slide-photo:hover img {
    transform: scale(1.03);
    opacity: 1;
  }
}

/* Nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 8, 5, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
  padding-bottom: 2px;
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

@media (hover: hover) {
  .carousel-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
    color: var(--gold);
  }
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 10px;
  background: var(--brown);
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(240, 230, 208, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* Counter */
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-sc);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(240, 230, 208, 0.5);
  z-index: 10;
  display: flex;
  gap: 4px;
}

.counter-sep {
  opacity: 0.4;
}

/* Tablet — 2 photos per slide */
@media (max-width: 900px) {
  .slide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide-photo:nth-child(3) {
    display: none;
  }
}

/* Mobile — 1 photo per slide */
@media (max-width: 560px) {
  .slide-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px;
  }
  .slide-photo:nth-child(2),
  .slide-photo:nth-child(3) {
    display: none;
  }
  .slide-photo {
    aspect-ratio: 16 / 10;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
}

/* ═══ NAV HAMBURGER ══════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-ham-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease;
}

#nav.scrolled .nav-ham-line {
  background: var(--text);
}

.nav-hamburger.open .nav-ham-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open .nav-ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open .nav-ham-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }
}

/* ═══ NAV DRAWER ═════════════════════════════════════════════════════════════ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.55);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--brown);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 32px 40px;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--cream);
  opacity: 0.65;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-bottom: 28px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav-drawer-close:hover {
  opacity: 1;
}

.nav-drawer-nav {
  flex: 1;
}

.nav-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-drawer-link {
  display: block;
  font-family: var(--font-sc);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.82;
  padding: 18px 0;
  border-bottom: 1px solid rgba(250, 245, 237, 0.07);
  transition: opacity 0.15s, color 0.15s;
}

.nav-drawer-link:hover {
  opacity: 1;
  color: var(--gold-light);
}

.nav-drawer-lang {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

/* ═══ DESKTOP FLOATING WHATSAPP ══════════════════════════════════════════════ */
.desktop-float-wa {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(calc(100% - 50px));
  z-index: 997;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  padding: 13px 15px;
  border-radius: 4px 0 0 4px;
  text-decoration: none;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.desktop-float-wa.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) {
  .desktop-float-wa:hover {
    transform: translateY(-50%) translateX(0);
  }
}

.desktop-float-wa-label {
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .desktop-float-wa {
    display: flex;
  }
}

@media (max-width: 768px) {
  .desktop-float-wa {
    display: none !important;
  }
}

/* ── PRINT BUTTON (screen only) ──────────────────────────────────────────── */
.menu-print-btn-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.menu-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  font-family: var(--font-sc);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.menu-print-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── COVER PRINT WRAPPER (screen: transparent / print: cover page) ──────── */
@media screen {
  .menu-cover-print {
    display: contents;
  }
  .menu-cover-tagline,
  .menu-cover-sub {
    display: none;
  }
}

/* ── WINE LIST ─────────────────────────────────────────────────────────────── */
.wine-list,
.bev-list {
  max-width: 860px;
  margin: 0 auto;
}

.wine-category,
.bev-category {
  margin-bottom: 56px;
}

.wine-category-title,
.bev-category-title {
  font-family: var(--ff-dancing);
  font-style: normal;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(176, 154, 90, 0.25);
}

.wine-country-label {
  font-family: var(--font-sc);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(176, 154, 90, 0.55);
  margin: 24px 0 4px;
}

.wine-region-title,
.bev-region-title {
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 20px 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(176, 154, 90, 0.15);
}

.wine-items,
.bev-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wine-item,
.bev-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(176, 154, 90, 0.12);
}

.wine-item:first-child,
.bev-item:first-child {
  border-top: 1px solid rgba(176, 154, 90, 0.12);
}

.wine-item-left,
.bev-item-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wine-item-name {
  font-family: var(--font-eb);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
}

.wine-item-producer {
  display: block;
  font-family: var(--font-eb);
  font-size: 0.88rem;
  color: rgba(250, 245, 237, 0.6);
  line-height: 1.3;
}

.wine-item-grape {
  display: block;
  font-family: var(--font-eb);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(176, 154, 90, 0.65);
  line-height: 1.3;
}

.wine-item-price {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  padding-top: 1px;
}

.wine-glass-price {
  font-size: 0.88rem;
  opacity: 0.8;
}

.wine-glass-label {
  font-family: var(--font-sc);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bevande */
.bev-item-name {
  font-family: var(--font-eb);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
}

.bev-item-code {
  font-family: var(--font-sc);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(176, 154, 90, 0.5);
  margin-right: 8px;
  vertical-align: middle;
}

.bev-item-detail {
  display: block;
  font-family: var(--font-eb);
  font-size: 0.88rem;
  color: rgba(250, 245, 237, 0.6);
  line-height: 1.3;
}

.bev-item-desc {
  display: block;
  font-family: var(--font-eb);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(250, 245, 237, 0.52);
  line-height: 1.45;
  margin-top: 2px;
}

.bev-item-price {
  font-family: var(--font-cg);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  padding-top: 1px;
}


/* ── MENU COLLAPSE ──────────────────────────────────────────────────────────── */

/* Collapsible content: hidden when section carries .is-collapsed */
.menu-section.is-collapsed .menu-collapsible {
  display: none;
}

/* Reveal animation when section becomes .is-expanded */
.menu-section.is-expanded .menu-collapsible {
  display: block;
  animation: menu-reveal 0.3s ease forwards;
}

@keyframes menu-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Reveal CTA wrapper */
.menu-reveal-wrap {
  text-align: center;
  padding: 28px 0 44px;
}

.is-expanded .menu-reveal-wrap {
  padding: 12px 0 28px;
}

/* Description line — hidden once expanded */
.menu-reveal-desc {
  font-family: var(--font-eb);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(250, 245, 237, 0.45);
  margin: 0 0 20px;
  line-height: 1.5;
}

.is-expanded .menu-reveal-desc {
  display: none;
}

/* Reveal / collapse button */
.menu-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 34px;
  border: 1px solid rgba(176, 154, 90, 0.45);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-sc);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s var(--ease-out-quart),
              border-color 0.22s var(--ease-out-quart),
              color 0.22s var(--ease-out-quart);
}

.menu-reveal-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Open/close label switching via parent class */
.reveal-label-open  { display: inline; }
.reveal-label-close { display: none;   }

.is-expanded .reveal-label-open  { display: none;   }
.is-expanded .reveal-label-close { display: inline; }

/* Chevron rotates 180° when expanded */
.reveal-chevron {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-quart);
}

.is-expanded .reveal-chevron {
  transform: rotate(180deg);
}

/* ── PRINT STYLES ──────────────────────────────────────────────────────────── */
@media print {

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* User must uncheck "Headers and Footers"
     in the browser print dialog to remove
     the URL and timestamp from the page. */
  head { display: none !important; }

  body {
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-family: 'EB Garamond', serif;
    font-size: 11pt;
    margin: 0;
    padding: 0;
  }

  /* ── Comprehensive hide list ── */
  nav,
  #hero,
  #intro,
  #storia,
  .farm-section,
  .testimonials,
  #galleria,
  #vini,
  #bevande,
  #contatti,
  footer,
  .hero-scroll,
  .menu-tabs,
  .sticky-whatsapp,
  .whatsapp-float,
  .whatsapp-btn,
  a[href*="wa.me"],
  .lang-switcher,
  .menu-divider-ornament,
  .intro-strip,
  .photo-break,
  .section-separator,
  .featured-card,
  .hero-cta,
  .hero-cta-secondary,
  .hero-rating,
  .photo-strip,
  #photo-strip,
  .photo-strip-grid,
  .fire-headline,
  .menu-print-btn-wrap,
  .per-etto-note,
  #menu-loading,
  .menu-error,
  .nav-hamburger,
  .nav-drawer,
  .nav-overlay,
  .desktop-float-wa,
  .no-print,
  *[style*="position: fixed"] {
    display: none !important;
  }

  /* Ensure reveal animations don't hide elements */
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Show and style the menu section */
  #menu {
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ── Cover page ── */
  .section-header {
    display: block !important;
    background: none !important;
  }

  .menu-cover-print {
    height: 100vh !important;
    min-height: 250mm !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    page-break-after: always !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .menu-cover-print .section-label {
    font-family: 'Cormorant SC', serif;
    font-size: 10pt !important;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8a7340 !important;
    margin-bottom: 20pt;
    display: block !important;
  }

  .menu-cover-print .section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 52pt !important;
    color: #3d2c1e !important;
    margin-bottom: 8pt;
    line-height: 1;
    display: block !important;
  }

  .menu-cover-print .gold-rule {
    width: 80px;
    height: 1px;
    background: #c9a84c !important;
    margin: 0 auto 24pt;
    display: block !important;
  }

  .menu-cover-tagline {
    font-family: 'Cormorant SC', serif;
    font-size: 9pt;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8a7340 !important;
    margin-bottom: 16pt;
    display: block !important;
  }

  .menu-cover-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13pt;
    font-style: italic;
    color: #6b5740 !important;
    display: block !important;
  }

  /* ── Show all panels regardless of active/hidden state ── */
  .menu-panel {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }

  /* Panel titles */
  .menu-panel-title {
    font-family: 'Dancing Script', cursive;
    font-size: 20pt;
    color: #3d2c1e !important;
    text-align: center;
    margin: 16pt 0 8pt;
    border-bottom: 1px solid #c9a84c;
    padding-bottom: 6pt;
    display: block !important;
  }

  /* Subsection titles (griglieria) */
  .menu-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13pt;
    font-style: italic;
    color: #4a3c28 !important;
    margin: 12pt 0 6pt;
    display: block !important;
    border: none !important;
  }

  /* Menu items */
  .menu-items {
    display: block !important;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-item {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    padding: 5pt 0;
    border-bottom: 1px dotted #d4c4a8;
    page-break-inside: avoid;
  }

  .menu-item-left {
    flex: 1;
    min-width: 0;
  }

  .menu-item-name {
    font-family: 'EB Garamond', serif;
    font-size: 11pt;
    color: #1a1a1a !important;
    font-weight: 500;
    display: block;
  }

  .menu-item-desc {
    font-family: 'EB Garamond', serif;
    font-size: 9pt;
    font-style: italic;
    color: #6b5740 !important;
    margin-top: 2pt;
    line-height: 1.4;
  }

  .menu-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12pt;
    font-style: italic;
    color: #8a7340 !important;
    white-space: nowrap;
    margin-left: 12pt;
    flex-shrink: 0;
  }

  .per-etto {
    font-size: 8pt;
    color: #8a7340 !important;
  }

  /* Availability note */
  .availability-note {
    font-family: 'Cormorant SC', serif;
    font-size: 8pt;
    letter-spacing: 0.1em;
    color: #8a7340 !important;
    text-align: center;
    margin-top: 8pt;
    font-style: italic;
    display: block !important;
  }

  /* Acque section inside Oli panel */
  .acque-section {
    display: block !important;
  }

  .grill-subsection {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13pt;
    font-style: italic;
    color: #4a3c28 !important;
    margin: 12pt 0 6pt;
    border: none !important;
    display: block !important;
  }

  /* Badge */
  .badge-gf {
    font-size: 7pt;
    border-color: #8a7340 !important;
    color: #8a7340 !important;
    vertical-align: middle;
  }

  /* Kill .photo-break background-image div completely */
  .no-print {
    display: none !important;
  }

  .photo-break {
    display: none !important;
    visibility: hidden !important;
    background-image: none !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    opacity: 0 !important;
  }

  div[style*="asado-fuoco"] {
    display: none !important;
  }

  *[style*="background-image"] {
    background-image: none !important;
  }

  /* Hide all images except inside menu panels */
  img {
    display: none !important;
  }

  #menu img:not(.menu-panel img) {
    display: none !important;
  }

  #menu .menu-items img {
    display: none !important;
  }

  /* Force new page before Griglieria */
  #panel-griglieria {
    page-break-before: always;
  }

  /* Avoid orphaned headings */
  .menu-panel + .menu-panel {
    page-break-before: auto;
  }

  /* ── Collapse bypass: always show full content when printing ── */
  body[data-printing="vini"] #vini .menu-collapsible,
  body[data-printing="bevande"] #bevande .menu-collapsible { display: block !important; }
  body[data-printing="vini"] #vini .menu-reveal-wrap,
  body[data-printing="bevande"] #bevande .menu-reveal-wrap { display: none !important; }

  /* ── Targeted: printing vini ── */
  body[data-printing="vini"] #menu  { display: none !important; }

  body[data-printing="vini"] #vini {
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-printing="vini"] .vini-cover-print {
    height: 100vh !important;
    min-height: 250mm !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    page-break-after: always !important;
  }

  body[data-printing="vini"] .wine-category-title {
    font-family: 'Dancing Script', cursive;
    font-size: 18pt !important;
    color: #3d2c1e !important;
    border-bottom-color: #c9a84c !important;
    page-break-after: avoid;
  }

  body[data-printing="vini"] .wine-country-label {
    font-family: 'Cormorant SC', serif;
    font-size: 8pt !important;
    letter-spacing: 0.2em;
    color: #8a7340 !important;
  }

  body[data-printing="vini"] .wine-region-title {
    font-family: 'Cormorant SC', serif;
    font-size: 9pt !important;
    letter-spacing: 0.18em;
    color: #8a7340 !important;
    border-bottom-color: #d4c4a8 !important;
  }

  body[data-printing="vini"] .wine-item {
    padding: 5pt 0;
    border-bottom: 1px dotted #d4c4a8 !important;
    page-break-inside: avoid;
  }

  body[data-printing="vini"] .wine-item-name {
    font-family: 'EB Garamond', serif;
    font-size: 11pt !important;
    color: #1a1a1a !important;
  }

  body[data-printing="vini"] .wine-item-producer {
    font-family: 'EB Garamond', serif;
    font-size: 9pt !important;
    color: #6b5740 !important;
  }

  body[data-printing="vini"] .wine-item-grape {
    font-family: 'EB Garamond', serif;
    font-size: 8.5pt !important;
    color: #8a7340 !important;
  }

  body[data-printing="vini"] .wine-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11pt !important;
    color: #8a7340 !important;
  }

  body[data-printing="vini"] .wine-glass-label {
    font-size: 7pt !important;
  }

  /* ── Targeted: printing bevande ── */
  body[data-printing="bevande"] #menu  { display: none !important; }

  body[data-printing="bevande"] #bevande {
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-printing="bevande"] .bevande-cover-print {
    height: 100vh !important;
    min-height: 250mm !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    page-break-after: always !important;
  }

  body[data-printing="bevande"] .bev-category-title {
    font-family: 'Dancing Script', cursive;
    font-size: 16pt !important;
    color: #3d2c1e !important;
    border-bottom-color: #c9a84c !important;
    page-break-after: avoid;
  }

  body[data-printing="bevande"] .bev-region-title {
    font-family: 'Cormorant SC', serif;
    font-size: 8pt !important;
    letter-spacing: 0.18em;
    color: #8a7340 !important;
    border-bottom-color: #d4c4a8 !important;
  }

  body[data-printing="bevande"] .bev-item {
    padding: 5pt 0;
    border-bottom: 1px dotted #d4c4a8 !important;
    page-break-inside: avoid;
  }

  body[data-printing="bevande"] .bev-item-name {
    font-family: 'EB Garamond', serif;
    font-size: 11pt !important;
    color: #1a1a1a !important;
  }

  body[data-printing="bevande"] .bev-item-code {
    font-family: 'Cormorant SC', serif;
    font-size: 7pt !important;
    color: #8a7340 !important;
  }

  body[data-printing="bevande"] .bev-item-detail {
    font-family: 'EB Garamond', serif;
    font-size: 9pt !important;
    color: #6b5740 !important;
  }

  body[data-printing="bevande"] .bev-item-desc {
    font-family: 'EB Garamond', serif;
    font-size: 8.5pt !important;
    font-style: italic;
    color: #8a7340 !important;
  }

  body[data-printing="bevande"] .bev-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11pt !important;
    color: #8a7340 !important;
  }

  /* Skip placeholder rows (DATO…) from print for both vini and bevande */
  body[data-printing="vini"] .wine-item[data-placeholder],
  body[data-printing="bevande"] .bev-item[data-placeholder] {
    display: none !important;
  }

  /* User must uncheck "Headers and Footers"
     in the browser print dialog to remove
     the URL, title, and timestamp lines. */
  @page {
    margin: 15mm 20mm;
    size: A4 portrait;
  }

}
