/* =====================================================================
   Inner pages: object hero, price list, journey, FAQ, form, grid.
   ===================================================================== */
@keyframes line { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 18px)); } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(1.04); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- object hero ---------- */
.phero { position: relative; overflow: clip; min-height: min(78svh, 820px); padding: calc(var(--hdr) + 4svh) var(--m) 7svh; display: grid; align-content: end; }
.phero__word { position: absolute; z-index: 1; top: calc(var(--hdr) + 2svh); left: var(--m); font-size: clamp(5rem, 17vw, 21rem); }
.phero__word .ln > span { animation: line 1.1s cubic-bezier(.25, 1, .5, 1) both; }
.phero__obj { position: absolute; z-index: 2; right: 8vw; top: calc(var(--hdr) + 17vw * .8 * .5); width: var(--ow, 36vw); }
.phero__obj .obj__in { animation: settle 1.2s var(--ease) .12s both; }
.phero__text { position: relative; z-index: 3; max-width: 40rem; animation: rise .8s var(--ease) .3s both; }
.phero__text .lead { margin-top: 18px; }
.phero--short { min-height: min(60svh, 640px); }
@media (max-width: 899.98px) {
  .phero { min-height: 0; padding-top: calc(var(--hdr) + 26vw + 24vw); }
  .phero__word { font-size: 24vw; top: calc(var(--hdr) + 10px); }
  .phero__obj { right: auto; left: 50%; translate: -50% 0; top: calc(var(--hdr) + 10px + 24vw * .55); width: var(--ow-p, 78vw); }
  .phero { padding-top: calc(var(--hdr) + 10px + 24vw * .55 + var(--oh-p, 48vw) + 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .phero__word .ln > span { animation: none; }
  .phero__obj .obj__in, .phero__text { animation-name: fade; }
}

.wrap { padding: 0 var(--m); }
.sec { padding: 12svh var(--m); position: relative; }
.sec--tight { padding-top: 4svh; }
.sec__h { margin-bottom: 5svh; }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); }
.tbc { font: 500 .66rem/1.2 var(--f-text); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.note { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); }
.note::before { content: ""; flex: none; width: 18px; height: 1px; background: currentColor; }  /* a note, not a button */

/* ---------- SERVIZI: sticky index + price list ---------- */
.list { display: grid; grid-template-columns: 3fr 9fr; gap: var(--g); padding: 6svh var(--m) 12svh; }
.findex { position: sticky; top: calc(var(--hdr) + 3svh); align-self: start; }
.findex ol { display: grid; gap: 2px; }
.findex a {
  display: flex; align-items: center; gap: 12px; min-height: 40px; text-decoration: none;
  font: 400 1.15rem/1.2 var(--f-display);
}
.findex a::before { content: ''; width: 0; height: 1px; background: currentColor; transition: width .45s var(--ease); }
@media (hover: hover) { .findex a:hover::before { width: 18px; } }
.findex a:focus-visible::before, .findex a.is-on::before { width: 28px; }
.findex a.is-on { font-style: italic; }
.findex .tbc { margin-top: 20px; display: block; }
.fam { scroll-margin-top: calc(var(--hdr) + 20px); }
.fam + .fam { margin-top: 12svh; }
.fam__head { display: grid; grid-template-columns: 180px 1fr; gap: var(--g); align-items: end; margin-bottom: 26px; }
.fam__obj { width: 170px; }
.fam__obj.obj--tall { width: auto; }
.fam__obj.obj--tall img { height: 200px; width: auto; }
.fam__obj .obj__in { transition: translate .6s var(--ease); }
.fam:has(.row:hover) .fam__obj .obj__in { translate: 6px 0; }
.fam__head h2 { font: 400 var(--t-xl)/1 var(--f-display); font-size: clamp(2.2rem, 1rem + 3vw, 4.4rem); letter-spacing: -.025em; }
.fam__head p { margin-top: 10px; max-width: 34rem; }
.rows { background: var(--calce); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 8px clamp(18px, 2.4vw, 34px); }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); }
@media (hover: hover) { .row:hover::after { transform: scaleX(1); } }
.row:last-child::after { display: none; }
.row__n { font-weight: 500; }
.row__d { grid-column: 1; color: var(--fumo); font-size: .95rem; }
.row__t { grid-column: 2; grid-row: 1; color: var(--fumo); font-variant-numeric: tabular-nums; font-size: .95rem; }
.row__p { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; min-width: 7ch; }
.fam__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.chips-bar { display: none; }
@media (max-width: 899.98px) {
  .list { grid-template-columns: 1fr; padding-top: 0; }
  .findex { display: none; }
  .chips-bar { display: flex; position: sticky; top: var(--hdr); z-index: 20; gap: 8px; overflow-x: auto; padding: 10px var(--m); margin: 0; background: var(--taupe); scrollbar-width: none; }
  .chips-bar::-webkit-scrollbar { display: none; }
  .chips-bar a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--calce); text-decoration: none; font-size: .9rem; }
  .chips-bar a.is-on { background: var(--ink); color: var(--calce); }
  .fam__head { grid-template-columns: 96px 1fr; }
  .fam__obj { width: 96px; }
  .fam__obj.obj--tall img { height: 120px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__t { grid-column: 1; grid-row: auto; }
  .row__p { grid-column: 2; grid-row: 1; }
}

