/* Camilla Di Costanzo · Brow artist */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5eee8;        /* Avorio, fondo */
  --tint: #ebdcd1;         /* Avorio + Nude, fasce chiare */
  --nude: #d8b9a6;         /* Nude, pelle */
  --ink: #221c1a;          /* Inchiostro, logo e testi */
  --ink-soft: #6b4a3d;     /* Cacao, primario */
  --pigment: #6b4a3d;      /* Cacao */
  --rosa: #b7837a;         /* Rosa antico, accento */
  --rosa-text: #a26c63;    /* Rosa antico scurito: 3:1 sui titoli grandi su avorio */
  --line: rgb(34 28 26 / 0.18);
  --on-ink: #f5eee8;
  --on-ink-soft: #d8b9a6;
  --line-on-ink: rgb(245 238 232 / 0.22);

  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--nude); color: var(--ink); }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, .statement {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 1.5rem + 6.6vw, 6rem); line-height: 0.98; }
h2 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem); line-height: 1.02; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rosa-text); }
.band--tint h2 em, .band--nude h2 em { color: var(--pigment); }
.band--ink h2 em { color: var(--rosa); }

.label {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}
p { text-wrap: pretty; }
.band--nude, .band--nude p, .band--nude li { color: var(--ink); }
.nowrap { white-space: nowrap; }

.lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--pigment);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--ink :focus-visible { outline-color: var(--on-ink); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* Links */
.link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 0.15em;
  transition: background-size 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { background-size: 0% 1px; background-position: 100% 100%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  background: var(--pigment);
  color: var(--paper);
  font: 500 1rem/1.2 var(--body);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 1.2em; height: 1.2em; flex: none; }
.btn--small { min-height: 2.75rem; padding: 0.55rem 1.25rem; font-size: 0.95rem; }
.btn--light { background: var(--on-ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); }
  .btn--light:hover { background: #fff; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { width: clamp(14rem, 34vw, 20rem); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem clamp(0.9rem, 2vw, 1.9rem); }
.nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.975rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 0.55rem);
  background-size: 0% 1px;
  transition: background-size 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav ul a:hover { background-size: 100% 1px; }
}
.menu-btn { display: none; }

@media (max-width: 61.99em) {
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.25rem;
    background: none;
    border: 0;
    color: var(--ink);
    font: 500 1rem/1 var(--body);
    cursor: pointer;
  }
  .js .nav {
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .js .nav[data-open] { visibility: visible; opacity: 1; transition: opacity 240ms var(--ease-out); }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a {
    display: flex;
    min-height: 3.75rem;
    font-family: var(--display);
    font-weight: 500;
    font-size: 2.2rem;
    border-bottom: 1px solid var(--line);
    background-image: none;
  }
  .js .nav .btn { min-height: 3.25rem; font-size: 1rem; }
  html:not(.js) .site-header__in { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav { flex-wrap: wrap; }
}

/* Hero */
.hero { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem); }
.hero__in { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__text { display: grid; gap: 1.5rem; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.5rem; }
.hero__fact {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.975rem;
  width: 100%;
  max-width: 34rem;
  text-wrap: balance;
}
.hero__media { overflow: hidden; border-radius: 3px; background: var(--nude); }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }

@media (min-width: 56em) {
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: calc(100svh - var(--header-h) - 10rem); }
  .hero__media img { aspect-ratio: 4 / 4.9; }
}
@media (max-width: 55.99em) {
  .hero__actions .btn { width: 100%; }
  .hero__fact span { display: block; }
  .hero__fact .sep { display: none; }
}

/* Bands */
.band { padding-block: var(--band); }
.band--nude { background: var(--nude); }
.band--tint { background: var(--tint); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink .lead { color: var(--on-ink-soft); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--ink-soft); max-width: 36em; }
@media (min-width: 56em) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
}

.plain { display: grid; gap: 0.55rem; }
.plain li { position: relative; padding-left: 1.4rem; }
.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.75rem;
  height: 1px;
  background: currentColor;
}

