/* Pescheria Marekiaro — stile */
:root {
  --teal: #1d5e5a;
  --teal-dark: #123f3c;
  --sea: #2f8f8a;
  --sea-light: #d7ebe8;
  --cream: #f8f4ea;
  --sand: #efe6d2;
  --gold: #c39a4e;
  --leaf: #7fa38a;
  --ink: #1d2b2a;
  --muted: #5f6f6d;
  --white: #fff;
  --red: #b4473b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 63, 60, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Great Vibes', 'Playfair Display', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); color: var(--teal-dark); line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--teal); color: var(--cream); border-radius: 50%;
  padding: .55em 1.6em .4em; box-shadow: inset 0 0 0 3px var(--teal), inset 0 0 0 5px var(--cream);
  text-decoration: none; line-height: 1; font-size: 16px;
}
.logo svg { width: 1.3em; height: 1.3em; margin-bottom: .15em; }
.logo .l-top { font-family: var(--serif); letter-spacing: .28em; font-size: .62em; text-transform: uppercase; padding-left: .28em; }
.logo .l-script { font-family: var(--script); font-size: 1.9em; margin-top: -.05em; }
.logo.big { font-size: 26px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(248, 244, 234, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(29, 94, 90, .1);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.topbar .logo { font-size: 11px; }
.nav { display: flex; gap: 1.3rem; align-items: center; }
.nav a { text-decoration: none; color: var(--teal-dark); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--sea); }
@media (max-width: 820px) { .nav .hide-m { display: none; } }

.announce {
  background: var(--teal-dark); color: var(--cream); text-align: center; font-size: .9rem; padding: .5rem 1rem;
}
.announce a { color: #f3d79a; font-weight: 600; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  font: 600 1rem var(--font); padding: .85em 1.4em; border-radius: 999px; text-decoration: none;
  background: var(--teal); color: var(--white); transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18, 63, 60, .2); }
.btn:active { transform: translateY(0); }
.btn.wa { background: #1fa855; }
.btn.gold { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn.light { background: var(--cream); color: var(--teal-dark); }
.btn.danger { background: var(--red); }
.btn.sm { padding: .5em 1em; font-size: .88rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47, 143, 138, .55), transparent 60%),
    linear-gradient(160deg, var(--teal-dark), var(--teal) 55%, #2a7a74);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f4ea' d='M0 50 C 240 10 480 90 720 50 C 960 10 1200 90 1440 50 L1440 90 L0 90Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--cream); font-size: clamp(2.2rem, 6vw, 3.8rem); margin-top: .6rem; }
.hero h1 em { font-family: var(--script); font-style: normal; color: #f3d79a; font-size: 1.25em; font-weight: 400; }
.hero p.lead { font-size: 1.15rem; opacity: .92; max-width: 34em; }
.hero .badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .35em; padding: .35em .85em; border-radius: 999px;
  background: rgba(248, 244, 234, .14); color: var(--cream); font-size: .85rem; font-weight: 500;
}
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-card {
  background: var(--cream); color: var(--ink); border-radius: 26px; padding: 1.6rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  transform: rotate(1.5deg);
}
.hero-card .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); font-weight: 700; }
.hero-card ul { list-style: none; padding: 0; margin: .8rem 0 1rem; }
.hero-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(29, 94, 90, .2); }
.hero-card li b { font-weight: 600; }
.hero-card li span { color: var(--teal); font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
}

/* ---------- Sezioni ---------- */
section.block { padding: clamp(3rem, 7vw, 5rem) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.sec-head .kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sea); font-weight: 700; }
.sec-head p { max-width: 40em; margin: 0; }
.alt { background: var(--white); }
.sand { background: var(--sand); }

/* ---------- Leaves deco ---------- */
.leafy { position: relative; }
.leafy::before, .leafy::after {
  content: ''; position: absolute; width: 140px; height: 140px; opacity: .35; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%237fa38a' stroke-width='2'%3E%3Cpath d='M10 90 Q50 50 90 10'/%3E%3C/g%3E%3Cg fill='%237fa38a'%3E%3Cellipse cx='30' cy='70' rx='9' ry='5' transform='rotate(-60 30 70)'/%3E%3Cellipse cx='42' cy='52' rx='9' ry='5' transform='rotate(30 42 52)'/%3E%3Cellipse cx='55' cy='45' rx='9' ry='5' transform='rotate(-60 55 45)'/%3E%3Cellipse cx='66' cy='28' rx='9' ry='5' transform='rotate(30 66 28)'/%3E%3Cellipse cx='78' cy='22' rx='8' ry='4.5' transform='rotate(-60 78 22)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
}
.leafy::before { top: 10px; left: -20px; }
.leafy::after { bottom: 10px; right: -20px; transform: rotate(180deg); }

