/* ==========================================================================
   Bialma — foglio di stile
   ========================================================================== */

:root {
  /* Palette */
  --avorio: #F5F1E9;
  --greige: #C9BFB1;
  --marrone: #57483F;
  --antracite: #292C2B;
  --rame: #C77A3D;
  --greige-tenue: #E8E2D8; /* greige 35% su avorio */

  /* Tipografia */
  --font-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-text: "Spectral", "Georgia", serif;

  /* Misure */
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

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

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--avorio);
  color: var(--marrone);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--rame);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection { background: var(--rame); color: var(--antracite); }

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

.dot {
  display: inline-block;
  width: .32em;
  height: .32em;
  border-radius: 50%;
  background: var(--rame);
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--antracite);
  color: var(--avorio);
  font-family: var(--font-display);
  font-size: .95rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Pulsanti */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.btn--outline { border-color: currentColor; }
.btn--outline:hover {
  background: var(--antracite);
  border-color: var(--antracite);
  color: var(--avorio);
}

.btn--light {
  border-color: rgba(245, 241, 233, .55);
  color: var(--avorio);
}
.btn--light:hover {
  background: var(--avorio);
  border-color: var(--avorio);
  color: var(--antracite);
}

.btn--accent {
  background: var(--rame);
  color: var(--antracite);
  font-weight: 500;
  font-size: 1.1rem;
  padding: .8em 1.8em;
}
.btn--accent:hover { background: var(--avorio); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  color: var(--antracite);
  background: rgba(245, 241, 233, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201, 191, 177, .6);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: .55em;
  text-decoration: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wordmark .dot { width: .4em; height: .4em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
}

.site-nav a:not(.btn) {
  position: relative;
  text-decoration: none;
  padding-block: .4rem;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav .btn { padding: .5em 1.2em; }

.menu-toggle {
  display: none;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: .5rem 0;
}

/* Menu compatto sotto i 760px */
@media (max-width: 759px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--avorio);
    box-shadow: 0 16px 30px rgba(41, 44, 43, .08);
    font-size: 1.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }

  .site-nav .btn { font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   Landing — impostazione base (schermi stretti): foto, poi il testo
   -------------------------------------------------------------------------- */

.hero {
  --p: 0;
  position: relative;
  padding-top: var(--header-h);
}

.hero__scene,
.hero__shade,
.hero__cue { display: none; }

.hero__photo {
  width: 100%;
  max-width: calc(100vh - var(--header-h));
  max-width: calc(100svh - var(--header-h));
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: cover;
  animation: hero-in 1.6s var(--ease) both;
}

.hero__wall {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 9vw, 5rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

.headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--antracite);
}

.headline .line,
.page-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.headline .line > span,
.page-title .line > span {
  display: inline-block;
  text-wrap: balance;
}

.hero__text {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

@keyframes hero-in {
  from { opacity: 0; scale: 1.03; }
  to   { opacity: 1; scale: 1; }
}

@keyframes rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   Landing — schermi larghi: foto a sinistra, muro ricreato a destra
   -------------------------------------------------------------------------- */

@media (min-width: 900px) and (min-aspect-ratio: 8/5) {
  .hero {
    /* colori presi dal bordo destro della foto */
    --wall: #D6C3B2;
    --baseboard: #C2AE9C;
    --shadow: #9E8570;
    --floor: #C5AD96;
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100vh;
    height: 100svh;
    padding: 0;
    overflow: hidden;
    background: var(--wall);
  }

  .hero__stage {
    position: absolute;
    inset: 0;
    transform-origin: 25% 50%;
    transform: scale(calc(1 + var(--p) * .05));
  }

  /* la foto è quadrata e alta quanto lo schermo; il bordo destro sfuma nel muro */
  .hero__photo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: auto;
    height: 100%;
    max-width: none;
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, #000 93%, transparent);
    mask-image: linear-gradient(to right, #000 93%, transparent);
  }

  /* muro e pavimento in tinta unita; il battiscopa prosegue con la stessa
     pendenza che ha nella foto (sale di 0,058 px per ogni px verso destra) */
  .hero__scene {
    --line: 66.3%;   /* altezza del battiscopa dove inizia la scena */
    --band: 1.9%;    /* spessore del battiscopa */
    --rise: calc((100vw - 93vh) * .058);
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 93vh;
    left: 93svh;
    right: 0;
    animation: fade-in 1.8s var(--ease) both;
  }

  @supports (height: 1svh) {
    .hero__scene { --rise: calc((100vw - 93svh) * .058); }
  }

  /* tre fasce sovrapposte: battiscopa, linea d'ombra, pavimento */
  .hero__baseboard,
  .hero__shadowline,
  .hero__floor {
    --top: var(--line);
    position: absolute;
    inset: 0;
    clip-path: polygon(0 var(--top), 100% calc(var(--top) - var(--rise)), 100% 100%, 0 100%);
  }

  .hero__baseboard { background: var(--baseboard); }

  .hero__shadowline {
    --top: calc(var(--line) + var(--band));
    background: var(--shadow);
  }

  .hero__floor {
    --top: calc(var(--line) + var(--band) + .4%);
    background: var(--floor);
  }

  .hero__shade {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--antracite);
    opacity: calc(var(--p) * .45);
    pointer-events: none;
  }

  /* il testo occupa tutta la parte destra: il titolo sul muro,
     il paragrafo sul pavimento, sotto la linea del battiscopa */
  .hero__wall {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100vh + clamp(1.5rem, 3.5vw, 4.5rem));
    left: calc(100svh + clamp(1.5rem, 3.5vw, 4.5rem));
    right: var(--gutter);
    max-width: none;
    margin: 0;
    padding: 0;
    container-type: inline-size;
    opacity: calc(1 - var(--p) * 1.6);
  }

  .headline {
    position: absolute;
    top: var(--header-h);
    bottom: 40%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: clamp(2.4rem, 5vw, 7rem);
    line-height: 1.02;
  }

  .hero__text {
    position: absolute;
    top: 72%;
    left: 0;
    max-width: 36em;
    margin: 0;
    color: var(--antracite);
    font-size: clamp(1rem, 1.25vw, 1.3rem);
    line-height: 1.6;
  }

  @supports (font-size: 1cqi) {
    .headline { font-size: clamp(2.4rem, 12.6cqi, 7rem); }
    .hero__text { font-size: clamp(1rem, 2.7cqi, 1.3rem); }
  }

  /* l'invito a scorrere sta in basso a destra, sul pavimento */
  .hero__cue {
    display: block;
    position: absolute;
    right: var(--gutter);
    bottom: clamp(20px, 5vh, 48px);
    padding: 10px 0 10px 14px;
    opacity: calc(1 - var(--p) * 4);
  }

  .hero__cue-line {
    position: relative;
    display: block;
    width: 1px;
    height: 56px;
    background: rgba(41, 44, 43, .35);
    animation: fade-in 1s 1.6s var(--ease) both;
  }

  .hero__cue-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: var(--rame);
    animation: cue 2.4s 2.2s var(--ease) infinite;
  }

  @keyframes cue {
    0%   { transform: translateY(0);    opacity: 0; }
    20%  { opacity: 1; }
    70%  { transform: translateY(47px); opacity: 1; }
    100% { transform: translateY(47px); opacity: 0; }
  }

  /* header trasparente sopra la landing, pieno appena si scorre */
  .home .site-header:not(.is-scrolled):not(.is-menu-open) {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .home .site-header:not(.is-scrolled) .wordmark {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }

  /* i contenuti scorrono sopra la landing come un foglio */
  .sheet {
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 60px rgba(41, 44, 43, .14);
  }
}

