@font-face { font-family: Marcellus; src: url(../fonts/marcellus-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Jost; src: url(../fonts/jost-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Jost; src: url(../fonts/jost-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Jost; src: url(../fonts/jost-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #3E3650;
  --deep: #2F2A3D;
  --violet: #6F5499;
  --violet-dark: #57407C;
  --lilac-strong: #CBB6E2;
  --lilac-mid: #DCCBEE;
  --lilac: #E9DFF4;
  --soft: #F6F1FB;
  --paper: #FFFFFF;
  --muted: #564B6B;
  --line: #DDD2E8;
  --on-deep: #F6F0FB;
  --on-deep-muted: #E6DCF1;
  --serif: Marcellus, Georgia, "Times New Roman", serif;
  --sans: Jost, "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Icone: stesso disegno, tratto 1,75, punte arrotondate */
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.4 7.6L4 21l1.4-4.4A8.5 8.5 0 1 1 21 12z'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -.005em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13.5px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--violet); }
section { padding: clamp(68px, 9vw, 116px) 0; }
h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.14; margin-top: 14px; }

/* Parti da completare: stesso segno usato negli altri progetti */
.todo { background: #FFF3B8; color: #5B4300; outline: 1.5px dashed #A67800; outline-offset: 1px; border-radius: 2px; padding: 0 .25em; }
.draft { background: #FFF3B8; color: #5B4300; font-size: 14.5px; text-align: center; padding: 7px 16px; }

/* Testata */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lilac-mid); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand img { width: 300px; }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); font-size: 16px; }
.menu a { text-decoration: none; }
.menu a:not(.btn):hover { color: var(--violet); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--lilac-strong); }

.btn { display: inline-block; padding: 13px 28px; border: 1px solid var(--violet); border-radius: 999px; background: var(--violet); color: var(--paper); font-size: 16.5px; font-weight: 500; line-height: 1.3; text-align: center; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.btn.ghost { background: rgba(255,255,255,.55); color: var(--violet-dark); }
.btn.ghost:hover { background: var(--paper); color: var(--violet-dark); }
.menu .btn { padding: 9px 22px; font-size: 15.5px; }

/* Apertura */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 88px); background: linear-gradient(150deg, #E7DBF3 0%, #F4EDFA 52%, #DCCBEE 100%); }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -140px; top: -170px; border-radius: 50%; background: var(--lilac-strong); opacity: .5; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.1vw, 76px); line-height: 1.06; margin: 18px 0 24px; }
.hero h1 span { color: var(--violet); }
.hero .lead { font-size: clamp(19px, 1.7vw, 21px); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 32px; }
.portrait { position: relative; max-width: 450px; margin-left: auto; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: -16px -16px 0; border: 1.5px solid var(--violet); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .55; }
.portrait img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; }

.titles { background: var(--violet); color: var(--paper); }
.titles ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.titles li { padding: 22px 20px; text-align: center; font-family: var(--serif); font-size: 19.5px; }
.titles li + li { border-left: 1px solid rgba(255,255,255,.3); }

/* Chi sono */
.about .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about .photo { position: relative; }
.about .photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; background: var(--lilac-mid); border-radius: 28px; }
.about .photo img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 28px; }
.about p + p { margin-top: 16px; }
.about h2 { margin-bottom: 22px; }
.about .interview { margin: -10px 0 22px; } /* link all'intervista, quando arriva */
.quote { margin-top: 26px; padding: 22px 26px; background: var(--lilac); border-radius: 20px; font-family: var(--serif); font-size: 23px; line-height: 1.32; color: var(--violet-dark); }
.about figure { margin-top: 26px; display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.about figure img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.about figcaption { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Come lavoro */
.steps-sec { background: linear-gradient(160deg, var(--lilac-mid), var(--lilac) 70%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); margin-top: 44px; }
.steps li { background: var(--paper); border-radius: 22px; padding: 26px 24px 28px; }
/* i titoli dei passi vanno a capo in modo diverso: con la subgrid i testi partono tutti alla stessa altezza */
.steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.steps li h3 { align-self: end; }
.steps-cta { margin-top: 36px; text-align: center; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lilac-strong); color: var(--violet-dark); font-family: var(--serif); font-size: 20px; }
.steps h3 { font-size: 25px; line-height: 1.22; margin: 16px 0 8px; }
.steps p { font-size: 17px; line-height: 1.55; }

/* Trattamenti */
.head { max-width: 40em; }
.head p:last-child { margin-top: 14px; }
.menu-care { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(14px, 2vw, 22px); margin-top: 44px; }
.panel { border-radius: 26px; padding: clamp(26px, 3vw, 38px); }
.panel h3 { font-size: 29px; line-height: 1.2; margin-bottom: 18px; }
.panel li + li { margin-top: 15px; }
.panel strong { display: block; font-weight: 500; font-size: 18.5px; line-height: 1.35; }
.panel span { display: block; font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.p-face { grid-column: 1 / -1; padding: clamp(30px, 3.6vw, 46px); background: linear-gradient(165deg, var(--violet), var(--violet-dark)); color: var(--paper); }
.p-face h3 { font-size: clamp(32px, 3.4vw, 40px); margin-bottom: 24px; }
.p-face ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px clamp(22px, 3vw, 40px); }
.p-face li + li { margin-top: 0; }
.p-face strong { font-size: 19.5px; margin-bottom: 4px; }
.p-face span { color: var(--on-deep-muted); }
.p-laser { grid-column: 1; grid-row: 2 / span 2; display: flex; flex-direction: column; background: var(--lilac-mid); }
.p-laser ul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 15px; }
.p-laser li + li { margin-top: 0; }
.p-body { grid-column: 2; grid-row: 2; background: var(--lilac); }
.p-more { grid-column: 2; grid-row: 3; background: var(--soft); border: 1.5px solid var(--lilac-strong); }
.note { margin-top: 18px; color: var(--muted); font-size: 16px; }

