/* Vaste Programme — stile copiato dal sito WordPress originale (tema Upsidedown) */

@font-face {
  font-family: 'writer-regular';
  src: url('2967Writer-Regular.woff2') format('woff2');
  font-display: auto;
}

:root {
  --wp--preset--font-size--normal: 16px;
  --wp--preset--font-size--huge: 42px;
}

body {
  --wp--preset--color--black: #000000;
  --wp--preset--color--white: #ffffff;
  --wp--preset--color--primary: #111111;
  --wp--preset--color--secondary: #f9f9f9;
  --wp--preset--font-size--small: clamp(0.825rem, 0.825rem + ((1vw - 0.2rem) * 0.433), 1.0625rem);
  --wp--preset--font-size--medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.455), 1.25rem);
  --wp--preset--font-size--large: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.455), 2rem);
  --wp--preset--font-size--x-large: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 0.909), 3rem);
  --wp--preset--font-family--system-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --wp--preset--spacing--40: 1rem;
  --wp--preset--spacing--50: 1.5rem;
  --wp--style--global--content-size: 1000px;
  --wp--style--global--wide-size: 1200px;
  --wp--style--block-gap: var(--wp--preset--spacing--40);
  --wp--style--root--padding-top: 0px;
  --wp--style--root--padding-right: var(--wp--preset--spacing--50);
  --wp--style--root--padding-bottom: 0px;
  --wp--style--root--padding-left: var(--wp--preset--spacing--50);
  margin: 0;
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--system-font);
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.4;
}

/* Il font del sito vale per titoli, testi e link */
h1, h2, h3, h4, h5, h6, p, blockquote, li, a, strong, b, em {
  font-family: 'writer-regular' !important;
}

h1 {
  color: #111111;
  font-family: var(--wp--preset--font-family--system-font);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2.545rem, 1.725rem + 4.1vw, 4.8rem);
  line-height: 1;
}

a:where(:not(.wp-element-button)) {
  color: var(--wp--preset--color--primary);
  line-height: 1.4;
  text-decoration: underline;
}
a:where(:not(.wp-element-button)):hover { color: #111111; text-decoration: none; }
a:where(:not(.wp-element-button)):focus { text-decoration: underline; }
a { text-decoration-thickness: 0.0625em !important; text-underline-offset: 0.15em; }

/* Layout dei blocchi */
.wp-site-blocks {
  padding-top: var(--wp--style--root--padding-top);
  padding-bottom: var(--wp--style--root--padding-bottom);
}
.has-global-padding {
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
}
.has-global-padding :where(.has-global-padding:not(.wp-block-block)) { padding-right: 0; padding-left: 0; }

:where(.wp-site-blocks) > * { margin-block-start: var(--wp--preset--spacing--40); margin-block-end: 0; }
:where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }
:where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }

:where(body .is-layout-flow) > * { margin-block-start: var(--wp--preset--spacing--40); margin-block-end: 0; }
:where(body .is-layout-flow) > :first-child:first-child { margin-block-start: 0; }
:where(body .is-layout-flow) > :last-child:last-child { margin-block-end: 0; }
:where(body .is-layout-constrained) > * { margin-block-start: var(--wp--preset--spacing--40); margin-block-end: 0; }
:where(body .is-layout-constrained) > :first-child:first-child { margin-block-start: 0; }
:where(body .is-layout-constrained) > :last-child:last-child { margin-block-end: 0; }
:where(body .is-layout-flex) { gap: var(--wp--preset--spacing--40); }

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto !important;
  margin-right: auto !important;
}
body .is-layout-constrained > .alignwide { max-width: var(--wp--style--global--wide-size); }
body .is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; }
body .is-layout-flex > * { margin: 0; }

.wp-block-group { box-sizing: border-box; }
.wp-block-spacer { clear: both; }

.wp-block-columns {
  box-sizing: border-box;
  display: flex;
  align-items: normal !important;
  flex-wrap: wrap !important;
}
:where(.wp-block-columns) { margin-bottom: 1.75em; }
.wp-block-column { flex-grow: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 782px) {
  .wp-block-columns { flex-wrap: nowrap !important; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 0; flex-grow: 1; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
}
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
}

.wp-block-post-template { list-style: none; margin-top: 0; margin-bottom: 0; max-width: 100%; padding: 0; background: none; }

/* Icona Instagram */
.wp-block-social-links { background: none; box-sizing: border-box; margin-left: 0; padding-left: 0; padding-right: 0; text-indent: 0; font-size: 24px; }
.wp-block-social-links.has-small-icon-size { font-size: 16px; }
.wp-block-social-links .wp-social-link a { border-bottom: 0; box-shadow: none; text-decoration: none; padding: 0; }
.wp-block-social-link { border-radius: 9999px; display: block; height: auto; transition: transform .1s ease; background: none; }
.wp-block-social-link:hover { transform: scale(1.1); }
.wp-block-social-link a { align-items: center; display: flex; line-height: 0; transition: transform .1s ease; }
.wp-block-social-links .wp-social-link svg { height: 1.25em; width: 1.25em; }
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor,
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor svg { fill: currentColor; color: currentColor; }
@media (prefers-reduced-motion: reduce) { .wp-block-social-link { transition-delay: 0s; transition-duration: 0s; } }

/* Utilità */
.has-primary-color { color: var(--wp--preset--color--primary) !important; }
.has-small-font-size { font-size: var(--wp--preset--font-size--small) !important; }
.has-medium-font-size { font-size: var(--wp--preset--font-size--medium) !important; }
.has-large-font-size { font-size: var(--wp--preset--font-size--large) !important; }
.has-system-font-font-family { font-family: var(--wp--preset--font-family--system-font) !important; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); border: 0; clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal !important;
}
/* header e footer (uguali su tutte le pagine) */
.hdr-columns.hdr-columns, .ftr-columns.ftr-columns { flex-wrap: nowrap; }
.hdr-group.hdr-group > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.ftr-outer.ftr-outer > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.ftr-inner.ftr-inner > * { margin-block: 0; }
.ftr-inner.ftr-inner > * + * { margin-block: 0; }
.ftr-social.ftr-social { gap: 1rem; justify-content: flex-start; }
