/* Banama · Header
   Menu mobile "Nuovo" (versione E) sotto i 1000 px, menu desktop B (pannello a tutta larghezza) da 1000 px.
   Tutte le classi iniziano con bn- per non scontrarsi con il resto del sito. */

:root {
  --bn-gutter: 20px;
  --bn-whatsapp: #25D366;
  --bn-instagram: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}
@media (min-width: 900px) { :root { --bn-gutter: 64px; } }
@media (min-width: 1000px) { :root { --header-h: 72px; } }

.bn-header, .bn-header *, .bn-header *::before, .bn-header *::after { box-sizing: border-box; }
.bn-header { position: sticky; top: 0; z-index: 50; background: var(--color-seashell); border-bottom: 1px solid var(--ink-200); font-family: var(--font); color: var(--ink-800); }
.bn-header ul { list-style: none; margin: 0; padding: 0; }
.bn-header p { margin: 0; }
.bn-header img { display: block; max-width: 100%; }
.bn-header a { color: inherit; }
.bn-header :focus-visible { outline: 2px solid var(--color-tangerine); outline-offset: 2px; }
.bn-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--bn-gutter); padding-right: var(--bn-gutter); }
.bn-bar { display: flex; align-items: center; gap: var(--bn-gutter); height: var(--header-h); }
.bn-logo { display: flex; align-items: center; min-height: 44px; }
.bn-logo img { height: 28px; width: auto; }

/* ---------- Pulsanti e icone ---------- */
.bn-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); border: 0; background: var(--color-terra-dark); color: var(--color-seashell) !important; font: inherit; font-size: 15px; font-weight: var(--weight-medium); text-decoration: none; cursor: pointer; white-space: nowrap; }
.bn-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.bn-btn:hover { filter: brightness(.88); }
.bn-btn:active { transform: scale(.985); }
.bn-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--color-sand-tint); color: var(--ink-800); }
.bn-ico-ig { background: var(--bn-instagram); color: #FFFFFF; }
.bn-ico-wa { background: var(--bn-whatsapp); color: #FFFFFF; }
.bn-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bn-dot-red { background: var(--color-banama-red); }
.bn-dot-sky { background: var(--color-sky); }
.bn-ulink { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.bn-ulink:hover { color: var(--color-terra-dark); }

/* Righe con icona (Instagram, WhatsApp, email) */
.bn-row { display: flex; align-items: center; gap: 12px; min-height: 60px; text-decoration: none; color: var(--ink-800); }
.bn-row + .bn-row { border-top: 1px solid var(--ink-100); }
.bn-row > svg { flex-shrink: 0; color: var(--color-terra-dark); }
.bn-row-txt { flex: 1; display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.bn-row-txt strong { font-size: 15px; font-weight: var(--weight-medium); }
.bn-row-txt span { color: var(--ink-600); }

/* Card con foto */
.bn-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink-800); }
.bn-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--color-sand); }
.bn-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-card-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: var(--weight-medium); line-height: 1.2; }
.bn-card small { font-size: 13px; color: var(--ink-600); margin-top: -2px; }
.bn-card:hover .bn-card-label { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Burger ---------- */
.bn-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--color-terra-dark); }
.bn-bars { position: relative; display: block; width: 22px; height: 14px; }
.bn-bars span { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform var(--ease), top var(--ease); }
.bn-bars span:first-child { top: 2px; }
.bn-bars span:last-child { top: 10px; }
.bn-header.is-open .bn-bars span:first-child { top: 6px; transform: rotate(45deg); }
.bn-header.is-open .bn-bars span:last-child { top: 6px; transform: rotate(-45deg); }

