/* ─────────────────────────────────────────────────────────────────
   Portego De Ma' — Home (versión animada)
   Mantiene paleta + tipografías originales, añade movimiento.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --warm-white:  #F5F2DC;
  --soft-cream:  #DDD0C8;
  --espresso:    #8C0D1C;
  --olive:       #D81522;
  --wood:        #6A4941;
  --terracotta:  #A99183;
  --warm-beige:  #C8B5A8;
  --muted-gray:  #9A7A73;
  --sand:        #EDE9D6;
  --ink:         #2a1a16;

  --ease:     cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in:  cubic-bezier(.7,0,.84,0);

  --motion: 1;            /* tweaks: motion intensity multiplier (0 / .5 / 1 / 1.4) */
  --serif:  'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans:   'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--warm-white);
  background-image: url('../images/fondo pc.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--olive); color: #fff; }

/* ─────────────────────────────────────────────────────────────────
   REVEAL ON SCROLL
   ───────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(calc(36px * var(--motion)));
  transition:
    opacity .9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

.reveal-left { transform: translateX(calc(-40px * var(--motion))); }
.reveal-left.in { transform: none; }
.reveal-right { transform: translateX(calc(40px * var(--motion))); }
.reveal-right.in { transform: none; }
.reveal-scale { transform: scale(.96); }
.reveal-scale.in { transform: scale(1); }

/* Text wipe-up — each .mask-line is a line, span inside wipes up */
.mask-line {
  display: block;
  overflow: hidden;
  line-height: 1.05;
  padding-bottom: .04em;
}
.mask-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: transform;
}
.in .mask-line > span,
.mask-line.in > span { transform: none; }

/* Animated underline draw-in */
.draw-line {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.draw-line::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; background: currentColor;
  width: 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}
.in .draw-line::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none; transition: none;
  }
  .mask-line > span { transform: none; transition: none; }
  .draw-line::after { transform: scaleX(1); transition: none; }
}

/* ─────────────────────────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: transparent;
  transition: background .45s ease, padding .45s ease, box-shadow .45s ease, backdrop-filter .45s ease;
}
.navbar.scrolled {
  background: rgba(245,242,220,0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  padding: 10px 40px;
  box-shadow: 0 2px 24px rgba(140,13,28,0.08);
}
.navbar.hide-bg-on-hero:not(.scrolled) { color: #fff; }

.navbar-logo { display: flex; align-items: center; }
.navbar-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height .45s ease, filter .45s ease;
}
.navbar.scrolled .navbar-logo img { height: 40px; }
.navbar.hide-bg-on-hero:not(.scrolled) .navbar-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.navbar-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.navbar-links a {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  padding: 6px 0;
  transition: color .35s ease;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.navbar.scrolled .navbar-links a { color: var(--espresso); }
.navbar.scrolled .navbar-links a:hover { color: var(--olive); }

.navbar-right { display: flex; align-items: center; gap: 18px; }
.navbar-whatsapp {
  display: flex; align-items: center;
  transition: color .3s ease, transform .3s var(--ease-out);
  color: inherit;
}
.navbar.scrolled .navbar-whatsapp { color: var(--olive); }
.navbar-whatsapp svg { width: 24px; height: 24px; }
.navbar-whatsapp:hover { transform: scale(1.12) rotate(-6deg); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: currentColor; transition: all .3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--warm-white);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
}
.mobile-menu.open { transform: none; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 28px; text-align: center; }
.mobile-menu ul a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.04em;
  transition: color .3s ease;
}
.mobile-menu ul a:hover { color: var(--olive); }
.mobile-wa {
  margin-top: 36px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--olive); color: #fff;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
}
.mobile-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* ─────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.12) translate3d(0, var(--parallax-y, 0px), 0);
  animation: kenburns calc(28s / max(var(--motion),.001)) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.12) translate(0, 0); }
  100% { transform: scale(1.22) translate(-2%, -2%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 75%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.55) 100%);
}

.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0%, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.4) 0%, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,.3) 0%, transparent 1px);
  background-size: 3px 3px, 5px 5px, 4px 4px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 24px;
  max-width: 1100px;
  width: 100%;
}

.hero-kicker {
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: rgba(255,255,255,.92);
}
.hero-kicker .bar {
  width: 60px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: center;
  animation: drawBar 1.1s var(--ease-out) .3s forwards;
}
@keyframes drawBar { to { transform: scaleX(1); } }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(60px, 9vw, 132px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #fff;
}
.hero h1 .amp {
  font-style: italic;
  display: inline-block;
  transform: translateY(.05em);
  color: var(--warm-white);
  opacity: .85;
}

.hero-sub {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: rgba(255,255,255,.94);
  letter-spacing: .01em;
}
.hero-sub .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }

.hero-actions {
  margin-top: 56px;
  display: flex; gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-bottom {
  position: absolute;
  left: 40px; right: 40px; bottom: 32px;
  z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  color: rgba(255,255,255,.85);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-bottom .scroll-ind {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-bottom .scroll-ind .track {
  width: 1px; height: 48px;
  background: rgba(255,255,255,.3);
  position: relative; overflow: hidden;
}
.hero-bottom .scroll-ind .track::before {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 50%; top: -50%;
  background: #fff;
  animation: scrollLine calc(2.4s / max(var(--motion),.001)) var(--ease-out) infinite;
}
@keyframes scrollLine {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* ─────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), color .4s ease;
  cursor: pointer;
}
.btn .arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform .5s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary { background: var(--olive); color: #fff; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--wood);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn-outline > * { position: relative; z-index: 1; }
.btn-outline:hover::before { transform: translateY(0); }
.btn-outline:hover { border-color: #fff; }

/* ─────────────────────────────────────────────────────────────────
   MARQUEE
   ───────────────────────────────────────────────────────────────── */
