/* ══════════ Cabot Cove — Surf Shop Cafè · Senigallia ══════════
   Palette ispirata al feed reale: alba sulla battigia, tavole da surf
   fatte a mano, cafè "tra l'Algarve e la California". */

:root {
  --sand: #f5ead4;
  --sand-dark: #e9d9b8;
  --ocean: #1f5c52;
  --ocean-deep: #123832;
  --ocean-mid: #3f8f80;
  --coral: #ff6a4d;
  --coral-deep: #d94e34;
  --mustard: #f2b134;
  --ink: #16241f;
  --white: #fffdf7;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(18, 56, 50, 0.35);
  --ff-head: 'Fredoka', 'Baloo 2', sans-serif;
  --ff-hand: 'Caveat', cursive;
  --ff-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-head); margin: 0 0 .4em; line-height: 1.08; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: static; width: auto; height: auto; padding: .6em 1em; background: var(--ink); color: var(--white); z-index: 999; }

.eyebrow {
  font-family: var(--ff-hand);
  font-size: 1.5rem;
  color: var(--coral-deep);
  display: inline-block;
  margin: 0 0 .3em;
  transform: rotate(-2deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  cursor: pointer;
  min-height: 48px;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--coral); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-accent:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-outline { background: var(--sand); color: var(--ink); box-shadow: 5px 5px 0 var(--ocean); }
.btn-outline:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ocean); }
.btn-sm { padding: .6em 1.2em; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-dark { background: var(--ocean); color: var(--white); border-color: var(--ink); box-shadow: 5px 5px 0 var(--mustard); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8em 1.4em;
  transition: box-shadow .3s;
}
/* Il blur vive sullo pseudo-elemento, non sull'header stesso: backdrop-filter
   sull'header creerebbe un containing block per i figli position:fixed
   (il pannello nav mobile) e ne romperebbe lo slide-in. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 234, 212, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s;
}
.site-header.is-scrolled::before { background: rgba(245, 234, 212, 0.92); }
.site-header.is-scrolled::before { opacity: .92; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(0,0,0,.2); }
.site-header__brand { display: flex; align-items: center; gap: .6em; text-decoration: none; color: var(--ink); font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; }
.site-header__brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-header__nav { display: flex; align-items: center; gap: 1.6em; }
.site-header__nav a { text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; padding: .2em 0; }
.site-header__nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 3px; background: var(--coral); border-radius: 3px;
  transition: right .25s ease;
}
.site-header__nav a:not(.btn):hover::after,
.site-header__nav a[aria-current]::after { right: 0; }

.menu-toggle {
  display: none; align-items: center; gap: .5em;
  background: var(--ink); color: var(--sand); border: none; border-radius: 999px;
  padding: .6em 1em; font-family: var(--ff-head); font-weight: 600; cursor: pointer;
  min-height: 44px;
}
.menu-toggle__icon { width: 18px; height: 2px; background: var(--sand); position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content:""; position:absolute; left:0; width:18px; height:2px; background:var(--sand); transition: transform .2s; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .site-header__nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--sand); flex-direction: column; align-items: flex-start;
    padding: 6.5em 1.6em 2em; gap: 1.4em;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    box-shadow: -12px 0 30px -14px rgba(0,0,0,.3);
    overflow-y: auto;
  }
  body.nav-open .site-header__nav { transform: translateX(0); }
  .site-header__nav a { font-size: 1.15rem; width: 100%; }
  .site-header__nav .btn { width: 100%; justify-content: center; margin-top: .5em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7em 1.4em 5em;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,56,50,.25) 0%, rgba(18,56,50,.72) 62%, rgba(18,56,50,.85) 100%); }
.hero__badge { width: 128px; height: 128px; margin: 0 auto 1.2em; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); animation: spin-slow 26s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--white);
  text-shadow: 0 3px 0 rgba(18,56,50,.4);
  max-width: 16ch; margin-inline: auto;
}
.hero h1 em { font-style: normal; color: #ffe9a8; }
.hero__lede { color: var(--white); font-size: 1.15rem; max-width: 46ch; margin: .6em auto 1.6em; text-shadow: 0 2px 10px rgba(18,56,50,.6); }
.hero .eyebrow { color: var(--mustard); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1em; justify-content: center; }
.scroll-cue { position: absolute; bottom: 1.6em; left: 50%; transform: translateX(-50%); width: 30px; height: 46px; border: 2.5px solid var(--sand); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 5px; height: 10px; background: var(--sand); border-radius: 4px; transform: translateX(-50%); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%{ opacity:1; top:8px;} 70%{opacity:0; top:24px;} 100%{opacity:0; top:8px;} }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--sand); overflow: hidden; padding: .9em 0; }
.marquee__track { display: flex; width: max-content; gap: 1.2em; animation: scroll-left 26s linear infinite; font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.marquee__track span:nth-child(3n) { color: var(--mustard); }
.marquee__track span:nth-child(3n+1) { color: var(--coral); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections generic ---------- */
.section { padding: 5.5em 1.4em; }
.section-inner { max-width: 1120px; margin: 0 auto; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Storia ---------- */
.storia { background: var(--white); position: relative; }
.storia__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3em; align-items: center; }
.storia h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.storia__art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--ink); transform: rotate(-2deg); }
.storia__art img { width: 100%; }
@media (max-width: 860px) { .storia__grid { grid-template-columns: 1fr; } }

