/* ==========================================================================
   Siti Web Ristoranti — stylesheet principale
   Mobile first · nessun font esterno (LCP rapido) · dark mode automatica
   ========================================================================== */

:root {
  --brand: #e11d48;
  --brand-600: #be123c;
  --brand-700: #9f1239;
  --accent: #f59e0b;
  --accent-2: #ea580c;
  --ink: #0b1220;
  --ink-2: #1f2937;
  --muted: #56637a;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-alt: #eef3fb;
  --card: #ffffff;
  --white: #fff;
  --ok: #16a34a;
  --warn: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --container: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f9;
    --ink-2: #d6dde9;
    --muted: #a2adc0;
    --line: #22304a;
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --bg-alt: #111c33;
    --card: #101a2e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.021em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.7vw, 2.35rem); font-weight: 780; }
h3 { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.1rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 820px; }
.container--mid { max-width: 980px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.section--soft { background: var(--bg-soft); }
.section--alt { background: var(--bg-alt); }
.section__title { margin-bottom: .4em; }
.section__head { max-width: 720px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .8rem;
}

.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}
.logo__mark { display: block; line-height: 0; }
.logo__text strong { font-weight: 800; }

.nav-toggle {
  --bar: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  background: var(--bar);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: absolute;
  inset: 68px 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.nav.is-open { display: block; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: .6rem var(--pad) 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.nav__link {
  display: block;
  padding: .7rem .2rem;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav__link.is-active { color: var(--brand); }
.nav__item--cta { margin-top: .8rem; }
.nav__item--cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; align-items: center; gap: .3rem; padding: 0; }
  .nav__link {
    border: 0;
    padding: .5rem .7rem;
    border-radius: 9px;
    font-size: .96rem;
  }
  .nav__link:hover { background: var(--bg-soft); color: var(--brand); }
  .nav__item--cta { margin: 0 0 0 .5rem; }
  .nav__item--cta .btn { width: auto; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(225, 29, 72,.28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(225, 29, 72,.36); }
.btn--secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { color: var(--brand); border-color: var(--brand); }
.btn--light { background: #fff; color: #0b1220; }
.btn--light:hover { color: var(--brand-700); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { padding: .6rem 1.05rem; font-size: .92rem; min-height: 42px; }
.btn--block { width: 100%; }
.btn--wa { background: #25d366; color: #05300f; }
.btn--wa:hover { color: #05300f; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.6rem, 7vw, 5.4rem);
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(245, 158, 11,.16), transparent 60%),
    radial-gradient(760px 420px at 4% 8%, rgba(225, 29, 72,.14), transparent 62%),
    var(--bg);
  overflow: hidden;
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.4rem); align-items: center; }
.hero__title { margin-bottom: .45em; }
.hero__title .grad {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); color: var(--muted); max-width: 56ch; }
.hero__actions { margin: 1.7rem 0 1.4rem; }
.hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.3rem;
  font-size: .93rem;
  color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust li::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* mockup browser nella hero */
.mockup {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup__url {
  margin-left: .6rem;
  font-size: .74rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup__body { padding: 1.1rem; display: grid; gap: .85rem; }
.mockup__hero {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 29, 72,.95), rgba(245, 158, 11,.9));
  color: #fff;
  padding: 1.15rem;
}
.mockup__hero strong { display: block; font-size: 1.05rem; }
.mockup__hero span { font-size: .82rem; opacity: .92; }
.mockup__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mockup__card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .65rem;
  font-size: .72rem;
  color: var(--muted);
  background: var(--bg);
}
.mockup__card b { display: block; color: var(--ink); font-size: .82rem; }
.mockup__score {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .6rem .75rem;
  background: var(--bg);
}
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .8rem;
  color: #065f46;
  background: conic-gradient(#22c55e 0 96%, #dcfce7 0);
  box-shadow: inset 0 0 0 4px var(--bg);
}

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225, 29, 72,.14), rgba(245, 158, 11,.16));
  color: var(--brand);
  margin-bottom: 1rem;
}
.card__link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card__link::after { content: "→"; transition: transform .2s ease; }
.card--link:hover .card__link::after { transform: translateX(3px); }
.card__list { margin: .9rem 0 1.1rem; padding: 0; list-style: none; font-size: .95rem; }
.card__list li { padding-left: 1.5rem; position: relative; margin-bottom: .35rem; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.stack-link { text-decoration: none; color: inherit; display: block; }
.stack-link h3 { color: var(--ink); }

/* ---------- Numeri / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 820;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: .9rem; color: var(--muted); }

/* ---------- Processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  margin-bottom: .85rem;
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Prezzi ---------- */
.pricing { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}
.price__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .32rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price__name { font-size: 1.15rem; margin-bottom: .2rem; }
.price__amount { font-size: 2.1rem; font-weight: 820; color: var(--ink); letter-spacing: -.03em; }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price__desc { color: var(--muted); font-size: .95rem; }
.price ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; font-size: .95rem; flex: 1; }
.price ul li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
.price ul li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 540px; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 650;
  color: var(--ink);
  position: relative;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
  color: var(--brand);
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 1.2rem 1.2rem; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .85rem; }
.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: .7rem 0;
  color: var(--muted);
}
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin-right: .35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  padding-block: clamp(2.2rem, 5.5vw, 3.8rem);
  background:
    radial-gradient(680px 320px at 92% -20%, rgba(245, 158, 11,.14), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero__lead { max-width: 70ch; color: var(--muted); font-size: clamp(1.02rem, 1rem + .3vw, 1.16rem); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand) 45%, var(--accent));
  color: #fff;
  padding-block: clamp(2.4rem, 6vw, 3.6rem);
}
.cta__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.4fr 1fr; } }
.cta__title { color: #fff; margin-bottom: .3em; }
.cta__text { color: rgba(255, 255, 255, .92); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Prose (blog / legali) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose .callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.8em 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout strong { color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .87rem; color: var(--muted); text-align: center; margin-top: .5rem; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin-bottom: .3em; }

/* ---------- Blog ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  list-style: none;
  padding: 0;
}
.tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(225, 29, 72,.1);
  border-radius: 999px;
  padding: .22rem .7rem;
}
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__title { font-size: 1.15rem; margin: .7rem 0 .5rem; }
.post-card__excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-soft);
  margin-top: 2.5rem;
}
.author-box__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.author-box p { margin: 0; font-size: .93rem; color: var(--muted); }
.author-box strong { color: var(--ink); }

/* ---------- Zone / comuni ---------- */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.chip {
  display: inline-block;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }

.comune-card { display: flex; flex-direction: column; gap: .3rem; }
.comune-card__meta { font-size: .84rem; color: var(--muted); }

.info-grid { display: grid; gap: .8rem; }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  background: var(--card);
}
.info-item dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .2rem; }
.info-item dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Portfolio ---------- */
.demo-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.demo-card__thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.demo-card__thumb h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.35rem; }
.demo-card__thumb span { font-size: .88rem; opacity: .9; }
.demo-card__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.demo-card__body p { color: var(--muted); font-size: .95rem; flex: 1; }

