/* ============================================================
   LocalHost127 — Bar Kafé, Asti
   Design system: warm coffee palette, curves, coffee-bean motifs
   ============================================================ */

:root {
  /* palette */
  --foam: #fffbf3;
  --cream: #f5ebdc;
  --sand: #ead9c0;
  --caramel: #c08a4e;
  --caramel-deep: #a96a2f;
  --coffee: #7a4e2d;
  --espresso: #2e1b10;
  --espresso-soft: #40291a;
  --ink: #1f1209;

  --text: #3a2817;
  --text-soft: #6b543d;
  --text-on-dark: #f6ead8;
  --text-on-dark-soft: #d8c3a8;

  --line: rgba(62, 39, 22, 0.16);
  --line-dark: rgba(255, 244, 226, 0.16);

  /* shape */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-full: 999px;

  /* effects */
  --shadow-sm: 0 10px 24px -14px rgba(44, 28, 19, 0.35);
  --shadow: 0 30px 60px -30px rgba(44, 28, 19, 0.45);
  --shadow-lift: 0 18px 36px -18px rgba(44, 28, 19, 0.5);

  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "system-ui", "Segoe UI", sans-serif;

  --nav-h: 78px;
  --container: 1140px;
}

/* ---------------- reset & base ---------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--caramel-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--espresso);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

em {
  font-style: italic;
}

::selection {
  background: var(--caramel);
  color: var(--foam);
}

:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- layout helpers ---------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
}

.section-dark {
  background:
    radial-gradient(120% 130% at 85% -10%, var(--espresso-soft) 0%, var(--espresso) 55%) var(--espresso);
  color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--foam);
}

.section-dark a {
  color: var(--caramel);
}

.section-dark a:hover {
  color: var(--foam);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-dark .eyebrow {
  color: var(--caramel);
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.section-dark .section-head p {
  color: var(--text-on-dark-soft);
}

.prose {
  max-width: 680px;
}

.prose p + p {
  margin-top: 1em;
}

/* ---------------- curve: wave divider ---------------- */

.wave {
  display: block;
  width: 100%;
  height: clamp(46px, 7vw, 84px);
  margin-top: -1px;
  line-height: 0;
}

.wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave.flip {
  transform: scaleX(-1);
}

/* ---------------- buttons & chips ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.9rem;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--espresso);
  color: var(--foam);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--caramel-deep);
  color: var(--foam);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  border-color: var(--espresso);
  color: var(--espresso);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--espresso);
  color: var(--foam);
}

.section-dark .btn-ghost {
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}

.section-dark .btn-ghost:hover {
  background: var(--text-on-dark);
  color: var(--espresso);
}

.btn .bean-ico {
  width: 1.15em;
  height: 1.15em;
}

.chip {
  display: inline-block;
  padding: 0.34rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--sand);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid var(--line);
}

.section-dark .chip {
  background: rgba(255, 244, 226, 0.08);
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}

/* ---------------- cards ---------------- */

.card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.section-dark .card {
  background: rgba(255, 244, 226, 0.05);
  border-color: var(--line-dark);
  box-shadow: none;
}

/* ---------------- coffee bean icon ---------------- */

.bean-ico {
  width: 1.4em;
  height: 1.4em;
  color: var(--caramel-deep);
  flex: none;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50% 50% 50% 12%;
  background: linear-gradient(145deg, var(--sand), var(--cream));
  border: 1px solid var(--line);
  color: var(--caramel-deep);
}

.section-dark .icon-circle {
  background: rgba(255, 244, 226, 0.07);
  border-color: var(--line-dark);
  color: var(--caramel);
}