/* About */
.about__in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.about h2 { max-width: 11em; }
.about__body { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.about__manifesto { display: grid; gap: 1.1rem; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.55; max-width: 32em; }
.sign { margin-top: 0.75rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); line-height: 1.1; }
.about__path h3 { margin-bottom: 1rem; }
.path { border-top: 1px solid var(--line); }
.path li { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.path__n { font-family: var(--display); font-weight: 500; font-size: 2.1rem; line-height: 1; font-variant-numeric: lining-nums; }
@media (min-width: 56em) {
  .about__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 5rem; align-items: end; }
}

/* Services */
.rows { border-top: 1px solid var(--line); }
.rows li {
  display: grid;
  gap: 0.6rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.rows h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.35rem); line-height: 1.1; letter-spacing: -0.005em; }
.rows p { color: var(--ink-soft); max-width: 34em; }
.rows .rows__meta { color: var(--pigment); }
@media (min-width: 56em) {
  .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.5fr); gap: 3rem; align-items: baseline; }
  .rows .rows__meta { justify-self: end; text-align: right; }
}

/* Method */
.method__in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.method__head { display: grid; gap: 1.25rem; align-content: start; }
.method__head p { color: var(--ink-soft); max-width: 28em; }
.steps { border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.steps__n { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2.2rem; line-height: 0.9; color: var(--pigment); font-variant-numeric: lining-nums; }
.map { width: min(100%, 21rem); height: auto; margin-top: 1.5rem; color: var(--pigment); opacity: 0.7; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); max-width: 34em; }
@media (min-width: 56em) {
  .method__in { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5rem; }
  .method__head { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* Results */
.pair { display: grid; gap: 0.75rem; }
.pair__item { position: relative; overflow: hidden; border-radius: 3px; background: var(--nude); }
.pair__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
}
.pairs { display: grid; gap: 2rem; margin-top: 2rem; }
.results__more { margin-top: 2rem; }
@media (min-width: 47.5em) {
  .pair { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pair__item img { aspect-ratio: 4 / 3; }
}
@media (min-width: 56em) {
  .pairs { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
  .pair--small { gap: 0.5rem; }
  .pair--small .tag { left: 0.5rem; top: 0.5rem; }
}

/* FAQ */
.faq__in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.faq__head { display: grid; gap: 1.25rem; align-content: start; }
.faq__head p { color: var(--ink-soft); max-width: 26em; }
.faq__list { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding-block: 1rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 260ms var(--ease-out);
}
details[open] summary::after { transform: rotate(45deg); }
details::details-content {
  height: 0;
  overflow: hidden;
  transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete;
}
details[open]::details-content { height: auto; }
.faq__a { display: grid; gap: 0.9rem; padding-bottom: 1.6rem; color: var(--ink-soft); max-width: 38em; }
@media (min-width: 56em) {
  .faq__in { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5rem; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* Contact */
.contact__in { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.contact h2 { font-size: clamp(2.9rem, 1.5rem + 5.6vw, 5.5rem); line-height: 0.98; margin-bottom: 1.5rem; }
.contact .lead { margin-bottom: 2.25rem; }
.facts { display: grid; align-content: start; border-top: 1px solid var(--line-on-ink); }
.facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line-on-ink); }
.facts dt { color: var(--on-ink-soft); padding-top: 0.3em; }
.facts dd { line-height: 1.55; }
.facts dd .link { display: inline-block; margin-top: 0.5rem; }
@media (min-width: 56em) {
  .contact__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; }
}
@media (max-width: 55.99em) {
  .contact .btn { width: 100%; }
}

/* Footer */
.site-footer { padding-block: 2.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer__in { display: grid; gap: 1.25rem; justify-items: start; }
.site-footer img { width: 13rem; height: auto; }
@media (min-width: 56em) {
  .site-footer__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; }
}

/* Fixed WhatsApp bar (mobile) */
.wa-bar {
  position: fixed;
  z-index: 40;
  inset: auto 0 0 0;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 260ms var(--ease-drawer), visibility 0s linear 260ms;
}
.wa-bar[hidden] { display: none; }
.wa-bar .btn { width: 100%; }
.wa-bar.is-on { transform: none; visibility: visible; transition: transform 360ms var(--ease-drawer); }
@media (min-width: 56em) { .wa-bar { display: none; } }
@media (max-width: 55.99em) { .site-footer { padding-bottom: 7rem; } }

/* Motion: one entrance in the hero, one reveal on the result */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: enter 800ms var(--ease-out) both; }
  [data-enter]:nth-child(2) { animation-delay: 70ms; }
  [data-enter]:nth-child(3) { animation-delay: 140ms; }
  [data-enter]:nth-child(4) { animation-delay: 210ms; }
  .hero__media { animation: unveil 1100ms var(--ease-out) 120ms both; }
  .hero__media img { animation: settle 1500ms var(--ease-out) 120ms both; }

  .js .pair__item--after img { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .pair__item--after.is-in img { clip-path: inset(0 0 0 0); }

  .js .map path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-in-out); }
  .js .map path:nth-child(n+2) { transition-delay: 120ms; }
  .js .map path:nth-child(n+5) { transition-delay: 320ms; }
  .js .map .map__brow { transition-delay: 700ms; transition-duration: 1600ms; }
  .js .map.is-in path { stroke-dashoffset: 0; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Privacy page */
.doc { padding-block: clamp(3rem, 7vw, 5rem); }
.doc .wrap { max-width: 46rem; display: grid; gap: 1.1rem; }
.doc h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4rem); margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.9rem; margin-top: 1.5rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .note { padding: 1rem 1.25rem; background: var(--nude); color: var(--ink); border-radius: 3px; }


/* ---------- Art direction pass ---------- */
body { overflow-x: clip; }
@media (min-width: 56em) { body { font-size: 1.125rem; } }

/* Cacao as a real colour field */
.band--cacao { background: var(--pigment); color: var(--paper); }
.band--cacao p, .band--cacao li, .band--cacao .label { color: var(--paper); }
.band--cacao h2 em, .band--cacao .sign { color: var(--nude); }
.band--cacao .path, .band--cacao .path li { border-color: rgb(245 238 232 / 0.28); }
.band--cacao .path__n { color: var(--nude); }
.band--cacao :focus-visible { outline-color: var(--paper); }
.about h2 { font-size: clamp(2.7rem, 1.4rem + 5.2vw, 5.4rem); max-width: 10.5em; }

/* Hero: the portrait owns the right edge of the screen */
@media (min-width: 56em) {
  .hero { padding-block: 0; }
  .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: 0; align-items: stretch; gap: clamp(2.5rem, 5vw, 5rem); }
  .hero__text { align-content: center; padding-block: clamp(3rem, 7vw, 6rem); }
  .hero__media { border-radius: 0; margin-right: calc((100vw - min(100vw, 78rem)) / -2 - var(--gutter)); height: calc(100svh - var(--header-h) - 1px); min-height: 34rem; max-height: 60rem; }
  .hero__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 42% 18%; }
  h1 { font-size: clamp(4rem, 1rem + 7vw, 7rem); }
}
@media (max-width: 55.99em) {
  .hero { padding-bottom: 0; }
  .hero__media { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); }
  .hero__media img { aspect-ratio: 4 / 4.6; object-position: 50% 10%; }
}

