/* Certificazioni (page 62, patterns/certificazioni.php). Loaded only where the page is, and in the editor.
   The root also has "palladio-contatti": colors (--pct-*), base type, margin reset and the bordeaux opening come from
   palladio-contatti.css. Colors: direction A (README, "Regola dei colori"). Spacing with gaps. No JS. */
.palladio-certificazioni {
  --pce-section: clamp(48px, 7vw, 80px);
}
.palladio-certificazioni h2 { font-size: clamp(26px, 3.6vw, 38px); }
.palladio-certificazioni .pce-occhiello { color: var(--pct-red); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.palladio-certificazioni .pce-testo { max-width: 620px; color: var(--pct-secondary); font-size: 17px; }

/* Opening: title and subtitle, the icon box beside the title only. */
.palladio-certificazioni .pct-testa::before, .palladio-certificazioni .pct-testa::after { grid-row: 1; }
.palladio-certificazioni.palladio-contatti .pct-apertura h1 { align-self: center; }
.palladio-certificazioni.palladio-contatti .pct-testa > .pct-intro { margin-top: 0; }

.palladio-certificazioni .pce-sezione { display: grid; gap: 14px; padding-top: var(--pce-section); }

/* Regione Lazio highlight: the logo file untouched, original proportions, on white. The file (2500 × 1000) has its own
   white margins, the mark is about half its height: the image is set to 150 px so the mark is about 72 px high, and
   the margins of the file are the clear space around it. */
.palladio-certificazioni .pce-evidenza {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 32px; align-items: center;
  padding: clamp(22px, 4vw, 40px); border: 1px solid var(--pct-line); border-radius: 20px; background: var(--pct-white);
  box-shadow: inset 0 3px 0 var(--pct-gold-detail);
}
.palladio-certificazioni.palladio-certificazioni .pce-lazio { margin: -16px 0; }
.palladio-certificazioni .pce-lazio img { display: block; width: auto; max-width: 100%; height: auto; max-height: 150px; }
.palladio-certificazioni .pce-evidenza-testo { display: grid; gap: 12px; }
.palladio-certificazioni .pce-evidenza h2 { font-size: clamp(24px, 3vw, 32px); }

/* Certifying bodies: one row each, logo (fixed width), name and note, link on the right. */
.palladio-certificazioni .pce-enti h2 { margin-bottom: 10px; }
.palladio-certificazioni .pce-elenco { display: grid; border: 1px solid var(--pct-line); border-radius: 20px; background: var(--pct-white); overflow: hidden; }
.palladio-certificazioni .pce-ente { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 18px clamp(18px, 3vw, 32px); }
.palladio-certificazioni .pce-ente + .pce-ente { border-top: 1px solid var(--pct-line); }
.palladio-certificazioni.palladio-certificazioni .pce-ente-logo { display: grid; place-items: center; width: 160px; height: 72px; margin: 0; }
.palladio-certificazioni .pce-ente-logo img { width: auto; max-width: 100%; height: auto; max-height: 72px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .25s ease, opacity .25s ease; }
.palladio-certificazioni .pce-ente:hover .pce-ente-logo img, .palladio-certificazioni .pce-ente:focus-within .pce-ente-logo img { filter: none; opacity: 1; }
.palladio-certificazioni .pce-ente-testo { display: grid; gap: 4px; }
.palladio-certificazioni .pce-ente h3 { font-size: 19px; }
.palladio-certificazioni .pce-nota { color: var(--pct-secondary); font-size: 1rem; }
.palladio-certificazioni .pce-ente-link { font-size: 15px; font-weight: 700; white-space: nowrap; }
.palladio-certificazioni .pce-ente-link a { color: var(--pct-red); text-decoration: none; }
/* 44px tap height (R-14); the negative margin gives back what the box has beyond the line, so nothing moves. */
.palladio-certificazioni .pce-ente-link a { display: inline-flex; align-items: center; min-height: 44px; margin-block: calc((1lh - 44px) / 2); }
.palladio-certificazioni .pce-ente-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Closing bordeaux band. */
.palladio-certificazioni .pce-chiusura { margin-top: var(--pce-section); padding-block: clamp(40px, 6vw, 64px); background: linear-gradient(145deg, var(--pct-bordeaux), var(--pct-deep)); color: var(--pct-cream);
  --palladio-focus-text: var(--pct-gold); --palladio-focus-fill: var(--pct-gold); --palladio-focus-on-fill: var(--pct-deep); }
.palladio-certificazioni .pce-chiusura-wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.palladio-certificazioni.palladio-certificazioni .pce-azioni { margin: 0; }
.palladio-certificazioni .pce-azione-chiara .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 28px; border-radius: 999px;
  background: var(--pct-cream); color: var(--pct-deep); font-size: 16px; font-weight: 700; text-decoration: none;
}
.palladio-certificazioni .pce-azione-chiara .wp-block-button__link:hover { background: var(--pct-white); color: var(--pct-deep); }

