/* ==========================================================================
   PANETTA - Modello sottopagine Servizi
   Caricato solo sulle pagine con il modello "Servizio (PANETTA)".
   ========================================================================== */

.pcg-srv {
  --pcg-accent: #fda600;
  --pcg-dark: #3d3d3d;
  --pcg-ink: #1f1f1f;
  --pcg-text: #3d3d3d;
  --pcg-muted: #5a5a5a;
  --pcg-soft: #f5f5f3;
  --pcg-line: #e3e3e3;
  --pcg-on-dark: #ffffff;
  --pcg-on-dark-muted: #d6d6d6;
  --pcg-radius: 6px;
  --pcg-wrap: 1240px;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  color: var(--pcg-ink);
  background: #ffffff;
  font-size: 17px;
  line-height: 1.6;
}

/* Reset a specificita' zero: neutralizza gli stili globali di Betheme sugli elementi usati */
.pcg-srv :where(h1, h2, h3, p, ul, li, figure, blockquote, nav, aside, section, a, span, img, details, summary) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}
.pcg-srv :where(ul) { list-style: none; }
.pcg-srv :where(a) { text-decoration: none; }
.pcg-srv *, .pcg-srv *::before, .pcg-srv *::after { box-sizing: border-box; }

.pcg-srv__wrap {
  max-width: var(--pcg-wrap);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.pcg-srv__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pcg-muted);
  line-height: 1.3;
}

/* ---------- Apertura ---------- */
.pcg-srv__hero {
  background: var(--pcg-dark);
  color: var(--pcg-on-dark);
}
.pcg-srv__hero .pcg-srv__wrap {
  padding-top: 56px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.pcg-srv__hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pcg-srv__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--pcg-on-dark-muted);
}
.pcg-srv__crumbs a { color: var(--pcg-on-dark-muted); }
.pcg-srv__crumbs a:hover { color: var(--pcg-on-dark); }
.pcg-srv__crumbs [aria-current] { color: var(--pcg-on-dark); }
.pcg-srv__badge {
  align-self: flex-start;
  background: var(--pcg-accent);
  color: var(--pcg-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.2;
}
.pcg-srv .pcg-srv__title {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pcg-on-dark);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.pcg-srv__intro p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--pcg-on-dark-muted);
  max-width: 680px;
}
.pcg-srv__intro p + p { margin-top: 14px; }
.pcg-srv__intro--quote p { font-style: italic; }

.pcg-srv__media { position: relative; min-width: 0; }
.pcg-srv__media::before {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 55%;
  height: 55%;
  background: var(--pcg-accent);
  border-radius: 4px;
}
.pcg-srv__media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Responsabili ---------- */
.pcg-srv__leads { border-bottom: 1px solid #ececec; }
.pcg-srv__leads .pcg-srv__wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.pcg-srv__leads ul { display: flex; flex-wrap: wrap; gap: 10px; }
.pcg-srv__lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: var(--pcg-soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--pcg-ink);
}
.pcg-srv__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pcg-dark);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}