.marquee {
  background: var(--espresso);
  color: var(--warm-white);
  padding: 28px 0;
  overflow: hidden;
  display: flex;
  gap: 60px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  --speed: 42s;
}
.marquee .track {
  display: flex; gap: 60px;
  flex-shrink: 0;
  animation: marquee calc(var(--speed) / max(var(--motion),.001)) linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 60px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}
.marquee span::after {
  content: '✱';
  color: var(--olive);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .5em;
  transform: translateY(-.18em);
  display: inline-block;
  transition: transform .8s var(--ease-out);
}
.marquee:hover span::after { transform: translateY(-.18em) rotate(180deg); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ─────────────────────────────────────────────────────────────────
   SECTIONS — base
   ───────────────────────────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-inner--narrow { max-width: 760px; }
.section-inner--wide { max-width: 1400px; }
.text-center { text-align: center; }

.section-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}
.section-tag::before {
  content: ''; width: 30px; height: 1px;
  background: currentColor;
}
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::after {
  content: ''; width: 30px; height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.section-title em { font-style: italic; color: var(--olive); font-weight: 500; }

.section-divider {
  width: 48px; height: 1px;
  background: var(--terracotta);
  margin: 24px auto 0;
  position: relative;
}
.section-divider::after {
  content: ''; position: absolute;
  left: 50%; top: -3px;
  width: 7px; height: 7px;
  background: var(--olive);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ─────────────────────────────────────────────────────────────────
   CHI SIAMO (rediseñado: 2 columnas con imagen)
   ───────────────────────────────────────────────────────────────── */
.chi-siamo {
  background: rgba(245,242,220,0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.chi-siamo .grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.about-image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(140,13,28,.25));
  pointer-events: none;
  border-radius: 4px;
}

.about-image-wrap .badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--espresso);
  color: var(--warm-white);
  font-family: var(--serif);
  font-style: italic;
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  max-width: 200px;
  opacity: 0;
  transform: translateY(20px) rotate(2deg);
  transition: opacity .9s var(--ease-out) 1s, transform 1.1s var(--ease-out) 1s;
}
.about-image-wrap.in .badge { opacity: 1; transform: rotate(2deg); }
.about-image-wrap .badge strong {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 32px;
  color: var(--warm-white);
  margin-bottom: 4px;
  letter-spacing: -.02em;
}

.about-image-wrap .frame {
  position: absolute; inset: 0;
  border: 1px solid var(--warm-beige);
  border-radius: 4px;
  transform: translate(20px, 20px);
  z-index: -1;
  opacity: 0;
  transition: opacity .9s ease 1.2s, transform 1.2s var(--ease-out) 1.2s;
}
.about-image-wrap.in .frame { opacity: 1; transform: translate(28px, 28px); }

