:root {
  /* Alpine palette: deep navy, glacier blue, ice, plus a red accent */
  --fv-navy:        #0e2740;   /* header, footer, headings */
  --fv-navy-soft:   #1d3b5c;
  --fv-blue:        #2a66a0;   /* brand blue (darker #5d91bf, AA on white) */
  --fv-blue-dark:   #1c4d7c;   /* hover */
  --fv-blue-light:  #5d91bf;   /* the site's original blue, for accents */
  --fv-ice:         #eef4f9;   /* tinted backgrounds */
  --fv-snow:        #ffffff;
  --fv-red:         #c4122f;   /* dates, highlights, "today" */

  --fv-text:        #1b2430;
  --fv-text-soft:   #4a5565;
  --fv-text-muted:  #677180;   /* meta text (AA on white) */
  --fv-line:        #dde5ee;

  /* Fonts already loaded by the theme */
  --fv-font-head: "Saira Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --fv-font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --fv-fs-xs:   0.8125rem;
  --fv-fs-sm:   0.9375rem;
  --fv-fs-base: 1rem;
  --fv-fs-lg:   1.25rem;
  --fv-fs-xl:   clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --fv-fs-2xl:  clamp(1.875rem, 1.4rem + 2vw, 2.625rem);

  --fv-space-1: 0.25rem;
  --fv-space-2: 0.5rem;
  --fv-space-3: 0.75rem;
  --fv-space-4: 1rem;
  --fv-space-5: 1.5rem;
  --fv-space-6: 2rem;
  --fv-space-7: 3rem;

  --fv-radius-sm: 4px;
  --fv-radius:    8px;
  --fv-radius-lg: 14px;
  --fv-shadow:    0 1px 2px rgba(14, 39, 64, .06), 0 4px 12px rgba(14, 39, 64, .07);
  --fv-shadow-lg: 0 2px 6px rgba(14, 39, 64, .08), 0 14px 32px rgba(14, 39, 64, .14);
  --fv-ease:      cubic-bezier(.2, .7, .2, 1);
  --fv-dur:       .22s;

  --fv-max-width: 1240px;
}


/* 02. Base & typography
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body,
body.custom-background {
  background-color: var(--fv-ice);
  color: var(--fv-text);
  font-family: var(--fv-font-body);
  font-size: var(--fv-fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body h1, body h2, body h3,
body h4, body h5, body h6 {
  font-family: var(--fv-font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fv-navy);
  letter-spacing: 0;
  margin: 0 0 .6em;
}

body h1 { font-size: var(--fv-fs-2xl); }
body h2 { font-size: var(--fv-fs-xl); }
body h3 { font-size: var(--fv-fs-lg); }
body h4 { font-size: 1.125rem; }
body h5, body h6 {
  font-size: var(--fv-fs-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
}

body p { margin: 0 0 1.1em; }
body strong, body b { font-weight: 700; }

body ::selection {
  background: var(--fv-blue);
  color: #fff;
}

body img {
  max-width: 100%;
  height: auto;
}


/* 03. Links
   -------------------------------------------------------------------------- */
body a {
  color: var(--fv-blue);
  text-decoration: none;
  transition: color var(--fv-dur) var(--fv-ease),
              background-color var(--fv-dur) var(--fv-ease);
}

body a:hover { color: var(--fv-blue-dark); }

/* Links inside written content get an underline (easier to spot) */
body .entry-content p a,
body .entry-content li a,
body .entry-content td a,
body .textwidget p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

body .entry-content p a:hover,
body .entry-content li a:hover {
  text-decoration-thickness: 2px;
}


/* 04. Header & navigation
   -------------------------------------------------------------------------- */
body .navigation-wrapper {
  background: var(--fv-snow);
  border-top: 4px solid var(--fv-navy);
  border-bottom: 1px solid var(--fv-line);
  box-shadow: 0 2px 10px rgba(14, 39, 64, .05);
  position: relative;
  z-index: 50;
}

body .navigation-wrapper .grid-container {
  max-width: var(--fv-max-width);
}

body .site-header {
  align-items: center;
  min-height: 84px;
}

body .site-branding .custom-logo-link {
  display: inline-block;
  padding: var(--fv-space-3) 0;
}

body .site-branding .custom-logo {
  width: auto;
  max-height: 64px;
}

/* Top-level menu */
body .main-navigation ul#primary-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

body .main-navigation li { position: relative; }

/* Remove list bullets and default list spacing */
body .main-navigation ul,
body .main-navigation li {
  list-style: none;
  margin: 0;
  padding: 0;
}

body .main-navigation li::marker { content: none; }

/* Dropdowns: taken out of the page flow and hidden until hover / keyboard focus.
   Without this, every submenu is always open and pushes the top-level
   items down into a staircase. */
body .main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  float: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s var(--fv-ease),
              transform .18s var(--fv-ease),
              visibility 0s linear .18s;
}

/* 3rd level opens to the right of its parent item */
body .main-navigation ul ul ul {
  top: calc(-1 * var(--fv-space-2) - 1px);
  left: 100%;
}

body .main-navigation li:hover > ul,
body .main-navigation li:focus-within > ul,
body .main-navigation li.focus > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

