/* MM | Tax & Legal — stylesheet
   Tokens and rules from ARCH-001 §8; components COMP-001…016 in ID order. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #173A70;
  --primary-dark: #102B54;
  --accent: #2E5C99;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --text: #2F3743;
  --muted: #6C7480;
  /* --muted reaches only 4.47:1 on --bg: text uses this slightly darker shade (5.3:1 on --bg, 4.7:1 on --soft) */
  --muted-text: #616975;
  --border: #D8DEE7;
  --soft: #E8EDF3;
  --font: Aptos, Inter, "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 43, 84, 0.06);
  --shadow-hover: 0 10px 28px rgba(16, 43, 84, 0.12);
  --gutter: 16px;
  --header-h: 64px;
  --section-y: 56px;
}

@media (min-width: 600px) {
  :root { --gutter: 32px; --section-y: 72px; --header-h: 72px; }
}
@media (min-width: 1100px) {
  :root { --section-y: 96px; --header-h: 80px; }
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--primary-dark); line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
a { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Viewport variants of the approved copy */
@media (max-width: 599.98px) {
  .only-tablet, .only-desktop, .not-mobile { display: none !important; }
}
@media (min-width: 600px) and (max-width: 1099.98px) {
  .only-mobile, .only-desktop, .not-tablet { display: none !important; }
}
@media (min-width: 1100px) {
  .only-mobile, .only-tablet, .not-desktop { display: none !important; }
}

/* Layout ---------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--soft); }
.section--tight { padding-top: 0; }

.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.subtitle { font-size: 1.25rem; }
.lead { margin-top: 12px; font-size: 1.125rem; color: var(--muted-text); max-width: 64ch; }
.note { margin-top: 8px; font-size: 0.9375rem; color: var(--muted-text); }

.grid { display: grid; gap: 16px; }
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1100px) {
  .grid--3 { gap: 24px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 40px; }
@media (min-width: 1100px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.more { margin-top: 24px; }

.c-home-feeds { display: grid; gap: 48px; margin-top: 64px; }
.c-home-feeds .section__head { margin-bottom: 16px; }

/* Buttons and links ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--soft); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.textlink:hover { color: var(--primary); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
@media (hover: hover) and (min-width: 1100px) {
  a.card:hover, .card--hover:hover { box-shadow: var(--shadow-hover); border-color: #c7d0dc; }
}

/* COMP-001 Header Navigation -------------------------------------------- */

.c-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.c-header.is-stuck { border-color: var(--border); box-shadow: var(--shadow); }

.c-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.c-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: auto;
  color: var(--primary-dark);
  text-decoration: none;
}
.c-header__brand img { width: 46px; height: auto; }
.c-header__brand span { font-size: 1.0625rem; letter-spacing: 0.01em; white-space: nowrap; }
.c-header__brand b { font-weight: 700; }

.c-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.c-header__toggle-icon { font-size: 1.125rem; line-height: 1; letter-spacing: 0; }

.c-header__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
}
.c-header__nav.is-open { display: block; }
.c-header__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--soft);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}
.c-header__nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); padding-left: 12px; }
.c-header__nav .c-header__extra a { color: var(--accent); }

.c-header__phone, .c-header__cta { display: none; }

@media (min-width: 1100px) {
  .c-header__toggle { display: none; }
  .c-header__nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .c-header__nav ul { display: flex; gap: 4px; }
  .c-header__nav a {
    padding: 0 12px;
    white-space: nowrap;
    border-bottom: 0;
    color: var(--text);
  }
  .c-header__nav a:hover { color: var(--primary); }
  .c-header__nav a[aria-current="page"] {
    color: var(--primary);
    padding-left: 12px;
    box-shadow: inset 0 -2px 0 var(--primary);
  }
  .c-header__nav .c-header__extra { display: none; }
  .c-header__phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted-text);
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .c-header__phone:hover { color: var(--primary); }
  .c-header__cta { display: inline-flex; min-height: 44px; padding: 10px 18px; }
}

/* COMP-002 Footer ------------------------------------------------------- */