.about-text p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  color: var(--wood);
  margin-top: 28px;
  letter-spacing: .005em;
}
.about-text p strong {
  color: var(--espresso);
  font-weight: 600;
  font-style: italic;
}

.about-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--warm-beige);
  border-bottom: 1px solid var(--warm-beige);
}
.about-stat { padding: 28px 0; border-right: 1px solid var(--warm-beige); }
.about-stat:last-child { border-right: 0; }
.about-stat .v {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--olive);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.about-stat .v .unit { font-size: .5em; color: var(--wood); vertical-align: super; font-style: italic; margin-left: 4px; }
.about-stat .l {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted-gray);
  margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────────────
   GALERÍA DE PLATOS — banda auto-scroll
   ───────────────────────────────────────────────────────────────── */
.dishes {
  background: rgba(237,233,214,0.48);
  overflow: hidden;
}
.dishes .section-inner { text-align: center; }
.dishes-track-wrap {
  margin-top: 64px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.dishes-track {
  display: flex; gap: 24px;
  width: max-content;
  animation: dishScroll calc(60s / max(var(--motion),.001)) linear infinite;
}
.dishes-track:hover { animation-play-state: paused; }
@keyframes dishScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 12px)); }
}

.dish-card {
  position: relative;
  width: 280px;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--soft-cream);
}
.dish-card .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s var(--ease-out), filter .5s ease;
}
.dish-card:hover .img { transform: scale(1.08); filter: brightness(1.05); }
.dish-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,26,22,.7) 100%);
}
.dish-card .num {
  position: absolute; left: 16px; top: 14px;
  font-family: var(--sans);
  font-size: 11px; color: #fff;
  letter-spacing: .2em;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 2px;
}
.dish-card .label {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .005em;
  transform: translateY(8px);
  opacity: .9;
  transition: transform .5s var(--ease-out), opacity .4s ease;
}
.dish-card:hover .label { transform: none; opacity: 1; }

.dishes-cta { margin-top: 56px; }

/* ─────────────────────────────────────────────────────────────────
   EVENTI
   ───────────────────────────────────────────────────────────────── */
.eventi { background: rgba(237,233,214,0.60); }
.eventi .section-inner { text-align: center; }

.eventi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  text-align: left;
}

.evento-card {
  position: relative;
  background: rgba(255,255,255,0.92);
  padding: 36px 32px 32px;
  border-radius: 6px;
  border-top: 3px solid var(--olive);
  box-shadow: 0 2px 12px rgba(140,13,28,0.06);
  transition: transform .5s var(--ease-out), box-shadow .5s ease, background .4s ease, border-color .4s ease;
  overflow: hidden;
  z-index: 1;
}
.evento-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(216,21,34,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .55s ease;
  z-index: -1;
}
.evento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(140,13,28,0.14);
  border-color: var(--wood);
}
.evento-card:hover::before { opacity: 1; }

.evento-card .num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.evento-card .glyph {
  width: 56px; height: 56px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 22px;
  color: var(--olive);
  transition: transform .6s var(--ease-out), background .4s ease, color .4s ease, border-color .4s ease;
}
.evento-card .glyph svg {
  width: 26px; height: 26px;
  stroke: currentColor;
}
.evento-card:hover .glyph {
  background: var(--olive); color: #fff;
  transform: rotate(-12deg) scale(1.05);
}

.evento-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 12px;
  letter-spacing: -.005em;
}
.evento-card p {
  font-size: 14.5px;
  color: var(--wood);
  line-height: 1.7;
  margin-bottom: 22px;
}

.evento-meta {
  display: flex; align-items: center; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--warm-beige);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-gray);
}
.evento-meta .pill {
  background: var(--sand);
  color: var(--espresso);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: .12em;
}

/* ─────────────────────────────────────────────────────────────────
   ORARI
   ───────────────────────────────────────────────────────────────── */
.orari {
  background: rgba(221,208,200,0.68);
  position: relative;
}
.orari .section-inner { text-align: center; max-width: 880px; }