body .main-navigation #primary-menu > li > a {
  display: block;
  font-family: var(--fv-font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fv-navy);
  padding: 30px 14px;
  position: relative;
}

/* Animated bar under the active / hovered item */
body .main-navigation #primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--fv-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--fv-dur) var(--fv-ease);
}

body .main-navigation #primary-menu > li > a:hover::after,
body .main-navigation #primary-menu > li > a:focus-visible::after,
body .main-navigation #primary-menu > li.current-menu-item > a::after,
body .main-navigation #primary-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

body .main-navigation #primary-menu > li > a:hover,
body .main-navigation #primary-menu > li.current-menu-item > a,
body .main-navigation #primary-menu > li.current-menu-ancestor > a {
  color: var(--fv-blue);
}

/* Small arrow on items with a dropdown */
body .main-navigation #primary-menu > li.menu-item-has-children > a {
  padding-right: 26px;
}

body .main-navigation #primary-menu > li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .6;
}

/* Dropdowns (2nd and 3rd level) */
body .main-navigation ul ul {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-top: 3px solid var(--fv-blue);
  border-radius: 0 0 var(--fv-radius) var(--fv-radius);
  box-shadow: var(--fv-shadow-lg);
  min-width: 250px;
  padding: var(--fv-space-2) 0;
  z-index: 100;
}

body .main-navigation ul ul ul {
  border-top-width: 1px;
  border-left: 3px solid var(--fv-blue);
  border-radius: 0 var(--fv-radius) var(--fv-radius) 0;
}

body .main-navigation ul ul li {
  width: 100%;
  border: 0;
}

body .main-navigation ul ul a {
  display: block;
  width: 100%;
  font-family: var(--fv-font-body);
  font-size: var(--fv-fs-sm);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fv-text);
  padding: 8px 18px;
  line-height: 1.4;
}

body .main-navigation ul ul a:hover,
body .main-navigation ul ul a:focus-visible,
body .main-navigation ul ul .current-menu-item > a {
  background: var(--fv-ice);
  color: var(--fv-blue);
}

/* Arrow on 2nd-level items that open a 3rd level */
body .main-navigation ul ul .menu-item-has-children > a {
  position: relative;
  padding-right: 32px;
}

body .main-navigation ul ul .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: .5;
}


/* 05. Mobile menu (theme's off-canvas "#iot-menu-left")
   -------------------------------------------------------------------------- */
body #site-navigation span.dashicons.dashicons-menu::before {
  color: var(--fv-navy);
  font-size: 30px;
}

body #iot-menu-left {
  background: var(--fv-navy);
  box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
}

body #iot-menu-left a,
body .iot-menu-left-ul a {
  color: #fff;
  font-family: var(--fv-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body .iot-menu-left-ul ul a {
  font-family: var(--fv-font-body);
  font-weight: 400;
  font-size: var(--fv-fs-sm);
  color: rgba(255, 255, 255, .8);
  padding-left: 36px;
}

body .iot-menu-left-ul ul ul a { padding-left: 52px; }

body #iot-menu-left a:hover,
body .iot-menu-left-ul .current-menu-item > a {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}


/* 06. Layout
   -------------------------------------------------------------------------- */
body #page.site.grid-container,
body .footer-container .grid-container {
  max-width: var(--fv-max-width);
}

body #content.site-content {
  padding-top: var(--fv-space-6);
  padding-bottom: var(--fv-space-7);
}

body .content-area .site-main { margin-bottom: var(--fv-space-6); }

/* Screen-reader text (theme helper) */
body .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body .skip-link:focus {
  position: fixed !important;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100000;
  background: var(--fv-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--fv-radius);
}


/* 07. Post cards (blog, category archives, search results)
   -------------------------------------------------------------------------- */
body.blog .site-main,
body.archive .site-main,
body.search-results .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--fv-space-5);
}

/* Archive/search page titles stay full width */
body.archive .site-main > .page-header,
body.search-results .site-main > .page-header,
body.blog .site-main > .pagination,
body.archive .site-main > .pagination,
body.search-results .site-main > .pagination {
  grid-column: 1 / -1;
}

body.blog article.post,
body.archive article.post,
body.search-results article {
  display: flex;
  flex-direction: column;
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  overflow: hidden;
  margin: 0 0 var(--fv-space-5);   /* used when the grid is not active */
  padding: 0;
  position: relative;
  transition: transform var(--fv-dur) var(--fv-ease),
              box-shadow var(--fv-dur) var(--fv-ease);
}

body.blog .site-main article.post,
body.archive .site-main article.post,
body.search-results .site-main article {
  margin: 0;
}

body.blog article.post:hover,
body.archive article.post:hover,
body.search-results article:hover {
  transform: translateY(-3px);
  box-shadow: var(--fv-shadow-lg);
}

/* Card image */
body.blog article.post > a:first-child,
body.archive article.post > a:first-child,
body.search-results article > a:first-child {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--fv-ice);
}

body.blog article.post .wp-post-image,
body.archive article.post .wp-post-image,
body.search-results article .wp-post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform .5s var(--fv-ease);
}

body.blog article.post:hover .wp-post-image,
body.archive article.post:hover .wp-post-image,
body.search-results article:hover .wp-post-image {
  transform: scale(1.05);
}

/* Card body */
body .article-contents {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--fv-space-5);
  background: transparent;
}

