/* Franca Maria Lorusso, avvocato ecclesiastico
   Editoriale: una colonna di lettura, serif per le domande, sans per le risposte. */

:root {
  --paper:      oklch(96.2% 0.017 72);   /* carta calda, fondo della pagina */
  --paper-2:    oklch(98.4% 0.008 72);   /* bianco caldo, riquadri */
  --stone:      oklch(91.5% 0.022 70);   /* pietra chiara */
  --cipria:     oklch(93.5% 0.026 30);   /* rosa cipria, fascia delle domande */
  --sand:       oklch(90.5% 0.034 62);   /* sabbia calda, fascia colloquio */
  --rose:       oklch(52.0% 0.085 20);   /* rosa antico, dal foulard: bottoni, bollino, accenti (AA su carta 5.1:1) */
  --rose-hover: oklch(46.0% 0.090 20);
  --rose-soft:  oklch(78.0% 0.060 22);   /* rosa antico chiaro, sottolineature e filetti su cipria */
  --ink:        oklch(21.0% 0.010 50);   /* nero caldo */
  --ink-2:      oklch(44.0% 0.016 55);   /* grigio caldo, testo secondario */
  --line:       oklch(81.0% 0.024 65);   /* filetti */

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 999px;
  --radius-md: 18px;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  --measure: 36rem;
  --head-h: 4.5rem;
  --ease: cubic-bezier(.2, .6, .2, 1);

  /* ghirigori: quadrilobo floreale (pizzo, bifora) e fregio, colorati via mask con --rose-deep */
  --rose-deep: oklch(42% 0.09 20);
  --motif: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2056%2056'%3E%3Cg%20fill='none'%20stroke='%23000'%20stroke-width='1.1'%3E%3Cpath%20d='M28%2028C23%2022%2023%2012%2028%208C33%2012%2033%2022%2028%2028Z'/%3E%3Cpath%20d='M28%2028C23%2022%2023%2012%2028%208C33%2012%2033%2022%2028%2028Z'%20transform='rotate%2890%2028%2028%29'/%3E%3Cpath%20d='M28%2028C23%2022%2023%2012%2028%208C33%2012%2033%2022%2028%2028Z'%20transform='rotate%28180%2028%2028%29'/%3E%3Cpath%20d='M28%2028C23%2022%2023%2012%2028%208C33%2012%2033%2022%2028%2028Z'%20transform='rotate%28270%2028%2028%29'/%3E%3C/g%3E%3Ccircle%20cx='28'%20cy='28'%20r='1.6'%20fill='%23000'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='1.3'%20fill='%23000'/%3E%3C/svg%3E");
  --ornament: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20160%2024'%3E%3Cg%20fill='none'%20stroke='%23000'%20stroke-width='1.2'%20stroke-linecap='round'%3E%3Cpath%20d='M80%2012C77%209%2077%205%2080%203C83%205%2083%209%2080%2012Z'/%3E%3Cpath%20d='M80%2012C77%209%2077%205%2080%203C83%205%2083%209%2080%2012Z'%20transform='rotate%2890%2080%2012%29'/%3E%3Cpath%20d='M80%2012C77%209%2077%205%2080%203C83%205%2083%209%2080%2012Z'%20transform='rotate%28180%2080%2012%29'/%3E%3Cpath%20d='M80%2012C77%209%2077%205%2080%203C83%205%2083%209%2080%2012Z'%20transform='rotate%28270%2080%2012%29'/%3E%3Cpath%20d='M68%2012C60%2012%2056%205%2046%207C38%209%2034%2016%2022%2012C16%2010%2012%2012%207%2012'/%3E%3Cpath%20d='M68%2012C60%2012%2056%205%2046%207C38%209%2034%2016%2022%2012C16%2010%2012%2012%207%2012'%20transform='matrix%28-1%200%200%201%20160%200%29'/%3E%3C/g%3E%3Ccircle%20cx='80'%20cy='12'%20r='1.4'%20fill='%23000'/%3E%3Ccircle%20cx='5'%20cy='12'%20r='1.6'%20fill='%23000'/%3E%3Ccircle%20cx='155'%20cy='12'%20r='1.6'%20fill='%23000'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-feature-settings: "kern";
}

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

p { margin: 0 0 1.15em; }

a { color: inherit; }

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

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

main section[id] { scroll-margin-top: var(--head-h); }

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

