/* Font self-hosted (from Google Fonts, OFL) — latin + latin-ext.
   Elimina le richieste render-blocking a fonts.googleapis.com /
   fonts.gstatic.com segnalate da Lighthouse. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/newsreader-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/newsreader-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette */
  --lilla: #C9B4D6;
  --rosa: #E8D6DC;
  --avorio: #FAF8F6;
  --tortora: #D8D0CC;
  --malva: #75536F;
  --bianco: #ffffff;
  --prugna: #443347;
  --grafite: #322b34;
  --perla: #efe3ee;
  /* Tema */
  --bg: var(--avorio);
  --surface: var(--bianco);
  --band: color-mix(in srgb, var(--rosa) 42%, var(--avorio));
  --line: var(--tortora);
  --heading: var(--prugna);
  --ink: var(--grafite);
  /* --muted scurito da #6B7280 a #59616e per WCAG AA (4.5:1)
     su sfondi tinta rosa/lilla/perla (hero, sage, patho-wide, cards). */
  --muted: #59616e;
  --primary: var(--malva);
  --on-primary: var(--bianco);
  --accent: var(--malva);
  --decorative: var(--lilla);
  --hero-start: var(--avorio);
  --hero-end: color-mix(in srgb, var(--rosa) 60%, var(--avorio));
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #231d25;
    --surface: #2e2731;
    --band: #3a3040;
    --line: #4e4254;
    --heading: #e6cfe8;
    --accent: var(--lilla);
    --ink: #f5eef3;
    --muted: #b9adbb
  }
}

:root[data-theme="dark"] {
  --bg: #231d25;
  --surface: #2e2731;
  --band: #3a3040;
  --line: #4e4254;
  --heading: #e6cfe8;
  --accent: var(--lilla);
  --ink: #f5eef3;
  --muted: #b9adbb
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Figtree, system-ui, sans-serif
}

h1,
h2,
h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  margin: 0
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem)
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: .6em
}

h3 {
  font-size: 1.3rem;
  margin-bottom: .4em
}

p {
  margin: 0 0 1em;
  max-width: 62ch
}

a {
  color: inherit
}

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

@supports not selector(:focus-visible) {
  :focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--surface);
  color: var(--heading);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top .15s
}

.skip:focus {
  top: 12px
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px
}

section {
  padding: 64px 0
}

.sage {
  background: var(--band)
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px)
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px
}

.brand {
  font-family: Newsreader, serif;
  font-size: 1.15rem;
  color: var(--heading);
  text-decoration: none;
  line-height: 1.1
}

.brand small {
  display: block;
  font: 400 .68rem Figtree, sans-serif;
  color: var(--muted);
  letter-spacing: .04em
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .88rem
}

nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 2px
}

nav a:hover {
  color: var(--heading)
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  font: inherit
}

.nav-toggle .icon-close {
  display: none
}

header[data-nav="open"] .nav-toggle .icon-open {
  display: none
}

header[data-nav="open"] .nav-toggle .icon-close {
  display: block
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  font-family: inherit
}

nav a.btn {
  color: var(--on-primary);
  padding: 8px 18px
}

@media(max-width:820px) {
  .nav-toggle {
    display: inline-flex;
    flex: none
  }

  header .wrap {
    position: relative
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 40px rgb(68 51 71 / .16)
  }

  header[data-nav="open"] nav {
    display: flex
  }

  nav a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 1rem
  }

  nav a:not(.btn):hover {
    background: color-mix(in srgb, var(--rosa) 40%, var(--surface))
  }

  nav a.btn {
    text-align: center;
    margin-top: 4px;
    padding: 12px 18px
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  background: var(--hero-end)
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-start) 0%, color-mix(in srgb, var(--hero-start) 78%, transparent) 42%, transparent 68%)
}

.hero-copy {
  max-width: 26rem
}

@media(max-width:860px) {
  .hero {
    padding: 0 0 48px;
    background: var(--hero-start)
  }

  .hero-bg {
    position: relative;
    height: min(76vw, 340px);
    object-position: 68% center
  }

  .hero::after {
    display: none
  }

  .hero .wrap {
    padding-top: 40px
  }
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 1.2em 0 1.8em
}

.hero .wrap {
  position: relative;
  z-index: 1
}

.hero h1 {
  max-width: 14ch
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2em;
  padding: 0;
  list-style: none
}

.tags li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .88rem;
  color: var(--muted)
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start
}

@media(max-width:760px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 28px
  }

  section {
    padding: 48px 0
  }
}

.about--method .method__intro {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 48px;
  align-items: center
}

.method__media {
  margin: 0;
  justify-self: end;
  max-width: 320px;
  width: 100%
}

.method__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--rosa)
}

.method__media figcaption {
  margin-top: 12px;
  font-family: Newsreader, serif;
  font-style: italic;
  font-size: .98rem;
  color: var(--muted);
  text-align: center
}

.method__copy h2 {
  margin-bottom: .5em
}

.method__copy p:not(.eyebrow) {
  line-height: 1.8;
  color: var(--ink)
}