body .article-contents .entry-header { margin: 0 0 var(--fv-space-3); }

body.blog .entry-meta,
body.archive .entry-meta,
body.search-results .entry-meta {
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fv-red);
  margin-bottom: var(--fv-space-2);
}

body.blog .entry-title,
body.archive .entry-title,
body.search-results .entry-title {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

body.blog .entry-title a,
body.archive .entry-title a,
body.search-results .entry-title a {
  color: var(--fv-navy);
}

/* Whole card clickable via the title link */
body.blog .entry-title a::after,
body.archive .entry-title a::after,
body.search-results .entry-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.blog article.post:hover .entry-title a,
body.archive article.post:hover .entry-title a,
body.search-results article:hover .entry-title a {
  color: var(--fv-blue);
}

/* Excerpt: the theme wraps it in a link, so keep it looking like text.
   font-size: 0 hides the loose "Condividi" label the theme prints after it. */
body.blog .article-contents .entry-content,
body.archive .article-contents .entry-content,
body.search-results .article-contents .entry-content {
  font-size: 0;
  margin-top: auto;
}

body.blog .article-contents .entry-content > a,
body.archive .article-contents .entry-content > a,
body.search-results .article-contents .entry-content > a {
  display: block;
  font-size: var(--fv-fs-sm);
  color: var(--fv-text-soft);
  text-decoration: none;
}

body.blog .article-contents .entry-content p,
body.archive .article-contents .entry-content p,
body.search-results .article-contents .entry-content p {
  font-size: var(--fv-fs-sm);
  line-height: 1.6;
  color: var(--fv-text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Share buttons are pointless in a card (and empty until cookies are accepted) */
body.blog .article-contents .addtoany_share_save_container,
body.archive .article-contents .addtoany_share_save_container,
body.search-results .article-contents .addtoany_share_save_container {
  display: none;
}

/* Sticky (featured) post: full width, image beside text on wide screens */
body.blog .site-main article.sticky {
  grid-column: 1 / -1;
  border-top: 4px solid var(--fv-red);
}

@media (min-width: 900px) {
  body.blog .site-main article.sticky {
    flex-direction: row;
  }

  body.blog .site-main article.sticky > a:first-child {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 320px;
  }

  body.blog .site-main article.sticky .article-contents {
    padding: var(--fv-space-6);
    justify-content: center;
  }

  body.blog .site-main article.sticky .entry-title {
    font-size: var(--fv-fs-xl);
  }
}

body.blog .site-main article.sticky .entry-meta::before {
  content: "In evidenza · ";
}

/* Archive / search headings */
body .page-header .page-title,
body.archive h1.page-title,
body.search-results h1.page-title,
body.search-no-results h1.page-title {
  font-size: var(--fv-fs-2xl);
  color: var(--fv-navy);
  border-left: 5px solid var(--fv-red);
  padding-left: var(--fv-space-4);
  margin-bottom: var(--fv-space-5);
}

body .page-header .archive-description {
  color: var(--fv-text-soft);
  max-width: 70ch;
}


/* 08. Pagination
   -------------------------------------------------------------------------- */
body .pagination,
body .navigation.pagination {
  margin: var(--fv-space-6) 0;
}

body .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--fv-space-2);
}

body .nav-links .page-numbers,
body .nav-links a,
body .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--fv-line);
  background: var(--fv-snow);
  color: var(--fv-navy);
  font-family: var(--fv-font-head);
  font-weight: 700;
  font-size: var(--fv-fs-sm);
  line-height: 1;
}

body .nav-links a:hover,
body .nav-links .page-numbers.current,
body .pagination .current {
  background: var(--fv-navy);
  border-color: var(--fv-navy);
  color: #fff;
}

body .nav-links .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* Previous / next post links on single posts */
body .post-navigation .nav-links {
  justify-content: space-between;
}

body .post-navigation .nav-links a {
  height: auto;
  padding: 12px 20px;
  border-radius: var(--fv-radius);
  font-weight: 400;
  text-align: left;
  max-width: 48%;
}


/* 09. Single posts & pages
   -------------------------------------------------------------------------- */
body.single .content-area article,
body.page .content-area article {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  padding: var(--fv-space-6);
  overflow: hidden;
}

body.single .content-area article .wp-post-image,
body.page .content-area article .wp-post-image {
  display: block;
  width: calc(100% + 2 * var(--fv-space-6));
  max-width: none;
  margin: calc(-1 * var(--fv-space-6)) calc(-1 * var(--fv-space-6)) var(--fv-space-5);
  height: auto;
  border-radius: 0;
}

body.single .content-area .entry-title,
body.page .content-area .entry-title {
  font-size: var(--fv-fs-2xl);
  color: var(--fv-navy);
  margin-bottom: var(--fv-space-3);
}

body.single main article .entry-meta,
body.single main article .entry-meta * {
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-sm);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--fv-red);
}