/* Treatments: bigger names, rows answer the pointer */
.rows h3 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1.05; }
.rows li { position: relative; transition: padding 320ms var(--ease-out); }
.rows li::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--tint); opacity: 0; transition: opacity 260ms ease; z-index: -1; }
.services { position: relative; z-index: 0; }
@media (hover: hover) and (pointer: fine) {
  .rows li:hover::before { opacity: 1; }
}
@media (min-width: 56em) {
  .rows li { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.4fr); align-items: center; padding-block: clamp(1.75rem, 3vw, 2.75rem); }
}

/* Method: the project drawing, then five steps on one line */
.method__in { display: block; }
.map { display: block; width: 100%; height: auto; margin: 0 0 clamp(2.5rem, 5vw, 4rem); color: var(--pigment); opacity: 1; }
.map path { vector-effect: non-scaling-stroke; }
.map__guides { opacity: 0.38; }
.map__brow { stroke-width: 1.5; }
.steps__n { font-size: 3.2rem; }
@media (min-width: 62em) {
  .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--line); }
  .steps li { display: block; position: relative; border-bottom: 0; padding-block: 2rem 0; }
  .steps li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--pigment); }
  .steps__n { display: block; margin-bottom: 1.25rem; font-size: 4.25rem; }
  .steps h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
  .steps p { font-size: 1rem; }
}