/* ---------- Menu mobile (sotto i 1000 px) ---------- */
.bn-nav { display: none; }
.bn-mnav { display: none; border-top: 1px solid var(--ink-200); background: var(--color-seashell); }
.bn-header.is-open .bn-mnav { display: block; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.bn-header.is-open .bn-book { display: none; }
.bn-mlist > li { border-bottom: 1px solid var(--ink-100); }
.bn-mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.bn-mtitle { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-size: 26px; font-weight: var(--weight-light); letter-spacing: var(--tracking-display); line-height: 1; text-decoration: none; }
.bn-mtitle svg { flex-shrink: 0; color: var(--color-terra-dark); }
.bn-mmore { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: var(--weight-medium); color: var(--ink-600) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.bn-mcards { display: grid; gap: 8px; padding-bottom: 16px; }
.bn-mcards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bn-mcards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bn-mcards-3 .bn-photo { aspect-ratio: 1 / 1; }
.bn-mfoot { padding: 16px 0 12px; }
.bn-mcta { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--color-seashell); border-top: 1px solid var(--ink-100); }
.bn-mcta .bn-btn { min-height: 52px; }
.bn-wa-line { text-align: center; font-size: 14px; color: var(--ink-600); }
.bn-wa-line a { display: inline-flex; align-items: center; vertical-align: middle; min-height: 32px; font-weight: var(--weight-medium); text-underline-offset: 3px; }
.bn-wa-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--bn-whatsapp); color: #FFFFFF; }
.bn-header.is-open .bn-mlist > li, .bn-header.is-open .bn-mfoot { animation: bn-in .32s ease-out both; }
.bn-header.is-open .bn-mlist > li:nth-child(2) { animation-delay: .04s; }
.bn-header.is-open .bn-mlist > li:nth-child(3) { animation-delay: .08s; }
.bn-header.is-open .bn-mlist > li:nth-child(4) { animation-delay: .12s; }
.bn-header.is-open .bn-mfoot { animation-delay: .16s; }
@keyframes bn-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Menu desktop (da 1000 px) ---------- */
@media (min-width: 1000px) {
  .bn-burger, .bn-mnav, .bn-header.is-open .bn-mnav { display: none; }
  .bn-header.is-open .bn-book { display: inline-flex; }
  .bn-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .bn-logo { justify-self: start; }
  .bn-nav { display: block; justify-self: center; }
  .bn-actions { margin-left: 0; justify-self: end; }
  .bn-nav > ul { display: flex; gap: 32px; }
  .bn-nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--header-h); font-size: 15px; font-weight: 400; color: var(--ink-800); text-decoration: none; white-space: nowrap; }
  .bn-nav > ul > li > a:hover, .bn-nav > ul > li > a[aria-current="page"], .bn-has-panel.is-open > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
  .bn-chev { color: var(--color-terra-dark); transition: transform var(--ease); }
  .bn-has-panel.is-open .bn-chev { transform: rotate(180deg); }
  .bn-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; display: none; background: var(--color-seashell); border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); box-shadow: 0 24px 40px -28px rgba(26,26,24,.45); }
  .bn-has-panel.is-open .bn-panel { display: block; animation: bn-in .22s ease-out both; }
  .bn-panel-in { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(270px, 340px); gap: clamp(24px, 3vw, 48px); height: 336px; padding-top: 32px; padding-bottom: 32px; align-items: stretch; }
  .bn-panel-title { margin-bottom: 8px !important; font-size: 40px; font-weight: var(--weight-light); line-height: .95; letter-spacing: var(--tracking-display); }
  .bn-panel-intro { display: flex; flex-direction: column; align-items: flex-start; }
  .bn-panel-intro p:not(.bn-panel-title) { margin-bottom: 16px; font-size: 15px; color: var(--ink-600); }
  .bn-cards { display: grid; gap: 12px; height: 100%; align-items: stretch; align-content: stretch; }
  .bn-cards-1 { grid-template-columns: minmax(0, 400px); }
  .bn-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bn-panel .bn-card { height: 100%; min-height: 0; }
  .bn-panel .bn-photo { flex: 1 1 0; min-height: 0; width: 100%; aspect-ratio: auto; }
  .bn-panel .bn-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bn-stay { display: flex; flex-direction: column; padding-left: 32px; border-left: 1px solid var(--ink-200); }
  .bn-label { margin-bottom: 4px !important; font-size: 12px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-600); }
}

@media (prefers-reduced-motion: reduce) {
  .bn-header *, .bn-header *::before, .bn-header *::after { animation: none !important; transition: none !important; }
}