/* ---------------- navigation ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(245, 235, 220, 0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(245, 235, 220, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -18px rgba(44, 28, 19, 0.35);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  height: 44px;
  width: auto;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  color: var(--caramel-deep);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}

.nav-links > a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-block: 0.35rem;
}

.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--caramel-deep);
  transition: right 0.25s ease;
}

.nav-links > a:not(.btn):hover::after {
  right: 0;
}

.nav-links .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--foam);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--espresso);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    padding: 1rem;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links > a {
    padding: 0.75rem 1rem;
    border-radius: var(--r-sm);
    font-size: 1.05rem;
  }

  .nav-links > a:not(.btn):hover {
    background: var(--sand);
  }

  .nav-links .btn {
    margin-top: 0.5rem;
  }
}

/* ---------------- hero (home) ---------------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::before {
  /* soft arch glow behind the art */
  content: "";
  position: absolute;
  top: 8%;
  right: -12%;
  width: min(640px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 138, 78, 0.28), rgba(192, 138, 78, 0));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

.hero-copy .eyebrow {
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  color: var(--caramel-deep);
}

.hero .lede {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* hero art: arch + cup */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.arch {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 4 / 4.7;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background: radial-gradient(120% 90% at 50% 0%, #4a301d 0%, var(--espresso) 62%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.arch::after {
  /* bean pattern inside the arch */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c99a63' stroke-opacity='0.28' stroke-width='3' stroke-linecap='round'%3E%3Cg transform='translate(35 38) rotate(-24)'%3E%3Cellipse cx='0' cy='0' rx='15' ry='21'/%3E%3Cpath d='M0 -20 C -9 -8 9 8 0 20'/%3E%3C/g%3E%3Cg transform='translate(102 104) rotate(18)'%3E%3Cellipse cx='0' cy='0' rx='15' ry='21'/%3E%3Cpath d='M0 -20 C 9 -8 -9 8 0 20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cup {
  position: relative;
  z-index: 1;
  width: min(250px, 62%);
  height: auto;
}

.steam {
  animation: steam 3.4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes steam {
  0%   { opacity: 0; transform: translateY(10px); }
  35%  { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-16px); }
}

/* floating beans */

.bean-float {
  position: absolute;
  color: var(--caramel);
  opacity: 0.55;
  animation: bob 6s ease-in-out infinite;
  pointer-events: none;
}

.bean-float svg {
  width: 100%;
  height: 100%;
}

.bean-float.b1 { width: 46px; top: 6%; left: 4%; animation-delay: 0s; transform: rotate(-24deg); }
.bean-float.b2 { width: 30px; top: 14%; right: 8%; animation-delay: 1.2s; transform: rotate(18deg); }
.bean-float.b3 { width: 24px; bottom: 16%; left: 10%; animation-delay: 2.1s; transform: rotate(40deg); }
.bean-float.b4 { width: 38px; bottom: 8%; right: 4%; animation-delay: 0.6s; transform: rotate(-12deg); }
.bean-float.b5 { width: 20px; top: 46%; left: -2%; animation-delay: 1.7s; transform: rotate(65deg); }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    margin-top: 1rem;
  }

  .arch {
    width: min(320px, 82%);
  }

  .hero-copy {
    text-align: center;
  }

  .hero .lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .eyebrow {
    justify-content: center;
  }
}

/* ---------------- page hero (subpages) ---------------- */

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  text-align: center;
  max-width: 780px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 40rem;
  margin-inline: auto;
}

.page-hero .bean-float {
  opacity: 0.4;
}

/* ---------------- home: name story cards ---------------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.story-card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-card .icon-circle {
  margin-bottom: 0.4rem;
}

.story-card h3 {
  font-size: 1.55rem;
}

.story-card h3 em {
  color: var(--caramel-deep);
}

.story-card p {
  color: var(--text-soft);
  font-size: 0.99rem;
}

@media (max-width: 880px) {
  .story-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------------- home: coffee banner ---------------- */

.coffee-banner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  overflow: hidden;
}

.coffee-banner figure {
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
}

.coffee-banner img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}

.coffee-banner h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.8rem;
}

.coffee-banner p {
  color: var(--text-soft);
}