/* ---------- Pillole / cosa aspettarti ---------- */
.pillole { background: var(--sand); }
.pillole__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4em; margin-top: 1.6em; }
.pillola { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.6em 1.4em; box-shadow: 6px 6px 0 var(--ink); transition: transform .25s; }
.pillola:hover { transform: translate(-3px,-3px); }
.pillola__icon { width: 48px; height: 48px; margin-bottom: .6em; }
.pillola h3 { font-size: 1.15rem; }
.pillola p { margin: 0; color: rgba(22,36,31,.72); font-size: .96rem; }

/* ---------- Ambiente / vibe mosaic ---------- */
.ambiente { background: var(--ocean-deep); color: var(--sand); position: relative; }
.ambiente .eyebrow { color: var(--mustard); }
.ambiente h2 { color: var(--white); }
.ambiente__mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1em; margin-top: 2em; }
.ambiente__item { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--sand); aspect-ratio: 1; transition: transform .35s; }
.ambiente__item:hover { transform: scale(1.04) rotate(-1deg); }
.ambiente__item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ambiente__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) {
  .ambiente__mosaic { grid-template-columns: repeat(2, 1fr); }
  .ambiente__item--big { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ---------- Recensioni ---------- */
.recensioni { background: var(--sand); }
.recensioni__scores { display: flex; gap: 1.2em; flex-wrap: wrap; margin: 1.6em 0 2.2em; }
.score-card { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.3em 1.8em; box-shadow: 6px 6px 0 var(--coral); }
.score-card__num { font-family: var(--ff-head); font-size: 2.1rem; display: block; }
.score-card__num small { font-size: 1rem; opacity: .6; }
.score-card__label { font-weight: 700; }
.score-card__sub { display: block; font-size: .85rem; opacity: .65; }
.recensioni__quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4em; }
.recensioni__quotes blockquote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.6em; border: 3px dashed var(--ocean); }
.recensioni__quotes p { font-style: italic; margin-bottom: .6em; }
.recensioni__quotes cite { font-size: .88rem; opacity: .7; font-style: normal; }