@media (max-width: 767px) {
  .palladio-certificazioni .pce-evidenza { grid-template-columns: minmax(0, 1fr); }
  .palladio-certificazioni.palladio-certificazioni .pce-lazio { justify-self: start; margin: -12px 0 -20px -8%; }
  .palladio-certificazioni .pce-lazio img { max-height: 130px; }
  /* Logo and text in two columns, the link under the text. */
  .palladio-certificazioni .pce-ente { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
  .palladio-certificazioni.palladio-certificazioni .pce-ente-logo { grid-row: 1 / span 2; width: 96px; height: 56px; }
  .palladio-certificazioni .pce-ente-logo img { max-height: 56px; }
  .palladio-certificazioni .pce-ente-link { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .palladio-certificazioni .pce-ente-logo img { transition: none; }
}

/* Light entrance of the rows when they come into view: CSS only; without support they are simply visible. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .palladio-certificazioni .pce-ente { animation: pce-entra linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes pce-entra {
  from { opacity: 0; transform: translateY(12px); }
}

/* Light Palladio logo above the title, as on the "Parla con noi" bands (palladio-corso.css): 40px tall, 16px below,
   34px under 760px; fixed size (no layout shift), decorative pseudo-element (no text). */
.palladio-certificazioni .pce-chiusura h2::before { content: ""; display: block; width: calc(40px * 350 / 182.8); height: 40px; margin-bottom: 16px; background: url("images/scuola-palladio-logo-chiaro.svg") left center / contain no-repeat; }
@media (max-width: 760px) { .palladio-certificazioni .pce-chiusura h2::before { width: calc(34px * 350 / 182.8); height: 34px; } }

/* 28/10/2026. Accreditation determina under the presentation text of the Regione Lazio box. */
.palladio-certificazioni .pce-determina { color: var(--pct-ink); font-size: 1rem; font-weight: 700; }
/* Entry without a logo (PEKIT, no logo supplied): the name set as text in the logo cell. */
.palladio-certificazioni.palladio-certificazioni .pce-ente-sigla { display: grid; place-items: center; width: 160px; height: 72px; margin: 0; color: var(--pct-secondary); font-family: var(--pct-heading-font); font-size: 22px; font-weight: 800; letter-spacing: .06em; }
/* Cambridge mark: a trademark shown unmodified (no grey, full opacity) on a white rounded tile 96px tall. */
.palladio-certificazioni.palladio-certificazioni .pce-ente-logo-marchio { height: 96px; padding: 8px; border: 1px solid var(--pct-line); border-radius: 14px; background: var(--pct-white); box-sizing: border-box; }
.palladio-certificazioni .pce-ente-logo-marchio img, .palladio-certificazioni .pce-ente:hover .pce-ente-logo-marchio img { max-height: 78px; filter: none; opacity: 1; }
@media (max-width: 760px) {
  .palladio-certificazioni.palladio-certificazioni .pce-ente-sigla { grid-row: 1 / span 2; width: 96px; height: 56px; font-size: 18px; }
  .palladio-certificazioni.palladio-certificazioni .pce-ente-logo-marchio { grid-row: auto; grid-column: 1 / -1; justify-self: start; width: auto; height: 96px; }
  .palladio-certificazioni .pce-ente-logo-marchio img { width: auto; height: 78px; max-height: none; }
  .palladio-certificazioni .pce-ente-logo-marchio ~ .pce-ente-testo { grid-column: 2; }
}

/* 28/10/2026. Closing as a card set off from the footer on the page's cream, like the closing card «Parla con noi» of
   the other pages (palladio-corso-cta: 1120px less the gutters, radius 22px, padding clamp(28px, 5vw, 48px)). The
   section keeps its top margin and gets a cream band below; the wrap is the card, with the gold arch outline of the
   Chi siamo card, behind the content and clipped by the card. */
.palladio-certificazioni .pce-chiusura { padding: 0 var(--pct-gap) clamp(56px, 7vw, 96px); background: none; }
.palladio-certificazioni .pce-chiusura > .pce-chiusura-wrap {
  position: relative; isolation: isolate; overflow: hidden; max-width: calc(1120px - 2 * var(--pct-gap));
  padding: clamp(28px, 5vw, 48px); border-radius: 22px; background: linear-gradient(145deg, var(--pct-bordeaux), var(--pct-deep));
}
.palladio-certificazioni .pce-chiusura > .pce-chiusura-wrap::after {
  content: ""; position: absolute; z-index: -1; top: 6%; right: -16%; width: 62%; height: 88%; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--pct-gold) 25%, transparent); border-radius: 999px 999px 0 0; rotate: -18deg;
}
