/* Shared stylesheet for every client site. Colours and fonts come from
   per-site custom properties set in base.html. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  --muted: color-mix(in srgb, var(--ink) 62%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --tint: color-mix(in srgb, var(--primary) 6%, var(--bg));
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.18);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ic { flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.demo-bar { background: var(--ink); color: var(--bg); text-align: center; font-size: 13px; padding: 7px 16px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .75; }
.nav a:hover { opacity: 1; }
.topbar-call {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}

/* Hero */
.hero {
  position: relative; color: #fff; min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%),
    linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.7) 100%),
    var(--hero-img, linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, black)));
  background-size: cover; background-position: center;
}
.hero-inner { padding: 120px 0 120px; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.kicker { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.tagline { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 46ch; opacity: .92; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 14px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
}
.badge .ic { color: var(--accent); fill: var(--accent); }
a.badge { color: #fff; text-decoration: none; }
a.badge:hover { background: rgba(255,255,255,.22); }
.badge.status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
.is-open i, .is-open::before { background: #2ecc71 !important; }
.is-closed i { background: #ff6b5b !important; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); margin-top: 18px; }

/* Info strip overlapping the hero */
.infostrip {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.info { display: flex; gap: 14px; align-items: center; padding: 22px 24px; background: var(--bg); text-decoration: none; color: var(--ink); }
.info .ic { color: var(--primary); }
.info small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info span { font-weight: 600; }
.status-inline.is-open b { color: #1e9e57; }
.status-inline.is-closed b { color: #c0392b; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.tinted { background: var(--tint); }
.section-head { margin-bottom: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.no-media { grid-template-columns: 1fr; max-width: 780px; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 45%; height: 45%;
  border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1;
}
.highlights { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.highlights .ic { color: var(--primary); background: color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; padding: 3px; width: 26px; height: 26px; }

/* Cards (services) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: var(--primary); color: #fff;
}
.card p { margin: 0; color: var(--muted); }
.card .card-price { margin-top: 12px; color: var(--primary); font-weight: 600; }

/* Menu */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 72px; }
.menu-group h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 22px; }
.menu-item { margin-bottom: 20px; }
.menu-line { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 25%, transparent); transform: translateY(-4px); }
.price { white-space: nowrap; color: var(--primary); font-family: var(--font-heading); font-size: 1.15rem; }
.menu-item p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.note { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* Chips (area) */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.chips .ic { color: var(--primary); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.n1, .gallery.n2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: 340px; }
.gallery.n1 figure:first-child, .gallery.n2 figure:first-child { grid-column: auto; grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n3 figure:first-child { grid-column: span 1; }
.gallery.n4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.n4 figure:first-child { grid-column: span 1; }
.gallery.n4 figure:last-child { grid-column: span 2; }

/* Reviews: the real words of customers are the main argument of the page */
.reviews { background: var(--tint); }
.reviews-head { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); margin-bottom: 40px; }
.reviews-head h2 { margin: 6px 0 4px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.score { font-family: var(--font-heading); font-weight: 800; font-size: clamp(4.5rem, 13vw, 8rem); line-height: .85; color: var(--primary); letter-spacing: -.05em; }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars .ic { fill: var(--accent); }
.link { font-weight: 600; color: var(--primary); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 26px 24px; background: var(--bg); border-radius: 6px 22px 6px 22px; border-left: 4px solid var(--accent); }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.6; }
.quote figcaption { font-weight: 600; font-size: 15px; color: var(--muted); }
.q-stars { color: var(--accent); letter-spacing: 1px; margin-left: 6px; }
@media (max-width: 860px) {
  .quotes { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .quote { scroll-snap-align: start; }
}

/* Maiolica band: the one decorative element, coloured after the local ceramics */
.maiolica { height: 32px; background-size: 32px 32px; background-repeat: repeat-x; border-block: 3px solid var(--primary); }
.maiolica.thin { height: 18px; background-size: 18px 18px; border-block-width: 2px; }
.maiolica + .infostrip { margin-top: 28px; }

/* Hours */
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours th, .hours td { padding: 16px 24px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); font-weight: 700; }
.hours tr.today th::after { content: " (oggi)"; font-weight: 500; color: var(--muted); }
.status-pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 15px; background: var(--bg); }
.status-pill.is-open b { color: #1e9e57; }
.status-pill.is-closed b { color: #c0392b; }

/* Contact */
.contact { background: var(--primary); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.contact-address { display: flex; gap: 8px; align-items: center; opacity: .9; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .btn { justify-content: flex-start; }

/* Footer */
.footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 75%, transparent); padding: 40px 0 48px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer p { margin: 0 0 4px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.3rem; color: var(--bg); }
.footer-links { display: grid; gap: 6px; text-align: right; }
.footer a { color: inherit; }

/* Floating WhatsApp (desktop) and action bar (mobile) */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.action-bar { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .split, .contact-inner { grid-template-columns: 1fr; }
  .split-media::after { display: none; }
  .split-media img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery.n3, .gallery.n4 { grid-template-columns: 1fr 1fr; }
  .gallery.n3 figure:first-child, .gallery.n4 figure:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery.n4 figure:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .topbar-call span { display: none; }
  .topbar-call { padding: 10px; }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 96px 0 96px; }
  .btn { width: 100%; }
  .hero .btn-ghost { display: none; }
  .infostrip { margin-top: -40px; }
  .hours th, .hours td { padding: 14px 16px; }
  .wa-float { display: none; }
  .action-bar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 40;
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .action-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
    color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600;
  }
  .action-bar a .ic { color: var(--primary); }
  .action-bar a.wa .ic { color: #1fa855; }
}
