/* ==========================================================================
   Menu Bar del Mare — tema "mare"
   Palette presa dal logo: blu navy, azzurro vela, giallo sole.
   ========================================================================== */

:root {
  --abisso:      #061b33;
  --mare-fondo:  #0a2a4e;
  --mare:        #10416f;
  --mare-chiaro: #1b6ea8;
  --navy:        #1d398c;
  --navy-scuro:  #102e85;
  --onda:        #6ec7d8;
  --onda-chiara: #a9e1ec;
  --schiuma:     #f3fafc;
  --sabbia:      #f7ead2;
  --sole:        #f2e513;
  --testo:       #10283d;
  --testo-soft:  #4f6779;
  --teal-scuro:  #0e6d7d;

  --ombra-s: 0 2px 8px rgba(6, 27, 51, .10);
  --ombra-m: 0 10px 30px rgba(6, 27, 51, .16);
  --ombra-l: 0 24px 60px rgba(6, 27, 51, .28);
  --raggio:  18px;

  --font-ui:   'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-disp: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--testo);
  background: var(--mare-fondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--sole); color: var(--navy-scuro);
  padding: .6rem 1rem; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.wrap--narrow { max-width: 680px; }

/* ---------- barra superiore ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(6, 27, 51, .96), rgba(10, 42, 78, .88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(169, 225, 236, .18);
}

.topbar__logo {
  display: block; padding: 12px 18px 8px; text-align: center;
}
.topbar__logo img { height: 26px; width: auto; margin: 0 auto; }
@media (min-width: 620px) { .topbar__logo img { height: 32px; } }

.chips { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips ul {
  display: flex; gap: 8px; list-style: none;
  margin: 0; padding: 0 18px 12px;
}
@media (min-width: 1040px) {
  .chips { overflow: visible; }
  .chips ul { flex-wrap: wrap; justify-content: center; max-width: 1180px; margin: 0 auto; }
}
.chip {
  display: block; white-space: nowrap; text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--onda-chiara);
  border: 1px solid rgba(169, 225, 236, .3);
  background: rgba(169, 225, 236, .07);
  padding: 7px 14px; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: rgba(169, 225, 236, .18); color: #fff; }
.chip.is-active {
  background: var(--onda); border-color: var(--onda); color: var(--navy-scuro);
}

/* ---------- selettore della lingua ---------- */

/* In alto a destra, alla stessa altezza del logo: sul telefono il logo e
   centrato e largo poco piu di 110px, quindi qui resta spazio anche a 320px. */
.langs { position: absolute; top: 8px; right: 12px; z-index: 2; }
.langs summary {
  display: flex; align-items: center; gap: 5px;
  list-style: none; cursor: pointer; user-select: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: var(--onda-chiara);
  border: 1px solid rgba(169, 225, 236, .3);
  background: rgba(169, 225, 236, .07);
  padding: 5px 10px 5px 8px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: rgba(169, 225, 236, .18); color: #fff; }
.langs summary:focus-visible { outline: 2px solid var(--sole); outline-offset: 2px; }
.langs svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
}
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px;
  min-width: 150px;
  background: var(--abisso);
  border: 1px solid rgba(169, 225, 236, .25);
  border-radius: 14px;
  box-shadow: var(--ombra-l);
}
.langs a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--schiuma); text-decoration: none; font-size: .95rem;
}
.langs a:hover, .langs a:focus-visible { background: rgba(169, 225, 236, .14); outline: none; }
.langs a[aria-current] { color: var(--onda); font-weight: 600; }
@media (min-width: 620px) { .langs { top: 12px; right: 18px; } }

/* ---------- hero della home ---------- */

.sea-hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 620px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #07203f 0%, #0d3763 45%, #14588c 100%);
}
.sea-hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 420px at 50% 112%, rgba(110, 199, 216, .55), transparent 70%),
    radial-gradient(700px 320px at 12% 6%, rgba(169, 225, 236, .18), transparent 70%);
}
/* Il sole sta basso, verso l'orizzonte: cosi il logo resta su blu pieno. */
.sea-hero__sun {
  position: absolute; bottom: -3%; left: 50%; width: 360px; height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 229, 19, .78) 0%, rgba(242, 229, 19, .22) 48%, transparent 70%);
  filter: blur(3px);
  animation: sun-breathe 9s ease-in-out infinite;
}
@keyframes sun-breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: .85; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

