/* ============================================================
   APHSI — Associazione Professionisti Home Staging Italia
   Design system Royaletiger — CSS custom, zero framework
   ============================================================ */

/* ---------- Font self-hosted (GDPR: nessuna richiesta a terzi) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ---------- Design system ---------- */
:root {
  /* palette brand */
  --brand: #be1e2d;
  --brand-dark: #8f1120;
  --brand-deep: #6e0c18;
  --brand-soft: #fbf0f0;
  --accent: #a7a9ac;
  --ink: #17171b;
  --text: #3c3c43;
  --muted: #6f6f78;
  --bg: #ffffff;
  --bg-alt: #f8f6f2;
  --line: #e9e5df;
  --hairline: #ddd6cc;
  /* tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 1px 2px rgba(23, 23, 27, .05), 0 4px 12px rgba(23, 23, 27, .05);
  --shadow-md: 0 2px 6px rgba(23, 23, 27, .05), 0 14px 34px rgba(23, 23, 27, .09);
  --shadow-lg: 0 4px 10px rgba(23, 23, 27, .06), 0 28px 64px rgba(23, 23, 27, .14);
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1240px;
  --nav-h: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #c9c3ba; border-radius: 999px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-dark); }

ul, ol { padding-left: 1.2rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -.02em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.015em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, .78); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.section-head.is-centered .eyebrow::after {
  content: '';
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all .35s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(110, 12, 24, .4), 0 8px 22px rgba(190, 30, 45, .26);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(110, 12, 24, .4), 0 14px 30px rgba(190, 30, 45, .34);
}
.btn-primary:hover::after { transform: translateX(110%); }

.btn-outline {
  border-color: var(--hairline);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.section-dark .btn-outline,
.hero .btn-outline {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.section-dark .btn-outline:hover,
.hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 40%, transparent 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled::after { opacity: 1; }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* lockup brand testuale — nitido a ogni densità */
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: .32rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #8e9094;
}
.brand-mark em {
  font-style: normal;
  color: var(--brand);
}
.brand-sub {
  font-size: .565rem;
  font-weight: 600;
  letter-spacing: .295em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  list-style: none;
  padding: 0;
}

.nav-links a:not(.btn) {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: .3rem;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--brand); }