.method__copy p:last-child {
  margin-bottom: 0
}

.method__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px
}

.method__principles article {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--lilla) 26%, var(--surface))
}

.method__principles article:nth-child(2) {
  background: color-mix(in srgb, var(--rosa) 55%, var(--surface))
}

.method__principles article:nth-child(3) {
  background: color-mix(in srgb, var(--perla) 60%, var(--surface))
}

.method__principles span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.5rem;
  line-height: 1
}

.method__principles h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 500
}

.method__principles p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted)
}

@media(max-width:760px) {
  .about--method .method__intro {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .method__media {
    justify-self: start;
    max-width: 280px
  }

  .method__principles {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .method__media img {
    aspect-ratio: 5 / 3
  }
}

.perche {
  background: color-mix(in srgb, var(--lilla) 18%, var(--surface));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.perche h2 {
  max-width: 24ch;
  margin-bottom: 32px
}

.perche-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center
}

.perche-media {
  margin: 0
}

.perche-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  background: var(--rosa)
}

.perche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px
}

.perche-item {
  border-top: 2px solid var(--decorative);
  padding-top: 20px
}

.perche-ico {
  display: block;
  color: var(--primary);
  margin-bottom: 12px
}

.perche-item h3 {
  margin: 0 0 6px
}

.perche-item p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem
}

@media(max-width:760px) {
  .perche-layout {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .perche-media img {
    aspect-ratio: 16 / 10
  }

  .perche-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px
}

.card ul {
  margin: 0;
  padding-left: 1.1em
}

.card li {
  margin: .35em 0
}

.servizi-grid {
  grid-template-columns: repeat(2, 1fr)
}

.servizio-card {
  padding: 0;
  overflow: hidden;
  background: var(--bianco);
  box-shadow: none
}

.servizio-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  background: var(--rosa)
}

.servizio-body {
  padding: 22px 24px 26px
}

.servizio-body h3 {
  margin: 0 0 6px
}

.servizio-body p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem
}

@media(max-width:640px) {
  .servizi-grid {
    grid-template-columns: 1fr
  }
}

.patho-sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 70ch
}

.patho-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.patho-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px
}

.patho-card h3 {
  margin: 0 0 8px
}

.patho-card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem
}

.patho-ico {
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 14px
}

.patho-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: color-mix(in srgb, var(--lilla) 42%, var(--surface));
  border: 1px solid var(--malva);
  color: var(--ink)
}

.patho-wide h3 {
  color: var(--heading)
}

.patho-wide p {
  color: var(--muted);
  max-width: 70ch
}

.patho-wide .patho-ico {
  margin-bottom: 0;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--malva);
  color: #fff
}

@media(max-width:640px) {
  .patho-grid {
    grid-template-columns: 1fr
  }

  .patho-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0
  }

  .patho-wide .patho-ico {
    margin-bottom: 14px
  }
}

.timeline {
  list-style: none;
  padding: 32px 28px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px
}

.timeline li {
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23.5px;
  left: calc(50% + 24px);
  right: calc(-50% - 4px);
  height: 1px;
  background: var(--line)
}

.timeline-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rosa) 55%, var(--surface));
  border: 1px solid var(--line);
  color: var(--malva);
  margin-bottom: 16px
}

.timeline h3 {
  margin: 0 0 4px
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem
}

@media(max-width:760px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 26px 22px
  }

  .timeline li {
    display: block;
    text-align: left;
    padding: 0 0 28px 68px;
    min-height: 48px
  }

  .timeline li:last-child {
    padding-bottom: 0
  }

  .timeline-ico {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0
  }

  .timeline li:not(:last-child)::after {
    top: 48px;
    bottom: 0;
    left: 23.5px;
    right: auto;
    width: 1px;
    height: auto
  }
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  max-width: 760px
}

summary {
  cursor: pointer;
  font-family: Newsreader, serif;
  font-size: 1.25rem;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
  min-height: 44px
}

summary::-webkit-details-marker {
  display: none
}

summary::after {
  content: "+";
  color: var(--accent);
  transition: transform .2s
}

details[open] summary::after {
  transform: rotate(45deg)
}

details p {
  margin: .8em 0 0;
  color: var(--muted)
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start
}

.faq-intro h2 {
  margin-bottom: .4em
}

.faq-intro p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem
}

.faq-list details {
  max-width: none
}

.faq-list details:first-child {
  border-top: 1px solid var(--line)
}

@media(max-width:760px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px
  }
}

.colleghi {
  background: color-mix(in srgb, var(--lilla) 22%, var(--surface));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.colleghi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start
}

.colleghi-intro p {
  max-width: 46ch
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.2em;
  color: var(--primary);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px
}

.text-cta:hover {
  color: var(--heading)
}

.text-cta svg {
  flex: none
}

.colleghi-media {
  margin: 28px 0 0
}

.colleghi-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 68%;
  border-radius: 18px;
  background: var(--rosa)
}

@media(max-width:760px) {
  .colleghi-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .colleghi-media img {
    aspect-ratio: 16 / 10
  }
}

