/* ============================================================================
   The simple pages (templates/page.php, templates/contatti.php), redrawn on 2026-11-24.
   Loaded only by those two templates, after site.css. Everything is under .pg: the blog shares
   .prose and the old .phero with these pages and must not change.

   The look is «Brace» made plain: its shapes (the cut corner, the diagonal under the hero,
   uppercase headings, ink and orange) without the landing pages' sections and pictures. The
   text of these pages is stored HTML (pages.body_html) built from a fixed set of pieces
   (.steps-b, .fcards, .inclist, .pc-grid, details, …): this file redraws those pieces, so
   every page that uses them changes at once and nothing in the database had to be touched.

   The body is one centred column. Running text keeps a readable width (760px); the pieces that
   are grids or panels take the full 1120px.
   ============================================================================ */
.pg{
  --pg-ink:#17100c;--pg-cream:#F7F1E9;--pg-line:#e6dccf;--pg-mut:#62564c;
  --pg-o1:#C55F0D;--pg-o2:#EE8421;--pg-o3:#FFB45C;
  --pg-chip:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%);
  --pg-cut:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));
  --pg-hexmask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E")}
body:has(.pg) .site-header{background:#17100c;box-shadow:inset 0 -3px 0 var(--brand)}
body:has(.pg) .site-footer{margin-top:0}
.pg-wrap{position:relative;z-index:1;max-width:1220px;margin-inline:auto;padding-inline:clamp(20px,5vw,64px)}

/* ---------- hero ---------- */
.pg-hero{position:relative;isolation:isolate;padding-block:clamp(40px,5.5vw,76px) calc(clamp(44px,5.5vw,76px) + 4.2vw);color:#fff;
  background:radial-gradient(56% 90% at 92% 8%,rgba(238,132,33,.46),transparent 62%),radial-gradient(46% 70% at 0 100%,rgba(101,25,6,.85),transparent 66%),var(--pg-ink)}
/* honeycomb lines, fading out towards the text */
.pg-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--pg-o3);opacity:.2;pointer-events:none;
  -webkit-mask-image:var(--pg-hexmask),radial-gradient(70% 90% at 82% 20%,#000,transparent 72%);-webkit-mask-size:56px 100px,100% 100%;-webkit-mask-composite:source-in;
  mask-image:var(--pg-hexmask),radial-gradient(70% 90% at 82% 20%,#000,transparent 72%);mask-size:56px 100px,100% 100%;mask-composite:intersect}
/* the diagonal: a white triangle laid over the end of the hero */
.pg-hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:4.2vw;background:#fff;clip-path:polygon(0 100%,100% 0,100% 100%)}
.pg-hero__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,5vw,76px);align-items:center}
.pg-hero--plain .pg-hero__grid{grid-template-columns:minmax(0,1fr)}
.pg-hero--plain .pg-hero__text{max-width:900px}
.pg-crumbs{display:flex;flex-wrap:wrap;gap:.2em .6em;min-height:1.2em;font-family:var(--display);font-weight:600;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.pg-crumbs a{color:var(--pg-o3);text-decoration:none}
.pg-crumbs a:hover{color:#fff;text-decoration:none}
.pg-hero h1{margin:.55em 0 0;font-size:clamp(1.85rem,3.6vw,3.1rem);font-weight:800;line-height:1.07;letter-spacing:-.008em;text-transform:uppercase;color:#fff;text-wrap:balance}
.pg-hero__sub{margin:18px 0 0;max-width:56ch;font-family:var(--font);font-weight:400;font-size:clamp(1.05rem,1.4vw,1.22rem);line-height:1.55;letter-spacing:0;text-transform:none;color:rgba(255,255,255,.88)}
.pg-hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
/* the picture: the right two thirds of the page's old banner, in a cut-corner frame with an ember block behind */
.pg-hero__pic{position:relative;margin:0;aspect-ratio:4/3}
.pg-hero__pic::before{content:"";position:absolute;inset:16px -16px -16px 16px;background:linear-gradient(135deg,var(--pg-o2),var(--pg-o1));clip-path:var(--pg-chip)}
.pg-hero__pic span{position:absolute;inset:0;background:#2a1d15 right center/152% auto no-repeat;clip-path:var(--pg-chip)}

/* ---------- hero, full width (/metodo, /contenuti-premium) ----------
   The picture fills the whole hero (.pg-hero__bg) and the text sits on its quiet side, over a veil
   that fades out towards the subject. --flip mirrors the picture when its subject is on the left.
   --light is for a pale picture: ink text, a cream veil. On a phone the dark one keeps the picture
   behind the text under a heavier veil; the light one moves it into a band under the text. */
.pg-hero--full{display:grid;align-items:center;min-height:clamp(430px,44vw,600px);background:var(--pg-ink)}
.pg-hero--full .pg-hero__grid{width:100%;grid-template-columns:minmax(0,1fr)}
.pg-hero--full .pg-hero__text{max-width:620px}
.pg-hero__bg{position:absolute;inset:0;z-index:-2;background:center/cover no-repeat}
.pg-hero--flip .pg-hero__bg{transform:scaleX(-1)}
.pg-hero--full::before{opacity:1;-webkit-mask:none;mask:none;
  background:linear-gradient(90deg,rgba(23,16,12,.95) 0,rgba(23,16,12,.86) 30%,rgba(23,16,12,.38) 56%,rgba(23,16,12,0) 78%)}
.pg-hero--light{color:var(--pg-ink);background:#f6efe5}
.pg-hero--light::before{background:linear-gradient(90deg,rgba(249,243,235,.92) 0,rgba(249,243,235,.6) 36%,rgba(249,243,235,0) 58%)}
.pg-hero--light h1{color:var(--pg-ink)}
.pg-hero--light .pg-hero__sub{color:#4a3f36}
.pg-hero--light .pg-crumbs{color:rgba(23,16,12,.4)}
.pg-hero--light .pg-crumbs a{color:var(--pg-o1)}
.pg-hero--light .pg-crumbs a:hover{color:var(--pg-ink)}
/* three short facts under the tagline */
.pg-hero__facts{display:flex;flex-wrap:wrap;gap:10px 26px;margin:26px 0 0;padding:0;list-style:none;font-family:var(--display);font-weight:700;font-size:.86rem;letter-spacing:.08em;text-transform:uppercase}
.pg-hero__facts li{display:flex;align-items:center;gap:.6em;margin:0}
.pg-hero__facts li::before{content:"";width:10px;height:11px;background:linear-gradient(160deg,var(--pg-o2),var(--pg-o1));clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
@media(max-width:760px){
  .pg-hero--full{min-height:0}
  .pg-hero--full::before{background:linear-gradient(180deg,rgba(23,16,12,.9),rgba(23,16,12,.62))}
  .pg-hero--light{padding-bottom:calc(200px + 4.2vw)}
  .pg-hero--light::before{display:none}
  .pg-hero--light .pg-hero__bg{inset:auto 0 0 0;height:230px;background-position:right center;
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 46%);mask-image:linear-gradient(180deg,transparent,#000 46%)}
}

/* ---------- buttons, wherever they are in these pages ---------- */
.pg .btn{padding:.78em 1.3em;border:0;border-radius:0;font-size:1rem;line-height:1.2;background:linear-gradient(135deg,var(--pg-o2),var(--pg-o1));clip-path:var(--pg-cut);transition:filter .2s,transform .2s}
.pg .btn:hover{background:linear-gradient(135deg,var(--pg-o2),var(--pg-o1));filter:brightness(1.08);transform:translateY(-2px)}
.pg .btn.ghost,.pg .btn.ghost:hover{color:#fff;background:rgba(255,255,255,.16)}
.pg .btn--wa,.pg .btn--wa:hover{background:#16864a}

/* ---------- body ---------- */
.page.pg .prose.pg-body{max-width:1120px;margin-inline:auto;padding:clamp(34px,4.5vw,64px) clamp(20px,5vw,64px) clamp(64px,8vw,110px);font-size:1.06rem;line-height:1.72;color:#2b2724}
.pg-body > :is(p,ul,ol,h2,h3,h4,blockquote,hr,details,nav,dl){max-width:760px;margin-inline:auto}
.pg-body > :is(.inclist,.map-embed,.video-embed,figure){max-width:900px;margin-inline:auto}
.pg .prose h2{position:relative;margin-top:2.2em;padding-top:20px;font-size:clamp(1.45rem,2.4vw,2rem);font-weight:800;line-height:1.14;letter-spacing:-.005em;text-transform:uppercase;color:var(--pg-ink)}
.pg .prose h2::before{content:"";position:absolute;left:0;top:0;width:54px;height:4px;background:linear-gradient(90deg,var(--pg-o2),var(--pg-o1));clip-path:polygon(0 0,100% 0,calc(100% - 4px) 100%,0 100%)}
.pg .prose h2[style*="center"]::before{left:50%;translate:-50% 0}
.pg .prose > h2:first-child{margin-top:0}
/* only the headings of the running text: the ones inside a piece (a step, a result card) keep the colour their piece gives them */
.pg-body > h3{font-size:1.3rem;color:var(--pg-ink)}
.pg-body > h4{color:#993300}
.pg .prose .eyebrow{max-width:760px;margin:2.6em auto .1em}
.pg .prose .eyebrow::after{display:none}
.pg .prose .eyebrow + h2{margin-top:.4em;padding-top:0}
.pg .prose .eyebrow + h2::before{display:none}
/* the bullets stay hexagons, but they no longer grow and spin under the pointer */
/* :where() keeps these two as weak as the rules they undo in site.css: a list inside a piece (the
   points of a step card, the yes/no columns) has its own hover rule, which must win. Written with
   .pg they were stronger, and the points of a step card turned dark on dark under the pointer. */
:where(.pg) .prose ul li:hover{padding-left:1.5em;color:inherit}
:where(.pg) .prose ul li:hover::before{scale:1;background:var(--brand);animation:none}
/* media never float here: the text column is centred, a float would hang outside it */
.page.pg .prose > figure,.page.pg .prose > .video-embed{float:none;width:auto;margin-block:1.6em}
.pg .prose img,.pg .prose figure,.pg .video-embed,.pg .map-embed{border-radius:0}
.pg .prose figure:has(img[src^="data:image/svg"]){display:none}   /* a grey placeholder left where a picture is still to come (chi siamo) */
.pg .prose blockquote{position:relative;padding:.2em 0 .2em 1.4em;border:0;border-radius:0;background:none;font-family:var(--display);font-weight:600;font-size:1.28rem;line-height:1.4;color:var(--pg-ink)}
.pg .prose blockquote::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--pg-o2),var(--pg-o1))}
.pg .prose table{font-size:.95rem}
.pg .prose th{color:#fff;background:var(--pg-ink);border-color:var(--pg-ink)}
.pg .prose .cta-row{margin-block:2em}

/* ---------- the pieces ---------- */
/* steps: ink blocks with a cut corner, the big outlined number in orange; side by side when short */
.pg .prose .steps-b{--card-red:var(--pg-ink);--num-stroke:var(--pg-o2);--num-fallback:var(--pg-o2);--accent:var(--pg-o3);--icon:var(--pg-o3);--body:#d9cfc6;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px}
.pg .prose .steps__card{border-radius:0;padding:1.7rem 1.6rem;clip-path:var(--pg-chip)}
.pg .prose .steps__card:hover{transform:none}
.pg .prose .steps__num{right:22px;font-family:var(--display);font-size:128px;top:-22px;opacity:.55}
.pg .prose .steps__card--final .steps__num{-webkit-text-stroke-color:var(--pg-o3)}
.pg .prose .steps__title{text-transform:none;font-size:1.2rem;color:#fff}
/* the "why" cards. Close to what they were (a tinted card, the big faded icon in the lower right
   corner, title, short rule, text), in the new shape: cut corner, no border. The small icon that
   sat above the title is hidden (Giorgio, 2026-11-24: one icon is enough, the watermark); it is
   still in the stored text, so it comes back by deleting one line here. */
.pg .prose .fcards{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:14px}
/* exactly four cards: two by two, then four in a row; never three and one left over */
@media (min-width:600px){.pg .prose .fcards:has(> .fcard:nth-child(4):last-child){grid-template-columns:repeat(2,1fr)}}
@media (min-width:1080px){.pg .prose .fcards:has(> .fcard:nth-child(4):last-child){grid-template-columns:repeat(4,1fr)}}
.pg .prose .fcard{min-height:168px;padding:1.5rem 1.5rem 1.7rem;border:0;border-radius:0;background:var(--pg-cream);clip-path:var(--pg-chip)}
@media (max-width:599px){.pg .prose .fcard{min-height:140px}}
.pg .prose .fcard__chip,.pg .prose .fcard:has(.badge) .fcard__chip{display:none}
.pg .prose .fcard__watermark{right:-12px;bottom:-18px;font-size:118px;color:var(--pg-o2);opacity:.2}
.pg .prose .fcard .badge{margin-bottom:12px}
.pg .prose .fcard__title{margin:0 0 10px;font-size:1.1rem;line-height:1.25;color:var(--pg-ink)}
.pg .prose .fcard__rule{width:30px;height:3px;margin:0 0 12px;border-radius:0;background:linear-gradient(90deg,var(--pg-o2),var(--pg-o1))}
.pg .prose .fcard__text{font-size:.94rem;line-height:1.6;color:var(--pg-mut)}
/* "what is included": the spine and its nodes, in the page's colours */
.pg .prose .inclist{--coral-spine:var(--pg-o3);--coral-node:#fff;--coral-ring:var(--pg-o1);--coral-icon:var(--pg-o1);--coral-hover:var(--pg-cream);--clay-title:var(--pg-ink);--clay-body:var(--pg-mut)}
.pg .prose .inclist__row{border-radius:0}
/* every card family: cream, no border, no shadow, the cut corner */
.pg .prose :is(.case-card,.result-card,.quote-card,.feature-card,.partner-card,.hub-card){border:0;border-radius:0;box-shadow:none;background:var(--pg-cream);clip-path:var(--pg-chip)}
.pg .prose .hub-card:hover{transform:translateY(-4px);box-shadow:none}
.pg .prose .result-card__head{background:var(--pg-ink)}
.pg .prose .feature-card--hl{background:#fff;box-shadow:inset 0 0 0 2px var(--pg-o1)}
.pg .prose .partner-card__link{border-radius:0}
.pg .prose .case-card__result{border-radius:0;background:#fff}
.pg .prose .pc-col{border-radius:0;clip-path:var(--pg-chip)}
.pg .prose .pc-col--no{border-color:var(--pg-line);background:var(--pg-cream)}
/* accordions */
.pg .prose details{margin-block:.6em;border:0;border-radius:0;background:var(--pg-cream);clip-path:var(--pg-chip)}
.pg .prose details[open]{box-shadow:inset 4px 0 0 var(--pg-o1)}
.pg .prose summary{padding:1.1em 3.2em 1.1em 1.3em;color:var(--pg-ink)}
.pg .prose summary::after{content:"+";top:.62em;right:1.1em;width:auto;height:auto;border:0;transform:none;opacity:1;font-family:var(--display);font-size:1.6rem;font-weight:500;line-height:1;color:var(--pg-o1);transition:rotate .25s}
.pg .prose details[open] summary::after{transform:none;rotate:45deg}
.pg .prose details>*:not(summary){padding-inline:1.3em}
/* the consent boxes in place of a map or a video */
.pg .mtd-gate{border-radius:0;clip-path:var(--pg-chip)}

/* ---------- pieces for a page written by hand (first used by /metodo, migration 17) ----------
   Classes put in the stored text, so any simple page can use them. */
/* the opening paragraph */
.pg .prose .pg-lead{font-family:var(--display);font-weight:500;font-size:clamp(1.2rem,1.9vw,1.5rem);line-height:1.45;color:var(--pg-ink)}
/* a dark panel across the page: a big line on the left, the text on the right */
.pg .prose blockquote.pg-panel{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px clamp(24px,4vw,60px);align-items:center;max-width:none;
  margin:clamp(36px,4.5vw,60px) 0;padding:clamp(28px,4vw,54px) clamp(22px,4.5vw,64px);font-family:var(--font);font-weight:400;font-size:1rem;line-height:1.7;color:#ddd2c8;
  background:radial-gradient(60% 120% at 0 0,rgba(197,95,13,.5),transparent 62%),var(--pg-ink);clip-path:var(--pg-chip)}
.pg .prose blockquote.pg-panel::before{display:none}
.pg .prose .pg-panel__title{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(1.5rem,2.7vw,2.3rem);line-height:1.12;text-transform:uppercase;color:#fff;text-wrap:balance}
.pg .prose .pg-panel p:last-child{margin-bottom:0}
.pg .prose .pg-panel strong{color:var(--pg-o3)}
/* a few short lines that end on one word, between two rules */
.pg .prose .pg-punch{max-width:760px;margin:clamp(34px,4vw,54px) auto;padding-block:clamp(22px,3vw,34px);text-align:center;border-block:1px solid var(--pg-line);
  font-family:var(--display);font-weight:600;font-size:clamp(1.12rem,1.6vw,1.32rem);line-height:1.4;color:var(--pg-ink)}
.pg .prose .pg-punch p{margin:0 0 .35em}
.pg .prose .pg-punch p:last-child{margin:.35em 0 0;font-weight:800;font-size:clamp(2rem,4vw,3rem);line-height:1;text-transform:uppercase;color:var(--pg-o1)}
.pg .prose .pg-punch p:last-child strong{color:inherit}
/* two points side by side, each with its outlined number */
.pg .prose ol.pg-pair{counter-reset:pgpair;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;max-width:900px;margin-block:1.6em;padding:0;list-style:none}
.pg .prose .pg-pair li{counter-increment:pgpair;position:relative;margin:0;padding:1.5rem 1.5rem 1.6rem 5.2rem;min-height:104px;background:var(--pg-cream);clip-path:var(--pg-chip)}
.pg .prose .pg-pair li::before{content:counter(pgpair);position:absolute;left:1.4rem;top:.9rem;font-family:var(--display);font-weight:800;font-size:4rem;line-height:1;color:transparent;-webkit-text-stroke:2px var(--pg-o2)}
/* steps along a line: a numbered hexagon, the line to the next one, a title, a few words */
.pg .prose ol.pg-moves{counter-reset:pgmove;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 0;max-width:none;margin:2em 0 2.6em;padding:0;list-style:none}
.pg .prose .pg-moves li{counter-increment:pgmove;position:relative;margin:0;padding:66px 26px 0 0;--c:#E08A1E}
.pg .prose .pg-moves li:nth-child(2){--c:#C96A10}
.pg .prose .pg-moves li:nth-child(3){--c:#A8480A}
.pg .prose .pg-moves li:nth-child(4){--c:#7A2A08}
.pg .prose .pg-moves li::before{content:counter(pgmove,decimal-leading-zero);position:absolute;left:0;top:0;display:grid;place-items:center;width:52px;height:46px;
  font-family:var(--display);font-weight:800;font-size:1rem;color:#fff;background:var(--c);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.pg .prose .pg-moves li::after{content:"";position:absolute;left:60px;right:8px;top:22px;height:2px;background:linear-gradient(90deg,var(--c),var(--pg-line))}
.pg .prose .pg-moves li:last-child::after{background:linear-gradient(90deg,var(--c),transparent)}
.pg .prose .pg-moves h3{margin:0 0 .5em;font-size:1.14rem;line-height:1.2;text-transform:uppercase;letter-spacing:.01em;color:var(--pg-ink)}
.pg .prose .pg-moves p{margin:0;font-size:.95rem;line-height:1.6;color:var(--pg-mut)}
@media(max-width:980px){.pg .prose ol.pg-moves{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.pg .prose blockquote.pg-panel{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){
  .pg .prose ol.pg-moves{grid-template-columns:minmax(0,1fr);gap:26px}
  .pg .prose .pg-moves li{padding:0 0 0 68px;min-height:46px}
  .pg .prose .pg-moves li::after{left:25px;right:auto;top:52px;bottom:-22px;width:2px;height:auto;background:linear-gradient(180deg,var(--c),var(--pg-line))}
  .pg .prose .pg-moves li:last-child::after{display:none}
}

/* ---------- the contact panel ([[contact-form]] in a page's text, and the contact page) ----------
   Dark, with the CRM's form in its dark theme. On wide screens: words and the two buttons on the
   left, the form on the right. The form page has 16px of padding of its own: the frame is pulled
   out by as much. No script may resize it, so its height is fixed: 470px while it is at least 460px
   wide (two columns of fields), taller when the panel gets narrow. */
.pg .contact-card--dark{container-type:inline-size;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:0 clamp(24px,4vw,56px);align-content:start;
  max-width:none;margin:clamp(48px,6vw,84px) 0 28px;padding:clamp(24px,3.4vw,46px);border:0;border-radius:0;color:#fff;background:var(--pg-ink);box-shadow:none;clip-path:var(--pg-chip)}
.pg .contact-card--dark::before{display:none}
.pg .prose .contact-card--dark h3,.pg .contact-card--dark h3{grid-column:1;margin:0;font-size:clamp(1.35rem,2.1vw,1.8rem);font-weight:800;line-height:1.14;text-transform:uppercase;color:#fff}
.pg .contact-card--dark .muted{grid-column:1;margin:14px 0 0;color:rgba(255,255,255,.8)}
.pg .contact-card--dark .contact-card__cta{grid-column:1;justify-content:flex-start;margin:22px 0 0}
.pg .contact-card--dark .contact-embed{grid-column:2;grid-row:1 / span 4;display:block;width:calc(100% + 32px);height:470px;margin:-16px;border:0;border-radius:0;background:transparent}
@container (max-width:860px){
  .pg .contact-card--dark .contact-embed{grid-column:1;grid-row:auto;margin:14px -16px -16px}
}
@container (max-width:540px){.pg .contact-card--dark .contact-embed{height:590px}}
@media(max-width:900px){.pg .contact-card--dark{grid-template-columns:minmax(0,1fr)}}

/* ---------- dove siamo: the list of zones as a grid of links ---------- */
.pg--dove-siamo .pg-body > ul:first-of-type{max-width:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;margin-block:1.6em 2em}
.pg--dove-siamo .pg-body > ul:first-of-type li{margin:0;padding:18px 20px 20px;font-size:.96rem;line-height:1.5;color:var(--pg-mut);background:var(--pg-cream);clip-path:var(--pg-chip)}
.pg--dove-siamo .pg-body > ul:first-of-type li::before{display:none}
.pg--dove-siamo .pg-body > ul:first-of-type li:hover{padding-left:20px}
/* the link stays in the line: each item is "<link>: what we do there", and the colon belongs after the name */
.pg--dove-siamo .pg-body > ul:first-of-type a{font-family:var(--display);font-weight:700;font-size:1.08rem;color:var(--pg-ink);text-decoration:none}
.pg--dove-siamo .pg-body > ul:first-of-type a:hover{color:var(--pg-o1)}

/* ---------- contact page ---------- */
.pg-contact{padding-block:clamp(34px,4.5vw,60px) clamp(64px,8vw,110px)}
.pg-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pg-tile{display:grid;grid-template-columns:52px minmax(0,1fr);gap:2px 16px;align-items:center;padding:22px 24px;color:var(--pg-ink);text-decoration:none;background:var(--pg-cream);clip-path:var(--pg-chip);transition:background-color .2s}
a.pg-tile:hover{text-decoration:none;background:#f0e4d4}
.pg-tile__ic{grid-row:span 2;display:grid;place-items:center;width:52px;height:46px;color:#fff;background:linear-gradient(160deg,var(--pg-o3),var(--pg-o1));clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.pg-tile__ic svg{width:22px;height:22px}
.pg-tile h3{margin:0;font-size:1.02rem;text-transform:uppercase;letter-spacing:.04em;color:var(--pg-ink)}
.pg-tile p{margin:0;font-size:.98rem;line-height:1.4;color:var(--pg-mut)}
a.pg-tile p{font-weight:600;color:var(--pg-o1)}
.pg-contact__grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,72px);align-items:start;margin-top:clamp(40px,5vw,72px)}
.pg-contact__text.prose{max-width:none;padding:0;font-size:1.04rem}
.pg .pg-contact__form{grid-template-columns:minmax(0,1fr);margin:0}
.pg .pg-contact__form .contact-embed{grid-column:1;grid-row:auto;margin:14px -16px -16px}

/* ---------- contenuti premium (templates/contenuti-premium.php) ----------
   Two numbered steps: the guides to tick, then the contacts in a dark panel. On a wide screen the
   panel stays beside the grid while it scrolls (only if the window is tall enough to hold it).
   The old .premium-* rules in site.css are no longer used; .pcard is redrawn here. */
.pgp{padding-block:clamp(34px,4.5vw,64px) clamp(64px,8vw,110px);scroll-margin-top:84px}
.pgp-form{counter-reset:pgsel;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:clamp(24px,3.4vw,52px);align-items:start}
.pgp-form > .form-error--top{grid-column:1 / -1;margin:0;padding:.8em 1em;background:#fbe9e4}
.pgp-step{display:grid;grid-template-columns:52px minmax(0,1fr);gap:0 16px;align-items:start;margin-bottom:24px}
.pgp-step__n{display:grid;place-items:center;width:52px;height:46px;font-family:var(--display);font-weight:800;font-size:1.25rem;color:#fff;background:linear-gradient(160deg,var(--pg-o2),var(--pg-o1));clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.pgp-step__n svg{width:22px;height:22px}
.pgp-step h2{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(1.3rem,2vw,1.65rem);line-height:1.12;text-transform:uppercase;color:var(--pg-ink)}
.pgp-step p{margin:5px 0 0;font-size:.98rem;line-height:1.5;color:var(--pg-mut)}
.pgp-error{margin:0 0 16px;padding:.7em 1em;background:#fbe9e4}
/* the covers: a frame 3px wide that turns ember when the guide is ticked. The frame is the label's
   own background showing around the inner block, so it also follows the cut corner. */
.pgp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:14px;min-width:0;margin:0;padding:0;border:0}
.pg .pcard{display:block;padding:3px;overflow:visible;border:0;border-radius:0;background:var(--pg-line);box-shadow:none;clip-path:var(--pg-chip);transition:background-color .15s}
.pg .pcard:hover{background:#cdbba6}
.pg .pcard__in{display:flex;flex-direction:column;height:100%;background:#fff;clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,0 100%)}
.pg .pcard__img{height:auto;aspect-ratio:800/1156;object-position:center}
.pg .pcard__title{min-height:64px;padding:12px 48px 14px 14px;font-family:var(--display);font-weight:700;font-size:.95rem;line-height:1.3;color:var(--pg-ink)}
/* the tick sits beside the title, not on the cover (it hid the cover's own title) */
.pg .pcard__check{top:auto;right:14px;bottom:17px;width:26px;height:26px;border:2px solid #b9a892;border-radius:0;background:#fff}
.pg .pcard:has(input:checked){border:0;box-shadow:none;background:linear-gradient(135deg,var(--pg-o2),var(--pg-o1))}
.pg .pcard:has(input:checked) .pcard__check{border-color:var(--pg-o1);background:var(--pg-o1)}
.pg .pcard:has(input:checked) .pcard__title{color:var(--pg-o1)}
/* the cut corner would clip an outline: the keyboard's place is shown by the frame turning ink */
.pg .pcard:has(input:focus-visible){outline:0;background:var(--pg-ink)}
/* the panel */
.pgp-panel{padding:clamp(20px,2.2vw,28px);color:#fff;background:radial-gradient(70% 50% at 100% 0,rgba(197,95,13,.5),transparent 70%),var(--pg-ink);clip-path:var(--pg-chip)}
@media(min-width:981px) and (min-height:760px){.pgp-data{position:sticky;top:84px}}
.pgp-step--dark{margin-bottom:18px}
.pgp-step--dark h2{color:#fff}
.pgp-step--dark .pgp-count{font-family:var(--display);font-weight:700;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--pg-o3)}
.pgp-count b::before{content:counter(pgsel)}
.pgp .pcard input:checked{counter-increment:pgsel}
.pgp-count__none{display:none}
.pgp-form:not(:has(.pcard input:checked)) .pgp-count__some{display:none}
.pgp-form:not(:has(.pcard input:checked)) .pgp-count__none{display:inline;color:rgba(255,255,255,.55)}
.pgp-field{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.pgp-panel label{font-size:.86rem;font-weight:600;color:rgba(255,255,255,.88)}
.pgp-panel input:is([type=text],[type=email],[type=tel]){width:100%;padding:.58em .8em;border:1px solid rgba(255,255,255,.24);border-radius:0;font:inherit;color:#fff;background:rgba(255,255,255,.07)}
.pgp-panel input:is([type=text],[type=email],[type=tel]):focus{outline:2px solid var(--pg-o3);outline-offset:1px;border-color:transparent}
.pgp-sum{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:6px 14px;align-items:center;margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.14)}
.pgp-sum input{text-align:center}
.pgp-sum small,.pgp-sum .form-error{grid-column:1 / -1}
.pgp-sum small{font-size:.78rem;line-height:1.45;color:rgba(255,255,255,.55)}
.pgp-panel .pgp-consent{display:flex;gap:.7em;align-items:flex-start;margin:12px 0 14px;font-size:.84rem;font-weight:400;line-height:1.5;color:rgba(255,255,255,.78)}
.pgp-consent input{flex:none;width:18px;height:18px;margin:.15em 0 0;accent-color:var(--pg-o2)}
.pgp-consent a{color:var(--pg-o3)}
.pgp-panel .form-error{margin:.2em 0 0;color:#ffb59a}
.pg .pgp-submit{display:block;width:100%;padding:.85em 1.2em;font-size:1.02rem;text-align:center;cursor:pointer}
.pgp-note{margin:10px 0 0;font-size:.8rem;line-height:1.5;color:rgba(255,255,255,.58)}
/* after the form: the guides to download */
.pgp-done{max-width:860px}
.pgp-dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;margin:0 0 26px}
.pgp-dl__item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px 26px 12px 12px;color:var(--pg-ink);text-decoration:none;background:var(--pg-cream);clip-path:var(--pg-chip);transition:background-color .2s}
.pgp-dl__item:hover{text-decoration:none;background:#f0e4d4}
.pgp-dl__item img{display:block;width:64px;height:auto}
.pgp-dl__title{font-family:var(--display);font-weight:700;font-size:1rem;line-height:1.3}
.pgp-dl__go{font-family:var(--display);font-weight:700;font-size:.84rem;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--pg-o1)}
.pgp-back a{font-weight:600;color:var(--pg-o1)}
@media(max-width:980px){.pgp-form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.pgp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pg .pcard__title{padding:10px 42px 12px 10px;font-size:.88rem}.pg .pcard__check{right:10px;bottom:14px}}

/* ---------- smaller screens ---------- */
@media(max-width:900px){
  .pg-hero__grid,.pg-contact__grid{grid-template-columns:minmax(0,1fr)}
  .pg-hero__pic{max-width:440px;margin-right:16px}
  .pg-tiles{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px){
  .pg-hero__cta .btn{width:100%}
  .pg .prose .steps__num{font-size:104px;top:-16px}
}