.c-footer {
  background: var(--primary-dark);
  color: #D9E1EC;
  padding: 56px 0 32px;
  font-size: 0.9375rem;
}
.c-footer a { color: #fff; text-decoration: none; }
.c-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-footer__grid { display: grid; gap: 32px; }
@media (min-width: 600px) { .c-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.c-footer__name { color: #fff; font-size: 1.125rem; font-weight: 650; }
.c-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.c-footer li a, .c-footer li > span { display: inline-flex; align-items: center; min-height: 44px; }
.c-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #B9C5D6;
  font-size: 0.875rem;
}

/* COMP-003 Hero --------------------------------------------------------- */

.c-hero { padding: 48px 0 56px; background: var(--surface); border-bottom: 1px solid var(--border); }
.c-hero__inner { display: grid; gap: 40px; align-items: center; }
.c-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.125rem); font-weight: 650; letter-spacing: -0.02em; }
.c-hero__text { margin-top: 20px; max-width: 58ch; font-size: 1.1875rem; color: var(--muted-text); }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.c-hero__media img { width: 100%; border-radius: var(--radius); }
.c-hero__media--crop img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 600px) {
  .c-hero { padding: 64px 0 72px; }
}
@media (min-width: 1100px) {
  .c-hero { padding: 88px 0 96px; }
  .c-hero--image .c-hero__inner { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

/* COMP-004 Competence Card --------------------------------------------- */

.c-competence {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 20px;
  align-items: start;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}
.c-competence__media { grid-row: span 3; width: 72px; height: 72px; }
.c-competence__title { font-size: 1.1875rem; }
.c-competence__text { color: var(--muted-text); }
.c-competence__more { margin-top: 8px; color: var(--accent); font-weight: 600; }
.c-competence__more::after { content: " →"; }
@media (min-width: 600px) {
  .c-competence { grid-template-columns: 1fr; padding: 24px; gap: 8px; height: 100%; }
  .c-competence__media { grid-row: auto; width: 88px; height: 88px; margin-bottom: 12px; }
}
@media (min-width: 1100px) {
  .c-competence { padding: 32px; }
  .c-competence__media { width: 112px; height: 112px; margin-bottom: 16px; }
}

/* COMP-005 Editorial Bridge -------------------------------------------- */

.c-bridge { max-width: 860px; padding-left: 24px; border-left: 3px solid var(--primary); }
.c-bridge__quote { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); font-weight: 600; color: var(--primary-dark); line-height: 1.3; }
.c-bridge__text { margin-top: 16px; color: var(--muted-text); font-size: 1.125rem; max-width: 64ch; }

/* COMP-006 Value Item --------------------------------------------------- */

/* five items: 2 columns on tablet, 3 + 2 on desktop; titles wrap rather than squeeze the columns */
.c-values { gap: 20px; }
@media (min-width: 600px) {
  .c-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1100px) {
  .c-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.c-value { padding: 0; }
.c-value__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 20px 18px;
  cursor: pointer;
  list-style: none;
}
.c-value__head::-webkit-details-marker { display: none; }
.c-value__head::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.c-value__head::after {
  content: "+";
  flex: none;
  margin-left: auto;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--accent);
}
.c-value details[open] .c-value__head::after { content: "\2212"; }
.c-value__head:hover .c-value__title { color: var(--accent); }
.c-value__title { font-size: 1rem; }
.c-value__text { padding: 0 18px 24px; color: var(--muted-text); }

/* COMP-007 Situation Card ---------------------------------------------- */

.c-situation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  height: 100%;
  padding: 18px 20px;
  color: var(--primary-dark);
  text-decoration: none;
}
.c-situation__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.c-situation__go { flex: none; color: var(--accent); font-size: 1.25rem; }

/* COMP-008 Method Step -------------------------------------------------- */

.c-steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 600px) { .c-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .c-steps { grid-template-columns: repeat(4, 1fr); } }
.c-step {
  counter-increment: step;
  padding: 24px 0 0;
  border-top: 2px solid var(--primary);
}
.c-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.c-step__title { font-size: 1.25rem; }
.c-step__text { margin-top: 8px; color: var(--muted-text); }
.c-steps__note { margin-top: 24px; color: var(--muted-text); }

/* COMP-009 Professional Card ------------------------------------------- */

.c-professional { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.c-professional__media {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
}
.c-professional__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.c-professional__media--logo { display: grid; place-items: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.c-professional__media--logo img { width: 52%; height: auto; object-fit: contain; }
.c-professional__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 24px; flex: 1; }
.c-professional__name { font-size: 1.25rem; }
.c-professional__role { color: var(--muted-text); }
.c-professional__summary { display: block; cursor: pointer; list-style: none; }
.c-professional__summary::-webkit-details-marker { display: none; }
.c-professional__summary .c-professional__body { padding-bottom: 20px; }
.c-professional__summary:hover .c-professional__name { color: var(--accent); }
.c-professional__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--accent); }
.c-professional__more::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.c-professional__toggle[open] .c-professional__more::after { content: "\2212"; }
.c-professional__bio { display: grid; gap: 12px; padding: 0 24px 24px; color: var(--muted-text); font-size: 0.9375rem; }
.c-professional__foot { margin-top: auto; padding: 0 24px 24px; }
.c-professional__foot .c-professional__links { padding-top: 0; }
.c-professional__links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: auto; padding-top: 8px; }
.c-professional__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.c-professional__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* COMP-010 News Card ---------------------------------------------------- */