/* --------------------------------------------------------------------------
   Contenuti
   -------------------------------------------------------------------------- */

.sheet {
  position: relative;
  z-index: 1;
  background: var(--avorio);
  overflow: clip;
}

/* Approccio */

.approach {
  padding-block: clamp(4rem, 10vw, 9rem);
}

.statement {
  max-width: 23em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--marrone);
}

.approach__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 900px) {
  .approach__grid { grid-template-columns: 5fr 7fr; }
}

.approach__photo { aspect-ratio: 3 / 4; }

.approach__cols {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  padding-top: 2rem;
  border-top: 1px solid var(--greige);
}

/* Riquadro fotografico condiviso (foto delle sezioni e ritratti) */

.frame {
  overflow: hidden;
  max-width: 30rem;
  background: var(--greige);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Obiettivo */

.goal {
  background: var(--antracite);
  color: var(--avorio);
  padding-block: clamp(5rem, 12vw, 10rem);
}

.goal__text {
  max-width: 22em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.8vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.goal__text .dot--lg {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.goal .btn { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* --------------------------------------------------------------------------
   Chi siamo — le psicologhe
   -------------------------------------------------------------------------- */

.people {
  background: var(--greige-tenue);
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.section-title {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--antracite);
}

.person {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.person + .person { margin-top: clamp(5rem, 12vw, 10rem); }

@media (min-width: 900px) {
  .person { grid-template-columns: 5fr 7fr; }
  .person--reverse { grid-template-columns: 7fr 5fr; }
  .person--reverse .person__photo { order: 2; }
  .person__photo {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.person__photo { aspect-ratio: 3 / 4; }

.person__text {
  max-width: 36rem;
  padding-top: clamp(0rem, 3vw, 2.5rem);
}

.person__text p + p { margin-top: 1.25rem; }

.person__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--antracite);
}

.person__text .person__role {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .9rem 0 2.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--marrone);
}

.person__role::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rame);
}

/* --------------------------------------------------------------------------
   Pagina "Perché Bialma"
   -------------------------------------------------------------------------- */

.page-intro {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--greige);
}

.page-intro__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

@media (min-width: 900px) {
  .page-intro__grid { grid-template-columns: 7fr 5fr; }
}

.page-intro__photo {
  aspect-ratio: 4 / 5;
  justify-self: end;
  width: 100%;
}

.page-intro__photo img { object-position: 50% 30%; }

.block__photo {
  aspect-ratio: 4 / 5;
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 26rem;
}

.block__photo img { object-position: 50% 45%; }

.page-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--antracite);
}