/* Body text */
body.single .site-content .entry-content,
body.single .site-content .entry-content p,
body.single .site-content .entry-content li,
body.page .site-content .entry-content,
body.page .site-content .entry-content p,
body.page .site-content .entry-content li {
  color: var(--fv-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

body.single .content-area h2,
body.single .content-area h3,
body.page .content-area h2,
body.page .content-area h3 {
  color: var(--fv-navy);
  margin-top: 1.6em;
}

body .entry-content ul,
body .entry-content ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

body .entry-content li { margin-bottom: .35em; }
body .entry-content ul li::marker { color: var(--fv-blue); }

body .entry-content blockquote,
body .comment-content blockquote {
  margin: var(--fv-space-5) 0;
  padding: var(--fv-space-4) var(--fv-space-5);
  border-left: 4px solid var(--fv-blue);
  background: var(--fv-ice);
  border-radius: 0 var(--fv-radius) var(--fv-radius) 0;
  font-size: 1.1rem;
  color: var(--fv-navy);
}

body .entry-content figure,
body .entry-content .wp-block-image { margin: var(--fv-space-5) 0; }

body .entry-content img { border-radius: var(--fv-radius); }

body .entry-content figcaption,
body .wp-caption-text,
body .wp-element-caption {
  font-size: var(--fv-fs-xs);
  color: var(--fv-text-muted);
  text-align: center;
  margin-top: var(--fv-space-2);
}

body .entry-content hr {
  border: 0;
  border-top: 1px solid var(--fv-line);
  margin: var(--fv-space-6) 0;
}

/* PDF / document links get a small label (lots of attachments on this site) */
body .entry-content a[href$=".pdf"]::after,
body .entry-content a[href$=".PDF"]::after {
  content: "PDF";
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--fv-font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--fv-red);
  border-radius: 3px;
  vertical-align: 2px;
  text-decoration: none;
}

/* Image-only PDF links (e.g. agenda covers) don't need the label */
body .entry-content a[href$=".pdf"]:has(> img)::after,
body .textwidget a[href$=".pdf"]:has(> img)::after {
  content: none;
}

/* Categories & tags */
body .cat-links a,
body .tags-links a {
  display: inline-block;
  font-size: var(--fv-fs-xs);
  font-weight: 600;
  color: var(--fv-blue);
  background: var(--fv-ice);
  border: 1px solid var(--fv-line);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 6px 6px 0;
}

body .cat-links a:hover,
body .tags-links a:hover {
  background: var(--fv-blue);
  border-color: var(--fv-blue);
  color: #fff;
}

/* Share buttons on single posts */
body .addtoany_share_save_container {
  margin: var(--fv-space-5) 0 0;
  padding-top: var(--fv-space-4);
  border-top: 1px solid var(--fv-line);
}

/* Author box, related posts, comments */
body .about-the-author,
body .comments-title,
body .related-posts h3,
body .comment-reply-title {
  border-color: var(--fv-line);
}

body .related-posts h3,
body .comments-title,
body .comment-reply-title {
  font-size: var(--fv-fs-lg);
  color: var(--fv-navy);
}

body .comment-list { list-style: none; padding: 0; }

body .comment-body {
  background: var(--fv-ice);
  border-radius: var(--fv-radius);
  padding: var(--fv-space-4) var(--fv-space-5);
  margin-bottom: var(--fv-space-4);
}

body .comments-area .comment-metadata time {
  font-size: var(--fv-fs-xs);
  color: var(--fv-text-muted);
}

/* 404 */
body.error404 h1 { color: var(--fv-navy); }
body.error404 p,
body.search-no-results p { color: var(--fv-text-soft); }


/* 10. Tables (TablePress, block tables, calendar)
   -------------------------------------------------------------------------- */
body .entry-content table,
body .wp-block-table table,
body .tablepress {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fv-fs-sm);
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius);
  overflow: hidden;
  margin: 0 0 var(--fv-space-5);
}

body .entry-content th,
body .tablepress thead th,
body .tablepress tfoot th {
  background: var(--fv-navy);
  color: #fff;
  font-family: var(--fv-font-head);
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  padding: 10px 14px;
  border: 0;
}

body.single .content-area th,
body.page .content-area th { color: #fff; }

body .entry-content td,
body .tablepress tbody td {
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--fv-line);
  color: var(--fv-text);
  vertical-align: top;
}

body .tablepress .odd td,
body .entry-content tbody tr:nth-child(odd) td {
  background: #f7fafd;
}

body .tablepress .row-hover tr:hover td,
body .entry-content tbody tr:hover td {
  background: var(--fv-ice);
}

body .tablepress thead .sorting:hover,
body .tablepress thead .sorting_asc,
body .tablepress thead .sorting_desc {
  background: var(--fv-blue);
}

/* TablePress search / paging controls */
body .dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-sm);
  padding: 6px 10px;
}

body .dataTables_wrapper .paginate_button {
  border-radius: var(--fv-radius-sm);
  color: var(--fv-blue) !important;
}

body .dataTables_wrapper .paginate_button.current {
  background: var(--fv-navy) !important;
  color: #fff !important;
}

/* Calendar widget */
body .wp-calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: var(--fv-fs-sm);
}

body .wp-calendar-table caption {
  font-family: var(--fv-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  padding-bottom: var(--fv-space-2);
}

body .wp-calendar-table th {
  font-family: var(--fv-font-head);
  font-weight: 700;
  padding: 6px 0;
  opacity: .7;
  background: transparent;
  border: 0;
}

body .wp-calendar-table td {
  padding: 3px;
  border: 0;
}

body .wp-calendar-table td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fv-blue);
  color: #fff;
  font-weight: 700;
}