.nav-cta { padding: .65rem 1.4rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero home ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 4rem) 5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 13, 13, .34) 0%, transparent 22%),
    linear-gradient(100deg, rgba(15, 13, 13, .86) 0%, rgba(15, 13, 13, .58) 48%, rgba(15, 13, 13, .14) 100%);
}
.hero .eyebrow { color: #f2b9be; }
.hero h1 em { color: #f2b9be; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead {
  color: rgba(255, 255, 255, .85);
  max-width: 56ch;
  margin-top: 1.4rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2.6rem;
  list-style: none;
  padding: 0;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-badges svg { width: 15px; height: 15px; flex: none; }

/* ---------- Hero pagine interne ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3.2rem, 7vw, 5.5rem)) 0 clamp(3.2rem, 6vw, 5rem);
  background:
    radial-gradient(52rem 26rem at 88% -20%, var(--brand-soft) 0%, transparent 62%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: 'HS';
  position: absolute;
  right: -1rem;
  bottom: -6rem;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(12rem, 26vw, 24rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 30, 45, .10);
  pointer-events: none;
  user-select: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.1rem;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .45rem; color: var(--accent); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-hero .lead { max-width: 62ch; margin-top: 1rem; }

/* ---------- Feature card ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-block: 1.2rem .6rem; }
.card p { font-size: .95rem; color: var(--muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.1rem;
  font-size: .9rem;
  font-weight: 600;
}
.card-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(190, 30, 45, .14), 0 0 0 6px rgba(190, 30, 45, .04);
  color: var(--brand);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.card-icon svg { width: 25px; height: 25px; }
.card:hover .card-icon,
.service-row:hover .card-icon {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(190, 30, 45, .3), 0 0 0 6px rgba(190, 30, 45, .1);
}

/* ---------- Split immagine/testo ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split.is-reversed .split-media { order: 2; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.split-body h2 { margin-bottom: 1.2rem; }
.split-body p + p { margin-top: 1rem; }
.split-body .btn { margin-top: 1.8rem; }

.split-note {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: .9rem 1.3rem;
  box-shadow: var(--shadow-md);
}
.split-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1.1;
}
.split-note span { font-size: .82rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: .75rem; }
.checklist li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .97rem;
}
.checklist svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: .2rem;
  color: var(--brand);
}

/* ---------- Numeri / stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 1.6rem;
  text-align: center;
}
.stat {
  position: relative;
  padding-top: 1.4rem;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2px;
  background: var(--brand);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: .7rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .68);
  max-width: 30ch;
  margin-inline: auto;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-grid figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .95);
  background: linear-gradient(transparent, rgba(15, 13, 13, .78));
}

/* ---------- Quote ---------- */
.quote {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.quote { position: relative; padding-top: 3.4rem; }
.quote::before {
  content: '\201C';
  position: absolute;
  top: -.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  opacity: .18;
  pointer-events: none;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}
.quote figcaption { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }
.quote figcaption strong { color: var(--ink); }

/* ---------- Blog card ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--brand); }
.blog-card p { margin-top: .6rem; font-size: .93rem; color: var(--muted); flex: 1; }
.blog-card .card-link { margin-top: 1.2rem; }

/* ---------- Articolo blog ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}
.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-md);
}
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 1rem; }
.article h3 { margin: 1.8rem 0 .8rem; }
.article p + p { margin-top: 1rem; }
.article ul, .article ol { margin: 1rem 0 1rem .4rem; display: grid; gap: .45rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 85%);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38rem 20rem at 85% 115%, rgba(255, 255, 255, .16), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 22px);
}
.cta-banner::before {
  content: 'HS';
  position: absolute;
  left: -1rem;
  bottom: -5rem;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 17rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .10);
  pointer-events: none;
  user-select: none;
}
.cta-banner h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-banner p {
  color: rgba(255, 255, 255, .85);
  max-width: 58ch;
  margin: 1rem auto 0;
}
.cta-banner .hero-cta { justify-content: center; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-md);
}
.cta-banner .btn-primary:hover { background: var(--bg-alt); color: var(--brand-dark); }

/* ---------- Servizi dettaglio ---------- */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-row h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.service-row p { color: var(--muted); font-size: .97rem; max-width: 70ch; }
.service-tag {
  display: inline-block;
  margin-top: .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: .3rem .9rem;
}

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-list { list-style: none; padding: 0; display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .card-icon { width: 46px; height: 46px; flex: none; }
.contact-list .card-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-list a, .contact-list span { font-size: .95rem; color: var(--muted); }
.contact-list a:hover { color: var(--brand); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(190, 30, 45, .12);
  background: #fff;
}
.form-privacy {
  grid-column: 1 / -1;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--muted);
}
.form-privacy input { margin-top: .3rem; accent-color: var(--brand); }
.form-status { margin-top: .9rem; font-size: .9rem; font-weight: 500; color: var(--brand); min-height: 1.4em; }

.map-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: .93rem;
}
.map-link svg { width: 18px; height: 18px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.team-grid.is-five { grid-template-columns: repeat(5, 1fr); }
.team-card { text-align: center; }
.team-card figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .5s var(--ease);
}
.team-card:hover img { transform: scale(1.04); }
.team-card h3 { font-size: 1.05rem; margin-top: 1rem; }
.team-card p { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Regioni / referenti ---------- */
.region-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.region-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.region-list strong { color: var(--ink); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }

/* ---------- Partner ---------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.partner-grid img {
  height: 64px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.partner-grid img:hover { filter: none; opacity: 1; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .25s var(--ease);
}
.accordion summary:hover { background: var(--bg-alt); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  flex: none;
  line-height: 1;
}
.accordion details[open] summary::after { content: '–'; }
.accordion .accordion-body { padding: 0 1.5rem 1.4rem; color: var(--muted); font-size: .95rem; }
.accordion .accordion-body ul { margin-top: .6rem; display: grid; gap: .35rem; }
.accordion .accordion-body p + p { margin-top: .7rem; }

/* ---------- Info box / IBAN ---------- */
.info-box {
  background: var(--brand-soft);
  border: 1px solid rgba(190, 30, 45, .18);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.info-box strong { color: var(--ink); }
.info-box code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .15rem .5rem;
  word-break: break-all;
}

/* ---------- Price box ---------- */
.price-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.price-box .price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
}
.price-box .price small { font-size: .95rem; font-family: var(--font-body); font-weight: 500; color: rgba(255,255,255,.65); }
.price-box ul { list-style: none; padding: 0; margin-top: 1.3rem; display: grid; gap: .55rem; }
.price-box li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.85); }
.price-box li svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; color: #f2b9be; }

/* ---------- Social ---------- */
.social-links {
  display: flex;
  gap: .7rem;
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85);
  transition: all .3s var(--ease);
}
.social-links a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}
.social-links svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(3.8rem, 7vw, 5.5rem);
  font-size: .93rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 45%, transparent 95%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .8rem;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 1.1rem;
  font-size: .95rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(255, 255, 255, .75); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: #fff; }
.footer-credit a { font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .8rem 1.4rem 1.6rem;
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
    visibility: hidden;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-links a:not(.btn) { display: block; padding: .9rem .2rem; font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { width: 100%; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.is-reversed .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .team-grid, .team-grid.is-five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 86vh; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .team-grid, .team-grid.is-five { grid-template-columns: repeat(2, 1fr); }
  .partner-grid img { height: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: .8rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
