/* ==========================================================================
   Anna Maria Bastianoni — Avvio strutture sanitarie e assistenziali
   Palette: bianco (60%) · azzurro pastello (30%) · azzurro pieno per le azioni (10%)
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-variable.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  /* palette */
  --brand: #A9D2EE;        /* azzurro pastello — identità */
  --brand-soft: #E4F1FA;   /* azzurro chiarissimo — fondi tinta */
  --brand-mist: #F4F9FD;   /* quasi bianco azzurrato — sezioni alternate */
  --brand-mid: #7DB7DF;    /* decorazioni, icone */
  --accent: #2E6E9E;       /* SOLO azioni: bottoni, link (5.5:1 su bianco) */
  --accent-dark: #22587F;
  --ink: #1E3446;          /* titoli */
  --text: #3B4F60;         /* testo */
  --muted: #5F7180;        /* testo secondario (5:1 su bianco) */
  --bg: #FFFFFF;
  --bg-alt: var(--brand-mist);
  --line: #DCE9F3;

  /* tipografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* sistema */
  --shadow-sm: 0 2px 10px rgba(46, 110, 158, .06);
  --shadow-md: 0 14px 34px rgba(46, 110, 158, .10);
  --shadow-lg: 0 28px 70px rgba(30, 52, 70, .16);
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1200px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.1rem); font-weight: 500; }
h3 { font-size: 1.55rem; }
h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brand-mid); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { left: 12px; color: #fff; }

/* --- utility -------------------------------------------------------------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: linear-gradient(180deg, var(--brand-soft), var(--brand-mist)); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--brand-mid); }
.center .eyebrow::after { content: ''; width: 28px; height: 1.5px; background: var(--brand-mid); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.7; font-weight: 400; }
.todo { background: #FFF6D6; color: #7A5A00; padding: 0 .35em; border-radius: 5px; font-style: normal; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font: 500 1rem/1 var(--font-body);
  letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(46, 110, 158, .22); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-mid); color: var(--accent-dark); background: var(--brand-mist); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* --- segnaposto foto --------------------------------------------------------
   Riquadro da sostituire con una foto reale fornita dalla cliente. */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 100%; min-height: 220px; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.9), transparent 45%),
    repeating-linear-gradient(135deg, var(--brand-soft) 0 14px, #EDF6FC 14px 28px);
  border: 1.5px dashed var(--brand-mid); color: var(--accent); text-align: center; padding: 24px;
}
.ph svg { width: 42px; height: 42px; opacity: .8; }
.ph span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.ph small { font-size: .9rem; color: var(--muted); max-width: 26ch; line-height: 1.45; }

/* --- header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(30, 52, 70, .05); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-brand svg { width: 46px; height: 46px; flex-shrink: 0; }
.nav-brand .name { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.05; }
.nav-brand .role { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: .98rem;
  border-radius: 10px; position: relative;
}
.nav-menu a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--accent-dark); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 12px 22px; }

/* --- menu mobile (da templates/menu.css + correzioni Sole Luna) ------------- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
body.is-locked .site-header { position: fixed; top: 0; left: 0; right: 0; }
body.is-locked .site-header + main { margin-top: calc(var(--nav-h) + 1px); }
.nav-overlay { display: none; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  position: relative; z-index: 2;
}
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { overflow: hidden; overflow: clip; }
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(30, 52, 70, .35);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 104px 26px 40px;
    box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a:not(.btn) { padding: 14px 16px; font-size: 1.1rem; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu a[aria-current="page"] { background: var(--brand-soft); }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* --- hero home ------------------------------------------------------------ */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto auto; width: 62%; height: 100%;
  background: linear-gradient(160deg, var(--brand-soft) 0%, var(--brand-mist) 60%, #fff 100%);
  border-bottom-left-radius: 220px; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 34em; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding: 0; list-style: none; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .9rem; color: var(--ink);
}
.hero-tags svg { width: 16px; height: 16px; color: var(--accent); }
.hero-visual { position: relative; }
.hero-photo {
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-lg); border: 10px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 40px; background: #fff; border-radius: 20px; padding: 18px 22px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px; max-width: 270px;
}
.hero-badge .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge .ic svg { width: 24px; height: 24px; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); line-height: 1.15; }
.hero-badge span { font-size: .85rem; color: var(--muted); }
.deco-ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--brand); pointer-events: none; }
.deco-ring.r1 { width: 140px; height: 140px; right: -40px; top: -30px; }
.deco-ring.r2 { width: 70px; height: 70px; right: 60px; top: 40px; background: var(--brand-soft); border: 0; }

