/* Trattamenti e prezzi — homepage section and the price note on treatment pages.
   Colours follow the site: navy #233d50, ink #284050, gold #a8844a / #c5a46d, paper #f9f8f3. */

/* ---------- line icons (inline SVG) ---------- */
.pIco { flex: none; overflow: visible; }
.pIco .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pIco .lift, .pIco .curl { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pIco .drop { transform-box: fill-box; transform-origin: 50% 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.pIco .pulse { transform-box: fill-box; transform-origin: center; }
@keyframes pRedraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.pRow:hover .draw, .pRow:focus-visible .draw, .pFeature:hover .draw { animation: pRedraw .9s cubic-bezier(.65, 0, .35, 1); }
.pRow:hover .lift, .pRow:focus-visible .lift { transform: rotate(-7deg) translateY(-1px); }
.pRow:hover .curl, .pRow:focus-visible .curl { transform: scaleY(1.12) translateY(-1px); }
.pRow:hover .drop, .pRow:focus-visible .drop { transform: translateY(3px); }
.pRow:hover .pulse, .pRow:focus-visible .pulse, .pFeature:hover .pulse { animation: pBreathe 1.6s ease-in-out infinite; }

/* ---------- section ---------- */
.prices { padding: clamp(56px, 8vw, 120px) 7vw; max-width: 1250px; margin: auto; }
.pHead { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.pKicker, .pListLabel, .pLabel, .pTag {
  margin: 0 0 10px; color: #6e5838; font: 600 .72rem/1.3 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase;
}
.prices h2 { margin: 0; font: normal clamp(33px, 4.6vw, 68px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.045em; color: #233d50; }
.prices h2 i { font-style: italic; }

/* featured: dermopigmentation */
.pFeature {
  display: grid; grid-template-columns: clamp(140px, 16vw, 200px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start;
  padding: clamp(24px, 4vw, 48px); background: #f2f5f3; border: 1px solid #d6c5a6;
}
.pfArt { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #faf8f3; border: 1px solid #e3d7bf; }
.pfArt .pTag { position: absolute; left: 12px; top: 10px; margin: 0; }
.pIcoXL path, .pIcoXL circle { stroke-width: .85; }
.pfBody h3 { margin: 0 0 12px; font: normal clamp(28px, 3vw, 42px)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.035em; color: #233d50; }
.pfBody > p { margin: 0 0 14px; max-width: 52ch; font-size: 17px; line-height: 1.7; }
.pfList { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pfList li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; max-width: 56ch; }
.pfList li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #c5a46d; }
.pfList li.pInc::before { width: 11px; height: 6px; top: .5em; left: 2px; border-radius: 0; background: none; border: solid #a8844a; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.pfList b { font-weight: 600; color: #233d50; }
.pfPrice {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label label label" "num cap cta" "num cap links";
  align-items: center; gap: 6px clamp(20px, 3vw, 40px); padding-top: clamp(20px, 2.5vw, 28px); border-top: 1px solid #d6c5a6;
}
.pfPrice .pLabel { grid-area: label; margin: 0; }
.pfPrice .pfNum { grid-area: num; }
.pfPrice .pfCap { grid-area: cap; margin: 0; max-width: 30ch; }
.pfPrice .entry { grid-area: cta; justify-self: end; white-space: nowrap; }
.pfPrice .pfLinks { grid-area: links; justify-self: end; }
.pfNum { font: normal clamp(34px, 3.6vw, 50px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.03em; color: #233d50; white-space: nowrap; }
.pfCap { color: #5a6b74; font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; }
.pfLinks { display: flex; gap: 18px; margin-top: 4px; font-size: 14.5px; }
.pfLinks a, .pCtaLink { color: #233d50; text-underline-offset: 5px; text-decoration-color: #aa9167; }

/* the other treatments */
.pListLabel { margin-top: clamp(40px, 6vw, 72px); }
.pList { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.pList li { border-bottom: 1px solid #d9ccb2; position: relative; }
.pList li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: #a8844a; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pList li:hover::after, .pList li:focus-within::after { transform: scaleX(1); }
.pRow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 2px; color: #233d50; text-decoration: none; min-height: 44px; }
a.pRow:focus-visible { outline: 2px solid #8a7549; outline-offset: 3px; }
.pName { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pRow .pIco { margin-top: -6px; }
.pT { font: normal clamp(20px, 1.8vw, 24px)/30px Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.pD { font-size: 14px; line-height: 1.5; color: #5a6b74; }
.pP { font: normal 21px/30px Georgia, "Times New Roman", serif; white-space: nowrap; }
.pP.pQ { padding-top: 6px; font: 600 .66rem/1.45 system-ui, sans-serif; letter-spacing: .13em; text-transform: uppercase; color: #6e5838; text-align: right; white-space: normal; max-width: 8.2rem; text-wrap: balance; }

.pCta { display: flex; justify-content: space-between; align-items: center; gap: 18px 32px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 64px); padding-top: 28px; border-top: 1px solid #c5a46d; }
.pCta p { margin: 0; max-width: 46ch; font: normal clamp(21px, 2.2vw, 28px)/1.35 Georgia, "Times New Roman", serif; letter-spacing: -.02em; color: #233d50; }
.pCtaLink { font-size: 15.5px; }

/* ---------- price note on treatment pages ---------- */
.priceNote { margin: 26px 0 8px; max-width: 560px; padding: 18px 22px; border: 1px solid #d6c5a6; background: #f6f4ec; }
.pnRow { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 6px 0; }
.pnRow + .pnRow { border-top: 1px solid #e3d7bf; }
.pnRow span { font: normal 19px/1.3 Georgia, "Times New Roman", serif; color: #233d50; }
.pnRow strong { font: normal 22px Georgia, "Times New Roman", serif; color: #233d50; white-space: nowrap; }
.pnCap { margin: 4px 0 12px; color: #5a6b74; font-size: 14.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pfPrice { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label label" "num cap" "cta links"; row-gap: 14px; }
  .pfPrice .entry, .pfPrice .pfLinks { justify-self: start; }
  .pfPrice .pfLinks { align-self: center; }
}
@media (max-width: 700px) {
  .pFeature { grid-template-columns: minmax(0, 1fr); }
  .pfArt { width: 112px; }
  .pIcoXL { width: 92px; height: 92px; }
  .pP.pQ { font-size: .6rem; letter-spacing: .1em; max-width: 6.6rem; padding-top: 4px; }
  .pfPrice { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "num" "cap" "cta" "links"; row-gap: 10px; }
  .pfArt .pTag { display: none; }
  .pList { grid-template-columns: minmax(0, 1fr); }
  .pRow { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; padding: 17px 0; }
  .pRow .pIco { width: 36px; height: 36px; }
  .pP { font-size: 18px; line-height: 26px; }
  .pT { line-height: 26px; }
  .pRow .pIco { margin-top: -5px; }
  .pfNum { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .pRow:hover .draw, .pRow:focus-visible .draw, .pFeature:hover .draw, .pRow:hover .pulse, .pRow:focus-visible .pulse, .pFeature:hover .pulse { animation: none; }
  .pIco .lift, .pIco .curl, .pIco .drop, .pList li::after { transition: none; }
}