.sea-hero__content { position: relative; z-index: 2; padding: 4rem 20px 7rem; }
.sea-hero__logo {
  width: min(72vw, 360px); margin: 0 auto 1.4rem;
  filter: drop-shadow(0 6px 18px rgba(3, 18, 35, .35));
}
.sea-hero__kicker {
  margin: 0; color: var(--onda-chiara);
  font-size: .8rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
}
.sea-hero__title {
  font-family: var(--font-disp); font-weight: 600;
  font-size: clamp(2.3rem, 9vw, 4.1rem);
  line-height: 1.05; color: #fff; margin: .3rem 0 .6rem;
  text-shadow: 0 6px 30px rgba(3, 18, 35, .55);
}
.sea-hero__sub { margin: 0 auto; max-width: 30ch; color: rgba(255, 255, 255, .84); }
.sea-hero__scroll {
  display: inline-grid; place-items: center; margin-top: 2rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(169, 225, 236, .5); color: var(--onda-chiara);
  animation: bob 2.4s ease-in-out infinite;
}
.sea-hero__scroll svg { width: 22px; height: 22px; fill: currentColor; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- onde ---------- */

.waves { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 3; }
.waves svg { width: 200%; height: 110px; display: block; }
.waves--cat svg { height: 80px; }
.waves__back  { fill: rgba(243, 250, 252, .45); animation: drift 16s linear infinite; }
.waves__front { fill: var(--schiuma); animation: drift 11s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .waves__back, .waves__front, .sea-hero__sun, .sea-hero__scroll { animation: none; }
  .waves svg { width: 100%; }
}

/* ---------- hero di categoria ---------- */

.cat-hero {
  position: relative; overflow: hidden;
  min-height: min(46vh, 380px);
  display: flex; align-items: flex-end;
  background: var(--mare-fondo);
}
.cat-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.cat-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 27, 51, .72) 0%, rgba(6, 27, 51, .42) 45%, rgba(16, 65, 111, .72) 100%),
    radial-gradient(700px 300px at 20% 10%, rgba(29, 57, 140, .45), transparent 70%);
}
.cat-hero__content {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 2.2rem 18px 4.4rem;
}
.crumbs {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--onda-chiara); display: flex; gap: .5rem; align-items: center;
}
.crumbs a { text-decoration: none; opacity: .9; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.cat-hero__title {
  font-family: var(--font-disp); font-weight: 600; color: #fff;
  font-size: clamp(2rem, 7.5vw, 3.4rem); line-height: 1.08; margin: .35rem 0 0;
  text-shadow: 0 8px 30px rgba(3, 18, 35, .6);
}

/* ---------- corpo pagina ---------- */

.section { background: var(--schiuma); padding: 2.4rem 0 3.2rem; }
.page-home .section { padding-top: 1.6rem; }

.page-title {
  font-family: var(--font-disp); font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--navy-scuro); margin: 1.2rem 0 .6rem;
}

/* ---------- schede categoria ---------- */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; }
.card > a {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--raggio); text-decoration: none; color: #fff;
  box-shadow: var(--ombra-m);
  aspect-ratio: 16 / 11;
  background: var(--mare);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card > a:hover, .card > a:focus-visible { transform: translateY(-4px); box-shadow: var(--ombra-l); }
.card__media { position: absolute; inset: 0; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card > a:hover .card__media img { transform: scale(1.05); }
.card > a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 27, 51, .05) 0%, rgba(6, 27, 51, .45) 55%, rgba(16, 46, 133, .88) 100%);
}
.card__body {
  position: absolute; z-index: 2; left: 0; right: 56px; bottom: 0;
  padding: 1rem 1.1rem 1.15rem;
  display: flex; flex-direction: column; gap: 2px;
}
.card__name {
  font-family: var(--font-ui); font-weight: 700;
  font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.card__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--onda-chiara); }
.card__arrow {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(110, 199, 216, .22); border: 1px solid rgba(169, 225, 236, .5);
  transition: background .25s ease;
}
.card__arrow svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card > a:hover .card__arrow { background: var(--onda); }
.card > a:hover .card__arrow svg { stroke: var(--navy-scuro); }

/* ---------- elenco prodotti ---------- */