/* ---------- SPOSA ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); counter-reset: step; }
.step { position: relative; }
.step:nth-child(2) { margin-top: 8svh; }
.step:nth-child(3) { margin-top: 16svh; }
.step__n { font: 400 clamp(3rem, 2rem + 3vw, 5.5rem)/1 var(--f-display); font-variant-numeric: lining-nums; display: block; margin-bottom: 10px; }
.step .quote { font-size: 1.25rem; margin-top: 16px; color: var(--ink); }
.incl { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); align-items: center; }
.incl__list { grid-column: 1 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--g); }
.incl__list li { padding-top: 16px; border-top: 1px solid var(--line); }
.incl__list h3 { font: 400 var(--t-m)/1.1 var(--f-display); margin-bottom: 6px; }
.incl__objs { grid-column: 9 / span 4; position: relative; height: 420px; }
.incl__objs .obj { position: absolute; }
.testi { max-width: 52rem; margin: 0 auto; text-align: center; }
.testi .quote { font-size: clamp(1.8rem, 1.2rem + 2vw, 3.2rem); }
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; font: 400 var(--t-m)/1.2 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) center / 100% 1px no-repeat, linear-gradient(currentColor 0 0) center / 1px 100% no-repeat; transition: rotate .4s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
@media (hover: hover) { .faq summary:hover { font-style: italic; } }
.faq details > div { padding: 0 0 22px; max-width: 40rem; }
@media (max-width: 899.98px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { margin-top: 0; }
  .incl__list { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .incl__objs { grid-column: 1 / -1; height: 260px; }
}

/* ---------- FORM ---------- */
.book { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); align-items: start; padding: 0 var(--m) 12svh; }
.book__call { grid-column: 1 / span 5; position: sticky; top: calc(var(--hdr) + 3svh); }
.book__form { grid-column: 7 / span 6; }
.callcard { background: var(--green); color: var(--calce); border-radius: var(--r-card); padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.callcard :focus-visible { outline-color: var(--calce); }
.callcard__num { font: 400 clamp(2.6rem, 1rem + 3.6vw, 5rem)/1 var(--f-display); font-variation-settings: 'opsz' 28; font-variant-numeric: lining-nums; letter-spacing: -.03em; text-decoration: none; background: linear-gradient(currentColor 0 0) left 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 6px; align-self: flex-start; }
@media (hover: hover) { .callcard__num:hover { background-size: 100% 1px; } }
.callcard__num:focus-visible { background-size: 100% 1px; }
.callcard .pill { --pfill: var(--ink); align-self: flex-start; }
.callcard .muted { color: #C9D3CC; }
.form { background: var(--calce); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: clamp(22px, 3vw, 44px); --focus: var(--green); }
.form h2 { font: 400 var(--t-l)/1.1 var(--f-display); margin-bottom: 8px; }
.form > p { color: var(--fumo); }
.field { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; margin-bottom: 8px; padding: 0; }
.field .opt { font-weight: 400; color: var(--fumo); font-size: .9rem; }
.field .hint { color: var(--fumo); font-size: .88rem; margin-top: 6px; }
.input { width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgb(23 20 17 / .3); background: #F6F2EB; color: var(--ink); font: 400 1rem/1.4 var(--f-text); transition: border-color .24s var(--ease-ui), box-shadow .24s var(--ease-ui); }
textarea.input { min-height: 112px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
@media (hover: hover) { .input:hover { border-color: rgb(23 20 17 / .55); } }
.input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(31 58 46 / .35); }
.field.is-err .input { border-color: #8A2A1E; }
.err { color: #8A2A1E; font-size: .9rem; margin-top: 6px; font-weight: 500; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(23 20 17 / .3); background: #F6F2EB; transition: background .24s var(--ease-ui), color .24s var(--ease-ui), border-color .24s; }
@media (hover: hover) { .chip:hover span { border-color: var(--ink); } }
.chip input:checked + span { background: var(--green); color: var(--calce); border-color: var(--green); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.field > .check, .check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 22px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.check a { text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.form__foot .fineprint { color: var(--fumo); font-size: .9rem; max-width: 18rem; }
.form button[type="submit"] { min-height: 56px; padding: 0 1.8em; }
.form [aria-busy="true"] { opacity: .7; pointer-events: none; }
.summary { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #F3E3DE; color: #6E2117; font-weight: 500; }
.summary:empty { display: none; }
.done { outline: none; }
.done h2 { font: 400 var(--t-l)/1.1 var(--f-display); }
.done p { margin-top: 12px; }
.done__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.demo-note { margin-top: 18px; font-size: .85rem; color: var(--fumo); }
.form__comb { width: 120px; }
@media (max-width: 899.98px) {
  .book__call, .book__form { grid-column: 1 / -1; position: static; }
}

/* ---------- PRODOTTI ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 9svh; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background .3s var(--ease-ui), color .3s; }
@media (hover: hover) { .filters button:hover { background: rgb(236 230 220 / .5); } }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--calce); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 120px var(--g); }
.pgrid > li[hidden] { display: none; }
.pcard { position: relative; display: flex; flex-direction: column; min-height: 340px; padding-top: 150px; height: 100%; }
.pcard__obj { position: absolute; top: -100px; left: 28px; height: 240px; }
.pcard__obj .obj__in { height: 100%; transition: transform .6s var(--ease); transform-origin: 50% 100%; }
.pcard__obj img { height: 100%; width: auto; max-width: none; }
.pcard__obj.obj::after { left: -10%; right: -10%; bottom: -3%; height: 7%; }
@media (hover: hover) { .pcard:hover .pcard__obj .obj__in { transform: translateY(-10px) rotate(-3deg); } }
.pcard .muted { font-size: .95rem; }
.pcard__size { margin-top: auto !important; padding-top: 14px; color: var(--fumo); }
.pcard .pill { margin-top: 14px; align-self: flex-start; box-shadow: inset 0 0 0 1px var(--line); }
.promo { display: inline-block; margin-top: 10px !important; color: var(--green); }
@media (max-width: 899.98px) { .pgrid { grid-template-columns: 1fr; gap: 110px; padding-top: 70px; } }
@media (min-width: 600px) and (max-width: 899.98px) { .pgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- RITUALI ---------- */
.ritual { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); counter-reset: r; }
.ritual li { display: flex; flex-direction: column; gap: 14px; }
.ritual li:nth-child(even) { margin-top: 7svh; }
.ritual figure { border-radius: var(--r-img); overflow: clip; max-width: 320px; box-shadow: 0 26px 50px -26px rgb(23 20 17 / .6); }
.ritual figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ritual h3 { font: 400 var(--t-m)/1.1 var(--f-display); }
.ritual h3 .n { font-variant-numeric: lining-nums; margin-right: 8px; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); align-items: center; }
.split__obj { grid-column: 2 / span 3; }
.split__txt { grid-column: 6 / span 6; }
.wday { background: var(--green); color: var(--calce); border-radius: var(--r-card); padding: clamp(28px, 4vw, 60px); display: grid; grid-template-columns: auto 1fr; gap: 20px 6vw; align-items: center; }
.wday :focus-visible { outline-color: var(--calce); }
.wday__date { font: 400 clamp(5rem, 3rem + 7vw, 11rem)/.85 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.wday__date small { display: block; font: 500 .8rem/1.2 var(--f-text); font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; margin-top: 12px; }
.wday .pill { --pfill: var(--ink); margin-top: 20px; }
.wday p { max-width: 32rem; }
.wday .muted { color: #C9D3CC; }
@media (max-width: 899.98px) {
  .ritual { grid-template-columns: 1fr 1fr; }
  .ritual li:nth-child(even) { margin-top: 5svh; }
  .split__obj { grid-column: 1 / span 5; }
  .split__txt { grid-column: 1 / -1; }
  .wday { grid-template-columns: 1fr; }
}

/* ---------- PROSE (privacy) ---------- */
.prose { max-width: 42rem; }
.prose h2 { font: 400 var(--t-m)/1.15 var(--f-display); margin: 2.2em 0 .6em; }
.prose p, .prose li { margin-top: .7em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose a { text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr) + 20px) var(--m) 60px; }
.nf .obj { width: min(46vw, 560px); margin: 0 auto 28px; }
.nf h1 { font: 400 var(--t-xl)/1 var(--f-display); font-size: clamp(2.4rem, 1rem + 4vw, 5rem); }
.nf p { margin: 16px auto 26px; max-width: 30rem; }
.nf .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 899.98px) { .nf .obj { width: 80vw; } }

@media (max-width: 899.98px) {
  .phero:not(:has(.phero__obj)) { padding-top: calc(var(--hdr) + 7svh); }
  .cols > *, .incl > * { grid-column: 1 / -1 !important; }
  .faq { margin-top: 18px; }
}
@media (hover: hover) { .filters button[aria-pressed="true"]:hover { background: var(--umber); transform: translateY(-1px); } .filters button { transition: background .3s var(--ease-ui), color .3s, transform .3s var(--ease-ui); } }
.check a, .fineprint a { display: inline-block; padding: 4px 0; text-decoration: none; background: linear-gradient(currentColor 0 0) left calc(100% - 4px) / 100% 1px no-repeat; transition: background-size .4s var(--ease-ui); }
@media (hover: hover) { .check a:hover, .fineprint a:hover { background-size: 100% 2px; } }
.check a:focus-visible, .fineprint a:focus-visible { background-size: 100% 2px; }

/* ---- jury fix pass ---- */
.phero__word--long { font-size: clamp(4rem, 12.6vw, 16rem); }
@media (max-width: 899.98px) { .phero__word--long { font-size: 11.6vw; } }
.wday__date { display: flex; flex-direction: column; gap: 10px; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 4.2rem); font-style: italic; line-height: 1; }
.wday__date small { margin: 0; font-style: normal; color: #C9D3CC; }
main > .sec:last-child, main > .book:last-child, main > .list:last-child { padding-bottom: 9svh; }
.phero--short { min-height: 0; padding-top: calc(var(--hdr) + 2svh + 17vw * .8 + 5svh); }
@media (max-width: 899.98px) { .phero--short { padding-top: calc(var(--hdr) + 10px + 24vw * .55 + var(--oh-p, 48vw) + 20px); } }
.phero__obj .obj__in { animation-delay: 0s; }
.phero h1 { text-wrap: balance; }
@media (min-width: 900px) { .phero:not(.phero--short) { min-height: 0; padding-top: calc(var(--hdr) + 2svh + clamp(5rem, 17vw, 21rem) * .82 + clamp(20px, 3vw, 48px)); } }

/* sposa hero actions; form fields and the thank-you note clear the sticky header */
.phero__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.form .input, .form [aria-invalid], .done { scroll-margin-top: calc(var(--hdr) + 24px); }