/* Domande */
.faq { background: var(--soft); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.split .side { position: sticky; top: 118px; }
.rows { display: grid; gap: 10px; }
details { background: var(--paper); border-radius: 16px; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 44px 20px 22px; }

/* Contatti */
.contact { background: linear-gradient(140deg, var(--deep), var(--violet-dark)); color: var(--on-deep); }
.contact .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.contact .eyebrow { color: var(--lilac-strong); }
.contact h2 { margin-bottom: 18px; }
.contact .lead { max-width: 30em; }
.contact dl { margin-top: 28px; border-top: 1px solid rgba(246,240,251,.24); }
.contact dl div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(246,240,251,.24); }
.contact dt { color: var(--on-deep-muted); }
.contact .btn { margin-top: 28px; background: var(--lilac-mid); border-color: var(--lilac-mid); color: var(--deep); }
.contact .btn:hover { background: var(--paper); border-color: var(--paper); }
.contact .note { color: var(--on-deep-muted); }
.contact .photo { position: relative; max-width: 430px; margin-left: auto; width: 100%; }
.contact .photo::before { content: ""; position: absolute; inset: -16px; border: 1.5px solid var(--lilac-strong); border-radius: 50%; opacity: .7; }
.contact .photo img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* Note legali */
footer { padding: 46px 0 40px; background: var(--lilac); color: var(--muted); font-size: 15.5px; line-height: 1.6; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); }
footer h3 { font: 500 13.5px/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
footer p + p { margin-top: 10px; }
footer .mono { width: 92px; margin-bottom: 18px; }
.copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--lilac-strong); }