.page-index {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.page-index a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--marrone);
  transition: color .3s var(--ease);
}

.page-index a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rame);
  transform: scale(.4);
  transition: transform .35s var(--ease);
}

.page-index a:hover { color: var(--antracite); }
.page-index a:hover::before { transform: scale(1); }

.block {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.block--tint { background: var(--greige-tenue); }

.block__grid {
  display: grid;
  gap: 2rem clamp(3rem, 7vw, 6rem);
  align-items: start;
}

@media (min-width: 900px) {
  .block__grid { grid-template-columns: 5fr 7fr; }
  .block__head {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

.block__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--marrone);
}

.block__title--big {
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--antracite);
}

.block__lead {
  max-width: 14em;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--antracite);
}

.block__body {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.values {
  display: grid;
  gap: 2.25rem 3rem;
}

@media (min-width: 640px) {
  .values { grid-template-columns: 1fr 1fr; }
}

.values li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--greige);
}

.values h3 {
  margin-bottom: .45rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--antracite);
}

.values p {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Footer: le lettere di BIALMA si ricompongono come nella foto
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--antracite);
  color: var(--avorio);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
}

.letters {
  position: relative;
  max-width: 54rem;
  height: clamp(11rem, 28vw, 20rem);
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1;
}

/* posizioni ricavate dalla foto di apertura */
.l {
  position: absolute;
  left: var(--x);
  top: var(--y);
}
.l-b   { --x: 4%;  --y: 0%;  --dx: 4em;  --dy: 1.6em; }
.l-i   { --x: 48%; --y: 0%;  --dx: 0em;  --dy: 2.2em; }
.l-a1  { --x: 89%; --y: 0%;  --dx: -4em; --dy: 1.6em; }
.l-dot { --x: 89%; --y: 25%; --dx: -6em; --dy: 1em; }
.l-l   { --x: 6%;  --y: 38%; --dx: 4em;  --dy: 0em; }
.l-m   { --x: 45%; --y: 68%; --dx: 0em;  --dy: -1.6em; }
.l-a2  { --x: 89%; --y: 76%; --dx: -4em; --dy: -2em; }