body .wp-calendar-table td a:hover { background: var(--fv-red); }

body .wp-calendar-table #today {
  outline: 2px solid var(--fv-red);
  outline-offset: -2px;
  border-radius: 50%;
  font-weight: 700;
}

body .wp-calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--fv-space-2);
  font-size: var(--fv-fs-sm);
}


/* 11. Team members (Consiglio, Commissioni, Squadre pages)
   -------------------------------------------------------------------------- */
body .tmm .tmm_member {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-top: 4px solid var(--fv-blue);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  padding: var(--fv-space-5);
  text-align: center;
}

body .tmm .tmm_photo {
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--fv-ice);
}

body .tmm .tmm_names {
  font-family: var(--fv-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fv-navy);
  margin-top: var(--fv-space-3);
}

body .tmm .tmm_job {
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fv-red);
}

body .tmm .tmm_desc {
  font-size: var(--fv-fs-sm);
  color: var(--fv-text-soft);
  text-align: center;
}


/* 12. Sidebar & widgets
   -------------------------------------------------------------------------- */
body #secondary.widget-area {
  font-size: var(--fv-fs-sm);
}

body #secondary .widget {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  padding: var(--fv-space-5);
  margin: 0 0 var(--fv-space-4);
  box-shadow: none;
}

body #secondary .widget-title,
body #secondary .widgettitle {
  font-family: var(--fv-font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fv-navy);
  margin: 0 0 var(--fv-space-4);
  padding-bottom: var(--fv-space-2);
  border-bottom: 2px solid var(--fv-ice);
  position: relative;
}

body #secondary .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background: var(--fv-red);
}

/* "Segreteria" contact block */
body #secondary .widget_text .textwidget p {
  margin: 0;
  line-height: 1.8;
  color: var(--fv-text-soft);
}

/* Menu widgets: links shown as a list with arrows */
body #secondary .widget_nav_menu ul,
body #secondary .widget_categories ul,
body #secondary .widget_archive ul,
body #secondary .widget_recent_entries ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body #secondary .widget_nav_menu li a,
body #secondary .widget_categories li a,
body #secondary .widget_recent_entries li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fv-space-2);
  padding: 9px 0;
  color: var(--fv-text);
  font-weight: 600;
  border-bottom: 1px solid var(--fv-line);
}

body #secondary .widget_nav_menu li:last-child a { border-bottom: 0; }

body #secondary .widget_nav_menu li a::after,
body #secondary .widget_categories li a::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid var(--fv-blue);
  border-top: 2px solid var(--fv-blue);
  transform: rotate(45deg);
  transition: transform var(--fv-dur) var(--fv-ease);
}

body #secondary .widget_nav_menu li a:hover {
  color: var(--fv-blue);
}

body #secondary .widget_nav_menu li a:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* The "Articoli per Disciplina" list is split into many one-item widgets.
   Join them visually into a single card. */
body #secondary .widget_siteorigin-panels-builder + .widget_siteorigin-panels-builder,
body #secondary .widget_siteorigin-panels-builder + .widget_nav_menu,
body #secondary .widget_nav_menu + .widget_nav_menu {
  margin-top: calc(-1 * var(--fv-space-4) - 1px);
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 0;
}

body #secondary .widget_siteorigin-panels-builder:has(+ .widget_siteorigin-panels-builder),
body #secondary .widget_siteorigin-panels-builder:has(+ .widget_nav_menu),
body #secondary .widget_nav_menu:has(+ .widget_nav_menu) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}

body #secondary .widget_siteorigin-panels-builder:has(+ .widget_siteorigin-panels-builder) li a,
body #secondary .widget_siteorigin-panels-builder:has(+ .widget_nav_menu) li a,
body #secondary .widget_nav_menu:has(+ .widget_nav_menu) li a {
  border-bottom: 1px solid var(--fv-line);
}

body #secondary .so-panel { margin-bottom: 0; }

/* Widgets with only a title and an empty body ("Scarica l'App" etc.):
   remove the gap before the image widget that follows */
body #secondary .widget_sow-editor:has(.textwidget:empty) {
  margin-bottom: 0;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}

body #secondary .widget_sow-editor:has(.textwidget:empty) .widget-title { margin-bottom: 0; }

body #secondary .widget_sow-editor:has(.textwidget:empty) + .widget {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Completely empty widgets */
body #secondary .widget_sow-editor:not(:has(.widget-title)):has(.textwidget:empty) {
  display: none;
}


/* 13. Sponsor / logo widgets
   -------------------------------------------------------------------------- */
body #secondary .widget_sow-image,
body #secondary .widget_media_image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--fv-space-4);
  min-height: 96px;
}

body #secondary .widget_sow-image .sow-image-container,
body #secondary .widget_media_image .wp-block-image,
body #secondary .widget_media_image figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  float: none;
}

body #secondary .widget_sow-image img,
body #secondary .widget_media_image img {
  width: auto;
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  transition: transform var(--fv-dur) var(--fv-ease);
}

/* Tall promo images (App, Agenda covers, banners) keep their size */
body #secondary .widget_sow-image img[height]:not([height="39"]):not([height="47"]):not([height="63"]):not([height="70"]):not([height="72"]):not([height="126"]) {
  max-height: none;
}

