/*
Theme Name: Barrio5 Theme
Theme URI: https://barrio5.com
Author: Anti
Author URI: https://antiestudi.com
Description: Tema Barrio5 con modo mantenimiento a pantalla completa y base preparada para Figma/Home.
Version: 0.7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barrio5-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --b5-bg: #070707;
  --b5-surface: rgba(16, 16, 16, 0.72);
  --b5-text: #f5f1ea;
  --b5-muted: rgba(245, 241, 234, 0.72);
  --b5-accent: #ffffff;
  --b5-accent-text: #171717;
  --b5-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  --b5-border: rgba(255, 255, 255, 0.12);
  --b5-max: 1180px;
  --b5-radius-xl: 34px;
  --b5-radius-lg: 26px;
  --b5-radius-pill: 999px;
  --b5-font-display: "Hershey-Futural:Futural-40PLUS-offset_curve_10pt", "Hershey-Futural", sans-serif;
  --b5-font-section: "Hershey-Futural:Futural-30", "Hershey-Futural", sans-serif;
  --b5-font-body: "Space Mono", "SFMono-Regular", monospace;
}

@font-face { font-family: "Hershey-Futural"; src: url("assets/fonts/Hershey-Futural-40.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hershey-Futural:Futural-30"; src: url("assets/fonts/Hershey-Futural-30.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hershey-Futural:Futural-40PLUS-offset_curve_10pt"; src: url("assets/fonts/Hershey-Futural-Futural-40PLUS-offsetcurve.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--b5-bg);
  color: var(--b5-text);
  font-family: var(--b5-font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site {
  min-height: 100vh;
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  position: relative;
  z-index: 20;
}

.site-header__inner,
.site-footer__inner,
.site-content__inner {
  width: min(var(--b5-max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.site-main {
  display: block;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
}

.site-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.site-description {
  margin: 0;
  color: var(--b5-muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--b5-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--b5-text);
}

.b5-article {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--b5-border);
  border-radius: var(--b5-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--b5-shadow);
}

.b5-article + .b5-article {
  margin-top: 1.25rem;
}

.b5-article__title,
.b5-page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.b5-article__meta,
.b5-page-lead {
  margin: 0 0 1.25rem;
  color: var(--b5-muted);
  max-width: 65ch;
}

.b5-entry-content {
  max-width: 72ch;
}

.b5-entry-content > * + * {
  margin-top: 1rem;
}

.b5-entry-content a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.b5-entry-content h2,
.b5-entry-content h3,
.b5-entry-content h4 {
  margin: 2rem 0 0.75rem;
  line-height: 1.15;
}

.b5-entry-content ul,
.b5-entry-content ol {
  padding-left: 1.25rem;
}

.b5-page-hero {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.b5-grid {
  display: grid;
  gap: 1.25rem;
}

.b5-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b5-card {
  padding: 1.25rem;
  border-radius: var(--b5-radius-lg);
  border: 1px solid var(--b5-border);
  background: rgba(255, 255, 255, 0.04);
}

.b5-card__kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--b5-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.b5-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.b5-card__text {
  margin: 0.75rem 0 0;
  color: var(--b5-muted);
}

.b5-button,
.wp-block-button__link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--b5-radius-pill);
  background: var(--b5-accent);
  color: var(--b5-accent-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.b5-button:hover,
.b5-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.b5-button--ghost {
  background: transparent;
  color: var(--b5-text);
  border-color: var(--b5-border);
  box-shadow: none;
}

.b5-button--ghost:hover,
.b5-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.b5-footer {
  padding: 2rem 0 3rem;
  color: var(--b5-muted);
}

.b5-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.b5-footer__small {
  margin: 0;
  font-size: 0.875rem;
}

.b5-maintenance {
  min-height: 100svh;
  position: relative;
  overflow: clip;
  background: #000;
}

.b5-maintenance__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.b5-maintenance__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02) brightness(0.62);
  transform: scale(1.03);
}

.b5-maintenance__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72) 56%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58));
}

.b5-maintenance__noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.b5-maintenance__content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.b5-maintenance__panel {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

.b5-maintenance__brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.b5-maintenance__logo {
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.b5-maintenance__title {
  margin: 0;
  color: var(--b5-text);
  font-family: var(--b5-font-display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.48);
}

.b5-maintenance__text {
  margin: 0;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.b5-maintenance__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.b5-maintenance__button {
  min-width: 10.5rem;
  min-height: 3.55rem;
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
}

.b5-maintenance__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.b5-maintenance__social:hover,
.b5-maintenance__social:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.46);
}

.b5-maintenance__social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.b5-no-scroll {
  overflow: hidden;
}

.b5-maintenance-mode { overflow: hidden; }

.b5-carta-page { min-height: 100vh; padding: 0 1rem 5.5rem; background: var(--b5-bg); color: var(--b5-text); }
.b5-carta-logo { position: fixed; z-index: 10; top: 1.75rem; left: 2rem; display: block; width: 184px; mix-blend-mode: difference; filter: none; }
.b5-carta-logo img { display: block; width: 100%; height: auto; mix-blend-mode: difference; filter: none; }
.b5-carta-back { position: fixed; z-index: 10; top: 1.75rem; right: 2rem; display: grid; width: 3rem; height: 3rem; place-items: center; border: 0; border-radius: 0; background: transparent; color: #fff; font-family: var(--b5-font-body); font-size: 2.25rem; line-height: 1; }
.b5-carta-gallery { display: grid; grid-template-columns: minmax(0, 50%); gap: 1.25rem; width: 100%; justify-content: center; padding-top: 0; }
.b5-carta-return { position: fixed; z-index: 20; right: 33px; bottom: 20px; left: auto; display: flex; width: 177px; min-height: 56px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.8); border-radius: 19px; background: var(--b5-bg); color: #fff; font-family: var(--b5-font-body); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; }
.b5-carta-photo { margin: 0; }
.b5-carta-photo img { width: 100%; height: auto; }
.b5-carta-item { overflow: hidden; border: 1px solid var(--b5-border); border-radius: 18px; background: rgba(255,255,255,.04); }
.b5-carta-item img { width: 100%; height: auto; }
.b5-carta-pdf { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.b5-carta-pdf span { color: var(--b5-muted); font-size: .8rem; letter-spacing: .15em; }
.b5-carta-pdf strong { font-size: 1.2rem; font-weight: 400; }
.b5-carta-download { display: block; padding: 1rem; border-top: 1px solid var(--b5-border); color: var(--b5-muted); font-size: .75rem; letter-spacing: .12em; text-align: center; }
.b5-carta-empty { grid-column: 1 / -1; padding: 3rem; border: 1px dashed var(--b5-border); color: var(--b5-muted); text-align: center; }

/* Figma home layout. */
.b5-home {
  --b5-ink: #0e0d0c;
  --b5-mono: "Space Mono", "Courier New", monospace;
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--b5-ink);
  color: #fff;
  font-family: var(--b5-mono);
}