.note {
  margin: 0 0 1.8rem; padding: .95rem 1.1rem;
  background: var(--sabbia); border-left: 4px solid var(--sole);
  border-radius: 12px; color: #5a4a22; font-size: .94rem;
}

/* Immagine in evidenza in cima all'elenco (il premio di Engel nelle birre):
   intera, mai ritagliata, perché di solito contiene una scritta. */
.feature { margin: 0 auto 1.8rem; max-width: 640px; text-align: center; }
.feature img {
  display: block; width: 100%; height: auto;
  border-radius: var(--raggio); box-shadow: var(--ombra-m);
}
.feature figcaption {
  margin-top: .7rem; color: var(--testo-soft); font-size: .9rem; font-style: italic;
}

.menu-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .menu-list { grid-template-columns: repeat(2, 1fr); gap: 16px 28px; } }
@media (min-width: 1140px) { .menu-list { grid-template-columns: repeat(3, 1fr); } }

.item {
  background: #fff; border-radius: 14px;
  padding: .95rem 1.1rem 1rem;
  box-shadow: var(--ombra-s);
  border: 1px solid rgba(110, 199, 216, .22);
  position: relative;
}
.item::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--onda), var(--navy));
  opacity: .75;
}
.item__head { display: flex; align-items: baseline; gap: .5rem; }
.item__name {
  font-family: var(--font-ui); font-size: 1.02rem; font-weight: 600; line-height: 1.3;
  color: var(--navy); margin: 0;
}
.item__dots {
  flex: 1 1 auto; min-width: 12px;
  border-bottom: 2px dotted rgba(29, 57, 140, .25);
  transform: translateY(-4px);
}
.item__price {
  flex: 0 0 auto; font-weight: 700; font-size: .98rem;
  color: var(--teal-scuro); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item__desc { margin: .35rem 0 0; color: var(--testo-soft); font-size: .92rem; }
.item__ext  { margin: .3rem 0 0; color: var(--teal-scuro); font-size: .9rem; font-style: italic; }

.empty { color: var(--testo-soft); font-style: italic; }

.back { margin: 2.4rem 0 0; }
.btn-ghost {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); border: 1.5px solid rgba(29, 57, 140, .35);
  padding: .6rem 1.2rem; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

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

.footer {
  position: relative; color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, #0d3763 0%, #07203f 100%);
  padding-top: 90px;
}
.footer__wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }
.footer__wave svg { width: 100%; height: 90px; fill: var(--schiuma); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 1rem 18px 2.4rem; text-align: center; }
.footer__mark { width: 68px; height: 68px; margin: 0 auto .8rem; }
.footer__title {
  font-family: var(--font-disp); font-weight: 600; color: #fff;
  font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 1.6rem;
}
.footer__cols {
  display: grid; gap: 1.6rem; grid-template-columns: 1fr;
  max-width: 620px; margin: 0 auto 1.4rem;
}
@media (min-width: 620px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
.footer__cols h3 {
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--onda); margin: 0 0 .4rem;
}
.footer__cols p { margin: 0; font-size: .95rem; line-height: 1.7; }
.footer__cols a { text-decoration: none; border-bottom: 1px solid rgba(169, 225, 236, .5); }

.footer__social { list-style: none; display: flex; gap: 12px; justify-content: center; margin: 0 0 1.2rem; padding: 0; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(169, 225, 236, .12); border: 1px solid rgba(169, 225, 236, .32);
  transition: background .2s;
}
.footer__social a:hover { background: var(--onda); }
.footer__social svg { width: 20px; height: 20px; fill: #fff; }
.footer__social a:hover svg { fill: var(--navy-scuro); }

.footer__credits { font-size: .8rem; color: rgba(255, 255, 255, .55); margin: 0; }
.footer__credits a { text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, .4); }

/* ---------- stampa ---------- */

@media print {
  .topbar, .waves, .sea-hero__scroll, .footer__wave, .footer__social, .back, .card__arrow { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { background: #fff; padding: 0; }
  .cat-hero { min-height: 0; }
  .cat-hero__img, .cat-hero__veil { display: none; }
  .cat-hero__title { color: #000; text-shadow: none; }
  .item { box-shadow: none; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; break-inside: avoid; }
  .menu-list { grid-template-columns: repeat(2, 1fr); }
  .footer { background: #fff; color: #000; padding-top: 1rem; }
}

.footer__credits a:hover { color: var(--onda); border-bottom-color: var(--onda); }