body #secondary .widget_sow-image:hover img,
body #secondary .widget_media_image:hover img {
  transform: scale(1.03);
}

/* Optional: logo grid for partner widgets. Add the CSS class "fv-logo-grid"
   to a container (e.g. a SiteOrigin row) holding several image widgets. */
body .fv-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--fv-space-3);
}

body .fv-logo-grid img {
  filter: grayscale(1);
  opacity: .8;
  transition: filter var(--fv-dur), opacity var(--fv-dur);
}

body .fv-logo-grid a:hover img,
body .fv-logo-grid img:hover {
  filter: none;
  opacity: 1;
}


/* 14. Forms (search, SiteOrigin contact form, comments, selects)
   -------------------------------------------------------------------------- */
body input[type="text"],
body input[type="email"],
body input[type="url"],
body input[type="tel"],
body input[type="number"],
body input[type="search"],
body input[type="password"],
body textarea,
body select,
body .so-widget-sow-contact-form .sow-contact-form .sow-form-field input,
body .so-widget-sow-contact-form .sow-contact-form .sow-form-field textarea {
  width: 100%;
  font-family: var(--fv-font-body);
  font-size: var(--fv-fs-base);
  color: var(--fv-text);
  background: var(--fv-snow);
  border: 1px solid #c6d2df;
  border-radius: var(--fv-radius-sm);
  padding: 10px 12px;
  height: auto;
  margin: 0;
  box-shadow: none;
  transition: border-color var(--fv-dur) var(--fv-ease),
              box-shadow var(--fv-dur) var(--fv-ease);
}

body select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fv-navy) 50%),
    linear-gradient(135deg, var(--fv-navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

body textarea { min-height: 140px; resize: vertical; }

body input::placeholder,
body textarea::placeholder {
  color: var(--fv-text-muted);
  opacity: 1;
}

body input:focus,
body select:focus,
body textarea:focus,
body .so-widget-sow-contact-form .sow-contact-form .sow-form-field input:focus,
body .so-widget-sow-contact-form .sow-contact-form .sow-form-field textarea:focus {
  outline: none;
  border-color: var(--fv-blue);
  box-shadow: 0 0 0 3px rgba(42, 102, 160, .18);
}

body label,
body .comment-respond label,
body .so-widget-sow-contact-form .sow-form-field label {
  display: block;
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-sm);
  font-weight: 700;
  color: var(--fv-navy);
  margin-bottom: 4px;
}

body .so-widget-sow-contact-form .sow-form-field label strong { font-weight: 700; }

body .so-widget-sow-contact-form .sow-form-field {
  margin-bottom: var(--fv-space-4);
}

body input[type="checkbox"],
body input[type="radio"] {
  accent-color: var(--fv-blue);
  width: 18px;
  height: 18px;
}

/* Search form: input and button side by side */
body .search-form {
  display: flex;
  gap: var(--fv-space-2);
  align-items: stretch;
}

body .search-form label {
  flex: 1;
  margin: 0;
}

body .search-form .search-field {
  height: 100%;
  border-radius: 999px;
  padding-left: 18px;
}

body .search-form .search-submit {
  flex: 0 0 auto;
  border-radius: 999px;
}

/* Contact form messages */
body .sow-contact-form-success,
body .sow-form-field .sow-error,
body .sow-error {
  border-radius: var(--fv-radius);
  padding: var(--fv-space-3) var(--fv-space-4);
}

body .sow-contact-form-success {
  background: #e7f4ec;
  color: #1e5e36;
}

body .sow-error { color: var(--fv-red); }


/* 15. Buttons
   -------------------------------------------------------------------------- */
body a.button,
body button:not([class*="owl"]):not([class*="slick"]):not([class*="cmplz"]):not([role="presentation"]),
body input[type="button"],
body input[type="reset"],
body input[type="submit"],
body .wp-block-button__link,
body .so-widget-sow-contact-form .sow-submit-wrapper.sow-submit-styled button.sow-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: var(--fv-blue);
  background-image: none;
  border: 2px solid var(--fv-blue);
  border-radius: var(--fv-radius-sm);
  padding: 12px 22px;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--fv-dur) var(--fv-ease),
              border-color var(--fv-dur) var(--fv-ease),
              transform var(--fv-dur) var(--fv-ease);
}

body a.button:hover,
body button:not([class*="owl"]):not([class*="slick"]):not([class*="cmplz"]):not([role="presentation"]):hover,
body input[type="button"]:hover,
body input[type="reset"]:hover,
body input[type="submit"]:hover,
body .wp-block-button__link:hover,
body .so-widget-sow-contact-form .sow-submit-wrapper.sow-submit-styled button.sow-submit:hover {
  background: var(--fv-navy);
  background-image: none;
  border-color: var(--fv-navy);
  color: #fff;
}

body button:active,
body input[type="submit"]:active,
body a.button:active { transform: translateY(1px); }

body .page .content-area a.button,
body.page .content-area a.button { color: #fff; }

/* Outline variant: add class "fv-btn-outline" */
body .fv-btn-outline,
body .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--fv-blue);
}

body .fv-btn-outline:hover,
body .is-style-outline .wp-block-button__link:hover {
  background: var(--fv-blue);
  color: #fff;
}