/* --- card servizi ---------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.service-card .media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--brand-soft); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .media .ph { border-radius: 0; border: 0; border-bottom: 1.5px dashed var(--brand-mid); }
.service-card .body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-card .num { font-family: var(--font-display); font-size: 1rem; color: var(--brand-mid); font-weight: 600; letter-spacing: .1em; margin-bottom: 6px; }
.service-card p { color: var(--muted); }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- metodo / step --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; color: var(--brand); line-height: 1; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* --- split ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.split-media .frame.wide { aspect-ratio: 5 / 4; }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .frame .ph { border-radius: var(--radius-lg); }
.split-media::after {
  content: ''; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border-radius: var(--radius-lg); background: var(--brand-soft); z-index: -1;
}
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }

/* --- per chi lavoro --------------------------------------------------------- */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chip {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.chip .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.chip .ic svg { width: 24px; height: 24px; }
.chip h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 500; margin: 0; line-height: 1.35; }

/* --- zona ------------------------------------------------------------------ */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.area-card {
  position: relative; border-radius: var(--radius-lg); padding: 40px; overflow: hidden;
  background: linear-gradient(140deg, #fff 0%, var(--brand-soft) 100%); border: 1px solid var(--line);
}
.area-card .pin { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.area-card .pin svg { width: 24px; height: 24px; }
.area-card h3 { font-size: 2rem; font-weight: 500; }
.area-card p { color: var(--muted); margin: 0; }
.area-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1.5px solid var(--brand); }

/* --- blog card --------------------------------------------------------------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card .media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { font-size: 1.5rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* --- CTA banner --------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(44px, 7vw, 80px);
  background: linear-gradient(120deg, var(--brand-soft) 0%, #D3E8F7 55%, var(--brand) 140%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin: 0; color: var(--text); max-width: 36em; }
.cta-band::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); right: -80px; top: -120px; }
.cta-band::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.45); left: -50px; bottom: -70px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- pagine interne ----------------------------------------------------------- */
.page-hero {
  position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 6vw, 80px); overflow: hidden;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--brand-mist) 70%, #fff 100%);
}
.page-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1.5px solid var(--brand); right: -120px; top: -160px; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { max-width: 40em; margin: 0; }
.breadcrumb { margin-bottom: 26px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--brand-mid); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block:nth-child(even) .split-media { order: 2; }
.service-block .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-mid); font-weight: 600; letter-spacing: .12em; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 34px 30px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.value .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.value .ic svg { width: 26px; height: 26px; }
.value p { color: var(--muted); margin: 0; }

/* --- articolo -------------------------------------------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article .cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; aspect-ratio: 16 / 9; box-shadow: var(--shadow-md); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article .answer { background: var(--brand-mist); border-left: 4px solid var(--brand); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; color: var(--ink); }
.article-meta { font-size: .9rem; color: var(--muted); margin-top: 18px; }
.faq { margin-top: 1em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

/* --- contatti ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--brand-mist);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-mid); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 6px 0 22px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-status { margin: 14px 0 0; font-size: .95rem; color: var(--accent-dark); min-height: 1.4em; }

/* --- testo legale ----------------------------------------------------------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }

/* --- footer (chiaro: niente fondi scuri) ----------------------------------- */
.site-footer { background: linear-gradient(180deg, var(--brand-mist) 0%, var(--brand-soft) 100%); padding: 80px 0 0; border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-col p { color: var(--muted); font-size: .97rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-col h4 { color: var(--ink); margin-bottom: 18px; }
.footer-col .nav-brand { margin-bottom: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 24px 0 30px;
  border-top: 1px solid #CFE2F0; font-size: .88rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { left: 12px; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .service-block, .contact-grid { grid-template-columns: 1fr; }
  .hero::before { width: 100%; height: 60%; inset: auto 0 0 0; border-radius: 160px 0 0 0; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .split.reverse .split-media, .service-block:nth-child(even) .split-media { order: 0; }
  .grid-3, .chips { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .values { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .chips, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-brand .role { display: none; }
  .nav-brand .name { font-size: 1.25rem; }
  .nav-brand svg { width: 40px; height: 40px; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -40px auto 0; }
  .split-media::after { inset: auto -8px -8px auto; }
  .area-card { padding: 30px; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, var(--container)); }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.muted { color: var(--muted); }