@media (max-width: 980px) {
  .brand img { width: 250px; }
  .menu a:not(.btn) { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .p-face ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 17.5px; }
  .hero .wrap, .about .wrap, .split, .contact .wrap, footer .cols, .menu-care { grid-template-columns: 1fr; }
  .p-face, .p-laser, .p-body, .p-more { grid-column: auto; grid-row: auto; }
  .p-face ul { grid-template-columns: 1fr; }
  .hero::before { width: 380px; height: 380px; right: -190px; top: -150px; }
  .portrait { margin: 22px auto 0; max-width: 340px; }
  .split .side { position: static; }
  .about .photo { max-width: 400px; margin-right: 18px; }
  .contact .photo { margin: 18px auto 0; max-width: 300px; }
}
@media (max-width: 560px) {
  .top .wrap { min-height: 66px; gap: 12px; }
  .brand img { width: 204px; }
  .menu .btn { padding: 8px 16px; font-size: 14.5px; }
  .actions .btn { flex: 1 1 100%; }
  .titles ul { grid-template-columns: 1fr; }
  .titles li { padding: 13px 8px; }
  .titles li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .steps { grid-template-columns: 1fr; }
  .about figure { grid-template-columns: 1fr; }
  summary { font-size: 20.5px; padding: 16px 18px; }
  details p { padding: 0 18px 18px; }
  .contact dl div { grid-template-columns: 1fr; gap: 0; }
}

/* Collegamenti ai trattamenti */
.panel strong a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--lilac-strong); transition: text-decoration-color .2s; }
.panel strong a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.p-face strong a { text-decoration-color: rgba(246,240,251,.55); }

/* Spazio per il video */
.video-slot { margin-top: 26px; padding: 34px 22px; border-radius: 20px; background: var(--soft); text-align: center; }

/* Il mio percorso */
.path { background: var(--soft); }
.path .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.timeline { margin-top: 30px; border-left: 2px solid var(--lilac-strong); }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--violet); }
.timeline .yr { display: block; font-size: 15px; font-weight: 500; color: var(--violet); }
.timeline strong { display: block; font-weight: 500; font-size: 19px; line-height: 1.35; }
.timeline small { display: block; font-size: 16.5px; color: var(--muted); }
.path figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
.path figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Approfondimenti */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: 22px; background: var(--lilac); text-decoration: none; transition: background .2s; }
.card:nth-child(2) { background: var(--lilac-mid); }
.card:hover { background: var(--lilac-strong); }
.card h3 { font-size: 24px; line-height: 1.24; }
.card p { font-size: 17px; line-height: 1.5; color: var(--muted); }
.card span { margin-top: auto; padding-top: 8px; font-weight: 500; color: var(--violet-dark); }