/* 16. Footer
   -------------------------------------------------------------------------- */
body .footer-container {
  background: var(--fv-navy);
  color: rgba(255, 255, 255, .78);
  margin-top: var(--fv-space-7);
  border-top: 4px solid var(--fv-red);
}

body .site-footer {
  padding-top: var(--fv-space-7);
}

body .footer-widget-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--fv-space-6);
}

body .footer-widget-three .footer-column {
  width: auto;
  float: none;
  padding: 0;
}

body .site-footer .widget {
  margin-bottom: var(--fv-space-5);
  background: transparent;
  border: 0;
  padding: 0;
}

body .site-footer .widget-title {
  font-family: var(--fv-font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--fv-space-4);
}

body .site-footer p,
body .site-footer .textwidget,
body .site-footer li {
  color: rgba(255, 255, 255, .78);
  font-size: var(--fv-fs-sm);
  line-height: 1.8;
}

body .site-footer a { color: #9cc3e6; }
body .site-footer a:hover { color: #fff; }

/* Form controls on dark background */
body .site-footer select,
body .site-footer input[type="search"],
body .site-footer input[type="text"] {
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

body .site-footer select {
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
}

body .site-footer select option { color: var(--fv-text); }

body .site-footer input::placeholder { color: rgba(255, 255, 255, .6); }

body .site-footer input[type="submit"] {
  background: var(--fv-red);
  border-color: var(--fv-red);
}

body .site-footer input[type="submit"]:hover {
  background: #fff;
  border-color: #fff;
  color: var(--fv-navy);
}

/* Calendar on dark background */
body .site-footer .wp-calendar-table,
body .site-footer .wp-calendar-table caption,
body .site-footer .wp-calendar-table th,
body .site-footer .wp-calendar-table td {
  color: rgba(255, 255, 255, .85);
  background: transparent;
  border-color: rgba(255, 255, 255, .1);
}

body .site-footer .wp-calendar-table td a {
  background: var(--fv-blue-light);
  color: #fff;
}

body .site-footer .wp-calendar-table td a:hover { background: var(--fv-red); }

/* Social icons */
body .widget_synved_social_follow > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body .widget_synved_social_follow img.synved-social-image {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  transition: transform var(--fv-dur) var(--fv-ease), opacity var(--fv-dur);
}

body .widget_synved_social_follow a:hover img.synved-social-image,
body .widget_synved_social_follow img.synved-social-image:hover {
  transform: translateY(-2px);
}

/* Bottom bar */
body .site-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--fv-space-2);
  font-size: var(--fv-fs-xs);
  color: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: var(--fv-space-5) 0;
  margin-top: var(--fv-space-5);
}

body .site-info a { color: rgba(255, 255, 255, .85); }


/* 17. Cookie banner (Complianz)
   Complianz reads these variables; the rules below are a fallback.
   -------------------------------------------------------------------------- */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  --cmplz_banner_background_color: var(--fv-snow);
  --cmplz_banner_border_color: var(--fv-line);
  --cmplz_banner_border_radius: 12px;
  --cmplz_text_color: var(--fv-text);
  --cmplz_hyperlink_color: var(--fv-blue);
  --cmplz_button_accept_background_color: var(--fv-blue);
  --cmplz_button_accept_border_color: var(--fv-blue);
  --cmplz_button_accept_text_color: #fff;
  --cmplz_button_deny_background_color: var(--fv-snow);
  --cmplz_button_deny_border_color: var(--fv-line);
  --cmplz_button_deny_text_color: var(--fv-navy);
  --cmplz_button_settings_background_color: var(--fv-snow);
  --cmplz_button_settings_border_color: var(--fv-line);
  --cmplz_button_settings_text_color: var(--fv-navy);
  --cmplz_button_border_radius: 4px;
  --cmplz_slider_active_color: var(--fv-blue);

  font-family: var(--fv-font-body);
  color: var(--fv-text);
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-top: 4px solid var(--fv-blue);
  border-radius: 12px;
  box-shadow: var(--fv-shadow-lg);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title {
  font-family: var(--fv-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fv-navy);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message {
  font-size: var(--fv-fs-sm);
  line-height: 1.6;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn {
  font-family: var(--fv-font-head);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background: var(--fv-blue);
  border-color: var(--fv-blue);
  color: #fff;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover {
  background: var(--fv-navy);
  border-color: var(--fv-navy);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-category {
  background: var(--fv-ice);
  border-radius: var(--fv-radius);
}

#cmplz-manage-consent .cmplz-manage-consent {
  font-family: var(--fv-font-head);
  font-weight: 700;
  background: var(--fv-navy);
  color: #fff;
  border-radius: 8px 8px 0 0;
}


/* 18. Language switcher (Weglot)
   -------------------------------------------------------------------------- */
body .country-selector.weglot-dropdown {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius);
  box-shadow: var(--fv-shadow);
  font-family: var(--fv-font-head);
  font-weight: 700;
  overflow: hidden;
}

body .country-selector.weglot-dropdown .wgcurrent,
body .country-selector.weglot-dropdown a {
  color: var(--fv-navy);
  border: 0;
}

body .country-selector.weglot-dropdown ul {
  background: var(--fv-snow);
  border: 0;
  border-top: 1px solid var(--fv-line);
}

body .country-selector.weglot-dropdown li:hover,
body .country-selector.weglot-dropdown a:hover {
  background: var(--fv-ice);
}


/* 19. Utilities — add in a block's or widget's "CSS class" field
   -------------------------------------------------------------------------- */
body .fv-card {
  background: var(--fv-snow);
  border: 1px solid var(--fv-line);
  border-radius: var(--fv-radius-lg);
  box-shadow: var(--fv-shadow);
  padding: var(--fv-space-5);
}

body .fv-section-ice  { background: var(--fv-ice); padding: var(--fv-space-6); border-radius: var(--fv-radius-lg); }
body .fv-section-dark { background: var(--fv-navy); color: rgba(255,255,255,.85); padding: var(--fv-space-6); border-radius: var(--fv-radius-lg); }
body .fv-section-dark h2,
body .fv-section-dark h3 { color: #fff; }
body .fv-section-dark a  { color: #9cc3e6; }

body .fv-eyebrow {
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fv-red);
}

body .fv-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--fv-text-soft);
}

body .fv-badge {
  display: inline-block;
  font-family: var(--fv-font-head);
  font-size: var(--fv-fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--fv-blue);
  border-radius: 999px;
  padding: 2px 10px;
}

body .fv-center { text-align: center; }


/* 20. Responsive
   Foundation breakpoints: medium ≥ 640px, large ≥ 1024px.
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  body .main-navigation #primary-menu > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: .875rem;
  }

  body .main-navigation #primary-menu > li.menu-item-has-children > a {
    padding-right: 22px;
  }

  body .main-navigation #primary-menu > li > a::before { right: 8px; }
  body .main-navigation #primary-menu > li > a::after { left: 9px; right: 9px; }
}

/* Keep deep dropdowns on screen: 3rd level opens to the left
   when the parent menu is near the right edge */
@media (min-width: 1024px) {
  body .main-navigation #primary-menu > li:nth-last-child(-n+3) ul ul {
    left: auto;
    right: 100%;
    border-left: 1px solid var(--fv-line);
    border-right: 3px solid var(--fv-blue);
    border-radius: var(--fv-radius) 0 0 var(--fv-radius);
  }
}