.pcg-srv a.pcg-srv__lead { color: var(--pcg-ink); transition: background-color .15s ease, box-shadow .15s ease; }
.pcg-srv a.pcg-srv__lead:hover { color: var(--pcg-ink); background: #ebebe8; box-shadow: inset 0 0 0 1px var(--pcg-dark); }
.pcg-srv a.pcg-srv__lead:hover .pcg-srv__avatar { background: var(--pcg-accent); color: var(--pcg-ink); }
.pcg-srv__avatar { transition: background-color .15s ease, color .15s ease; }

/* ---------- Corpo ---------- */
.pcg-srv__body .pcg-srv__wrap {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.pcg-srv__main { display: flex; flex-direction: column; gap: 64px; min-width: 0; }

.pcg-srv__overview { display: flex; flex-direction: column; gap: 20px; }
.pcg-srv__overview .pcg-srv__lede { font-size: 26px; line-height: 1.45; color: var(--pcg-ink); }
.pcg-srv__overview p { font-size: 17px; line-height: 1.7; color: var(--pcg-text); }

.pcg-srv__group { display: flex; flex-direction: column; gap: 28px; }
.pcg-srv__group-head { display: flex; flex-direction: column; gap: 14px; }
.pcg-srv__rule { display: block; width: 48px; height: 4px; background: var(--pcg-accent); }
.pcg-srv .pcg-srv__h2 { font-size: 36px; line-height: 1.15; font-weight: 600; color: var(--pcg-ink); }
.pcg-srv__group-head p { font-size: 17px; line-height: 1.7; color: var(--pcg-text); max-width: 760px; }

.pcg-srv__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pcg-srv__card {
  background: var(--pcg-soft);
  border-radius: var(--pcg-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pcg-srv__num { font-size: 15px; font-weight: 600; color: var(--pcg-muted); line-height: 1; }
.pcg-srv .pcg-srv__card h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--pcg-ink); }
.pcg-srv__card p { font-size: 16px; line-height: 1.65; color: var(--pcg-text); }

.pcg-srv__closing {
  background: var(--pcg-dark);
  color: var(--pcg-on-dark);
  border-radius: var(--pcg-radius);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pcg-srv__closing svg { display: block; }
.pcg-srv__closing p { font-size: 24px; line-height: 1.5; font-weight: 300; color: var(--pcg-on-dark); }

/* ---------- Colonna laterale ---------- */
.pcg-srv__aside { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.pcg-srv__nav { display: flex; flex-direction: column; gap: 4px; }
.pcg-srv__nav .pcg-srv__eyebrow { margin-bottom: 12px; }
.pcg-srv__nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--pcg-text);
  font-size: 15px;
  line-height: 1.35;
  border-bottom: 1px solid #ececec;
}
.pcg-srv__nav a:hover { background: var(--pcg-soft); color: var(--pcg-ink); }
.pcg-srv__nav a[aria-current="page"] {
  background: var(--pcg-accent);
  color: var(--pcg-ink);
  font-weight: 600;
  border-bottom-color: transparent;
}
.pcg-srv__nav-mobile { display: none; }

.pcg-srv__ask {
  background: var(--pcg-dark);
  color: var(--pcg-on-dark);
  border-radius: var(--pcg-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pcg-srv__ask-title { font-size: 20px; line-height: 1.35; font-weight: 500; }
.pcg-srv__ask p { font-size: 15px; line-height: 1.55; color: var(--pcg-on-dark-muted); }

.pcg-srv__btn {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--pcg-accent);
  color: var(--pcg-ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  transition: filter .15s ease;
}
.pcg-srv .pcg-srv__btn:hover { color: var(--pcg-ink); filter: brightness(0.94); }
.pcg-srv__btn--dark { background: var(--pcg-ink); color: #ffffff; min-height: 52px; padding: 0 28px; font-size: 16px; }
.pcg-srv .pcg-srv__btn--dark:hover { color: #ffffff; filter: none; background: #000000; }

/* ---------- Fascia contatti ---------- */
.pcg-srv__cta { background: var(--pcg-accent); color: var(--pcg-ink); }
.pcg-srv__cta .pcg-srv__wrap {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pcg-srv__cta-text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 520px; }
.pcg-srv__cta-text p { font-size: 18px; line-height: 1.5; color: var(--pcg-ink); }

/* ---------- Servizi correlati ---------- */
.pcg-srv__related .pcg-srv__wrap { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.pcg-srv__related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcg-srv__related a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 180px;
  padding: 28px;
  border-radius: var(--pcg-radius);
  border: 1px solid var(--pcg-line);
  color: var(--pcg-ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.pcg-srv__related a:hover { border-color: var(--pcg-dark); background: var(--pcg-soft); }
.pcg-srv__related-name { font-size: 24px; font-weight: 600; line-height: 1.2; }
.pcg-srv__related-more { font-size: 15px; font-weight: 500; color: var(--pcg-text); }

.pcg-srv a:focus-visible, .pcg-srv summary:focus-visible { outline: 3px solid var(--pcg-accent); outline-offset: 3px; }

/* Header trasparente di Betheme (logo 100px + 15px sopra e sotto) sovrapposto all'apertura */
body.header-transparent .pcg-srv__hero .pcg-srv__wrap { padding-top: 186px; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .pcg-srv__hero .pcg-srv__wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pcg-srv__media { max-width: 560px; }
  .pcg-srv__media img { aspect-ratio: 16 / 10; }
  .pcg-srv__body .pcg-srv__wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .pcg-srv__main { order: 1; }
  .pcg-srv__aside { order: 2; }
  .pcg-srv__related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .pcg-srv__wrap { padding-left: 20px; padding-right: 20px; }
  .pcg-srv__hero .pcg-srv__wrap { padding-top: 28px; padding-bottom: 44px; gap: 28px; }
  body.header-transparent .pcg-srv__hero .pcg-srv__wrap { padding-top: 28px; }
  .pcg-srv__badge { font-size: 11px; padding: 6px 12px; }
  .pcg-srv__intro p { font-size: 17px; }
  .pcg-srv__media::before { right: -10px; bottom: -10px; }
  .pcg-srv__body .pcg-srv__wrap { padding-top: 40px; padding-bottom: 48px; gap: 40px; }
  .pcg-srv__main { gap: 44px; }
  .pcg-srv__overview .pcg-srv__lede { font-size: 20px; }
  .pcg-srv__overview p { font-size: 16px; }
  .pcg-srv .pcg-srv__h2 { font-size: 28px; }
  .pcg-srv__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pcg-srv__card { padding: 22px; }
  .pcg-srv .pcg-srv__card h3 { font-size: 18px; }
  .pcg-srv__card p { font-size: 15px; }
  .pcg-srv__closing { padding: 28px 24px; }
  .pcg-srv__closing p { font-size: 18px; }
  .pcg-srv__nav { display: none; }
  .pcg-srv__nav-mobile { display: block; }
  .pcg-srv__nav-mobile summary {
    list-style: none;
    cursor: pointer;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-radius: var(--pcg-radius);
    border: 1px solid #d9d9d9;
    font-size: 16px;
    font-weight: 500;
    color: var(--pcg-ink);
    margin-top: 14px;
  }
  .pcg-srv__nav-mobile summary::-webkit-details-marker { display: none; }
  .pcg-srv__nav-mobile summary svg { transition: transform .15s ease; }
  .pcg-srv__nav-mobile[open] summary svg { transform: rotate(180deg); }
  .pcg-srv__nav-mobile ul { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
  .pcg-srv__nav-mobile a {
    display: block;
    padding: 14px 16px;
    border-radius: 4px;
    border-bottom: 1px solid #ececec;
    color: var(--pcg-text);
    font-size: 16px;
  }
  .pcg-srv__nav-mobile a[aria-current="page"] { background: var(--pcg-accent); color: var(--pcg-ink); font-weight: 600; }
  .pcg-srv__cta .pcg-srv__wrap { padding-top: 36px; padding-bottom: 36px; }
  .pcg-srv__cta-text { flex-basis: 100%; }
  .pcg-srv__cta-text p { font-size: 16px; }
  .pcg-srv__related .pcg-srv__wrap { padding-top: 40px; padding-bottom: 56px; }
  .pcg-srv__related ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pcg-srv__related a { min-height: 0; gap: 20px; padding: 22px; }
  .pcg-srv__related-name { font-size: 20px; }
}

/* Testo giustificato per i paragrafi di contenuto */
.pcg-srv__intro p,
.pcg-srv__overview p,
.pcg-srv__group-head p,
.pcg-srv__card p,
.pcg-srv__closing p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .pcg-srv * { transition: none !important; }
}