/* Pagine interne */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 72px); background: linear-gradient(150deg, #E7DBF3 0%, #F4EDFA 55%, #DCCBEE 100%); }
.crumbs { font-size: 15.5px; color: var(--muted); }
.crumbs a { color: var(--violet-dark); }
.page-hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; margin: 14px 0 16px; }
.page-hero .lead { font-size: clamp(19px, 1.7vw, 21px); max-width: 34em; }
.page-body { padding: clamp(48px, 7vw, 84px) 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 76px); align-items: start; }
.prose { max-width: 41em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; margin: 36px 0 10px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--lilac-strong); }
.prose a { color: var(--violet-dark); }
.aside { position: sticky; top: 112px; display: grid; gap: 14px; }
.aside .box { padding: 24px; border-radius: 22px; background: var(--lilac); }
.aside .box.dark { background: linear-gradient(160deg, var(--violet), var(--violet-dark)); color: var(--paper); }
.aside h2 { font-size: 24px; line-height: 1.22; margin: 0 0 8px; }
.aside .btn { margin-top: 14px; background: var(--paper); border-color: var(--paper); color: var(--violet-dark); }
.aside .btn:hover { background: var(--lilac); border-color: var(--lilac); color: var(--violet-dark); }
.aside ul { display: grid; gap: 7px; font-size: 17px; }
.aside .box a:not(.btn) { color: var(--violet-dark); }
.short { padding: 28px 0; background: var(--lilac); color: var(--muted); font-size: 15.5px; }
.short a { color: var(--violet-dark); }
.short .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.lost { text-align: center; padding: clamp(70px, 12vw, 140px) 0; background: linear-gradient(150deg, #E7DBF3, #F4EDFA 60%, #DCCBEE); }
.lost h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 12px; }
.lost .btn { margin-top: 24px; }

/* Pulsante fisso su telefono */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: 12px 24px; border-radius: 999px; background: var(--violet); color: var(--paper); font-size: 16px; font-weight: 500; text-decoration: none; box-shadow: 0 6px 18px rgba(47,42,61,.3); }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .path .wrap, .page-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .fab { display: inline-block; }
  footer, .short { padding-bottom: 84px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* Firma e data di revisione sugli approfondimenti */
.byline { margin-top: 18px; font-size: 15.5px; color: var(--muted); }

/* =========================================================
   GRAFICA della prova del 15/11/2026, portata nel sito il 21/11/2026
   ========================================================= */

/* 16 · Titoli che vanno a capo bene, niente parole sole a fine paragrafo */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary, blockquote { text-wrap: pretty; }

/* 18 · Numeri della stessa larghezza (anni del percorso, passi) */
.yr, .steps .n, .contact dl { font-variant-numeric: tabular-nums lining-nums; }

/* 12 · Icone: un solo disegno per frecce, più e messaggio */
.ico, .go::after, summary::after {
  content: ""; display: inline-block; flex: none; width: 1em; height: 1em;
  background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.ico-msg { --icon: var(--i-message); width: 1.15em; height: 1.15em; }
/* 17 · Freccia abbassata a occhio sulla riga del testo */
.go::after { --icon: var(--i-arrow); margin-left: .3em; vertical-align: -.14em; transition: transform .2s var(--ease); }
.go:hover::after, .card:hover .go::after { transform: translateX(3px); }
/* 17 · Il più delle domande sta sulla prima riga, non a metà del blocco */
summary { align-items: flex-start; }
summary::after { --icon: var(--i-plus); width: 18px; height: 18px; margin-top: .2em; color: var(--violet); transition: transform .25s var(--ease); }

/* 10 · Un solo pulsante principale, più grande; il secondo invito è un link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s, color .2s, border-color .2s, transform .12s var(--ease); }
.btn-lg { padding: 16px 32px; font-size: 18px; box-shadow: 0 10px 22px -12px rgba(87,64,124,.75); }
.contact .btn-lg { box-shadow: 0 10px 24px -12px rgba(0,0,0,.7); }
.go { display: inline-flex; align-items: center; font-weight: 500; color: var(--violet-dark); text-decoration: none; }
.go:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--lilac-strong); }
.card .go { align-self: flex-start; }

/* 20 · Feedback: il pulsante risponde al tocco, le domande si aprono scorrendo */
.btn:active { transform: scale(.97); }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
details[open]::details-content { block-size: auto; }
.top { transition: box-shadow .2s; }
.top.is-scrolled { box-shadow: 0 6px 20px -14px rgba(47,42,61,.35); }

/* 19 · Caricamento: mentre si apre Instagram e mentre arrivano le foto */
.is-loading { pointer-events: none; opacity: .92; }
.is-loading .ico { -webkit-mask: none; mask: none; background: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
img[src$=".jpg"] { background: var(--lilac-mid); }
img.is-pending { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity .45s var(--ease); }

/* Pulsante fisso su telefono: con icona, sparisce se un pulsante grande è già visibile */
.fab { align-items: center; gap: 8px; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 820px) { .fab { display: inline-flex; } }

/* Torna su: cerchio lilla con la stessa freccia del sito, girata verso l'alto */
.ico-up { --icon: var(--i-arrow); transform: rotate(-90deg); width: 22px; height: 22px; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 29; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lilac-mid); color: var(--violet-dark); border: 1.5px solid var(--lilac-strong); box-shadow: 0 8px 20px -10px rgba(47,42,61,.45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--lilac-strong); }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
@media (max-width: 820px) { .to-top { right: 16px; bottom: 80px; width: 46px; height: 46px; } }
@media print { .to-top, .fab { display: none !important; } }

/* Badge "Powered by Netlify": in basso a sinistra, così non copre il tasto "Torna su" e il pulsante "Scrivimi" */
#nl-badge-frame { left: 0 !important; right: auto !important; }

/* =========================================================
   RITOCCHI 21/11/2026
   ========================================================= */

/* Foto del Master: verticale, accanto al percorso */
.path figure.portrait-fig { width: 100%; max-width: 440px; justify-self: center; }
.path figure.portrait-fig figcaption { text-align: center; }
.path figure.portrait-fig img { aspect-ratio: 4 / 5; }

/* Comparsa morbida delle sezioni (solo se c'è JavaScript e non si è chiesto meno movimento) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Schede degli approfondimenti che si sollevano */
.card { transition: background .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(87,64,124,.55); }

/* Arco: le sezioni lilla e quella dei contatti iniziano con un bordo curvo, come il ritratto */
.steps-sec, .contact { border-radius: 50% 50% 0 0 / clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }

/* Mappa nei contatti: un riquadro con il segnaposto, si apre in Maps (niente Google Maps incorporato, niente cookie) */
.map { position: relative; display: flex; align-items: center; gap: 16px; margin: 22px 0 26px; padding: 18px 20px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--deep);
  background:
    linear-gradient(90deg, rgba(220,203,238,.92), rgba(220,203,238,.55)),
    repeating-linear-gradient(28deg, transparent 0 34px, rgba(255,255,255,.55) 34px 37px),
    repeating-linear-gradient(-62deg, transparent 0 52px, rgba(255,255,255,.45) 52px 56px),
    var(--lilac);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.map:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(0,0,0,.6); }
.map .pin { flex: none; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--violet); box-shadow: 0 6px 14px -6px rgba(47,42,61,.6); position: relative; }
.map .pin::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--paper); }
.map .txt { display: grid; gap: 2px; }
.map strong { font-weight: 500; font-size: 18px; line-height: 1.3; }
.map small { font-size: 15.5px; color: var(--violet-dark); }
.map small::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .3em; vertical-align: -.14em; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .2s var(--ease); }
.map:hover small::after { transform: translateX(3px); }