@media (max-width: 1023px) {
  body .site-header { min-height: 70px; }
  body .site-branding .custom-logo { max-height: 52px; }

  body #content.site-content { padding-top: var(--fv-space-5); }

  body #secondary.widget-area { margin-top: var(--fv-space-6); }

  /* Sidebar logos in a two-column grid on tablets */
  body #secondary.widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--fv-space-4);
    align-items: start;
  }

  body #secondary .widget { margin: 0; }

  /* Undo the "joined" widget styling once the sidebar becomes a grid */
  body #secondary .widget { margin-top: 0 !important; border-top: 1px solid var(--fv-line) !important; border-radius: var(--fv-radius-lg) !important; padding: var(--fv-space-5) !important; }
}

@media (max-width: 639px) {
  body h1 { font-size: 1.75rem; }

  body.blog .site-main,
  body.archive .site-main,
  body.search-results .site-main {
    grid-template-columns: 1fr;
    gap: var(--fv-space-4);
  }

  body .article-contents { padding: var(--fv-space-4); }

  body.single .content-area article,
  body.page .content-area article {
    padding: var(--fv-space-4);
    border-radius: var(--fv-radius);
  }

  body.single .content-area article .wp-post-image,
  body.page .content-area article .wp-post-image {
    width: calc(100% + 2 * var(--fv-space-4));
    margin: calc(-1 * var(--fv-space-4)) calc(-1 * var(--fv-space-4)) var(--fv-space-4);
  }

  /* Wide tables scroll sideways instead of breaking the layout */
  body .entry-content table,
  body .tablepress {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body .nav-links .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; }

  body .site-info { flex-direction: column; text-align: center; }

  body .post-navigation .nav-links a { max-width: 100%; }
}


/* 21. Accessibility & print
   -------------------------------------------------------------------------- */
body a:focus-visible,
body button:focus-visible,
body input[type="submit"]:focus-visible,
body [tabindex]:focus-visible,
body summary:focus-visible {
  outline: 3px solid var(--fv-blue-light);
  outline-offset: 3px;
  border-radius: var(--fv-radius-sm);
}

body.blog article.post:focus-within,
body.archive article.post:focus-within,
body.search-results article:focus-within {
  outline: 3px solid var(--fv-blue-light);
  outline-offset: 3px;
}

body .entry-title a:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body *,
  body *::before,
  body *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  body article:hover,
  body article:hover .wp-post-image { transform: none !important; }
}

@media print {
  body .navigation-wrapper,
  body #secondary,
  body .footer-container,
  body .addtoany_share_save_container,
  body #cmplz-cookiebanner-container,
  body #cmplz-manage-consent,
  body .country-selector,
  body .pagination,
  body .post-navigation {
    display: none !important;
  }

  body,
  body.custom-background { background: #fff; color: #000; }

  body #primary { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

  body.single .content-area article,
  body.page .content-area article,
  body article.post {
    box-shadow: none;
    border: 0;
    padding: 0;
    break-inside: avoid;
  }

  body .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .85em;
    color: #555;
    background: none;
  }
}