/* Results on a quiet ground, photos first */
.pair__item, .hero__media { border-radius: 0; }
.tag { border-radius: 0; left: 0; top: 0; padding: 0.55rem 0.9rem; }
.pair--small .tag { left: 0; top: 0; }

/* FAQ: larger questions */
summary { font-size: clamp(1.55rem, 1.3rem + 0.9vw, 2rem); min-height: 4.75rem; }


@media (prefers-reduced-motion: no-preference) {
  .js .map .map__dot { opacity: 0; transition: opacity 500ms ease 1500ms; }
  .js .map.is-in .map__dot { opacity: 1; }
  .js .map .map__guides path { transition-delay: 0ms; transition-duration: 1200ms; }
}



/* ---------- Added sections ---------- */
/* Per chi è */
.who__list { display: grid; border-top: 1px solid var(--line); }
.who__list li { display: grid; gap: 1rem; align-content: start; justify-items: start; padding-block: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.who__list h3 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.08; color: var(--ink); }
.who__list p { color: var(--ink-soft); max-width: 30em; }
@media (min-width: 56em) {
  .who__list { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .who__list li { border-bottom: 0; padding-inline: 2.5rem; border-left: 1px solid var(--line); grid-template-rows: auto 1fr auto; min-height: 19rem; }
  .who__list li:first-child { padding-left: 0; border-left: 0; }
  .who__list li:last-child { padding-right: 0; }
}

/* Treatments on tint: the hover fill moves to avorio */
.band--tint .rows li::before { background: var(--paper); }
.feature { display: grid; gap: clamp(2rem, 4vw, 3rem); padding: clamp(1.75rem, 4vw, 3.5rem); margin-bottom: clamp(1rem, 2vw, 1.5rem); background: var(--paper); }
.feature__main { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.feature h3 { font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5rem); line-height: 0.98; letter-spacing: -0.01em; }
.feature__main p { color: var(--ink-soft); max-width: 30em; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.5; }
.feature__list h4 { margin: 0 0 1rem; color: var(--pigment); }
.feature__list ul { border-top: 1px solid var(--line); }
.feature__list li { position: relative; padding: 0.9rem 0 0.9rem 2rem; border-bottom: 1px solid var(--line); }
.feature__list li::before { content: ""; position: absolute; left: 0.15rem; top: 1.4rem; width: 0.95rem; height: 0.5rem; border-left: 1.5px solid var(--pigment); border-bottom: 1.5px solid var(--pigment); transform: rotate(-45deg); transform-origin: left bottom; }
@media (min-width: 56em) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center; }
}
@media (max-width: 55.99em) { .feature .btn { width: 100%; } }

/* Guarigione */
.band--nude .section-head p { color: var(--ink); }
.band--nude h2 em { color: var(--ink); }
.timeline { border-top: 1px solid rgb(34 28 26 / 0.35); }
.timeline li { display: grid; gap: 0.45rem; padding: 1.5rem 0 1.5rem 1.75rem; position: relative; border-bottom: 1px solid rgb(34 28 26 / 0.2); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 1.85rem; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline h3 { font-family: var(--display); font-weight: 500; font-size: 1.85rem; line-height: 1.1; }
.timeline p { max-width: 32em; }
.timeline .label { color: var(--ink); }
@media (min-width: 62em) {
  .timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 2rem; }
  .timeline li { padding: 2rem 0 0; border-bottom: 0; align-content: start; }
  .timeline li::before { top: -4px; }
  .timeline p:not(.label) { font-size: 1rem; }
}

/* Map on request */
.mapbox { margin-top: clamp(3rem, 6vw, 5rem); border: 1px solid var(--line-on-ink); width: 100%; height: 24rem; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56em) { .mapbox { height: clamp(24rem, 36vw, 32rem); } }
.mapbox__ask { display: grid; gap: 1.25rem; place-content: center; justify-items: center; text-align: center; padding: 2rem var(--gutter); }
.mapbox__addr { font-family: var(--display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; }
.mapbox__note { color: var(--on-ink-soft); font-size: 0.95rem; max-width: 30em; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.35) sepia(0.12); }