.b5-home-frame { display: grid; gap: 0; width: 100%; min-width: 0; padding: 20px; box-sizing: border-box; }
.b5-section-shell { width: 100%; min-width: 0; padding: 20px; box-sizing: border-box; }

.b5-home-header { position: fixed !important; z-index: 100; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 184px 1fr auto; align-items: start; gap: 4rem; padding: 41px 35px 14px; pointer-events: none; transition: padding 240ms ease; }
.b5-home-header::before { content: ""; }
.b5-home-header.is-scrolled { padding-top: 18px; background: transparent; backdrop-filter: none; }
.b5-home-header > * { pointer-events: auto; }
.b5-home-logo, .b5-home-logo picture, .b5-home-logo img, .b5-home-menu, .b5-home-menu img { mix-blend-mode: difference !important; filter: none !important; }
.b5-home-logo { display: block; width: 184px; }
.b5-home-logo-fixed { position: fixed; z-index: 101; top: 41px; left: 35px; pointer-events: auto; }
.b5-home-logo picture { display: block; }
.b5-home-logo img { width: 100%; height: auto; }
.b5-home-info, .b5-footer-data { display: flex; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem); }
.b5-home-info div, .b5-footer-data div { display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.b5-home-info span, .b5-footer-data span, .b5-developed { color: rgba(255,255,255,.53); font-size: 14px; line-height: 1.75; text-transform: uppercase; }
.b5-home-info strong, .b5-footer-data strong { color: rgba(255,255,255,.84); font-size: 14px; font-weight: 400; line-height: 1.75; letter-spacing: 1.5px; text-transform: uppercase; }
.b5-home-info strong, .b5-home-info strong span { color: #fff; }
.b5-home-header-button { padding: 11px 27px; border: 1px solid rgba(255,255,255,.8); border-radius: 19px; color: #fff; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.b5-home-menu { display: none; }
.b5-home-menu-fixed { position: fixed; z-index: 101; top: 41px; right: 35px; pointer-events: auto; }
.b5-home-nav { position: fixed; z-index: 19; right: 55px; bottom: 22px; left: auto; display: flex; align-items: center; color: #fff; font-size: 14px; letter-spacing: 1.5px; text-align: right; text-transform: uppercase; }
.b5-home-nav ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.b5-home-nav > li, .b5-home-nav li { display: flex; align-items: center; list-style: none; }
.b5-home-nav li:not(:last-child)::after { margin: 0 18px; content: "-"; }
.b5-home-nav a { color: inherit; }
.b5-home-hero { position: relative; display: flex; min-height: calc(100svh - 40px); align-items: flex-end; padding: 33px; overflow: hidden; border-radius: 19px; }
.b5-cover-media, .b5-cover-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b5-cover-media img { object-fit: cover; }
.b5-home-hero::after, .b5-catering-media::after { position: absolute; inset: 0; background: rgba(0,0,0,.28); content: ""; }
.b5-home-hero-content { position: relative; z-index: 1; }
.b5-home-hero h1, .b5-home-about h2, .b5-home-events h2, .b5-home-catering h2, .b5-home-quote p { margin: 0; font-family: var(--b5-font-display); font-weight: 400; text-transform: uppercase; }
.b5-word { display: inline-block; will-change: transform, opacity; }
.b5-home-hero h1 { width: 60%; padding-bottom: 44px; color: #fff; font-family: var(--b5-font-display); font-size: 32px; font-style: normal; font-weight: 400; line-height: 100%; letter-spacing: 2.8728px; text-transform: uppercase; word-break: break-word; }
.b5-home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 13px 27px; border: 1px solid transparent; border-radius: 19px; font-size: 14px; line-height: 1.5; letter-spacing: 1.4px; text-transform: uppercase; transition: transform 180ms ease, background-color 180ms ease; }
.b5-home-button:hover, .b5-home-button:focus-visible, .b5-home-header-button:hover { transform: translateY(-1px); }
.b5-home-button--light { width: 177px; min-height: 56px; padding: 0 20px; border-color: rgba(255,255,255,.8); border-radius: 19px; background: #fff; color: #111; }
.b5-home-button--outline { border-color: rgba(69,69,69,.8); color: #000; }
.b5-home-button--outline-light { width: 177px; min-height: 56px; padding: 0 20px; border-color: rgba(255,255,255,.8); border-radius: 19px; color: #fff; }
.b5-home-header-button { display: inline-flex; width: 177px; min-height: 56px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid #fff; border-radius: 19px; background: transparent !important; color: #fff !important; mix-blend-mode: normal !important; }
.b5-eyebrow { margin: 0; color: rgba(255,255,255,.71); font-size: 13px; line-height: 1.6; letter-spacing: 3.4px; text-transform: uppercase; }
.b5-home-about { min-height: 978px; padding: 216px 0 150px; }
.b5-section-intro { display: grid; grid-template-columns: 25% 50%; gap: 0; width: 100%; margin: 0 auto 63px; }
.b5-home-about h2, .b5-home-catering h2 { font-family: var(--b5-font-section); }
.b5-home-about h2 { margin-top: 29px; color: #fff; font-size: 48px; line-height: 1.03; letter-spacing: 1.65px; }
.b5-copy { display: flex; flex-direction: column; gap: 29px; color: rgba(255,255,255,.97); font-size: 16px; line-height: 1.2; }
.b5-copy p { max-width: 32ch; margin: 0; }
.b5-gallery-viewport { position: relative; display: block; width: 100%; min-width: 0; max-width: 100%; height: clamp(430px, 38vw, 540px); overflow-x: auto; overflow-y: hidden; contain: layout; scrollbar-width: none; }
.b5-gallery-viewport::-webkit-scrollbar { display: none; }
.b5-gallery { display: flex; flex-wrap: nowrap; gap: clamp(24px, 3.3vw, 50px); width: max-content; min-width: 0; height: 100%; margin: 0; padding: 0; cursor: grab; touch-action: pan-y pinch-zoom; }
.b5-gallery.is-dragging { cursor: grabbing; user-select: none; }
.b5-gallery img { display: block; flex: 0 0 clamp(220px, 21.8vw, 330px); width: 100%; max-width: none !important; height: 100%; object-fit: cover; }
.b5-home-events { display: flex; min-height: calc(100svh - 40px); flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 132px; border-radius: 19px; background: #f6f6f6; color: #010101; text-align: center; }
.b5-home-events .b5-eyebrow { color: rgba(0,0,0,.71); }
.b5-event-mark { width: 133px; height: 132px; object-fit: contain; }
.b5-home-events h2 { max-width: 850px; font-size: 48px; line-height: 1.03; letter-spacing: 1.65px; }
.b5-home-events-copy { max-width: 581px; color: rgba(0,0,0,.97); font-size: 20px; line-height: 1.2; }
.b5-home-events-copy p { margin: 0; }
.b5-home-catering { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 100%; min-height: calc(100svh - 40px); margin: 0; padding: 0px; }
.b5-catering-copy { display: flex; min-height: 786px; flex-direction: column; justify-content: flex-end; gap: 30px; padding: 35px; border-radius: 19px 0 0 19px; background: var(--b5-ink); }
.b5-home-catering h2 { max-width: 600px; color: #fff; font-size: 48px; line-height: 1.15; letter-spacing: 1.65px; }
.b5-catering-media { position: relative; min-height: 786px; overflow: hidden; border-radius: 19px; }
.b5-catering-media picture, .b5-catering-media picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b5-catering-media picture img { object-fit: cover; }
.b5-arrow-mark { position: absolute; z-index: 1; right: 40%; bottom: 30px; width: 50px; height: 11px; }
.b5-home-quote { display: flex; min-height: 653px; align-items: center; justify-content: center; }
.b5-home-quote p { max-width: 694px; color: #fff; font-size: 50px; line-height: 1.13; letter-spacing: 1.86px; text-align: justify; }
.b5-home-footer { display: flex; min-height: 0; align-items: flex-start; justify-content: space-between; padding: 0 33px; }
.b5-footer-logo { display: none; }
.b5-footer-logo-wrap { display: none; }
.b5-developed { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.b5-footer-data > .b5-developed { min-width: 140px; }
.b5-developed a { color: inherit; }
.b5-developed > span { font-size: 0 !important; }
.b5-developed > span::after { content: "WEB DEVELOPED"; font-size: 14px; }
.b5-developed > strong { display: block; }
.b5-developed strong, .b5-developed strong a { color: #fff; }

@media (min-width: 701px) {
  .b5-home-footer .b5-footer-data div:nth-child(-n+4),
  .b5-home-footer > .b5-home-button { display: none; }
  .b5-home-footer { justify-content: flex-start; gap: 88px; }
  .b5-home-footer .b5-footer-data { justify-content: flex-start; padding-top: 5px; }
  .b5-developed { margin-left: 0; }
}

@media (max-width: 960px) {
  .b5-home-header { left: 0; right: 0; padding-left: 30px; padding-right: 30px; gap: 1rem; }
  .b5-home-info { gap: 1rem; }
  .b5-home-info div { min-width: 110px; }
  .b5-home-catering { min-height: calc(100svh - 40px); }
  .b5-catering-copy, .b5-catering-media { min-height: 650px; }
}

@media (max-width: 700px) {
  .b5-home { gap: 0; padding: 0; }
  .b5-section-shell { padding: 16px; }
  .b5-home-header { top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 30px; }
  .b5-home-header::before { display: none; }
  .b5-home-header.is-scrolled { padding-top: 16px; }
  .b5-home-logo { width: 111px; }
  .b5-home-info, .b5-home-header-button { display: none; }
  .b5-home-nav { display: flex; right: 22px; bottom: 20px; left: 22px; justify-content: flex-end; font-size: 14px; line-height: 1.55; }
  .b5-home-nav ul { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 0; white-space: nowrap; }
  .b5-home-nav li { display: flex; align-items: center; min-width: 0; text-align: right; }
  .b5-home-nav li::before { content: none; }
  .b5-home-nav li:not(:last-child)::after { margin: 0 12px; content: "-"; }
  .b5-home-menu { display: inline-flex; width: 44px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; color: #fff; }
  .b5-home-menu-fixed { top: 30px; right: 30px; }
  .b5-home-menu img { display: block; width: 44px; height: 46px; }
  .b5-home-hero { min-height: 819px; padding: 66px 33px; border-radius: 19px; }
  .b5-home-hero h1 { padding-bottom: 44px; font-size: 32px; line-height: 100%; letter-spacing: 2.873px; }
  .b5-home-hero h1 { width: 100%; }
  .b5-home-button--light { padding: 14px 44px; font-size: 13px; }
  .b5-home-about { min-height: 819px; padding: 50px 0; }
  .b5-section-intro { display: flex; flex-direction: column; gap: 22px; margin: 0 0 28px; padding: 0 12px; }
  .b5-home-about h2 { margin-top: 16px; font-size: 32px; line-height: 1.25; }
  .b5-copy { gap: 29px; font-size: 14px; }
  .b5-gallery-viewport { width: 100%; max-width: 100%; height: 348.981px; margin-left: 0; }
  .b5-gallery { gap: 36.098px; }
  .b5-gallery img { flex: 0 0 240.4px; width: 100%; }
  .b5-home-events { min-height: calc(100svh - 40px); gap: 28px; padding: 53px 33px; }
  .b5-event-mark { width: 133px; height: 132px; }
  .b5-home-events h2 { width: 100%; font-size: 32px; line-height: 1.25; }
  .b5-home-events-copy { width: 100%; font-size: 14px; }
  .b5-home-catering { display: flex; min-height: calc(100svh - 40px); flex-direction: column; align-items: stretch; }
  .b5-catering-media { order: 1; min-height: 325px; border-radius: 19px; }
  .b5-catering-copy { order: 2; min-height: 462px; gap: 22px; padding: 16px; border-radius: 0 0 19px 19px; }
  .b5-home-catering h2 { font-size: 32px; line-height: 1.31; }
  .b5-catering-copy .b5-copy { font-size: 14px; }
  .b5-arrow-mark { display: none; }
  .b5-home-quote { min-height: 819px; padding: 0; }
  .b5-home-quote p { width: 100%; font-size: 32px; line-height: 1.38; }
  .b5-home-footer { min-height: 0; flex-direction: column; justify-content: flex-start; gap: 32px; padding: 42px 16px; border-radius: 19px; background: #2d2d2d; }
  .b5-footer-logo-wrap { display: block; width: 100%; }
  .b5-footer-logo { display: block; width: 100%; height: auto; }
  .b5-footer-data { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 22px; justify-content: flex-start; padding: 0; }
  .b5-footer-data div { min-width: 0; }
  .b5-footer-data span, .b5-footer-data strong { font-size: 13px; }
  .b5-home-footer .b5-home-button { display: none; }
  .b5-developed { margin-top: 0; font-size: 11px; }
  .b5-carta-page { padding: 0 15px 5.5rem; }
  .b5-carta-return { right: 15px; bottom: 15px; left: 15px; width: auto; }
  .b5-carta-gallery { gap: 15px; }
  .b5-carta-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .b5-grid--two {
    grid-template-columns: 1fr;
  }

  .site-content {
    padding: 2.25rem 0 4rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .site-content__inner {
    width: min(var(--b5-max), calc(100% - 1.25rem));
  }

  .b5-maintenance__content {
    padding: 1.25rem;
  }

  .b5-maintenance__panel {
    gap: 1rem;
    padding: 0.5rem;
  }

  .b5-maintenance__title {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .b5-maintenance__button {
    width: min(100%, 14rem);
  }
}

/* Compact header for tablets and smaller laptops. */
@media (min-width: 701px) and (max-width: 1366px) {
  .b5-home-header { top: 20px; left: 20px; right: 20px; display: flex; align-items: flex-start; justify-content: space-between; padding: 32px 32px 12px; }
  .b5-home-header.is-scrolled { padding-top: 16px; }
  .b5-home-header::before { display: none; }
  .b5-home-logo { width: 111px; }
  .b5-home-info, .b5-home-header-button { display: none; }
  .b5-home-menu { display: inline-flex; width: 44px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; color: #fff; }
  .b5-home-menu-fixed { top: 30px; right: 30px; }
  .b5-home-menu img { display: block; width: 44px; height: 46px; }
  .b5-home-nav { display: none; }
}

@media (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) {
  .b5-section-intro { display: grid; grid-template-columns: 50% 50%; gap: 0; width: 100%; margin: 0 auto 63px; }
  .b5-home-catering { display: flex; flex-direction: column; align-items: stretch; }
  .b5-catering-media { order: 1; min-height: 40vh; border-radius: 19px 19px 0 0; }
  .b5-catering-copy { order: 2; min-height: auto; padding: 35px; border-radius: 0 0 19px 19px; }
}

@media (max-width: 700px) {
  .b5-home-nav { display: none; }
}

/* Full-viewport overrides for the public home. */
html, body { width: 100%; }
body.home { overflow-x: hidden; }
body.home .site { width: 100%; max-width: none; margin: 0; }
body.home .b5-home { width: 100%; max-width: none; margin-left: 0; padding: 0; box-sizing: border-box; }
body.home .b5-home-frame { width: 100%; padding: 20px; }
body.home .b5-home-header { position: fixed !important; top: 20px; left: 20px; right: 20px; width: auto; }
body.home .b5-home-logo,
body.home .b5-home-logo picture,
body.home .b5-home-logo img { mix-blend-mode: difference !important; filter: none !important; }
body.home .b5-home-hero,
body.home .b5-home-about,
body.home .b5-home-events,
body.home .b5-home-catering,
body.home .b5-home-quote,
body.home .b5-home-footer { width: 100%; max-width: none; }

@media (max-width: 700px) {
  body.home .b5-home { width: 100%; margin-left: 0; }
  body.home .b5-home-frame { padding: 16px; gap: 10px; }
  body.home .b5-home-header { top: 0; left: 0; right: 0; width: auto; padding: 30px; }
  body.home .b5-home-hero,
  body.home .b5-home-about,
  body.home .b5-home-events,
  body.home .b5-home-catering,
  body.home .b5-home-quote,
  body.home .b5-home-footer { max-width: 100%; }
  body.home .b5-home-footer { min-height: 0; }
  body.home .b5-home-hero,
  body.home .b5-home-about,
  body.home .b5-home-events,
  body.home .b5-home-quote { min-height: 819px; }
  body.home .b5-home-catering { min-height: 819px; }
  body.home .b5-home-button--light { width: 177px; min-height: 56px; padding: 0 20px; }
}