.l-dot {
  width: clamp(10px, 1vw, 15px);
  height: clamp(10px, 1vw, 15px);
  border-radius: 50%;
  background: var(--rame);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 191, 177, .25);
}

.site-footer__bar:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* iscrizione all'albo */
.albo {
  display: grid;
  gap: 1.25rem 3rem;
  font-family: var(--font-display);
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(245, 241, 233, .7);
}

@media (min-width: 700px) {
  .albo { grid-template-columns: repeat(2, minmax(0, 18rem)); }
}

.albo__name {
  display: block;
  margin-bottom: .2rem;
  font-weight: 500;
  color: var(--avorio);
}

.site-footer__legal {
  max-width: var(--max);
  margin: 2rem auto 0;
  font-family: var(--font-display);
  font-size: .9rem;
  color: rgba(245, 241, 233, .55);
}

/* --------------------------------------------------------------------------
   Pagina 404
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
}

.notfound__code {
  display: flex;
  align-items: flex-start;
  gap: .08em;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--antracite);
}

.notfound__code .dot {
  width: .09em;
  height: .09em;
  margin-top: .12em;
}

.notfound__title {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  color: var(--antracite);
}

.notfound__text {
  max-width: 30rem;
  margin-top: 1rem;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn--solid {
  background: var(--antracite);
  color: var(--avorio);
}
.btn--solid:hover {
  background: var(--marrone);
}

/* --------------------------------------------------------------------------
   Animazioni (solo se il movimento è consentito)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* ingresso della landing e del titolo di pagina */
  .headline .line > span,
  .page-title .line > span {
    animation: rise 1.1s .45s var(--ease) both;
  }
  .headline .line:nth-child(2) > span { animation-delay: .6s; }
  .page-title .line > span { animation-delay: .1s; }
  .hero__text { animation: fade-up 1s 1s var(--ease) both; }
  .page-index { animation: fade-up 1s .5s var(--ease) both; }

  /* comparsa allo scorrimento */
  .js .statement,
  .js .goal__text,
  .js .block__lead,
  .js .block__title--big {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  }
  .js .statement.is-in,
  .js .goal__text.is-in,
  .js .block__lead.is-in,
  .js .block__title--big.is-in { opacity: 1; transform: none; }

  /* il ritaglio va sull'immagine: un elemento osservato e completamente
     ritagliato non risulterebbe mai visibile all'IntersectionObserver */
  .js .frame { background: transparent; }
  .js .frame img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.12);
    transform-origin: 50% 100%;
    transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease);
  }
  .js .frame.is-in img {
    clip-path: inset(0 0 0 0);
    transform: none;
  }

  .js .letters .l {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
    transition: transform 1.6s var(--ease), opacity 1.2s var(--ease);
  }
  .js .letters.is-in .l { opacity: 1; transform: none; }
  .js .letters .l:nth-child(2) { transition-delay: .06s; }
  .js .letters .l:nth-child(3) { transition-delay: .12s; }
  .js .letters .l:nth-child(4) { transition-delay: .3s; }
  .js .letters .l:nth-child(5) { transition-delay: .18s; }
  .js .letters .l:nth-child(6) { transition-delay: .24s; }
  .js .letters .l:nth-child(7) { transition-delay: .3s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__stage { transform: none !important; }
}