/* Approfondimenti: barra di lettura in alto e indice della pagina */
.progress { position: fixed; top: 0; left: 0; z-index: 40; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lilac-strong), var(--violet)); }
.toc ol { display: grid; gap: 7px; font-size: 17px; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.6em 1fr; }
.toc li::before { content: counter(toc); color: var(--violet); font-variant-numeric: tabular-nums; }
.toc a.is-current { font-weight: 500; text-decoration-color: var(--violet); }
.prose h2[id] { scroll-margin-top: 110px; }

@media print { .rv { opacity: 1 !important; transform: none !important; } .progress { display: none; } }

/* Tre foto al lavoro sopra i trattamenti: una grande e due piccole, senza scorrimento */
.work-strip { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(10px, 1.6vw, 20px); margin-top: 40px; height: clamp(420px, 46vw, 620px); }
.work-strip figure { position: relative; min-height: 0; overflow: hidden; border-radius: 24px; }
.work-strip figure:first-child { grid-row: 1 / span 2; }
.work-strip picture { display: block; width: 100%; height: 100%; }
.work-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-strip figure:hover img { transform: scale(1.03); }
.work-strip figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 14px; border-radius: 999px; background: rgba(246,240,251,.92); color: var(--violet-dark); font-size: 15px; font-weight: 500; }
.work-strip + .menu-care { margin-top: clamp(14px, 2vw, 22px); }
@media (max-width: 820px) {
  .work-strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .work-strip figure:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 4.2; }
  .work-strip figure { aspect-ratio: 4 / 5; border-radius: 18px; }
  .work-strip figcaption { left: 10px; bottom: 10px; font-size: 14px; padding: 4px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  img.is-pending { opacity: 1; }
}