/* ---------- Dove siamo ---------- */
.dove { background: var(--white); }
.dove__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5em; align-items: center; }
.dove__list { list-style: none; padding: 0; margin: 1em 0 1.6em; }
.dove__list li { padding: .5em 0; border-bottom: 1px solid var(--sand-dark); }
.dove__list strong { display: block; font-family: var(--ff-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--coral-deep); }
.dove__map { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.dove__map iframe { width: 100%; height: 340px; border: 0; display: block; }
@media (max-width: 860px) { .dove__grid { grid-template-columns: 1fr; } .dove__map iframe { height: 260px; } }

/* ---------- Menu teaser page link band ---------- */
.book-band { background: var(--coral); color: var(--ink); text-align: center; padding: 4.5em 1.4em; }
.book-band h2 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.book-band .hero-btns { justify-content: center; margin-top: 1em; }
.book-band .btn-outline { background: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand); text-align: center; padding: 3.5em 1.4em 6.5em; }
.site-footer__brand { display: flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--ff-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 1em; }
.site-footer__brand img { width: 40px; height: 40px; border-radius: 50%; }
.site-footer__social { display: flex; gap: 1.4em; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2em; }
.site-footer__social a { text-decoration: none; opacity: .85; font-weight: 500; }
.site-footer__social a:hover { opacity: 1; text-decoration: underline; }
.addr { opacity: .65; font-size: .9rem; margin-bottom: .8em; }
.credit { opacity: .55; font-size: .85rem; }
.credit a { color: var(--mustard); text-decoration: none; }

.mobile-book {
  display: none; position: fixed; left: 1em; right: 1em; bottom: 1em; z-index: 90;
  background: var(--coral); color: var(--ink); text-align: center;
  padding: 1em; border-radius: 999px; font-family: var(--ff-head); font-weight: 600;
  text-decoration: none; box-shadow: 0 10px 26px -8px rgba(0,0,0,.4); border: 2.5px solid var(--ink);
}
@media (max-width: 720px) { .mobile-book { display: block; } .site-footer { padding-bottom: 7em; } }

/* ---------- Page header (menu.html) ---------- */
.page-header { padding: 8.5em 1.4em 2em; text-align: center; background: var(--ocean-deep); color: var(--white); }
.page-header h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-header p { color: var(--sand); max-width: 46ch; margin: 0 auto; }
.page-header .eyebrow { color: var(--mustard); }

/* ---------- Menu categories ---------- */
.menu-section { background: var(--sand); }
.menu-categories { display: flex; flex-direction: column; gap: 3em; }
.menu-category__head { display: flex; align-items: center; gap: .7em; margin-bottom: .3em; }
.menu-category__head h2 { font-size: 1.5rem; white-space: nowrap; }
.menu-category__line { flex: 1; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); border-radius: 3px; }
.menu-category__note { color: rgba(22,36,31,.65); margin-bottom: 1em; font-style: italic; }
.menu-dish-list { display: flex; flex-direction: column; gap: .9em; }
.menu-dish {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1em;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 1em 1.3em; box-shadow: 4px 4px 0 var(--ink);
}
.menu-dish__info h4 { margin: 0 0 .2em; font-size: 1.05rem; font-family: var(--ff-body); font-weight: 600; }
.menu-dish__info p { margin: 0; font-size: .9rem; color: rgba(22,36,31,.68); }
.menu-dish__allergens { font-style: italic; font-size: .8rem !important; opacity: .6; margin-top: .2em !important; }
.menu-dish__price { font-family: var(--ff-head); font-weight: 600; color: var(--coral-deep); white-space: nowrap; font-size: 1.05rem; }
.menu-extra-info { display: flex; gap: 1.5em; flex-wrap: wrap; margin-top: 2em; font-size: .9rem; opacity: .7; }
.menu-review-links { margin-top: 1em; font-size: .92rem; opacity: .75; }
.menu-review-links a { color: var(--coral-deep); font-weight: 600; text-decoration: none; }
.menu-review-links a:hover { text-decoration: underline; }
.menu-note-banner { background: var(--mustard); border: 2.5px solid var(--ink); border-radius: 16px; padding: 1em 1.3em; margin-bottom: 2em; font-size: .92rem; }

@media (max-width: 560px) {
  .menu-dish { flex-direction: column; align-items: flex-start; gap: .3em; }
  .menu-dish__price { align-self: flex-end; }
}
