/* Studio Figurati – sito statico (ricostruzione da screenshot) */

@font-face { font-family: "Open Sans"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #d2e5fc;
  --topbar: #3f5168;
  --header: #ffffff;
  --text: #2b2b2b;
  --muted: #5f5f5f;
  --label: #626262;
  --accent: #66c9c9;
  --cta: #dc8f5b;
  --footer-bg: #222222;
  --footer-text: #a3a3a3;
  --container: 1100px;
  --gutter: 24px;
  --font: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.375rem;      /* 22px */
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- Header ---------- */
.topbar { height: 20px; background: var(--topbar); }

.site-header { background: var(--header); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 100px;
}

.logo { display: block; flex: none; }
.logo img { display: block; width: 224px; height: auto; }

.main-nav ul { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; }

.main-nav a,
.main-nav .nav-disabled {
  display: inline-block;
  color: var(--text);
  font-weight: 300;
  font-size: 0.9375rem;     /* 15px */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.main-nav a:visited { color: var(--text); }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--accent); }

/* Voci di menu non attive: stesso aspetto, nessun link */
.main-nav .nav-disabled { cursor: default; }

a:focus-visible { outline: 3px solid var(--topbar); outline-offset: 3px; }

/* ---------- Contenuto ---------- */
main { padding: 40px 0 72px; }

/* Home */
main.home { font-weight: 700; font-size: 1.375rem; }
.home .hero { margin: 0 0 56px; }
.home .hero img { display: block; width: 100%; height: auto; }
.home p { margin: 0 0 16px; }
.home p.lead { margin-bottom: 20px; }

.standards { margin: 0; padding: 0; list-style: none; }
.standards li { color: var(--accent); }
.standards li.base { color: var(--muted); }
.standards li::before { content: "- "; }

/* Servizi */
main.services { padding-bottom: 88px; }

.service { margin: 0 0 62px; }
.service img { display: block; max-width: 100%; height: auto; margin: 0 0 34px; }

.service .label {
  margin: 0 0 9px;
  color: var(--label);
  font-size: 0.9375rem;     /* 15px */
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.service .desc { margin: 0 0 12px; font-size: 1.469rem; line-height: 1.52; font-weight: 400; }
.service .desc strong { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 22px;
  background: var(--cta); color: #fff;
  font-weight: 600; font-size: 1.25rem; line-height: 1; text-decoration: none;
  cursor: default;
}
.btn::after {
  content: ""; width: 9px; height: 9px; margin-left: 7px;
  border-top: 3px solid currentColor; border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

.service-title-only { margin: 0; color: var(--accent); font-size: 1.375rem; font-weight: 300; }

/* Paginazione (voci non attive: la pagina 2 non è disponibile) */
.pagination { display: flex; align-items: flex-start; gap: 5px; margin-top: 62px; font-weight: 300; }
.pagination .page {
  display: inline-block; min-width: 37px; height: 45px; padding: 0 11px;
  background: #fff; color: #777; font-size: 1.375rem; line-height: 45px; text-align: center;
}
.pagination .page[aria-current="page"] { background: var(--accent); color: #fff; }
.pagination .count { margin: -16px 0 0 1px; color: #777; font-size: 1.375rem; line-height: 1.5; }


/* Referenze */
main.referenze { padding-bottom: 88px; }
.page-title { margin: 0 0 14px; color: var(--muted); font-size: 2rem; font-weight: 600; line-height: 1.2; }

.clients {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 28px 0 12px; list-style: none; background: #fff;
}
.client-cell { padding: 0 12px 30px; text-align: center; }
.client { display: block; color: var(--accent); text-decoration: none; }
.logo-slot { display: flex; align-items: center; justify-content: center; height: 190px; padding: 8px 4px; }
.logo-slot img { width: auto; height: auto; max-width: 100%; max-height: 174px; object-fit: contain; }
.client-name { display: block; margin-top: 18px; font-size: 1.375rem; font-weight: 300; line-height: 1.3; }
a.client:hover .client-name { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  font-weight: 300; font-size: 1.34rem; line-height: 1.5;
  padding: 96px 0 80px;
}
.site-footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  body { font-size: 1.125rem; }
  main.home { font-size: 1.0625rem; }
  .service .desc, .service-title-only, .pagination .page, .pagination .count { font-size: 1.0625rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 12px; }
  .logo img { width: 190px; }
  .main-nav ul { gap: 4px 20px; }
  .site-footer { font-size: 1rem; padding: 48px 0; }
  main { padding-top: 24px; }
  .home .hero { margin-bottom: 32px; }
  .service { margin-bottom: 44px; }
  .pagination { flex-wrap: wrap; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .logo-slot { height: 150px; }
  .logo-slot img { max-height: 134px; }
  .client-name { font-size: 1.0625rem; }
  .page-title { font-size: 1.625rem; }
  .pagination .count { margin-top: 0; flex-basis: 100%; }
}
