/* Erede di Chiappone Armando – static site. No external fonts or CDNs. */
:root {
  --ink: #1d1d1f;
  --muted: #5c5c63;
  --navy: #13235b;
  --accent: #c8102e;
  --paper: #ffffff;
  --paper-alt: #f5f2ee;
  --line: #e2ddd6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.35rem; margin: .8rem 0 .2rem; }
.small { font-size: .85rem; color: var(--muted); }
address { font-style: normal; margin-bottom: 1rem; }

/* language switching: data-lang on <html> */
html[data-lang="it"] .en,
html[data-lang="en"] .it { display: none !important; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .4rem 16px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; letter-spacing: .02em; }
.langs { display: flex; gap: .25rem; }
.langs button {
  font: inherit; font-size: .8rem; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  padding: .15rem .5rem; border-radius: 3px;
}
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* hero */
.hero { position: relative; }
.hero > img { width: 100%; height: min(78vh, 720px); object-fit: cover; }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6rem 16px 2.5rem;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35) 40%, rgba(0,0,0,.7));
  color: #fff; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 0 12px rgba(0,0,0,.35);
}
.hero-text h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.6rem); margin: .2rem 0; }
.hero-text p { margin: 0; font-size: 1.1rem; }
.hero-text .kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; opacity: .9; }

/* sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--paper-alt); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap + .wrap { margin-top: 2.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col.reverse > figure { order: -1; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 2px; }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.photo.wide { margin-bottom: 2rem; }
.lead { color: var(--muted); margin-top: -.4rem; }


/* wines */
.wines {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.wine { border-top: 3px solid var(--accent); padding-top: 1rem; }
.wine .label {
  aspect-ratio: 4 / 3; background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center; padding: .75rem;
}
.wine .label img { max-height: 100%; width: auto; object-fit: contain; }
.wine .type { margin: 0 0 .5rem; color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.wine p { margin-top: 0; font-size: .95rem; }

.brochures { margin-top: 3rem; text-align: center; }
.btn {
  display: inline-block; margin: .25rem; padding: .55rem 1.1rem;
  border: 1px solid var(--navy); border-radius: 3px; text-decoration: none;
}
.btn:hover { background: var(--navy); color: #fff; }

/* gallery + lightbox */
.gallery { columns: 3 240px; column-gap: 1rem; }
.gallery a { display: block; margin-bottom: 1rem; break-inside: avoid; }
.gallery img { width: 100%; filter: grayscale(.15); transition: filter .2s; }
.gallery a:hover img { filter: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: .5rem 1rem;
}
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }

/* video */
.vimeo { max-width: 850px; margin: 0 auto; }
.vimeo-load, .vimeo iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; background: #000; cursor: pointer;
}
.vimeo-load img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vimeo-load .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center; padding-left: 6px;
}

/* contact */
.membership { text-align: center; }
.membership img { margin: 0 auto .5rem; }

.footer { text-align: center; padding: 2rem 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer p { margin: .2rem 0; }

@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; }
  .brand img { height: 44px; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: center; font-size: .9rem; }
  .langs { margin-left: auto; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col.reverse > figure { order: 0; }
  .section { padding: 2.5rem 0; }
}
