/* Sito: base comune (dal prototipo della home) (token e font del sito Italdigitale). */

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1e2228;
  --ink-2: #2a2f37;
  --muted: #5b626c;
  --coral: #ff5a36;
  --coral-light: #ff8f73;
  --coral-ink: #c2370f;
  --coral-soft: #fff1ec;
  --bg: #ffffff;
  --bg-alt: #f7f6f4;
  --border: #e9e5df;
  --wa: #157a3c;
  --font-head: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral-ink);
  color: #fff;
  box-shadow: 0 8px 22px rgb(194 55 15 / 25%);
}

.btn-primary:hover {
  background: #a92f0c;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.text-link {
  color: var(--coral-ink);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.proto-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgb(0 0 0 / 20%);
}

/* Barra unica da telefono */
.m-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 84px;
  }

  .m-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }

  .m-bar .btn {
    width: 100%;
  }

  /* Da telefono il bottone dei prototipi coprirebbe il testo: si torna indietro col browser. */
  .proto-badge {
    display: none;
  }
}

/* Esempio di recensione (comune) */
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.review-head strong,
.review-head small {
  display: block;
  line-height: 1.3;
}

.review-head small {
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-ink);
  font-family: var(--font-head);
  font-weight: 800;
}

.stars {
  display: flex;
  gap: 2px;
  margin: 12px 0 8px;
  color: #dcd7d0;
}

.stars svg {
  width: 16px;
  height: 16px;
}

.stars .on {
  color: var(--coral);
}

.review-text {
  margin: 0;
  font-size: 0.95rem;
}

.example-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
