/* Footer framework: native child-theme blocks, no script or animation dependency. */
/* The root block gap (1.2rem on every child of .wp-site-blocks) showed the white body as a 19px stripe between the
   last block and the footer: closed here for every page (1.37.6). The rest of the block gap is untouched. */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.palladio-footer-shell {
  --footer-detail: var(--wp--preset--color--palladio-gold-light, #e6c98a);
  --palladio-focus-text: var(--footer-detail);
  --palladio-focus-fill: var(--footer-detail);
  --palladio-focus-on-fill: var(--wp--preset--color--palladio-bordeaux-deep, #4a141b);
  box-sizing: border-box;
  margin-block: 0;
  padding: clamp(40px, 5vw, 72px) 24px 24px;
  background: var(--wp--preset--color--palladio-bordeaux-deep, #4a141b);
  color: var(--wp--preset--color--palladio-cream, #faf7f2);
  font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
  font-size: 14px;
  line-height: 1.65;
}
.palladio-footer-shell *, .palladio-footer-shell *::before, .palladio-footer-shell *::after { box-sizing: border-box; }
.palladio-footer-inner { max-width: 1200px; margin-inline: auto; }
.palladio-footer-shell .palladio-footer-brand {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 0 40px;
  padding-bottom: 28px;
  position: relative;
  border-bottom: 1px solid transparent;
}
.palladio-footer-shell .palladio-footer-logo { flex: 0 0 160px; margin: 0; }
.palladio-footer-logo img { display: block; width: 160px; height: auto; }
.palladio-footer-shell .palladio-footer-payoff { color: var(--footer-detail); margin: 0; }
.palladio-footer-shell .palladio-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
}
.palladio-footer-columns > .wp-block-column { min-width: 0; margin: 0; }
.palladio-footer-shell h3 {
  margin: 0 0 20px;
  color: inherit;
  font-family: var(--wp--preset--font-family--palladio-heading, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.palladio-footer-shell p { margin: 0 0 10px; font-size: inherit; overflow-wrap: anywhere; }
.palladio-footer-shell a { color: inherit; text-decoration: none; text-underline-offset: 6px; }
.palladio-footer-shell a:hover { color: var(--footer-detail); text-decoration: underline; text-decoration-thickness: 2px; }
.palladio-footer-calendar a { display: inline-flex; align-items: center; }
/* Links of the columns and of the bottom row (R-12): each on a 44px row, text centered in it. The 10px margin under
   the link paragraphs goes, so a row of links takes 44px instead of 33px (line + margin); text paragraphs keep it. */
.palladio-footer-shell :is(.palladio-footer-columns, .palladio-footer-legal-links) p:has(> a:only-child) { margin-bottom: 0; }
.palladio-footer-shell :is(.palladio-footer-columns, .palladio-footer-legal-links) p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
/* Text of a group of links where it was: the first link after a heading or a text and the last link of a column
   give back half of what the row has beyond the line (1.65em), so only the spacing between links grows. */
.palladio-footer-shell .palladio-footer-columns :not(p:has(> a:only-child)) + p:has(> a:only-child) { margin-top: calc((1.65em - 44px) / 2); }
.palladio-footer-shell .palladio-footer-columns p:has(> a:only-child):last-child { margin-bottom: calc((1.65em - 44px) / 2); }
/* The text of the last row (Privacy, Cookie) sits about 12px inside its 44px row: the footer's bottom padding and,
   beside the copyright, the space above the bottom row give that back, so the texts keep their distances. */
.palladio-footer-shell { padding-bottom: 12px; }
@media (min-width: 782px) { .palladio-footer-shell .palladio-footer-bottom { padding-top: 8px; } }
.palladio-footer-shell .wp-block-buttons { margin-top: 20px; }
.palladio-footer-shell .palladio-footer-cta { width: 100%; }
.palladio-footer-shell .palladio-footer-cta .wp-block-button__link {
  display: block;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--wp--preset--color--palladio-red, #a8342a);
  color: var(--wp--preset--color--palladio-cream, #faf7f2);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
}
.palladio-footer-shell .palladio-footer-cta .wp-block-button__link:hover { background: var(--wp--preset--color--palladio-bordeaux, #6b1d23); }
.palladio-footer-shell .palladio-footer-social { margin-top: 24px; }
.palladio-footer-shell .palladio-footer-social-icons { display: flex; gap: 14px; margin-bottom: 8px; color: var(--footer-detail); }
.palladio-footer-icon { display: block; width: 22px; height: 22px; }
.palladio-footer-icon::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; }
.palladio-footer-icon-social::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.palladio-footer-icon-whatsapp::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a9 9 0 0 1-13.7 7.7L3 21l1.5-4.6A9 9 0 1 1 21 11.5Z'/%3E%3Cpath d='m8 7 2 2-1 2a8 8 0 0 0 4 4l2-1 2 2c-4 4-13-5-9-9Z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.palladio-footer-shell .palladio-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 20px;
  position: relative;
  border-top: 1px solid transparent;
  color: var(--footer-detail);
  font-size: 12px;
}
.palladio-footer-shell .palladio-footer-bottom p { margin: 0; }
.palladio-footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 781px) {
  .palladio-footer-shell .palladio-footer-brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .palladio-footer-shell .palladio-footer-logo { flex-basis: auto; }
  .palladio-footer-shell .palladio-footer-columns { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .palladio-footer-shell .palladio-footer-cta { width: auto; }
  .palladio-footer-shell .palladio-footer-bottom { flex-direction: column; align-items: flex-start; gap: 2px; }
  .palladio-footer-legal-links { flex-direction: column; gap: 0; }
}

/* Gold rules under the logo and above the copyright row (1.37.8), from the footer of the GFG Srl site
   (.gfg-footer__base::before): 2px, as wide as the content row, transparent -> solid from 25% to 75% -> transparent,
   no glow. Here the gold is #e8c46a; static. Placed on the same lines as the old 1px borders. */
.palladio-footer-shell .palladio-footer-brand::after,
.palladio-footer-shell .palladio-footer-bottom::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; margin: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(232, 196, 106, 0) 0%, #e8c46a 25%, #e8c46a 75%, rgba(232, 196, 106, 0) 100%);
}
.palladio-footer-shell .palladio-footer-brand::after { bottom: -2px; }
.palladio-footer-shell .palladio-footer-bottom::before { top: -2px; }