/* ---------- Motion pass ---------- */
.btn .ico { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ico { transform: rotate(-8deg) scale(1.1); }
  .pair__item img { transition: clip-path 1100ms var(--ease-in-out), transform 900ms var(--ease-out); }
  .pair__item:hover img { transform: scale(1.035); }
  .who__list li .link, .results__more .link { transition: background-size 320ms var(--ease-out), letter-spacing 320ms var(--ease-out); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Headline: each word rises out of its own line */
  h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.1em 0.08em 0.16em; margin: -0.1em -0.08em -0.16em; }
  h1 .w > span { display: inline-block; animation: rise 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + 80ms); }
  .hero__text [data-enter]:nth-child(2) { animation-delay: 520ms; }
  .hero__text [data-enter]:nth-child(3) { animation-delay: 620ms; }
  .hero__text [data-enter]:nth-child(4) { animation-delay: 720ms; }

  /* Sections arrive as you reach them */
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 800ms ease, transform 1000ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal="title"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-out); }
  .js [data-reveal="title"] > * { }
  .js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(-10% -5% -15% -5%); }

  /* The thread of the method and of the healing timeline draws itself */
  @media (min-width: 62em) {
    .js .steps, .js .timeline { border-top-color: transparent; position: relative; }
    .js .steps::before, .js .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1600ms var(--ease-in-out); }
    .js .timeline::before { background: rgb(34 28 26 / 0.35); }
    .js .steps.is-drawn::before, .js .timeline.is-drawn::before { transform: scaleX(1); }
    .js .steps li::before, .js .timeline li::before { transform: scale(0); transition: transform 500ms var(--ease-out); transition-delay: calc(var(--d, 0) * 260ms + 200ms); }
    .js .steps.is-drawn li::before, .js .timeline.is-drawn li::before { transform: scale(1); }
  }

  /* Checklist ticks appear one after the other */
  .js .feature__list li::before { opacity: 0; transition: opacity 400ms ease; transition-delay: calc(var(--d, 0) * 110ms + 300ms); }
  .js .feature.is-in .feature__list li::before { opacity: 1; }

  /* The portrait drifts slightly as the hero scrolls away */
  @supports (animation-timeline: view()) {
    @media (min-width: 56em) {
      .hero__media img { scale: 1.08; animation: settle 1500ms var(--ease-out) 120ms both, drift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    }
  }
}
@keyframes rise { from { transform: translateY(115%); } }
@keyframes drift { to { translate: 0 3.5%; } }


/* ---------- Reviews ---------- */
.draft-note { padding: 0.9rem 1.1rem; border: 1px dashed var(--pigment); color: var(--pigment); font-size: 0.95rem; }
.quotes { display: grid; gap: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3.5rem); }
.quote { display: grid; gap: 1.5rem; align-content: space-between; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.95rem); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.quote--lead blockquote p { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); line-height: 1.1; }
.quote figcaption { display: grid; gap: 0.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote__name { font-weight: 500; }
.quote figcaption .label { color: var(--pigment); }
@media (min-width: 56em) {
  .quotes { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem 5rem; }
  .quote--lead { grid-row: span 2; }
}

/* ---------- Instagram ---------- */
.insta__in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.insta__text { display: grid; gap: 1.25rem; align-content: center; justify-items: start; }
.insta__text p { color: var(--ink-soft); max-width: 30em; }
.insta__handle { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.1; color: var(--rosa-text); text-decoration: none; overflow-wrap: anywhere; }
.igbox { --w: min(100vw - 2 * var(--gutter), 34rem); width: var(--w); height: calc(150px + var(--w) * 2 / 3); border: 1px solid var(--line); background: var(--tint); display: grid; grid-template-columns: minmax(0, 1fr); justify-self: center; }
.igbox__ask { display: grid; gap: 1.25rem; place-content: center; justify-items: center; text-align: center; padding: 2rem 1.5rem; }
.igbox__note { color: var(--ink-soft); font-size: 0.95rem; max-width: 26em; }
.igbox iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
@media (hover: hover) and (pointer: fine) { .insta__handle:hover { color: var(--pigment); } }
.insta__handle { transition: color 200ms ease; }
@media (min-width: 56em) {
  .insta__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center; }
  .igbox { --w: min(34rem, (min(100vw, 78rem) - 2 * var(--gutter) - 5rem) / 2); justify-self: end; }
}
@media (max-width: 55.99em) { .insta .btn { width: 100%; } }
