/* One continuous surface behind the introduction and the portrait. */
:root {
  --acqua: #eff6f9;
  --acqua-art: url("assets/onde-azzurre.webp");
  --onda-opacity: .74;
  --onde-pagine-opacity: .48;
  --link-size: clamp(.875rem, .925vw, 1.095rem);
  --studio-media-shadow: 0 16px 36px rgba(22, 62, 86, 0.22);
  --soft-shadow: 0 12px 30px rgba(22, 62, 86, .10);
}

.opening-art {
  position: relative;
  isolation: isolate;
  background-color: var(--acqua);
}

.opening-art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(100%, calc(100svh + 110px));
  z-index: -1;
  pointer-events: none;
  background: var(--acqua-art) center center / 100% 100% no-repeat;
  opacity: var(--onda-opacity);
  mask-image: linear-gradient(to bottom, #000 0%, #000 79%, transparent 100%);
}

body.home .opening-art .hero,
body.home .opening-art .intro {
  background: transparent !important;
}

.home #chi-sono .about-copy {
  max-width: 70ch;
  padding-top: 0;
  text-align: center;
}
.home #chi-sono .eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: .75rem;
}
.site-footer .footer-bottom .studio-registration {
  font-size: .8125rem;
  line-height: 1.6;
}

body.home .hero .hero-copy .home-title,
.approach-page .approach-title,
.paths-page .paths-title,
.contact-page .contact-title,
.booking-page .booking-title {
  font-size: clamp(1.75rem, 1.502rem + (100vw - 320px) * .01663, 2.5rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
}

body.home .hero .hero-copy .home-subtitle,
.approach-page .approach-intro,
.paths-page .paths-lead,
.contact-page .contact-lead {
  font-family: var(--serif);
  line-height: 1.14;
  letter-spacing: -.02em;
}

body.home .hero::after { display: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.entry-content .citazione-watzlawick { margin-block-start: 0 !important; }

/* Continue the home palette and wave design on every internal page. */
body:not(.home) .wp-site-blocks > header.wp-block-template-part { min-height: 0; }
body:not(.home) main { background: var(--paper); }

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--acqua);
  padding-top: clamp(154px, 12vw, 202px);
  padding-bottom: clamp(60px, 5.6vw, 96px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--acqua-art) 58% 44% / cover no-repeat;
  opacity: var(--onda-opacity);
  mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent);
}
.page-hero + .section {
  background: linear-gradient(to bottom, var(--acqua), var(--paper) 155px);
}
.page-hero + .services {
  background: linear-gradient(to bottom, var(--acqua), #f0f5f7 175px);
}
.closing {
  background: linear-gradient(180deg, var(--acqua), #e6f1f6a8 35%, #e6f1f6a8 70%, #e7f1f6),
              var(--acqua-art) center 76% / cover no-repeat !important;
}
.site-footer {
  background: linear-gradient(180deg, #e7f1f6, #eaf2f7) !important;
}
.closing::after { content: none; }
.page-hero .eyebrow,
.section .eyebrow,
.mv-carousel > h2 { color: #285c78; }
.site-nav a[aria-current=location] { border-bottom: 1px solid var(--accent); padding-bottom: 5px; }
.footer-grid p a[href^="mailto:"] { text-decoration: none; overflow-wrap:anywhere; }
.footer-grid p a:hover { text-decoration: underline; }

.detail-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 95px);
}
.detail-masthead .detail-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 35px #173e5617;
  aspect-ratio: 1.55;
  object-fit: cover;
}
.detail-masthead .breadcrumb { margin-bottom: 20px; }
.service-card {
  overflow: hidden;
  border-radius: 16px;
  padding: 0 25px 26px;
  background: #fbfdfe;
}
.service-card .path-art {
  width: calc(100% + 50px);
  max-width: none;
  margin: 0 -25px 24px;
  object-fit: cover;
  aspect-ratio: 1.57;
  height: auto;
}
.service-card h3 { margin-top: 0; }
body:not(.home) .contact-form-panel,
body:not(.home) .training-card .wp-block-image { border-radius: 16px; }
.booking-links { margin-top: 22px; }
.booking-links .booking-note {
  font-size: 14px;
  color: #476478;
  line-height: 1.55;
  margin: 12px 0 0;
}
nav a:focus-visible, summary:focus-visible, .wp-element-button:focus-visible,
button:focus-visible, a:focus-visible { outline: 3px solid #24729f; outline-offset: 4px; }
:target { scroll-margin-block-start: 12px; }
.mv-controls button { min-height: 44px; min-width: 32px; }
.mv-controls .mv-arrow { min-width: 44px; }
.mv-dots { gap: 0; }
html:not(.viani-js) .menu-toggle { display: none; }


/* Both portrait captions share one type scale and a clear gap from the photograph. */
.portrait-group { text-align:center; }
.portrait-caption {
  display:grid;
  gap:.28rem;
  margin:0;
  padding:clamp(1.4rem, 1.8vw, 2rem) .25rem 0;
}
.portrait-name {
  font:400 clamp(1.69rem, 1.8vw, 2.15rem)/1.14 var(--serif);
  letter-spacing:-.02em;
  color:var(--ink);
}
.portrait-role { font:400 clamp(.84rem,.9vw,.975rem)/1.45 var(--sans); color:#4c6879; }
main a.studio-link, .hero .text-link a.studio-link, .site-inner .text-link a.studio-link {
  display:inline-flex; align-items:center; gap:.85em;
  min-height:44px; width:fit-content; max-width:100%;
  font:500 var(--link-size)/1.5 var(--sans);
  letter-spacing:normal; color:var(--accent); text-decoration:none;
  border:0; border-bottom:1px solid #9db8c8; padding:.45em 0;
}
main a.studio-link:hover { color:var(--ink); border-color:var(--ink); }
main a.studio-link span, .hero .text-link a.studio-link span { font-size:1.12em; margin:0; }

/* Keep clickable targets and all text stationary while their decoration moves. */
@keyframes cue-bounce {
  0%, 100% { transform:translateY(0); }
  50% { transform:translateY(6px); }
}
.citazione-watzlawick::after {
  content:""; position:absolute; pointer-events:none; z-index:-1;
  left:39%; top:0; width:min(390px,48%); height:70%;
  border-radius:55% 45% 65% 35%;
  background:radial-gradient(ellipse, #c6e1f0 0%, transparent 68%);
  opacity:.63; filter:blur(13px);
}
@keyframes cloud-float {
  from { transform:translate(-3%, -3%) rotate(-5deg) scale(.96); }
  to { transform:translate(3%, 4%) rotate(4deg) scale(1.045); }
}
@media (prefers-reduced-motion:no-preference) {
  .scroll-cue svg { animation:cue-bounce 2s ease-in-out infinite; }
  .citazione-watzlawick::before { animation:viani-citazione 12s -3s ease-in-out infinite alternate; }
  .citazione-watzlawick::after { animation:cloud-float 15s -6s ease-in-out infinite alternate-reverse; }
  .mv-carousel .mv-slides::before { animation:cloud-float 14s ease-in-out infinite alternate; }
  .mv-carousel .mv-slides::after { animation:cloud-float 17s -7s ease-in-out infinite alternate-reverse; }
}

.inner-masthead {
  display:grid; grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);
  align-items:center; gap:clamp(2.5rem,6vw,6rem);
}
.page-hero h1 {
  font-weight:600; font-size:clamp(2.4rem,3.25vw,3.6rem);
  line-height:1.09; letter-spacing:-.025em; margin-block-end:1.25rem;
}
.page-hero .lead { font:400 clamp(1.25rem,1.52vw,1.55rem)/1.38 var(--serif); color:var(--accent); max-width:37rem; }
.page-hero .eyebrow { font-size:.78rem; margin-block-end:1rem; }
.masthead-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.6rem; margin-top:1.8rem; }
.masthead-actions .wp-element-button { box-shadow:0 7px 18px #163e5626; }
.masthead-approccio .portrait-group {
  width:min(100%, 23rem); max-width:none; margin:0; padding:0; justify-self:center;
}
.masthead-approccio .portrait-group::before, .masthead-approccio .portrait-group::after { content:none; }
.masthead-approccio .hero-photo { border-radius:20px; box-shadow:var(--soft-shadow); }
.masthead-approccio .hero-photo img { height:auto; aspect-ratio:390/420; object-fit:cover; object-position:50% 43%; }
.masthead-servizi .masthead-art {
  display:block; justify-self:center; width:min(100%,29rem); height:auto;
  border-radius:20px; box-shadow:var(--soft-shadow);
}
.site-inner .focus-grid { gap:clamp(1rem,2vw,2rem); }
.site-inner .focus-card, .site-inner .contact-form-panel, .masthead-domande-frequenti .faq-list {
  background:#f8fcfe; border:1px solid #cfdee7; border-radius:20px;
  box-shadow:0 10px 28px #163e560b;
}
.site-inner .focus-card { padding:clamp(1.4rem,2.3vw,2.2rem); }
.site-inner .focus-card h3 { font-weight:500; }
.site-inner .intro-grid, .site-inner .focus-grid, .site-inner .contact-grid { align-items:start; }

/* Stesso tratto tipografico per i collegamenti testuali della home. */
body.home main a.percorso-link {
  display: inline-block;
  min-height: 44px;
  max-width: 100%;
  padding: .35em 0;
  border: 0;
  color: var(--ink);
  font: 400 1rem/1.75 var(--sans);
  letter-spacing: normal;
  text-decoration-line: underline;
  text-decoration-thickness: auto;
  text-underline-offset: 5px;
}
body.home main a.percorso-link:hover { color: var(--accent); }
body.home main a.percorso-link span { margin: 0; font: inherit; }

.site-inner .service-card { border-radius:20px; padding-top:1.6rem; }
.service-card h2 { font:600 clamp(1.65rem,2vw,2rem)/1.16 var(--serif); text-align:center; margin:0 0 1.2rem; }
.service-card .path-art { width:100%; border-radius:14px; margin:0 0 1.2rem; }
.site-inner .service-card .card-tags { font-size:.8rem !important; color:#4b6879; }
.site-inner .soft-section, .site-inner .training { background:#eff6f9; }
.site-inner .soft-section { border-block:1px solid #e2edf2; }
.masthead-domande-frequenti { grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr); align-items:start; }
.masthead-domande-frequenti .faq-list { width:100%; margin:0; padding:.25rem clamp(1.25rem,2.4vw,2.4rem); }
.faq-list details:first-child { border-top:none; }
.faq-list details:last-child { border-bottom:none; }
.faq-list details { padding:.35rem 0; }
.faq-list summary { padding:.9rem 2.2rem .9rem 0; min-height:44px; font-size:clamp(1.25rem,1.7vw,1.5rem); }
.faq-list summary::after { top:.65rem; }
.faq-list details[open] summary { margin-bottom:0; }
.faq-list details p { padding:0 .5rem .9rem 0; margin:.1rem 0; }
.studio-contacts { align-items:center; }
.studio-map { display:block; width:100%; height:clamp(20rem,30vw,28rem); border:0; border-radius:20px; box-shadow:var(--soft-shadow); }
.site-inner .location { background:var(--acqua); }

@media (max-width:800px) {
  .inner-masthead { grid-template-columns:1fr; gap:2rem; }
  .masthead-servizi .masthead-art { max-width:31rem; }
  .masthead-approccio .portrait-group { width:min(100%,20rem); }
  .masthead-actions { margin-top:1.25rem; }
  .masthead-domande-frequenti .faq-list { max-width:none; }
}
@media (min-width:1515px) {
  :root { --container: clamp(1160px, 76.6vw, 1450px); }
  .site-header { max-width: clamp(1208px, 79.8vw, 1510px); }
  .header-inner.container { height: clamp(76px, 5.02vw, 95px); padding-inline: clamp(28px, 1.85vw, 35px); }
  .site-header .brand-logo img { width: clamp(103px, 6.8vw, 129px) !important; }
  .site-nav { gap: clamp(27px, 1.78vw, 34px); }
  .site-nav .nav-link { font-size: clamp(13px, .86vw, 16.25px); }
  .site-nav .wp-block-button__link { font-size: clamp(13px, .86vw, 16.25px); padding: .82em 1.84em; }
  body.home .hero { padding-top: clamp(124px, 8.2vw, 155px); }
  body.home .hero .hero-copy { gap: clamp(24px, 1.58vw, 30px); }
  body.home .hero .hero-copy .home-title,
  .approach-page .approach-title,
  .paths-page .paths-title,
  .contact-page .contact-title,
  .booking-page .booking-title { font-size: clamp(40px, 2.64vw, 50px) !important; }
  body.home .hero .hero-copy .home-subtitle,
  .approach-page .approach-intro,
  .paths-page .paths-lead,
  .contact-page .contact-lead { font-size: clamp(20px, 1.32vw, 25px) !important; }
  body.home .hero .hero-visual { max-width: clamp(390px, 25.76vw, 489px) !important; }
  body.home .hero .hero-photo img { height: clamp(420px, 27.74vw, 525px) !important; }
  .mlv-hero-info { padding: clamp(14px, .93vw, 18px) clamp(18px, 1.2vw, 23px) !important; }
  .mlv-hero-info .mlv-info-item strong { font-size: clamp(13px, .86vw, 16.25px) !important; }
  .mlv-hero-info .mlv-info-item span { font-size: clamp(11px, .73vw, 13.8px) !important; }
  body.home .hero .wp-element-button,
  .studio-primary.wp-element-button { font-size: clamp(14px, .925vw, 17.5px); padding: 1em 1.75em; }
  body.home .hero .text-link { font-size: clamp(14px, .925vw, 17.5px); }
}

@media (max-width:900px) {
  body.home .hero { position:relative; padding-bottom:65px; }
  .scroll-cue { bottom:6px; }
  .page-hero { padding-top: 132px; padding-bottom: 55px; }
  .site-nav .nav-link a { min-height:44px; align-items:center; display:inline-flex; }
  .site-nav .nav-link { font-size: 16px; }
  html:not(.viani-js) .site-header { position:static; transform:none; margin:12px auto; border-radius:24px; }
  html:not(.viani-js) .header-inner { height:auto; flex-wrap:wrap; justify-content:center; padding-block:12px; }
  html:not(.viani-js) .site-nav { display:flex; position:static; flex-direction:row; gap:10px; flex-wrap:wrap; justify-content:center; padding:0; border:0; box-shadow:none; }
}
@media (max-width:780px) {
  .opening-art::before { height: min(100%, 1180px); background-position: 63% center; background-size: auto 100%; }
  .page-hero { padding-top: 126px; padding-bottom: 46px; }
  .detail-masthead { grid-template-columns:1fr;gap:24px; }
  .detail-masthead .detail-image { max-width:29rem; aspect-ratio: 2; }
  .hero .hero-actions-row { flex-wrap:wrap !important; }
  .contact-value a[href^="mailto:"] { overflow-wrap:anywhere; }
  body.home .hero .hero-copy .home-title,
  .approach-page .approach-title,
  .paths-page .paths-title,
  .contact-page .contact-title,
  .booking-page .booking-title { font-size:clamp(1.75rem, 5.6vw, 2.5rem) !important; }
  body.home .hero .hero-copy .home-subtitle,
  .approach-page .approach-intro,
  .paths-page .paths-lead,
  .contact-page .contact-lead { font-size:clamp(1.0625rem,3.4vw,1.25rem) !important; line-height:1.35; }
}
@media (max-width:440px) {
  .hero-copy .home-title br { display:none; }
  .hero-copy .home-title { max-width:26ch; }
  .mlv-hero-info { max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* A single wash runs behind each guide from the masthead to the footer. */
body.site-inner .guide-main {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #edf5f9 0%, #f6fafb 38%, #f9fbfb 65%, #e7f1f6 100%);
}
.guide-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(82rem, 87%);
  z-index: -1;
  pointer-events: none;
  background: var(--acqua-art) 50% 30% / cover no-repeat;
  opacity: .48;
  mask-image: linear-gradient(#000 0%, #000 32%, transparent 100%);
}
.guide-main .guide-band {
  width: min(calc(100% - clamp(2.5rem, 9vw, 10rem)), var(--container), 78rem);
  margin-inline: auto;
  box-sizing: border-box;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5.8rem);
  padding-block: clamp(9.8rem, 12vw, 13rem) clamp(3.8rem, 6.5vw, 6rem);
}
.guide-main h1 {
  font: 600 clamp(2.65rem, 4.55vw, 4.7rem)/1.02 var(--serif);
  letter-spacing: -.035em;
  max-width: 18ch;
  margin: 0 0 .32em;
  text-wrap: balance;
}
.guide-main h2 {
  font: 500 clamp(2rem, 3.15vw, 3.15rem)/1.09 var(--serif);
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.guide-main .guide-label {
  color: #356680;
  font: 600 .84rem/1.35 var(--sans);
  text-transform: uppercase;
  letter-spacing: .115em;
  margin: 0 0 .85rem;
}
.guide-lead {
  color: #315f77;
  font: 400 clamp(1.35rem, 1.84vw, 1.8rem)/1.34 var(--serif);
  margin: 0;
  max-width: 42ch;
}
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.6rem; margin-top: 1.65rem; }
a.guide-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; width: fit-content; box-sizing: border-box;
  color: #fff; background: var(--ink); border-radius: 99px;
  padding: .8rem 1.45rem; box-shadow: var(--soft-shadow);
  text-decoration: none; text-align: center; font: 500 .95rem/1.4 var(--button);
}
a.guide-button:hover { background: #245a74; color: white; }
.guide-back { font-size: .91rem; margin: 0 0 1rem; }
.guide-back a { display: inline-flex; align-items: center; min-height: 44px; color: #396177; }
.guide-example {
  border-radius: 2.6rem 3.8rem 3rem .8rem;
  background: linear-gradient(125deg, #f9fcfde8 0%, #e4f1f7eb 82%);
  border: 1px solid #cddfe8;
  box-shadow: var(--soft-shadow);
  padding: clamp(1.65rem, 3.2vw, 3rem);
}
.guide-example > p:nth-child(2) { font: 400 clamp(1.5rem, 2vw, 2rem)/1.24 var(--serif); color: var(--ink); margin: 0; }
.guide-example > p:last-child { color: #526d7a; font-size: 1rem; margin: 1.1rem 0 0; }
.guide-main .guide-art { justify-self: center; width: min(100%, 28rem); mix-blend-mode: multiply; }
.guide-art img { width: 100%; height: auto; max-height: 17rem; object-fit: contain; }
.guide-photo { width: 100%; overflow: hidden; border-radius: clamp(1.15rem, 2vw, 2rem); box-shadow: var(--soft-shadow); }
.guide-photo img { display: block; width: 100%; height: auto; }
.guide-row, .guide-block, .guide-place, .guide-ending { border-top: 1px solid #bfd3de; padding-block: clamp(2.6rem, 5vw, 4.8rem); }
.guide-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(2rem, 6.8vw, 7rem); }
.guide-text, .guide-place p:not(.eyebrow), .guide-ending p, .guide-path-card p { font: 400 clamp(1rem, 1.06vw, 1.13rem)/1.66 var(--sans); color: #3f5968; }
.guide-text { max-width: 65ch; }
.guide-text p { margin: 0 0 .92rem; }
.guide-text > :last-child, .guide-place p:last-child, .guide-ending p:last-child { margin-bottom: 0; }
.guide-main .guide-block > h2 { margin: 0 0 1.8rem; }
.guide-training, .guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.guide-training figure { margin: 0; }
.guide-credential { display: block; padding: .65rem; background: #fff; border: 1px solid #d0dfe5; border-radius: 14px; }
.guide-training img { width: 100%; height: auto; aspect-ratio: 1.44; object-fit: contain; display: block; }
.guide-training figcaption { margin-top: .8rem; line-height: 1.5; }
.guide-training figcaption strong, .guide-training figcaption span { display: block; }
.guide-training figcaption strong { font: 500 1.35rem/1.3 var(--serif); color: var(--ink); }
.guide-training figcaption span { font-size: .91rem; color: #485f6c; }
.guide-path-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.1rem, 1.85vw, 1.8rem); background: #ffffffc9; border: 1px solid #cbdde5; border-radius: 20px; }
.guide-path-card img { width: 100%; height: auto; aspect-ratio: 1.95; object-fit: contain; mix-blend-mode: multiply; }
.guide-path-card h3 { font-size: clamp(1.65rem, 2vw, 2.15rem); margin: 0 0 .4rem; }
.guide-path-card h3 a { text-decoration: none; }
.guide-path-card h3 a:hover { text-decoration: underline; }
.guide-path-card p, .guide-ending h2 { margin-bottom: 0; }
.guide-main .guide-path-card .guide-label { font-size: .79rem; margin: 0 0 .45rem; }
.guide-path-card > a.studio-link { margin-top: auto; font-size: .94rem; }
.guide-ending { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.guide-ending p { margin: .75rem 0 0; max-width: 61ch; }
.guide-ending a { flex-shrink: 0; }
.guide-recapiti { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1rem 2.2rem; margin: 0 0 1.1rem; }
.guide-recapiti dt { font-size: .88rem; color: #4d6878; }
.guide-recapiti dd { margin: 0; font-size: clamp(1rem, 1.3vw, 1.25rem); overflow-wrap: anywhere; }
.guide-recapiti a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.2rem, 6vw, 6rem); }
.guide-place address { margin: .9rem 0; font: 500 1.15rem/1.5 var(--sans); color: var(--ink); }
.guide-map { padding-bottom: clamp(2rem, 4vw, 4rem); }
.guide-map iframe { display: block; border: 0; border-radius: 18px; width: 100%; height: clamp(15rem, 24vw, 23rem); }
.guide-main [id] { scroll-margin-top: 7.5rem; }
.certificate-link { display: block; }
@media (max-width: 800px) {
  .guide-hero { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 8rem 2.8rem; }
  .guide-main .guide-art { width: min(67%, 20rem); }
  .guide-main .guide-hero .guide-photo { max-width: 36rem; }
  .guide-main::before { height: 76rem; background-position: 62% 0; }
  .guide-row, .guide-place { grid-template-columns: 1fr; gap: 1.15rem; }
  .guide-place .guide-photo { grid-row: 2; max-width: 36rem; }
  .guide-cards { grid-template-columns: 1fr; }
  .guide-path-card { display: grid; grid-template-columns: minmax(4.5rem, .55fr) minmax(0, 1.9fr); gap: .25rem 1.2rem; align-items: center; }
  .guide-path-card img { grid-row: span 2; aspect-ratio: 1; }
  .guide-path-card > a.studio-link { grid-column: 2; }
  .guide-ending { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 580px) {
  .guide-training { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-training figure { display: grid; grid-template-columns: minmax(8rem, .9fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
  .guide-training figcaption { margin: 0; }
  .guide-main .guide-hero { padding-top: 7.4rem; }
  .guide-actions { margin-top: 1.2rem; }
  .guide-example { border-radius: 1.6rem 2.4rem 2rem .6rem; }
}

/* The article, the book and the credentials share one surface. */
body.site-inner main.approach-page,
body.site-inner main.contact-page,
body.site-inner main.booking-page {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--acqua), #f7fafb 54%, #f0f6f9 82%, #e7f1f6);
}
.approach-page::before, .paths-page::before, .contact-page::before, .booking-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: min(100%, clamp(37rem, 58vw, 64rem));
  background: var(--acqua-art) right top / cover no-repeat;
  opacity: var(--onde-pagine-opacity);
  mask-image: linear-gradient(#000 30%, transparent 100%);
}
.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(3rem, 7.5vw, 7.6rem);
  align-items: start;
  padding-block: clamp(8.75rem, 10.8vw, 12.25rem) clamp(2.5rem, 4.5vw, 4.25rem);
}
.approach-text { min-width: 0; max-width: 68ch; }
.approach-title { margin: 0 0 .5em; }
.approach-text .approach-intro {
  margin: 0;
  max-width: 49ch;
  font-size: clamp(1.0625rem, .875rem + (1vw - 3.2px) * .625, 1.25rem);
  line-height: 1.4;
  color: var(--accent);
}
.approach-text section { margin-top: clamp(1.9rem, 3vw, 3rem); }
.approach-text h2, .approach-book h2 {
  font: 500 clamp(1.55rem, 2.05vw, 2.05rem)/1.16 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 .52em;
}
.approach-text section p, .approach-book-text p {
  font: 400 1rem/1.7 var(--sans);
  color: var(--body);
  margin: 0 0 .8rem;
}
.approach-text section p:last-child { margin-bottom: 0; }
.approach-text strong { color: var(--ink); font-weight: 600; }
.approach-text [id] { scroll-margin-top: 8rem; }
.approach-book { max-width: 34ch; justify-self: center; }
.approach-cover {
  display: block;
  width: clamp(9.5rem, 13.8vw, 13.5rem);
  max-width: 100%;
  height: auto;
  margin: 0 0 1.4rem;
  box-shadow: 1px 3px 6px #153d562b, 5px 13px 24px -4px #153d5657;
}
.approach-book h2 cite { font-style: italic; }
.approach-book-text .approach-byline { font-size: .9rem; line-height: 1.5; color: #456172; }
.approach-page .specializzazioni-viani { background: transparent !important; }
.approach-page .specializzazioni-viani .eyebrow { font-family: var(--sans); line-height: 1.6; }
.approach-contact { display: flex; justify-content: center; padding: 0 1rem 2.75rem; }
@media (max-width: 780px) {
  .approach-layout { display: block; padding-block: 7.5rem 2.25rem; }
  .approach-book {
    display: grid;
    grid-template-columns: minmax(6rem, .5fr) minmax(0, 1.5fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 1.8rem);
    max-width: 65ch;
    margin-top: 2.5rem;
  }
  .approach-cover { width: 100%; max-width: 10rem; margin: .2rem 0 0; }
}
@media (max-width: 430px) {
  .approach-book { display: block; }
  .approach-cover { max-width: 8rem; margin: 0 0 1rem; }
}

/* A continuous reading surface for all three paths. */
body.site-inner main.paths-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 0% 47%, #dfedf5 0, transparent 44%),
    linear-gradient(180deg, var(--acqua), #f7fafb 35%, #f5f9fa 66%, #e7f1f6);
}
.paths-page::before, .paths-page::after { transform: scaleX(-1); }
.paths-page::after, .contact-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: auto 0 0;
  height: min(45rem, 33%);
  background: var(--acqua-art) right bottom / cover no-repeat;
  opacity: var(--onde-pagine-opacity);
  mask-image: linear-gradient(transparent, rgba(0, 0, 0, .62) 76%, transparent);
}
.paths-intro {
  padding-block: clamp(8.4rem, 10vw, 12rem) clamp(2.2rem, 4.3vw, 4rem);
}
.paths-title { margin: 0 0 .45em; }
.paths-intro .paths-lead {
  color: var(--accent);
  font-size: clamp(1.0625rem, .875rem + (1vw - 3.2px) * .625, 1.25rem);
  line-height: 1.4;
  margin: 0;
  max-width: 55ch;
}
.path-heading img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.paths-layout {
  display: grid;
  grid-template-columns: minmax(13.3rem, .6fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.paths-index { position: sticky; top: 8.1rem; align-self: start; scroll-margin-top: 1rem; }
.paths-index-title, .path-audience {
  margin: 0 0 .6rem;
  color: #426779;
  font: 600 .84rem/1.45 var(--sans);
  letter-spacing: .055em;
}
.paths-index ul { margin: 0; padding: 0; list-style: none; }
.paths-index li { margin: 0; }
.paths-index a {
  display: flex; align-items: center; gap: .72rem; min-height: 44px;
  font: 500 1rem/1.35 var(--sans); color: var(--body); text-decoration: none;
}
.paths-index a::before {
  content: ""; display: block; flex: none; width: .45rem; height: .45rem;
  border-radius: 50%; background: transparent; border: 1px solid #8caaba;
}
.paths-index a[aria-current="location"], .paths-index a:hover { color: var(--ink); }
.paths-index a[aria-current="location"] { font-weight: 600; }
.paths-index a[aria-current="location"]::before { background: var(--ink); border-color: var(--ink); }
.paths-index .index-short { display: none; }
.paths-reading { min-width: 0; max-width: 54rem; }
.paths-reading article { scroll-margin-block-start: 1.1rem; }
.paths-reading article + article { margin-top: clamp(3.35rem, 6vw, 6.1rem); }
.paths-reading article:focus { outline: none; }
.paths-reading article:focus-visible > header h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.path-heading {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(7.2rem, .37fr);
  gap: clamp(1.2rem, 3vw, 2.8rem);
}
.path-heading img { max-height: 10.5rem; object-fit: contain; }
.paths-reading h2, .paths-contact h2 {
  font: 600 clamp(1.7rem, 2.2vw, 2.2rem)/1.14 var(--serif);
  letter-spacing: -.025em;
  margin: 0 0 .45em;
}
.paths-reading h3 {
  margin: 1.25rem 0 .3rem;
  color: var(--ink);
  font: 600 clamp(1.2rem, 1.5vw, 1.45rem)/1.2 var(--serif);
}
.paths-reading p:not(.path-audience), .paths-contact p {
  font: 400 1rem/1.68 var(--sans);
  color: var(--body); max-width: 67ch; margin: 0;
}
.path-question { margin-top: 1.2rem; }
.path-question summary {
  display: inline-flex; gap: .75rem; align-items: center; min-height: 44px;
  padding: .3rem 0; cursor: pointer; list-style: none;
  color: var(--accent); font: 500 1rem/1.45 var(--sans);
}
.path-question summary::-webkit-details-marker { display: none; }
.path-question summary::before {
  content: "+"; display: inline-grid; flex: none; place-content: center;
  width: 1.6rem; height: 1.6rem;
  color: var(--ink); background: #dcebf3; border-radius: 50%; font: 400 1.25rem/1 var(--sans);
}
.path-question[open] summary::before { content: "−"; }
.path-question summary:hover { color: var(--ink); }
.path-question p { padding: .25rem 0 .3rem 2.35rem; }
.paths-contact { text-align: center; padding-block: clamp(3.5rem, 7vw, 7rem); }
.paths-contact p { margin: .8rem auto 1.4rem; max-width: 59ch; }
@media (prefers-reduced-motion: no-preference) {
  .paths-index a, .paths-index a::before, .path-question summary { transition: color .16s, background-color .16s; }
  .path-question[open] > p { animation: paths-answer-in .18s ease-out; }
  @keyframes paths-answer-in { from { opacity: .35; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 800px) {
  .paths-intro { padding-block: 7.25rem 2rem; }
  .paths-layout { display: block; }
  .paths-index {
    top: 5.8rem; z-index: 3; width: fit-content; max-width: 100%;
    margin: 0 0 1.6rem; background: #f3f8fb; border-radius: 2rem;
    box-shadow: 0 4px 16px #153d5614;
  }
  .paths-index ul { display: flex; padding: .2rem; }
  .paths-index li { flex: 1 1 auto; }
  .paths-index a { justify-content: center; padding: 0 clamp(.7rem, 3vw, 1.3rem); border-radius: 2rem; }
  .paths-index a[aria-current="location"] { color: #fff; background-color: var(--ink); }
  .paths-index-title, .paths-index a::before, .paths-index .index-long { display: none; }
  .paths-index .index-short { display: inline; }
  .paths-reading article { scroll-margin-block-start: 3.5rem; }
  .path-heading img { max-height: 8rem; }
}
@media (max-width: 520px) {
  .path-heading { grid-template-columns: minmax(0, 1fr) minmax(3.8rem, 23%); gap: .2rem .8rem; }
  .path-heading > div { display: contents; }
  .path-heading .path-audience, .path-heading h2 { grid-column: 1; }
  .path-heading h2 { margin-bottom: 0; }
  .path-heading p:last-child { grid-column: 1 / -1; margin-top: .65rem; }
  .path-heading img { grid-column: 2; grid-row: 1 / 3; max-height: 5.7rem; }
}
@media print {
  .paths-index { display: none; }
  .paths-layout { display: block; }
  .paths-intro { padding-top: 1rem; }
}

/* Le foto, i recapiti e la mappa appartengono allo stesso spazio. */
.contact-page::after {
  mask-image: linear-gradient(transparent, #000 40%, #000 83%, transparent);
}
.contact-page .contact-title,
.booking-page .booking-title { margin: 0 0 .45em; }
.contact-page .contact-lead {
  max-width: 48ch;
  margin: 0;
  color: var(--accent);
  font-size: clamp(14px, .875rem + (1vw - 3.2px) * .625, 20px);
  font-weight: 500;
  line-height: 1.4;
}
.contact-page .guide-hero {
  column-gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(8.4rem, 10.5vw, 12rem) clamp(2.25rem, 4.5vw, 4.5rem);
}
.contact-page .guide-row, .contact-page .guide-place {
  border: 0;
  padding-block: clamp(2.2rem, 4.6vw, 4.6rem);
}
.contact-page .guide-place { padding-bottom: clamp(1.75rem, 3.5vw, 3.5rem); }
.contact-page .guide-map { padding-bottom: clamp(1.4rem, 3vw, 3rem); }
.contact-page .guide-row:last-child { padding-bottom: clamp(4rem, 7vw, 7rem); }
.contact-page .eyebrow { margin: 0 0 .85rem; }
.contact-page h2 { margin: 0; }
.contact-page .guide-text, .contact-page .guide-place p:not(.eyebrow) {
  font: inherit;
  color: var(--body);
}
.contact-page .guide-recapiti dd { display: flex; align-items: center; min-height: 44px; font-size: 1.0625rem; }
.contact-page .guide-place address { font-size: 1.0625rem; }
.contact-page .guide-photo, .contact-page .guide-map iframe {
  box-shadow: var(--studio-media-shadow);
}
@media (min-width: 801px) {
  .contact-page .guide-hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
}
@media (max-width: 800px) {
  .contact-page .guide-hero { row-gap: 1.2rem; padding-top: 7.5rem; }
  .contact-page .guide-photo { max-width: none; }
}

.site-footer .policy-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem;
  font: 400 .875rem/1.5 var(--sans);
}
.site-footer .policy-links a { display: inline-block; padding: .35em 0; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
body.site-inner main.legal-page {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--acqua), #f7fafb 45rem, #f7fafb 85%, #e7f1f6);
}
.legal-page::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 0 auto; height: clamp(27rem, 48vw, 55rem);
  background: var(--acqua-art) right top / cover no-repeat;
  opacity: var(--onde-pagine-opacity); mask-image: linear-gradient(black 20%, transparent);
}
.legal-reading {
  width: min(100% - 2.6rem, 72ch); margin-inline: auto;
  padding-block: clamp(7.5rem, 10.5vw, 12rem) clamp(4rem, 7vw, 7rem);
  font: 400 1rem/1.72 var(--sans); overflow-wrap: anywhere;
}
.legal-reading h1 { font: 600 clamp(1.9rem, 3.35vw, 3.125rem)/1.13 var(--serif); margin: 0 0 .45em; }
.legal-reading header > p:first-of-type { color: var(--ink); margin-bottom: .65rem; }
.legal-reading .legal-origin { font-size: .9375rem; margin: 0 0 1.3rem; }
.legal-reading a { color: var(--accent); text-underline-offset: .16em; }
.legal-index { width: fit-content; max-width: 100%; }
.legal-index summary { cursor: pointer; color: var(--ink); font-weight: 500; padding-block: .65rem; }
.legal-index ul, .legal-copy ul { padding-inline-start: 1.35rem; }
.legal-index li + li, .legal-copy li + li { margin-top: .35em; }
.legal-copy h2 { margin: 2.2rem 0 .6rem; font: 500 clamp(1.65rem, 2.2vw, 2.2rem)/1.17 var(--serif); scroll-margin-block-start: 1.4rem; }
.legal-copy h3 { margin: 1.5rem 0 .35rem; font: 500 1.35rem/1.3 var(--serif); }
.legal-copy h4 { margin: 1.1rem 0 .3rem; font: 600 1rem/1.5 var(--sans); }
.legal-copy p, .legal-copy ul { margin-block: 0 .85rem; }
.consent-categories { margin: 0 0 1.15rem; }
.consent-categories dt { font-weight: 600; color: var(--ink); }
.consent-categories dd { margin: .15rem 0 .8rem; }