.orari-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}
.orari-table tr {
  transition: background .25s ease, transform .35s var(--ease-out);
  position: relative;
}
.orari-table tr:hover:not(.chiuso):not(.today) {
  background: rgba(216,21,34,.06);
}
.orari-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--warm-beige);
  font-size: 18px;
  color: var(--espresso);
  font-family: var(--serif);
  letter-spacing: .01em;
}
.orari-table tr:last-child td { border-bottom: none; }
.orari-table td:first-child { text-align: left; font-weight: 500; font-style: italic; }
.orari-table td:last-child { text-align: right; font-family: var(--sans); font-size: 15px; letter-spacing: .04em; font-weight: 400; }

.orari-table tr.chiuso td {
  background: rgba(154,122,115,.08);
  color: var(--muted-gray);
  font-style: italic;
}

.orari-table tr.today td {
  background: var(--espresso);
  color: var(--warm-white);
  font-weight: 600;
}
.orari-table tr.today td:first-child { position: relative; padding-left: 56px; }
.orari-table tr.today td:first-child::before {
  content: 'OGGI';
  position: absolute;
  left: 20px;
  top: 50%; transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  background: var(--olive);
  color: #fff;
  padding: 3px 8px;
  border-radius: 2px;
  font-style: normal;
}

.orari-status {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wood);
}
.orari-status .led {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76,175,80,.6);
  animation: led calc(2.4s / max(var(--motion),.001)) ease-out infinite;
}
.orari-status.closed .led { background: var(--olive); box-shadow: 0 0 0 0 rgba(216,21,34,.5); }
@keyframes led {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ─────────────────────────────────────────────────────────────────
   QUOTE
   ───────────────────────────────────────────────────────────────── */
.quote-sec {
  padding: 140px 0;
  text-align: center;
  background: rgba(245,242,220,0.62);
}
.quote-sec blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
  color: var(--espresso);
  max-width: 880px;
  margin: 0 auto;
  letter-spacing: -.005em;
}
.quote-sec blockquote .mark {
  display: block;
  font-size: 80px;
  line-height: 0;
  color: var(--olive);
  margin-bottom: 32px;
}
.quote-sec cite {
  display: block;
  margin-top: 36px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ─────────────────────────────────────────────────────────────────
   NEWSLETTER
   ───────────────────────────────────────────────────────────────── */
.newsletter { background: rgba(245,242,220,0.65); }
.newsletter .section-inner { text-align: center; max-width: 620px; }
.newsletter .section-title { font-size: clamp(32px, 4vw, 44px); }
.newsletter-subtitle {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--wood);
  line-height: 1.6;
  margin-top: 12px;
}

.newsletter-form {
  margin-top: 40px;
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--warm-beige);
  border-radius: 6px;
  padding: 6px;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.newsletter-form:focus-within {
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(216,21,34,.12);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  background: transparent;
  color: var(--espresso);
}
.newsletter-form .btn { border-radius: 4px; padding: 14px 24px; }