.col { max-width: var(--measure); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: .75rem 1rem;
  background: var(--rose);
  color: var(--paper-2);
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

/* Decorazione di sfondo: motivo a quadrilobo che sfuma, mai sopra il testo */
.deco { position: relative; }
.deco > * { position: relative; z-index: 1; }
.deco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--rose-deep);
  opacity: .18;
  -webkit-mask-image: var(--motif), var(--fade);
  mask-image: var(--motif), var(--fade);
  -webkit-mask-size: 56px 56px, 100% 100%;
  mask-size: 56px 56px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero.deco { --fade: radial-gradient(55% 60% at 88% 18%, #000 0%, transparent 100%); }
.asks.deco { --fade: radial-gradient(45% 70% at 92% 55%, #000 0%, transparent 100%); }
.meet.deco { --fade: radial-gradient(40% 55% at 94% 8%, #000 0%, transparent 100%); }
@media (max-width: 899.98px) {
  .hero.deco { --fade: radial-gradient(50% 26% at 100% 0%, #000 0%, transparent 100%); }
  .deco::before { opacity: .13; }
  .asks.deco { --fade: radial-gradient(70% 35% at 90% 100%, #000 0%, transparent 100%); }
}

/* Fregio di capitolo */
.ornament {
  width: 150px;
  height: 22px;
  margin: 0 0 1.75rem;
  background-color: var(--rose-deep);
  -webkit-mask: var(--ornament) left center / contain no-repeat;
  mask: var(--ornament) left center / contain no-repeat;
}

/* ---------- testata ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-head__row {
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding-block: .5rem;
  line-height: 1.3;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.brand__role {
  font-size: .8125rem;
  color: var(--ink-2);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn__bar {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn__bar:first-child { top: 17px; }
.menu-btn__bar:last-child  { top: 25px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:last-child  { top: 21px; transform: rotate(-45deg); }

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.menu__list a {
  display: inline-block;
  padding: .75rem .1rem;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.menu__list a:hover { border-bottom-color: var(--rose); }
.menu__list .menu__cta {
  padding: .7rem 1.15rem;
  min-height: 44px;
  background: var(--rose);
  color: var(--paper-2);
  border-radius: var(--radius-sm);
  border-bottom: 0;
}
.menu__list .menu__cta:hover { background: var(--rose-hover); }

@media (max-width: 767.98px) {
  .menu-btn { display: block; }
  .menu {
    display: none;
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
  }
  .menu.is-open { display: block; }
  .menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .menu__list a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    border-bottom: 1px solid var(--line);
  }
  .menu__list a:hover { border-bottom-color: var(--line); }
  .menu__list .menu__cta {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    text-align: center;
  }
  body.menu-open { overflow: hidden; }
}

/* ---------- bottone ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .85em 1.7em;
  background: var(--rose);
  color: var(--paper-2);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color .2s;
}
.btn:hover { background: var(--rose-hover); }

/* ---------- apertura ---------- */

.hero {
  padding-block: clamp(2.5rem, 12vh, 9rem) clamp(4rem, 10vh, 8rem);
}

.hero__q {
  margin: 0 0 clamp(1.5rem, 5vh, 3.5rem);
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.hero__a { font-size: 1.1875rem; line-height: 1.55; }

.hero__portrait {
  margin: 0 0 2rem;
  width: min(72%, 300px);
}
.hero__portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }

.hero__warm {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--rose);
  max-width: 26ch;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "q portrait" "a portrait";
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .hero__q { grid-area: q; font-size: clamp(2.75rem, 6vw, 5.5rem); max-width: 16ch; }
  .hero__a { grid-area: a; }
  .hero__portrait {
    grid-area: portrait;
    width: min(100%, 440px);
    margin: .5rem 0 0;
    justify-self: end;
    align-self: start;
  }
}

/* cornice ad arco, come la bifora */
.arch { overflow: hidden; border-radius: 999px 999px var(--radius-md) var(--radius-md); }
.arch img { display: block; }
@media (max-width: 599.98px) {
  .hero__a { font-size: 1.0625rem; line-height: 1.5; }
  .hero__a p { margin-bottom: .9em; }
  .hero__cta { margin-top: 1.5rem; }
}

.hero__cta { margin-top: 2.25rem; }
.hero__note {
  display: block;
  margin-top: 1rem;
  font-size: .9375rem;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__q, .hero__a {
    animation: rise .9s var(--ease) both;
  }
  .hero__a { animation-delay: .25s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.5rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- frasi che occupano lo schermo ---------- */

.screen {
  padding-block: clamp(4rem, 12vh, 9rem);
}
@media (min-width: 768px) {
  .screen {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.screen__line {
  margin: 0 0 clamp(3rem, 9vh, 6rem);
  max-width: 16ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.screen__line--inline {
  margin-block: clamp(3rem, 9vh, 6rem);
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 4.25rem);
}

.screen__line--two {
  margin-bottom: clamp(4rem, 12vh, 8rem);
  max-width: 34ch;
  font-size: clamp(1.9rem, 4.4vw, 3.9rem);
}

@media (max-width: 599.98px) {
  .screen__line--two br { display: none; }
}

/* Intervista stampata: a schermo largo la domanda sta al margine, la risposta rientra */
@media (min-width: 1100px) {
  .hero__a,
  .screen > .col,
  .chapter > .col,
  .asks__intro,
  .asks .wrap > .col {
    margin-inline-start: clamp(4rem, 12vw, 12rem);
  }
}

/* ---------- fasce fotografiche ---------- */

.band {
  margin: 0;
  width: 100%;
  height: clamp(320px, 62vh, 680px);
  background: var(--stone);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band--short { height: clamp(240px, 44vh, 480px); }
.band--studio img { object-position: 35% 30%; }
.band--lettura img { object-position: 60% 45%; }
@media (max-width: 599.98px) {
  .band--studio img { object-position: 20% 40%; }
}

/* ---------- capitoli ---------- */

.chapter { padding-block: clamp(4.5rem, 11vh, 8.5rem); }

.q {
  margin: 0 0 1.75rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.q--second { margin-top: clamp(3.5rem, 8vh, 6rem); }
.q--bio { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

/* Capitolo con una fotografia a lato: il velo accanto alla nullità */

.chapter__aside {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  max-width: 420px;
}
.chapter__aside img { width: 100%; height: auto; }

@media (min-width: 1100px) {
  .chapter--aside {
    display: grid;
    grid-template-columns: 7fr 5fr;
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .chapter__aside {
    margin: 0;
    max-width: 480px;
    justify-self: end;
    position: sticky;
    top: calc(var(--head-h) + 2rem);
  }
  .chapter--aside .chapter__main > .col { margin-inline-start: clamp(3rem, 6vw, 6rem); }
}

/* Per chi: storie di lunghezza diversa, senza riquadri */

.stories {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  gap: 3rem;
}
.story h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.15;
  text-wrap: balance;
}
.story p { max-width: 34rem; margin-bottom: 0; }

@media (min-width: 900px) {
  .stories {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: 4rem;
  }
  .story:nth-child(even) { margin-top: 3.5rem; }
}

/* Le domande: si invertono i ruoli */

.asks {
  background: var(--cipria);
  padding-block: clamp(4.5rem, 11vh, 8.5rem);
}
.asks__intro {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  font-size: 1.125rem;
  color: var(--ink-2);
}
.asks__list {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
  padding: 0;
}
.asks__list li {
  padding-block: .45em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1.2;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .asks__list li:nth-child(2) { padding-left: 2.5rem; }
  .asks__list li:nth-child(3) { padding-left: 5rem; }
  .asks__list li:nth-child(4) { padding-left: 7.5rem; }
  .asks__list li:nth-child(5) { padding-left: 10rem; }
  .asks__list li:nth-child(6) { padding-left: 12.5rem; max-width: calc(12.5rem + 26ch); }
}
.asks { --ink-2: oklch(46% 0.05 22); }
.meet { --ink-2: oklch(44% 0.05 45); }

/* Chi sono */

.bio {
  display: grid;
  gap: 3rem;
}
.bio__portrait,
.bio__bifora {
  margin: 0;
  max-width: 420px;
}
.bio__bifora { margin-top: 1.5rem; }
.roots__line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 20ch;
  text-wrap: balance;
}
.bio__text h3 {
  margin: 2.5rem 0 .75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 900px) {
  .bio {
    grid-template-columns: minmax(240px, 5fr) 7fr;
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .bio__media {
    position: sticky;
    top: calc(var(--head-h) + 2rem);
  }
  .bio__bifora { margin-top: 2rem; }
}

/* ---------- il primo colloquio ---------- */

.meet {
  background: var(--sand);
  padding-block: clamp(4.5rem, 11vh, 8.5rem);
}

.meet__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .meet__grid {
    grid-template-columns: 7fr 5fr;
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

.meet__line {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.32;
  max-width: 22ch;
}

.facts {
  margin: 0;
  border-top: 1px solid color-mix(in oklch, var(--rose) 35%, transparent);
}
.facts > div {
  padding: .9rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--rose) 35%, transparent);
}
.facts dt {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: .15rem;
}
.facts dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* Blocco spento: si vede, non funziona. Il bollino è l'unico elemento vivo. */

.plus-lock {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vh, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper-2);
  border-radius: var(--radius-md);
}

.plus-lock__fake {
  filter: blur(6px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}

.booking__fields {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .booking__fields { grid-template-columns: repeat(3, 1fr); }
  .booking__wide { grid-column: 1 / -1; }
}
.booking__fields label span {
  display: block;
  margin-bottom: .35rem;
  font-size: .875rem;
  color: var(--ink-2);
}
.booking__fields input,
.booking__fields textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font: inherit;
  color: inherit;
}
.booking__send { margin-top: 1.5rem; }
.booking__direct { margin-top: 2rem; }
.booking__direct p { margin: 0 0 .3em; }

.plus-badge {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55em 1.3em;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  background: var(--rose);
  color: var(--paper-2);
  box-shadow: 0 6px 24px color-mix(in oklch, var(--rose) 30%, transparent);
}
.plus-badge:focus-visible { outline-color: var(--rose); outline-offset: 4px; }

/* ---------- piè di pagina ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.5rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.site-foot__grid {
  display: grid;
  gap: 2rem;
}
.site-foot p { margin: 0 0 .35em; }
.site-foot__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}
.footer-credit { margin-top: .75rem; font-size: .8125rem; }
.footer-credit a { text-decoration: underline; text-underline-offset: .15em; text-decoration-color: var(--rose-soft); }

@media (min-width: 800px) {
  .site-foot__grid { grid-template-columns: 1fr 1.3fr 1fr; }
  .site-foot__legal { text-align: right; }
}

/* ---------- dissolvenze leggere allo scroll ---------- */

html.js .reveal {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transition: none; }
  .menu-btn__bar { transition: none; }
}