.titoli-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px
}

.titoli-card h3 {
  margin: 0 0 16px
}

.titoli-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0
}

.titoli-list li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line)
}

.titoli-list li:first-child {
  padding-top: 0
}

.titoli-list strong {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4
}

.titoli-list small {
  display: block;
  margin-top: 2px;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted)
}

.titoli-albo {
  margin: 16px 0 0;
  font-size: .9rem;
  color: var(--muted)
}

.competenze-title {
  margin: 18px 0 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent)
}

.competenze-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.competenze-list li {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--perla) 55%, var(--surface));
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .88rem;
  color: var(--heading)
}

.collab {
  background: color-mix(in srgb, var(--perla) 55%, var(--surface));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.collab h2 {
  margin-bottom: 24px;
  max-width: 22ch
}

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px
}

.collab-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px
}

.collab-item {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 14px;
  padding: 28px 20px;
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center
}

.collab-item p {
  margin: 0;
  font-weight: 500;
  color: var(--ink)
}

.collab-ico {
  color: var(--accent);
  display: grid;
  place-items: center
}

.collab-divider {
  position: relative;
  min-height: 100%;
  min-width: 44px
}

.collab-divider::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--decorative) 35%, transparent)
}

.collab-note {
  margin: 0;
  color: var(--muted);
  max-width: 70ch
}

@media(max-width:640px) {
  .collab-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .collab-divider {
    min-height: 44px;
    min-width: 0;
    width: 100%
  }
}

.contact {
  position: relative;
  overflow: hidden;
  --heading: var(--prugna);
  --ink: var(--grafite);
  --muted: #59616e;
  --surface: #ffffff;
  --line: var(--tortora);
  --bg: var(--avorio);
  --primary: var(--malva);
  --on-primary: #ffffff;
  background: color-mix(in srgb, var(--rosa) 58%, var(--avorio));
  border-top: 1px solid var(--line);
  color: var(--ink)
}

.contact-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(620px, 46%);
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: .32;
  filter: saturate(.55) contrast(.96) brightness(1.05);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 97%);
  mask-image: linear-gradient(to right, #000 58%, transparent 97%)
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rosa) 58%, var(--avorio) 42%) 0, color-mix(in srgb, var(--rosa) 58%, var(--avorio) 18%) 32%, transparent 58%);
  pointer-events: none
}

.contact-info {
  text-shadow: 0 1px 0 rgb(255 255 255 / .55)
}

.contact-info .mode-ico,
.contact-info .contact-pill {
  text-shadow: none
}

.contact-grid {
  position: relative;
  z-index: 1;
  align-items: center
}

.contact h2 {
  color: var(--heading)
}

.contact-sub {
  color: var(--muted);
  margin-top: -.4em
}

.contact-info p,
.contact-info li {
  color: var(--ink)
}

.contact-info a:not(.contact-pill):not(.btn) {
  color: var(--primary);
  text-underline-offset: 3px
}

.modes {
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
  display: grid;
  gap: 4px
}

.modes li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent)
}

.modes li:last-child {
  border-bottom: 0
}

.modes li>span:last-child {
  display: grid;
  gap: 1px
}

.modes strong {
  font-weight: 600;
  color: var(--heading)
}

.modes small {
  font-size: .88rem;
  color: var(--muted)
}

.mode-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary)
}

.contact-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: 0 16px 40px rgb(68 51 71 / .10)
}

.contact-card label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px
}

.form-note {
  margin: 0;
  font-size: .85rem;
  color: var(--muted)
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted)
}

.form-status {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  min-height: 1.4em
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit
}

.contact-card textarea {
  min-height: 118px;
  resize: vertical
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: var(--muted);
  opacity: 1
}

.contact-card input:focus,
.contact-card textarea:focus,
.contact-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent)
}

.contact-card .btn {
  background: var(--primary);
  color: var(--on-primary);
  justify-self: start;
  margin-top: 4px
}

.contact-card .btn:hover {
  filter: brightness(.96)
}

.contact :focus-visible {
  outline-color: var(--primary)
}

@media(max-width:760px) {
  .contact-bg {
    width: 100%;
    opacity: .18;
    filter: saturate(.55) contrast(.96) brightness(1.05);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 95%)
  }

  .contact-card {
    padding: 22px
  }
}

form {
  display: grid;
  gap: 12px
}

label {
  font-size: .85rem;
  color: var(--muted)
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit
}

textarea {
  min-height: 110px;
  resize: vertical
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1em 0 0
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 20px 8px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  background: color-mix(in srgb, var(--surface) 60%, transparent)
}

.contact-pill:hover {
  background: var(--primary);
  color: var(--on-primary)
}

.contact-pill svg {
  flex: none;
  display: block
}

footer {
  padding: 32px 24px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  text-wrap: balance
}

@media(max-width:760px) {
  footer {
    display: grid;
    gap: 6px;
    padding: 40px 24px 44px
  }

  footer span {
    display: block
  }
}