.newsletter-success {
  display: none;
  margin-top: 24px;
  padding: 18px 24px;
  background: rgba(106,73,65,.08);
  color: var(--wood);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--serif);
  font-style: italic;
  animation: popIn .55s var(--ease-out);
}
.newsletter-success.show { display: block; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */
footer {
  background: rgba(140,13,28,0.94);
  padding: 64px 20px 32px;
  text-align: center;
  color: var(--warm-white);
  position: relative;
}
footer .footer-logo {
  height: 56px;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1) opacity(.95);
}
footer .footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(245,242,220,.85);
  margin-bottom: 36px;
}
.footer-social {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .3s ease, transform .3s var(--ease-out);
}
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-phone {
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}
.footer-phone a { color: rgba(255,255,255,.85); transition: color .3s ease; }
.footer-phone a:hover { color: #fff; }

.footer-divider {
  width: 48px; height: 1px;
  background: rgba(255,255,255,.2);
  margin: 32px auto 24px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
}

/* ─────────────────────────────────────────────────────────────────
   FLOATING CTA
   ───────────────────────────────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--olive);
  color: #fff;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(140,13,28,.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.92);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), background .3s ease;
}
.floating-cta.show {
  opacity: 1; pointer-events: auto; transform: none;
}
.floating-cta:hover { background: var(--wood); }
.floating-cta .dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: led calc(2.4s / max(var(--motion),.001)) ease-out infinite;
}

/* ─────────────────────────────────────────────────────────────────
   CUSTOM CURSOR
   ───────────────────────────────────────────────────────────────── */
.cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%) translate(-100px,-100px);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease, opacity .25s ease;
  mix-blend-mode: multiply;
}
.cursor-ring.expand { width: 56px; height: 56px; background: rgba(216,21,34,.1); }
.cursor-ring.hide { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ─────────────────────────────────────────────────────────────────
   TWEAKS PANEL (vanilla)
   ───────────────────────────────────────────────────────────────── */
.twk {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 2147483646;
  width: 260px;
  background: rgba(245,242,220,.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--warm-beige);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--espresso);
  display: none;
  overflow: hidden;
}
.twk.open { display: block; }
.twk header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--warm-beige);
}
.twk header b {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; font-weight: 600; color: var(--espresso);
}
.twk header button {
  background: none; border: 0; color: var(--muted-gray);
  font-size: 18px; line-height: 1; padding: 4px 8px;
  border-radius: 4px;
}
.twk header button:hover { background: rgba(0,0,0,.06); color: var(--espresso); }
.twk .body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.twk .row { display: flex; flex-direction: column; gap: 6px; }
.twk .row > label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-gray);
}
.twk .seg {
  display: flex; gap: 4px;
  background: rgba(0,0,0,.04);
  padding: 3px;
  border-radius: 6px;
}
.twk .seg button {
  flex: 1;
  padding: 7px 0;
  border-radius: 4px;
  border: 0;
  background: transparent;
  color: var(--wood);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .3s ease, color .3s ease;
}
.twk .seg button.active {
  background: var(--espresso); color: var(--warm-white);
}
.twk .swatches { display: flex; gap: 8px; }
.twk .sw {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .25s ease;
}
.twk .sw:hover { transform: scale(1.1); }
.twk .sw.active { border-color: var(--espresso); }
.twk .toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.twk .toggle .sw-track {
  width: 36px; height: 20px; border-radius: 999px;
  background: rgba(0,0,0,.18);
  position: relative;
  transition: background .3s ease;
  cursor: pointer;
}
.twk .toggle .sw-track::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%; background: #fff;
  transition: transform .3s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.twk .toggle.on .sw-track { background: var(--olive); }
.twk .toggle.on .sw-track::after { transform: translateX(16px); }

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chi-siamo .grid { grid-template-columns: 1fr; gap: 60px; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }
  .eventi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body {
    background-image: url('../images/hf_20260523_222629_8a1ed83f-df96-433a-a9e6-658d705e583d.png');
    background-attachment: scroll;
  }
  .navbar { padding: 14px 22px; }
  .navbar.scrolled { padding: 8px 22px; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .section { padding: 80px 0; }
  .section-inner { padding: 0 22px; }

  .hero { height: 100vh; min-height: 560px; }
  .hero-bottom { left: 22px; right: 22px; }
  .hero h1 { font-size: clamp(48px, 12vw, 80px); }

  .marquee { padding: 20px 0; }

  .eventi-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .about-stat .v { font-size: 32px; }
  .about-stat:nth-child(2) { border-right: 1px solid var(--warm-beige); }

  .about-image-wrap { opacity: 1; transform: none; }
  .about-image-wrap .badge { opacity: 1; transform: rotate(2deg); }
  .dish-card { width: 220px; }

  .orari-table td { padding: 16px 14px; font-size: 16px; }
  .orari-table td:last-child { font-size: 14px; }
  .orari-table tr.today td:first-child { padding-left: 50px; }
  .orari-table tr.today td:first-child::before { left: 12px; font-size: 8px; }

  .newsletter-form { flex-direction: column; gap: 8px; padding: 8px; }
  .newsletter-form .btn { width: 100%; }

  .floating-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 11px; }
}

/* Motion-reduced helpers (controlled by JS via body class) */
.no-motion .hero-bg { animation: none; }
.no-motion .marquee .track,
.no-motion .dishes-track { animation: none; }
.no-motion .hero-bottom .scroll-ind .track::before { animation: none; }
.no-motion .orari-status .led { animation: none; box-shadow: none; }
.no-motion .floating-cta .dot { animation: none; }