.c-newslist { display: grid; gap: 16px; }
@media (min-width: 600px) { .c-newslist { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .c-newslist--3 { grid-template-columns: repeat(3, 1fr); } }

.c-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.c-news__category {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-news__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-news__text { color: var(--text); font-size: 0.9375rem; }
.c-news__title, .c-news__text { overflow-wrap: anywhere; }
.c-news__meta { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted-text); font-size: 0.875rem; }
.c-news__meta > * + *::before { content: "·"; margin: 0 8px; }
.c-news__cta, .c-deadline__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.c-news__cta:hover, .c-deadline__cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.c-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.c-filter {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  cursor: pointer;
}
.c-filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.c-disclaimer {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--border);
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.875rem;
}

.c-sources { color: var(--muted-text); font-size: 0.9375rem; }
.c-sources a { color: var(--accent); }

/* COMP-011 Deadline Card ------------------------------------------------ */

.c-deadlines { display: grid; gap: 16px; }
@media (min-width: 1100px) { .c-deadlines--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.c-deadline {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.c-deadline__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 72px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  line-height: 1;
}
.c-deadline__day { font-size: 1.75rem; font-weight: 650; }
.c-deadline__month { margin-top: 4px; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.1em; }
.c-deadline__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-deadline__when { color: var(--accent); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.c-deadline__summary { font-weight: 600; color: var(--primary-dark); }
.c-deadline__count { color: var(--muted-text); font-size: 0.9375rem; }
.c-deadline__group { margin-top: 12px; }
.c-deadline__group h3 { font-size: 0.9375rem; color: var(--text); }
.c-deadline__group a { display: inline-flex; gap: 6px; min-height: 44px; align-items: center; font-size: 0.9375rem; }

/* COMP-012 Location Block ---------------------------------------------- */

.c-location { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.c-location__kind {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.c-location__title { font-size: 1.25rem; }
.c-location__address { font-style: normal; }
.c-location__hours { color: var(--muted-text); }
.c-location__map {
  margin-top: 12px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.c-location__map iframe { width: 100%; height: 100%; border: 0; }
/* the Google map loads only on request, so no third-party cookie is set before the visitor asks for it */
.c-location__map-load {
  display: grid;
  place-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 0;
  background: none;
  color: var(--primary-dark);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.c-location__map-load b { color: var(--accent); }
.c-location__map-load small { color: var(--muted-text); font-size: 0.875rem; }
.c-location__links { display: flex; flex-wrap: wrap; gap: 0 20px; }

.c-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.c-areas li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  color: var(--primary-dark);
}

/* COMP-013 Final CTA ---------------------------------------------------- */

.c-final-cta { padding: var(--section-y) 0; background: var(--primary); color: #fff; }
.c-final-cta__inner { display: grid; gap: 24px; align-items: center; }
.c-final-cta__title { color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.c-final-cta__text { margin-top: 8px; color: #D9E1EC; }
.c-final-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1100px) {
  .c-final-cta__inner { grid-template-columns: 1fr auto; }
}

/* COMP-014 Contact Form ------------------------------------------------- */

.c-form { display: grid; gap: 20px; padding: 24px; }
@media (min-width: 600px) { .c-form { padding: 32px; } }
.c-form__field { display: flex; flex-direction: column; gap: 6px; }
.c-form label { font-weight: 600; color: var(--primary-dark); }
.c-form input[type="text"], .c-form input[type="email"], .c-form input[type="tel"], .c-form input[type="password"], .c-form input[type="date"], .c-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #A9B4C3;
  border-radius: var(--radius);
  background: var(--surface);
}
.c-form textarea { min-height: 160px; resize: vertical; }
.c-form [aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 1px #B42318; }
.c-form__error { color: #B42318; font-size: 0.9375rem; }
.c-form__error:empty { display: none; }
.c-form__consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; color: var(--text) !important; }
.c-form__consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
.c-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.c-form__note { color: var(--muted-text); font-size: 0.9375rem; }
.c-form__optional { font-weight: 400; color: var(--muted-text); }

.c-contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1100px) { .c-contact { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.c-contact__ways { display: grid; gap: 16px; padding: 24px; }
.c-contact__ways dt { color: var(--muted-text); font-size: 0.875rem; }
.c-contact__ways dd { margin: 0; font-weight: 600; }
.c-contact__ways a { display: inline-flex; align-items: center; min-height: 44px; }

/* COMP-015 State Messaging ---------------------------------------------- */

.c-state {
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.c-state--error { border-color: #F1B8B2; background: #FEF3F2; color: #8A1C12; }
.c-state--success { border-color: #A6D8B8; background: #EEF8F1; color: #155B32; }
.c-state--loading { color: var(--muted-text); }
.c-state a { color: inherit; font-weight: 600; }

.c-skeleton {
  height: 168px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--soft) 0%, #F2F5F9 50%, var(--soft) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .c-skeleton { animation: none; } }

/* COMP-016 Situation Detail ------------------------------------------- */

.c-case__back { margin-bottom: 20px; }
.c-case__back .textlink { gap: 8px; }
.c-case__cols { display: grid; gap: 32px; }
@media (min-width: 1100px) { .c-case__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.c-case__col { padding-top: 20px; border-top: 2px solid var(--primary); }
.c-case__label { font-size: 1.125rem; margin-bottom: 16px; }
.c-case__list { display: grid; gap: 12px; }
.c-case__list li { position: relative; padding-left: 20px; }
.c-case__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.c-case__actions { margin: 40px 0 16px; }

/* Scadenziario: months and past years ---------------------------------- */

.c-months, .c-years { border-top: 1px solid var(--border); }
.c-month, .c-year { border-bottom: 1px solid var(--border); }
.c-month__head, .c-year__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
}
.c-month__head::-webkit-details-marker, .c-year__head::-webkit-details-marker { display: none; }
.c-month__head::after, .c-year__head::after {
  content: "+";
  flex: none;
  margin-left: auto;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--accent);
}
.c-month[open] > .c-month__head::after, .c-year[open] > .c-year__head::after { content: "\2212"; }
.c-month__name { font-weight: 600; color: var(--primary-dark); }
.c-month__count { color: var(--muted-text); font-size: 0.9375rem; }
.c-month__head:hover .c-month__name, .c-year__head:hover { color: var(--accent); }
.c-month--empty > .c-month__head { cursor: default; }
.c-month--empty > .c-month__head::after { content: none; }
.c-month__list { padding: 8px 0 24px; }
.c-year__head { font-size: 1.25rem; font-weight: 650; color: var(--primary-dark); min-height: 64px; }
.c-year__months { padding: 0 0 24px 16px; }
.c-year__months .c-month:last-child { border-bottom: 0; }

/* honeypot field of the contact form: off screen, never shown to people */
.c-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Servizi: area sections ------------------------------------------------ */

.c-area { display: grid; gap: 24px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border); }
.c-area:first-child { border-top: 0; padding-top: 0; }
.c-area__media { width: 120px; }
.c-area__title { font-size: 1.625rem; }
.c-area__list { display: grid; gap: 8px; margin-top: 16px; }
.c-area__list li { position: relative; padding-left: 20px; }
.c-area__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; background: var(--accent); }
.c-area__text { margin-top: 16px; max-width: 68ch; }
.c-area__text + .c-area__text { margin-top: 12px; }
.c-area__text strong { color: var(--primary-dark); font-weight: 600; }
@media (min-width: 600px) {
  .c-area { grid-template-columns: 180px 1fr; gap: 40px; }
  .c-area__media { width: 180px; }
}

/* Lo Studio: relationship blocks ---------------------------------------- */

.c-relation { display: grid; gap: 24px; }
@media (min-width: 1100px) { .c-relation { grid-template-columns: 1fr 1fr; gap: 48px; } }
.c-relation h2 { font-size: 1.5rem; }
.c-relation p { margin-top: 12px; color: var(--muted-text); }

/* Reviews --------------------------------------------------------------- */

.c-reviews__nav { display: flex; gap: 8px; }
.c-reviews__nav button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.125rem;
  cursor: pointer;
}
.c-reviews__nav button:disabled { opacity: 0.4; cursor: default; }
.c-reviews__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 360px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.c-reviews__rail::-webkit-scrollbar { display: none; }
.c-reviews__rail li { scroll-snap-align: start; }
.c-review { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 24px; }
.c-review p { font-size: 1rem; }
.c-review footer { margin-top: auto; color: var(--primary-dark); font-weight: 650; }
.c-reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Floating WhatsApp ----------------------------------------------------- */

.c-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-hover);
}
.c-whatsapp:hover { background: var(--primary-dark); }

/* Legal pages ----------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.375rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.125rem; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose a { overflow-wrap: anywhere; }