/* ---------- Filtri ---------- */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip {
  border: 0; cursor: pointer; padding: .5em 1em; border-radius: 999px; font: 500 .9rem var(--font);
  background: var(--white); color: var(--teal-dark); box-shadow: inset 0 0 0 1px rgba(29, 94, 90, .2);
}
.chip.on { background: var(--teal); color: var(--white); box-shadow: none; }

/* ---------- Card ---------- */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card .media { aspect-ratio: 4/3; background: var(--sea-light); position: relative; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media .ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #e8f2f0, #cfe4e0); }
.card .media .ph svg { width: 55%; opacity: .85; }
.card .tag {
  position: absolute; top: .7rem; left: .7rem; background: var(--cream); color: var(--teal-dark);
  font-size: .75rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.card .tag.daily { background: var(--gold); color: var(--white); }
.card .tag.out { background: var(--red); color: #fff; left: auto; right: .7rem; }
.card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { margin-bottom: .2rem; }
.card .meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.card .price { font-family: var(--serif); font-size: 1.45rem; color: var(--teal); font-weight: 700; }
.card .price small { font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 500; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .8rem; }
.card.out { opacity: .6; }

.box-card .contents { white-space: pre-line; font-size: .92rem; color: var(--ink); background: var(--cream); padding: .7rem .85rem; border-radius: 12px; margin: .4rem 0 .6rem; }
.box-card .serves { font-size: .85rem; color: var(--sea); font-weight: 600; }

/* ---------- Offerte ---------- */
.offers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.offer {
  background: linear-gradient(150deg, var(--teal), var(--teal-dark)); color: var(--cream); border-radius: var(--radius);
  padding: 1.5rem; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.offer h3 { color: var(--cream); font-size: 1.35rem; }
.offer .badge { display: inline-block; background: var(--gold); color: #fff; padding: .25em .75em; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.offer p { opacity: .9; margin: 0; }
.offer .until { font-size: .8rem; opacity: .75; margin-top: .8rem; }
.offer::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(248, 244, 234, .08); }

/* ---------- Club ---------- */
.club-band { background: linear-gradient(140deg, #f3ead6, var(--sand)); }
.club-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .club-wrap { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .8rem; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.steps .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.rewards-list { display: grid; gap: .6rem; }
.reward-row { display: flex; justify-content: space-between; align-items: center; background: var(--white); border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 4px 14px rgba(18, 63, 60, .07); }
.reward-row b { color: var(--teal-dark); }
.reward-row .pts { font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ---------- Tessera ---------- */
.loyalty-card {
  position: relative; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; color: var(--cream); overflow: hidden;
  background:
    radial-gradient(500px 200px at 110% -20%, rgba(243, 215, 154, .35), transparent 60%),
    linear-gradient(145deg, var(--teal-dark), var(--teal) 60%, var(--sea));
  box-shadow: 0 25px 50px rgba(18, 63, 60, .35); max-width: 420px; margin: 0 auto;
}
.loyalty-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.loyalty-card .club { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.loyalty-card .name { font-family: var(--serif); font-size: 1.35rem; margin-top: .2rem; }
.loyalty-card .points { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 1rem 0 .2rem; color: #f3d79a; }
.loyalty-card .points small { font-family: var(--font); font-size: .9rem; color: var(--cream); opacity: .85; margin-left: .3rem; }
.loyalty-card .bar { height: 8px; border-radius: 99px; background: rgba(248, 244, 234, .2); overflow: hidden; margin: .7rem 0 .4rem; }
.loyalty-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f3d79a, var(--gold)); border-radius: 99px; transition: width .8s; }
.loyalty-card .next { font-size: .85rem; opacity: .9; }
.loyalty-card .qr { background: #fff; border-radius: 16px; padding: .8rem; margin-top: 1.1rem; display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.loyalty-card .qr .code { width: 120px; height: 120px; flex: 0 0 120px; }
.loyalty-card .qr .code img, .loyalty-card .qr .code svg { width: 100%; height: 100%; }
.loyalty-card .qr .cc { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 1.1rem; color: var(--teal-dark); letter-spacing: .06em; }
.loyalty-card .fish-deco { position: absolute; right: -10px; top: 50px; width: 150px; opacity: .08; }

/* ---------- Info ---------- */
.info-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .info-wrap { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .5rem 0; border-bottom: 1px solid rgba(29, 94, 90, .12); }
.hours td:last-child { text-align: right; font-weight: 500; }
.hours tr.today td { color: var(--teal); font-weight: 700; }
.map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.contact-list a { text-decoration: none; display: flex; gap: .6rem; align-items: center; font-weight: 500; color: var(--teal-dark); }
.contact-list svg { width: 1.2em; height: 1.2em; color: var(--sea); }

/* ---------- Footer ---------- */
footer.site { background: var(--teal-dark); color: rgba(248, 244, 234, .8); padding: 2.5rem 0 6rem; font-size: .9rem; }
footer.site .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
footer.site a { color: var(--cream); }

/* ---------- Barra fissa mobile ---------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50;
  display: flex; gap: .4rem; background: rgba(18, 63, 60, .96); padding: .4rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.dock a { color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: .4em; padding: .6em 1em; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.dock a.wa { background: #1fa855; }
.dock svg { width: 1.15em; height: 1.15em; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(18, 40, 38, .55); }
.modal.open { display: flex; animation: fade .2s; }
.modal .sheet {
  background: var(--cream); width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0;
  padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); animation: up .25s;
}
@media (min-width: 640px) { .modal { align-items: center; } .modal .sheet { border-radius: 24px; } }
.modal .close { float: right; border: 0; background: var(--white); border-radius: 50%; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; }
.modal .media { border-radius: 16px; overflow: hidden; margin: 0 0 1rem; aspect-ratio: 16/10; background: var(--sea-light); }
.modal .media img { width: 100%; height: 100%; object-fit: cover; }
.tip { background: var(--white); border-left: 4px solid var(--gold); padding: .9rem 1rem; border-radius: 0 12px 12px 0; margin: 1rem 0; }
.tip b { display: block; color: var(--teal-dark); margin-bottom: .2rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Form ---------- */
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-weight: 500; font-size: .92rem; color: var(--teal-dark); }
.form input, .form select, .form textarea {
  font: 1rem var(--font); padding: .8em .9em; border: 1px solid rgba(29, 94, 90, .25); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%;
}
.form textarea { min-height: 90px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sea); border-color: transparent; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.check { display: flex !important; grid-template-columns: none; gap: .6rem !important; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--ink) !important; }
.check input { width: auto; margin-top: .2em; accent-color: var(--teal); }
.pref-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.pref-grid label { display: inline-flex; cursor: pointer; }
.pref-grid input { display: none; }
.pref-grid span { padding: .45em .9em; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(29, 94, 90, .25); font-size: .88rem; font-weight: 500; }
.pref-grid input:checked + span { background: var(--teal); color: #fff; box-shadow: none; }
.pin { letter-spacing: .6em; text-align: center; font-size: 1.4rem !important; font-weight: 700; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; top: 18px; transform: translate(-50%, -150%); z-index: 200; transition: transform .3s;
  background: var(--teal-dark); color: var(--cream); padding: .8rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow); max-width: 92vw; font-weight: 500;
}
#toast.show { transform: translate(-50%, 0); }
#toast.err { background: var(--red); }

/* ---------- Install ---------- */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 60; background: var(--white); border-radius: 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
  padding: 1rem; display: flex; gap: .9rem; align-items: center; max-width: 520px; margin: 0 auto;
}
.install-banner .ic { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 52px; }
.install-banner .txt { flex: 1; font-size: .9rem; }
.install-banner .x { border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }

.loader { text-align: center; padding: 3rem; color: var(--muted); }
.empty { text-align: center; padding: 2rem; color: var(--muted); background: var(--white); border-radius: var(--radius); }
.nav a.btn { color: var(--white); }
@media (min-width: 821px) { .dock { display: none; } footer.site { padding-bottom: 2.5rem; } .install-banner { bottom: 20px; } }
.loyalty-card .top .logo { font-size: 7px; }
@media (max-width: 560px) {
  #products { grid-template-columns: 1fr 1fr; gap: .7rem; }
  #products .card .body { padding: .7rem .75rem .8rem; }
  #products .card h3 { font-size: 1rem; }
  #products .card .meta { font-size: .75rem; margin-bottom: .3rem; }
  #products .card .foot { flex-direction: column; align-items: stretch; gap: .4rem; }
  #products .card .price { font-size: 1.2rem; }
  #products .card .tag { font-size: .65rem; }
}