.demo-banner {
  background: #111827;
  color: #fff;
  font-size: .85rem;
  padding: .55rem 0;
  text-align: center;
}
.demo-banner a { color: #7dd3fc; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 650; font-size: .93rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  width: 100%;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid rgba(225, 29, 72,.2); outline-offset: 0; }
.field__hint { font-size: .82rem; color: var(--muted); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: .15rem; }
.form__note { font-size: .85rem; color: var(--muted); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .93rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(22, 163, 74, .12); color: #15803d; border: 1px solid rgba(22, 163, 74, .3); }

/* ---------- Contatti ---------- */
.contact-methods { display: grid; gap: 1rem; }
@media (min-width: 700px) { .contact-methods { grid-template-columns: repeat(3, 1fr); } }
.contact-method {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.contact-method__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.contact-method__value { font-size: 1.1rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-method__note { font-size: .88rem; color: var(--muted); }

/* ---------- Testimonianze ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__stars { color: #f59e0b; letter-spacing: .1em; font-size: .95rem; }
.quote p { margin: 0; flex: 1; }
.quote__who { font-size: .88rem; color: var(--muted); }
.quote__who strong { color: var(--ink); display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 3.8rem) 1.6rem;
  font-size: .94rem;
}
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }
.logo--footer { margin-bottom: .9rem; }
.footer__desc { color: var(--muted); max-width: 42ch; }
.footer__contacts, .footer__list { list-style: none; padding: 0; margin: 0; }
.footer__contacts li, .footer__list li { margin-bottom: .45rem; }
.footer__contacts a, .footer__list a { color: var(--muted); text-decoration: none; }
.footer__contacts a:hover, .footer__list a:hover { color: var(--brand); text-decoration: underline; }
.footer__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin-bottom: .9rem; }
.footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.footer__bottom p { margin: 0 0 .3rem; }
.footer__note { opacity: .8; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
@media (min-width: 960px) { .whatsapp-float { right: 1.6rem; bottom: 1.6rem; } }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }

/* ---------- Copertine fotografiche delle schede demo ---------- */
.demo-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  padding: 0;
  background: var(--bg-alt);
}
.demo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .demo-card__img { transform: scale(1.04); }
.demo-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.2rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(9, 12, 20, .82));
}
.demo-card__overlay h2,
.demo-card__overlay h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.25rem; }
.demo-card__overlay span { font-size: .88rem; opacity: .92; }
