/* ─── RESET & ROOT ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 64px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --teal:     #1A5C50;
  --teal-mid: #2E7D6E;
  --teal-lt:  #EAF3F1;
  --gold:     #C9A84C;
  --gold-lt:  #F7F0E0;
  --dark:     #1A3D33;
  --cream:    #F4F1EB;
  --offwhite: #FDFCF9;
  --stone:    #8A9490;
  --text:     #2C3830;
  --error:    #C0392B;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--offwhite);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--dark);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--dark);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 3px 3px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--teal); }

h1 { font-size: clamp(44px, 7vw, 80px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 32px; }
h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }

p { color: #4A5A56; line-height: 1.8; margin-bottom: 16px; font-size: 15px; }

.sec-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
  font-weight: 400;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
section { padding: 50px; }
.inner { max-width: 80%; margin: 0 auto; }
section:last-of-type { padding-bottom: 0; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  display: inline-block;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,92,80,0.3);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.65);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.btn-gold {
  background: var(--gold);
  color: white;
}
.btn-gold:hover {
  background: #b8973a;
  transform: translateY(-1px);
}

.btn-nav {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--teal);
  color: white;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--teal-mid); }

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(253,252,249,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo-text em {
  font-style: italic;
  color: var(--teal);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--teal);
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

.mobile-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  font-style: italic;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s;
}
.mobile-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-overlay.open a:nth-child(2) { transition-delay: 0.05s; }
.mobile-overlay.open a:nth-child(3) { transition-delay: 0.1s; }
.mobile-overlay.open a:nth-child(4) { transition-delay: 0.15s; }
.mobile-overlay.open a:nth-child(5) { transition-delay: 0.2s; }
.mobile-overlay.open a:nth-child(6) { transition-delay: 0.25s; }
.mobile-overlay a:hover { color: var(--gold); }

.mobile-overlay .gold-line {
  width: 1px;
  height: 60px;
  background: var(--gold);
  opacity: 0.4;
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  --hero-image: none;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg-image, url('../assets/images/background_texture.webp'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-brand-mark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Push logo down from the top (below nav) */
  padding-top: 70px;
  pointer-events: none;
}

.hero-brand-mark img {
  min-width: 180px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  opacity: 1;
  transform: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

.hero-gold-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  z-index: 2;
}

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

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(201,168,76,0.4);
}

#hero h1 {
  color: white;
  margin-bottom: 24px;
  line-height: 1.05;
  font-style: italic;
}
#hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.5);
  display: block;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.6;
}

.hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
  z-index: 2;
  pointer-events: none;
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  font-weight: 300;
  white-space: nowrap;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: white;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ─── CHI SIAMO ──────────────────────────────────────────── */
#chi-siamo {
  position: relative;
  background: var(--section-bg, var(--offwhite));
}

#chi-siamo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--chi-texture, none);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}

.chi-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.chi-content h2 {
  margin-bottom: 20px;
}

.chi-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(26,92,80,0.12);
  border-radius: 3px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pill:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(26,92,80,0.08);
}

.pill-icon { font-size: 18px; flex-shrink: 0; }
.pill-text { font-size: 13px; font-weight: 500; color: var(--dark); letter-spacing: 0.02em; }

.chi-photo {
  position: relative;
  height: 520px;
  border-radius: 3px;
  overflow: hidden;
}

.chi-photo-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
}

.chi-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chi-photo::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -16px;
  bottom: -16px;
  left: 16px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* ─── MENU ───────────────────────────────────────────────── */
#menu {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

#menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,92,80,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.menu-intro {
  max-width: 560px;
  margin-bottom: 52px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
}

.menu-card {
  background: white;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.07);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.menu-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }

.card-eyebrow {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
  font-weight: 500;
}

.menu-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price-table { margin: 24px 0; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #F0EBE0;
}
.price-row:last-child { border-bottom: none; }

.price-name { font-size: 14px; color: var(--text); }
.price-chf {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
}

.pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  width: 100%;
  margin-top: 20px;
  border: 1.5px solid var(--teal);
  border-radius: 2px;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: white;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  transition: all 0.22s;
}
.pdf-btn:hover { background: var(--teal); color: white; }
.menu-card .pdf-btn + .pdf-btn { margin-top: 12px; }

.pdf-arrow { font-size: 16px; }

.vegan-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  color: white;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-top: 20px;
  font-weight: 500;
}

.reservation-copy {
  margin: 18px 0 28px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

.menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 18px;
  border-bottom: 1px solid #F0EBE0;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.22s, gap 0.22s;
}

.menu-cta:hover {
  color: var(--gold);
  gap: 12px;
}

/* ─── SERATE ─────────────────────────────────────────────── */
#serate {
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#serate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(201,168,76,0.06)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

#serate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--serate-texture, none);
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
}

#serate .inner {
  position: relative;
  z-index: 1;
}