@media (max-width: 780px) {
  .coffee-banner {
    grid-template-columns: 1fr;
  }

  .coffee-banner img {
    max-height: 240px;
  }
}

/* ---------------- eventi (dark section) ---------------- */

.eventi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.event-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  align-items: center;
  text-decoration: none;
}

.event-card:hover {
  color: var(--foam);
}

.event-card figure {
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
  background: rgba(255, 244, 226, 0.06);
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover img {
  transform: scale(1.045);
}

.event-card .year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--caramel);
  display: block;
  margin-bottom: 0.35rem;
}

.event-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.event-card p {
  color: var(--text-on-dark-soft);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.event-card .go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--caramel);
}

.event-card .go::after {
  content: "→";
  transition: transform 0.2s ease;
}

.event-card:hover .go::after {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .eventi-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card figure {
    order: -1;
  }
}

/* ---------------- cta band ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--espresso-soft), var(--espresso) 65%);
  color: var(--text-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c99a63' stroke-opacity='0.22' stroke-width='3' stroke-linecap='round'%3E%3Cg transform='translate(35 38) rotate(-24)'%3E%3Cellipse cx='0' cy='0' rx='15' ry='21'/%3E%3Cpath d='M0 -20 C -9 -8 9 8 0 20'/%3E%3C/g%3E%3Cg transform='translate(102 104) rotate(18)'%3E%3Cellipse cx='0' cy='0' rx='15' ry='21'/%3E%3Cpath d='M0 -20 C 9 -8 -9 8 0 20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: var(--foam);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: var(--text-on-dark-soft);
  max-width: 34rem;
  margin: 0 auto 1.8rem;
}

/* ---------------- foto gallery ---------------- */

.photo-grid {
  columns: 3 280px;
  column-gap: 1.1rem;
}

.photo {
  display: block;
  position: relative;
  margin: 0 0 1.1rem;
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  background: var(--sand);
}

.photo img {
  width: 100%;
  transition: transform 0.4s ease;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 18, 9, 0.35), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo:hover img {
  transform: scale(1.05);
}

.photo:hover::after {
  opacity: 1;
}

.photo figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 1;
  line-height: 1.3;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--foam);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(31, 18, 9, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 1rem;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------------- servizi ---------------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.svc-card {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.svc-card h3 {
  font-size: 1.22rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.svc-card .svc-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.svc-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ---------------- map / location ---------------- */

.loc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.loc-copy h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 1rem;
}

.loc-copy address {
  font-style: normal;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.loc-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 380px;
  line-height: 0;
}

.loc-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

@media (max-width: 880px) {
  .loc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- contatti ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.contact-card {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--caramel-deep);
}

.contact-card .big {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  word-break: break-word;
}

.contact-card .sub {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------------- video (spots) ---------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  max-width: 1080px;
  margin-inline: auto;
}

.video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow-sm);
  background: var(--espresso);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- footer ---------------- */

.footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--espresso);
  color: var(--text-on-dark-soft);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c99a63' stroke-opacity='0.2' stroke-width='3' stroke-linecap='round'%3E%3Cg transform='translate(35 38) rotate(-24)'%3E%3Cellipse cx='0' cy='0' rx='15' ry='21'/%3E%3Cpath d='M0 -20 C -9 -8 9 8 0 20'/%3E%3C/g%3E%3Cg transform='translate(102 104) rotate(18)'%3E%3Cellipse cx='0' cy='0' rx='15' ry='21'/%3E%3Cpath d='M0 -20 C 9 -8 -9 8 0 20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer .container {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.6rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 1.6rem;
}

.footer .brand {
  color: var(--foam);
}

.footer .brand-name em {
  color: var(--caramel);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--text-on-dark-soft);
}

.footer-links a:hover {
  color: var(--foam);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--caramel);
}

.footer-bottom a:hover {
  color: var(--foam);
}

/* ---------------- reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .bean-float,
  .steam {
    animation: none;
  }

  .photo img,
  .event-card img {
    transition: none;
  }
}