#serate .sec-label { color: rgba(201,168,76,0.7); }
#serate h2 { color: white; }
#serate h2 em { color: var(--gold); }
#serate p { color: rgba(255,255,255,0.4); max-width: 520px; margin: 0 auto 40px; }

.event-card {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px;
  padding: 24px 48px;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.03);
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.event-row + .event-row {
  border-top: 1px solid rgba(201,168,76,0.1);
  margin-top: 20px;
  padding-top: 24px;
}

.event-date {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 400;
}

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: white;
  font-weight: 300;
  font-style: italic;
}

/* ─── GRUPPI ─────────────────────────────────────────────── */
#gruppi { background: var(--offwhite); }

.gruppi-intro {
  max-width: 560px;
  margin-bottom: 52px;
}

.gruppi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 48px;
}

.g-card {
  padding: 32px 26px;
  border: 1px solid rgba(26,92,80,0.1);
  border-radius: 3px;
  background: white;
  transition: all 0.25s;
}
.g-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(26,92,80,0.1);
  transform: translateY(-2px);
}

.g-icon { font-size: 28px; margin-bottom: 18px; display: block; }
.g-card h3 { font-size: 20px; margin-bottom: 10px; }
.g-card p { font-size: 13px; margin: 0; line-height: 1.65; }

/* ─── CONTATTI ───────────────────────────────────────────── */
#contatti {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 40px;
}

.info-block { margin-bottom: 36px; }

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.info-row:last-child { border-bottom: none; }

.info-icon { font-size: 15px; flex-shrink: 0; margin-top: 2px; width: 22px; }

.info-content {
  flex: 1;
  min-width: 0;
}

.info-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 3px;
  font-weight: 400;
}

.info-val { font-size: 14px; color: var(--dark); line-height: 1.5; }
.info-val a { color: var(--teal); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

@media (max-width: 768px) {
  .map-wrap iframe {
    height: 180px;
  }
}

/* Form */
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 28px;
}

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

.field {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
  background: white;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,92,80,0.08);
}
.field.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.field::placeholder { color: #B0B8B4; }

textarea.field { height: 100px; resize: vertical; }

.char-counter {
  color: var(--stone);
  display: none;
  font-size: 12px;
  margin: -8px 0 12px;
  text-align: right;
}
.char-counter.visible {
  display: block;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--teal);
  color: white;
  padding: 15px 30px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
}
.btn-submit:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,92,80,0.25);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-submit.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-error-msg {
  font-size: 13px;
  color: var(--error);
  text-align: center;
  margin-top: 12px;
  display: none;
  line-height: 1.6;
}
.form-error-msg.visible {
  display: block;
}

.form-note {
  font-size: 12px;
  color: var(--stone);
  text-align: center;
  margin-top: 12px;
}

.hidden { display: none !important; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--teal-lt);
  border-radius: 3px;
  border: 1px solid rgba(26,92,80,0.2);
}
.form-success.show { display: block; }

.success-check { font-size: 36px; margin-bottom: 16px; }
.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--teal);
  font-weight: 400;
  margin-bottom: 8px;
}
.success-text { font-size: 14px; color: var(--stone); }

/* ─── GALLERIA ───────────────────────────────────────────── */
#galleria { background: var(--offwhite); padding-top: 48px; padding-bottom: 48px; }
#galleria.hidden { display: none; }

.gallery-wrapper {
  position: relative;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip img {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 340px;
  height: 240px;
  object-fit: cover;
  border-radius: 3px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(26,92,80,0.2);
  background: white;
  color: var(--teal);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: all 0.2s;
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-arrow:hover { background: var(--teal); color: white; }
.gallery-arrow:disabled { opacity: 0.3; pointer-events: none; }

@media (max-width: 768px) {
  .gallery-arrow { display: none; }
  .gallery-strip img { width: 240px; height: 180px; }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 28px 48px 36px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-logo-link {
  display: block;
  width: 180px;
  height: 74px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

.footer-logo-link img {
  display: block;
  width: 180px;
  max-width: none;
  height: auto;
  transform: translateY(-48px);
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

/* ─── FADE ANIMATIONS ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ─── 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;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero-glow { animation: none; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 72px 24px; }

  .chi-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  #hero{
    padding: 0px 15px;
  }
  .chi-photo { height: 340px; }
  .chi-photo::after { display: none; }

  .menu-grid { grid-template-columns: 1fr; gap: 20px; }
  .menu-card { padding: 32px 24px; }
  .hero-brand-mark {
    padding-top: 80px;
  }
  .hero-brand-mark img {
    width: min(72vw, 280px);
    min-width: 140px;
    max-height: 135px;
    opacity: 1;
    transform: none;
  }

  .gruppi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .event-card {
    padding: 24px 28px;
    width: 100%;
  }

  footer { padding: 8px 24px 28px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    gap: 2px;
  }

  .footer-logo-link {
    margin: 0 auto;
  }

  .form-success.show {
    margin-bottom: 40px;
  }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; text-align: center; }

  nav .btn-nav { display: none; }
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
